From a28400264911324ada3c7065b0b2c70594bf8e0f Mon Sep 17 00:00:00 2001 From: Owl Bot Date: Mon, 27 Jun 2022 21:10:09 +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/memcache/v1/CloudMemcacheGrpc.java | 1101 ----- .../memcache/v1beta2/CloudMemcacheGrpc.java | 1236 ------ .../memcache/v1/CloudMemcacheClient.java | 48 +- .../memcache/v1/CloudMemcacheSettings.java | 7 +- .../cloud/memcache/v1/gapic_metadata.json | 0 .../cloud/memcache/v1/package-info.java | 10 +- .../memcache/v1/stub/CloudMemcacheStub.java | 0 .../v1/stub/CloudMemcacheStubSettings.java | 6 +- .../GrpcCloudMemcacheCallableFactory.java | 0 .../v1/stub/GrpcCloudMemcacheStub.java | 1 + .../HttpJsonCloudMemcacheCallableFactory.java | 0 .../v1/stub/HttpJsonCloudMemcacheStub.java | 1 + .../v1/CloudMemcacheClientHttpJsonTest.java | 0 .../memcache/v1/CloudMemcacheClientTest.java | 0 .../cloud/memcache/v1/MockCloudMemcache.java | 0 .../memcache/v1/MockCloudMemcacheImpl.java | 0 .../cloud/memcache/v1/CloudMemcacheGrpc.java | 886 ++++ .../memcache/v1/ApplyParametersRequest.java | 487 +- .../v1/ApplyParametersRequestOrBuilder.java | 56 +- .../cloud/memcache/v1/CloudMemcacheProto.java | 370 ++ .../memcache/v1/CreateInstanceRequest.java | 567 +-- .../v1/CreateInstanceRequestOrBuilder.java | 64 +- .../memcache/v1/DeleteInstanceRequest.java | 339 +- .../v1/DeleteInstanceRequestOrBuilder.java | 33 + .../cloud/memcache/v1/GetInstanceRequest.java | 332 +- .../v1/GetInstanceRequestOrBuilder.java | 33 + .../google/cloud/memcache/v1/Instance.java | 3775 ++++++---------- .../cloud/memcache/v1/InstanceName.java | 0 .../cloud/memcache/v1/InstanceOrBuilder.java | 265 +- .../memcache/v1/ListInstancesRequest.java | 612 ++- .../v1/ListInstancesRequestOrBuilder.java | 65 +- .../memcache/v1/ListInstancesResponse.java | 569 +-- .../v1/ListInstancesResponseOrBuilder.java | 63 +- .../cloud/memcache/v1/LocationName.java | 0 .../cloud/memcache/v1/MemcacheParameters.java | 572 ++- .../v1/MemcacheParametersOrBuilder.java | 58 +- .../cloud/memcache/v1/MemcacheVersion.java | 79 +- .../cloud/memcache/v1/OperationMetadata.java | 842 ++-- .../v1/OperationMetadataOrBuilder.java | 91 +- .../memcache/v1/UpdateInstanceRequest.java | 516 +-- .../v1/UpdateInstanceRequestOrBuilder.java | 55 +- .../memcache/v1/UpdateParametersRequest.java | 567 +-- .../v1/UpdateParametersRequestOrBuilder.java | 60 +- .../cloud/memcache/v1/cloud_memcache.proto | 0 .../applyparameters/AsyncApplyParameters.java | 0 .../AsyncApplyParametersLRO.java | 0 .../applyparameters/SyncApplyParameters.java | 0 ...rametersInstancenameListstringBoolean.java | 6 +- ...pplyParametersStringListstringBoolean.java | 0 .../SyncCreateSetCredentialsProvider.java | 0 .../SyncCreateSetCredentialsProvider1.java | 0 .../create/SyncCreateSetEndpoint.java | 0 .../createinstance/AsyncCreateInstance.java | 0 .../AsyncCreateInstanceLRO.java | 0 .../createinstance/SyncCreateInstance.java | 0 ...ateInstanceLocationnameInstanceString.java | 0 ...yncCreateInstanceStringInstanceString.java | 0 .../deleteinstance/AsyncDeleteInstance.java | 0 .../AsyncDeleteInstanceLRO.java | 0 .../deleteinstance/SyncDeleteInstance.java | 1 + .../SyncDeleteInstanceInstancename.java | 1 + .../SyncDeleteInstanceString.java | 1 + .../getinstance/AsyncGetInstance.java | 0 .../getinstance/SyncGetInstance.java | 0 .../SyncGetInstanceInstancename.java | 0 .../getinstance/SyncGetInstanceString.java | 0 .../listinstances/AsyncListInstances.java | 0 .../AsyncListInstancesPaged.java | 0 .../listinstances/SyncListInstances.java | 0 .../SyncListInstancesLocationname.java | 0 .../SyncListInstancesString.java | 0 .../updateinstance/AsyncUpdateInstance.java | 0 .../AsyncUpdateInstanceLRO.java | 0 .../updateinstance/SyncUpdateInstance.java | 0 .../SyncUpdateInstanceInstanceFieldmask.java | 0 .../AsyncUpdateParameters.java | 0 .../AsyncUpdateParametersLRO.java | 0 .../SyncUpdateParameters.java | 0 ...stancenameFieldmaskMemcacheparameters.java | 6 +- ...tersStringFieldmaskMemcacheparameters.java | 6 +- .../getinstance/SyncGetInstance.java | 0 .../getinstance/SyncGetInstance.java | 0 .../memcache/v1beta2/CloudMemcacheClient.java | 47 +- .../v1beta2/CloudMemcacheSettings.java | 7 +- .../memcache/v1beta2/gapic_metadata.json | 0 .../cloud/memcache/v1beta2/package-info.java | 10 +- .../v1beta2/stub/CloudMemcacheStub.java | 0 .../stub/CloudMemcacheStubSettings.java | 6 +- .../GrpcCloudMemcacheCallableFactory.java | 0 .../v1beta2/stub/GrpcCloudMemcacheStub.java | 1 + .../HttpJsonCloudMemcacheCallableFactory.java | 0 .../stub/HttpJsonCloudMemcacheStub.java | 1 + .../CloudMemcacheClientHttpJsonTest.java | 0 .../v1beta2/CloudMemcacheClientTest.java | 0 .../memcache/v1beta2/MockCloudMemcache.java | 0 .../v1beta2/MockCloudMemcacheImpl.java | 0 .../memcache/v1beta2/CloudMemcacheGrpc.java | 976 ++++ .../v1beta2/ApplyParametersRequest.java | 490 +- .../ApplyParametersRequestOrBuilder.java | 56 +- .../v1beta2/ApplySoftwareUpdateRequest.java | 497 +-- .../ApplySoftwareUpdateRequestOrBuilder.java | 56 +- .../memcache/v1beta2/CloudMemcacheProto.java | 438 ++ .../v1beta2/CreateInstanceRequest.java | 570 +-- .../CreateInstanceRequestOrBuilder.java | 64 +- .../v1beta2/DeleteInstanceRequest.java | 342 +- .../DeleteInstanceRequestOrBuilder.java | 33 + .../memcache/v1beta2/GetInstanceRequest.java | 339 +- .../v1beta2/GetInstanceRequestOrBuilder.java | 33 + .../cloud/memcache/v1beta2/Instance.java | 3922 ++++++----------- .../cloud/memcache/v1beta2/InstanceName.java | 0 .../memcache/v1beta2/InstanceOrBuilder.java | 267 +- .../v1beta2/ListInstancesRequest.java | 615 ++- .../ListInstancesRequestOrBuilder.java | 65 +- .../v1beta2/ListInstancesResponse.java | 573 +-- .../ListInstancesResponseOrBuilder.java | 63 +- .../memcache/v1beta2/LocationMetadata.java | 536 +-- .../v1beta2/LocationMetadataOrBuilder.java | 67 +- .../cloud/memcache/v1beta2/LocationName.java | 0 .../memcache/v1beta2/MemcacheParameters.java | 575 ++- .../v1beta2/MemcacheParametersOrBuilder.java | 58 +- .../memcache/v1beta2/MemcacheVersion.java | 83 +- .../memcache/v1beta2/OperationMetadata.java | 852 ++-- .../v1beta2/OperationMetadataOrBuilder.java | 91 +- .../v1beta2/UpdateInstanceRequest.java | 519 +-- .../UpdateInstanceRequestOrBuilder.java | 55 +- .../v1beta2/UpdateParametersRequest.java | 571 +-- .../UpdateParametersRequestOrBuilder.java | 60 +- .../cloud/memcache/v1beta2/ZoneMetadata.java | 229 +- .../v1beta2/ZoneMetadataOrBuilder.java | 9 + .../memcache/v1beta2/cloud_memcache.proto | 0 .../applyparameters/AsyncApplyParameters.java | 0 .../AsyncApplyParametersLRO.java | 0 .../applyparameters/SyncApplyParameters.java | 0 ...rametersInstancenameListstringBoolean.java | 6 +- ...pplyParametersStringListstringBoolean.java | 3 +- .../AsyncApplySoftwareUpdate.java | 0 .../AsyncApplySoftwareUpdateLRO.java | 0 .../SyncApplySoftwareUpdate.java | 0 ...reUpdateInstancenameListstringBoolean.java | 6 +- ...SoftwareUpdateStringListstringBoolean.java | 6 +- .../SyncCreateSetCredentialsProvider.java | 0 .../SyncCreateSetCredentialsProvider1.java | 0 .../create/SyncCreateSetEndpoint.java | 0 .../createinstance/AsyncCreateInstance.java | 0 .../AsyncCreateInstanceLRO.java | 0 .../createinstance/SyncCreateInstance.java | 0 ...ateInstanceLocationnameStringInstance.java | 6 +- ...yncCreateInstanceStringStringInstance.java | 0 .../deleteinstance/AsyncDeleteInstance.java | 0 .../AsyncDeleteInstanceLRO.java | 0 .../deleteinstance/SyncDeleteInstance.java | 1 + .../SyncDeleteInstanceInstancename.java | 1 + .../SyncDeleteInstanceString.java | 1 + .../getinstance/AsyncGetInstance.java | 0 .../getinstance/SyncGetInstance.java | 0 .../SyncGetInstanceInstancename.java | 0 .../getinstance/SyncGetInstanceString.java | 0 .../listinstances/AsyncListInstances.java | 0 .../AsyncListInstancesPaged.java | 0 .../listinstances/SyncListInstances.java | 0 .../SyncListInstancesLocationname.java | 0 .../SyncListInstancesString.java | 0 .../updateinstance/AsyncUpdateInstance.java | 0 .../AsyncUpdateInstanceLRO.java | 0 .../updateinstance/SyncUpdateInstance.java | 0 .../SyncUpdateInstanceFieldmaskInstance.java | 0 .../AsyncUpdateParameters.java | 0 .../AsyncUpdateParametersLRO.java | 0 .../SyncUpdateParameters.java | 0 ...stancenameFieldmaskMemcacheparameters.java | 6 +- ...tersStringFieldmaskMemcacheparameters.java | 6 +- .../getinstance/SyncGetInstance.java | 0 .../getinstance/SyncGetInstance.java | 0 .../cloud/memcache/v1/CloudMemcacheProto.java | 423 -- .../v1/DeleteInstanceRequestOrBuilder.java | 58 - .../v1/GetInstanceRequestOrBuilder.java | 58 - .../memcache/v1beta2/CloudMemcacheProto.java | 496 --- .../DeleteInstanceRequestOrBuilder.java | 58 - .../v1beta2/GetInstanceRequestOrBuilder.java | 58 - .../v1beta2/ZoneMetadataOrBuilder.java | 24 - 180 files changed, 11009 insertions(+), 17171 deletions(-) delete mode 100644 grpc-google-cloud-memcache-v1/src/main/java/com/google/cloud/memcache/v1/CloudMemcacheGrpc.java delete mode 100644 grpc-google-cloud-memcache-v1beta2/src/main/java/com/google/cloud/memcache/v1beta2/CloudMemcacheGrpc.java rename {google-cloud-memcache => owl-bot-staging/v1/google-cloud-memcache}/src/main/java/com/google/cloud/memcache/v1/CloudMemcacheClient.java (97%) rename {google-cloud-memcache => owl-bot-staging/v1/google-cloud-memcache}/src/main/java/com/google/cloud/memcache/v1/CloudMemcacheSettings.java (97%) rename {google-cloud-memcache => owl-bot-staging/v1/google-cloud-memcache}/src/main/java/com/google/cloud/memcache/v1/gapic_metadata.json (100%) rename {google-cloud-memcache => owl-bot-staging/v1/google-cloud-memcache}/src/main/java/com/google/cloud/memcache/v1/package-info.java (81%) rename {google-cloud-memcache => owl-bot-staging/v1/google-cloud-memcache}/src/main/java/com/google/cloud/memcache/v1/stub/CloudMemcacheStub.java (100%) rename {google-cloud-memcache => owl-bot-staging/v1/google-cloud-memcache}/src/main/java/com/google/cloud/memcache/v1/stub/CloudMemcacheStubSettings.java (99%) rename {google-cloud-memcache => owl-bot-staging/v1/google-cloud-memcache}/src/main/java/com/google/cloud/memcache/v1/stub/GrpcCloudMemcacheCallableFactory.java (100%) rename {google-cloud-memcache => owl-bot-staging/v1/google-cloud-memcache}/src/main/java/com/google/cloud/memcache/v1/stub/GrpcCloudMemcacheStub.java (99%) rename {google-cloud-memcache => owl-bot-staging/v1/google-cloud-memcache}/src/main/java/com/google/cloud/memcache/v1/stub/HttpJsonCloudMemcacheCallableFactory.java (100%) rename {google-cloud-memcache => owl-bot-staging/v1/google-cloud-memcache}/src/main/java/com/google/cloud/memcache/v1/stub/HttpJsonCloudMemcacheStub.java (99%) rename {google-cloud-memcache => owl-bot-staging/v1/google-cloud-memcache}/src/test/java/com/google/cloud/memcache/v1/CloudMemcacheClientHttpJsonTest.java (100%) rename {google-cloud-memcache => owl-bot-staging/v1/google-cloud-memcache}/src/test/java/com/google/cloud/memcache/v1/CloudMemcacheClientTest.java (100%) rename {google-cloud-memcache => owl-bot-staging/v1/google-cloud-memcache}/src/test/java/com/google/cloud/memcache/v1/MockCloudMemcache.java (100%) rename {google-cloud-memcache => owl-bot-staging/v1/google-cloud-memcache}/src/test/java/com/google/cloud/memcache/v1/MockCloudMemcacheImpl.java (100%) create mode 100644 owl-bot-staging/v1/grpc-google-cloud-memcache-v1/src/main/java/com/google/cloud/memcache/v1/CloudMemcacheGrpc.java rename {proto-google-cloud-memcache-v1 => owl-bot-staging/v1/proto-google-cloud-memcache-v1}/src/main/java/com/google/cloud/memcache/v1/ApplyParametersRequest.java (70%) rename {proto-google-cloud-memcache-v1 => owl-bot-staging/v1/proto-google-cloud-memcache-v1}/src/main/java/com/google/cloud/memcache/v1/ApplyParametersRequestOrBuilder.java (63%) create mode 100644 owl-bot-staging/v1/proto-google-cloud-memcache-v1/src/main/java/com/google/cloud/memcache/v1/CloudMemcacheProto.java rename {proto-google-cloud-memcache-v1 => owl-bot-staging/v1/proto-google-cloud-memcache-v1}/src/main/java/com/google/cloud/memcache/v1/CreateInstanceRequest.java (67%) rename {proto-google-cloud-memcache-v1 => owl-bot-staging/v1/proto-google-cloud-memcache-v1}/src/main/java/com/google/cloud/memcache/v1/CreateInstanceRequestOrBuilder.java (62%) rename {proto-google-cloud-memcache-v1 => owl-bot-staging/v1/proto-google-cloud-memcache-v1}/src/main/java/com/google/cloud/memcache/v1/DeleteInstanceRequest.java (66%) create mode 100644 owl-bot-staging/v1/proto-google-cloud-memcache-v1/src/main/java/com/google/cloud/memcache/v1/DeleteInstanceRequestOrBuilder.java rename {proto-google-cloud-memcache-v1 => owl-bot-staging/v1/proto-google-cloud-memcache-v1}/src/main/java/com/google/cloud/memcache/v1/GetInstanceRequest.java (67%) create mode 100644 owl-bot-staging/v1/proto-google-cloud-memcache-v1/src/main/java/com/google/cloud/memcache/v1/GetInstanceRequestOrBuilder.java rename {proto-google-cloud-memcache-v1 => owl-bot-staging/v1/proto-google-cloud-memcache-v1}/src/main/java/com/google/cloud/memcache/v1/Instance.java (72%) rename {proto-google-cloud-memcache-v1 => owl-bot-staging/v1/proto-google-cloud-memcache-v1}/src/main/java/com/google/cloud/memcache/v1/InstanceName.java (100%) rename {proto-google-cloud-memcache-v1 => owl-bot-staging/v1/proto-google-cloud-memcache-v1}/src/main/java/com/google/cloud/memcache/v1/InstanceOrBuilder.java (77%) rename {proto-google-cloud-memcache-v1 => owl-bot-staging/v1/proto-google-cloud-memcache-v1}/src/main/java/com/google/cloud/memcache/v1/ListInstancesRequest.java (71%) rename {proto-google-cloud-memcache-v1 => owl-bot-staging/v1/proto-google-cloud-memcache-v1}/src/main/java/com/google/cloud/memcache/v1/ListInstancesRequestOrBuilder.java (68%) rename {proto-google-cloud-memcache-v1 => owl-bot-staging/v1/proto-google-cloud-memcache-v1}/src/main/java/com/google/cloud/memcache/v1/ListInstancesResponse.java (76%) rename {proto-google-cloud-memcache-v1 => owl-bot-staging/v1/proto-google-cloud-memcache-v1}/src/main/java/com/google/cloud/memcache/v1/ListInstancesResponseOrBuilder.java (78%) rename {proto-google-cloud-memcache-v1 => owl-bot-staging/v1/proto-google-cloud-memcache-v1}/src/main/java/com/google/cloud/memcache/v1/LocationName.java (100%) rename {proto-google-cloud-memcache-v1 => owl-bot-staging/v1/proto-google-cloud-memcache-v1}/src/main/java/com/google/cloud/memcache/v1/MemcacheParameters.java (64%) rename {proto-google-cloud-memcache-v1 => owl-bot-staging/v1/proto-google-cloud-memcache-v1}/src/main/java/com/google/cloud/memcache/v1/MemcacheParametersOrBuilder.java (65%) rename {proto-google-cloud-memcache-v1 => owl-bot-staging/v1/proto-google-cloud-memcache-v1}/src/main/java/com/google/cloud/memcache/v1/MemcacheVersion.java (61%) rename {proto-google-cloud-memcache-v1 => owl-bot-staging/v1/proto-google-cloud-memcache-v1}/src/main/java/com/google/cloud/memcache/v1/OperationMetadata.java (71%) rename {proto-google-cloud-memcache-v1 => owl-bot-staging/v1/proto-google-cloud-memcache-v1}/src/main/java/com/google/cloud/memcache/v1/OperationMetadataOrBuilder.java (75%) rename {proto-google-cloud-memcache-v1 => owl-bot-staging/v1/proto-google-cloud-memcache-v1}/src/main/java/com/google/cloud/memcache/v1/UpdateInstanceRequest.java (64%) rename {proto-google-cloud-memcache-v1 => owl-bot-staging/v1/proto-google-cloud-memcache-v1}/src/main/java/com/google/cloud/memcache/v1/UpdateInstanceRequestOrBuilder.java (57%) rename {proto-google-cloud-memcache-v1 => owl-bot-staging/v1/proto-google-cloud-memcache-v1}/src/main/java/com/google/cloud/memcache/v1/UpdateParametersRequest.java (67%) rename {proto-google-cloud-memcache-v1 => owl-bot-staging/v1/proto-google-cloud-memcache-v1}/src/main/java/com/google/cloud/memcache/v1/UpdateParametersRequestOrBuilder.java (63%) rename {proto-google-cloud-memcache-v1 => owl-bot-staging/v1/proto-google-cloud-memcache-v1}/src/main/proto/google/cloud/memcache/v1/cloud_memcache.proto (100%) rename {samples => owl-bot-staging/v1/samples}/snippets/generated/com/google/cloud/memcache/v1/cloudmemcacheclient/applyparameters/AsyncApplyParameters.java (100%) rename {samples => owl-bot-staging/v1/samples}/snippets/generated/com/google/cloud/memcache/v1/cloudmemcacheclient/applyparameters/AsyncApplyParametersLRO.java (100%) rename {samples => owl-bot-staging/v1/samples}/snippets/generated/com/google/cloud/memcache/v1/cloudmemcacheclient/applyparameters/SyncApplyParameters.java (100%) rename {samples => owl-bot-staging/v1/samples}/snippets/generated/com/google/cloud/memcache/v1/cloudmemcacheclient/applyparameters/SyncApplyParametersInstancenameListstringBoolean.java (88%) rename {samples => owl-bot-staging/v1/samples}/snippets/generated/com/google/cloud/memcache/v1/cloudmemcacheclient/applyparameters/SyncApplyParametersStringListstringBoolean.java (100%) rename {samples => owl-bot-staging/v1/samples}/snippets/generated/com/google/cloud/memcache/v1/cloudmemcacheclient/create/SyncCreateSetCredentialsProvider.java (100%) rename {samples => owl-bot-staging/v1/samples}/snippets/generated/com/google/cloud/memcache/v1/cloudmemcacheclient/create/SyncCreateSetCredentialsProvider1.java (100%) rename {samples => owl-bot-staging/v1/samples}/snippets/generated/com/google/cloud/memcache/v1/cloudmemcacheclient/create/SyncCreateSetEndpoint.java (100%) rename {samples => owl-bot-staging/v1/samples}/snippets/generated/com/google/cloud/memcache/v1/cloudmemcacheclient/createinstance/AsyncCreateInstance.java (100%) rename {samples => owl-bot-staging/v1/samples}/snippets/generated/com/google/cloud/memcache/v1/cloudmemcacheclient/createinstance/AsyncCreateInstanceLRO.java (100%) rename {samples => owl-bot-staging/v1/samples}/snippets/generated/com/google/cloud/memcache/v1/cloudmemcacheclient/createinstance/SyncCreateInstance.java (100%) rename {samples => owl-bot-staging/v1/samples}/snippets/generated/com/google/cloud/memcache/v1/cloudmemcacheclient/createinstance/SyncCreateInstanceLocationnameInstanceString.java (100%) rename {samples => owl-bot-staging/v1/samples}/snippets/generated/com/google/cloud/memcache/v1/cloudmemcacheclient/createinstance/SyncCreateInstanceStringInstanceString.java (100%) rename {samples => owl-bot-staging/v1/samples}/snippets/generated/com/google/cloud/memcache/v1/cloudmemcacheclient/deleteinstance/AsyncDeleteInstance.java (100%) rename {samples => owl-bot-staging/v1/samples}/snippets/generated/com/google/cloud/memcache/v1/cloudmemcacheclient/deleteinstance/AsyncDeleteInstanceLRO.java (100%) rename {samples => owl-bot-staging/v1/samples}/snippets/generated/com/google/cloud/memcache/v1/cloudmemcacheclient/deleteinstance/SyncDeleteInstance.java (97%) rename {samples => owl-bot-staging/v1/samples}/snippets/generated/com/google/cloud/memcache/v1/cloudmemcacheclient/deleteinstance/SyncDeleteInstanceInstancename.java (97%) rename {samples => owl-bot-staging/v1/samples}/snippets/generated/com/google/cloud/memcache/v1/cloudmemcacheclient/deleteinstance/SyncDeleteInstanceString.java (97%) rename {samples => owl-bot-staging/v1/samples}/snippets/generated/com/google/cloud/memcache/v1/cloudmemcacheclient/getinstance/AsyncGetInstance.java (100%) rename {samples => owl-bot-staging/v1/samples}/snippets/generated/com/google/cloud/memcache/v1/cloudmemcacheclient/getinstance/SyncGetInstance.java (100%) rename {samples => owl-bot-staging/v1/samples}/snippets/generated/com/google/cloud/memcache/v1/cloudmemcacheclient/getinstance/SyncGetInstanceInstancename.java (100%) rename {samples => owl-bot-staging/v1/samples}/snippets/generated/com/google/cloud/memcache/v1/cloudmemcacheclient/getinstance/SyncGetInstanceString.java (100%) rename {samples => owl-bot-staging/v1/samples}/snippets/generated/com/google/cloud/memcache/v1/cloudmemcacheclient/listinstances/AsyncListInstances.java (100%) rename {samples => owl-bot-staging/v1/samples}/snippets/generated/com/google/cloud/memcache/v1/cloudmemcacheclient/listinstances/AsyncListInstancesPaged.java (100%) rename {samples => owl-bot-staging/v1/samples}/snippets/generated/com/google/cloud/memcache/v1/cloudmemcacheclient/listinstances/SyncListInstances.java (100%) rename {samples => owl-bot-staging/v1/samples}/snippets/generated/com/google/cloud/memcache/v1/cloudmemcacheclient/listinstances/SyncListInstancesLocationname.java (100%) rename {samples => owl-bot-staging/v1/samples}/snippets/generated/com/google/cloud/memcache/v1/cloudmemcacheclient/listinstances/SyncListInstancesString.java (100%) rename {samples => owl-bot-staging/v1/samples}/snippets/generated/com/google/cloud/memcache/v1/cloudmemcacheclient/updateinstance/AsyncUpdateInstance.java (100%) rename {samples => owl-bot-staging/v1/samples}/snippets/generated/com/google/cloud/memcache/v1/cloudmemcacheclient/updateinstance/AsyncUpdateInstanceLRO.java (100%) rename {samples => owl-bot-staging/v1/samples}/snippets/generated/com/google/cloud/memcache/v1/cloudmemcacheclient/updateinstance/SyncUpdateInstance.java (100%) rename {samples => owl-bot-staging/v1/samples}/snippets/generated/com/google/cloud/memcache/v1/cloudmemcacheclient/updateinstance/SyncUpdateInstanceInstanceFieldmask.java (100%) rename {samples => owl-bot-staging/v1/samples}/snippets/generated/com/google/cloud/memcache/v1/cloudmemcacheclient/updateparameters/AsyncUpdateParameters.java (100%) rename {samples => owl-bot-staging/v1/samples}/snippets/generated/com/google/cloud/memcache/v1/cloudmemcacheclient/updateparameters/AsyncUpdateParametersLRO.java (100%) rename {samples => owl-bot-staging/v1/samples}/snippets/generated/com/google/cloud/memcache/v1/cloudmemcacheclient/updateparameters/SyncUpdateParameters.java (100%) rename {samples => owl-bot-staging/v1/samples}/snippets/generated/com/google/cloud/memcache/v1/cloudmemcacheclient/updateparameters/SyncUpdateParametersInstancenameFieldmaskMemcacheparameters.java (88%) rename {samples => owl-bot-staging/v1/samples}/snippets/generated/com/google/cloud/memcache/v1/cloudmemcacheclient/updateparameters/SyncUpdateParametersStringFieldmaskMemcacheparameters.java (88%) rename {samples => owl-bot-staging/v1/samples}/snippets/generated/com/google/cloud/memcache/v1/cloudmemcachesettings/getinstance/SyncGetInstance.java (100%) rename {samples => owl-bot-staging/v1/samples}/snippets/generated/com/google/cloud/memcache/v1/stub/cloudmemcachestubsettings/getinstance/SyncGetInstance.java (100%) rename {google-cloud-memcache => owl-bot-staging/v1beta2/google-cloud-memcache}/src/main/java/com/google/cloud/memcache/v1beta2/CloudMemcacheClient.java (97%) rename {google-cloud-memcache => owl-bot-staging/v1beta2/google-cloud-memcache}/src/main/java/com/google/cloud/memcache/v1beta2/CloudMemcacheSettings.java (97%) rename {google-cloud-memcache => owl-bot-staging/v1beta2/google-cloud-memcache}/src/main/java/com/google/cloud/memcache/v1beta2/gapic_metadata.json (100%) rename {google-cloud-memcache => owl-bot-staging/v1beta2/google-cloud-memcache}/src/main/java/com/google/cloud/memcache/v1beta2/package-info.java (81%) rename {google-cloud-memcache => owl-bot-staging/v1beta2/google-cloud-memcache}/src/main/java/com/google/cloud/memcache/v1beta2/stub/CloudMemcacheStub.java (100%) rename {google-cloud-memcache => owl-bot-staging/v1beta2/google-cloud-memcache}/src/main/java/com/google/cloud/memcache/v1beta2/stub/CloudMemcacheStubSettings.java (99%) rename {google-cloud-memcache => owl-bot-staging/v1beta2/google-cloud-memcache}/src/main/java/com/google/cloud/memcache/v1beta2/stub/GrpcCloudMemcacheCallableFactory.java (100%) rename {google-cloud-memcache => owl-bot-staging/v1beta2/google-cloud-memcache}/src/main/java/com/google/cloud/memcache/v1beta2/stub/GrpcCloudMemcacheStub.java (99%) rename {google-cloud-memcache => owl-bot-staging/v1beta2/google-cloud-memcache}/src/main/java/com/google/cloud/memcache/v1beta2/stub/HttpJsonCloudMemcacheCallableFactory.java (100%) rename {google-cloud-memcache => owl-bot-staging/v1beta2/google-cloud-memcache}/src/main/java/com/google/cloud/memcache/v1beta2/stub/HttpJsonCloudMemcacheStub.java (99%) rename {google-cloud-memcache => owl-bot-staging/v1beta2/google-cloud-memcache}/src/test/java/com/google/cloud/memcache/v1beta2/CloudMemcacheClientHttpJsonTest.java (100%) rename {google-cloud-memcache => owl-bot-staging/v1beta2/google-cloud-memcache}/src/test/java/com/google/cloud/memcache/v1beta2/CloudMemcacheClientTest.java (100%) rename {google-cloud-memcache => owl-bot-staging/v1beta2/google-cloud-memcache}/src/test/java/com/google/cloud/memcache/v1beta2/MockCloudMemcache.java (100%) rename {google-cloud-memcache => owl-bot-staging/v1beta2/google-cloud-memcache}/src/test/java/com/google/cloud/memcache/v1beta2/MockCloudMemcacheImpl.java (100%) create mode 100644 owl-bot-staging/v1beta2/grpc-google-cloud-memcache-v1beta2/src/main/java/com/google/cloud/memcache/v1beta2/CloudMemcacheGrpc.java rename {proto-google-cloud-memcache-v1beta2 => owl-bot-staging/v1beta2/proto-google-cloud-memcache-v1beta2}/src/main/java/com/google/cloud/memcache/v1beta2/ApplyParametersRequest.java (70%) rename {proto-google-cloud-memcache-v1beta2 => owl-bot-staging/v1beta2/proto-google-cloud-memcache-v1beta2}/src/main/java/com/google/cloud/memcache/v1beta2/ApplyParametersRequestOrBuilder.java (63%) rename {proto-google-cloud-memcache-v1beta2 => owl-bot-staging/v1beta2/proto-google-cloud-memcache-v1beta2}/src/main/java/com/google/cloud/memcache/v1beta2/ApplySoftwareUpdateRequest.java (70%) rename {proto-google-cloud-memcache-v1beta2 => owl-bot-staging/v1beta2/proto-google-cloud-memcache-v1beta2}/src/main/java/com/google/cloud/memcache/v1beta2/ApplySoftwareUpdateRequestOrBuilder.java (64%) create mode 100644 owl-bot-staging/v1beta2/proto-google-cloud-memcache-v1beta2/src/main/java/com/google/cloud/memcache/v1beta2/CloudMemcacheProto.java rename {proto-google-cloud-memcache-v1beta2 => owl-bot-staging/v1beta2/proto-google-cloud-memcache-v1beta2}/src/main/java/com/google/cloud/memcache/v1beta2/CreateInstanceRequest.java (67%) rename {proto-google-cloud-memcache-v1beta2 => owl-bot-staging/v1beta2/proto-google-cloud-memcache-v1beta2}/src/main/java/com/google/cloud/memcache/v1beta2/CreateInstanceRequestOrBuilder.java (63%) rename {proto-google-cloud-memcache-v1beta2 => owl-bot-staging/v1beta2/proto-google-cloud-memcache-v1beta2}/src/main/java/com/google/cloud/memcache/v1beta2/DeleteInstanceRequest.java (66%) create mode 100644 owl-bot-staging/v1beta2/proto-google-cloud-memcache-v1beta2/src/main/java/com/google/cloud/memcache/v1beta2/DeleteInstanceRequestOrBuilder.java rename {proto-google-cloud-memcache-v1beta2 => owl-bot-staging/v1beta2/proto-google-cloud-memcache-v1beta2}/src/main/java/com/google/cloud/memcache/v1beta2/GetInstanceRequest.java (67%) create mode 100644 owl-bot-staging/v1beta2/proto-google-cloud-memcache-v1beta2/src/main/java/com/google/cloud/memcache/v1beta2/GetInstanceRequestOrBuilder.java rename {proto-google-cloud-memcache-v1beta2 => owl-bot-staging/v1beta2/proto-google-cloud-memcache-v1beta2}/src/main/java/com/google/cloud/memcache/v1beta2/Instance.java (72%) rename {proto-google-cloud-memcache-v1beta2 => owl-bot-staging/v1beta2/proto-google-cloud-memcache-v1beta2}/src/main/java/com/google/cloud/memcache/v1beta2/InstanceName.java (100%) rename {proto-google-cloud-memcache-v1beta2 => owl-bot-staging/v1beta2/proto-google-cloud-memcache-v1beta2}/src/main/java/com/google/cloud/memcache/v1beta2/InstanceOrBuilder.java (78%) rename {proto-google-cloud-memcache-v1beta2 => owl-bot-staging/v1beta2/proto-google-cloud-memcache-v1beta2}/src/main/java/com/google/cloud/memcache/v1beta2/ListInstancesRequest.java (72%) rename {proto-google-cloud-memcache-v1beta2 => owl-bot-staging/v1beta2/proto-google-cloud-memcache-v1beta2}/src/main/java/com/google/cloud/memcache/v1beta2/ListInstancesRequestOrBuilder.java (68%) rename {proto-google-cloud-memcache-v1beta2 => owl-bot-staging/v1beta2/proto-google-cloud-memcache-v1beta2}/src/main/java/com/google/cloud/memcache/v1beta2/ListInstancesResponse.java (77%) rename {proto-google-cloud-memcache-v1beta2 => owl-bot-staging/v1beta2/proto-google-cloud-memcache-v1beta2}/src/main/java/com/google/cloud/memcache/v1beta2/ListInstancesResponseOrBuilder.java (78%) rename {proto-google-cloud-memcache-v1beta2 => owl-bot-staging/v1beta2/proto-google-cloud-memcache-v1beta2}/src/main/java/com/google/cloud/memcache/v1beta2/LocationMetadata.java (60%) rename {proto-google-cloud-memcache-v1beta2 => owl-bot-staging/v1beta2/proto-google-cloud-memcache-v1beta2}/src/main/java/com/google/cloud/memcache/v1beta2/LocationMetadataOrBuilder.java (52%) rename {proto-google-cloud-memcache-v1beta2 => owl-bot-staging/v1beta2/proto-google-cloud-memcache-v1beta2}/src/main/java/com/google/cloud/memcache/v1beta2/LocationName.java (100%) rename {proto-google-cloud-memcache-v1beta2 => owl-bot-staging/v1beta2/proto-google-cloud-memcache-v1beta2}/src/main/java/com/google/cloud/memcache/v1beta2/MemcacheParameters.java (63%) rename {proto-google-cloud-memcache-v1beta2 => owl-bot-staging/v1beta2/proto-google-cloud-memcache-v1beta2}/src/main/java/com/google/cloud/memcache/v1beta2/MemcacheParametersOrBuilder.java (58%) rename {proto-google-cloud-memcache-v1beta2 => owl-bot-staging/v1beta2/proto-google-cloud-memcache-v1beta2}/src/main/java/com/google/cloud/memcache/v1beta2/MemcacheVersion.java (60%) rename {proto-google-cloud-memcache-v1beta2 => owl-bot-staging/v1beta2/proto-google-cloud-memcache-v1beta2}/src/main/java/com/google/cloud/memcache/v1beta2/OperationMetadata.java (71%) rename {proto-google-cloud-memcache-v1beta2 => owl-bot-staging/v1beta2/proto-google-cloud-memcache-v1beta2}/src/main/java/com/google/cloud/memcache/v1beta2/OperationMetadataOrBuilder.java (75%) rename {proto-google-cloud-memcache-v1beta2 => owl-bot-staging/v1beta2/proto-google-cloud-memcache-v1beta2}/src/main/java/com/google/cloud/memcache/v1beta2/UpdateInstanceRequest.java (65%) rename {proto-google-cloud-memcache-v1beta2 => owl-bot-staging/v1beta2/proto-google-cloud-memcache-v1beta2}/src/main/java/com/google/cloud/memcache/v1beta2/UpdateInstanceRequestOrBuilder.java (57%) rename {proto-google-cloud-memcache-v1beta2 => owl-bot-staging/v1beta2/proto-google-cloud-memcache-v1beta2}/src/main/java/com/google/cloud/memcache/v1beta2/UpdateParametersRequest.java (68%) rename {proto-google-cloud-memcache-v1beta2 => owl-bot-staging/v1beta2/proto-google-cloud-memcache-v1beta2}/src/main/java/com/google/cloud/memcache/v1beta2/UpdateParametersRequestOrBuilder.java (63%) rename {proto-google-cloud-memcache-v1beta2 => owl-bot-staging/v1beta2/proto-google-cloud-memcache-v1beta2}/src/main/java/com/google/cloud/memcache/v1beta2/ZoneMetadata.java (67%) create mode 100644 owl-bot-staging/v1beta2/proto-google-cloud-memcache-v1beta2/src/main/java/com/google/cloud/memcache/v1beta2/ZoneMetadataOrBuilder.java rename {proto-google-cloud-memcache-v1beta2 => owl-bot-staging/v1beta2/proto-google-cloud-memcache-v1beta2}/src/main/proto/google/cloud/memcache/v1beta2/cloud_memcache.proto (100%) rename {samples => owl-bot-staging/v1beta2/samples}/snippets/generated/com/google/cloud/memcache/v1beta2/cloudmemcacheclient/applyparameters/AsyncApplyParameters.java (100%) rename {samples => owl-bot-staging/v1beta2/samples}/snippets/generated/com/google/cloud/memcache/v1beta2/cloudmemcacheclient/applyparameters/AsyncApplyParametersLRO.java (100%) rename {samples => owl-bot-staging/v1beta2/samples}/snippets/generated/com/google/cloud/memcache/v1beta2/cloudmemcacheclient/applyparameters/SyncApplyParameters.java (100%) rename {samples => owl-bot-staging/v1beta2/samples}/snippets/generated/com/google/cloud/memcache/v1beta2/cloudmemcacheclient/applyparameters/SyncApplyParametersInstancenameListstringBoolean.java (88%) rename {samples => owl-bot-staging/v1beta2/samples}/snippets/generated/com/google/cloud/memcache/v1beta2/cloudmemcacheclient/applyparameters/SyncApplyParametersStringListstringBoolean.java (94%) rename {samples => owl-bot-staging/v1beta2/samples}/snippets/generated/com/google/cloud/memcache/v1beta2/cloudmemcacheclient/applysoftwareupdate/AsyncApplySoftwareUpdate.java (100%) rename {samples => owl-bot-staging/v1beta2/samples}/snippets/generated/com/google/cloud/memcache/v1beta2/cloudmemcacheclient/applysoftwareupdate/AsyncApplySoftwareUpdateLRO.java (100%) rename {samples => owl-bot-staging/v1beta2/samples}/snippets/generated/com/google/cloud/memcache/v1beta2/cloudmemcacheclient/applysoftwareupdate/SyncApplySoftwareUpdate.java (100%) rename {samples => owl-bot-staging/v1beta2/samples}/snippets/generated/com/google/cloud/memcache/v1beta2/cloudmemcacheclient/applysoftwareupdate/SyncApplySoftwareUpdateInstancenameListstringBoolean.java (88%) rename {samples => owl-bot-staging/v1beta2/samples}/snippets/generated/com/google/cloud/memcache/v1beta2/cloudmemcacheclient/applysoftwareupdate/SyncApplySoftwareUpdateStringListstringBoolean.java (88%) rename {samples => owl-bot-staging/v1beta2/samples}/snippets/generated/com/google/cloud/memcache/v1beta2/cloudmemcacheclient/create/SyncCreateSetCredentialsProvider.java (100%) rename {samples => owl-bot-staging/v1beta2/samples}/snippets/generated/com/google/cloud/memcache/v1beta2/cloudmemcacheclient/create/SyncCreateSetCredentialsProvider1.java (100%) rename {samples => owl-bot-staging/v1beta2/samples}/snippets/generated/com/google/cloud/memcache/v1beta2/cloudmemcacheclient/create/SyncCreateSetEndpoint.java (100%) rename {samples => owl-bot-staging/v1beta2/samples}/snippets/generated/com/google/cloud/memcache/v1beta2/cloudmemcacheclient/createinstance/AsyncCreateInstance.java (100%) rename {samples => owl-bot-staging/v1beta2/samples}/snippets/generated/com/google/cloud/memcache/v1beta2/cloudmemcacheclient/createinstance/AsyncCreateInstanceLRO.java (100%) rename {samples => owl-bot-staging/v1beta2/samples}/snippets/generated/com/google/cloud/memcache/v1beta2/cloudmemcacheclient/createinstance/SyncCreateInstance.java (100%) rename {samples => owl-bot-staging/v1beta2/samples}/snippets/generated/com/google/cloud/memcache/v1beta2/cloudmemcacheclient/createinstance/SyncCreateInstanceLocationnameStringInstance.java (88%) rename {samples => owl-bot-staging/v1beta2/samples}/snippets/generated/com/google/cloud/memcache/v1beta2/cloudmemcacheclient/createinstance/SyncCreateInstanceStringStringInstance.java (100%) rename {samples => owl-bot-staging/v1beta2/samples}/snippets/generated/com/google/cloud/memcache/v1beta2/cloudmemcacheclient/deleteinstance/AsyncDeleteInstance.java (100%) rename {samples => owl-bot-staging/v1beta2/samples}/snippets/generated/com/google/cloud/memcache/v1beta2/cloudmemcacheclient/deleteinstance/AsyncDeleteInstanceLRO.java (100%) rename {samples => owl-bot-staging/v1beta2/samples}/snippets/generated/com/google/cloud/memcache/v1beta2/cloudmemcacheclient/deleteinstance/SyncDeleteInstance.java (98%) rename {samples => owl-bot-staging/v1beta2/samples}/snippets/generated/com/google/cloud/memcache/v1beta2/cloudmemcacheclient/deleteinstance/SyncDeleteInstanceInstancename.java (97%) rename {samples => owl-bot-staging/v1beta2/samples}/snippets/generated/com/google/cloud/memcache/v1beta2/cloudmemcacheclient/deleteinstance/SyncDeleteInstanceString.java (97%) rename {samples => owl-bot-staging/v1beta2/samples}/snippets/generated/com/google/cloud/memcache/v1beta2/cloudmemcacheclient/getinstance/AsyncGetInstance.java (100%) rename {samples => owl-bot-staging/v1beta2/samples}/snippets/generated/com/google/cloud/memcache/v1beta2/cloudmemcacheclient/getinstance/SyncGetInstance.java (100%) rename {samples => owl-bot-staging/v1beta2/samples}/snippets/generated/com/google/cloud/memcache/v1beta2/cloudmemcacheclient/getinstance/SyncGetInstanceInstancename.java (100%) rename {samples => owl-bot-staging/v1beta2/samples}/snippets/generated/com/google/cloud/memcache/v1beta2/cloudmemcacheclient/getinstance/SyncGetInstanceString.java (100%) rename {samples => owl-bot-staging/v1beta2/samples}/snippets/generated/com/google/cloud/memcache/v1beta2/cloudmemcacheclient/listinstances/AsyncListInstances.java (100%) rename {samples => owl-bot-staging/v1beta2/samples}/snippets/generated/com/google/cloud/memcache/v1beta2/cloudmemcacheclient/listinstances/AsyncListInstancesPaged.java (100%) rename {samples => owl-bot-staging/v1beta2/samples}/snippets/generated/com/google/cloud/memcache/v1beta2/cloudmemcacheclient/listinstances/SyncListInstances.java (100%) rename {samples => owl-bot-staging/v1beta2/samples}/snippets/generated/com/google/cloud/memcache/v1beta2/cloudmemcacheclient/listinstances/SyncListInstancesLocationname.java (100%) rename {samples => owl-bot-staging/v1beta2/samples}/snippets/generated/com/google/cloud/memcache/v1beta2/cloudmemcacheclient/listinstances/SyncListInstancesString.java (100%) rename {samples => owl-bot-staging/v1beta2/samples}/snippets/generated/com/google/cloud/memcache/v1beta2/cloudmemcacheclient/updateinstance/AsyncUpdateInstance.java (100%) rename {samples => owl-bot-staging/v1beta2/samples}/snippets/generated/com/google/cloud/memcache/v1beta2/cloudmemcacheclient/updateinstance/AsyncUpdateInstanceLRO.java (100%) rename {samples => owl-bot-staging/v1beta2/samples}/snippets/generated/com/google/cloud/memcache/v1beta2/cloudmemcacheclient/updateinstance/SyncUpdateInstance.java (100%) rename {samples => owl-bot-staging/v1beta2/samples}/snippets/generated/com/google/cloud/memcache/v1beta2/cloudmemcacheclient/updateinstance/SyncUpdateInstanceFieldmaskInstance.java (100%) rename {samples => owl-bot-staging/v1beta2/samples}/snippets/generated/com/google/cloud/memcache/v1beta2/cloudmemcacheclient/updateparameters/AsyncUpdateParameters.java (100%) rename {samples => owl-bot-staging/v1beta2/samples}/snippets/generated/com/google/cloud/memcache/v1beta2/cloudmemcacheclient/updateparameters/AsyncUpdateParametersLRO.java (100%) rename {samples => owl-bot-staging/v1beta2/samples}/snippets/generated/com/google/cloud/memcache/v1beta2/cloudmemcacheclient/updateparameters/SyncUpdateParameters.java (100%) rename {samples => owl-bot-staging/v1beta2/samples}/snippets/generated/com/google/cloud/memcache/v1beta2/cloudmemcacheclient/updateparameters/SyncUpdateParametersInstancenameFieldmaskMemcacheparameters.java (88%) rename {samples => owl-bot-staging/v1beta2/samples}/snippets/generated/com/google/cloud/memcache/v1beta2/cloudmemcacheclient/updateparameters/SyncUpdateParametersStringFieldmaskMemcacheparameters.java (88%) rename {samples => owl-bot-staging/v1beta2/samples}/snippets/generated/com/google/cloud/memcache/v1beta2/cloudmemcachesettings/getinstance/SyncGetInstance.java (100%) rename {samples => owl-bot-staging/v1beta2/samples}/snippets/generated/com/google/cloud/memcache/v1beta2/stub/cloudmemcachestubsettings/getinstance/SyncGetInstance.java (100%) delete mode 100644 proto-google-cloud-memcache-v1/src/main/java/com/google/cloud/memcache/v1/CloudMemcacheProto.java delete mode 100644 proto-google-cloud-memcache-v1/src/main/java/com/google/cloud/memcache/v1/DeleteInstanceRequestOrBuilder.java delete mode 100644 proto-google-cloud-memcache-v1/src/main/java/com/google/cloud/memcache/v1/GetInstanceRequestOrBuilder.java delete mode 100644 proto-google-cloud-memcache-v1beta2/src/main/java/com/google/cloud/memcache/v1beta2/CloudMemcacheProto.java delete mode 100644 proto-google-cloud-memcache-v1beta2/src/main/java/com/google/cloud/memcache/v1beta2/DeleteInstanceRequestOrBuilder.java delete mode 100644 proto-google-cloud-memcache-v1beta2/src/main/java/com/google/cloud/memcache/v1beta2/GetInstanceRequestOrBuilder.java delete mode 100644 proto-google-cloud-memcache-v1beta2/src/main/java/com/google/cloud/memcache/v1beta2/ZoneMetadataOrBuilder.java diff --git a/grpc-google-cloud-memcache-v1/src/main/java/com/google/cloud/memcache/v1/CloudMemcacheGrpc.java b/grpc-google-cloud-memcache-v1/src/main/java/com/google/cloud/memcache/v1/CloudMemcacheGrpc.java deleted file mode 100644 index 47c03cc1..00000000 --- a/grpc-google-cloud-memcache-v1/src/main/java/com/google/cloud/memcache/v1/CloudMemcacheGrpc.java +++ /dev/null @@ -1,1101 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -package com.google.cloud.memcache.v1; - -import static io.grpc.MethodDescriptor.generateFullMethodName; - -/** - * - * - *
- * Configures and manages Cloud Memorystore for Memcached instances.
- * The `memcache.googleapis.com` service implements the Google Cloud Memorystore
- * for Memcached API and defines the following resource model for managing
- * Memorystore Memcached (also called Memcached below) 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 Memcached instances, named:
- * `/instances/*`
- * * As such, Memcached instances are resources of the form:
- *   `/projects/{project_id}/locations/{location_id}/instances/{instance_id}`
- * Note that location_id must be a GCP `region`; for example:
- * * `projects/my-memcached-project/locations/us-central1/instances/my-memcached`
- * 
- */ -@javax.annotation.Generated( - value = "by gRPC proto compiler", - comments = "Source: google/cloud/memcache/v1/cloud_memcache.proto") -@io.grpc.stub.annotations.GrpcGenerated -public final class CloudMemcacheGrpc { - - private CloudMemcacheGrpc() {} - - public static final String SERVICE_NAME = "google.cloud.memcache.v1.CloudMemcache"; - - // Static method descriptors that strictly reflect the proto. - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.memcache.v1.ListInstancesRequest, - com.google.cloud.memcache.v1.ListInstancesResponse> - getListInstancesMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "ListInstances", - requestType = com.google.cloud.memcache.v1.ListInstancesRequest.class, - responseType = com.google.cloud.memcache.v1.ListInstancesResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.memcache.v1.ListInstancesRequest, - com.google.cloud.memcache.v1.ListInstancesResponse> - getListInstancesMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.memcache.v1.ListInstancesRequest, - com.google.cloud.memcache.v1.ListInstancesResponse> - getListInstancesMethod; - if ((getListInstancesMethod = CloudMemcacheGrpc.getListInstancesMethod) == null) { - synchronized (CloudMemcacheGrpc.class) { - if ((getListInstancesMethod = CloudMemcacheGrpc.getListInstancesMethod) == null) { - CloudMemcacheGrpc.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.memcache.v1.ListInstancesRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.memcache.v1.ListInstancesResponse - .getDefaultInstance())) - .setSchemaDescriptor( - new CloudMemcacheMethodDescriptorSupplier("ListInstances")) - .build(); - } - } - } - return getListInstancesMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.memcache.v1.GetInstanceRequest, com.google.cloud.memcache.v1.Instance> - getGetInstanceMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "GetInstance", - requestType = com.google.cloud.memcache.v1.GetInstanceRequest.class, - responseType = com.google.cloud.memcache.v1.Instance.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.memcache.v1.GetInstanceRequest, com.google.cloud.memcache.v1.Instance> - getGetInstanceMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.memcache.v1.GetInstanceRequest, com.google.cloud.memcache.v1.Instance> - getGetInstanceMethod; - if ((getGetInstanceMethod = CloudMemcacheGrpc.getGetInstanceMethod) == null) { - synchronized (CloudMemcacheGrpc.class) { - if ((getGetInstanceMethod = CloudMemcacheGrpc.getGetInstanceMethod) == null) { - CloudMemcacheGrpc.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.memcache.v1.GetInstanceRequest.getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.memcache.v1.Instance.getDefaultInstance())) - .setSchemaDescriptor(new CloudMemcacheMethodDescriptorSupplier("GetInstance")) - .build(); - } - } - } - return getGetInstanceMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.memcache.v1.CreateInstanceRequest, com.google.longrunning.Operation> - getCreateInstanceMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "CreateInstance", - requestType = com.google.cloud.memcache.v1.CreateInstanceRequest.class, - responseType = com.google.longrunning.Operation.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.memcache.v1.CreateInstanceRequest, com.google.longrunning.Operation> - getCreateInstanceMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.memcache.v1.CreateInstanceRequest, com.google.longrunning.Operation> - getCreateInstanceMethod; - if ((getCreateInstanceMethod = CloudMemcacheGrpc.getCreateInstanceMethod) == null) { - synchronized (CloudMemcacheGrpc.class) { - if ((getCreateInstanceMethod = CloudMemcacheGrpc.getCreateInstanceMethod) == null) { - CloudMemcacheGrpc.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.memcache.v1.CreateInstanceRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.longrunning.Operation.getDefaultInstance())) - .setSchemaDescriptor( - new CloudMemcacheMethodDescriptorSupplier("CreateInstance")) - .build(); - } - } - } - return getCreateInstanceMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.memcache.v1.UpdateInstanceRequest, com.google.longrunning.Operation> - getUpdateInstanceMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "UpdateInstance", - requestType = com.google.cloud.memcache.v1.UpdateInstanceRequest.class, - responseType = com.google.longrunning.Operation.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.memcache.v1.UpdateInstanceRequest, com.google.longrunning.Operation> - getUpdateInstanceMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.memcache.v1.UpdateInstanceRequest, com.google.longrunning.Operation> - getUpdateInstanceMethod; - if ((getUpdateInstanceMethod = CloudMemcacheGrpc.getUpdateInstanceMethod) == null) { - synchronized (CloudMemcacheGrpc.class) { - if ((getUpdateInstanceMethod = CloudMemcacheGrpc.getUpdateInstanceMethod) == null) { - CloudMemcacheGrpc.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.memcache.v1.UpdateInstanceRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.longrunning.Operation.getDefaultInstance())) - .setSchemaDescriptor( - new CloudMemcacheMethodDescriptorSupplier("UpdateInstance")) - .build(); - } - } - } - return getUpdateInstanceMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.memcache.v1.UpdateParametersRequest, com.google.longrunning.Operation> - getUpdateParametersMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "UpdateParameters", - requestType = com.google.cloud.memcache.v1.UpdateParametersRequest.class, - responseType = com.google.longrunning.Operation.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.memcache.v1.UpdateParametersRequest, com.google.longrunning.Operation> - getUpdateParametersMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.memcache.v1.UpdateParametersRequest, com.google.longrunning.Operation> - getUpdateParametersMethod; - if ((getUpdateParametersMethod = CloudMemcacheGrpc.getUpdateParametersMethod) == null) { - synchronized (CloudMemcacheGrpc.class) { - if ((getUpdateParametersMethod = CloudMemcacheGrpc.getUpdateParametersMethod) == null) { - CloudMemcacheGrpc.getUpdateParametersMethod = - getUpdateParametersMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "UpdateParameters")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.memcache.v1.UpdateParametersRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.longrunning.Operation.getDefaultInstance())) - .setSchemaDescriptor( - new CloudMemcacheMethodDescriptorSupplier("UpdateParameters")) - .build(); - } - } - } - return getUpdateParametersMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.memcache.v1.DeleteInstanceRequest, com.google.longrunning.Operation> - getDeleteInstanceMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "DeleteInstance", - requestType = com.google.cloud.memcache.v1.DeleteInstanceRequest.class, - responseType = com.google.longrunning.Operation.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.memcache.v1.DeleteInstanceRequest, com.google.longrunning.Operation> - getDeleteInstanceMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.memcache.v1.DeleteInstanceRequest, com.google.longrunning.Operation> - getDeleteInstanceMethod; - if ((getDeleteInstanceMethod = CloudMemcacheGrpc.getDeleteInstanceMethod) == null) { - synchronized (CloudMemcacheGrpc.class) { - if ((getDeleteInstanceMethod = CloudMemcacheGrpc.getDeleteInstanceMethod) == null) { - CloudMemcacheGrpc.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.memcache.v1.DeleteInstanceRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.longrunning.Operation.getDefaultInstance())) - .setSchemaDescriptor( - new CloudMemcacheMethodDescriptorSupplier("DeleteInstance")) - .build(); - } - } - } - return getDeleteInstanceMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.memcache.v1.ApplyParametersRequest, com.google.longrunning.Operation> - getApplyParametersMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "ApplyParameters", - requestType = com.google.cloud.memcache.v1.ApplyParametersRequest.class, - responseType = com.google.longrunning.Operation.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.memcache.v1.ApplyParametersRequest, com.google.longrunning.Operation> - getApplyParametersMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.memcache.v1.ApplyParametersRequest, com.google.longrunning.Operation> - getApplyParametersMethod; - if ((getApplyParametersMethod = CloudMemcacheGrpc.getApplyParametersMethod) == null) { - synchronized (CloudMemcacheGrpc.class) { - if ((getApplyParametersMethod = CloudMemcacheGrpc.getApplyParametersMethod) == null) { - CloudMemcacheGrpc.getApplyParametersMethod = - getApplyParametersMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ApplyParameters")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.memcache.v1.ApplyParametersRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.longrunning.Operation.getDefaultInstance())) - .setSchemaDescriptor( - new CloudMemcacheMethodDescriptorSupplier("ApplyParameters")) - .build(); - } - } - } - return getApplyParametersMethod; - } - - /** Creates a new async stub that supports all call types for the service */ - public static CloudMemcacheStub newStub(io.grpc.Channel channel) { - io.grpc.stub.AbstractStub.StubFactory factory = - new io.grpc.stub.AbstractStub.StubFactory() { - @java.lang.Override - public CloudMemcacheStub newStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new CloudMemcacheStub(channel, callOptions); - } - }; - return CloudMemcacheStub.newStub(factory, channel); - } - - /** - * Creates a new blocking-style stub that supports unary and streaming output calls on the service - */ - public static CloudMemcacheBlockingStub newBlockingStub(io.grpc.Channel channel) { - io.grpc.stub.AbstractStub.StubFactory factory = - new io.grpc.stub.AbstractStub.StubFactory() { - @java.lang.Override - public CloudMemcacheBlockingStub newStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new CloudMemcacheBlockingStub(channel, callOptions); - } - }; - return CloudMemcacheBlockingStub.newStub(factory, channel); - } - - /** Creates a new ListenableFuture-style stub that supports unary calls on the service */ - public static CloudMemcacheFutureStub newFutureStub(io.grpc.Channel channel) { - io.grpc.stub.AbstractStub.StubFactory factory = - new io.grpc.stub.AbstractStub.StubFactory() { - @java.lang.Override - public CloudMemcacheFutureStub newStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new CloudMemcacheFutureStub(channel, callOptions); - } - }; - return CloudMemcacheFutureStub.newStub(factory, channel); - } - - /** - * - * - *
-   * Configures and manages Cloud Memorystore for Memcached instances.
-   * The `memcache.googleapis.com` service implements the Google Cloud Memorystore
-   * for Memcached API and defines the following resource model for managing
-   * Memorystore Memcached (also called Memcached below) 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 Memcached instances, named:
-   * `/instances/*`
-   * * As such, Memcached instances are resources of the form:
-   *   `/projects/{project_id}/locations/{location_id}/instances/{instance_id}`
-   * Note that location_id must be a GCP `region`; for example:
-   * * `projects/my-memcached-project/locations/us-central1/instances/my-memcached`
-   * 
- */ - public abstract static class CloudMemcacheImplBase implements io.grpc.BindableService { - - /** - * - * - *
-     * Lists Instances in a given location.
-     * 
- */ - public void listInstances( - com.google.cloud.memcache.v1.ListInstancesRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getListInstancesMethod(), responseObserver); - } - - /** - * - * - *
-     * Gets details of a single Instance.
-     * 
- */ - public void getInstance( - com.google.cloud.memcache.v1.GetInstanceRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getGetInstanceMethod(), responseObserver); - } - - /** - * - * - *
-     * Creates a new Instance in a given location.
-     * 
- */ - public void createInstance( - com.google.cloud.memcache.v1.CreateInstanceRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getCreateInstanceMethod(), responseObserver); - } - - /** - * - * - *
-     * Updates an existing Instance in a given project and location.
-     * 
- */ - public void updateInstance( - com.google.cloud.memcache.v1.UpdateInstanceRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getUpdateInstanceMethod(), responseObserver); - } - - /** - * - * - *
-     * Updates the defined Memcached Parameters for an existing Instance.
-     * This method only stages the parameters, it must be followed by
-     * ApplyParameters to apply the parameters to nodes of the Memcached Instance.
-     * 
- */ - public void updateParameters( - com.google.cloud.memcache.v1.UpdateParametersRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getUpdateParametersMethod(), responseObserver); - } - - /** - * - * - *
-     * Deletes a single Instance.
-     * 
- */ - public void deleteInstance( - com.google.cloud.memcache.v1.DeleteInstanceRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getDeleteInstanceMethod(), responseObserver); - } - - /** - * - * - *
-     * ApplyParameters will restart the set of specified nodes in order to update
-     * them to the current set of parameters for the Memcached Instance.
-     * 
- */ - public void applyParameters( - com.google.cloud.memcache.v1.ApplyParametersRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getApplyParametersMethod(), responseObserver); - } - - @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.memcache.v1.ListInstancesRequest, - com.google.cloud.memcache.v1.ListInstancesResponse>( - this, METHODID_LIST_INSTANCES))) - .addMethod( - getGetInstanceMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.memcache.v1.GetInstanceRequest, - com.google.cloud.memcache.v1.Instance>(this, METHODID_GET_INSTANCE))) - .addMethod( - getCreateInstanceMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.memcache.v1.CreateInstanceRequest, - com.google.longrunning.Operation>(this, METHODID_CREATE_INSTANCE))) - .addMethod( - getUpdateInstanceMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.memcache.v1.UpdateInstanceRequest, - com.google.longrunning.Operation>(this, METHODID_UPDATE_INSTANCE))) - .addMethod( - getUpdateParametersMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.memcache.v1.UpdateParametersRequest, - com.google.longrunning.Operation>(this, METHODID_UPDATE_PARAMETERS))) - .addMethod( - getDeleteInstanceMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.memcache.v1.DeleteInstanceRequest, - com.google.longrunning.Operation>(this, METHODID_DELETE_INSTANCE))) - .addMethod( - getApplyParametersMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.memcache.v1.ApplyParametersRequest, - com.google.longrunning.Operation>(this, METHODID_APPLY_PARAMETERS))) - .build(); - } - } - - /** - * - * - *
-   * Configures and manages Cloud Memorystore for Memcached instances.
-   * The `memcache.googleapis.com` service implements the Google Cloud Memorystore
-   * for Memcached API and defines the following resource model for managing
-   * Memorystore Memcached (also called Memcached below) 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 Memcached instances, named:
-   * `/instances/*`
-   * * As such, Memcached instances are resources of the form:
-   *   `/projects/{project_id}/locations/{location_id}/instances/{instance_id}`
-   * Note that location_id must be a GCP `region`; for example:
-   * * `projects/my-memcached-project/locations/us-central1/instances/my-memcached`
-   * 
- */ - public static final class CloudMemcacheStub - extends io.grpc.stub.AbstractAsyncStub { - private CloudMemcacheStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - super(channel, callOptions); - } - - @java.lang.Override - protected CloudMemcacheStub build(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new CloudMemcacheStub(channel, callOptions); - } - - /** - * - * - *
-     * Lists Instances in a given location.
-     * 
- */ - public void listInstances( - com.google.cloud.memcache.v1.ListInstancesRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getListInstancesMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Gets details of a single Instance.
-     * 
- */ - public void getInstance( - com.google.cloud.memcache.v1.GetInstanceRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getGetInstanceMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Creates a new Instance in a given location.
-     * 
- */ - public void createInstance( - com.google.cloud.memcache.v1.CreateInstanceRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getCreateInstanceMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Updates an existing Instance in a given project and location.
-     * 
- */ - public void updateInstance( - com.google.cloud.memcache.v1.UpdateInstanceRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getUpdateInstanceMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Updates the defined Memcached Parameters for an existing Instance.
-     * This method only stages the parameters, it must be followed by
-     * ApplyParameters to apply the parameters to nodes of the Memcached Instance.
-     * 
- */ - public void updateParameters( - com.google.cloud.memcache.v1.UpdateParametersRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getUpdateParametersMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Deletes a single Instance.
-     * 
- */ - public void deleteInstance( - com.google.cloud.memcache.v1.DeleteInstanceRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getDeleteInstanceMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * ApplyParameters will restart the set of specified nodes in order to update
-     * them to the current set of parameters for the Memcached Instance.
-     * 
- */ - public void applyParameters( - com.google.cloud.memcache.v1.ApplyParametersRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getApplyParametersMethod(), getCallOptions()), - request, - responseObserver); - } - } - - /** - * - * - *
-   * Configures and manages Cloud Memorystore for Memcached instances.
-   * The `memcache.googleapis.com` service implements the Google Cloud Memorystore
-   * for Memcached API and defines the following resource model for managing
-   * Memorystore Memcached (also called Memcached below) 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 Memcached instances, named:
-   * `/instances/*`
-   * * As such, Memcached instances are resources of the form:
-   *   `/projects/{project_id}/locations/{location_id}/instances/{instance_id}`
-   * Note that location_id must be a GCP `region`; for example:
-   * * `projects/my-memcached-project/locations/us-central1/instances/my-memcached`
-   * 
- */ - public static final class CloudMemcacheBlockingStub - extends io.grpc.stub.AbstractBlockingStub { - private CloudMemcacheBlockingStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - super(channel, callOptions); - } - - @java.lang.Override - protected CloudMemcacheBlockingStub build( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new CloudMemcacheBlockingStub(channel, callOptions); - } - - /** - * - * - *
-     * Lists Instances in a given location.
-     * 
- */ - public com.google.cloud.memcache.v1.ListInstancesResponse listInstances( - com.google.cloud.memcache.v1.ListInstancesRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getListInstancesMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Gets details of a single Instance.
-     * 
- */ - public com.google.cloud.memcache.v1.Instance getInstance( - com.google.cloud.memcache.v1.GetInstanceRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getGetInstanceMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Creates a new Instance in a given location.
-     * 
- */ - public com.google.longrunning.Operation createInstance( - com.google.cloud.memcache.v1.CreateInstanceRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getCreateInstanceMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Updates an existing Instance in a given project and location.
-     * 
- */ - public com.google.longrunning.Operation updateInstance( - com.google.cloud.memcache.v1.UpdateInstanceRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getUpdateInstanceMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Updates the defined Memcached Parameters for an existing Instance.
-     * This method only stages the parameters, it must be followed by
-     * ApplyParameters to apply the parameters to nodes of the Memcached Instance.
-     * 
- */ - public com.google.longrunning.Operation updateParameters( - com.google.cloud.memcache.v1.UpdateParametersRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getUpdateParametersMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Deletes a single Instance.
-     * 
- */ - public com.google.longrunning.Operation deleteInstance( - com.google.cloud.memcache.v1.DeleteInstanceRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getDeleteInstanceMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * ApplyParameters will restart the set of specified nodes in order to update
-     * them to the current set of parameters for the Memcached Instance.
-     * 
- */ - public com.google.longrunning.Operation applyParameters( - com.google.cloud.memcache.v1.ApplyParametersRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getApplyParametersMethod(), getCallOptions(), request); - } - } - - /** - * - * - *
-   * Configures and manages Cloud Memorystore for Memcached instances.
-   * The `memcache.googleapis.com` service implements the Google Cloud Memorystore
-   * for Memcached API and defines the following resource model for managing
-   * Memorystore Memcached (also called Memcached below) 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 Memcached instances, named:
-   * `/instances/*`
-   * * As such, Memcached instances are resources of the form:
-   *   `/projects/{project_id}/locations/{location_id}/instances/{instance_id}`
-   * Note that location_id must be a GCP `region`; for example:
-   * * `projects/my-memcached-project/locations/us-central1/instances/my-memcached`
-   * 
- */ - public static final class CloudMemcacheFutureStub - extends io.grpc.stub.AbstractFutureStub { - private CloudMemcacheFutureStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - super(channel, callOptions); - } - - @java.lang.Override - protected CloudMemcacheFutureStub build( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new CloudMemcacheFutureStub(channel, callOptions); - } - - /** - * - * - *
-     * Lists Instances in a given location.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.memcache.v1.ListInstancesResponse> - listInstances(com.google.cloud.memcache.v1.ListInstancesRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getListInstancesMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Gets details of a single Instance.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture - getInstance(com.google.cloud.memcache.v1.GetInstanceRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getGetInstanceMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Creates a new Instance in a given location.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture - createInstance(com.google.cloud.memcache.v1.CreateInstanceRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getCreateInstanceMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Updates an existing Instance in a given project and location.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture - updateInstance(com.google.cloud.memcache.v1.UpdateInstanceRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getUpdateInstanceMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Updates the defined Memcached Parameters for an existing Instance.
-     * This method only stages the parameters, it must be followed by
-     * ApplyParameters to apply the parameters to nodes of the Memcached Instance.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture - updateParameters(com.google.cloud.memcache.v1.UpdateParametersRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getUpdateParametersMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Deletes a single Instance.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture - deleteInstance(com.google.cloud.memcache.v1.DeleteInstanceRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getDeleteInstanceMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * ApplyParameters will restart the set of specified nodes in order to update
-     * them to the current set of parameters for the Memcached Instance.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture - applyParameters(com.google.cloud.memcache.v1.ApplyParametersRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getApplyParametersMethod(), getCallOptions()), request); - } - } - - private static final int METHODID_LIST_INSTANCES = 0; - private static final int METHODID_GET_INSTANCE = 1; - private static final int METHODID_CREATE_INSTANCE = 2; - private static final int METHODID_UPDATE_INSTANCE = 3; - private static final int METHODID_UPDATE_PARAMETERS = 4; - private static final int METHODID_DELETE_INSTANCE = 5; - private static final int METHODID_APPLY_PARAMETERS = 6; - - 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 CloudMemcacheImplBase serviceImpl; - private final int methodId; - - MethodHandlers(CloudMemcacheImplBase serviceImpl, int methodId) { - this.serviceImpl = serviceImpl; - this.methodId = methodId; - } - - @java.lang.Override - @java.lang.SuppressWarnings("unchecked") - public void invoke(Req request, io.grpc.stub.StreamObserver responseObserver) { - switch (methodId) { - case METHODID_LIST_INSTANCES: - serviceImpl.listInstances( - (com.google.cloud.memcache.v1.ListInstancesRequest) request, - (io.grpc.stub.StreamObserver) - responseObserver); - break; - case METHODID_GET_INSTANCE: - serviceImpl.getInstance( - (com.google.cloud.memcache.v1.GetInstanceRequest) request, - (io.grpc.stub.StreamObserver) - responseObserver); - break; - case METHODID_CREATE_INSTANCE: - serviceImpl.createInstance( - (com.google.cloud.memcache.v1.CreateInstanceRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_UPDATE_INSTANCE: - serviceImpl.updateInstance( - (com.google.cloud.memcache.v1.UpdateInstanceRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_UPDATE_PARAMETERS: - serviceImpl.updateParameters( - (com.google.cloud.memcache.v1.UpdateParametersRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_DELETE_INSTANCE: - serviceImpl.deleteInstance( - (com.google.cloud.memcache.v1.DeleteInstanceRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_APPLY_PARAMETERS: - serviceImpl.applyParameters( - (com.google.cloud.memcache.v1.ApplyParametersRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - default: - throw new AssertionError(); - } - } - - @java.lang.Override - @java.lang.SuppressWarnings("unchecked") - public io.grpc.stub.StreamObserver invoke( - io.grpc.stub.StreamObserver responseObserver) { - switch (methodId) { - default: - throw new AssertionError(); - } - } - } - - private abstract static class CloudMemcacheBaseDescriptorSupplier - implements io.grpc.protobuf.ProtoFileDescriptorSupplier, - io.grpc.protobuf.ProtoServiceDescriptorSupplier { - CloudMemcacheBaseDescriptorSupplier() {} - - @java.lang.Override - public com.google.protobuf.Descriptors.FileDescriptor getFileDescriptor() { - return com.google.cloud.memcache.v1.CloudMemcacheProto.getDescriptor(); - } - - @java.lang.Override - public com.google.protobuf.Descriptors.ServiceDescriptor getServiceDescriptor() { - return getFileDescriptor().findServiceByName("CloudMemcache"); - } - } - - private static final class CloudMemcacheFileDescriptorSupplier - extends CloudMemcacheBaseDescriptorSupplier { - CloudMemcacheFileDescriptorSupplier() {} - } - - private static final class CloudMemcacheMethodDescriptorSupplier - extends CloudMemcacheBaseDescriptorSupplier - implements io.grpc.protobuf.ProtoMethodDescriptorSupplier { - private final String methodName; - - CloudMemcacheMethodDescriptorSupplier(String methodName) { - this.methodName = methodName; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.MethodDescriptor getMethodDescriptor() { - return getServiceDescriptor().findMethodByName(methodName); - } - } - - private static volatile io.grpc.ServiceDescriptor serviceDescriptor; - - public static io.grpc.ServiceDescriptor getServiceDescriptor() { - io.grpc.ServiceDescriptor result = serviceDescriptor; - if (result == null) { - synchronized (CloudMemcacheGrpc.class) { - result = serviceDescriptor; - if (result == null) { - serviceDescriptor = - result = - io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) - .setSchemaDescriptor(new CloudMemcacheFileDescriptorSupplier()) - .addMethod(getListInstancesMethod()) - .addMethod(getGetInstanceMethod()) - .addMethod(getCreateInstanceMethod()) - .addMethod(getUpdateInstanceMethod()) - .addMethod(getUpdateParametersMethod()) - .addMethod(getDeleteInstanceMethod()) - .addMethod(getApplyParametersMethod()) - .build(); - } - } - } - return result; - } -} diff --git a/grpc-google-cloud-memcache-v1beta2/src/main/java/com/google/cloud/memcache/v1beta2/CloudMemcacheGrpc.java b/grpc-google-cloud-memcache-v1beta2/src/main/java/com/google/cloud/memcache/v1beta2/CloudMemcacheGrpc.java deleted file mode 100644 index f9c44215..00000000 --- a/grpc-google-cloud-memcache-v1beta2/src/main/java/com/google/cloud/memcache/v1beta2/CloudMemcacheGrpc.java +++ /dev/null @@ -1,1236 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -package com.google.cloud.memcache.v1beta2; - -import static io.grpc.MethodDescriptor.generateFullMethodName; - -/** - * - * - *
- * Configures and manages Cloud Memorystore for Memcached instances.
- * The `memcache.googleapis.com` service implements the Google Cloud Memorystore
- * for Memcached API and defines the following resource model for managing
- * Memorystore Memcached (also called Memcached below) 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 Memcached instances, named:
- * `/instances/*`
- * * As such, Memcached instances are resources of the form:
- *   `/projects/{project_id}/locations/{location_id}/instances/{instance_id}`
- * Note that location_id must be a GCP `region`; for example:
- * * `projects/my-memcached-project/locations/us-central1/instances/my-memcached`
- * 
- */ -@javax.annotation.Generated( - value = "by gRPC proto compiler", - comments = "Source: google/cloud/memcache/v1beta2/cloud_memcache.proto") -@io.grpc.stub.annotations.GrpcGenerated -public final class CloudMemcacheGrpc { - - private CloudMemcacheGrpc() {} - - public static final String SERVICE_NAME = "google.cloud.memcache.v1beta2.CloudMemcache"; - - // Static method descriptors that strictly reflect the proto. - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.memcache.v1beta2.ListInstancesRequest, - com.google.cloud.memcache.v1beta2.ListInstancesResponse> - getListInstancesMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "ListInstances", - requestType = com.google.cloud.memcache.v1beta2.ListInstancesRequest.class, - responseType = com.google.cloud.memcache.v1beta2.ListInstancesResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.memcache.v1beta2.ListInstancesRequest, - com.google.cloud.memcache.v1beta2.ListInstancesResponse> - getListInstancesMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.memcache.v1beta2.ListInstancesRequest, - com.google.cloud.memcache.v1beta2.ListInstancesResponse> - getListInstancesMethod; - if ((getListInstancesMethod = CloudMemcacheGrpc.getListInstancesMethod) == null) { - synchronized (CloudMemcacheGrpc.class) { - if ((getListInstancesMethod = CloudMemcacheGrpc.getListInstancesMethod) == null) { - CloudMemcacheGrpc.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.memcache.v1beta2.ListInstancesRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.memcache.v1beta2.ListInstancesResponse - .getDefaultInstance())) - .setSchemaDescriptor( - new CloudMemcacheMethodDescriptorSupplier("ListInstances")) - .build(); - } - } - } - return getListInstancesMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.memcache.v1beta2.GetInstanceRequest, - com.google.cloud.memcache.v1beta2.Instance> - getGetInstanceMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "GetInstance", - requestType = com.google.cloud.memcache.v1beta2.GetInstanceRequest.class, - responseType = com.google.cloud.memcache.v1beta2.Instance.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.memcache.v1beta2.GetInstanceRequest, - com.google.cloud.memcache.v1beta2.Instance> - getGetInstanceMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.memcache.v1beta2.GetInstanceRequest, - com.google.cloud.memcache.v1beta2.Instance> - getGetInstanceMethod; - if ((getGetInstanceMethod = CloudMemcacheGrpc.getGetInstanceMethod) == null) { - synchronized (CloudMemcacheGrpc.class) { - if ((getGetInstanceMethod = CloudMemcacheGrpc.getGetInstanceMethod) == null) { - CloudMemcacheGrpc.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.memcache.v1beta2.GetInstanceRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.memcache.v1beta2.Instance.getDefaultInstance())) - .setSchemaDescriptor(new CloudMemcacheMethodDescriptorSupplier("GetInstance")) - .build(); - } - } - } - return getGetInstanceMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.memcache.v1beta2.CreateInstanceRequest, com.google.longrunning.Operation> - getCreateInstanceMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "CreateInstance", - requestType = com.google.cloud.memcache.v1beta2.CreateInstanceRequest.class, - responseType = com.google.longrunning.Operation.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.memcache.v1beta2.CreateInstanceRequest, com.google.longrunning.Operation> - getCreateInstanceMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.memcache.v1beta2.CreateInstanceRequest, - com.google.longrunning.Operation> - getCreateInstanceMethod; - if ((getCreateInstanceMethod = CloudMemcacheGrpc.getCreateInstanceMethod) == null) { - synchronized (CloudMemcacheGrpc.class) { - if ((getCreateInstanceMethod = CloudMemcacheGrpc.getCreateInstanceMethod) == null) { - CloudMemcacheGrpc.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.memcache.v1beta2.CreateInstanceRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.longrunning.Operation.getDefaultInstance())) - .setSchemaDescriptor( - new CloudMemcacheMethodDescriptorSupplier("CreateInstance")) - .build(); - } - } - } - return getCreateInstanceMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.memcache.v1beta2.UpdateInstanceRequest, com.google.longrunning.Operation> - getUpdateInstanceMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "UpdateInstance", - requestType = com.google.cloud.memcache.v1beta2.UpdateInstanceRequest.class, - responseType = com.google.longrunning.Operation.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.memcache.v1beta2.UpdateInstanceRequest, com.google.longrunning.Operation> - getUpdateInstanceMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.memcache.v1beta2.UpdateInstanceRequest, - com.google.longrunning.Operation> - getUpdateInstanceMethod; - if ((getUpdateInstanceMethod = CloudMemcacheGrpc.getUpdateInstanceMethod) == null) { - synchronized (CloudMemcacheGrpc.class) { - if ((getUpdateInstanceMethod = CloudMemcacheGrpc.getUpdateInstanceMethod) == null) { - CloudMemcacheGrpc.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.memcache.v1beta2.UpdateInstanceRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.longrunning.Operation.getDefaultInstance())) - .setSchemaDescriptor( - new CloudMemcacheMethodDescriptorSupplier("UpdateInstance")) - .build(); - } - } - } - return getUpdateInstanceMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.memcache.v1beta2.UpdateParametersRequest, - com.google.longrunning.Operation> - getUpdateParametersMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "UpdateParameters", - requestType = com.google.cloud.memcache.v1beta2.UpdateParametersRequest.class, - responseType = com.google.longrunning.Operation.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.memcache.v1beta2.UpdateParametersRequest, - com.google.longrunning.Operation> - getUpdateParametersMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.memcache.v1beta2.UpdateParametersRequest, - com.google.longrunning.Operation> - getUpdateParametersMethod; - if ((getUpdateParametersMethod = CloudMemcacheGrpc.getUpdateParametersMethod) == null) { - synchronized (CloudMemcacheGrpc.class) { - if ((getUpdateParametersMethod = CloudMemcacheGrpc.getUpdateParametersMethod) == null) { - CloudMemcacheGrpc.getUpdateParametersMethod = - getUpdateParametersMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "UpdateParameters")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.memcache.v1beta2.UpdateParametersRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.longrunning.Operation.getDefaultInstance())) - .setSchemaDescriptor( - new CloudMemcacheMethodDescriptorSupplier("UpdateParameters")) - .build(); - } - } - } - return getUpdateParametersMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.memcache.v1beta2.DeleteInstanceRequest, com.google.longrunning.Operation> - getDeleteInstanceMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "DeleteInstance", - requestType = com.google.cloud.memcache.v1beta2.DeleteInstanceRequest.class, - responseType = com.google.longrunning.Operation.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.memcache.v1beta2.DeleteInstanceRequest, com.google.longrunning.Operation> - getDeleteInstanceMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.memcache.v1beta2.DeleteInstanceRequest, - com.google.longrunning.Operation> - getDeleteInstanceMethod; - if ((getDeleteInstanceMethod = CloudMemcacheGrpc.getDeleteInstanceMethod) == null) { - synchronized (CloudMemcacheGrpc.class) { - if ((getDeleteInstanceMethod = CloudMemcacheGrpc.getDeleteInstanceMethod) == null) { - CloudMemcacheGrpc.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.memcache.v1beta2.DeleteInstanceRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.longrunning.Operation.getDefaultInstance())) - .setSchemaDescriptor( - new CloudMemcacheMethodDescriptorSupplier("DeleteInstance")) - .build(); - } - } - } - return getDeleteInstanceMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.memcache.v1beta2.ApplyParametersRequest, - com.google.longrunning.Operation> - getApplyParametersMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "ApplyParameters", - requestType = com.google.cloud.memcache.v1beta2.ApplyParametersRequest.class, - responseType = com.google.longrunning.Operation.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.memcache.v1beta2.ApplyParametersRequest, - com.google.longrunning.Operation> - getApplyParametersMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.memcache.v1beta2.ApplyParametersRequest, - com.google.longrunning.Operation> - getApplyParametersMethod; - if ((getApplyParametersMethod = CloudMemcacheGrpc.getApplyParametersMethod) == null) { - synchronized (CloudMemcacheGrpc.class) { - if ((getApplyParametersMethod = CloudMemcacheGrpc.getApplyParametersMethod) == null) { - CloudMemcacheGrpc.getApplyParametersMethod = - getApplyParametersMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ApplyParameters")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.memcache.v1beta2.ApplyParametersRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.longrunning.Operation.getDefaultInstance())) - .setSchemaDescriptor( - new CloudMemcacheMethodDescriptorSupplier("ApplyParameters")) - .build(); - } - } - } - return getApplyParametersMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.memcache.v1beta2.ApplySoftwareUpdateRequest, - com.google.longrunning.Operation> - getApplySoftwareUpdateMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "ApplySoftwareUpdate", - requestType = com.google.cloud.memcache.v1beta2.ApplySoftwareUpdateRequest.class, - responseType = com.google.longrunning.Operation.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.memcache.v1beta2.ApplySoftwareUpdateRequest, - com.google.longrunning.Operation> - getApplySoftwareUpdateMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.memcache.v1beta2.ApplySoftwareUpdateRequest, - com.google.longrunning.Operation> - getApplySoftwareUpdateMethod; - if ((getApplySoftwareUpdateMethod = CloudMemcacheGrpc.getApplySoftwareUpdateMethod) == null) { - synchronized (CloudMemcacheGrpc.class) { - if ((getApplySoftwareUpdateMethod = CloudMemcacheGrpc.getApplySoftwareUpdateMethod) - == null) { - CloudMemcacheGrpc.getApplySoftwareUpdateMethod = - getApplySoftwareUpdateMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName( - generateFullMethodName(SERVICE_NAME, "ApplySoftwareUpdate")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.memcache.v1beta2.ApplySoftwareUpdateRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.longrunning.Operation.getDefaultInstance())) - .setSchemaDescriptor( - new CloudMemcacheMethodDescriptorSupplier("ApplySoftwareUpdate")) - .build(); - } - } - } - return getApplySoftwareUpdateMethod; - } - - /** Creates a new async stub that supports all call types for the service */ - public static CloudMemcacheStub newStub(io.grpc.Channel channel) { - io.grpc.stub.AbstractStub.StubFactory factory = - new io.grpc.stub.AbstractStub.StubFactory() { - @java.lang.Override - public CloudMemcacheStub newStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new CloudMemcacheStub(channel, callOptions); - } - }; - return CloudMemcacheStub.newStub(factory, channel); - } - - /** - * Creates a new blocking-style stub that supports unary and streaming output calls on the service - */ - public static CloudMemcacheBlockingStub newBlockingStub(io.grpc.Channel channel) { - io.grpc.stub.AbstractStub.StubFactory factory = - new io.grpc.stub.AbstractStub.StubFactory() { - @java.lang.Override - public CloudMemcacheBlockingStub newStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new CloudMemcacheBlockingStub(channel, callOptions); - } - }; - return CloudMemcacheBlockingStub.newStub(factory, channel); - } - - /** Creates a new ListenableFuture-style stub that supports unary calls on the service */ - public static CloudMemcacheFutureStub newFutureStub(io.grpc.Channel channel) { - io.grpc.stub.AbstractStub.StubFactory factory = - new io.grpc.stub.AbstractStub.StubFactory() { - @java.lang.Override - public CloudMemcacheFutureStub newStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new CloudMemcacheFutureStub(channel, callOptions); - } - }; - return CloudMemcacheFutureStub.newStub(factory, channel); - } - - /** - * - * - *
-   * Configures and manages Cloud Memorystore for Memcached instances.
-   * The `memcache.googleapis.com` service implements the Google Cloud Memorystore
-   * for Memcached API and defines the following resource model for managing
-   * Memorystore Memcached (also called Memcached below) 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 Memcached instances, named:
-   * `/instances/*`
-   * * As such, Memcached instances are resources of the form:
-   *   `/projects/{project_id}/locations/{location_id}/instances/{instance_id}`
-   * Note that location_id must be a GCP `region`; for example:
-   * * `projects/my-memcached-project/locations/us-central1/instances/my-memcached`
-   * 
- */ - public abstract static class CloudMemcacheImplBase implements io.grpc.BindableService { - - /** - * - * - *
-     * Lists Instances in a given location.
-     * 
- */ - public void listInstances( - com.google.cloud.memcache.v1beta2.ListInstancesRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getListInstancesMethod(), responseObserver); - } - - /** - * - * - *
-     * Gets details of a single Instance.
-     * 
- */ - public void getInstance( - com.google.cloud.memcache.v1beta2.GetInstanceRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getGetInstanceMethod(), responseObserver); - } - - /** - * - * - *
-     * Creates a new Instance in a given location.
-     * 
- */ - public void createInstance( - com.google.cloud.memcache.v1beta2.CreateInstanceRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getCreateInstanceMethod(), responseObserver); - } - - /** - * - * - *
-     * Updates an existing Instance in a given project and location.
-     * 
- */ - public void updateInstance( - com.google.cloud.memcache.v1beta2.UpdateInstanceRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getUpdateInstanceMethod(), responseObserver); - } - - /** - * - * - *
-     * Updates the defined Memcached parameters for an existing instance.
-     * This method only stages the parameters, it must be followed by
-     * `ApplyParameters` to apply the parameters to nodes of the Memcached
-     * instance.
-     * 
- */ - public void updateParameters( - com.google.cloud.memcache.v1beta2.UpdateParametersRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getUpdateParametersMethod(), responseObserver); - } - - /** - * - * - *
-     * Deletes a single Instance.
-     * 
- */ - public void deleteInstance( - com.google.cloud.memcache.v1beta2.DeleteInstanceRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getDeleteInstanceMethod(), responseObserver); - } - - /** - * - * - *
-     * `ApplyParameters` restarts the set of specified nodes in order to update
-     * them to the current set of parameters for the Memcached Instance.
-     * 
- */ - public void applyParameters( - com.google.cloud.memcache.v1beta2.ApplyParametersRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getApplyParametersMethod(), responseObserver); - } - - /** - * - * - *
-     * Updates software on the selected nodes of the Instance.
-     * 
- */ - public void applySoftwareUpdate( - com.google.cloud.memcache.v1beta2.ApplySoftwareUpdateRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getApplySoftwareUpdateMethod(), responseObserver); - } - - @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.memcache.v1beta2.ListInstancesRequest, - com.google.cloud.memcache.v1beta2.ListInstancesResponse>( - this, METHODID_LIST_INSTANCES))) - .addMethod( - getGetInstanceMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.memcache.v1beta2.GetInstanceRequest, - com.google.cloud.memcache.v1beta2.Instance>(this, METHODID_GET_INSTANCE))) - .addMethod( - getCreateInstanceMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.memcache.v1beta2.CreateInstanceRequest, - com.google.longrunning.Operation>(this, METHODID_CREATE_INSTANCE))) - .addMethod( - getUpdateInstanceMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.memcache.v1beta2.UpdateInstanceRequest, - com.google.longrunning.Operation>(this, METHODID_UPDATE_INSTANCE))) - .addMethod( - getUpdateParametersMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.memcache.v1beta2.UpdateParametersRequest, - com.google.longrunning.Operation>(this, METHODID_UPDATE_PARAMETERS))) - .addMethod( - getDeleteInstanceMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.memcache.v1beta2.DeleteInstanceRequest, - com.google.longrunning.Operation>(this, METHODID_DELETE_INSTANCE))) - .addMethod( - getApplyParametersMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.memcache.v1beta2.ApplyParametersRequest, - com.google.longrunning.Operation>(this, METHODID_APPLY_PARAMETERS))) - .addMethod( - getApplySoftwareUpdateMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.memcache.v1beta2.ApplySoftwareUpdateRequest, - com.google.longrunning.Operation>(this, METHODID_APPLY_SOFTWARE_UPDATE))) - .build(); - } - } - - /** - * - * - *
-   * Configures and manages Cloud Memorystore for Memcached instances.
-   * The `memcache.googleapis.com` service implements the Google Cloud Memorystore
-   * for Memcached API and defines the following resource model for managing
-   * Memorystore Memcached (also called Memcached below) 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 Memcached instances, named:
-   * `/instances/*`
-   * * As such, Memcached instances are resources of the form:
-   *   `/projects/{project_id}/locations/{location_id}/instances/{instance_id}`
-   * Note that location_id must be a GCP `region`; for example:
-   * * `projects/my-memcached-project/locations/us-central1/instances/my-memcached`
-   * 
- */ - public static final class CloudMemcacheStub - extends io.grpc.stub.AbstractAsyncStub { - private CloudMemcacheStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - super(channel, callOptions); - } - - @java.lang.Override - protected CloudMemcacheStub build(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new CloudMemcacheStub(channel, callOptions); - } - - /** - * - * - *
-     * Lists Instances in a given location.
-     * 
- */ - public void listInstances( - com.google.cloud.memcache.v1beta2.ListInstancesRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getListInstancesMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Gets details of a single Instance.
-     * 
- */ - public void getInstance( - com.google.cloud.memcache.v1beta2.GetInstanceRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getGetInstanceMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Creates a new Instance in a given location.
-     * 
- */ - public void createInstance( - com.google.cloud.memcache.v1beta2.CreateInstanceRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getCreateInstanceMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Updates an existing Instance in a given project and location.
-     * 
- */ - public void updateInstance( - com.google.cloud.memcache.v1beta2.UpdateInstanceRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getUpdateInstanceMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Updates the defined Memcached parameters for an existing instance.
-     * This method only stages the parameters, it must be followed by
-     * `ApplyParameters` to apply the parameters to nodes of the Memcached
-     * instance.
-     * 
- */ - public void updateParameters( - com.google.cloud.memcache.v1beta2.UpdateParametersRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getUpdateParametersMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Deletes a single Instance.
-     * 
- */ - public void deleteInstance( - com.google.cloud.memcache.v1beta2.DeleteInstanceRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getDeleteInstanceMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * `ApplyParameters` restarts the set of specified nodes in order to update
-     * them to the current set of parameters for the Memcached Instance.
-     * 
- */ - public void applyParameters( - com.google.cloud.memcache.v1beta2.ApplyParametersRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getApplyParametersMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Updates software on the selected nodes of the Instance.
-     * 
- */ - public void applySoftwareUpdate( - com.google.cloud.memcache.v1beta2.ApplySoftwareUpdateRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getApplySoftwareUpdateMethod(), getCallOptions()), - request, - responseObserver); - } - } - - /** - * - * - *
-   * Configures and manages Cloud Memorystore for Memcached instances.
-   * The `memcache.googleapis.com` service implements the Google Cloud Memorystore
-   * for Memcached API and defines the following resource model for managing
-   * Memorystore Memcached (also called Memcached below) 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 Memcached instances, named:
-   * `/instances/*`
-   * * As such, Memcached instances are resources of the form:
-   *   `/projects/{project_id}/locations/{location_id}/instances/{instance_id}`
-   * Note that location_id must be a GCP `region`; for example:
-   * * `projects/my-memcached-project/locations/us-central1/instances/my-memcached`
-   * 
- */ - public static final class CloudMemcacheBlockingStub - extends io.grpc.stub.AbstractBlockingStub { - private CloudMemcacheBlockingStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - super(channel, callOptions); - } - - @java.lang.Override - protected CloudMemcacheBlockingStub build( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new CloudMemcacheBlockingStub(channel, callOptions); - } - - /** - * - * - *
-     * Lists Instances in a given location.
-     * 
- */ - public com.google.cloud.memcache.v1beta2.ListInstancesResponse listInstances( - com.google.cloud.memcache.v1beta2.ListInstancesRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getListInstancesMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Gets details of a single Instance.
-     * 
- */ - public com.google.cloud.memcache.v1beta2.Instance getInstance( - com.google.cloud.memcache.v1beta2.GetInstanceRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getGetInstanceMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Creates a new Instance in a given location.
-     * 
- */ - public com.google.longrunning.Operation createInstance( - com.google.cloud.memcache.v1beta2.CreateInstanceRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getCreateInstanceMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Updates an existing Instance in a given project and location.
-     * 
- */ - public com.google.longrunning.Operation updateInstance( - com.google.cloud.memcache.v1beta2.UpdateInstanceRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getUpdateInstanceMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Updates the defined Memcached parameters for an existing instance.
-     * This method only stages the parameters, it must be followed by
-     * `ApplyParameters` to apply the parameters to nodes of the Memcached
-     * instance.
-     * 
- */ - public com.google.longrunning.Operation updateParameters( - com.google.cloud.memcache.v1beta2.UpdateParametersRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getUpdateParametersMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Deletes a single Instance.
-     * 
- */ - public com.google.longrunning.Operation deleteInstance( - com.google.cloud.memcache.v1beta2.DeleteInstanceRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getDeleteInstanceMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * `ApplyParameters` restarts the set of specified nodes in order to update
-     * them to the current set of parameters for the Memcached Instance.
-     * 
- */ - public com.google.longrunning.Operation applyParameters( - com.google.cloud.memcache.v1beta2.ApplyParametersRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getApplyParametersMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Updates software on the selected nodes of the Instance.
-     * 
- */ - public com.google.longrunning.Operation applySoftwareUpdate( - com.google.cloud.memcache.v1beta2.ApplySoftwareUpdateRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getApplySoftwareUpdateMethod(), getCallOptions(), request); - } - } - - /** - * - * - *
-   * Configures and manages Cloud Memorystore for Memcached instances.
-   * The `memcache.googleapis.com` service implements the Google Cloud Memorystore
-   * for Memcached API and defines the following resource model for managing
-   * Memorystore Memcached (also called Memcached below) 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 Memcached instances, named:
-   * `/instances/*`
-   * * As such, Memcached instances are resources of the form:
-   *   `/projects/{project_id}/locations/{location_id}/instances/{instance_id}`
-   * Note that location_id must be a GCP `region`; for example:
-   * * `projects/my-memcached-project/locations/us-central1/instances/my-memcached`
-   * 
- */ - public static final class CloudMemcacheFutureStub - extends io.grpc.stub.AbstractFutureStub { - private CloudMemcacheFutureStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - super(channel, callOptions); - } - - @java.lang.Override - protected CloudMemcacheFutureStub build( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new CloudMemcacheFutureStub(channel, callOptions); - } - - /** - * - * - *
-     * Lists Instances in a given location.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.memcache.v1beta2.ListInstancesResponse> - listInstances(com.google.cloud.memcache.v1beta2.ListInstancesRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getListInstancesMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Gets details of a single Instance.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.memcache.v1beta2.Instance> - getInstance(com.google.cloud.memcache.v1beta2.GetInstanceRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getGetInstanceMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Creates a new Instance in a given location.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture - createInstance(com.google.cloud.memcache.v1beta2.CreateInstanceRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getCreateInstanceMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Updates an existing Instance in a given project and location.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture - updateInstance(com.google.cloud.memcache.v1beta2.UpdateInstanceRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getUpdateInstanceMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Updates the defined Memcached parameters for an existing instance.
-     * This method only stages the parameters, it must be followed by
-     * `ApplyParameters` to apply the parameters to nodes of the Memcached
-     * instance.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture - updateParameters(com.google.cloud.memcache.v1beta2.UpdateParametersRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getUpdateParametersMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Deletes a single Instance.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture - deleteInstance(com.google.cloud.memcache.v1beta2.DeleteInstanceRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getDeleteInstanceMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * `ApplyParameters` restarts the set of specified nodes in order to update
-     * them to the current set of parameters for the Memcached Instance.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture - applyParameters(com.google.cloud.memcache.v1beta2.ApplyParametersRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getApplyParametersMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Updates software on the selected nodes of the Instance.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture - applySoftwareUpdate(com.google.cloud.memcache.v1beta2.ApplySoftwareUpdateRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getApplySoftwareUpdateMethod(), getCallOptions()), request); - } - } - - private static final int METHODID_LIST_INSTANCES = 0; - private static final int METHODID_GET_INSTANCE = 1; - private static final int METHODID_CREATE_INSTANCE = 2; - private static final int METHODID_UPDATE_INSTANCE = 3; - private static final int METHODID_UPDATE_PARAMETERS = 4; - private static final int METHODID_DELETE_INSTANCE = 5; - private static final int METHODID_APPLY_PARAMETERS = 6; - private static final int METHODID_APPLY_SOFTWARE_UPDATE = 7; - - 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 CloudMemcacheImplBase serviceImpl; - private final int methodId; - - MethodHandlers(CloudMemcacheImplBase serviceImpl, int methodId) { - this.serviceImpl = serviceImpl; - this.methodId = methodId; - } - - @java.lang.Override - @java.lang.SuppressWarnings("unchecked") - public void invoke(Req request, io.grpc.stub.StreamObserver responseObserver) { - switch (methodId) { - case METHODID_LIST_INSTANCES: - serviceImpl.listInstances( - (com.google.cloud.memcache.v1beta2.ListInstancesRequest) request, - (io.grpc.stub.StreamObserver) - responseObserver); - break; - case METHODID_GET_INSTANCE: - serviceImpl.getInstance( - (com.google.cloud.memcache.v1beta2.GetInstanceRequest) request, - (io.grpc.stub.StreamObserver) - responseObserver); - break; - case METHODID_CREATE_INSTANCE: - serviceImpl.createInstance( - (com.google.cloud.memcache.v1beta2.CreateInstanceRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_UPDATE_INSTANCE: - serviceImpl.updateInstance( - (com.google.cloud.memcache.v1beta2.UpdateInstanceRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_UPDATE_PARAMETERS: - serviceImpl.updateParameters( - (com.google.cloud.memcache.v1beta2.UpdateParametersRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_DELETE_INSTANCE: - serviceImpl.deleteInstance( - (com.google.cloud.memcache.v1beta2.DeleteInstanceRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_APPLY_PARAMETERS: - serviceImpl.applyParameters( - (com.google.cloud.memcache.v1beta2.ApplyParametersRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_APPLY_SOFTWARE_UPDATE: - serviceImpl.applySoftwareUpdate( - (com.google.cloud.memcache.v1beta2.ApplySoftwareUpdateRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - default: - throw new AssertionError(); - } - } - - @java.lang.Override - @java.lang.SuppressWarnings("unchecked") - public io.grpc.stub.StreamObserver invoke( - io.grpc.stub.StreamObserver responseObserver) { - switch (methodId) { - default: - throw new AssertionError(); - } - } - } - - private abstract static class CloudMemcacheBaseDescriptorSupplier - implements io.grpc.protobuf.ProtoFileDescriptorSupplier, - io.grpc.protobuf.ProtoServiceDescriptorSupplier { - CloudMemcacheBaseDescriptorSupplier() {} - - @java.lang.Override - public com.google.protobuf.Descriptors.FileDescriptor getFileDescriptor() { - return com.google.cloud.memcache.v1beta2.CloudMemcacheProto.getDescriptor(); - } - - @java.lang.Override - public com.google.protobuf.Descriptors.ServiceDescriptor getServiceDescriptor() { - return getFileDescriptor().findServiceByName("CloudMemcache"); - } - } - - private static final class CloudMemcacheFileDescriptorSupplier - extends CloudMemcacheBaseDescriptorSupplier { - CloudMemcacheFileDescriptorSupplier() {} - } - - private static final class CloudMemcacheMethodDescriptorSupplier - extends CloudMemcacheBaseDescriptorSupplier - implements io.grpc.protobuf.ProtoMethodDescriptorSupplier { - private final String methodName; - - CloudMemcacheMethodDescriptorSupplier(String methodName) { - this.methodName = methodName; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.MethodDescriptor getMethodDescriptor() { - return getServiceDescriptor().findMethodByName(methodName); - } - } - - private static volatile io.grpc.ServiceDescriptor serviceDescriptor; - - public static io.grpc.ServiceDescriptor getServiceDescriptor() { - io.grpc.ServiceDescriptor result = serviceDescriptor; - if (result == null) { - synchronized (CloudMemcacheGrpc.class) { - result = serviceDescriptor; - if (result == null) { - serviceDescriptor = - result = - io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) - .setSchemaDescriptor(new CloudMemcacheFileDescriptorSupplier()) - .addMethod(getListInstancesMethod()) - .addMethod(getGetInstanceMethod()) - .addMethod(getCreateInstanceMethod()) - .addMethod(getUpdateInstanceMethod()) - .addMethod(getUpdateParametersMethod()) - .addMethod(getDeleteInstanceMethod()) - .addMethod(getApplyParametersMethod()) - .addMethod(getApplySoftwareUpdateMethod()) - .build(); - } - } - } - return result; - } -} diff --git a/google-cloud-memcache/src/main/java/com/google/cloud/memcache/v1/CloudMemcacheClient.java b/owl-bot-staging/v1/google-cloud-memcache/src/main/java/com/google/cloud/memcache/v1/CloudMemcacheClient.java similarity index 97% rename from google-cloud-memcache/src/main/java/com/google/cloud/memcache/v1/CloudMemcacheClient.java rename to owl-bot-staging/v1/google-cloud-memcache/src/main/java/com/google/cloud/memcache/v1/CloudMemcacheClient.java index 2afbbd3a..f4a0eb87 100644 --- a/google-cloud-memcache/src/main/java/com/google/cloud/memcache/v1/CloudMemcacheClient.java +++ b/owl-bot-staging/v1/google-cloud-memcache/src/main/java/com/google/cloud/memcache/v1/CloudMemcacheClient.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; @@ -47,17 +48,17 @@ * Memcached below) 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 Memcached instances, named: `/instances/*` - *
  • As such, Memcached 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 Memcached instances, named: `/instances/*` + *
  • As such, Memcached instances are resources of the form: * `/projects/{project_id}/locations/{location_id}/instances/{instance_id}` *
* *

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

    - *
  • `projects/my-memcached-project/locations/us-central1/instances/my-memcached` + *
  • `projects/my-memcached-project/locations/us-central1/instances/my-memcached` *
* *

This class provides the ability to make remote calls to the backing service through method @@ -79,13 +80,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; } @@ -489,11 +491,11 @@ public final UnaryCallable getInstanceCallable() { * @param instanceId Required. The logical name of the Memcached instance in the user 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 user 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 user project / location *
*

If any of the above are not met, will raise an invalid argument error. * @throws com.google.api.gax.rpc.ApiException if the remote call fails @@ -533,11 +535,11 @@ public final OperationFuture createInstanceAsync( * @param instanceId Required. The logical name of the Memcached instance in the user 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 user 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 user project / location *
*

If any of the above are not met, will raise an invalid argument error. * @throws com.google.api.gax.rpc.ApiException if the remote call fails @@ -1227,10 +1229,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( @@ -1280,10 +1279,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-memcache/src/main/java/com/google/cloud/memcache/v1/CloudMemcacheSettings.java b/owl-bot-staging/v1/google-cloud-memcache/src/main/java/com/google/cloud/memcache/v1/CloudMemcacheSettings.java similarity index 97% rename from google-cloud-memcache/src/main/java/com/google/cloud/memcache/v1/CloudMemcacheSettings.java rename to owl-bot-staging/v1/google-cloud-memcache/src/main/java/com/google/cloud/memcache/v1/CloudMemcacheSettings.java index 528ec1c1..383dfa53 100644 --- a/google-cloud-memcache/src/main/java/com/google/cloud/memcache/v1/CloudMemcacheSettings.java +++ b/owl-bot-staging/v1/google-cloud-memcache/src/main/java/com/google/cloud/memcache/v1/CloudMemcacheSettings.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.memcache.v1.stub.CloudMemcacheStubSettings; @@ -45,9 +46,9 @@ *

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

    - *
  • The default service address (memcache.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 (memcache.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-memcache/src/main/java/com/google/cloud/memcache/v1/gapic_metadata.json b/owl-bot-staging/v1/google-cloud-memcache/src/main/java/com/google/cloud/memcache/v1/gapic_metadata.json similarity index 100% rename from google-cloud-memcache/src/main/java/com/google/cloud/memcache/v1/gapic_metadata.json rename to owl-bot-staging/v1/google-cloud-memcache/src/main/java/com/google/cloud/memcache/v1/gapic_metadata.json diff --git a/google-cloud-memcache/src/main/java/com/google/cloud/memcache/v1/package-info.java b/owl-bot-staging/v1/google-cloud-memcache/src/main/java/com/google/cloud/memcache/v1/package-info.java similarity index 81% rename from google-cloud-memcache/src/main/java/com/google/cloud/memcache/v1/package-info.java rename to owl-bot-staging/v1/google-cloud-memcache/src/main/java/com/google/cloud/memcache/v1/package-info.java index 6b4ab8e5..28c44216 100644 --- a/google-cloud-memcache/src/main/java/com/google/cloud/memcache/v1/package-info.java +++ b/owl-bot-staging/v1/google-cloud-memcache/src/main/java/com/google/cloud/memcache/v1/package-info.java @@ -26,17 +26,17 @@ * Memcached below) 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 Memcached instances, named: `/instances/*` - *
  • As such, Memcached 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 Memcached instances, named: `/instances/*` + *
  • As such, Memcached instances are resources of the form: * `/projects/{project_id}/locations/{location_id}/instances/{instance_id}` *
* *

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

    - *
  • `projects/my-memcached-project/locations/us-central1/instances/my-memcached` + *
  • `projects/my-memcached-project/locations/us-central1/instances/my-memcached` *
* *

Sample for CloudMemcacheClient: diff --git a/google-cloud-memcache/src/main/java/com/google/cloud/memcache/v1/stub/CloudMemcacheStub.java b/owl-bot-staging/v1/google-cloud-memcache/src/main/java/com/google/cloud/memcache/v1/stub/CloudMemcacheStub.java similarity index 100% rename from google-cloud-memcache/src/main/java/com/google/cloud/memcache/v1/stub/CloudMemcacheStub.java rename to owl-bot-staging/v1/google-cloud-memcache/src/main/java/com/google/cloud/memcache/v1/stub/CloudMemcacheStub.java diff --git a/google-cloud-memcache/src/main/java/com/google/cloud/memcache/v1/stub/CloudMemcacheStubSettings.java b/owl-bot-staging/v1/google-cloud-memcache/src/main/java/com/google/cloud/memcache/v1/stub/CloudMemcacheStubSettings.java similarity index 99% rename from google-cloud-memcache/src/main/java/com/google/cloud/memcache/v1/stub/CloudMemcacheStubSettings.java rename to owl-bot-staging/v1/google-cloud-memcache/src/main/java/com/google/cloud/memcache/v1/stub/CloudMemcacheStubSettings.java index b9fbff87..684ea627 100644 --- a/google-cloud-memcache/src/main/java/com/google/cloud/memcache/v1/stub/CloudMemcacheStubSettings.java +++ b/owl-bot-staging/v1/google-cloud-memcache/src/main/java/com/google/cloud/memcache/v1/stub/CloudMemcacheStubSettings.java @@ -75,9 +75,9 @@ *

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

    - *
  • The default service address (memcache.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 (memcache.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-memcache/src/main/java/com/google/cloud/memcache/v1/stub/GrpcCloudMemcacheCallableFactory.java b/owl-bot-staging/v1/google-cloud-memcache/src/main/java/com/google/cloud/memcache/v1/stub/GrpcCloudMemcacheCallableFactory.java similarity index 100% rename from google-cloud-memcache/src/main/java/com/google/cloud/memcache/v1/stub/GrpcCloudMemcacheCallableFactory.java rename to owl-bot-staging/v1/google-cloud-memcache/src/main/java/com/google/cloud/memcache/v1/stub/GrpcCloudMemcacheCallableFactory.java diff --git a/google-cloud-memcache/src/main/java/com/google/cloud/memcache/v1/stub/GrpcCloudMemcacheStub.java b/owl-bot-staging/v1/google-cloud-memcache/src/main/java/com/google/cloud/memcache/v1/stub/GrpcCloudMemcacheStub.java similarity index 99% rename from google-cloud-memcache/src/main/java/com/google/cloud/memcache/v1/stub/GrpcCloudMemcacheStub.java rename to owl-bot-staging/v1/google-cloud-memcache/src/main/java/com/google/cloud/memcache/v1/stub/GrpcCloudMemcacheStub.java index ad20db98..104006f2 100644 --- a/google-cloud-memcache/src/main/java/com/google/cloud/memcache/v1/stub/GrpcCloudMemcacheStub.java +++ b/owl-bot-staging/v1/google-cloud-memcache/src/main/java/com/google/cloud/memcache/v1/stub/GrpcCloudMemcacheStub.java @@ -42,6 +42,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-memcache/src/main/java/com/google/cloud/memcache/v1/stub/HttpJsonCloudMemcacheCallableFactory.java b/owl-bot-staging/v1/google-cloud-memcache/src/main/java/com/google/cloud/memcache/v1/stub/HttpJsonCloudMemcacheCallableFactory.java similarity index 100% rename from google-cloud-memcache/src/main/java/com/google/cloud/memcache/v1/stub/HttpJsonCloudMemcacheCallableFactory.java rename to owl-bot-staging/v1/google-cloud-memcache/src/main/java/com/google/cloud/memcache/v1/stub/HttpJsonCloudMemcacheCallableFactory.java diff --git a/google-cloud-memcache/src/main/java/com/google/cloud/memcache/v1/stub/HttpJsonCloudMemcacheStub.java b/owl-bot-staging/v1/google-cloud-memcache/src/main/java/com/google/cloud/memcache/v1/stub/HttpJsonCloudMemcacheStub.java similarity index 99% rename from google-cloud-memcache/src/main/java/com/google/cloud/memcache/v1/stub/HttpJsonCloudMemcacheStub.java rename to owl-bot-staging/v1/google-cloud-memcache/src/main/java/com/google/cloud/memcache/v1/stub/HttpJsonCloudMemcacheStub.java index 08ebd97e..3faf1526 100644 --- a/google-cloud-memcache/src/main/java/com/google/cloud/memcache/v1/stub/HttpJsonCloudMemcacheStub.java +++ b/owl-bot-staging/v1/google-cloud-memcache/src/main/java/com/google/cloud/memcache/v1/stub/HttpJsonCloudMemcacheStub.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-memcache/src/test/java/com/google/cloud/memcache/v1/CloudMemcacheClientHttpJsonTest.java b/owl-bot-staging/v1/google-cloud-memcache/src/test/java/com/google/cloud/memcache/v1/CloudMemcacheClientHttpJsonTest.java similarity index 100% rename from google-cloud-memcache/src/test/java/com/google/cloud/memcache/v1/CloudMemcacheClientHttpJsonTest.java rename to owl-bot-staging/v1/google-cloud-memcache/src/test/java/com/google/cloud/memcache/v1/CloudMemcacheClientHttpJsonTest.java diff --git a/google-cloud-memcache/src/test/java/com/google/cloud/memcache/v1/CloudMemcacheClientTest.java b/owl-bot-staging/v1/google-cloud-memcache/src/test/java/com/google/cloud/memcache/v1/CloudMemcacheClientTest.java similarity index 100% rename from google-cloud-memcache/src/test/java/com/google/cloud/memcache/v1/CloudMemcacheClientTest.java rename to owl-bot-staging/v1/google-cloud-memcache/src/test/java/com/google/cloud/memcache/v1/CloudMemcacheClientTest.java diff --git a/google-cloud-memcache/src/test/java/com/google/cloud/memcache/v1/MockCloudMemcache.java b/owl-bot-staging/v1/google-cloud-memcache/src/test/java/com/google/cloud/memcache/v1/MockCloudMemcache.java similarity index 100% rename from google-cloud-memcache/src/test/java/com/google/cloud/memcache/v1/MockCloudMemcache.java rename to owl-bot-staging/v1/google-cloud-memcache/src/test/java/com/google/cloud/memcache/v1/MockCloudMemcache.java diff --git a/google-cloud-memcache/src/test/java/com/google/cloud/memcache/v1/MockCloudMemcacheImpl.java b/owl-bot-staging/v1/google-cloud-memcache/src/test/java/com/google/cloud/memcache/v1/MockCloudMemcacheImpl.java similarity index 100% rename from google-cloud-memcache/src/test/java/com/google/cloud/memcache/v1/MockCloudMemcacheImpl.java rename to owl-bot-staging/v1/google-cloud-memcache/src/test/java/com/google/cloud/memcache/v1/MockCloudMemcacheImpl.java diff --git a/owl-bot-staging/v1/grpc-google-cloud-memcache-v1/src/main/java/com/google/cloud/memcache/v1/CloudMemcacheGrpc.java b/owl-bot-staging/v1/grpc-google-cloud-memcache-v1/src/main/java/com/google/cloud/memcache/v1/CloudMemcacheGrpc.java new file mode 100644 index 00000000..02a99629 --- /dev/null +++ b/owl-bot-staging/v1/grpc-google-cloud-memcache-v1/src/main/java/com/google/cloud/memcache/v1/CloudMemcacheGrpc.java @@ -0,0 +1,886 @@ +package com.google.cloud.memcache.v1; + +import static io.grpc.MethodDescriptor.generateFullMethodName; + +/** + *

+ * Configures and manages Cloud Memorystore for Memcached instances.
+ * The `memcache.googleapis.com` service implements the Google Cloud Memorystore
+ * for Memcached API and defines the following resource model for managing
+ * Memorystore Memcached (also called Memcached below) 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 Memcached instances, named:
+ * `/instances/*`
+ * * As such, Memcached instances are resources of the form:
+ *   `/projects/{project_id}/locations/{location_id}/instances/{instance_id}`
+ * Note that location_id must be a GCP `region`; for example:
+ * * `projects/my-memcached-project/locations/us-central1/instances/my-memcached`
+ * 
+ */ +@javax.annotation.Generated( + value = "by gRPC proto compiler", + comments = "Source: google/cloud/memcache/v1/cloud_memcache.proto") +@io.grpc.stub.annotations.GrpcGenerated +public final class CloudMemcacheGrpc { + + private CloudMemcacheGrpc() {} + + public static final String SERVICE_NAME = "google.cloud.memcache.v1.CloudMemcache"; + + // Static method descriptors that strictly reflect the proto. + private static volatile io.grpc.MethodDescriptor getListInstancesMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "ListInstances", + requestType = com.google.cloud.memcache.v1.ListInstancesRequest.class, + responseType = com.google.cloud.memcache.v1.ListInstancesResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getListInstancesMethod() { + io.grpc.MethodDescriptor getListInstancesMethod; + if ((getListInstancesMethod = CloudMemcacheGrpc.getListInstancesMethod) == null) { + synchronized (CloudMemcacheGrpc.class) { + if ((getListInstancesMethod = CloudMemcacheGrpc.getListInstancesMethod) == null) { + CloudMemcacheGrpc.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.memcache.v1.ListInstancesRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.memcache.v1.ListInstancesResponse.getDefaultInstance())) + .setSchemaDescriptor(new CloudMemcacheMethodDescriptorSupplier("ListInstances")) + .build(); + } + } + } + return getListInstancesMethod; + } + + private static volatile io.grpc.MethodDescriptor getGetInstanceMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "GetInstance", + requestType = com.google.cloud.memcache.v1.GetInstanceRequest.class, + responseType = com.google.cloud.memcache.v1.Instance.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getGetInstanceMethod() { + io.grpc.MethodDescriptor getGetInstanceMethod; + if ((getGetInstanceMethod = CloudMemcacheGrpc.getGetInstanceMethod) == null) { + synchronized (CloudMemcacheGrpc.class) { + if ((getGetInstanceMethod = CloudMemcacheGrpc.getGetInstanceMethod) == null) { + CloudMemcacheGrpc.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.memcache.v1.GetInstanceRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.memcache.v1.Instance.getDefaultInstance())) + .setSchemaDescriptor(new CloudMemcacheMethodDescriptorSupplier("GetInstance")) + .build(); + } + } + } + return getGetInstanceMethod; + } + + private static volatile io.grpc.MethodDescriptor getCreateInstanceMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "CreateInstance", + requestType = com.google.cloud.memcache.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; + if ((getCreateInstanceMethod = CloudMemcacheGrpc.getCreateInstanceMethod) == null) { + synchronized (CloudMemcacheGrpc.class) { + if ((getCreateInstanceMethod = CloudMemcacheGrpc.getCreateInstanceMethod) == null) { + CloudMemcacheGrpc.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.memcache.v1.CreateInstanceRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor(new CloudMemcacheMethodDescriptorSupplier("CreateInstance")) + .build(); + } + } + } + return getCreateInstanceMethod; + } + + private static volatile io.grpc.MethodDescriptor getUpdateInstanceMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "UpdateInstance", + requestType = com.google.cloud.memcache.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; + if ((getUpdateInstanceMethod = CloudMemcacheGrpc.getUpdateInstanceMethod) == null) { + synchronized (CloudMemcacheGrpc.class) { + if ((getUpdateInstanceMethod = CloudMemcacheGrpc.getUpdateInstanceMethod) == null) { + CloudMemcacheGrpc.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.memcache.v1.UpdateInstanceRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor(new CloudMemcacheMethodDescriptorSupplier("UpdateInstance")) + .build(); + } + } + } + return getUpdateInstanceMethod; + } + + private static volatile io.grpc.MethodDescriptor getUpdateParametersMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "UpdateParameters", + requestType = com.google.cloud.memcache.v1.UpdateParametersRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getUpdateParametersMethod() { + io.grpc.MethodDescriptor getUpdateParametersMethod; + if ((getUpdateParametersMethod = CloudMemcacheGrpc.getUpdateParametersMethod) == null) { + synchronized (CloudMemcacheGrpc.class) { + if ((getUpdateParametersMethod = CloudMemcacheGrpc.getUpdateParametersMethod) == null) { + CloudMemcacheGrpc.getUpdateParametersMethod = getUpdateParametersMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "UpdateParameters")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.memcache.v1.UpdateParametersRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor(new CloudMemcacheMethodDescriptorSupplier("UpdateParameters")) + .build(); + } + } + } + return getUpdateParametersMethod; + } + + private static volatile io.grpc.MethodDescriptor getDeleteInstanceMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "DeleteInstance", + requestType = com.google.cloud.memcache.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; + if ((getDeleteInstanceMethod = CloudMemcacheGrpc.getDeleteInstanceMethod) == null) { + synchronized (CloudMemcacheGrpc.class) { + if ((getDeleteInstanceMethod = CloudMemcacheGrpc.getDeleteInstanceMethod) == null) { + CloudMemcacheGrpc.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.memcache.v1.DeleteInstanceRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor(new CloudMemcacheMethodDescriptorSupplier("DeleteInstance")) + .build(); + } + } + } + return getDeleteInstanceMethod; + } + + private static volatile io.grpc.MethodDescriptor getApplyParametersMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "ApplyParameters", + requestType = com.google.cloud.memcache.v1.ApplyParametersRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getApplyParametersMethod() { + io.grpc.MethodDescriptor getApplyParametersMethod; + if ((getApplyParametersMethod = CloudMemcacheGrpc.getApplyParametersMethod) == null) { + synchronized (CloudMemcacheGrpc.class) { + if ((getApplyParametersMethod = CloudMemcacheGrpc.getApplyParametersMethod) == null) { + CloudMemcacheGrpc.getApplyParametersMethod = getApplyParametersMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ApplyParameters")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.memcache.v1.ApplyParametersRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor(new CloudMemcacheMethodDescriptorSupplier("ApplyParameters")) + .build(); + } + } + } + return getApplyParametersMethod; + } + + /** + * Creates a new async stub that supports all call types for the service + */ + public static CloudMemcacheStub newStub(io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public CloudMemcacheStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new CloudMemcacheStub(channel, callOptions); + } + }; + return CloudMemcacheStub.newStub(factory, channel); + } + + /** + * Creates a new blocking-style stub that supports unary and streaming output calls on the service + */ + public static CloudMemcacheBlockingStub newBlockingStub( + io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public CloudMemcacheBlockingStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new CloudMemcacheBlockingStub(channel, callOptions); + } + }; + return CloudMemcacheBlockingStub.newStub(factory, channel); + } + + /** + * Creates a new ListenableFuture-style stub that supports unary calls on the service + */ + public static CloudMemcacheFutureStub newFutureStub( + io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public CloudMemcacheFutureStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new CloudMemcacheFutureStub(channel, callOptions); + } + }; + return CloudMemcacheFutureStub.newStub(factory, channel); + } + + /** + *
+   * Configures and manages Cloud Memorystore for Memcached instances.
+   * The `memcache.googleapis.com` service implements the Google Cloud Memorystore
+   * for Memcached API and defines the following resource model for managing
+   * Memorystore Memcached (also called Memcached below) 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 Memcached instances, named:
+   * `/instances/*`
+   * * As such, Memcached instances are resources of the form:
+   *   `/projects/{project_id}/locations/{location_id}/instances/{instance_id}`
+   * Note that location_id must be a GCP `region`; for example:
+   * * `projects/my-memcached-project/locations/us-central1/instances/my-memcached`
+   * 
+ */ + public static abstract class CloudMemcacheImplBase implements io.grpc.BindableService { + + /** + *
+     * Lists Instances in a given location.
+     * 
+ */ + public void listInstances(com.google.cloud.memcache.v1.ListInstancesRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getListInstancesMethod(), responseObserver); + } + + /** + *
+     * Gets details of a single Instance.
+     * 
+ */ + public void getInstance(com.google.cloud.memcache.v1.GetInstanceRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetInstanceMethod(), responseObserver); + } + + /** + *
+     * Creates a new Instance in a given location.
+     * 
+ */ + public void createInstance(com.google.cloud.memcache.v1.CreateInstanceRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getCreateInstanceMethod(), responseObserver); + } + + /** + *
+     * Updates an existing Instance in a given project and location.
+     * 
+ */ + public void updateInstance(com.google.cloud.memcache.v1.UpdateInstanceRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getUpdateInstanceMethod(), responseObserver); + } + + /** + *
+     * Updates the defined Memcached Parameters for an existing Instance.
+     * This method only stages the parameters, it must be followed by
+     * ApplyParameters to apply the parameters to nodes of the Memcached Instance.
+     * 
+ */ + public void updateParameters(com.google.cloud.memcache.v1.UpdateParametersRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getUpdateParametersMethod(), responseObserver); + } + + /** + *
+     * Deletes a single Instance.
+     * 
+ */ + public void deleteInstance(com.google.cloud.memcache.v1.DeleteInstanceRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getDeleteInstanceMethod(), responseObserver); + } + + /** + *
+     * ApplyParameters will restart the set of specified nodes in order to update
+     * them to the current set of parameters for the Memcached Instance.
+     * 
+ */ + public void applyParameters(com.google.cloud.memcache.v1.ApplyParametersRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getApplyParametersMethod(), responseObserver); + } + + @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.memcache.v1.ListInstancesRequest, + com.google.cloud.memcache.v1.ListInstancesResponse>( + this, METHODID_LIST_INSTANCES))) + .addMethod( + getGetInstanceMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.memcache.v1.GetInstanceRequest, + com.google.cloud.memcache.v1.Instance>( + this, METHODID_GET_INSTANCE))) + .addMethod( + getCreateInstanceMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.memcache.v1.CreateInstanceRequest, + com.google.longrunning.Operation>( + this, METHODID_CREATE_INSTANCE))) + .addMethod( + getUpdateInstanceMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.memcache.v1.UpdateInstanceRequest, + com.google.longrunning.Operation>( + this, METHODID_UPDATE_INSTANCE))) + .addMethod( + getUpdateParametersMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.memcache.v1.UpdateParametersRequest, + com.google.longrunning.Operation>( + this, METHODID_UPDATE_PARAMETERS))) + .addMethod( + getDeleteInstanceMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.memcache.v1.DeleteInstanceRequest, + com.google.longrunning.Operation>( + this, METHODID_DELETE_INSTANCE))) + .addMethod( + getApplyParametersMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.memcache.v1.ApplyParametersRequest, + com.google.longrunning.Operation>( + this, METHODID_APPLY_PARAMETERS))) + .build(); + } + } + + /** + *
+   * Configures and manages Cloud Memorystore for Memcached instances.
+   * The `memcache.googleapis.com` service implements the Google Cloud Memorystore
+   * for Memcached API and defines the following resource model for managing
+   * Memorystore Memcached (also called Memcached below) 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 Memcached instances, named:
+   * `/instances/*`
+   * * As such, Memcached instances are resources of the form:
+   *   `/projects/{project_id}/locations/{location_id}/instances/{instance_id}`
+   * Note that location_id must be a GCP `region`; for example:
+   * * `projects/my-memcached-project/locations/us-central1/instances/my-memcached`
+   * 
+ */ + public static final class CloudMemcacheStub extends io.grpc.stub.AbstractAsyncStub { + private CloudMemcacheStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected CloudMemcacheStub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new CloudMemcacheStub(channel, callOptions); + } + + /** + *
+     * Lists Instances in a given location.
+     * 
+ */ + public void listInstances(com.google.cloud.memcache.v1.ListInstancesRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getListInstancesMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Gets details of a single Instance.
+     * 
+ */ + public void getInstance(com.google.cloud.memcache.v1.GetInstanceRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getGetInstanceMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Creates a new Instance in a given location.
+     * 
+ */ + public void createInstance(com.google.cloud.memcache.v1.CreateInstanceRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getCreateInstanceMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Updates an existing Instance in a given project and location.
+     * 
+ */ + public void updateInstance(com.google.cloud.memcache.v1.UpdateInstanceRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getUpdateInstanceMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Updates the defined Memcached Parameters for an existing Instance.
+     * This method only stages the parameters, it must be followed by
+     * ApplyParameters to apply the parameters to nodes of the Memcached Instance.
+     * 
+ */ + public void updateParameters(com.google.cloud.memcache.v1.UpdateParametersRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getUpdateParametersMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Deletes a single Instance.
+     * 
+ */ + public void deleteInstance(com.google.cloud.memcache.v1.DeleteInstanceRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getDeleteInstanceMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * ApplyParameters will restart the set of specified nodes in order to update
+     * them to the current set of parameters for the Memcached Instance.
+     * 
+ */ + public void applyParameters(com.google.cloud.memcache.v1.ApplyParametersRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getApplyParametersMethod(), getCallOptions()), request, responseObserver); + } + } + + /** + *
+   * Configures and manages Cloud Memorystore for Memcached instances.
+   * The `memcache.googleapis.com` service implements the Google Cloud Memorystore
+   * for Memcached API and defines the following resource model for managing
+   * Memorystore Memcached (also called Memcached below) 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 Memcached instances, named:
+   * `/instances/*`
+   * * As such, Memcached instances are resources of the form:
+   *   `/projects/{project_id}/locations/{location_id}/instances/{instance_id}`
+   * Note that location_id must be a GCP `region`; for example:
+   * * `projects/my-memcached-project/locations/us-central1/instances/my-memcached`
+   * 
+ */ + public static final class CloudMemcacheBlockingStub extends io.grpc.stub.AbstractBlockingStub { + private CloudMemcacheBlockingStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected CloudMemcacheBlockingStub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new CloudMemcacheBlockingStub(channel, callOptions); + } + + /** + *
+     * Lists Instances in a given location.
+     * 
+ */ + public com.google.cloud.memcache.v1.ListInstancesResponse listInstances(com.google.cloud.memcache.v1.ListInstancesRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getListInstancesMethod(), getCallOptions(), request); + } + + /** + *
+     * Gets details of a single Instance.
+     * 
+ */ + public com.google.cloud.memcache.v1.Instance getInstance(com.google.cloud.memcache.v1.GetInstanceRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getGetInstanceMethod(), getCallOptions(), request); + } + + /** + *
+     * Creates a new Instance in a given location.
+     * 
+ */ + public com.google.longrunning.Operation createInstance(com.google.cloud.memcache.v1.CreateInstanceRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getCreateInstanceMethod(), getCallOptions(), request); + } + + /** + *
+     * Updates an existing Instance in a given project and location.
+     * 
+ */ + public com.google.longrunning.Operation updateInstance(com.google.cloud.memcache.v1.UpdateInstanceRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getUpdateInstanceMethod(), getCallOptions(), request); + } + + /** + *
+     * Updates the defined Memcached Parameters for an existing Instance.
+     * This method only stages the parameters, it must be followed by
+     * ApplyParameters to apply the parameters to nodes of the Memcached Instance.
+     * 
+ */ + public com.google.longrunning.Operation updateParameters(com.google.cloud.memcache.v1.UpdateParametersRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getUpdateParametersMethod(), getCallOptions(), request); + } + + /** + *
+     * Deletes a single Instance.
+     * 
+ */ + public com.google.longrunning.Operation deleteInstance(com.google.cloud.memcache.v1.DeleteInstanceRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getDeleteInstanceMethod(), getCallOptions(), request); + } + + /** + *
+     * ApplyParameters will restart the set of specified nodes in order to update
+     * them to the current set of parameters for the Memcached Instance.
+     * 
+ */ + public com.google.longrunning.Operation applyParameters(com.google.cloud.memcache.v1.ApplyParametersRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getApplyParametersMethod(), getCallOptions(), request); + } + } + + /** + *
+   * Configures and manages Cloud Memorystore for Memcached instances.
+   * The `memcache.googleapis.com` service implements the Google Cloud Memorystore
+   * for Memcached API and defines the following resource model for managing
+   * Memorystore Memcached (also called Memcached below) 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 Memcached instances, named:
+   * `/instances/*`
+   * * As such, Memcached instances are resources of the form:
+   *   `/projects/{project_id}/locations/{location_id}/instances/{instance_id}`
+   * Note that location_id must be a GCP `region`; for example:
+   * * `projects/my-memcached-project/locations/us-central1/instances/my-memcached`
+   * 
+ */ + public static final class CloudMemcacheFutureStub extends io.grpc.stub.AbstractFutureStub { + private CloudMemcacheFutureStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected CloudMemcacheFutureStub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new CloudMemcacheFutureStub(channel, callOptions); + } + + /** + *
+     * Lists Instances in a given location.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture listInstances( + com.google.cloud.memcache.v1.ListInstancesRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getListInstancesMethod(), getCallOptions()), request); + } + + /** + *
+     * Gets details of a single Instance.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture getInstance( + com.google.cloud.memcache.v1.GetInstanceRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getGetInstanceMethod(), getCallOptions()), request); + } + + /** + *
+     * Creates a new Instance in a given location.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture createInstance( + com.google.cloud.memcache.v1.CreateInstanceRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getCreateInstanceMethod(), getCallOptions()), request); + } + + /** + *
+     * Updates an existing Instance in a given project and location.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture updateInstance( + com.google.cloud.memcache.v1.UpdateInstanceRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getUpdateInstanceMethod(), getCallOptions()), request); + } + + /** + *
+     * Updates the defined Memcached Parameters for an existing Instance.
+     * This method only stages the parameters, it must be followed by
+     * ApplyParameters to apply the parameters to nodes of the Memcached Instance.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture updateParameters( + com.google.cloud.memcache.v1.UpdateParametersRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getUpdateParametersMethod(), getCallOptions()), request); + } + + /** + *
+     * Deletes a single Instance.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture deleteInstance( + com.google.cloud.memcache.v1.DeleteInstanceRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getDeleteInstanceMethod(), getCallOptions()), request); + } + + /** + *
+     * ApplyParameters will restart the set of specified nodes in order to update
+     * them to the current set of parameters for the Memcached Instance.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture applyParameters( + com.google.cloud.memcache.v1.ApplyParametersRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getApplyParametersMethod(), getCallOptions()), request); + } + } + + private static final int METHODID_LIST_INSTANCES = 0; + private static final int METHODID_GET_INSTANCE = 1; + private static final int METHODID_CREATE_INSTANCE = 2; + private static final int METHODID_UPDATE_INSTANCE = 3; + private static final int METHODID_UPDATE_PARAMETERS = 4; + private static final int METHODID_DELETE_INSTANCE = 5; + private static final int METHODID_APPLY_PARAMETERS = 6; + + 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 CloudMemcacheImplBase serviceImpl; + private final int methodId; + + MethodHandlers(CloudMemcacheImplBase serviceImpl, int methodId) { + this.serviceImpl = serviceImpl; + this.methodId = methodId; + } + + @java.lang.Override + @java.lang.SuppressWarnings("unchecked") + public void invoke(Req request, io.grpc.stub.StreamObserver responseObserver) { + switch (methodId) { + case METHODID_LIST_INSTANCES: + serviceImpl.listInstances((com.google.cloud.memcache.v1.ListInstancesRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_GET_INSTANCE: + serviceImpl.getInstance((com.google.cloud.memcache.v1.GetInstanceRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_CREATE_INSTANCE: + serviceImpl.createInstance((com.google.cloud.memcache.v1.CreateInstanceRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_UPDATE_INSTANCE: + serviceImpl.updateInstance((com.google.cloud.memcache.v1.UpdateInstanceRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_UPDATE_PARAMETERS: + serviceImpl.updateParameters((com.google.cloud.memcache.v1.UpdateParametersRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_DELETE_INSTANCE: + serviceImpl.deleteInstance((com.google.cloud.memcache.v1.DeleteInstanceRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_APPLY_PARAMETERS: + serviceImpl.applyParameters((com.google.cloud.memcache.v1.ApplyParametersRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + default: + throw new AssertionError(); + } + } + + @java.lang.Override + @java.lang.SuppressWarnings("unchecked") + public io.grpc.stub.StreamObserver invoke( + io.grpc.stub.StreamObserver responseObserver) { + switch (methodId) { + default: + throw new AssertionError(); + } + } + } + + private static abstract class CloudMemcacheBaseDescriptorSupplier + implements io.grpc.protobuf.ProtoFileDescriptorSupplier, io.grpc.protobuf.ProtoServiceDescriptorSupplier { + CloudMemcacheBaseDescriptorSupplier() {} + + @java.lang.Override + public com.google.protobuf.Descriptors.FileDescriptor getFileDescriptor() { + return com.google.cloud.memcache.v1.CloudMemcacheProto.getDescriptor(); + } + + @java.lang.Override + public com.google.protobuf.Descriptors.ServiceDescriptor getServiceDescriptor() { + return getFileDescriptor().findServiceByName("CloudMemcache"); + } + } + + private static final class CloudMemcacheFileDescriptorSupplier + extends CloudMemcacheBaseDescriptorSupplier { + CloudMemcacheFileDescriptorSupplier() {} + } + + private static final class CloudMemcacheMethodDescriptorSupplier + extends CloudMemcacheBaseDescriptorSupplier + implements io.grpc.protobuf.ProtoMethodDescriptorSupplier { + private final String methodName; + + CloudMemcacheMethodDescriptorSupplier(String methodName) { + this.methodName = methodName; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.MethodDescriptor getMethodDescriptor() { + return getServiceDescriptor().findMethodByName(methodName); + } + } + + private static volatile io.grpc.ServiceDescriptor serviceDescriptor; + + public static io.grpc.ServiceDescriptor getServiceDescriptor() { + io.grpc.ServiceDescriptor result = serviceDescriptor; + if (result == null) { + synchronized (CloudMemcacheGrpc.class) { + result = serviceDescriptor; + if (result == null) { + serviceDescriptor = result = io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) + .setSchemaDescriptor(new CloudMemcacheFileDescriptorSupplier()) + .addMethod(getListInstancesMethod()) + .addMethod(getGetInstanceMethod()) + .addMethod(getCreateInstanceMethod()) + .addMethod(getUpdateInstanceMethod()) + .addMethod(getUpdateParametersMethod()) + .addMethod(getDeleteInstanceMethod()) + .addMethod(getApplyParametersMethod()) + .build(); + } + } + } + return result; + } +} diff --git a/proto-google-cloud-memcache-v1/src/main/java/com/google/cloud/memcache/v1/ApplyParametersRequest.java b/owl-bot-staging/v1/proto-google-cloud-memcache-v1/src/main/java/com/google/cloud/memcache/v1/ApplyParametersRequest.java similarity index 70% rename from proto-google-cloud-memcache-v1/src/main/java/com/google/cloud/memcache/v1/ApplyParametersRequest.java rename to owl-bot-staging/v1/proto-google-cloud-memcache-v1/src/main/java/com/google/cloud/memcache/v1/ApplyParametersRequest.java index ae4a50c1..2c836c8e 100644 --- a/proto-google-cloud-memcache-v1/src/main/java/com/google/cloud/memcache/v1/ApplyParametersRequest.java +++ b/owl-bot-staging/v1/proto-google-cloud-memcache-v1/src/main/java/com/google/cloud/memcache/v1/ApplyParametersRequest.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/memcache/v1/cloud_memcache.proto package com.google.cloud.memcache.v1; /** - * - * *
  * Request for [ApplyParameters][google.cloud.memcache.v1.CloudMemcache.ApplyParameters].
  * 
* * Protobuf type {@code google.cloud.memcache.v1.ApplyParametersRequest} */ -public final class ApplyParametersRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class ApplyParametersRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.memcache.v1.ApplyParametersRequest) ApplyParametersRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use ApplyParametersRequest.newBuilder() to construct. private ApplyParametersRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private ApplyParametersRequest() { name_ = ""; nodeIds_ = com.google.protobuf.LazyStringArrayList.EMPTY; @@ -44,15 +26,16 @@ private ApplyParametersRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new ApplyParametersRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private ApplyParametersRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -72,35 +55,33 @@ private ApplyParametersRequest( 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(); - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - nodeIds_ = new com.google.protobuf.LazyStringArrayList(); - mutable_bitField0_ |= 0x00000001; - } - nodeIds_.add(s); - break; - } - case 24: - { - applyAll_ = input.readBool(); - break; + name_ = s; + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + nodeIds_ = new com.google.protobuf.LazyStringArrayList(); + mutable_bitField0_ |= 0x00000001; } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + nodeIds_.add(s); + break; + } + case 24: { + + applyAll_ = input.readBool(); + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -108,7 +89,8 @@ private ApplyParametersRequest( } 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)) { nodeIds_ = nodeIds_.getUnmodifiableView(); @@ -117,36 +99,28 @@ private ApplyParametersRequest( makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.memcache.v1.CloudMemcacheProto - .internal_static_google_cloud_memcache_v1_ApplyParametersRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.memcache.v1.CloudMemcacheProto.internal_static_google_cloud_memcache_v1_ApplyParametersRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.memcache.v1.CloudMemcacheProto - .internal_static_google_cloud_memcache_v1_ApplyParametersRequest_fieldAccessorTable + return com.google.cloud.memcache.v1.CloudMemcacheProto.internal_static_google_cloud_memcache_v1_ApplyParametersRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.memcache.v1.ApplyParametersRequest.class, - com.google.cloud.memcache.v1.ApplyParametersRequest.Builder.class); + com.google.cloud.memcache.v1.ApplyParametersRequest.class, com.google.cloud.memcache.v1.ApplyParametersRequest.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** - * - * *
    * Required. Resource name of the Memcached instance for which parameter group updates
    * should be applied.
    * 
* - * - * string name = 1 [(.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 @@ -155,32 +129,30 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** - * - * *
    * Required. Resource name of the Memcached instance for which parameter group updates
    * should be applied.
    * 
* - * - * string name = 1 [(.google.api.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 { @@ -191,42 +163,34 @@ public com.google.protobuf.ByteString getNameBytes() { public static final int NODE_IDS_FIELD_NUMBER = 2; private com.google.protobuf.LazyStringList nodeIds_; /** - * - * *
    * Nodes to which we should apply the instance-level parameter group.
    * 
* * repeated string node_ids = 2; - * * @return A list containing the nodeIds. */ - public com.google.protobuf.ProtocolStringList getNodeIdsList() { + public com.google.protobuf.ProtocolStringList + getNodeIdsList() { return nodeIds_; } /** - * - * *
    * Nodes to which we should apply the instance-level parameter group.
    * 
* * repeated string node_ids = 2; - * * @return The count of nodeIds. */ public int getNodeIdsCount() { return nodeIds_.size(); } /** - * - * *
    * Nodes to which we should apply the instance-level parameter group.
    * 
* * repeated string node_ids = 2; - * * @param index The index of the element to return. * @return The nodeIds at the given index. */ @@ -234,26 +198,22 @@ public java.lang.String getNodeIds(int index) { return nodeIds_.get(index); } /** - * - * *
    * Nodes to which we should apply the instance-level parameter group.
    * 
* * repeated string node_ids = 2; - * * @param index The index of the value to return. * @return The bytes of the nodeIds at the given index. */ - public com.google.protobuf.ByteString getNodeIdsBytes(int index) { + public com.google.protobuf.ByteString + getNodeIdsBytes(int index) { return nodeIds_.getByteString(index); } public static final int APPLY_ALL_FIELD_NUMBER = 3; private boolean applyAll_; /** - * - * *
    * Whether to apply instance-level parameter group to all nodes. If set to
    * true, will explicitly restrict users from specifying any nodes, and apply
@@ -261,7 +221,6 @@ public com.google.protobuf.ByteString getNodeIdsBytes(int index) {
    * 
* * bool apply_all = 3; - * * @return The applyAll. */ @java.lang.Override @@ -270,7 +229,6 @@ public boolean getApplyAll() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -282,7 +240,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.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_); } @@ -313,7 +272,8 @@ public int getSerializedSize() { size += 1 * getNodeIdsList().size(); } if (applyAll_ != false) { - size += com.google.protobuf.CodedOutputStream.computeBoolSize(3, applyAll_); + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(3, applyAll_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -323,17 +283,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.memcache.v1.ApplyParametersRequest)) { return super.equals(obj); } - com.google.cloud.memcache.v1.ApplyParametersRequest other = - (com.google.cloud.memcache.v1.ApplyParametersRequest) obj; + com.google.cloud.memcache.v1.ApplyParametersRequest other = (com.google.cloud.memcache.v1.ApplyParametersRequest) obj; - if (!getName().equals(other.getName())) return false; - if (!getNodeIdsList().equals(other.getNodeIdsList())) return false; - if (getApplyAll() != other.getApplyAll()) return false; + if (!getName() + .equals(other.getName())) return false; + if (!getNodeIdsList() + .equals(other.getNodeIdsList())) return false; + if (getApplyAll() + != other.getApplyAll()) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -352,133 +314,125 @@ public int hashCode() { hash = (53 * hash) + getNodeIdsList().hashCode(); } hash = (37 * hash) + APPLY_ALL_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getApplyAll()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getApplyAll()); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static com.google.cloud.memcache.v1.ApplyParametersRequest parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.memcache.v1.ApplyParametersRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.memcache.v1.ApplyParametersRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.memcache.v1.ApplyParametersRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.memcache.v1.ApplyParametersRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.memcache.v1.ApplyParametersRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.memcache.v1.ApplyParametersRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.memcache.v1.ApplyParametersRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.memcache.v1.ApplyParametersRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.memcache.v1.ApplyParametersRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.memcache.v1.ApplyParametersRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.memcache.v1.ApplyParametersRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.memcache.v1.ApplyParametersRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.memcache.v1.ApplyParametersRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.memcache.v1.ApplyParametersRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected 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 [ApplyParameters][google.cloud.memcache.v1.CloudMemcache.ApplyParameters].
    * 
* * Protobuf type {@code google.cloud.memcache.v1.ApplyParametersRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.memcache.v1.ApplyParametersRequest) com.google.cloud.memcache.v1.ApplyParametersRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.memcache.v1.CloudMemcacheProto - .internal_static_google_cloud_memcache_v1_ApplyParametersRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.memcache.v1.CloudMemcacheProto.internal_static_google_cloud_memcache_v1_ApplyParametersRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.memcache.v1.CloudMemcacheProto - .internal_static_google_cloud_memcache_v1_ApplyParametersRequest_fieldAccessorTable + return com.google.cloud.memcache.v1.CloudMemcacheProto.internal_static_google_cloud_memcache_v1_ApplyParametersRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.memcache.v1.ApplyParametersRequest.class, - com.google.cloud.memcache.v1.ApplyParametersRequest.Builder.class); + com.google.cloud.memcache.v1.ApplyParametersRequest.class, com.google.cloud.memcache.v1.ApplyParametersRequest.Builder.class); } // Construct using com.google.cloud.memcache.v1.ApplyParametersRequest.newBuilder() @@ -486,15 +440,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(); @@ -508,9 +463,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.memcache.v1.CloudMemcacheProto - .internal_static_google_cloud_memcache_v1_ApplyParametersRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.memcache.v1.CloudMemcacheProto.internal_static_google_cloud_memcache_v1_ApplyParametersRequest_descriptor; } @java.lang.Override @@ -529,8 +484,7 @@ public com.google.cloud.memcache.v1.ApplyParametersRequest build() { @java.lang.Override public com.google.cloud.memcache.v1.ApplyParametersRequest buildPartial() { - com.google.cloud.memcache.v1.ApplyParametersRequest result = - new com.google.cloud.memcache.v1.ApplyParametersRequest(this); + com.google.cloud.memcache.v1.ApplyParametersRequest result = new com.google.cloud.memcache.v1.ApplyParametersRequest(this); int from_bitField0_ = bitField0_; result.name_ = name_; if (((bitField0_ & 0x00000001) != 0)) { @@ -547,39 +501,38 @@ public com.google.cloud.memcache.v1.ApplyParametersRequest buildPartial() { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.memcache.v1.ApplyParametersRequest) { - return mergeFrom((com.google.cloud.memcache.v1.ApplyParametersRequest) other); + return mergeFrom((com.google.cloud.memcache.v1.ApplyParametersRequest)other); } else { super.mergeFrom(other); return this; @@ -587,8 +540,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.memcache.v1.ApplyParametersRequest other) { - if (other == com.google.cloud.memcache.v1.ApplyParametersRequest.getDefaultInstance()) - return this; + if (other == com.google.cloud.memcache.v1.ApplyParametersRequest.getDefaultInstance()) return this; if (!other.getName().isEmpty()) { name_ = other.name_; onChanged(); @@ -625,8 +577,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.memcache.v1.ApplyParametersRequest) e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.memcache.v1.ApplyParametersRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -635,28 +586,23 @@ public Builder mergeFrom( } return this; } - private int bitField0_; private java.lang.Object name_ = ""; /** - * - * *
      * Required. Resource name of the Memcached instance for which parameter group updates
      * should be applied.
      * 
* - * - * string name = 1 [(.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; @@ -665,24 +611,21 @@ public java.lang.String getName() { } } /** - * - * *
      * Required. Resource name of the Memcached instance for which parameter group updates
      * should be applied.
      * 
* - * - * string name = 1 [(.google.api.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 { @@ -690,121 +633,98 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
      * Required. Resource name of the Memcached instance for which parameter group updates
      * should be applied.
      * 
* - * - * 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. Resource name of the Memcached instance for which parameter group updates
      * should be applied.
      * 
* - * - * string 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. Resource name of the Memcached instance for which parameter group updates
      * should be applied.
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes(com.google.protobuf.ByteString value) { + public Builder setNameBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; onChanged(); return this; } - private com.google.protobuf.LazyStringList nodeIds_ = - com.google.protobuf.LazyStringArrayList.EMPTY; - + private com.google.protobuf.LazyStringList nodeIds_ = com.google.protobuf.LazyStringArrayList.EMPTY; private void ensureNodeIdsIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { nodeIds_ = new com.google.protobuf.LazyStringArrayList(nodeIds_); bitField0_ |= 0x00000001; - } + } } /** - * - * *
      * Nodes to which we should apply the instance-level parameter group.
      * 
* * repeated string node_ids = 2; - * * @return A list containing the nodeIds. */ - public com.google.protobuf.ProtocolStringList getNodeIdsList() { + public com.google.protobuf.ProtocolStringList + getNodeIdsList() { return nodeIds_.getUnmodifiableView(); } /** - * - * *
      * Nodes to which we should apply the instance-level parameter group.
      * 
* * repeated string node_ids = 2; - * * @return The count of nodeIds. */ public int getNodeIdsCount() { return nodeIds_.size(); } /** - * - * *
      * Nodes to which we should apply the instance-level parameter group.
      * 
* * repeated string node_ids = 2; - * * @param index The index of the element to return. * @return The nodeIds at the given index. */ @@ -812,90 +732,80 @@ public java.lang.String getNodeIds(int index) { return nodeIds_.get(index); } /** - * - * *
      * Nodes to which we should apply the instance-level parameter group.
      * 
* * repeated string node_ids = 2; - * * @param index The index of the value to return. * @return The bytes of the nodeIds at the given index. */ - public com.google.protobuf.ByteString getNodeIdsBytes(int index) { + public com.google.protobuf.ByteString + getNodeIdsBytes(int index) { return nodeIds_.getByteString(index); } /** - * - * *
      * Nodes to which we should apply the instance-level parameter group.
      * 
* * repeated string node_ids = 2; - * * @param index The index to set the value at. * @param value The nodeIds to set. * @return This builder for chaining. */ - public Builder setNodeIds(int index, java.lang.String value) { + public Builder setNodeIds( + int index, java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureNodeIdsIsMutable(); + throw new NullPointerException(); + } + ensureNodeIdsIsMutable(); nodeIds_.set(index, value); onChanged(); return this; } /** - * - * *
      * Nodes to which we should apply the instance-level parameter group.
      * 
* * repeated string node_ids = 2; - * * @param value The nodeIds to add. * @return This builder for chaining. */ - public Builder addNodeIds(java.lang.String value) { + public Builder addNodeIds( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureNodeIdsIsMutable(); + throw new NullPointerException(); + } + ensureNodeIdsIsMutable(); nodeIds_.add(value); onChanged(); return this; } /** - * - * *
      * Nodes to which we should apply the instance-level parameter group.
      * 
* * repeated string node_ids = 2; - * * @param values The nodeIds to add. * @return This builder for chaining. */ - public Builder addAllNodeIds(java.lang.Iterable values) { + public Builder addAllNodeIds( + java.lang.Iterable values) { ensureNodeIdsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, nodeIds_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, nodeIds_); onChanged(); return this; } /** - * - * *
      * Nodes to which we should apply the instance-level parameter group.
      * 
* * repeated string node_ids = 2; - * * @return This builder for chaining. */ public Builder clearNodeIds() { @@ -905,32 +815,28 @@ public Builder clearNodeIds() { return this; } /** - * - * *
      * Nodes to which we should apply the instance-level parameter group.
      * 
* * repeated string node_ids = 2; - * * @param value The bytes of the nodeIds to add. * @return This builder for chaining. */ - public Builder addNodeIdsBytes(com.google.protobuf.ByteString value) { + public Builder addNodeIdsBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); ensureNodeIdsIsMutable(); nodeIds_.add(value); onChanged(); return this; } - private boolean applyAll_; + private boolean applyAll_ ; /** - * - * *
      * Whether to apply instance-level parameter group to all nodes. If set to
      * true, will explicitly restrict users from specifying any nodes, and apply
@@ -938,7 +844,6 @@ public Builder addNodeIdsBytes(com.google.protobuf.ByteString value) {
      * 
* * bool apply_all = 3; - * * @return The applyAll. */ @java.lang.Override @@ -946,8 +851,6 @@ public boolean getApplyAll() { return applyAll_; } /** - * - * *
      * Whether to apply instance-level parameter group to all nodes. If set to
      * true, will explicitly restrict users from specifying any nodes, and apply
@@ -955,19 +858,16 @@ public boolean getApplyAll() {
      * 
* * bool apply_all = 3; - * * @param value The applyAll to set. * @return This builder for chaining. */ public Builder setApplyAll(boolean value) { - + applyAll_ = value; onChanged(); return this; } /** - * - * *
      * Whether to apply instance-level parameter group to all nodes. If set to
      * true, will explicitly restrict users from specifying any nodes, and apply
@@ -975,18 +875,17 @@ public Builder setApplyAll(boolean value) {
      * 
* * bool apply_all = 3; - * * @return This builder for chaining. */ public Builder clearApplyAll() { - + applyAll_ = false; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -996,12 +895,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.memcache.v1.ApplyParametersRequest) } // @@protoc_insertion_point(class_scope:google.cloud.memcache.v1.ApplyParametersRequest) private static final com.google.cloud.memcache.v1.ApplyParametersRequest DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.memcache.v1.ApplyParametersRequest(); } @@ -1010,16 +909,16 @@ public static com.google.cloud.memcache.v1.ApplyParametersRequest getDefaultInst return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ApplyParametersRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ApplyParametersRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ApplyParametersRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ApplyParametersRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1034,4 +933,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.memcache.v1.ApplyParametersRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-memcache-v1/src/main/java/com/google/cloud/memcache/v1/ApplyParametersRequestOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-memcache-v1/src/main/java/com/google/cloud/memcache/v1/ApplyParametersRequestOrBuilder.java similarity index 63% rename from proto-google-cloud-memcache-v1/src/main/java/com/google/cloud/memcache/v1/ApplyParametersRequestOrBuilder.java rename to owl-bot-staging/v1/proto-google-cloud-memcache-v1/src/main/java/com/google/cloud/memcache/v1/ApplyParametersRequestOrBuilder.java index c6799590..943077cc 100644 --- a/proto-google-cloud-memcache-v1/src/main/java/com/google/cloud/memcache/v1/ApplyParametersRequestOrBuilder.java +++ b/owl-bot-staging/v1/proto-google-cloud-memcache-v1/src/main/java/com/google/cloud/memcache/v1/ApplyParametersRequestOrBuilder.java @@ -1,113 +1,76 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/memcache/v1/cloud_memcache.proto package com.google.cloud.memcache.v1; -public interface ApplyParametersRequestOrBuilder - extends +public interface ApplyParametersRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.memcache.v1.ApplyParametersRequest) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Required. Resource name of the Memcached instance for which parameter group updates
    * should be applied.
    * 
* - * - * string name = 1 [(.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. Resource name of the Memcached instance for which parameter group updates
    * should be applied.
    * 
* - * - * string name = 1 [(.google.api.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(); /** - * - * *
    * Nodes to which we should apply the instance-level parameter group.
    * 
* * repeated string node_ids = 2; - * * @return A list containing the nodeIds. */ - java.util.List getNodeIdsList(); + java.util.List + getNodeIdsList(); /** - * - * *
    * Nodes to which we should apply the instance-level parameter group.
    * 
* * repeated string node_ids = 2; - * * @return The count of nodeIds. */ int getNodeIdsCount(); /** - * - * *
    * Nodes to which we should apply the instance-level parameter group.
    * 
* * repeated string node_ids = 2; - * * @param index The index of the element to return. * @return The nodeIds at the given index. */ java.lang.String getNodeIds(int index); /** - * - * *
    * Nodes to which we should apply the instance-level parameter group.
    * 
* * repeated string node_ids = 2; - * * @param index The index of the value to return. * @return The bytes of the nodeIds at the given index. */ - com.google.protobuf.ByteString getNodeIdsBytes(int index); + com.google.protobuf.ByteString + getNodeIdsBytes(int index); /** - * - * *
    * Whether to apply instance-level parameter group to all nodes. If set to
    * true, will explicitly restrict users from specifying any nodes, and apply
@@ -115,7 +78,6 @@ public interface ApplyParametersRequestOrBuilder
    * 
* * bool apply_all = 3; - * * @return The applyAll. */ boolean getApplyAll(); diff --git a/owl-bot-staging/v1/proto-google-cloud-memcache-v1/src/main/java/com/google/cloud/memcache/v1/CloudMemcacheProto.java b/owl-bot-staging/v1/proto-google-cloud-memcache-v1/src/main/java/com/google/cloud/memcache/v1/CloudMemcacheProto.java new file mode 100644 index 00000000..7abf103d --- /dev/null +++ b/owl-bot-staging/v1/proto-google-cloud-memcache-v1/src/main/java/com/google/cloud/memcache/v1/CloudMemcacheProto.java @@ -0,0 +1,370 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/memcache/v1/cloud_memcache.proto + +package com.google.cloud.memcache.v1; + +public final class CloudMemcacheProto { + private CloudMemcacheProto() {} + 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_memcache_v1_Instance_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_memcache_v1_Instance_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_memcache_v1_Instance_NodeConfig_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_memcache_v1_Instance_NodeConfig_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_memcache_v1_Instance_Node_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_memcache_v1_Instance_Node_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_memcache_v1_Instance_InstanceMessage_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_memcache_v1_Instance_InstanceMessage_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_memcache_v1_Instance_LabelsEntry_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_memcache_v1_Instance_LabelsEntry_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_memcache_v1_ListInstancesRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_memcache_v1_ListInstancesRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_memcache_v1_ListInstancesResponse_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_memcache_v1_ListInstancesResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_memcache_v1_GetInstanceRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_memcache_v1_GetInstanceRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_memcache_v1_CreateInstanceRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_memcache_v1_CreateInstanceRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_memcache_v1_UpdateInstanceRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_memcache_v1_UpdateInstanceRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_memcache_v1_DeleteInstanceRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_memcache_v1_DeleteInstanceRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_memcache_v1_ApplyParametersRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_memcache_v1_ApplyParametersRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_memcache_v1_UpdateParametersRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_memcache_v1_UpdateParametersRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_memcache_v1_MemcacheParameters_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_memcache_v1_MemcacheParameters_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_memcache_v1_MemcacheParameters_ParamsEntry_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_memcache_v1_MemcacheParameters_ParamsEntry_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_memcache_v1_OperationMetadata_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_memcache_v1_OperationMetadata_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/memcache/v1/cloud_memcach" + + "e.proto\022\030google.cloud.memcache.v1\032\034googl" + + "e/api/annotations.proto\032\027google/api/clie" + + "nt.proto\032\037google/api/field_behavior.prot" + + "o\032\031google/api/resource.proto\032#google/lon" + + "grunning/operations.proto\032 google/protob" + + "uf/field_mask.proto\032\037google/protobuf/tim" + + "estamp.proto\"\243\014\n\010Instance\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" + + "(\0132..google.cloud.memcache.v1.Instance.L" + + "abelsEntry\022\032\n\022authorized_network\030\004 \001(\t\022\r" + + "\n\005zones\030\005 \003(\t\022\027\n\nnode_count\030\006 \001(\005B\003\340A\002\022G" + + "\n\013node_config\030\007 \001(\0132-.google.cloud.memca" + + "che.v1.Instance.NodeConfigB\003\340A\002\022C\n\020memca" + + "che_version\030\t \001(\0162).google.cloud.memcach" + + "e.v1.MemcacheVersion\022@\n\nparameters\030\013 \001(\013" + + "2,.google.cloud.memcache.v1.MemcachePara" + + "meters\022D\n\016memcache_nodes\030\014 \003(\0132\'.google." + + "cloud.memcache.v1.Instance.NodeB\003\340A\003\0224\n\013" + + "create_time\030\r \001(\0132\032.google.protobuf.Time" + + "stampB\003\340A\003\0224\n\013update_time\030\016 \001(\0132\032.google" + + ".protobuf.TimestampB\003\340A\003\022<\n\005state\030\017 \001(\0162" + + "(.google.cloud.memcache.v1.Instance.Stat" + + "eB\003\340A\003\022\"\n\025memcache_full_version\030\022 \001(\tB\003\340" + + "A\003\022M\n\021instance_messages\030\023 \003(\01322.google.c" + + "loud.memcache.v1.Instance.InstanceMessag" + + "e\022\037\n\022discovery_endpoint\030\024 \001(\tB\003\340A\003\032A\n\nNo" + + "deConfig\022\026\n\tcpu_count\030\001 \001(\005B\003\340A\002\022\033\n\016memo" + + "ry_size_mb\030\002 \001(\005B\003\340A\002\032\257\002\n\004Node\022\024\n\007node_i" + + "d\030\001 \001(\tB\003\340A\003\022\021\n\004zone\030\002 \001(\tB\003\340A\003\022A\n\005state" + + "\030\003 \001(\0162-.google.cloud.memcache.v1.Instan" + + "ce.Node.StateB\003\340A\003\022\021\n\004host\030\004 \001(\tB\003\340A\003\022\021\n" + + "\004port\030\005 \001(\005B\003\340A\003\022@\n\nparameters\030\006 \001(\0132,.g" + + "oogle.cloud.memcache.v1.MemcacheParamete" + + "rs\"S\n\005State\022\025\n\021STATE_UNSPECIFIED\020\000\022\014\n\010CR" + + "EATING\020\001\022\t\n\005READY\020\002\022\014\n\010DELETING\020\003\022\014\n\010UPD" + + "ATING\020\004\032\251\001\n\017InstanceMessage\022E\n\004code\030\001 \001(" + + "\01627.google.cloud.memcache.v1.Instance.In" + + "stanceMessage.Code\022\017\n\007message\030\002 \001(\t\">\n\004C" + + "ode\022\024\n\020CODE_UNSPECIFIED\020\000\022 \n\034ZONE_DISTRI" + + "BUTION_UNBALANCED\020\001\032-\n\013LabelsEntry\022\013\n\003ke" + + "y\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\"a\n\005State\022\025\n\021S" + + "TATE_UNSPECIFIED\020\000\022\014\n\010CREATING\020\001\022\t\n\005READ" + + "Y\020\002\022\014\n\010DELETING\020\004\022\032\n\026PERFORMING_MAINTENA" + + "NCE\020\005:c\352A`\n memcache.googleapis.com/Inst" + + "ance\022\202" + + "\323\344\223\002/\022-/v1/{parent=projects/*/locations/" + + "*}/instances\332A\006parent\022\235\001\n\013GetInstance\022,." + + "google.cloud.memcache.v1.GetInstanceRequ" + + "est\032\".google.cloud.memcache.v1.Instance\"" + + "<\202\323\344\223\002/\022-/v1/{name=projects/*/locations/" + + "*/instances/*}\332A\004name\022\222\002\n\016CreateInstance" + + "\022/.google.cloud.memcache.v1.CreateInstan" + + "ceRequest\032\035.google.longrunning.Operation" + + "\"\257\001\202\323\344\223\0029\"-/v1/{parent=projects/*/locati" + + "ons/*}/instances:\010instance\332A\033parent,inst" + + "ance,instance_id\312AO\n!google.cloud.memcac" + + "he.v1.Instance\022*google.cloud.memcache.v1" + + ".OperationMetadata\022\224\002\n\016UpdateInstance\022/." + + "google.cloud.memcache.v1.UpdateInstanceR" + + "equest\032\035.google.longrunning.Operation\"\261\001" + + "\202\323\344\223\002B26/v1/{instance.name=projects/*/lo" + + "cations/*/instances/*}:\010instance\332A\024insta" + + "nce,update_mask\312AO\n!google.cloud.memcach" + + "e.v1.Instance\022*google.cloud.memcache.v1." + + "OperationMetadata\022\240\002\n\020UpdateParameters\0221" + + ".google.cloud.memcache.v1.UpdateParamete" + + "rsRequest\032\035.google.longrunning.Operation" + + "\"\271\001\202\323\344\223\002C2>/v1/{name=projects/*/location" + + "s/*/instances/*}:updateParameters:\001*\332A\033n" + + "ame,update_mask,parameters\312AO\n!google.cl" + + "oud.memcache.v1.Instance\022*google.cloud.m" + + "emcache.v1.OperationMetadata\022\345\001\n\016DeleteI" + + "nstance\022/.google.cloud.memcache.v1.Delet" + + "eInstanceRequest\032\035.google.longrunning.Op" + + "eration\"\202\001\202\323\344\223\002/*-/v1/{name=projects/*/l" + + "ocations/*/instances/*}\332A\004name\312AC\n\025googl" + + "e.protobuf.Empty\022*google.cloud.memcache." + + "v1.OperationMetadata\022\231\002\n\017ApplyParameters" + + "\0220.google.cloud.memcache.v1.ApplyParamet" + + "ersRequest\032\035.google.longrunning.Operatio" + + "n\"\264\001\202\323\344\223\002B\"=/v1/{name=projects/*/locatio" + + "ns/*/instances/*}:applyParameters:\001*\332A\027n" + + "ame,node_ids,apply_all\312AO\n!google.cloud." + + "memcache.v1.Instance\022*google.cloud.memca" + + "che.v1.OperationMetadata\032K\312A\027memcache.go" + + "ogleapis.com\322A.https://www.googleapis.co" + + "m/auth/cloud-platformBv\n\034com.google.clou" + + "d.memcache.v1B\022CloudMemcacheProtoP\001Z@goo" + + "gle.golang.org/genproto/googleapis/cloud" + + "/memcache/v1;memcacheb\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.FieldMaskProto.getDescriptor(), + com.google.protobuf.TimestampProto.getDescriptor(), + }); + internal_static_google_cloud_memcache_v1_Instance_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_cloud_memcache_v1_Instance_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_memcache_v1_Instance_descriptor, + new java.lang.String[] { "Name", "DisplayName", "Labels", "AuthorizedNetwork", "Zones", "NodeCount", "NodeConfig", "MemcacheVersion", "Parameters", "MemcacheNodes", "CreateTime", "UpdateTime", "State", "MemcacheFullVersion", "InstanceMessages", "DiscoveryEndpoint", }); + internal_static_google_cloud_memcache_v1_Instance_NodeConfig_descriptor = + internal_static_google_cloud_memcache_v1_Instance_descriptor.getNestedTypes().get(0); + internal_static_google_cloud_memcache_v1_Instance_NodeConfig_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_memcache_v1_Instance_NodeConfig_descriptor, + new java.lang.String[] { "CpuCount", "MemorySizeMb", }); + internal_static_google_cloud_memcache_v1_Instance_Node_descriptor = + internal_static_google_cloud_memcache_v1_Instance_descriptor.getNestedTypes().get(1); + internal_static_google_cloud_memcache_v1_Instance_Node_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_memcache_v1_Instance_Node_descriptor, + new java.lang.String[] { "NodeId", "Zone", "State", "Host", "Port", "Parameters", }); + internal_static_google_cloud_memcache_v1_Instance_InstanceMessage_descriptor = + internal_static_google_cloud_memcache_v1_Instance_descriptor.getNestedTypes().get(2); + internal_static_google_cloud_memcache_v1_Instance_InstanceMessage_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_memcache_v1_Instance_InstanceMessage_descriptor, + new java.lang.String[] { "Code", "Message", }); + internal_static_google_cloud_memcache_v1_Instance_LabelsEntry_descriptor = + internal_static_google_cloud_memcache_v1_Instance_descriptor.getNestedTypes().get(3); + internal_static_google_cloud_memcache_v1_Instance_LabelsEntry_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_memcache_v1_Instance_LabelsEntry_descriptor, + new java.lang.String[] { "Key", "Value", }); + internal_static_google_cloud_memcache_v1_ListInstancesRequest_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_google_cloud_memcache_v1_ListInstancesRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_memcache_v1_ListInstancesRequest_descriptor, + new java.lang.String[] { "Parent", "PageSize", "PageToken", "Filter", "OrderBy", }); + internal_static_google_cloud_memcache_v1_ListInstancesResponse_descriptor = + getDescriptor().getMessageTypes().get(2); + internal_static_google_cloud_memcache_v1_ListInstancesResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_memcache_v1_ListInstancesResponse_descriptor, + new java.lang.String[] { "Instances", "NextPageToken", "Unreachable", }); + internal_static_google_cloud_memcache_v1_GetInstanceRequest_descriptor = + getDescriptor().getMessageTypes().get(3); + internal_static_google_cloud_memcache_v1_GetInstanceRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_memcache_v1_GetInstanceRequest_descriptor, + new java.lang.String[] { "Name", }); + internal_static_google_cloud_memcache_v1_CreateInstanceRequest_descriptor = + getDescriptor().getMessageTypes().get(4); + internal_static_google_cloud_memcache_v1_CreateInstanceRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_memcache_v1_CreateInstanceRequest_descriptor, + new java.lang.String[] { "Parent", "InstanceId", "Instance", }); + internal_static_google_cloud_memcache_v1_UpdateInstanceRequest_descriptor = + getDescriptor().getMessageTypes().get(5); + internal_static_google_cloud_memcache_v1_UpdateInstanceRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_memcache_v1_UpdateInstanceRequest_descriptor, + new java.lang.String[] { "UpdateMask", "Instance", }); + internal_static_google_cloud_memcache_v1_DeleteInstanceRequest_descriptor = + getDescriptor().getMessageTypes().get(6); + internal_static_google_cloud_memcache_v1_DeleteInstanceRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_memcache_v1_DeleteInstanceRequest_descriptor, + new java.lang.String[] { "Name", }); + internal_static_google_cloud_memcache_v1_ApplyParametersRequest_descriptor = + getDescriptor().getMessageTypes().get(7); + internal_static_google_cloud_memcache_v1_ApplyParametersRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_memcache_v1_ApplyParametersRequest_descriptor, + new java.lang.String[] { "Name", "NodeIds", "ApplyAll", }); + internal_static_google_cloud_memcache_v1_UpdateParametersRequest_descriptor = + getDescriptor().getMessageTypes().get(8); + internal_static_google_cloud_memcache_v1_UpdateParametersRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_memcache_v1_UpdateParametersRequest_descriptor, + new java.lang.String[] { "Name", "UpdateMask", "Parameters", }); + internal_static_google_cloud_memcache_v1_MemcacheParameters_descriptor = + getDescriptor().getMessageTypes().get(9); + internal_static_google_cloud_memcache_v1_MemcacheParameters_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_memcache_v1_MemcacheParameters_descriptor, + new java.lang.String[] { "Id", "Params", }); + internal_static_google_cloud_memcache_v1_MemcacheParameters_ParamsEntry_descriptor = + internal_static_google_cloud_memcache_v1_MemcacheParameters_descriptor.getNestedTypes().get(0); + internal_static_google_cloud_memcache_v1_MemcacheParameters_ParamsEntry_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_memcache_v1_MemcacheParameters_ParamsEntry_descriptor, + new java.lang.String[] { "Key", "Value", }); + internal_static_google_cloud_memcache_v1_OperationMetadata_descriptor = + getDescriptor().getMessageTypes().get(10); + internal_static_google_cloud_memcache_v1_OperationMetadata_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_memcache_v1_OperationMetadata_descriptor, + new java.lang.String[] { "CreateTime", "EndTime", "Target", "Verb", "StatusDetail", "CancelRequested", "ApiVersion", }); + 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.FieldMaskProto.getDescriptor(); + com.google.protobuf.TimestampProto.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/proto-google-cloud-memcache-v1/src/main/java/com/google/cloud/memcache/v1/CreateInstanceRequest.java b/owl-bot-staging/v1/proto-google-cloud-memcache-v1/src/main/java/com/google/cloud/memcache/v1/CreateInstanceRequest.java similarity index 67% rename from proto-google-cloud-memcache-v1/src/main/java/com/google/cloud/memcache/v1/CreateInstanceRequest.java rename to owl-bot-staging/v1/proto-google-cloud-memcache-v1/src/main/java/com/google/cloud/memcache/v1/CreateInstanceRequest.java index 9f0c7d4c..55e6da06 100644 --- a/proto-google-cloud-memcache-v1/src/main/java/com/google/cloud/memcache/v1/CreateInstanceRequest.java +++ b/owl-bot-staging/v1/proto-google-cloud-memcache-v1/src/main/java/com/google/cloud/memcache/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/memcache/v1/cloud_memcache.proto package com.google.cloud.memcache.v1; /** - * - * *
  * Request for [CreateInstance][google.cloud.memcache.v1.CloudMemcache.CreateInstance].
  * 
* * Protobuf type {@code google.cloud.memcache.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.memcache.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,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.memcache.v1.Instance.Builder subBuilder = null; + if (instance_ != null) { + subBuilder = instance_.toBuilder(); } - case 26: - { - com.google.cloud.memcache.v1.Instance.Builder subBuilder = null; - if (instance_ != null) { - subBuilder = instance_.toBuilder(); - } - instance_ = - input.readMessage( - com.google.cloud.memcache.v1.Instance.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(instance_); - instance_ = subBuilder.buildPartial(); - } - - break; + instance_ = input.readMessage(com.google.cloud.memcache.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) { @@ -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.memcache.v1.CloudMemcacheProto - .internal_static_google_cloud_memcache_v1_CreateInstanceRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.memcache.v1.CloudMemcacheProto.internal_static_google_cloud_memcache_v1_CreateInstanceRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.memcache.v1.CloudMemcacheProto - .internal_static_google_cloud_memcache_v1_CreateInstanceRequest_fieldAccessorTable + return com.google.cloud.memcache.v1.CloudMemcacheProto.internal_static_google_cloud_memcache_v1_CreateInstanceRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.memcache.v1.CreateInstanceRequest.class, - com.google.cloud.memcache.v1.CreateInstanceRequest.Builder.class); + com.google.cloud.memcache.v1.CreateInstanceRequest.class, com.google.cloud.memcache.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 @@ -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 Memcached instance in the user
    * project with the following restrictions:
@@ -211,7 +178,6 @@ public com.google.protobuf.ByteString getParentBytes() {
    * 
* * string instance_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The instanceId. */ @java.lang.Override @@ -220,15 +186,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 Memcached instance in the user
    * project with the following restrictions:
@@ -241,15 +206,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 { @@ -260,16 +226,11 @@ public com.google.protobuf.ByteString getInstanceIdBytes() { public static final int INSTANCE_FIELD_NUMBER = 3; private com.google.cloud.memcache.v1.Instance instance_; /** - * - * *
    * Required. A Memcached Instance
    * 
* - * - * .google.cloud.memcache.v1.Instance instance = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.memcache.v1.Instance instance = 3 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the instance field is set. */ @java.lang.Override @@ -277,34 +238,23 @@ public boolean hasInstance() { return instance_ != null; } /** - * - * *
    * Required. A Memcached Instance
    * 
* - * - * .google.cloud.memcache.v1.Instance instance = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.memcache.v1.Instance instance = 3 [(.google.api.field_behavior) = REQUIRED]; * @return The instance. */ @java.lang.Override public com.google.cloud.memcache.v1.Instance getInstance() { - return instance_ == null - ? com.google.cloud.memcache.v1.Instance.getDefaultInstance() - : instance_; + return instance_ == null ? com.google.cloud.memcache.v1.Instance.getDefaultInstance() : instance_; } /** - * - * *
    * Required. A Memcached Instance
    * 
* - * - * .google.cloud.memcache.v1.Instance instance = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.memcache.v1.Instance instance = 3 [(.google.api.field_behavior) = REQUIRED]; */ @java.lang.Override public com.google.cloud.memcache.v1.InstanceOrBuilder getInstanceOrBuilder() { @@ -312,7 +262,6 @@ public com.google.cloud.memcache.v1.InstanceOrBuilder getInstanceOrBuilder() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -324,7 +273,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); } @@ -350,7 +300,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; @@ -360,19 +311,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.memcache.v1.CreateInstanceRequest)) { return super.equals(obj); } - com.google.cloud.memcache.v1.CreateInstanceRequest other = - (com.google.cloud.memcache.v1.CreateInstanceRequest) obj; + com.google.cloud.memcache.v1.CreateInstanceRequest other = (com.google.cloud.memcache.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; @@ -399,126 +352,117 @@ public int hashCode() { } public static com.google.cloud.memcache.v1.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.memcache.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.memcache.v1.CreateInstanceRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.memcache.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.memcache.v1.CreateInstanceRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.memcache.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.memcache.v1.CreateInstanceRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.memcache.v1.CreateInstanceRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.memcache.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.memcache.v1.CreateInstanceRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.memcache.v1.CreateInstanceRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.memcache.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.memcache.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.memcache.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.memcache.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.memcache.v1.CloudMemcache.CreateInstance].
    * 
* * Protobuf type {@code google.cloud.memcache.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.memcache.v1.CreateInstanceRequest) com.google.cloud.memcache.v1.CreateInstanceRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.memcache.v1.CloudMemcacheProto - .internal_static_google_cloud_memcache_v1_CreateInstanceRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.memcache.v1.CloudMemcacheProto.internal_static_google_cloud_memcache_v1_CreateInstanceRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.memcache.v1.CloudMemcacheProto - .internal_static_google_cloud_memcache_v1_CreateInstanceRequest_fieldAccessorTable + return com.google.cloud.memcache.v1.CloudMemcacheProto.internal_static_google_cloud_memcache_v1_CreateInstanceRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.memcache.v1.CreateInstanceRequest.class, - com.google.cloud.memcache.v1.CreateInstanceRequest.Builder.class); + com.google.cloud.memcache.v1.CreateInstanceRequest.class, com.google.cloud.memcache.v1.CreateInstanceRequest.Builder.class); } // Construct using com.google.cloud.memcache.v1.CreateInstanceRequest.newBuilder() @@ -526,15 +470,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(); @@ -552,9 +497,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.memcache.v1.CloudMemcacheProto - .internal_static_google_cloud_memcache_v1_CreateInstanceRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.memcache.v1.CloudMemcacheProto.internal_static_google_cloud_memcache_v1_CreateInstanceRequest_descriptor; } @java.lang.Override @@ -573,8 +518,7 @@ public com.google.cloud.memcache.v1.CreateInstanceRequest build() { @java.lang.Override public com.google.cloud.memcache.v1.CreateInstanceRequest buildPartial() { - com.google.cloud.memcache.v1.CreateInstanceRequest result = - new com.google.cloud.memcache.v1.CreateInstanceRequest(this); + com.google.cloud.memcache.v1.CreateInstanceRequest result = new com.google.cloud.memcache.v1.CreateInstanceRequest(this); result.parent_ = parent_; result.instanceId_ = instanceId_; if (instanceBuilder_ == null) { @@ -590,39 +534,38 @@ public com.google.cloud.memcache.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.memcache.v1.CreateInstanceRequest) { - return mergeFrom((com.google.cloud.memcache.v1.CreateInstanceRequest) other); + return mergeFrom((com.google.cloud.memcache.v1.CreateInstanceRequest)other); } else { super.mergeFrom(other); return this; @@ -630,8 +573,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.memcache.v1.CreateInstanceRequest other) { - if (other == com.google.cloud.memcache.v1.CreateInstanceRequest.getDefaultInstance()) - return this; + if (other == com.google.cloud.memcache.v1.CreateInstanceRequest.getDefaultInstance()) return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; onChanged(); @@ -662,8 +604,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.memcache.v1.CreateInstanceRequest) e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.memcache.v1.CreateInstanceRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -675,24 +616,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; @@ -701,25 +638,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 { @@ -727,73 +661,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; @@ -801,8 +722,6 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { private java.lang.Object instanceId_ = ""; /** - * - * *
      * Required. The logical name of the Memcached instance in the user
      * project with the following restrictions:
@@ -815,13 +734,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; @@ -830,8 +749,6 @@ public java.lang.String getInstanceId() { } } /** - * - * *
      * Required. The logical name of the Memcached instance in the user
      * project with the following restrictions:
@@ -844,14 +761,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 { @@ -859,8 +777,6 @@ public com.google.protobuf.ByteString getInstanceIdBytes() { } } /** - * - * *
      * Required. The logical name of the Memcached instance in the user
      * project with the following restrictions:
@@ -873,22 +789,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 Memcached instance in the user
      * project with the following restrictions:
@@ -901,18 +815,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 Memcached instance in the user
      * project with the following restrictions:
@@ -925,16 +836,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; @@ -942,58 +853,39 @@ public Builder setInstanceIdBytes(com.google.protobuf.ByteString value) { private com.google.cloud.memcache.v1.Instance instance_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.memcache.v1.Instance, - com.google.cloud.memcache.v1.Instance.Builder, - com.google.cloud.memcache.v1.InstanceOrBuilder> - instanceBuilder_; + com.google.cloud.memcache.v1.Instance, com.google.cloud.memcache.v1.Instance.Builder, com.google.cloud.memcache.v1.InstanceOrBuilder> instanceBuilder_; /** - * - * *
      * Required. A Memcached Instance
      * 
* - * - * .google.cloud.memcache.v1.Instance instance = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.memcache.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 Memcached Instance
      * 
* - * - * .google.cloud.memcache.v1.Instance instance = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.memcache.v1.Instance instance = 3 [(.google.api.field_behavior) = REQUIRED]; * @return The instance. */ public com.google.cloud.memcache.v1.Instance getInstance() { if (instanceBuilder_ == null) { - return instance_ == null - ? com.google.cloud.memcache.v1.Instance.getDefaultInstance() - : instance_; + return instance_ == null ? com.google.cloud.memcache.v1.Instance.getDefaultInstance() : instance_; } else { return instanceBuilder_.getMessage(); } } /** - * - * *
      * Required. A Memcached Instance
      * 
* - * - * .google.cloud.memcache.v1.Instance instance = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.memcache.v1.Instance instance = 3 [(.google.api.field_behavior) = REQUIRED]; */ public Builder setInstance(com.google.cloud.memcache.v1.Instance value) { if (instanceBuilder_ == null) { @@ -1009,17 +901,14 @@ public Builder setInstance(com.google.cloud.memcache.v1.Instance value) { return this; } /** - * - * *
      * Required. A Memcached Instance
      * 
* - * - * .google.cloud.memcache.v1.Instance instance = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.memcache.v1.Instance instance = 3 [(.google.api.field_behavior) = REQUIRED]; */ - public Builder setInstance(com.google.cloud.memcache.v1.Instance.Builder builderForValue) { + public Builder setInstance( + com.google.cloud.memcache.v1.Instance.Builder builderForValue) { if (instanceBuilder_ == null) { instance_ = builderForValue.build(); onChanged(); @@ -1030,23 +919,17 @@ public Builder setInstance(com.google.cloud.memcache.v1.Instance.Builder builder return this; } /** - * - * *
      * Required. A Memcached Instance
      * 
* - * - * .google.cloud.memcache.v1.Instance instance = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.memcache.v1.Instance instance = 3 [(.google.api.field_behavior) = REQUIRED]; */ public Builder mergeInstance(com.google.cloud.memcache.v1.Instance value) { if (instanceBuilder_ == null) { if (instance_ != null) { instance_ = - com.google.cloud.memcache.v1.Instance.newBuilder(instance_) - .mergeFrom(value) - .buildPartial(); + com.google.cloud.memcache.v1.Instance.newBuilder(instance_).mergeFrom(value).buildPartial(); } else { instance_ = value; } @@ -1058,15 +941,11 @@ public Builder mergeInstance(com.google.cloud.memcache.v1.Instance value) { return this; } /** - * - * *
      * Required. A Memcached Instance
      * 
* - * - * .google.cloud.memcache.v1.Instance instance = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.memcache.v1.Instance instance = 3 [(.google.api.field_behavior) = REQUIRED]; */ public Builder clearInstance() { if (instanceBuilder_ == null) { @@ -1080,71 +959,55 @@ public Builder clearInstance() { return this; } /** - * - * *
      * Required. A Memcached Instance
      * 
* - * - * .google.cloud.memcache.v1.Instance instance = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.memcache.v1.Instance instance = 3 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.cloud.memcache.v1.Instance.Builder getInstanceBuilder() { - + onChanged(); return getInstanceFieldBuilder().getBuilder(); } /** - * - * *
      * Required. A Memcached Instance
      * 
* - * - * .google.cloud.memcache.v1.Instance instance = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.memcache.v1.Instance instance = 3 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.cloud.memcache.v1.InstanceOrBuilder getInstanceOrBuilder() { if (instanceBuilder_ != null) { return instanceBuilder_.getMessageOrBuilder(); } else { - return instance_ == null - ? com.google.cloud.memcache.v1.Instance.getDefaultInstance() - : instance_; + return instance_ == null ? + com.google.cloud.memcache.v1.Instance.getDefaultInstance() : instance_; } } /** - * - * *
      * Required. A Memcached Instance
      * 
* - * - * .google.cloud.memcache.v1.Instance instance = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.memcache.v1.Instance instance = 3 [(.google.api.field_behavior) = REQUIRED]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.memcache.v1.Instance, - com.google.cloud.memcache.v1.Instance.Builder, - com.google.cloud.memcache.v1.InstanceOrBuilder> + com.google.cloud.memcache.v1.Instance, com.google.cloud.memcache.v1.Instance.Builder, com.google.cloud.memcache.v1.InstanceOrBuilder> getInstanceFieldBuilder() { if (instanceBuilder_ == null) { - instanceBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.memcache.v1.Instance, - com.google.cloud.memcache.v1.Instance.Builder, - com.google.cloud.memcache.v1.InstanceOrBuilder>( - getInstance(), getParentForChildren(), isClean()); + instanceBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.memcache.v1.Instance, com.google.cloud.memcache.v1.Instance.Builder, com.google.cloud.memcache.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); } @@ -1154,12 +1017,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.memcache.v1.CreateInstanceRequest) } // @@protoc_insertion_point(class_scope:google.cloud.memcache.v1.CreateInstanceRequest) private static final com.google.cloud.memcache.v1.CreateInstanceRequest DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.memcache.v1.CreateInstanceRequest(); } @@ -1168,16 +1031,16 @@ public static com.google.cloud.memcache.v1.CreateInstanceRequest getDefaultInsta 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; @@ -1192,4 +1055,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.memcache.v1.CreateInstanceRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-memcache-v1/src/main/java/com/google/cloud/memcache/v1/CreateInstanceRequestOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-memcache-v1/src/main/java/com/google/cloud/memcache/v1/CreateInstanceRequestOrBuilder.java similarity index 62% rename from proto-google-cloud-memcache-v1/src/main/java/com/google/cloud/memcache/v1/CreateInstanceRequestOrBuilder.java rename to owl-bot-staging/v1/proto-google-cloud-memcache-v1/src/main/java/com/google/cloud/memcache/v1/CreateInstanceRequestOrBuilder.java index 53b7c388..bf74fe64 100644 --- a/proto-google-cloud-memcache-v1/src/main/java/com/google/cloud/memcache/v1/CreateInstanceRequestOrBuilder.java +++ b/owl-bot-staging/v1/proto-google-cloud-memcache-v1/src/main/java/com/google/cloud/memcache/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/memcache/v1/cloud_memcache.proto package com.google.cloud.memcache.v1; -public interface CreateInstanceRequestOrBuilder - extends +public interface CreateInstanceRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.memcache.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 Memcached instance in the user
    * project with the following restrictions:
@@ -71,13 +44,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 Memcached instance in the user
    * project with the following restrictions:
@@ -90,49 +60,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 Memcached Instance
    * 
* - * - * .google.cloud.memcache.v1.Instance instance = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.memcache.v1.Instance instance = 3 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the instance field is set. */ boolean hasInstance(); /** - * - * *
    * Required. A Memcached Instance
    * 
* - * - * .google.cloud.memcache.v1.Instance instance = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.memcache.v1.Instance instance = 3 [(.google.api.field_behavior) = REQUIRED]; * @return The instance. */ com.google.cloud.memcache.v1.Instance getInstance(); /** - * - * *
    * Required. A Memcached Instance
    * 
* - * - * .google.cloud.memcache.v1.Instance instance = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.memcache.v1.Instance instance = 3 [(.google.api.field_behavior) = REQUIRED]; */ com.google.cloud.memcache.v1.InstanceOrBuilder getInstanceOrBuilder(); } diff --git a/proto-google-cloud-memcache-v1/src/main/java/com/google/cloud/memcache/v1/DeleteInstanceRequest.java b/owl-bot-staging/v1/proto-google-cloud-memcache-v1/src/main/java/com/google/cloud/memcache/v1/DeleteInstanceRequest.java similarity index 66% rename from proto-google-cloud-memcache-v1/src/main/java/com/google/cloud/memcache/v1/DeleteInstanceRequest.java rename to owl-bot-staging/v1/proto-google-cloud-memcache-v1/src/main/java/com/google/cloud/memcache/v1/DeleteInstanceRequest.java index 6574a6a1..4b19fa37 100644 --- a/proto-google-cloud-memcache-v1/src/main/java/com/google/cloud/memcache/v1/DeleteInstanceRequest.java +++ b/owl-bot-staging/v1/proto-google-cloud-memcache-v1/src/main/java/com/google/cloud/memcache/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/memcache/v1/cloud_memcache.proto package com.google.cloud.memcache.v1; /** - * - * *
  * Request for [DeleteInstance][google.cloud.memcache.v1.CloudMemcache.DeleteInstance].
  * 
* * Protobuf type {@code google.cloud.memcache.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.memcache.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.memcache.v1.CloudMemcacheProto - .internal_static_google_cloud_memcache_v1_DeleteInstanceRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.memcache.v1.CloudMemcacheProto.internal_static_google_cloud_memcache_v1_DeleteInstanceRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.memcache.v1.CloudMemcacheProto - .internal_static_google_cloud_memcache_v1_DeleteInstanceRequest_fieldAccessorTable + return com.google.cloud.memcache.v1.CloudMemcacheProto.internal_static_google_cloud_memcache_v1_DeleteInstanceRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.memcache.v1.DeleteInstanceRequest.class, - com.google.cloud.memcache.v1.DeleteInstanceRequest.Builder.class); + com.google.cloud.memcache.v1.DeleteInstanceRequest.class, com.google.cloud.memcache.v1.DeleteInstanceRequest.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** - * - * *
    * Required. Memcached instance resource name in the format:
    *     `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. Memcached instance resource name in the format:
    *     `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.memcache.v1.DeleteInstanceRequest)) { return super.equals(obj); } - com.google.cloud.memcache.v1.DeleteInstanceRequest other = - (com.google.cloud.memcache.v1.DeleteInstanceRequest) obj; + com.google.cloud.memcache.v1.DeleteInstanceRequest other = (com.google.cloud.memcache.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; } @@ -235,126 +208,117 @@ public int hashCode() { } public static com.google.cloud.memcache.v1.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.memcache.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.memcache.v1.DeleteInstanceRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.memcache.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.memcache.v1.DeleteInstanceRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.memcache.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.memcache.v1.DeleteInstanceRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.memcache.v1.DeleteInstanceRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.memcache.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.memcache.v1.DeleteInstanceRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.memcache.v1.DeleteInstanceRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.memcache.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.memcache.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.memcache.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.memcache.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.memcache.v1.CloudMemcache.DeleteInstance].
    * 
* * Protobuf type {@code google.cloud.memcache.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.memcache.v1.DeleteInstanceRequest) com.google.cloud.memcache.v1.DeleteInstanceRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.memcache.v1.CloudMemcacheProto - .internal_static_google_cloud_memcache_v1_DeleteInstanceRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.memcache.v1.CloudMemcacheProto.internal_static_google_cloud_memcache_v1_DeleteInstanceRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.memcache.v1.CloudMemcacheProto - .internal_static_google_cloud_memcache_v1_DeleteInstanceRequest_fieldAccessorTable + return com.google.cloud.memcache.v1.CloudMemcacheProto.internal_static_google_cloud_memcache_v1_DeleteInstanceRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.memcache.v1.DeleteInstanceRequest.class, - com.google.cloud.memcache.v1.DeleteInstanceRequest.Builder.class); + com.google.cloud.memcache.v1.DeleteInstanceRequest.class, com.google.cloud.memcache.v1.DeleteInstanceRequest.Builder.class); } // Construct using com.google.cloud.memcache.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.memcache.v1.CloudMemcacheProto - .internal_static_google_cloud_memcache_v1_DeleteInstanceRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.memcache.v1.CloudMemcacheProto.internal_static_google_cloud_memcache_v1_DeleteInstanceRequest_descriptor; } @java.lang.Override @@ -401,8 +366,7 @@ public com.google.cloud.memcache.v1.DeleteInstanceRequest build() { @java.lang.Override public com.google.cloud.memcache.v1.DeleteInstanceRequest buildPartial() { - com.google.cloud.memcache.v1.DeleteInstanceRequest result = - new com.google.cloud.memcache.v1.DeleteInstanceRequest(this); + com.google.cloud.memcache.v1.DeleteInstanceRequest result = new com.google.cloud.memcache.v1.DeleteInstanceRequest(this); result.name_ = name_; onBuilt(); return result; @@ -412,39 +376,38 @@ public com.google.cloud.memcache.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.memcache.v1.DeleteInstanceRequest) { - return mergeFrom((com.google.cloud.memcache.v1.DeleteInstanceRequest) other); + return mergeFrom((com.google.cloud.memcache.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.memcache.v1.DeleteInstanceRequest other) { - if (other == com.google.cloud.memcache.v1.DeleteInstanceRequest.getDefaultInstance()) - return this; + if (other == com.google.cloud.memcache.v1.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.memcache.v1.DeleteInstanceRequest) e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.memcache.v1.DeleteInstanceRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -490,24 +451,20 @@ public Builder mergeFrom( private java.lang.Object name_ = ""; /** - * - * *
      * Required. Memcached instance resource name in the format:
      *     `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. Memcached instance resource name in the format:
      *     `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. Memcached instance resource name in the format:
      *     `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. Memcached instance resource name in the format:
      *     `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. Memcached instance resource name in the format:
      *     `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.memcache.v1.DeleteInstanceRequest) } // @@protoc_insertion_point(class_scope:google.cloud.memcache.v1.DeleteInstanceRequest) private static final com.google.cloud.memcache.v1.DeleteInstanceRequest DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.memcache.v1.DeleteInstanceRequest(); } @@ -639,16 +580,16 @@ public static com.google.cloud.memcache.v1.DeleteInstanceRequest getDefaultInsta 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.memcache.v1.DeleteInstanceRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/owl-bot-staging/v1/proto-google-cloud-memcache-v1/src/main/java/com/google/cloud/memcache/v1/DeleteInstanceRequestOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-memcache-v1/src/main/java/com/google/cloud/memcache/v1/DeleteInstanceRequestOrBuilder.java new file mode 100644 index 00000000..fb62fb45 --- /dev/null +++ b/owl-bot-staging/v1/proto-google-cloud-memcache-v1/src/main/java/com/google/cloud/memcache/v1/DeleteInstanceRequestOrBuilder.java @@ -0,0 +1,33 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/memcache/v1/cloud_memcache.proto + +package com.google.cloud.memcache.v1; + +public interface DeleteInstanceRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.cloud.memcache.v1.DeleteInstanceRequest) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * Required. Memcached instance resource name in the format:
+   *     `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. Memcached instance resource name in the format:
+   *     `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-memcache-v1/src/main/java/com/google/cloud/memcache/v1/GetInstanceRequest.java b/owl-bot-staging/v1/proto-google-cloud-memcache-v1/src/main/java/com/google/cloud/memcache/v1/GetInstanceRequest.java similarity index 67% rename from proto-google-cloud-memcache-v1/src/main/java/com/google/cloud/memcache/v1/GetInstanceRequest.java rename to owl-bot-staging/v1/proto-google-cloud-memcache-v1/src/main/java/com/google/cloud/memcache/v1/GetInstanceRequest.java index decfa8ba..7ff115d3 100644 --- a/proto-google-cloud-memcache-v1/src/main/java/com/google/cloud/memcache/v1/GetInstanceRequest.java +++ b/owl-bot-staging/v1/proto-google-cloud-memcache-v1/src/main/java/com/google/cloud/memcache/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/memcache/v1/cloud_memcache.proto package com.google.cloud.memcache.v1; /** - * - * *
  * Request for [GetInstance][google.cloud.memcache.v1.CloudMemcache.GetInstance].
  * 
* * Protobuf type {@code google.cloud.memcache.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.memcache.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.memcache.v1.CloudMemcacheProto - .internal_static_google_cloud_memcache_v1_GetInstanceRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.memcache.v1.CloudMemcacheProto.internal_static_google_cloud_memcache_v1_GetInstanceRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.memcache.v1.CloudMemcacheProto - .internal_static_google_cloud_memcache_v1_GetInstanceRequest_fieldAccessorTable + return com.google.cloud.memcache.v1.CloudMemcacheProto.internal_static_google_cloud_memcache_v1_GetInstanceRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.memcache.v1.GetInstanceRequest.class, - com.google.cloud.memcache.v1.GetInstanceRequest.Builder.class); + com.google.cloud.memcache.v1.GetInstanceRequest.class, com.google.cloud.memcache.v1.GetInstanceRequest.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** - * - * *
    * Required. Memcached instance resource name in the format:
    *     `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. Memcached instance resource name in the format:
    *     `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.memcache.v1.GetInstanceRequest)) { return super.equals(obj); } - com.google.cloud.memcache.v1.GetInstanceRequest other = - (com.google.cloud.memcache.v1.GetInstanceRequest) obj; + com.google.cloud.memcache.v1.GetInstanceRequest other = (com.google.cloud.memcache.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.memcache.v1.GetInstanceRequest parseFrom(java.nio.ByteBuffer data) + public static com.google.cloud.memcache.v1.GetInstanceRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.memcache.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.memcache.v1.GetInstanceRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.memcache.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.memcache.v1.GetInstanceRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.memcache.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.memcache.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.memcache.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.memcache.v1.GetInstanceRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.memcache.v1.GetInstanceRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.memcache.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.memcache.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.memcache.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.memcache.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.memcache.v1.CloudMemcache.GetInstance].
    * 
* * Protobuf type {@code google.cloud.memcache.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.memcache.v1.GetInstanceRequest) com.google.cloud.memcache.v1.GetInstanceRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.memcache.v1.CloudMemcacheProto - .internal_static_google_cloud_memcache_v1_GetInstanceRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.memcache.v1.CloudMemcacheProto.internal_static_google_cloud_memcache_v1_GetInstanceRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.memcache.v1.CloudMemcacheProto - .internal_static_google_cloud_memcache_v1_GetInstanceRequest_fieldAccessorTable + return com.google.cloud.memcache.v1.CloudMemcacheProto.internal_static_google_cloud_memcache_v1_GetInstanceRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.memcache.v1.GetInstanceRequest.class, - com.google.cloud.memcache.v1.GetInstanceRequest.Builder.class); + com.google.cloud.memcache.v1.GetInstanceRequest.class, com.google.cloud.memcache.v1.GetInstanceRequest.Builder.class); } // Construct using com.google.cloud.memcache.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.memcache.v1.CloudMemcacheProto - .internal_static_google_cloud_memcache_v1_GetInstanceRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.memcache.v1.CloudMemcacheProto.internal_static_google_cloud_memcache_v1_GetInstanceRequest_descriptor; } @java.lang.Override @@ -401,8 +366,7 @@ public com.google.cloud.memcache.v1.GetInstanceRequest build() { @java.lang.Override public com.google.cloud.memcache.v1.GetInstanceRequest buildPartial() { - com.google.cloud.memcache.v1.GetInstanceRequest result = - new com.google.cloud.memcache.v1.GetInstanceRequest(this); + com.google.cloud.memcache.v1.GetInstanceRequest result = new com.google.cloud.memcache.v1.GetInstanceRequest(this); result.name_ = name_; onBuilt(); return result; @@ -412,39 +376,38 @@ public com.google.cloud.memcache.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.memcache.v1.GetInstanceRequest) { - return mergeFrom((com.google.cloud.memcache.v1.GetInstanceRequest) other); + return mergeFrom((com.google.cloud.memcache.v1.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.memcache.v1.GetInstanceRequest other) { - if (other == com.google.cloud.memcache.v1.GetInstanceRequest.getDefaultInstance()) - return this; + if (other == com.google.cloud.memcache.v1.GetInstanceRequest.getDefaultInstance()) return this; if (!other.getName().isEmpty()) { name_ = other.name_; onChanged(); @@ -489,24 +451,20 @@ public Builder mergeFrom( private java.lang.Object name_ = ""; /** - * - * *
      * Required. Memcached instance resource name in the format:
      *     `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. Memcached instance resource name in the format:
      *     `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. Memcached instance resource name in the format:
      *     `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. Memcached instance resource name in the format:
      *     `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. Memcached instance resource name in the format:
      *     `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.memcache.v1.GetInstanceRequest) } // @@protoc_insertion_point(class_scope:google.cloud.memcache.v1.GetInstanceRequest) private static final com.google.cloud.memcache.v1.GetInstanceRequest DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.memcache.v1.GetInstanceRequest(); } @@ -638,16 +580,16 @@ public static com.google.cloud.memcache.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; @@ -662,4 +604,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.memcache.v1.GetInstanceRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/owl-bot-staging/v1/proto-google-cloud-memcache-v1/src/main/java/com/google/cloud/memcache/v1/GetInstanceRequestOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-memcache-v1/src/main/java/com/google/cloud/memcache/v1/GetInstanceRequestOrBuilder.java new file mode 100644 index 00000000..7d11b235 --- /dev/null +++ b/owl-bot-staging/v1/proto-google-cloud-memcache-v1/src/main/java/com/google/cloud/memcache/v1/GetInstanceRequestOrBuilder.java @@ -0,0 +1,33 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/memcache/v1/cloud_memcache.proto + +package com.google.cloud.memcache.v1; + +public interface GetInstanceRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.cloud.memcache.v1.GetInstanceRequest) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * Required. Memcached instance resource name in the format:
+   *     `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. Memcached instance resource name in the format:
+   *     `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-memcache-v1/src/main/java/com/google/cloud/memcache/v1/Instance.java b/owl-bot-staging/v1/proto-google-cloud-memcache-v1/src/main/java/com/google/cloud/memcache/v1/Instance.java similarity index 72% rename from proto-google-cloud-memcache-v1/src/main/java/com/google/cloud/memcache/v1/Instance.java rename to owl-bot-staging/v1/proto-google-cloud-memcache-v1/src/main/java/com/google/cloud/memcache/v1/Instance.java index 969bb6ac..e225c35e 100644 --- a/proto-google-cloud-memcache-v1/src/main/java/com/google/cloud/memcache/v1/Instance.java +++ b/owl-bot-staging/v1/proto-google-cloud-memcache-v1/src/main/java/com/google/cloud/memcache/v1/Instance.java @@ -1,34 +1,20 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/memcache/v1/cloud_memcache.proto package com.google.cloud.memcache.v1; -/** Protobuf type {@code google.cloud.memcache.v1.Instance} */ -public final class Instance extends com.google.protobuf.GeneratedMessageV3 - implements +/** + * Protobuf type {@code google.cloud.memcache.v1.Instance} + */ +public final class Instance extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.memcache.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,15 +30,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) @@ -72,178 +59,152 @@ 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(); - authorizedNetwork_ = s; - break; - } - case 42: - { - java.lang.String s = input.readStringRequireUtf8(); - if (!((mutable_bitField0_ & 0x00000002) != 0)) { - zones_ = new com.google.protobuf.LazyStringArrayList(); - mutable_bitField0_ |= 0x00000002; - } - zones_.add(s); - break; - } - case 48: - { - nodeCount_ = input.readInt32(); - break; + authorizedNetwork_ = s; + break; + } + case 42: { + java.lang.String s = input.readStringRequireUtf8(); + if (!((mutable_bitField0_ & 0x00000002) != 0)) { + zones_ = new com.google.protobuf.LazyStringArrayList(); + mutable_bitField0_ |= 0x00000002; } - case 58: - { - com.google.cloud.memcache.v1.Instance.NodeConfig.Builder subBuilder = null; - if (nodeConfig_ != null) { - subBuilder = nodeConfig_.toBuilder(); - } - nodeConfig_ = - input.readMessage( - com.google.cloud.memcache.v1.Instance.NodeConfig.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(nodeConfig_); - nodeConfig_ = subBuilder.buildPartial(); - } + zones_.add(s); + break; + } + case 48: { - break; + nodeCount_ = input.readInt32(); + break; + } + case 58: { + com.google.cloud.memcache.v1.Instance.NodeConfig.Builder subBuilder = null; + if (nodeConfig_ != null) { + subBuilder = nodeConfig_.toBuilder(); } - case 72: - { - int rawValue = input.readEnum(); - - memcacheVersion_ = rawValue; - break; + nodeConfig_ = input.readMessage(com.google.cloud.memcache.v1.Instance.NodeConfig.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(nodeConfig_); + nodeConfig_ = subBuilder.buildPartial(); } - case 90: - { - com.google.cloud.memcache.v1.MemcacheParameters.Builder subBuilder = null; - if (parameters_ != null) { - subBuilder = parameters_.toBuilder(); - } - parameters_ = - input.readMessage( - com.google.cloud.memcache.v1.MemcacheParameters.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(parameters_); - parameters_ = subBuilder.buildPartial(); - } - break; + break; + } + case 72: { + int rawValue = input.readEnum(); + + memcacheVersion_ = rawValue; + break; + } + case 90: { + com.google.cloud.memcache.v1.MemcacheParameters.Builder subBuilder = null; + if (parameters_ != null) { + subBuilder = parameters_.toBuilder(); } - case 98: - { - if (!((mutable_bitField0_ & 0x00000004) != 0)) { - memcacheNodes_ = - new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000004; - } - memcacheNodes_.add( - input.readMessage( - com.google.cloud.memcache.v1.Instance.Node.parser(), extensionRegistry)); - break; + parameters_ = input.readMessage(com.google.cloud.memcache.v1.MemcacheParameters.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(parameters_); + parameters_ = subBuilder.buildPartial(); } - 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; + break; + } + case 98: { + if (!((mutable_bitField0_ & 0x00000004) != 0)) { + memcacheNodes_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000004; } - case 114: - { - 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; + memcacheNodes_.add( + input.readMessage(com.google.cloud.memcache.v1.Instance.Node.parser(), extensionRegistry)); + break; + } + case 106: { + com.google.protobuf.Timestamp.Builder subBuilder = null; + if (createTime_ != null) { + subBuilder = createTime_.toBuilder(); } - case 120: - { - int rawValue = input.readEnum(); - - state_ = rawValue; - break; + createTime_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(createTime_); + createTime_ = subBuilder.buildPartial(); } - case 146: - { - java.lang.String s = input.readStringRequireUtf8(); - memcacheFullVersion_ = s; - break; + break; + } + case 114: { + com.google.protobuf.Timestamp.Builder subBuilder = null; + if (updateTime_ != null) { + subBuilder = updateTime_.toBuilder(); } - case 154: - { - if (!((mutable_bitField0_ & 0x00000008) != 0)) { - instanceMessages_ = - new java.util.ArrayList< - com.google.cloud.memcache.v1.Instance.InstanceMessage>(); - mutable_bitField0_ |= 0x00000008; - } - instanceMessages_.add( - input.readMessage( - com.google.cloud.memcache.v1.Instance.InstanceMessage.parser(), - extensionRegistry)); - break; + updateTime_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(updateTime_); + updateTime_ = subBuilder.buildPartial(); } - case 162: - { - java.lang.String s = input.readStringRequireUtf8(); - discoveryEndpoint_ = s; - break; + break; + } + case 120: { + int rawValue = input.readEnum(); + + state_ = rawValue; + break; + } + case 146: { + java.lang.String s = input.readStringRequireUtf8(); + + memcacheFullVersion_ = s; + break; + } + case 154: { + if (!((mutable_bitField0_ & 0x00000008) != 0)) { + instanceMessages_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000008; } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + instanceMessages_.add( + input.readMessage(com.google.cloud.memcache.v1.Instance.InstanceMessage.parser(), extensionRegistry)); + break; + } + case 162: { + java.lang.String s = input.readStringRequireUtf8(); + + discoveryEndpoint_ = s; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -251,7 +212,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_ & 0x00000002) != 0)) { zones_ = zones_.getUnmodifiableView(); @@ -266,46 +228,41 @@ private Instance( makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.memcache.v1.CloudMemcacheProto - .internal_static_google_cloud_memcache_v1_Instance_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.memcache.v1.CloudMemcacheProto.internal_static_google_cloud_memcache_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(); 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.memcache.v1.CloudMemcacheProto - .internal_static_google_cloud_memcache_v1_Instance_fieldAccessorTable + return com.google.cloud.memcache.v1.CloudMemcacheProto.internal_static_google_cloud_memcache_v1_Instance_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.memcache.v1.Instance.class, - com.google.cloud.memcache.v1.Instance.Builder.class); + com.google.cloud.memcache.v1.Instance.class, com.google.cloud.memcache.v1.Instance.Builder.class); } /** - * - * *
    * Different states of a Memcached instance.
    * 
* * Protobuf enum {@code google.cloud.memcache.v1.Instance.State} */ - public enum State implements com.google.protobuf.ProtocolMessageEnum { + public enum State + implements com.google.protobuf.ProtocolMessageEnum { /** - * - * *
      * State not set.
      * 
@@ -314,8 +271,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ STATE_UNSPECIFIED(0), /** - * - * *
      * Memcached instance is being created.
      * 
@@ -324,8 +279,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ CREATING(1), /** - * - * *
      * Memcached instance has been created and ready to be used.
      * 
@@ -334,8 +287,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ READY(2), /** - * - * *
      * Memcached instance is being deleted.
      * 
@@ -344,8 +295,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ DELETING(4), /** - * - * *
      * Memcached instance is going through maintenance, e.g. data plane rollout.
      * 
@@ -357,8 +306,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { ; /** - * - * *
      * State not set.
      * 
@@ -367,8 +314,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ public static final int STATE_UNSPECIFIED_VALUE = 0; /** - * - * *
      * Memcached instance is being created.
      * 
@@ -377,8 +322,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ public static final int CREATING_VALUE = 1; /** - * - * *
      * Memcached instance has been created and ready to be used.
      * 
@@ -387,8 +330,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ public static final int READY_VALUE = 2; /** - * - * *
      * Memcached instance is being deleted.
      * 
@@ -397,8 +338,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ public static final int DELETING_VALUE = 4; /** - * - * *
      * Memcached instance is going through maintenance, e.g. data plane rollout.
      * 
@@ -407,6 +346,7 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ public static final int PERFORMING_MAINTENANCE_VALUE = 5; + public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( @@ -431,53 +371,51 @@ 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 4: - return DELETING; - case 5: - return PERFORMING_MAINTENANCE; - default: - return null; + case 0: return STATE_UNSPECIFIED; + case 1: return CREATING; + case 2: return READY; + case 4: return DELETING; + case 5: return PERFORMING_MAINTENANCE; + 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.memcache.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; @@ -494,69 +432,61 @@ private State(int value) { // @@protoc_insertion_point(enum_scope:google.cloud.memcache.v1.Instance.State) } - public interface NodeConfigOrBuilder - extends + public interface NodeConfigOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.memcache.v1.Instance.NodeConfig) com.google.protobuf.MessageOrBuilder { /** - * - * *
      * Required. Number of cpus per Memcached node.
      * 
* * int32 cpu_count = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The cpuCount. */ int getCpuCount(); /** - * - * *
      * Required. Memory size in MiB for each Memcached node.
      * 
* * int32 memory_size_mb = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The memorySizeMb. */ int getMemorySizeMb(); } /** - * - * *
    * Configuration for a Memcached Node.
    * 
* * Protobuf type {@code google.cloud.memcache.v1.Instance.NodeConfig} */ - public static final class NodeConfig extends com.google.protobuf.GeneratedMessageV3 - implements + public static final class NodeConfig extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.memcache.v1.Instance.NodeConfig) NodeConfigOrBuilder { - private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use NodeConfig.newBuilder() to construct. private NodeConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - - private NodeConfig() {} + private NodeConfig() { + } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new NodeConfig(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private NodeConfig( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -575,23 +505,23 @@ private NodeConfig( case 0: done = true; break; - case 8: - { - cpuCount_ = input.readInt32(); - break; - } - case 16: - { - memorySizeMb_ = input.readInt32(); - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + case 8: { + + cpuCount_ = input.readInt32(); + break; + } + case 16: { + + memorySizeMb_ = input.readInt32(); + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -599,39 +529,34 @@ private NodeConfig( } 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.memcache.v1.CloudMemcacheProto - .internal_static_google_cloud_memcache_v1_Instance_NodeConfig_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.memcache.v1.CloudMemcacheProto.internal_static_google_cloud_memcache_v1_Instance_NodeConfig_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.memcache.v1.CloudMemcacheProto - .internal_static_google_cloud_memcache_v1_Instance_NodeConfig_fieldAccessorTable + return com.google.cloud.memcache.v1.CloudMemcacheProto.internal_static_google_cloud_memcache_v1_Instance_NodeConfig_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.memcache.v1.Instance.NodeConfig.class, - com.google.cloud.memcache.v1.Instance.NodeConfig.Builder.class); + com.google.cloud.memcache.v1.Instance.NodeConfig.class, com.google.cloud.memcache.v1.Instance.NodeConfig.Builder.class); } public static final int CPU_COUNT_FIELD_NUMBER = 1; private int cpuCount_; /** - * - * *
      * Required. Number of cpus per Memcached node.
      * 
* * int32 cpu_count = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The cpuCount. */ @java.lang.Override @@ -642,14 +567,11 @@ public int getCpuCount() { public static final int MEMORY_SIZE_MB_FIELD_NUMBER = 2; private int memorySizeMb_; /** - * - * *
      * Required. Memory size in MiB for each Memcached node.
      * 
* * int32 memory_size_mb = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The memorySizeMb. */ @java.lang.Override @@ -658,7 +580,6 @@ public int getMemorySizeMb() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -670,7 +591,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (cpuCount_ != 0) { output.writeInt32(1, cpuCount_); } @@ -687,10 +609,12 @@ public int getSerializedSize() { size = 0; if (cpuCount_ != 0) { - size += com.google.protobuf.CodedOutputStream.computeInt32Size(1, cpuCount_); + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(1, cpuCount_); } if (memorySizeMb_ != 0) { - size += com.google.protobuf.CodedOutputStream.computeInt32Size(2, memorySizeMb_); + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(2, memorySizeMb_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -700,16 +624,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.memcache.v1.Instance.NodeConfig)) { return super.equals(obj); } - com.google.cloud.memcache.v1.Instance.NodeConfig other = - (com.google.cloud.memcache.v1.Instance.NodeConfig) obj; + com.google.cloud.memcache.v1.Instance.NodeConfig other = (com.google.cloud.memcache.v1.Instance.NodeConfig) obj; - if (getCpuCount() != other.getCpuCount()) return false; - if (getMemorySizeMb() != other.getMemorySizeMb()) return false; + if (getCpuCount() + != other.getCpuCount()) return false; + if (getMemorySizeMb() + != other.getMemorySizeMb()) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -731,93 +656,87 @@ public int hashCode() { } public static com.google.cloud.memcache.v1.Instance.NodeConfig parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.memcache.v1.Instance.NodeConfig parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.memcache.v1.Instance.NodeConfig parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.memcache.v1.Instance.NodeConfig parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.memcache.v1.Instance.NodeConfig parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.memcache.v1.Instance.NodeConfig parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.memcache.v1.Instance.NodeConfig parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.memcache.v1.Instance.NodeConfig parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.memcache.v1.Instance.NodeConfig parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.memcache.v1.Instance.NodeConfig parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.memcache.v1.Instance.NodeConfig parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.memcache.v1.Instance.NodeConfig parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.memcache.v1.Instance.NodeConfig parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.memcache.v1.Instance.NodeConfig parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.memcache.v1.Instance.NodeConfig prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override @@ -827,32 +746,27 @@ protected Builder newBuilderForType( return builder; } /** - * - * *
      * Configuration for a Memcached Node.
      * 
* * Protobuf type {@code google.cloud.memcache.v1.Instance.NodeConfig} */ - public static final class Builder - extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.memcache.v1.Instance.NodeConfig) com.google.cloud.memcache.v1.Instance.NodeConfigOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.memcache.v1.CloudMemcacheProto - .internal_static_google_cloud_memcache_v1_Instance_NodeConfig_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.memcache.v1.CloudMemcacheProto.internal_static_google_cloud_memcache_v1_Instance_NodeConfig_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.memcache.v1.CloudMemcacheProto - .internal_static_google_cloud_memcache_v1_Instance_NodeConfig_fieldAccessorTable + return com.google.cloud.memcache.v1.CloudMemcacheProto.internal_static_google_cloud_memcache_v1_Instance_NodeConfig_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.memcache.v1.Instance.NodeConfig.class, - com.google.cloud.memcache.v1.Instance.NodeConfig.Builder.class); + com.google.cloud.memcache.v1.Instance.NodeConfig.class, com.google.cloud.memcache.v1.Instance.NodeConfig.Builder.class); } // Construct using com.google.cloud.memcache.v1.Instance.NodeConfig.newBuilder() @@ -860,15 +774,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(); @@ -880,9 +795,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.memcache.v1.CloudMemcacheProto - .internal_static_google_cloud_memcache_v1_Instance_NodeConfig_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.memcache.v1.CloudMemcacheProto.internal_static_google_cloud_memcache_v1_Instance_NodeConfig_descriptor; } @java.lang.Override @@ -901,8 +816,7 @@ public com.google.cloud.memcache.v1.Instance.NodeConfig build() { @java.lang.Override public com.google.cloud.memcache.v1.Instance.NodeConfig buildPartial() { - com.google.cloud.memcache.v1.Instance.NodeConfig result = - new com.google.cloud.memcache.v1.Instance.NodeConfig(this); + com.google.cloud.memcache.v1.Instance.NodeConfig result = new com.google.cloud.memcache.v1.Instance.NodeConfig(this); result.cpuCount_ = cpuCount_; result.memorySizeMb_ = memorySizeMb_; onBuilt(); @@ -913,41 +827,38 @@ public com.google.cloud.memcache.v1.Instance.NodeConfig buildPartial() { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, - int index, - java.lang.Object value) { + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.memcache.v1.Instance.NodeConfig) { - return mergeFrom((com.google.cloud.memcache.v1.Instance.NodeConfig) other); + return mergeFrom((com.google.cloud.memcache.v1.Instance.NodeConfig)other); } else { super.mergeFrom(other); return this; @@ -955,8 +866,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.memcache.v1.Instance.NodeConfig other) { - if (other == com.google.cloud.memcache.v1.Instance.NodeConfig.getDefaultInstance()) - return this; + if (other == com.google.cloud.memcache.v1.Instance.NodeConfig.getDefaultInstance()) return this; if (other.getCpuCount() != 0) { setCpuCount(other.getCpuCount()); } @@ -982,8 +892,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.memcache.v1.Instance.NodeConfig) e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.memcache.v1.Instance.NodeConfig) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -993,16 +902,13 @@ public Builder mergeFrom( return this; } - private int cpuCount_; + private int cpuCount_ ; /** - * - * *
        * Required. Number of cpus per Memcached node.
        * 
* * int32 cpu_count = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The cpuCount. */ @java.lang.Override @@ -1010,51 +916,42 @@ public int getCpuCount() { return cpuCount_; } /** - * - * *
        * Required. Number of cpus per Memcached node.
        * 
* * int32 cpu_count = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The cpuCount to set. * @return This builder for chaining. */ public Builder setCpuCount(int value) { - + cpuCount_ = value; onChanged(); return this; } /** - * - * *
        * Required. Number of cpus per Memcached node.
        * 
* * int32 cpu_count = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return This builder for chaining. */ public Builder clearCpuCount() { - + cpuCount_ = 0; onChanged(); return this; } - private int memorySizeMb_; + private int memorySizeMb_ ; /** - * - * *
        * Required. Memory size in MiB for each Memcached node.
        * 
* * int32 memory_size_mb = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The memorySizeMb. */ @java.lang.Override @@ -1062,41 +959,34 @@ public int getMemorySizeMb() { return memorySizeMb_; } /** - * - * *
        * Required. Memory size in MiB for each Memcached node.
        * 
* * int32 memory_size_mb = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The memorySizeMb to set. * @return This builder for chaining. */ public Builder setMemorySizeMb(int value) { - + memorySizeMb_ = value; onChanged(); return this; } /** - * - * *
        * Required. Memory size in MiB for each Memcached node.
        * 
* * int32 memory_size_mb = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return This builder for chaining. */ public Builder clearMemorySizeMb() { - + memorySizeMb_ = 0; onChanged(); return this; } - @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -1109,12 +999,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.memcache.v1.Instance.NodeConfig) } // @@protoc_insertion_point(class_scope:google.cloud.memcache.v1.Instance.NodeConfig) private static final com.google.cloud.memcache.v1.Instance.NodeConfig DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.memcache.v1.Instance.NodeConfig(); } @@ -1123,16 +1013,16 @@ public static com.google.cloud.memcache.v1.Instance.NodeConfig getDefaultInstanc return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public NodeConfig parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new NodeConfig(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public NodeConfig parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new NodeConfig(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1147,161 +1037,125 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.memcache.v1.Instance.NodeConfig getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } - public interface NodeOrBuilder - extends + public interface NodeOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.memcache.v1.Instance.Node) com.google.protobuf.MessageOrBuilder { /** - * - * *
      * Output only. Identifier of the Memcached node. The node id does not
      * include project or location like the Memcached instance name.
      * 
* * string node_id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The nodeId. */ java.lang.String getNodeId(); /** - * - * *
      * Output only. Identifier of the Memcached node. The node id does not
      * include project or location like the Memcached instance name.
      * 
* * string node_id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for nodeId. */ - com.google.protobuf.ByteString getNodeIdBytes(); + com.google.protobuf.ByteString + getNodeIdBytes(); /** - * - * *
      * Output only. Location (GCP Zone) for the Memcached node.
      * 
* * string zone = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The zone. */ java.lang.String getZone(); /** - * - * *
      * Output only. Location (GCP Zone) for the Memcached 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(); /** - * - * *
      * Output only. Current state of the Memcached node.
      * 
* - * - * .google.cloud.memcache.v1.Instance.Node.State state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.memcache.v1.Instance.Node.State state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The enum numeric value on the wire for state. */ int getStateValue(); /** - * - * *
      * Output only. Current state of the Memcached node.
      * 
* - * - * .google.cloud.memcache.v1.Instance.Node.State state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.memcache.v1.Instance.Node.State state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The state. */ com.google.cloud.memcache.v1.Instance.Node.State getState(); /** - * - * *
      * Output only. Hostname or IP address of the Memcached node used by the
      * clients to connect to the Memcached server on this node.
      * 
* * string host = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The host. */ java.lang.String getHost(); /** - * - * *
      * Output only. Hostname or IP address of the Memcached node used by the
      * clients to connect to the Memcached server on this node.
      * 
* * string host = 4 [(.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 Memcached server on this node.
      * 
* * int32 port = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The port. */ int getPort(); /** - * - * *
      * User defined parameters currently applied to the node.
      * 
* * .google.cloud.memcache.v1.MemcacheParameters parameters = 6; - * * @return Whether the parameters field is set. */ boolean hasParameters(); /** - * - * *
      * User defined parameters currently applied to the node.
      * 
* * .google.cloud.memcache.v1.MemcacheParameters parameters = 6; - * * @return The parameters. */ com.google.cloud.memcache.v1.MemcacheParameters getParameters(); /** - * - * *
      * User defined parameters currently applied to the node.
      * 
@@ -1310,17 +1164,18 @@ public interface NodeOrBuilder */ com.google.cloud.memcache.v1.MemcacheParametersOrBuilder getParametersOrBuilder(); } - /** Protobuf type {@code google.cloud.memcache.v1.Instance.Node} */ - public static final class Node extends com.google.protobuf.GeneratedMessageV3 - implements + /** + * Protobuf type {@code google.cloud.memcache.v1.Instance.Node} + */ + public static final class Node extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.memcache.v1.Instance.Node) NodeOrBuilder { - private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use Node.newBuilder() to construct. private Node(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private Node() { nodeId_ = ""; zone_ = ""; @@ -1330,15 +1185,16 @@ private Node() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new Node(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private Node( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -1357,63 +1213,55 @@ private Node( case 0: done = true; break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); + case 10: { + java.lang.String s = input.readStringRequireUtf8(); - nodeId_ = s; - break; - } - case 18: - { - java.lang.String s = input.readStringRequireUtf8(); + nodeId_ = s; + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); + + zone_ = s; + break; + } + case 24: { + int rawValue = input.readEnum(); + + state_ = rawValue; + break; + } + case 34: { + java.lang.String s = input.readStringRequireUtf8(); - zone_ = s; - break; + host_ = s; + break; + } + case 40: { + + port_ = input.readInt32(); + break; + } + case 50: { + com.google.cloud.memcache.v1.MemcacheParameters.Builder subBuilder = null; + if (parameters_ != null) { + subBuilder = parameters_.toBuilder(); } - case 24: - { - int rawValue = input.readEnum(); - - state_ = rawValue; - break; + parameters_ = input.readMessage(com.google.cloud.memcache.v1.MemcacheParameters.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(parameters_); + parameters_ = subBuilder.buildPartial(); } - case 34: - { - java.lang.String s = input.readStringRequireUtf8(); - host_ = s; - break; - } - case 40: - { - port_ = input.readInt32(); - break; - } - case 50: - { - com.google.cloud.memcache.v1.MemcacheParameters.Builder subBuilder = null; - if (parameters_ != null) { - subBuilder = parameters_.toBuilder(); - } - parameters_ = - input.readMessage( - com.google.cloud.memcache.v1.MemcacheParameters.parser(), - extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(parameters_); - parameters_ = subBuilder.buildPartial(); - } - - break; - } - 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) { @@ -1421,41 +1269,36 @@ private Node( } 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.memcache.v1.CloudMemcacheProto - .internal_static_google_cloud_memcache_v1_Instance_Node_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.memcache.v1.CloudMemcacheProto.internal_static_google_cloud_memcache_v1_Instance_Node_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.memcache.v1.CloudMemcacheProto - .internal_static_google_cloud_memcache_v1_Instance_Node_fieldAccessorTable + return com.google.cloud.memcache.v1.CloudMemcacheProto.internal_static_google_cloud_memcache_v1_Instance_Node_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.memcache.v1.Instance.Node.class, - com.google.cloud.memcache.v1.Instance.Node.Builder.class); + com.google.cloud.memcache.v1.Instance.Node.class, com.google.cloud.memcache.v1.Instance.Node.Builder.class); } /** - * - * *
      * Different states of a Memcached node.
      * 
* * Protobuf enum {@code google.cloud.memcache.v1.Instance.Node.State} */ - public enum State implements com.google.protobuf.ProtocolMessageEnum { + public enum State + implements com.google.protobuf.ProtocolMessageEnum { /** - * - * *
        * Node state is not set.
        * 
@@ -1464,8 +1307,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ STATE_UNSPECIFIED(0), /** - * - * *
        * Node is being created.
        * 
@@ -1474,8 +1315,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ CREATING(1), /** - * - * *
        * Node has been created and ready to be used.
        * 
@@ -1484,8 +1323,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ READY(2), /** - * - * *
        * Node is being deleted.
        * 
@@ -1494,8 +1331,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ DELETING(3), /** - * - * *
        * Node is being updated.
        * 
@@ -1507,8 +1342,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { ; /** - * - * *
        * Node state is not set.
        * 
@@ -1517,8 +1350,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ public static final int STATE_UNSPECIFIED_VALUE = 0; /** - * - * *
        * Node is being created.
        * 
@@ -1527,8 +1358,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ public static final int CREATING_VALUE = 1; /** - * - * *
        * Node has been created and ready to be used.
        * 
@@ -1537,8 +1366,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ public static final int READY_VALUE = 2; /** - * - * *
        * Node is being deleted.
        * 
@@ -1547,8 +1374,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ public static final int DELETING_VALUE = 3; /** - * - * *
        * Node is being updated.
        * 
@@ -1557,6 +1382,7 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ public static final int UPDATING_VALUE = 4; + public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( @@ -1581,53 +1407,51 @@ 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 DELETING; - case 4: - return UPDATING; - default: - return null; + case 0: return STATE_UNSPECIFIED; + case 1: return CREATING; + case 2: return READY; + case 3: return DELETING; + case 4: return UPDATING; + 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.memcache.v1.Instance.Node.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; @@ -1647,15 +1471,12 @@ private State(int value) { public static final int NODE_ID_FIELD_NUMBER = 1; private volatile java.lang.Object nodeId_; /** - * - * *
      * Output only. Identifier of the Memcached node. The node id does not
      * include project or location like the Memcached instance name.
      * 
* * string node_id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The nodeId. */ @java.lang.Override @@ -1664,30 +1485,30 @@ public java.lang.String getNodeId() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); nodeId_ = s; return s; } } /** - * - * *
      * Output only. Identifier of the Memcached node. The node id does not
      * include project or location like the Memcached instance name.
      * 
* * string node_id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for nodeId. */ @java.lang.Override - public com.google.protobuf.ByteString getNodeIdBytes() { + public com.google.protobuf.ByteString + getNodeIdBytes() { java.lang.Object ref = nodeId_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); nodeId_ = b; return b; } else { @@ -1698,14 +1519,11 @@ public com.google.protobuf.ByteString getNodeIdBytes() { public static final int ZONE_FIELD_NUMBER = 2; private volatile java.lang.Object zone_; /** - * - * *
      * Output only. Location (GCP Zone) for the Memcached node.
      * 
* * string zone = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The zone. */ @java.lang.Override @@ -1714,29 +1532,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 (GCP Zone) for the Memcached 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 { @@ -1747,57 +1565,39 @@ public com.google.protobuf.ByteString getZoneBytes() { public static final int STATE_FIELD_NUMBER = 3; private int state_; /** - * - * *
      * Output only. Current state of the Memcached node.
      * 
* - * - * .google.cloud.memcache.v1.Instance.Node.State state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.memcache.v1.Instance.Node.State state = 3 [(.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. Current state of the Memcached node.
      * 
* - * - * .google.cloud.memcache.v1.Instance.Node.State state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.memcache.v1.Instance.Node.State state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The state. */ - @java.lang.Override - public com.google.cloud.memcache.v1.Instance.Node.State getState() { + @java.lang.Override public com.google.cloud.memcache.v1.Instance.Node.State getState() { @SuppressWarnings("deprecation") - com.google.cloud.memcache.v1.Instance.Node.State result = - com.google.cloud.memcache.v1.Instance.Node.State.valueOf(state_); - return result == null - ? com.google.cloud.memcache.v1.Instance.Node.State.UNRECOGNIZED - : result; + com.google.cloud.memcache.v1.Instance.Node.State result = com.google.cloud.memcache.v1.Instance.Node.State.valueOf(state_); + return result == null ? com.google.cloud.memcache.v1.Instance.Node.State.UNRECOGNIZED : result; } public static final int HOST_FIELD_NUMBER = 4; private volatile java.lang.Object host_; /** - * - * *
      * Output only. Hostname or IP address of the Memcached node used by the
      * clients to connect to the Memcached server on this node.
      * 
* * string host = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The host. */ @java.lang.Override @@ -1806,30 +1606,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 Memcached node used by the
      * clients to connect to the Memcached server on this node.
      * 
* * string host = 4 [(.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 { @@ -1840,14 +1640,11 @@ public com.google.protobuf.ByteString getHostBytes() { public static final int PORT_FIELD_NUMBER = 5; private int port_; /** - * - * *
      * Output only. The port number of the Memcached server on this node.
      * 
* * int32 port = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The port. */ @java.lang.Override @@ -1858,14 +1655,11 @@ public int getPort() { public static final int PARAMETERS_FIELD_NUMBER = 6; private com.google.cloud.memcache.v1.MemcacheParameters parameters_; /** - * - * *
      * User defined parameters currently applied to the node.
      * 
* * .google.cloud.memcache.v1.MemcacheParameters parameters = 6; - * * @return Whether the parameters field is set. */ @java.lang.Override @@ -1873,25 +1667,18 @@ public boolean hasParameters() { return parameters_ != null; } /** - * - * *
      * User defined parameters currently applied to the node.
      * 
* * .google.cloud.memcache.v1.MemcacheParameters parameters = 6; - * * @return The parameters. */ @java.lang.Override public com.google.cloud.memcache.v1.MemcacheParameters getParameters() { - return parameters_ == null - ? com.google.cloud.memcache.v1.MemcacheParameters.getDefaultInstance() - : parameters_; + return parameters_ == null ? com.google.cloud.memcache.v1.MemcacheParameters.getDefaultInstance() : parameters_; } /** - * - * *
      * User defined parameters currently applied to the node.
      * 
@@ -1904,7 +1691,6 @@ public com.google.cloud.memcache.v1.MemcacheParametersOrBuilder getParametersOrB } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -1916,15 +1702,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(nodeId_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, nodeId_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(zone_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, zone_); } - if (state_ - != com.google.cloud.memcache.v1.Instance.Node.State.STATE_UNSPECIFIED.getNumber()) { + if (state_ != com.google.cloud.memcache.v1.Instance.Node.State.STATE_UNSPECIFIED.getNumber()) { output.writeEnum(3, state_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(host_)) { @@ -1951,18 +1737,20 @@ public int getSerializedSize() { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(zone_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, zone_); } - if (state_ - != com.google.cloud.memcache.v1.Instance.Node.State.STATE_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream.computeEnumSize(3, state_); + if (state_ != com.google.cloud.memcache.v1.Instance.Node.State.STATE_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(3, state_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(host_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, host_); } if (port_ != 0) { - size += com.google.protobuf.CodedOutputStream.computeInt32Size(5, port_); + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(5, port_); } if (parameters_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(6, getParameters()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(6, getParameters()); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -1972,22 +1760,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.memcache.v1.Instance.Node)) { return super.equals(obj); } - com.google.cloud.memcache.v1.Instance.Node other = - (com.google.cloud.memcache.v1.Instance.Node) obj; + com.google.cloud.memcache.v1.Instance.Node other = (com.google.cloud.memcache.v1.Instance.Node) obj; - if (!getNodeId().equals(other.getNodeId())) return false; - if (!getZone().equals(other.getZone())) return false; + if (!getNodeId() + .equals(other.getNodeId())) return false; + if (!getZone() + .equals(other.getZone())) return false; if (state_ != other.state_) return false; - if (!getHost().equals(other.getHost())) return false; - if (getPort() != other.getPort()) return false; + if (!getHost() + .equals(other.getHost())) return false; + if (getPort() + != other.getPort()) return false; if (hasParameters() != other.hasParameters()) return false; if (hasParameters()) { - if (!getParameters().equals(other.getParameters())) return false; + if (!getParameters() + .equals(other.getParameters())) return false; } if (!unknownFields.equals(other.unknownFields)) return false; return true; @@ -2019,94 +1811,88 @@ public int hashCode() { return hash; } - public static com.google.cloud.memcache.v1.Instance.Node parseFrom(java.nio.ByteBuffer data) + public static com.google.cloud.memcache.v1.Instance.Node parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.memcache.v1.Instance.Node parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.memcache.v1.Instance.Node parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.memcache.v1.Instance.Node parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.memcache.v1.Instance.Node parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.memcache.v1.Instance.Node parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.memcache.v1.Instance.Node 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.memcache.v1.Instance.Node parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.memcache.v1.Instance.Node parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.memcache.v1.Instance.Node parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.memcache.v1.Instance.Node parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.memcache.v1.Instance.Node parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.memcache.v1.Instance.Node parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.memcache.v1.Instance.Node prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override @@ -2115,25 +1901,24 @@ protected Builder newBuilderForType( Builder builder = new Builder(parent); return builder; } - /** Protobuf type {@code google.cloud.memcache.v1.Instance.Node} */ - public static final class Builder - extends com.google.protobuf.GeneratedMessageV3.Builder - implements + /** + * Protobuf type {@code google.cloud.memcache.v1.Instance.Node} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.memcache.v1.Instance.Node) com.google.cloud.memcache.v1.Instance.NodeOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.memcache.v1.CloudMemcacheProto - .internal_static_google_cloud_memcache_v1_Instance_Node_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.memcache.v1.CloudMemcacheProto.internal_static_google_cloud_memcache_v1_Instance_Node_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.memcache.v1.CloudMemcacheProto - .internal_static_google_cloud_memcache_v1_Instance_Node_fieldAccessorTable + return com.google.cloud.memcache.v1.CloudMemcacheProto.internal_static_google_cloud_memcache_v1_Instance_Node_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.memcache.v1.Instance.Node.class, - com.google.cloud.memcache.v1.Instance.Node.Builder.class); + com.google.cloud.memcache.v1.Instance.Node.class, com.google.cloud.memcache.v1.Instance.Node.Builder.class); } // Construct using com.google.cloud.memcache.v1.Instance.Node.newBuilder() @@ -2141,15 +1926,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(); @@ -2173,9 +1959,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.memcache.v1.CloudMemcacheProto - .internal_static_google_cloud_memcache_v1_Instance_Node_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.memcache.v1.CloudMemcacheProto.internal_static_google_cloud_memcache_v1_Instance_Node_descriptor; } @java.lang.Override @@ -2194,8 +1980,7 @@ public com.google.cloud.memcache.v1.Instance.Node build() { @java.lang.Override public com.google.cloud.memcache.v1.Instance.Node buildPartial() { - com.google.cloud.memcache.v1.Instance.Node result = - new com.google.cloud.memcache.v1.Instance.Node(this); + com.google.cloud.memcache.v1.Instance.Node result = new com.google.cloud.memcache.v1.Instance.Node(this); result.nodeId_ = nodeId_; result.zone_ = zone_; result.state_ = state_; @@ -2214,41 +1999,38 @@ public com.google.cloud.memcache.v1.Instance.Node buildPartial() { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, - int index, - java.lang.Object value) { + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.memcache.v1.Instance.Node) { - return mergeFrom((com.google.cloud.memcache.v1.Instance.Node) other); + return mergeFrom((com.google.cloud.memcache.v1.Instance.Node)other); } else { super.mergeFrom(other); return this; @@ -2309,21 +2091,19 @@ public Builder mergeFrom( private java.lang.Object nodeId_ = ""; /** - * - * *
        * Output only. Identifier of the Memcached node. The node id does not
        * include project or location like the Memcached instance name.
        * 
* * string node_id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The nodeId. */ public java.lang.String getNodeId() { java.lang.Object ref = nodeId_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); nodeId_ = s; return s; @@ -2332,22 +2112,21 @@ public java.lang.String getNodeId() { } } /** - * - * *
        * Output only. Identifier of the Memcached node. The node id does not
        * include project or location like the Memcached instance name.
        * 
* * string node_id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for nodeId. */ - public com.google.protobuf.ByteString getNodeIdBytes() { + public com.google.protobuf.ByteString + getNodeIdBytes() { java.lang.Object ref = nodeId_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); nodeId_ = b; return b; } else { @@ -2355,64 +2134,57 @@ public com.google.protobuf.ByteString getNodeIdBytes() { } } /** - * - * *
        * Output only. Identifier of the Memcached node. The node id does not
        * include project or location like the Memcached instance name.
        * 
* * string node_id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @param value The nodeId to set. * @return This builder for chaining. */ - public Builder setNodeId(java.lang.String value) { + public Builder setNodeId( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + nodeId_ = value; onChanged(); return this; } /** - * - * *
        * Output only. Identifier of the Memcached node. The node id does not
        * include project or location like the Memcached instance name.
        * 
* * string node_id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return This builder for chaining. */ public Builder clearNodeId() { - + nodeId_ = getDefaultInstance().getNodeId(); onChanged(); return this; } /** - * - * *
        * Output only. Identifier of the Memcached node. The node id does not
        * include project or location like the Memcached instance name.
        * 
* * string node_id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @param value The bytes for nodeId to set. * @return This builder for chaining. */ - public Builder setNodeIdBytes(com.google.protobuf.ByteString value) { + public Builder setNodeIdBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + nodeId_ = value; onChanged(); return this; @@ -2420,20 +2192,18 @@ public Builder setNodeIdBytes(com.google.protobuf.ByteString value) { private java.lang.Object zone_ = ""; /** - * - * *
        * Output only. Location (GCP Zone) for the Memcached 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; @@ -2442,21 +2212,20 @@ public java.lang.String getZone() { } } /** - * - * *
        * Output only. Location (GCP Zone) for the Memcached 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 { @@ -2464,61 +2233,54 @@ public com.google.protobuf.ByteString getZoneBytes() { } } /** - * - * *
        * Output only. Location (GCP Zone) for the Memcached 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 (GCP Zone) for the Memcached 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 (GCP Zone) for the Memcached 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; @@ -2526,75 +2288,51 @@ public Builder setZoneBytes(com.google.protobuf.ByteString value) { private int state_ = 0; /** - * - * *
        * Output only. Current state of the Memcached node.
        * 
* - * - * .google.cloud.memcache.v1.Instance.Node.State state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.memcache.v1.Instance.Node.State state = 3 [(.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. Current state of the Memcached node.
        * 
* - * - * .google.cloud.memcache.v1.Instance.Node.State state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.memcache.v1.Instance.Node.State state = 3 [(.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. Current state of the Memcached node.
        * 
* - * - * .google.cloud.memcache.v1.Instance.Node.State state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.memcache.v1.Instance.Node.State state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The state. */ @java.lang.Override public com.google.cloud.memcache.v1.Instance.Node.State getState() { @SuppressWarnings("deprecation") - com.google.cloud.memcache.v1.Instance.Node.State result = - com.google.cloud.memcache.v1.Instance.Node.State.valueOf(state_); - return result == null - ? com.google.cloud.memcache.v1.Instance.Node.State.UNRECOGNIZED - : result; + com.google.cloud.memcache.v1.Instance.Node.State result = com.google.cloud.memcache.v1.Instance.Node.State.valueOf(state_); + return result == null ? com.google.cloud.memcache.v1.Instance.Node.State.UNRECOGNIZED : result; } /** - * - * *
        * Output only. Current state of the Memcached node.
        * 
* - * - * .google.cloud.memcache.v1.Instance.Node.State state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.memcache.v1.Instance.Node.State state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @param value The state to set. * @return This builder for chaining. */ @@ -2602,26 +2340,21 @@ public Builder setState(com.google.cloud.memcache.v1.Instance.Node.State value) if (value == null) { throw new NullPointerException(); } - + state_ = value.getNumber(); onChanged(); return this; } /** - * - * *
        * Output only. Current state of the Memcached node.
        * 
* - * - * .google.cloud.memcache.v1.Instance.Node.State state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.memcache.v1.Instance.Node.State state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return This builder for chaining. */ public Builder clearState() { - + state_ = 0; onChanged(); return this; @@ -2629,21 +2362,19 @@ public Builder clearState() { private java.lang.Object host_ = ""; /** - * - * *
        * Output only. Hostname or IP address of the Memcached node used by the
        * clients to connect to the Memcached server on this node.
        * 
* * string host = 4 [(.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; @@ -2652,22 +2383,21 @@ public java.lang.String getHost() { } } /** - * - * *
        * Output only. Hostname or IP address of the Memcached node used by the
        * clients to connect to the Memcached server on this node.
        * 
* * string host = 4 [(.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 { @@ -2675,79 +2405,69 @@ public com.google.protobuf.ByteString getHostBytes() { } } /** - * - * *
        * Output only. Hostname or IP address of the Memcached node used by the
        * clients to connect to the Memcached server on this node.
        * 
* * string host = 4 [(.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 Memcached node used by the
        * clients to connect to the Memcached server on this node.
        * 
* * string host = 4 [(.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 Memcached node used by the
        * clients to connect to the Memcached server on this node.
        * 
* * string host = 4 [(.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 Memcached server on this node.
        * 
* * int32 port = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The port. */ @java.lang.Override @@ -2755,36 +2475,30 @@ public int getPort() { return port_; } /** - * - * *
        * Output only. The port number of the Memcached server on this node.
        * 
* * int32 port = 5 [(.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 Memcached server on this node.
        * 
* * int32 port = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return This builder for chaining. */ public Builder clearPort() { - + port_ = 0; onChanged(); return this; @@ -2792,47 +2506,34 @@ public Builder clearPort() { private com.google.cloud.memcache.v1.MemcacheParameters parameters_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.memcache.v1.MemcacheParameters, - com.google.cloud.memcache.v1.MemcacheParameters.Builder, - com.google.cloud.memcache.v1.MemcacheParametersOrBuilder> - parametersBuilder_; + com.google.cloud.memcache.v1.MemcacheParameters, com.google.cloud.memcache.v1.MemcacheParameters.Builder, com.google.cloud.memcache.v1.MemcacheParametersOrBuilder> parametersBuilder_; /** - * - * *
        * User defined parameters currently applied to the node.
        * 
* * .google.cloud.memcache.v1.MemcacheParameters parameters = 6; - * * @return Whether the parameters field is set. */ public boolean hasParameters() { return parametersBuilder_ != null || parameters_ != null; } /** - * - * *
        * User defined parameters currently applied to the node.
        * 
* * .google.cloud.memcache.v1.MemcacheParameters parameters = 6; - * * @return The parameters. */ public com.google.cloud.memcache.v1.MemcacheParameters getParameters() { if (parametersBuilder_ == null) { - return parameters_ == null - ? com.google.cloud.memcache.v1.MemcacheParameters.getDefaultInstance() - : parameters_; + return parameters_ == null ? com.google.cloud.memcache.v1.MemcacheParameters.getDefaultInstance() : parameters_; } else { return parametersBuilder_.getMessage(); } } /** - * - * *
        * User defined parameters currently applied to the node.
        * 
@@ -2853,8 +2554,6 @@ public Builder setParameters(com.google.cloud.memcache.v1.MemcacheParameters val return this; } /** - * - * *
        * User defined parameters currently applied to the node.
        * 
@@ -2873,8 +2572,6 @@ public Builder setParameters( return this; } /** - * - * *
        * User defined parameters currently applied to the node.
        * 
@@ -2885,9 +2582,7 @@ public Builder mergeParameters(com.google.cloud.memcache.v1.MemcacheParameters v if (parametersBuilder_ == null) { if (parameters_ != null) { parameters_ = - com.google.cloud.memcache.v1.MemcacheParameters.newBuilder(parameters_) - .mergeFrom(value) - .buildPartial(); + com.google.cloud.memcache.v1.MemcacheParameters.newBuilder(parameters_).mergeFrom(value).buildPartial(); } else { parameters_ = value; } @@ -2899,8 +2594,6 @@ public Builder mergeParameters(com.google.cloud.memcache.v1.MemcacheParameters v return this; } /** - * - * *
        * User defined parameters currently applied to the node.
        * 
@@ -2919,8 +2612,6 @@ public Builder clearParameters() { return this; } /** - * - * *
        * User defined parameters currently applied to the node.
        * 
@@ -2928,13 +2619,11 @@ public Builder clearParameters() { * .google.cloud.memcache.v1.MemcacheParameters parameters = 6; */ public com.google.cloud.memcache.v1.MemcacheParameters.Builder getParametersBuilder() { - + onChanged(); return getParametersFieldBuilder().getBuilder(); } /** - * - * *
        * User defined parameters currently applied to the node.
        * 
@@ -2945,14 +2634,11 @@ public com.google.cloud.memcache.v1.MemcacheParametersOrBuilder getParametersOrB if (parametersBuilder_ != null) { return parametersBuilder_.getMessageOrBuilder(); } else { - return parameters_ == null - ? com.google.cloud.memcache.v1.MemcacheParameters.getDefaultInstance() - : parameters_; + return parameters_ == null ? + com.google.cloud.memcache.v1.MemcacheParameters.getDefaultInstance() : parameters_; } } /** - * - * *
        * User defined parameters currently applied to the node.
        * 
@@ -2960,22 +2646,18 @@ public com.google.cloud.memcache.v1.MemcacheParametersOrBuilder getParametersOrB * .google.cloud.memcache.v1.MemcacheParameters parameters = 6; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.memcache.v1.MemcacheParameters, - com.google.cloud.memcache.v1.MemcacheParameters.Builder, - com.google.cloud.memcache.v1.MemcacheParametersOrBuilder> + com.google.cloud.memcache.v1.MemcacheParameters, com.google.cloud.memcache.v1.MemcacheParameters.Builder, com.google.cloud.memcache.v1.MemcacheParametersOrBuilder> getParametersFieldBuilder() { if (parametersBuilder_ == null) { - parametersBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.memcache.v1.MemcacheParameters, - com.google.cloud.memcache.v1.MemcacheParameters.Builder, - com.google.cloud.memcache.v1.MemcacheParametersOrBuilder>( - getParameters(), getParentForChildren(), isClean()); + parametersBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.memcache.v1.MemcacheParameters, com.google.cloud.memcache.v1.MemcacheParameters.Builder, com.google.cloud.memcache.v1.MemcacheParametersOrBuilder>( + getParameters(), + getParentForChildren(), + isClean()); parameters_ = null; } return parametersBuilder_; } - @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -2988,12 +2670,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.memcache.v1.Instance.Node) } // @@protoc_insertion_point(class_scope:google.cloud.memcache.v1.Instance.Node) private static final com.google.cloud.memcache.v1.Instance.Node DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.memcache.v1.Instance.Node(); } @@ -3002,16 +2684,16 @@ public static com.google.cloud.memcache.v1.Instance.Node getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Node parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new Node(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Node parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new Node(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -3026,74 +2708,64 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.memcache.v1.Instance.Node getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } - public interface InstanceMessageOrBuilder - extends + public interface InstanceMessageOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.memcache.v1.Instance.InstanceMessage) com.google.protobuf.MessageOrBuilder { /** - * - * *
      * A code that correspond to one type of user-facing message.
      * 
* * .google.cloud.memcache.v1.Instance.InstanceMessage.Code code = 1; - * * @return The enum numeric value on the wire for code. */ int getCodeValue(); /** - * - * *
      * A code that correspond to one type of user-facing message.
      * 
* * .google.cloud.memcache.v1.Instance.InstanceMessage.Code code = 1; - * * @return The code. */ com.google.cloud.memcache.v1.Instance.InstanceMessage.Code getCode(); /** - * - * *
      * Message on memcached instance which will be exposed to users.
      * 
* * string message = 2; - * * @return The message. */ java.lang.String getMessage(); /** - * - * *
      * Message on memcached instance which will be exposed to users.
      * 
* * string message = 2; - * * @return The bytes for message. */ - com.google.protobuf.ByteString getMessageBytes(); + com.google.protobuf.ByteString + getMessageBytes(); } - /** Protobuf type {@code google.cloud.memcache.v1.Instance.InstanceMessage} */ - public static final class InstanceMessage extends com.google.protobuf.GeneratedMessageV3 - implements + /** + * Protobuf type {@code google.cloud.memcache.v1.Instance.InstanceMessage} + */ + public static final class InstanceMessage extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.memcache.v1.Instance.InstanceMessage) InstanceMessageOrBuilder { - private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use InstanceMessage.newBuilder() to construct. private InstanceMessage(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private InstanceMessage() { code_ = 0; message_ = ""; @@ -3101,15 +2773,16 @@ private InstanceMessage() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new InstanceMessage(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private InstanceMessage( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -3128,27 +2801,25 @@ private InstanceMessage( case 0: done = true; break; - case 8: - { - int rawValue = input.readEnum(); + case 8: { + int rawValue = input.readEnum(); - code_ = rawValue; - break; - } - case 18: - { - java.lang.String s = input.readStringRequireUtf8(); + code_ = rawValue; + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); - message_ = s; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + message_ = s; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -3156,33 +2827,32 @@ private InstanceMessage( } 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.memcache.v1.CloudMemcacheProto - .internal_static_google_cloud_memcache_v1_Instance_InstanceMessage_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.memcache.v1.CloudMemcacheProto.internal_static_google_cloud_memcache_v1_Instance_InstanceMessage_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.memcache.v1.CloudMemcacheProto - .internal_static_google_cloud_memcache_v1_Instance_InstanceMessage_fieldAccessorTable + return com.google.cloud.memcache.v1.CloudMemcacheProto.internal_static_google_cloud_memcache_v1_Instance_InstanceMessage_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.memcache.v1.Instance.InstanceMessage.class, - com.google.cloud.memcache.v1.Instance.InstanceMessage.Builder.class); + com.google.cloud.memcache.v1.Instance.InstanceMessage.class, com.google.cloud.memcache.v1.Instance.InstanceMessage.Builder.class); } - /** Protobuf enum {@code google.cloud.memcache.v1.Instance.InstanceMessage.Code} */ - public enum Code implements com.google.protobuf.ProtocolMessageEnum { + /** + * Protobuf enum {@code google.cloud.memcache.v1.Instance.InstanceMessage.Code} + */ + public enum Code + implements com.google.protobuf.ProtocolMessageEnum { /** - * - * *
        * Message Code not set.
        * 
@@ -3191,8 +2861,6 @@ public enum Code implements com.google.protobuf.ProtocolMessageEnum { */ CODE_UNSPECIFIED(0), /** - * - * *
        * Memcached nodes are distributed unevenly.
        * 
@@ -3204,8 +2872,6 @@ public enum Code implements com.google.protobuf.ProtocolMessageEnum { ; /** - * - * *
        * Message Code not set.
        * 
@@ -3214,8 +2880,6 @@ public enum Code implements com.google.protobuf.ProtocolMessageEnum { */ public static final int CODE_UNSPECIFIED_VALUE = 0; /** - * - * *
        * Memcached nodes are distributed unevenly.
        * 
@@ -3224,6 +2888,7 @@ public enum Code implements com.google.protobuf.ProtocolMessageEnum { */ public static final int ZONE_DISTRIBUTION_UNBALANCED_VALUE = 1; + public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( @@ -3248,49 +2913,48 @@ public static Code valueOf(int value) { */ public static Code forNumber(int value) { switch (value) { - case 0: - return CODE_UNSPECIFIED; - case 1: - return ZONE_DISTRIBUTION_UNBALANCED; - default: - return null; + case 0: return CODE_UNSPECIFIED; + case 1: return ZONE_DISTRIBUTION_UNBALANCED; + 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< + Code> internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public Code findValueByNumber(int number) { + return Code.forNumber(number); + } + }; - private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public Code findValueByNumber(int number) { - return Code.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.memcache.v1.Instance.InstanceMessage.getDescriptor() - .getEnumTypes() - .get(0); + public static final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptor() { + return com.google.cloud.memcache.v1.Instance.InstanceMessage.getDescriptor().getEnumTypes().get(0); } private static final Code[] VALUES = values(); - public static Code valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + public static Code 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; @@ -3310,52 +2974,38 @@ private Code(int value) { public static final int CODE_FIELD_NUMBER = 1; private int code_; /** - * - * *
      * A code that correspond to one type of user-facing message.
      * 
* * .google.cloud.memcache.v1.Instance.InstanceMessage.Code code = 1; - * * @return The enum numeric value on the wire for code. */ - @java.lang.Override - public int getCodeValue() { + @java.lang.Override public int getCodeValue() { return code_; } /** - * - * *
      * A code that correspond to one type of user-facing message.
      * 
* * .google.cloud.memcache.v1.Instance.InstanceMessage.Code code = 1; - * * @return The code. */ - @java.lang.Override - public com.google.cloud.memcache.v1.Instance.InstanceMessage.Code getCode() { + @java.lang.Override public com.google.cloud.memcache.v1.Instance.InstanceMessage.Code getCode() { @SuppressWarnings("deprecation") - com.google.cloud.memcache.v1.Instance.InstanceMessage.Code result = - com.google.cloud.memcache.v1.Instance.InstanceMessage.Code.valueOf(code_); - return result == null - ? com.google.cloud.memcache.v1.Instance.InstanceMessage.Code.UNRECOGNIZED - : result; + com.google.cloud.memcache.v1.Instance.InstanceMessage.Code result = com.google.cloud.memcache.v1.Instance.InstanceMessage.Code.valueOf(code_); + return result == null ? com.google.cloud.memcache.v1.Instance.InstanceMessage.Code.UNRECOGNIZED : result; } public static final int MESSAGE_FIELD_NUMBER = 2; private volatile java.lang.Object message_; /** - * - * *
      * Message on memcached instance which will be exposed to users.
      * 
* * string message = 2; - * * @return The message. */ @java.lang.Override @@ -3364,29 +3014,29 @@ public java.lang.String getMessage() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); message_ = s; return s; } } /** - * - * *
      * Message on memcached instance which will be exposed to users.
      * 
* * string message = 2; - * * @return The bytes for message. */ @java.lang.Override - public com.google.protobuf.ByteString getMessageBytes() { + public com.google.protobuf.ByteString + getMessageBytes() { java.lang.Object ref = message_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); message_ = b; return b; } else { @@ -3395,7 +3045,6 @@ public com.google.protobuf.ByteString getMessageBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -3407,10 +3056,9 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (code_ - != com.google.cloud.memcache.v1.Instance.InstanceMessage.Code.CODE_UNSPECIFIED - .getNumber()) { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (code_ != com.google.cloud.memcache.v1.Instance.InstanceMessage.Code.CODE_UNSPECIFIED.getNumber()) { output.writeEnum(1, code_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(message_)) { @@ -3425,10 +3073,9 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (code_ - != com.google.cloud.memcache.v1.Instance.InstanceMessage.Code.CODE_UNSPECIFIED - .getNumber()) { - size += com.google.protobuf.CodedOutputStream.computeEnumSize(1, code_); + if (code_ != com.google.cloud.memcache.v1.Instance.InstanceMessage.Code.CODE_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(1, code_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(message_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, message_); @@ -3441,16 +3088,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.memcache.v1.Instance.InstanceMessage)) { return super.equals(obj); } - com.google.cloud.memcache.v1.Instance.InstanceMessage other = - (com.google.cloud.memcache.v1.Instance.InstanceMessage) obj; + com.google.cloud.memcache.v1.Instance.InstanceMessage other = (com.google.cloud.memcache.v1.Instance.InstanceMessage) obj; if (code_ != other.code_) return false; - if (!getMessage().equals(other.getMessage())) return false; + if (!getMessage() + .equals(other.getMessage())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -3472,94 +3119,87 @@ public int hashCode() { } public static com.google.cloud.memcache.v1.Instance.InstanceMessage parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.memcache.v1.Instance.InstanceMessage parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.memcache.v1.Instance.InstanceMessage parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.memcache.v1.Instance.InstanceMessage parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.memcache.v1.Instance.InstanceMessage parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.memcache.v1.Instance.InstanceMessage parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.memcache.v1.Instance.InstanceMessage parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.memcache.v1.Instance.InstanceMessage parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.memcache.v1.Instance.InstanceMessage parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.memcache.v1.Instance.InstanceMessage parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.memcache.v1.Instance.InstanceMessage parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.memcache.v1.Instance.InstanceMessage parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.memcache.v1.Instance.InstanceMessage parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.memcache.v1.Instance.InstanceMessage parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.memcache.v1.Instance.InstanceMessage prototype) { + public static Builder newBuilder(com.google.cloud.memcache.v1.Instance.InstanceMessage prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override @@ -3568,25 +3208,24 @@ protected Builder newBuilderForType( Builder builder = new Builder(parent); return builder; } - /** Protobuf type {@code google.cloud.memcache.v1.Instance.InstanceMessage} */ - public static final class Builder - extends com.google.protobuf.GeneratedMessageV3.Builder - implements + /** + * Protobuf type {@code google.cloud.memcache.v1.Instance.InstanceMessage} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.memcache.v1.Instance.InstanceMessage) com.google.cloud.memcache.v1.Instance.InstanceMessageOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.memcache.v1.CloudMemcacheProto - .internal_static_google_cloud_memcache_v1_Instance_InstanceMessage_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.memcache.v1.CloudMemcacheProto.internal_static_google_cloud_memcache_v1_Instance_InstanceMessage_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.memcache.v1.CloudMemcacheProto - .internal_static_google_cloud_memcache_v1_Instance_InstanceMessage_fieldAccessorTable + return com.google.cloud.memcache.v1.CloudMemcacheProto.internal_static_google_cloud_memcache_v1_Instance_InstanceMessage_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.memcache.v1.Instance.InstanceMessage.class, - com.google.cloud.memcache.v1.Instance.InstanceMessage.Builder.class); + com.google.cloud.memcache.v1.Instance.InstanceMessage.class, com.google.cloud.memcache.v1.Instance.InstanceMessage.Builder.class); } // Construct using com.google.cloud.memcache.v1.Instance.InstanceMessage.newBuilder() @@ -3594,15 +3233,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(); @@ -3614,9 +3254,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.memcache.v1.CloudMemcacheProto - .internal_static_google_cloud_memcache_v1_Instance_InstanceMessage_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.memcache.v1.CloudMemcacheProto.internal_static_google_cloud_memcache_v1_Instance_InstanceMessage_descriptor; } @java.lang.Override @@ -3635,8 +3275,7 @@ public com.google.cloud.memcache.v1.Instance.InstanceMessage build() { @java.lang.Override public com.google.cloud.memcache.v1.Instance.InstanceMessage buildPartial() { - com.google.cloud.memcache.v1.Instance.InstanceMessage result = - new com.google.cloud.memcache.v1.Instance.InstanceMessage(this); + com.google.cloud.memcache.v1.Instance.InstanceMessage result = new com.google.cloud.memcache.v1.Instance.InstanceMessage(this); result.code_ = code_; result.message_ = message_; onBuilt(); @@ -3647,41 +3286,38 @@ public com.google.cloud.memcache.v1.Instance.InstanceMessage buildPartial() { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, - int index, - java.lang.Object value) { + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.memcache.v1.Instance.InstanceMessage) { - return mergeFrom((com.google.cloud.memcache.v1.Instance.InstanceMessage) other); + return mergeFrom((com.google.cloud.memcache.v1.Instance.InstanceMessage)other); } else { super.mergeFrom(other); return this; @@ -3689,8 +3325,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.memcache.v1.Instance.InstanceMessage other) { - if (other == com.google.cloud.memcache.v1.Instance.InstanceMessage.getDefaultInstance()) - return this; + if (other == com.google.cloud.memcache.v1.Instance.InstanceMessage.getDefaultInstance()) return this; if (other.code_ != 0) { setCodeValue(other.getCodeValue()); } @@ -3717,8 +3352,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.memcache.v1.Instance.InstanceMessage) e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.memcache.v1.Instance.InstanceMessage) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -3730,67 +3364,51 @@ public Builder mergeFrom( private int code_ = 0; /** - * - * *
        * A code that correspond to one type of user-facing message.
        * 
* * .google.cloud.memcache.v1.Instance.InstanceMessage.Code code = 1; - * * @return The enum numeric value on the wire for code. */ - @java.lang.Override - public int getCodeValue() { + @java.lang.Override public int getCodeValue() { return code_; } /** - * - * *
        * A code that correspond to one type of user-facing message.
        * 
* * .google.cloud.memcache.v1.Instance.InstanceMessage.Code code = 1; - * * @param value The enum numeric value on the wire for code to set. * @return This builder for chaining. */ public Builder setCodeValue(int value) { - + code_ = value; onChanged(); return this; } /** - * - * *
        * A code that correspond to one type of user-facing message.
        * 
* * .google.cloud.memcache.v1.Instance.InstanceMessage.Code code = 1; - * * @return The code. */ @java.lang.Override public com.google.cloud.memcache.v1.Instance.InstanceMessage.Code getCode() { @SuppressWarnings("deprecation") - com.google.cloud.memcache.v1.Instance.InstanceMessage.Code result = - com.google.cloud.memcache.v1.Instance.InstanceMessage.Code.valueOf(code_); - return result == null - ? com.google.cloud.memcache.v1.Instance.InstanceMessage.Code.UNRECOGNIZED - : result; + com.google.cloud.memcache.v1.Instance.InstanceMessage.Code result = com.google.cloud.memcache.v1.Instance.InstanceMessage.Code.valueOf(code_); + return result == null ? com.google.cloud.memcache.v1.Instance.InstanceMessage.Code.UNRECOGNIZED : result; } /** - * - * *
        * A code that correspond to one type of user-facing message.
        * 
* * .google.cloud.memcache.v1.Instance.InstanceMessage.Code code = 1; - * * @param value The code to set. * @return This builder for chaining. */ @@ -3798,24 +3416,21 @@ public Builder setCode(com.google.cloud.memcache.v1.Instance.InstanceMessage.Cod if (value == null) { throw new NullPointerException(); } - + code_ = value.getNumber(); onChanged(); return this; } /** - * - * *
        * A code that correspond to one type of user-facing message.
        * 
* * .google.cloud.memcache.v1.Instance.InstanceMessage.Code code = 1; - * * @return This builder for chaining. */ public Builder clearCode() { - + code_ = 0; onChanged(); return this; @@ -3823,20 +3438,18 @@ public Builder clearCode() { private java.lang.Object message_ = ""; /** - * - * *
        * Message on memcached instance which will be exposed to users.
        * 
* * string message = 2; - * * @return The message. */ public java.lang.String getMessage() { java.lang.Object ref = message_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); message_ = s; return s; @@ -3845,21 +3458,20 @@ public java.lang.String getMessage() { } } /** - * - * *
        * Message on memcached instance which will be exposed to users.
        * 
* * string message = 2; - * * @return The bytes for message. */ - public com.google.protobuf.ByteString getMessageBytes() { + public com.google.protobuf.ByteString + getMessageBytes() { java.lang.Object ref = message_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); message_ = b; return b; } else { @@ -3867,66 +3479,58 @@ public com.google.protobuf.ByteString getMessageBytes() { } } /** - * - * *
        * Message on memcached instance which will be exposed to users.
        * 
* * string message = 2; - * * @param value The message to set. * @return This builder for chaining. */ - public Builder setMessage(java.lang.String value) { + public Builder setMessage( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + message_ = value; onChanged(); return this; } /** - * - * *
        * Message on memcached instance which will be exposed to users.
        * 
* * string message = 2; - * * @return This builder for chaining. */ public Builder clearMessage() { - + message_ = getDefaultInstance().getMessage(); onChanged(); return this; } /** - * - * *
        * Message on memcached instance which will be exposed to users.
        * 
* * string message = 2; - * * @param value The bytes for message to set. * @return This builder for chaining. */ - public Builder setMessageBytes(com.google.protobuf.ByteString value) { + public Builder setMessageBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + message_ = value; onChanged(); return this; } - @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -3939,12 +3543,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.memcache.v1.Instance.InstanceMessage) } // @@protoc_insertion_point(class_scope:google.cloud.memcache.v1.Instance.InstanceMessage) private static final com.google.cloud.memcache.v1.Instance.InstanceMessage DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.memcache.v1.Instance.InstanceMessage(); } @@ -3953,16 +3557,16 @@ public static com.google.cloud.memcache.v1.Instance.InstanceMessage getDefaultIn return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public InstanceMessage parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new InstanceMessage(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public InstanceMessage parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new InstanceMessage(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -3977,13 +3581,12 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.memcache.v1.Instance.InstanceMessage getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } 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:
@@ -3995,7 +3598,6 @@ public com.google.cloud.memcache.v1.Instance.InstanceMessage getDefaultInstanceF
    * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The name. */ @java.lang.Override @@ -4004,15 +3606,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:
@@ -4024,15 +3625,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 { @@ -4043,15 +3645,12 @@ public com.google.protobuf.ByteString getNameBytes() { public static final int DISPLAY_NAME_FIELD_NUMBER = 2; private volatile java.lang.Object displayName_; /** - * - * *
    * User provided name for the instance only used for display
    * purposes. Cannot be more than 80 characters.
    * 
* * string display_name = 2; - * * @return The displayName. */ @java.lang.Override @@ -4060,30 +3659,30 @@ 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; } } /** - * - * *
    * User provided name for the instance only used for display
    * purposes. Cannot be more than 80 characters.
    * 
* * 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 { @@ -4092,23 +3691,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.memcache.v1.CloudMemcacheProto - .internal_static_google_cloud_memcache_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.memcache.v1.CloudMemcacheProto.internal_static_google_cloud_memcache_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_; } @@ -4117,8 +3717,6 @@ public int getLabelsCount() { return internalGetLabels().getMap().size(); } /** - * - * *
    * Resource labels to represent user-provided metadata.
    * Refer to cloud documentation on labels for more details.
@@ -4127,22 +3725,22 @@ public int getLabelsCount() {
    *
    * 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.
    * Refer to cloud documentation on labels for more details.
@@ -4152,12 +3750,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.
    * Refer to cloud documentation on labels for more details.
@@ -4167,16 +3764,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.
    * Refer to cloud documentation on labels for more details.
@@ -4186,11 +3783,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();
     }
@@ -4200,8 +3798,6 @@ public java.lang.String getLabelsOrThrow(java.lang.String key) {
   public static final int AUTHORIZED_NETWORK_FIELD_NUMBER = 4;
   private volatile java.lang.Object authorizedNetwork_;
   /**
-   *
-   *
    * 
    * The full name of the Google Compute Engine
    * [network](/compute/docs/networks-and-firewalls#networks) to which the
@@ -4210,7 +3806,6 @@ public java.lang.String getLabelsOrThrow(java.lang.String key) {
    * 
* * string authorized_network = 4; - * * @return The authorizedNetwork. */ @java.lang.Override @@ -4219,15 +3814,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; } } /** - * - * *
    * The full name of the Google Compute Engine
    * [network](/compute/docs/networks-and-firewalls#networks) to which the
@@ -4236,15 +3830,16 @@ public java.lang.String getAuthorizedNetwork() {
    * 
* * string authorized_network = 4; - * * @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 { @@ -4255,8 +3850,6 @@ public com.google.protobuf.ByteString getAuthorizedNetworkBytes() { public static final int ZONES_FIELD_NUMBER = 5; private com.google.protobuf.LazyStringList zones_; /** - * - * *
    * Zones where Memcached nodes should be provisioned in.
    * Memcached nodes will be equally distributed across these zones. If not
@@ -4265,15 +3858,13 @@ public com.google.protobuf.ByteString getAuthorizedNetworkBytes() {
    * 
* * repeated string zones = 5; - * * @return A list containing the zones. */ - public com.google.protobuf.ProtocolStringList getZonesList() { + public com.google.protobuf.ProtocolStringList + getZonesList() { return zones_; } /** - * - * *
    * Zones where Memcached nodes should be provisioned in.
    * Memcached nodes will be equally distributed across these zones. If not
@@ -4282,15 +3873,12 @@ public com.google.protobuf.ProtocolStringList getZonesList() {
    * 
* * repeated string zones = 5; - * * @return The count of zones. */ public int getZonesCount() { return zones_.size(); } /** - * - * *
    * Zones where Memcached nodes should be provisioned in.
    * Memcached nodes will be equally distributed across these zones. If not
@@ -4299,7 +3887,6 @@ public int getZonesCount() {
    * 
* * repeated string zones = 5; - * * @param index The index of the element to return. * @return The zones at the given index. */ @@ -4307,8 +3894,6 @@ public java.lang.String getZones(int index) { return zones_.get(index); } /** - * - * *
    * Zones where Memcached nodes should be provisioned in.
    * Memcached nodes will be equally distributed across these zones. If not
@@ -4317,25 +3902,22 @@ public java.lang.String getZones(int index) {
    * 
* * repeated string zones = 5; - * * @param index The index of the value to return. * @return The bytes of the zones at the given index. */ - public com.google.protobuf.ByteString getZonesBytes(int index) { + public com.google.protobuf.ByteString + getZonesBytes(int index) { return zones_.getByteString(index); } public static final int NODE_COUNT_FIELD_NUMBER = 6; private int nodeCount_; /** - * - * *
    * Required. Number of nodes in the Memcached instance.
    * 
* * int32 node_count = 6 [(.google.api.field_behavior) = REQUIRED]; - * * @return The nodeCount. */ @java.lang.Override @@ -4346,16 +3928,11 @@ public int getNodeCount() { public static final int NODE_CONFIG_FIELD_NUMBER = 7; private com.google.cloud.memcache.v1.Instance.NodeConfig nodeConfig_; /** - * - * *
    * Required. Configuration for Memcached nodes.
    * 
* - * - * .google.cloud.memcache.v1.Instance.NodeConfig node_config = 7 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.memcache.v1.Instance.NodeConfig node_config = 7 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the nodeConfig field is set. */ @java.lang.Override @@ -4363,34 +3940,23 @@ public boolean hasNodeConfig() { return nodeConfig_ != null; } /** - * - * *
    * Required. Configuration for Memcached nodes.
    * 
* - * - * .google.cloud.memcache.v1.Instance.NodeConfig node_config = 7 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.memcache.v1.Instance.NodeConfig node_config = 7 [(.google.api.field_behavior) = REQUIRED]; * @return The nodeConfig. */ @java.lang.Override public com.google.cloud.memcache.v1.Instance.NodeConfig getNodeConfig() { - return nodeConfig_ == null - ? com.google.cloud.memcache.v1.Instance.NodeConfig.getDefaultInstance() - : nodeConfig_; + return nodeConfig_ == null ? com.google.cloud.memcache.v1.Instance.NodeConfig.getDefaultInstance() : nodeConfig_; } /** - * - * *
    * Required. Configuration for Memcached nodes.
    * 
* - * - * .google.cloud.memcache.v1.Instance.NodeConfig node_config = 7 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.memcache.v1.Instance.NodeConfig node_config = 7 [(.google.api.field_behavior) = REQUIRED]; */ @java.lang.Override public com.google.cloud.memcache.v1.Instance.NodeConfigOrBuilder getNodeConfigOrBuilder() { @@ -4400,8 +3966,6 @@ public com.google.cloud.memcache.v1.Instance.NodeConfigOrBuilder getNodeConfigOr public static final int MEMCACHE_VERSION_FIELD_NUMBER = 9; private int memcacheVersion_; /** - * - * *
    * The major version of Memcached software.
    * If not provided, latest supported version will be used. Currently the
@@ -4411,16 +3975,12 @@ public com.google.cloud.memcache.v1.Instance.NodeConfigOrBuilder getNodeConfigOr
    * 
* * .google.cloud.memcache.v1.MemcacheVersion memcache_version = 9; - * * @return The enum numeric value on the wire for memcacheVersion. */ - @java.lang.Override - public int getMemcacheVersionValue() { + @java.lang.Override public int getMemcacheVersionValue() { return memcacheVersion_; } /** - * - * *
    * The major version of Memcached software.
    * If not provided, latest supported version will be used. Currently the
@@ -4430,29 +3990,23 @@ public int getMemcacheVersionValue() {
    * 
* * .google.cloud.memcache.v1.MemcacheVersion memcache_version = 9; - * * @return The memcacheVersion. */ - @java.lang.Override - public com.google.cloud.memcache.v1.MemcacheVersion getMemcacheVersion() { + @java.lang.Override public com.google.cloud.memcache.v1.MemcacheVersion getMemcacheVersion() { @SuppressWarnings("deprecation") - com.google.cloud.memcache.v1.MemcacheVersion result = - com.google.cloud.memcache.v1.MemcacheVersion.valueOf(memcacheVersion_); + com.google.cloud.memcache.v1.MemcacheVersion result = com.google.cloud.memcache.v1.MemcacheVersion.valueOf(memcacheVersion_); return result == null ? com.google.cloud.memcache.v1.MemcacheVersion.UNRECOGNIZED : result; } public static final int PARAMETERS_FIELD_NUMBER = 11; private com.google.cloud.memcache.v1.MemcacheParameters parameters_; /** - * - * *
    * Optional: User defined parameters to apply to the memcached process
    * on each node.
    * 
* * .google.cloud.memcache.v1.MemcacheParameters parameters = 11; - * * @return Whether the parameters field is set. */ @java.lang.Override @@ -4460,26 +4014,19 @@ public boolean hasParameters() { return parameters_ != null; } /** - * - * *
    * Optional: User defined parameters to apply to the memcached process
    * on each node.
    * 
* * .google.cloud.memcache.v1.MemcacheParameters parameters = 11; - * * @return The parameters. */ @java.lang.Override public com.google.cloud.memcache.v1.MemcacheParameters getParameters() { - return parameters_ == null - ? com.google.cloud.memcache.v1.MemcacheParameters.getDefaultInstance() - : parameters_; + return parameters_ == null ? com.google.cloud.memcache.v1.MemcacheParameters.getDefaultInstance() : parameters_; } /** - * - * *
    * Optional: User defined parameters to apply to the memcached process
    * on each node.
@@ -4495,99 +4042,76 @@ public com.google.cloud.memcache.v1.MemcacheParametersOrBuilder getParametersOrB
   public static final int MEMCACHE_NODES_FIELD_NUMBER = 12;
   private java.util.List memcacheNodes_;
   /**
-   *
-   *
    * 
    * Output only. List of Memcached nodes.
    * Refer to [Node] message for more details.
    * 
* - * - * repeated .google.cloud.memcache.v1.Instance.Node memcache_nodes = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.memcache.v1.Instance.Node memcache_nodes = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override public java.util.List getMemcacheNodesList() { return memcacheNodes_; } /** - * - * *
    * Output only. List of Memcached nodes.
    * Refer to [Node] message for more details.
    * 
* - * - * repeated .google.cloud.memcache.v1.Instance.Node memcache_nodes = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.memcache.v1.Instance.Node memcache_nodes = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override - public java.util.List + public java.util.List getMemcacheNodesOrBuilderList() { return memcacheNodes_; } /** - * - * *
    * Output only. List of Memcached nodes.
    * Refer to [Node] message for more details.
    * 
* - * - * repeated .google.cloud.memcache.v1.Instance.Node memcache_nodes = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.memcache.v1.Instance.Node memcache_nodes = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override public int getMemcacheNodesCount() { return memcacheNodes_.size(); } /** - * - * *
    * Output only. List of Memcached nodes.
    * Refer to [Node] message for more details.
    * 
* - * - * repeated .google.cloud.memcache.v1.Instance.Node memcache_nodes = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.memcache.v1.Instance.Node memcache_nodes = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override public com.google.cloud.memcache.v1.Instance.Node getMemcacheNodes(int index) { return memcacheNodes_.get(index); } /** - * - * *
    * Output only. List of Memcached nodes.
    * Refer to [Node] message for more details.
    * 
* - * - * repeated .google.cloud.memcache.v1.Instance.Node memcache_nodes = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.memcache.v1.Instance.Node memcache_nodes = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override - public com.google.cloud.memcache.v1.Instance.NodeOrBuilder getMemcacheNodesOrBuilder(int index) { + public com.google.cloud.memcache.v1.Instance.NodeOrBuilder getMemcacheNodesOrBuilder( + int index) { return memcacheNodes_.get(index); } 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 @@ -4595,15 +4119,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 @@ -4611,14 +4131,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() { @@ -4628,15 +4145,11 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { public static final int UPDATE_TIME_FIELD_NUMBER = 14; private com.google.protobuf.Timestamp updateTime_; /** - * - * *
    * Output only. The time the instance was updated.
    * 
* - * .google.protobuf.Timestamp update_time = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp update_time = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the updateTime field is set. */ @java.lang.Override @@ -4644,15 +4157,11 @@ public boolean hasUpdateTime() { return updateTime_ != null; } /** - * - * *
    * Output only. The time the instance was updated.
    * 
* - * .google.protobuf.Timestamp update_time = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp update_time = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The updateTime. */ @java.lang.Override @@ -4660,14 +4169,11 @@ public com.google.protobuf.Timestamp getUpdateTime() { return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; } /** - * - * *
    * Output only. The time the instance was updated.
    * 
* - * .google.protobuf.Timestamp update_time = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp update_time = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { @@ -4677,48 +4183,33 @@ public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { public static final int STATE_FIELD_NUMBER = 15; private int state_; /** - * - * *
    * Output only. The state of this Memcached instance.
    * 
* - * - * .google.cloud.memcache.v1.Instance.State state = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.memcache.v1.Instance.State state = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The enum numeric value on the wire for state. */ - @java.lang.Override - public int getStateValue() { + @java.lang.Override public int getStateValue() { return state_; } /** - * - * *
    * Output only. The state of this Memcached instance.
    * 
* - * - * .google.cloud.memcache.v1.Instance.State state = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.memcache.v1.Instance.State state = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The state. */ - @java.lang.Override - public com.google.cloud.memcache.v1.Instance.State getState() { + @java.lang.Override public com.google.cloud.memcache.v1.Instance.State getState() { @SuppressWarnings("deprecation") - com.google.cloud.memcache.v1.Instance.State result = - com.google.cloud.memcache.v1.Instance.State.valueOf(state_); + com.google.cloud.memcache.v1.Instance.State result = com.google.cloud.memcache.v1.Instance.State.valueOf(state_); return result == null ? com.google.cloud.memcache.v1.Instance.State.UNRECOGNIZED : result; } public static final int MEMCACHE_FULL_VERSION_FIELD_NUMBER = 18; private volatile java.lang.Object memcacheFullVersion_; /** - * - * *
    * Output only. The full version of memcached server running on this instance.
    * System automatically determines the full memcached version for an instance
@@ -4727,7 +4218,6 @@ public com.google.cloud.memcache.v1.Instance.State getState() {
    * 
* * string memcache_full_version = 18 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The memcacheFullVersion. */ @java.lang.Override @@ -4736,15 +4226,14 @@ public java.lang.String getMemcacheFullVersion() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); memcacheFullVersion_ = s; return s; } } /** - * - * *
    * Output only. The full version of memcached server running on this instance.
    * System automatically determines the full memcached version for an instance
@@ -4753,15 +4242,16 @@ public java.lang.String getMemcacheFullVersion() {
    * 
* * string memcache_full_version = 18 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for memcacheFullVersion. */ @java.lang.Override - public com.google.protobuf.ByteString getMemcacheFullVersionBytes() { + public com.google.protobuf.ByteString + getMemcacheFullVersionBytes() { java.lang.Object ref = memcacheFullVersion_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); memcacheFullVersion_ = b; return b; } else { @@ -4772,90 +4262,71 @@ public com.google.protobuf.ByteString getMemcacheFullVersionBytes() { public static final int INSTANCE_MESSAGES_FIELD_NUMBER = 19; private java.util.List instanceMessages_; /** - * - * *
    * List of messages that describe current statuses of memcached instance.
    * 
* - * repeated .google.cloud.memcache.v1.Instance.InstanceMessage instance_messages = 19; - * + * repeated .google.cloud.memcache.v1.Instance.InstanceMessage instance_messages = 19; */ @java.lang.Override - public java.util.List - getInstanceMessagesList() { + public java.util.List getInstanceMessagesList() { return instanceMessages_; } /** - * - * *
    * List of messages that describe current statuses of memcached instance.
    * 
* - * repeated .google.cloud.memcache.v1.Instance.InstanceMessage instance_messages = 19; - * + * repeated .google.cloud.memcache.v1.Instance.InstanceMessage instance_messages = 19; */ @java.lang.Override - public java.util.List + public java.util.List getInstanceMessagesOrBuilderList() { return instanceMessages_; } /** - * - * *
    * List of messages that describe current statuses of memcached instance.
    * 
* - * repeated .google.cloud.memcache.v1.Instance.InstanceMessage instance_messages = 19; - * + * repeated .google.cloud.memcache.v1.Instance.InstanceMessage instance_messages = 19; */ @java.lang.Override public int getInstanceMessagesCount() { return instanceMessages_.size(); } /** - * - * *
    * List of messages that describe current statuses of memcached instance.
    * 
* - * repeated .google.cloud.memcache.v1.Instance.InstanceMessage instance_messages = 19; - * + * repeated .google.cloud.memcache.v1.Instance.InstanceMessage instance_messages = 19; */ @java.lang.Override public com.google.cloud.memcache.v1.Instance.InstanceMessage getInstanceMessages(int index) { return instanceMessages_.get(index); } /** - * - * *
    * List of messages that describe current statuses of memcached instance.
    * 
* - * repeated .google.cloud.memcache.v1.Instance.InstanceMessage instance_messages = 19; - * + * repeated .google.cloud.memcache.v1.Instance.InstanceMessage instance_messages = 19; */ @java.lang.Override - public com.google.cloud.memcache.v1.Instance.InstanceMessageOrBuilder - getInstanceMessagesOrBuilder(int index) { + public com.google.cloud.memcache.v1.Instance.InstanceMessageOrBuilder getInstanceMessagesOrBuilder( + int index) { return instanceMessages_.get(index); } public static final int DISCOVERY_ENDPOINT_FIELD_NUMBER = 20; private volatile java.lang.Object discoveryEndpoint_; /** - * - * *
    * Output only. Endpoint for Discovery API
    * 
* * string discovery_endpoint = 20 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The discoveryEndpoint. */ @java.lang.Override @@ -4864,29 +4335,29 @@ public java.lang.String getDiscoveryEndpoint() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); discoveryEndpoint_ = s; return s; } } /** - * - * *
    * Output only. Endpoint for Discovery API
    * 
* * string discovery_endpoint = 20 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for discoveryEndpoint. */ @java.lang.Override - public com.google.protobuf.ByteString getDiscoveryEndpointBytes() { + public com.google.protobuf.ByteString + getDiscoveryEndpointBytes() { java.lang.Object ref = discoveryEndpoint_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); discoveryEndpoint_ = b; return b; } else { @@ -4895,7 +4366,6 @@ public com.google.protobuf.ByteString getDiscoveryEndpointBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -4907,15 +4377,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(authorizedNetwork_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 4, authorizedNetwork_); } @@ -4928,8 +4403,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (nodeConfig_ != null) { output.writeMessage(7, getNodeConfig()); } - if (memcacheVersion_ - != com.google.cloud.memcache.v1.MemcacheVersion.MEMCACHE_VERSION_UNSPECIFIED.getNumber()) { + if (memcacheVersion_ != com.google.cloud.memcache.v1.MemcacheVersion.MEMCACHE_VERSION_UNSPECIFIED.getNumber()) { output.writeEnum(9, memcacheVersion_); } if (parameters_ != null) { @@ -4971,15 +4445,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(authorizedNetwork_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, authorizedNetwork_); @@ -4993,36 +4467,43 @@ public int getSerializedSize() { size += 1 * getZonesList().size(); } if (nodeCount_ != 0) { - size += com.google.protobuf.CodedOutputStream.computeInt32Size(6, nodeCount_); + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(6, nodeCount_); } if (nodeConfig_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(7, getNodeConfig()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(7, getNodeConfig()); } - if (memcacheVersion_ - != com.google.cloud.memcache.v1.MemcacheVersion.MEMCACHE_VERSION_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream.computeEnumSize(9, memcacheVersion_); + if (memcacheVersion_ != com.google.cloud.memcache.v1.MemcacheVersion.MEMCACHE_VERSION_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(9, memcacheVersion_); } if (parameters_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(11, getParameters()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(11, getParameters()); } for (int i = 0; i < memcacheNodes_.size(); i++) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(12, memcacheNodes_.get(i)); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(12, memcacheNodes_.get(i)); } if (createTime_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(13, getCreateTime()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(13, getCreateTime()); } if (updateTime_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(14, getUpdateTime()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(14, getUpdateTime()); } if (state_ != com.google.cloud.memcache.v1.Instance.State.STATE_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream.computeEnumSize(15, state_); + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(15, state_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(memcacheFullVersion_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(18, memcacheFullVersion_); } for (int i = 0; i < instanceMessages_.size(); i++) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize(19, instanceMessages_.get(i)); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(19, instanceMessages_.get(i)); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(discoveryEndpoint_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(20, discoveryEndpoint_); @@ -5035,41 +4516,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.memcache.v1.Instance)) { return super.equals(obj); } com.google.cloud.memcache.v1.Instance other = (com.google.cloud.memcache.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 (!getAuthorizedNetwork().equals(other.getAuthorizedNetwork())) return false; - if (!getZonesList().equals(other.getZonesList())) return false; - if (getNodeCount() != other.getNodeCount()) return false; + if (!getName() + .equals(other.getName())) return false; + if (!getDisplayName() + .equals(other.getDisplayName())) return false; + if (!internalGetLabels().equals( + other.internalGetLabels())) return false; + if (!getAuthorizedNetwork() + .equals(other.getAuthorizedNetwork())) return false; + if (!getZonesList() + .equals(other.getZonesList())) return false; + if (getNodeCount() + != other.getNodeCount()) return false; if (hasNodeConfig() != other.hasNodeConfig()) return false; if (hasNodeConfig()) { - if (!getNodeConfig().equals(other.getNodeConfig())) return false; + if (!getNodeConfig() + .equals(other.getNodeConfig())) return false; } if (memcacheVersion_ != other.memcacheVersion_) return false; if (hasParameters() != other.hasParameters()) return false; if (hasParameters()) { - if (!getParameters().equals(other.getParameters())) return false; + if (!getParameters() + .equals(other.getParameters())) return false; } - if (!getMemcacheNodesList().equals(other.getMemcacheNodesList())) return false; + if (!getMemcacheNodesList() + .equals(other.getMemcacheNodesList())) return false; if (hasCreateTime() != other.hasCreateTime()) return false; if (hasCreateTime()) { - if (!getCreateTime().equals(other.getCreateTime())) return false; + if (!getCreateTime() + .equals(other.getCreateTime())) return false; } if (hasUpdateTime() != other.hasUpdateTime()) return false; if (hasUpdateTime()) { - if (!getUpdateTime().equals(other.getUpdateTime())) return false; + if (!getUpdateTime() + .equals(other.getUpdateTime())) return false; } if (state_ != other.state_) return false; - if (!getMemcacheFullVersion().equals(other.getMemcacheFullVersion())) return false; - if (!getInstanceMessagesList().equals(other.getInstanceMessagesList())) return false; - if (!getDiscoveryEndpoint().equals(other.getDiscoveryEndpoint())) return false; + if (!getMemcacheFullVersion() + .equals(other.getMemcacheFullVersion())) return false; + if (!getInstanceMessagesList() + .equals(other.getInstanceMessagesList())) return false; + if (!getDiscoveryEndpoint() + .equals(other.getDiscoveryEndpoint())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -5134,138 +4629,136 @@ public int hashCode() { return hash; } - public static com.google.cloud.memcache.v1.Instance parseFrom(java.nio.ByteBuffer data) + public static com.google.cloud.memcache.v1.Instance parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.memcache.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.memcache.v1.Instance parseFrom(com.google.protobuf.ByteString data) + public static com.google.cloud.memcache.v1.Instance parseFrom( + com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.memcache.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.memcache.v1.Instance parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.memcache.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.memcache.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.memcache.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.memcache.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.memcache.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.memcache.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.memcache.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.memcache.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; } - /** Protobuf type {@code google.cloud.memcache.v1.Instance} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + /** + * Protobuf type {@code google.cloud.memcache.v1.Instance} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.memcache.v1.Instance) com.google.cloud.memcache.v1.InstanceOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.memcache.v1.CloudMemcacheProto - .internal_static_google_cloud_memcache_v1_Instance_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.memcache.v1.CloudMemcacheProto.internal_static_google_cloud_memcache_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(); 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(); 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.memcache.v1.CloudMemcacheProto - .internal_static_google_cloud_memcache_v1_Instance_fieldAccessorTable + return com.google.cloud.memcache.v1.CloudMemcacheProto.internal_static_google_cloud_memcache_v1_Instance_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.memcache.v1.Instance.class, - com.google.cloud.memcache.v1.Instance.Builder.class); + com.google.cloud.memcache.v1.Instance.class, com.google.cloud.memcache.v1.Instance.Builder.class); } // Construct using com.google.cloud.memcache.v1.Instance.newBuilder() @@ -5273,18 +4766,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) { getMemcacheNodesFieldBuilder(); getInstanceMessagesFieldBuilder(); } } - @java.lang.Override public Builder clear() { super.clear(); @@ -5347,9 +4840,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.memcache.v1.CloudMemcacheProto - .internal_static_google_cloud_memcache_v1_Instance_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.memcache.v1.CloudMemcacheProto.internal_static_google_cloud_memcache_v1_Instance_descriptor; } @java.lang.Override @@ -5368,8 +4861,7 @@ public com.google.cloud.memcache.v1.Instance build() { @java.lang.Override public com.google.cloud.memcache.v1.Instance buildPartial() { - com.google.cloud.memcache.v1.Instance result = - new com.google.cloud.memcache.v1.Instance(this); + com.google.cloud.memcache.v1.Instance result = new com.google.cloud.memcache.v1.Instance(this); int from_bitField0_ = bitField0_; result.name_ = name_; result.displayName_ = displayName_; @@ -5432,39 +4924,38 @@ public com.google.cloud.memcache.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.memcache.v1.Instance) { - return mergeFrom((com.google.cloud.memcache.v1.Instance) other); + return mergeFrom((com.google.cloud.memcache.v1.Instance)other); } else { super.mergeFrom(other); return this; @@ -5481,7 +4972,8 @@ public Builder mergeFrom(com.google.cloud.memcache.v1.Instance other) { displayName_ = other.displayName_; onChanged(); } - internalGetMutableLabels().mergeFrom(other.internalGetLabels()); + internalGetMutableLabels().mergeFrom( + other.internalGetLabels()); if (!other.getAuthorizedNetwork().isEmpty()) { authorizedNetwork_ = other.authorizedNetwork_; onChanged(); @@ -5526,10 +5018,9 @@ public Builder mergeFrom(com.google.cloud.memcache.v1.Instance other) { memcacheNodesBuilder_ = null; memcacheNodes_ = other.memcacheNodes_; bitField0_ = (bitField0_ & ~0x00000004); - memcacheNodesBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getMemcacheNodesFieldBuilder() - : null; + memcacheNodesBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getMemcacheNodesFieldBuilder() : null; } else { memcacheNodesBuilder_.addAllMessages(other.memcacheNodes_); } @@ -5566,10 +5057,9 @@ public Builder mergeFrom(com.google.cloud.memcache.v1.Instance other) { instanceMessagesBuilder_ = null; instanceMessages_ = other.instanceMessages_; bitField0_ = (bitField0_ & ~0x00000008); - instanceMessagesBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getInstanceMessagesFieldBuilder() - : null; + instanceMessagesBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getInstanceMessagesFieldBuilder() : null; } else { instanceMessagesBuilder_.addAllMessages(other.instanceMessages_); } @@ -5607,13 +5097,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:
@@ -5625,13 +5112,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; @@ -5640,8 +5127,6 @@ public java.lang.String getName() { } } /** - * - * *
      * Required. Unique name of the resource in this scope including project and
      * location using the form:
@@ -5653,14 +5138,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 { @@ -5668,8 +5154,6 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
      * Required. Unique name of the resource in this scope including project and
      * location using the form:
@@ -5681,22 +5165,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:
@@ -5708,18 +5190,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:
@@ -5731,16 +5210,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; @@ -5748,21 +5227,19 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { private java.lang.Object displayName_ = ""; /** - * - * *
      * User provided name for the instance only used for display
      * purposes. Cannot be more than 80 characters.
      * 
* * 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; @@ -5771,22 +5248,21 @@ public java.lang.String getDisplayName() { } } /** - * - * *
      * User provided name for the instance only used for display
      * purposes. Cannot be more than 80 characters.
      * 
* * 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 { @@ -5794,84 +5270,78 @@ public com.google.protobuf.ByteString getDisplayNameBytes() { } } /** - * - * *
      * User provided name for the instance only used for display
      * purposes. Cannot be more than 80 characters.
      * 
* * 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; } /** - * - * *
      * User provided name for the instance only used for display
      * purposes. Cannot be more than 80 characters.
      * 
* * string display_name = 2; - * * @return This builder for chaining. */ public Builder clearDisplayName() { - + displayName_ = getDefaultInstance().getDisplayName(); onChanged(); return this; } /** - * - * *
      * User provided name for the instance only used for display
      * purposes. Cannot be more than 80 characters.
      * 
* * 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(); @@ -5883,8 +5353,6 @@ public int getLabelsCount() { return internalGetLabels().getMap().size(); } /** - * - * *
      * Resource labels to represent user-provided metadata.
      * Refer to cloud documentation on labels for more details.
@@ -5893,22 +5361,22 @@ public int getLabelsCount() {
      *
      * 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.
      * Refer to cloud documentation on labels for more details.
@@ -5918,12 +5386,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.
      * Refer to cloud documentation on labels for more details.
@@ -5933,17 +5400,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.
      * Refer to cloud documentation on labels for more details.
@@ -5953,11 +5419,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();
       }
@@ -5965,12 +5432,11 @@ 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.
      * Refer to cloud documentation on labels for more details.
@@ -5979,21 +5445,23 @@ public Builder clearLabels() {
      *
      * 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.
      * Refer to cloud documentation on labels for more details.
@@ -6002,20 +5470,19 @@ public java.util.Map getMutableLabels() {
      *
      * 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.
      * Refer to cloud documentation on labels for more details.
@@ -6024,15 +5491,16 @@ public Builder putLabels(java.lang.String key, java.lang.String value) {
      *
      * 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 authorizedNetwork_ = "";
     /**
-     *
-     *
      * 
      * The full name of the Google Compute Engine
      * [network](/compute/docs/networks-and-firewalls#networks) to which the
@@ -6041,13 +5509,13 @@ public Builder putAllLabels(java.util.Map va
      * 
* * string authorized_network = 4; - * * @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; @@ -6056,8 +5524,6 @@ public java.lang.String getAuthorizedNetwork() { } } /** - * - * *
      * The full name of the Google Compute Engine
      * [network](/compute/docs/networks-and-firewalls#networks) to which the
@@ -6066,14 +5532,15 @@ public java.lang.String getAuthorizedNetwork() {
      * 
* * string authorized_network = 4; - * * @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 { @@ -6081,8 +5548,6 @@ public com.google.protobuf.ByteString getAuthorizedNetworkBytes() { } } /** - * - * *
      * The full name of the Google Compute Engine
      * [network](/compute/docs/networks-and-firewalls#networks) to which the
@@ -6091,22 +5556,20 @@ public com.google.protobuf.ByteString getAuthorizedNetworkBytes() {
      * 
* * string authorized_network = 4; - * * @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; } /** - * - * *
      * The full name of the Google Compute Engine
      * [network](/compute/docs/networks-and-firewalls#networks) to which the
@@ -6115,18 +5578,15 @@ public Builder setAuthorizedNetwork(java.lang.String value) {
      * 
* * string authorized_network = 4; - * * @return This builder for chaining. */ public Builder clearAuthorizedNetwork() { - + authorizedNetwork_ = getDefaultInstance().getAuthorizedNetwork(); onChanged(); return this; } /** - * - * *
      * The full name of the Google Compute Engine
      * [network](/compute/docs/networks-and-firewalls#networks) to which the
@@ -6135,33 +5595,29 @@ public Builder clearAuthorizedNetwork() {
      * 
* * string authorized_network = 4; - * * @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; } - private com.google.protobuf.LazyStringList zones_ = - com.google.protobuf.LazyStringArrayList.EMPTY; - + private com.google.protobuf.LazyStringList zones_ = com.google.protobuf.LazyStringArrayList.EMPTY; private void ensureZonesIsMutable() { if (!((bitField0_ & 0x00000002) != 0)) { zones_ = new com.google.protobuf.LazyStringArrayList(zones_); bitField0_ |= 0x00000002; - } + } } /** - * - * *
      * Zones where Memcached nodes should be provisioned in.
      * Memcached nodes will be equally distributed across these zones. If not
@@ -6170,15 +5626,13 @@ private void ensureZonesIsMutable() {
      * 
* * repeated string zones = 5; - * * @return A list containing the zones. */ - public com.google.protobuf.ProtocolStringList getZonesList() { + public com.google.protobuf.ProtocolStringList + getZonesList() { return zones_.getUnmodifiableView(); } /** - * - * *
      * Zones where Memcached nodes should be provisioned in.
      * Memcached nodes will be equally distributed across these zones. If not
@@ -6187,15 +5641,12 @@ public com.google.protobuf.ProtocolStringList getZonesList() {
      * 
* * repeated string zones = 5; - * * @return The count of zones. */ public int getZonesCount() { return zones_.size(); } /** - * - * *
      * Zones where Memcached nodes should be provisioned in.
      * Memcached nodes will be equally distributed across these zones. If not
@@ -6204,7 +5655,6 @@ public int getZonesCount() {
      * 
* * repeated string zones = 5; - * * @param index The index of the element to return. * @return The zones at the given index. */ @@ -6212,8 +5662,6 @@ public java.lang.String getZones(int index) { return zones_.get(index); } /** - * - * *
      * Zones where Memcached nodes should be provisioned in.
      * Memcached nodes will be equally distributed across these zones. If not
@@ -6222,16 +5670,14 @@ public java.lang.String getZones(int index) {
      * 
* * repeated string zones = 5; - * * @param index The index of the value to return. * @return The bytes of the zones at the given index. */ - public com.google.protobuf.ByteString getZonesBytes(int index) { + public com.google.protobuf.ByteString + getZonesBytes(int index) { return zones_.getByteString(index); } /** - * - * *
      * Zones where Memcached nodes should be provisioned in.
      * Memcached nodes will be equally distributed across these zones. If not
@@ -6240,23 +5686,21 @@ public com.google.protobuf.ByteString getZonesBytes(int index) {
      * 
* * repeated string zones = 5; - * * @param index The index to set the value at. * @param value The zones to set. * @return This builder for chaining. */ - public Builder setZones(int index, java.lang.String value) { + public Builder setZones( + int index, java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureZonesIsMutable(); + throw new NullPointerException(); + } + ensureZonesIsMutable(); zones_.set(index, value); onChanged(); return this; } /** - * - * *
      * Zones where Memcached nodes should be provisioned in.
      * Memcached nodes will be equally distributed across these zones. If not
@@ -6265,22 +5709,20 @@ public Builder setZones(int index, java.lang.String value) {
      * 
* * repeated string zones = 5; - * * @param value The zones to add. * @return This builder for chaining. */ - public Builder addZones(java.lang.String value) { + public Builder addZones( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureZonesIsMutable(); + throw new NullPointerException(); + } + ensureZonesIsMutable(); zones_.add(value); onChanged(); return this; } /** - * - * *
      * Zones where Memcached nodes should be provisioned in.
      * Memcached nodes will be equally distributed across these zones. If not
@@ -6289,19 +5731,18 @@ public Builder addZones(java.lang.String value) {
      * 
* * repeated string zones = 5; - * * @param values The zones to add. * @return This builder for chaining. */ - public Builder addAllZones(java.lang.Iterable values) { + public Builder addAllZones( + java.lang.Iterable values) { ensureZonesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, zones_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, zones_); onChanged(); return this; } /** - * - * *
      * Zones where Memcached nodes should be provisioned in.
      * Memcached nodes will be equally distributed across these zones. If not
@@ -6310,7 +5751,6 @@ public Builder addAllZones(java.lang.Iterable values) {
      * 
* * repeated string zones = 5; - * * @return This builder for chaining. */ public Builder clearZones() { @@ -6320,8 +5760,6 @@ public Builder clearZones() { return this; } /** - * - * *
      * Zones where Memcached nodes should be provisioned in.
      * Memcached nodes will be equally distributed across these zones. If not
@@ -6330,31 +5768,28 @@ public Builder clearZones() {
      * 
* * repeated string zones = 5; - * * @param value The bytes of the zones to add. * @return This builder for chaining. */ - public Builder addZonesBytes(com.google.protobuf.ByteString value) { + public Builder addZonesBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); ensureZonesIsMutable(); zones_.add(value); onChanged(); return this; } - private int nodeCount_; + private int nodeCount_ ; /** - * - * *
      * Required. Number of nodes in the Memcached instance.
      * 
* * int32 node_count = 6 [(.google.api.field_behavior) = REQUIRED]; - * * @return The nodeCount. */ @java.lang.Override @@ -6362,36 +5797,30 @@ public int getNodeCount() { return nodeCount_; } /** - * - * *
      * Required. Number of nodes in the Memcached instance.
      * 
* * int32 node_count = 6 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The nodeCount to set. * @return This builder for chaining. */ public Builder setNodeCount(int value) { - + nodeCount_ = value; onChanged(); return this; } /** - * - * *
      * Required. Number of nodes in the Memcached instance.
      * 
* * int32 node_count = 6 [(.google.api.field_behavior) = REQUIRED]; - * * @return This builder for chaining. */ public Builder clearNodeCount() { - + nodeCount_ = 0; onChanged(); return this; @@ -6399,58 +5828,39 @@ public Builder clearNodeCount() { private com.google.cloud.memcache.v1.Instance.NodeConfig nodeConfig_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.memcache.v1.Instance.NodeConfig, - com.google.cloud.memcache.v1.Instance.NodeConfig.Builder, - com.google.cloud.memcache.v1.Instance.NodeConfigOrBuilder> - nodeConfigBuilder_; + com.google.cloud.memcache.v1.Instance.NodeConfig, com.google.cloud.memcache.v1.Instance.NodeConfig.Builder, com.google.cloud.memcache.v1.Instance.NodeConfigOrBuilder> nodeConfigBuilder_; /** - * - * *
      * Required. Configuration for Memcached nodes.
      * 
* - * - * .google.cloud.memcache.v1.Instance.NodeConfig node_config = 7 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.memcache.v1.Instance.NodeConfig node_config = 7 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the nodeConfig field is set. */ public boolean hasNodeConfig() { return nodeConfigBuilder_ != null || nodeConfig_ != null; } /** - * - * *
      * Required. Configuration for Memcached nodes.
      * 
* - * - * .google.cloud.memcache.v1.Instance.NodeConfig node_config = 7 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.memcache.v1.Instance.NodeConfig node_config = 7 [(.google.api.field_behavior) = REQUIRED]; * @return The nodeConfig. */ public com.google.cloud.memcache.v1.Instance.NodeConfig getNodeConfig() { if (nodeConfigBuilder_ == null) { - return nodeConfig_ == null - ? com.google.cloud.memcache.v1.Instance.NodeConfig.getDefaultInstance() - : nodeConfig_; + return nodeConfig_ == null ? com.google.cloud.memcache.v1.Instance.NodeConfig.getDefaultInstance() : nodeConfig_; } else { return nodeConfigBuilder_.getMessage(); } } /** - * - * *
      * Required. Configuration for Memcached nodes.
      * 
* - * - * .google.cloud.memcache.v1.Instance.NodeConfig node_config = 7 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.memcache.v1.Instance.NodeConfig node_config = 7 [(.google.api.field_behavior) = REQUIRED]; */ public Builder setNodeConfig(com.google.cloud.memcache.v1.Instance.NodeConfig value) { if (nodeConfigBuilder_ == null) { @@ -6466,15 +5876,11 @@ public Builder setNodeConfig(com.google.cloud.memcache.v1.Instance.NodeConfig va return this; } /** - * - * *
      * Required. Configuration for Memcached nodes.
      * 
* - * - * .google.cloud.memcache.v1.Instance.NodeConfig node_config = 7 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.memcache.v1.Instance.NodeConfig node_config = 7 [(.google.api.field_behavior) = REQUIRED]; */ public Builder setNodeConfig( com.google.cloud.memcache.v1.Instance.NodeConfig.Builder builderForValue) { @@ -6488,23 +5894,17 @@ public Builder setNodeConfig( return this; } /** - * - * *
      * Required. Configuration for Memcached nodes.
      * 
* - * - * .google.cloud.memcache.v1.Instance.NodeConfig node_config = 7 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.memcache.v1.Instance.NodeConfig node_config = 7 [(.google.api.field_behavior) = REQUIRED]; */ public Builder mergeNodeConfig(com.google.cloud.memcache.v1.Instance.NodeConfig value) { if (nodeConfigBuilder_ == null) { if (nodeConfig_ != null) { nodeConfig_ = - com.google.cloud.memcache.v1.Instance.NodeConfig.newBuilder(nodeConfig_) - .mergeFrom(value) - .buildPartial(); + com.google.cloud.memcache.v1.Instance.NodeConfig.newBuilder(nodeConfig_).mergeFrom(value).buildPartial(); } else { nodeConfig_ = value; } @@ -6516,15 +5916,11 @@ public Builder mergeNodeConfig(com.google.cloud.memcache.v1.Instance.NodeConfig return this; } /** - * - * *
      * Required. Configuration for Memcached nodes.
      * 
* - * - * .google.cloud.memcache.v1.Instance.NodeConfig node_config = 7 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.memcache.v1.Instance.NodeConfig node_config = 7 [(.google.api.field_behavior) = REQUIRED]; */ public Builder clearNodeConfig() { if (nodeConfigBuilder_ == null) { @@ -6538,64 +5934,48 @@ public Builder clearNodeConfig() { return this; } /** - * - * *
      * Required. Configuration for Memcached nodes.
      * 
* - * - * .google.cloud.memcache.v1.Instance.NodeConfig node_config = 7 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.memcache.v1.Instance.NodeConfig node_config = 7 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.cloud.memcache.v1.Instance.NodeConfig.Builder getNodeConfigBuilder() { - + onChanged(); return getNodeConfigFieldBuilder().getBuilder(); } /** - * - * *
      * Required. Configuration for Memcached nodes.
      * 
* - * - * .google.cloud.memcache.v1.Instance.NodeConfig node_config = 7 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.memcache.v1.Instance.NodeConfig node_config = 7 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.cloud.memcache.v1.Instance.NodeConfigOrBuilder getNodeConfigOrBuilder() { if (nodeConfigBuilder_ != null) { return nodeConfigBuilder_.getMessageOrBuilder(); } else { - return nodeConfig_ == null - ? com.google.cloud.memcache.v1.Instance.NodeConfig.getDefaultInstance() - : nodeConfig_; + return nodeConfig_ == null ? + com.google.cloud.memcache.v1.Instance.NodeConfig.getDefaultInstance() : nodeConfig_; } } /** - * - * *
      * Required. Configuration for Memcached nodes.
      * 
* - * - * .google.cloud.memcache.v1.Instance.NodeConfig node_config = 7 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.memcache.v1.Instance.NodeConfig node_config = 7 [(.google.api.field_behavior) = REQUIRED]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.memcache.v1.Instance.NodeConfig, - com.google.cloud.memcache.v1.Instance.NodeConfig.Builder, - com.google.cloud.memcache.v1.Instance.NodeConfigOrBuilder> + com.google.cloud.memcache.v1.Instance.NodeConfig, com.google.cloud.memcache.v1.Instance.NodeConfig.Builder, com.google.cloud.memcache.v1.Instance.NodeConfigOrBuilder> getNodeConfigFieldBuilder() { if (nodeConfigBuilder_ == null) { - nodeConfigBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.memcache.v1.Instance.NodeConfig, - com.google.cloud.memcache.v1.Instance.NodeConfig.Builder, - com.google.cloud.memcache.v1.Instance.NodeConfigOrBuilder>( - getNodeConfig(), getParentForChildren(), isClean()); + nodeConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.memcache.v1.Instance.NodeConfig, com.google.cloud.memcache.v1.Instance.NodeConfig.Builder, com.google.cloud.memcache.v1.Instance.NodeConfigOrBuilder>( + getNodeConfig(), + getParentForChildren(), + isClean()); nodeConfig_ = null; } return nodeConfigBuilder_; @@ -6603,8 +5983,6 @@ public com.google.cloud.memcache.v1.Instance.NodeConfigOrBuilder getNodeConfigOr private int memcacheVersion_ = 0; /** - * - * *
      * The major version of Memcached software.
      * If not provided, latest supported version will be used. Currently the
@@ -6614,16 +5992,12 @@ public com.google.cloud.memcache.v1.Instance.NodeConfigOrBuilder getNodeConfigOr
      * 
* * .google.cloud.memcache.v1.MemcacheVersion memcache_version = 9; - * * @return The enum numeric value on the wire for memcacheVersion. */ - @java.lang.Override - public int getMemcacheVersionValue() { + @java.lang.Override public int getMemcacheVersionValue() { return memcacheVersion_; } /** - * - * *
      * The major version of Memcached software.
      * If not provided, latest supported version will be used. Currently the
@@ -6633,19 +6007,16 @@ public int getMemcacheVersionValue() {
      * 
* * .google.cloud.memcache.v1.MemcacheVersion memcache_version = 9; - * * @param value The enum numeric value on the wire for memcacheVersion to set. * @return This builder for chaining. */ public Builder setMemcacheVersionValue(int value) { - + memcacheVersion_ = value; onChanged(); return this; } /** - * - * *
      * The major version of Memcached software.
      * If not provided, latest supported version will be used. Currently the
@@ -6655,19 +6026,15 @@ public Builder setMemcacheVersionValue(int value) {
      * 
* * .google.cloud.memcache.v1.MemcacheVersion memcache_version = 9; - * * @return The memcacheVersion. */ @java.lang.Override public com.google.cloud.memcache.v1.MemcacheVersion getMemcacheVersion() { @SuppressWarnings("deprecation") - com.google.cloud.memcache.v1.MemcacheVersion result = - com.google.cloud.memcache.v1.MemcacheVersion.valueOf(memcacheVersion_); + com.google.cloud.memcache.v1.MemcacheVersion result = com.google.cloud.memcache.v1.MemcacheVersion.valueOf(memcacheVersion_); return result == null ? com.google.cloud.memcache.v1.MemcacheVersion.UNRECOGNIZED : result; } /** - * - * *
      * The major version of Memcached software.
      * If not provided, latest supported version will be used. Currently the
@@ -6677,7 +6044,6 @@ public com.google.cloud.memcache.v1.MemcacheVersion getMemcacheVersion() {
      * 
* * .google.cloud.memcache.v1.MemcacheVersion memcache_version = 9; - * * @param value The memcacheVersion to set. * @return This builder for chaining. */ @@ -6685,14 +6051,12 @@ public Builder setMemcacheVersion(com.google.cloud.memcache.v1.MemcacheVersion v if (value == null) { throw new NullPointerException(); } - + memcacheVersion_ = value.getNumber(); onChanged(); return this; } /** - * - * *
      * The major version of Memcached software.
      * If not provided, latest supported version will be used. Currently the
@@ -6702,11 +6066,10 @@ public Builder setMemcacheVersion(com.google.cloud.memcache.v1.MemcacheVersion v
      * 
* * .google.cloud.memcache.v1.MemcacheVersion memcache_version = 9; - * * @return This builder for chaining. */ public Builder clearMemcacheVersion() { - + memcacheVersion_ = 0; onChanged(); return this; @@ -6714,49 +6077,36 @@ public Builder clearMemcacheVersion() { private com.google.cloud.memcache.v1.MemcacheParameters parameters_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.memcache.v1.MemcacheParameters, - com.google.cloud.memcache.v1.MemcacheParameters.Builder, - com.google.cloud.memcache.v1.MemcacheParametersOrBuilder> - parametersBuilder_; + com.google.cloud.memcache.v1.MemcacheParameters, com.google.cloud.memcache.v1.MemcacheParameters.Builder, com.google.cloud.memcache.v1.MemcacheParametersOrBuilder> parametersBuilder_; /** - * - * *
      * Optional: User defined parameters to apply to the memcached process
      * on each node.
      * 
* * .google.cloud.memcache.v1.MemcacheParameters parameters = 11; - * * @return Whether the parameters field is set. */ public boolean hasParameters() { return parametersBuilder_ != null || parameters_ != null; } /** - * - * *
      * Optional: User defined parameters to apply to the memcached process
      * on each node.
      * 
* * .google.cloud.memcache.v1.MemcacheParameters parameters = 11; - * * @return The parameters. */ public com.google.cloud.memcache.v1.MemcacheParameters getParameters() { if (parametersBuilder_ == null) { - return parameters_ == null - ? com.google.cloud.memcache.v1.MemcacheParameters.getDefaultInstance() - : parameters_; + return parameters_ == null ? com.google.cloud.memcache.v1.MemcacheParameters.getDefaultInstance() : parameters_; } else { return parametersBuilder_.getMessage(); } } /** - * - * *
      * Optional: User defined parameters to apply to the memcached process
      * on each node.
@@ -6778,8 +6128,6 @@ public Builder setParameters(com.google.cloud.memcache.v1.MemcacheParameters val
       return this;
     }
     /**
-     *
-     *
      * 
      * Optional: User defined parameters to apply to the memcached process
      * on each node.
@@ -6799,8 +6147,6 @@ public Builder setParameters(
       return this;
     }
     /**
-     *
-     *
      * 
      * Optional: User defined parameters to apply to the memcached process
      * on each node.
@@ -6812,9 +6158,7 @@ public Builder mergeParameters(com.google.cloud.memcache.v1.MemcacheParameters v
       if (parametersBuilder_ == null) {
         if (parameters_ != null) {
           parameters_ =
-              com.google.cloud.memcache.v1.MemcacheParameters.newBuilder(parameters_)
-                  .mergeFrom(value)
-                  .buildPartial();
+            com.google.cloud.memcache.v1.MemcacheParameters.newBuilder(parameters_).mergeFrom(value).buildPartial();
         } else {
           parameters_ = value;
         }
@@ -6826,8 +6170,6 @@ public Builder mergeParameters(com.google.cloud.memcache.v1.MemcacheParameters v
       return this;
     }
     /**
-     *
-     *
      * 
      * Optional: User defined parameters to apply to the memcached process
      * on each node.
@@ -6847,8 +6189,6 @@ public Builder clearParameters() {
       return this;
     }
     /**
-     *
-     *
      * 
      * Optional: User defined parameters to apply to the memcached process
      * on each node.
@@ -6857,13 +6197,11 @@ public Builder clearParameters() {
      * .google.cloud.memcache.v1.MemcacheParameters parameters = 11;
      */
     public com.google.cloud.memcache.v1.MemcacheParameters.Builder getParametersBuilder() {
-
+      
       onChanged();
       return getParametersFieldBuilder().getBuilder();
     }
     /**
-     *
-     *
      * 
      * Optional: User defined parameters to apply to the memcached process
      * on each node.
@@ -6875,14 +6213,11 @@ public com.google.cloud.memcache.v1.MemcacheParametersOrBuilder getParametersOrB
       if (parametersBuilder_ != null) {
         return parametersBuilder_.getMessageOrBuilder();
       } else {
-        return parameters_ == null
-            ? com.google.cloud.memcache.v1.MemcacheParameters.getDefaultInstance()
-            : parameters_;
+        return parameters_ == null ?
+            com.google.cloud.memcache.v1.MemcacheParameters.getDefaultInstance() : parameters_;
       }
     }
     /**
-     *
-     *
      * 
      * Optional: User defined parameters to apply to the memcached process
      * on each node.
@@ -6891,50 +6226,38 @@ public com.google.cloud.memcache.v1.MemcacheParametersOrBuilder getParametersOrB
      * .google.cloud.memcache.v1.MemcacheParameters parameters = 11;
      */
     private com.google.protobuf.SingleFieldBuilderV3<
-            com.google.cloud.memcache.v1.MemcacheParameters,
-            com.google.cloud.memcache.v1.MemcacheParameters.Builder,
-            com.google.cloud.memcache.v1.MemcacheParametersOrBuilder>
+        com.google.cloud.memcache.v1.MemcacheParameters, com.google.cloud.memcache.v1.MemcacheParameters.Builder, com.google.cloud.memcache.v1.MemcacheParametersOrBuilder> 
         getParametersFieldBuilder() {
       if (parametersBuilder_ == null) {
-        parametersBuilder_ =
-            new com.google.protobuf.SingleFieldBuilderV3<
-                com.google.cloud.memcache.v1.MemcacheParameters,
-                com.google.cloud.memcache.v1.MemcacheParameters.Builder,
-                com.google.cloud.memcache.v1.MemcacheParametersOrBuilder>(
-                getParameters(), getParentForChildren(), isClean());
+        parametersBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
+            com.google.cloud.memcache.v1.MemcacheParameters, com.google.cloud.memcache.v1.MemcacheParameters.Builder, com.google.cloud.memcache.v1.MemcacheParametersOrBuilder>(
+                getParameters(),
+                getParentForChildren(),
+                isClean());
         parameters_ = null;
       }
       return parametersBuilder_;
     }
 
     private java.util.List memcacheNodes_ =
-        java.util.Collections.emptyList();
-
+      java.util.Collections.emptyList();
     private void ensureMemcacheNodesIsMutable() {
       if (!((bitField0_ & 0x00000004) != 0)) {
-        memcacheNodes_ =
-            new java.util.ArrayList(memcacheNodes_);
+        memcacheNodes_ = new java.util.ArrayList(memcacheNodes_);
         bitField0_ |= 0x00000004;
-      }
+       }
     }
 
     private com.google.protobuf.RepeatedFieldBuilderV3<
-            com.google.cloud.memcache.v1.Instance.Node,
-            com.google.cloud.memcache.v1.Instance.Node.Builder,
-            com.google.cloud.memcache.v1.Instance.NodeOrBuilder>
-        memcacheNodesBuilder_;
+        com.google.cloud.memcache.v1.Instance.Node, com.google.cloud.memcache.v1.Instance.Node.Builder, com.google.cloud.memcache.v1.Instance.NodeOrBuilder> memcacheNodesBuilder_;
 
     /**
-     *
-     *
      * 
      * Output only. List of Memcached nodes.
      * Refer to [Node] message for more details.
      * 
* - * - * repeated .google.cloud.memcache.v1.Instance.Node memcache_nodes = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.memcache.v1.Instance.Node memcache_nodes = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public java.util.List getMemcacheNodesList() { if (memcacheNodesBuilder_ == null) { @@ -6944,16 +6267,12 @@ public java.util.List getMemcacheNod } } /** - * - * *
      * Output only. List of Memcached nodes.
      * Refer to [Node] message for more details.
      * 
* - * - * repeated .google.cloud.memcache.v1.Instance.Node memcache_nodes = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.memcache.v1.Instance.Node memcache_nodes = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public int getMemcacheNodesCount() { if (memcacheNodesBuilder_ == null) { @@ -6963,16 +6282,12 @@ public int getMemcacheNodesCount() { } } /** - * - * *
      * Output only. List of Memcached nodes.
      * Refer to [Node] message for more details.
      * 
* - * - * repeated .google.cloud.memcache.v1.Instance.Node memcache_nodes = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.memcache.v1.Instance.Node memcache_nodes = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.cloud.memcache.v1.Instance.Node getMemcacheNodes(int index) { if (memcacheNodesBuilder_ == null) { @@ -6982,18 +6297,15 @@ public com.google.cloud.memcache.v1.Instance.Node getMemcacheNodes(int index) { } } /** - * - * *
      * Output only. List of Memcached nodes.
      * Refer to [Node] message for more details.
      * 
* - * - * repeated .google.cloud.memcache.v1.Instance.Node memcache_nodes = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.memcache.v1.Instance.Node memcache_nodes = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - public Builder setMemcacheNodes(int index, com.google.cloud.memcache.v1.Instance.Node value) { + public Builder setMemcacheNodes( + int index, com.google.cloud.memcache.v1.Instance.Node value) { if (memcacheNodesBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -7007,16 +6319,12 @@ public Builder setMemcacheNodes(int index, com.google.cloud.memcache.v1.Instance return this; } /** - * - * *
      * Output only. List of Memcached nodes.
      * Refer to [Node] message for more details.
      * 
* - * - * repeated .google.cloud.memcache.v1.Instance.Node memcache_nodes = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.memcache.v1.Instance.Node memcache_nodes = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder setMemcacheNodes( int index, com.google.cloud.memcache.v1.Instance.Node.Builder builderForValue) { @@ -7030,16 +6338,12 @@ public Builder setMemcacheNodes( return this; } /** - * - * *
      * Output only. List of Memcached nodes.
      * Refer to [Node] message for more details.
      * 
* - * - * repeated .google.cloud.memcache.v1.Instance.Node memcache_nodes = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.memcache.v1.Instance.Node memcache_nodes = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder addMemcacheNodes(com.google.cloud.memcache.v1.Instance.Node value) { if (memcacheNodesBuilder_ == null) { @@ -7055,18 +6359,15 @@ public Builder addMemcacheNodes(com.google.cloud.memcache.v1.Instance.Node value return this; } /** - * - * *
      * Output only. List of Memcached nodes.
      * Refer to [Node] message for more details.
      * 
* - * - * repeated .google.cloud.memcache.v1.Instance.Node memcache_nodes = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.memcache.v1.Instance.Node memcache_nodes = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - public Builder addMemcacheNodes(int index, com.google.cloud.memcache.v1.Instance.Node value) { + public Builder addMemcacheNodes( + int index, com.google.cloud.memcache.v1.Instance.Node value) { if (memcacheNodesBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -7080,16 +6381,12 @@ public Builder addMemcacheNodes(int index, com.google.cloud.memcache.v1.Instance return this; } /** - * - * *
      * Output only. List of Memcached nodes.
      * Refer to [Node] message for more details.
      * 
* - * - * repeated .google.cloud.memcache.v1.Instance.Node memcache_nodes = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.memcache.v1.Instance.Node memcache_nodes = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder addMemcacheNodes( com.google.cloud.memcache.v1.Instance.Node.Builder builderForValue) { @@ -7103,16 +6400,12 @@ public Builder addMemcacheNodes( return this; } /** - * - * *
      * Output only. List of Memcached nodes.
      * Refer to [Node] message for more details.
      * 
* - * - * repeated .google.cloud.memcache.v1.Instance.Node memcache_nodes = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.memcache.v1.Instance.Node memcache_nodes = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder addMemcacheNodes( int index, com.google.cloud.memcache.v1.Instance.Node.Builder builderForValue) { @@ -7126,22 +6419,19 @@ public Builder addMemcacheNodes( return this; } /** - * - * *
      * Output only. List of Memcached nodes.
      * Refer to [Node] message for more details.
      * 
* - * - * repeated .google.cloud.memcache.v1.Instance.Node memcache_nodes = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.memcache.v1.Instance.Node memcache_nodes = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder addAllMemcacheNodes( java.lang.Iterable values) { if (memcacheNodesBuilder_ == null) { ensureMemcacheNodesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, memcacheNodes_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, memcacheNodes_); onChanged(); } else { memcacheNodesBuilder_.addAllMessages(values); @@ -7149,16 +6439,12 @@ public Builder addAllMemcacheNodes( return this; } /** - * - * *
      * Output only. List of Memcached nodes.
      * Refer to [Node] message for more details.
      * 
* - * - * repeated .google.cloud.memcache.v1.Instance.Node memcache_nodes = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.memcache.v1.Instance.Node memcache_nodes = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder clearMemcacheNodes() { if (memcacheNodesBuilder_ == null) { @@ -7171,16 +6457,12 @@ public Builder clearMemcacheNodes() { return this; } /** - * - * *
      * Output only. List of Memcached nodes.
      * Refer to [Node] message for more details.
      * 
* - * - * repeated .google.cloud.memcache.v1.Instance.Node memcache_nodes = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.memcache.v1.Instance.Node memcache_nodes = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder removeMemcacheNodes(int index) { if (memcacheNodesBuilder_ == null) { @@ -7193,54 +6475,42 @@ public Builder removeMemcacheNodes(int index) { return this; } /** - * - * *
      * Output only. List of Memcached nodes.
      * Refer to [Node] message for more details.
      * 
* - * - * repeated .google.cloud.memcache.v1.Instance.Node memcache_nodes = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.memcache.v1.Instance.Node memcache_nodes = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - public com.google.cloud.memcache.v1.Instance.Node.Builder getMemcacheNodesBuilder(int index) { + public com.google.cloud.memcache.v1.Instance.Node.Builder getMemcacheNodesBuilder( + int index) { return getMemcacheNodesFieldBuilder().getBuilder(index); } /** - * - * *
      * Output only. List of Memcached nodes.
      * Refer to [Node] message for more details.
      * 
* - * - * repeated .google.cloud.memcache.v1.Instance.Node memcache_nodes = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.memcache.v1.Instance.Node memcache_nodes = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.cloud.memcache.v1.Instance.NodeOrBuilder getMemcacheNodesOrBuilder( int index) { if (memcacheNodesBuilder_ == null) { - return memcacheNodes_.get(index); - } else { + return memcacheNodes_.get(index); } else { return memcacheNodesBuilder_.getMessageOrBuilder(index); } } /** - * - * *
      * Output only. List of Memcached nodes.
      * Refer to [Node] message for more details.
      * 
* - * - * repeated .google.cloud.memcache.v1.Instance.Node memcache_nodes = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.memcache.v1.Instance.Node memcache_nodes = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - public java.util.List - getMemcacheNodesOrBuilderList() { + public java.util.List + getMemcacheNodesOrBuilderList() { if (memcacheNodesBuilder_ != null) { return memcacheNodesBuilder_.getMessageOrBuilderList(); } else { @@ -7248,65 +6518,48 @@ public com.google.cloud.memcache.v1.Instance.NodeOrBuilder getMemcacheNodesOrBui } } /** - * - * *
      * Output only. List of Memcached nodes.
      * Refer to [Node] message for more details.
      * 
* - * - * repeated .google.cloud.memcache.v1.Instance.Node memcache_nodes = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.memcache.v1.Instance.Node memcache_nodes = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.cloud.memcache.v1.Instance.Node.Builder addMemcacheNodesBuilder() { - return getMemcacheNodesFieldBuilder() - .addBuilder(com.google.cloud.memcache.v1.Instance.Node.getDefaultInstance()); + return getMemcacheNodesFieldBuilder().addBuilder( + com.google.cloud.memcache.v1.Instance.Node.getDefaultInstance()); } /** - * - * *
      * Output only. List of Memcached nodes.
      * Refer to [Node] message for more details.
      * 
* - * - * repeated .google.cloud.memcache.v1.Instance.Node memcache_nodes = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.memcache.v1.Instance.Node memcache_nodes = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - public com.google.cloud.memcache.v1.Instance.Node.Builder addMemcacheNodesBuilder(int index) { - return getMemcacheNodesFieldBuilder() - .addBuilder(index, com.google.cloud.memcache.v1.Instance.Node.getDefaultInstance()); + public com.google.cloud.memcache.v1.Instance.Node.Builder addMemcacheNodesBuilder( + int index) { + return getMemcacheNodesFieldBuilder().addBuilder( + index, com.google.cloud.memcache.v1.Instance.Node.getDefaultInstance()); } /** - * - * *
      * Output only. List of Memcached nodes.
      * Refer to [Node] message for more details.
      * 
* - * - * repeated .google.cloud.memcache.v1.Instance.Node memcache_nodes = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.memcache.v1.Instance.Node memcache_nodes = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - public java.util.List - getMemcacheNodesBuilderList() { + public java.util.List + getMemcacheNodesBuilderList() { return getMemcacheNodesFieldBuilder().getBuilderList(); } - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.memcache.v1.Instance.Node, - com.google.cloud.memcache.v1.Instance.Node.Builder, - com.google.cloud.memcache.v1.Instance.NodeOrBuilder> + com.google.cloud.memcache.v1.Instance.Node, com.google.cloud.memcache.v1.Instance.Node.Builder, com.google.cloud.memcache.v1.Instance.NodeOrBuilder> getMemcacheNodesFieldBuilder() { if (memcacheNodesBuilder_ == null) { - memcacheNodesBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.memcache.v1.Instance.Node, - com.google.cloud.memcache.v1.Instance.Node.Builder, - com.google.cloud.memcache.v1.Instance.NodeOrBuilder>( + memcacheNodesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.memcache.v1.Instance.Node, com.google.cloud.memcache.v1.Instance.Node.Builder, com.google.cloud.memcache.v1.Instance.NodeOrBuilder>( memcacheNodes_, ((bitField0_ & 0x00000004) != 0), getParentForChildren(), @@ -7318,58 +6571,39 @@ public com.google.cloud.memcache.v1.Instance.Node.Builder addMemcacheNodesBuilde 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) { @@ -7385,17 +6619,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(); @@ -7406,21 +6637,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; } @@ -7432,15 +6659,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) { @@ -7454,64 +6677,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_; @@ -7519,58 +6726,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 the instance was updated.
      * 
* - * - * .google.protobuf.Timestamp update_time = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp update_time = 14 [(.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 the instance was updated.
      * 
* - * - * .google.protobuf.Timestamp update_time = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp update_time = 14 [(.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 the instance was updated.
      * 
* - * - * .google.protobuf.Timestamp update_time = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp update_time = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder setUpdateTime(com.google.protobuf.Timestamp value) { if (updateTimeBuilder_ == null) { @@ -7586,17 +6774,14 @@ public Builder setUpdateTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * Output only. The time the instance was updated.
      * 
* - * - * .google.protobuf.Timestamp update_time = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp update_time = 14 [(.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(); @@ -7607,21 +6792,17 @@ public Builder setUpdateTime(com.google.protobuf.Timestamp.Builder builderForVal return this; } /** - * - * *
      * Output only. The time the instance was updated.
      * 
* - * - * .google.protobuf.Timestamp update_time = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp update_time = 14 [(.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; } @@ -7633,15 +6814,11 @@ public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * Output only. The time the instance was updated.
      * 
* - * - * .google.protobuf.Timestamp update_time = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp update_time = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder clearUpdateTime() { if (updateTimeBuilder_ == null) { @@ -7655,64 +6832,48 @@ public Builder clearUpdateTime() { return this; } /** - * - * *
      * Output only. The time the instance was updated.
      * 
* - * - * .google.protobuf.Timestamp update_time = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp update_time = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.protobuf.Timestamp.Builder getUpdateTimeBuilder() { - + onChanged(); return getUpdateTimeFieldBuilder().getBuilder(); } /** - * - * *
      * Output only. The time the instance was updated.
      * 
* - * - * .google.protobuf.Timestamp update_time = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp update_time = 14 [(.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 the instance was updated.
      * 
* - * - * .google.protobuf.Timestamp update_time = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp update_time = 14 [(.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_; @@ -7720,73 +6881,51 @@ public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { private int state_ = 0; /** - * - * *
      * Output only. The state of this Memcached instance.
      * 
* - * - * .google.cloud.memcache.v1.Instance.State state = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.memcache.v1.Instance.State state = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The enum numeric value on the wire for state. */ - @java.lang.Override - public int getStateValue() { + @java.lang.Override public int getStateValue() { return state_; } /** - * - * *
      * Output only. The state of this Memcached instance.
      * 
* - * - * .google.cloud.memcache.v1.Instance.State state = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.memcache.v1.Instance.State state = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @param value The enum numeric value on the wire for state to set. * @return This builder for chaining. */ public Builder setStateValue(int value) { - + state_ = value; onChanged(); return this; } /** - * - * *
      * Output only. The state of this Memcached instance.
      * 
* - * - * .google.cloud.memcache.v1.Instance.State state = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.memcache.v1.Instance.State state = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The state. */ @java.lang.Override public com.google.cloud.memcache.v1.Instance.State getState() { @SuppressWarnings("deprecation") - com.google.cloud.memcache.v1.Instance.State result = - com.google.cloud.memcache.v1.Instance.State.valueOf(state_); + com.google.cloud.memcache.v1.Instance.State result = com.google.cloud.memcache.v1.Instance.State.valueOf(state_); return result == null ? com.google.cloud.memcache.v1.Instance.State.UNRECOGNIZED : result; } /** - * - * *
      * Output only. The state of this Memcached instance.
      * 
* - * - * .google.cloud.memcache.v1.Instance.State state = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.memcache.v1.Instance.State state = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @param value The state to set. * @return This builder for chaining. */ @@ -7794,26 +6933,21 @@ public Builder setState(com.google.cloud.memcache.v1.Instance.State value) { if (value == null) { throw new NullPointerException(); } - + state_ = value.getNumber(); onChanged(); return this; } /** - * - * *
      * Output only. The state of this Memcached instance.
      * 
* - * - * .google.cloud.memcache.v1.Instance.State state = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.memcache.v1.Instance.State state = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return This builder for chaining. */ public Builder clearState() { - + state_ = 0; onChanged(); return this; @@ -7821,8 +6955,6 @@ public Builder clearState() { private java.lang.Object memcacheFullVersion_ = ""; /** - * - * *
      * Output only. The full version of memcached server running on this instance.
      * System automatically determines the full memcached version for an instance
@@ -7831,13 +6963,13 @@ public Builder clearState() {
      * 
* * string memcache_full_version = 18 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The memcacheFullVersion. */ public java.lang.String getMemcacheFullVersion() { java.lang.Object ref = memcacheFullVersion_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); memcacheFullVersion_ = s; return s; @@ -7846,8 +6978,6 @@ public java.lang.String getMemcacheFullVersion() { } } /** - * - * *
      * Output only. The full version of memcached server running on this instance.
      * System automatically determines the full memcached version for an instance
@@ -7856,14 +6986,15 @@ public java.lang.String getMemcacheFullVersion() {
      * 
* * string memcache_full_version = 18 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for memcacheFullVersion. */ - public com.google.protobuf.ByteString getMemcacheFullVersionBytes() { + public com.google.protobuf.ByteString + getMemcacheFullVersionBytes() { java.lang.Object ref = memcacheFullVersion_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); memcacheFullVersion_ = b; return b; } else { @@ -7871,8 +7002,6 @@ public com.google.protobuf.ByteString getMemcacheFullVersionBytes() { } } /** - * - * *
      * Output only. The full version of memcached server running on this instance.
      * System automatically determines the full memcached version for an instance
@@ -7881,22 +7010,20 @@ public com.google.protobuf.ByteString getMemcacheFullVersionBytes() {
      * 
* * string memcache_full_version = 18 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @param value The memcacheFullVersion to set. * @return This builder for chaining. */ - public Builder setMemcacheFullVersion(java.lang.String value) { + public Builder setMemcacheFullVersion( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + memcacheFullVersion_ = value; onChanged(); return this; } /** - * - * *
      * Output only. The full version of memcached server running on this instance.
      * System automatically determines the full memcached version for an instance
@@ -7905,18 +7032,15 @@ public Builder setMemcacheFullVersion(java.lang.String value) {
      * 
* * string memcache_full_version = 18 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return This builder for chaining. */ public Builder clearMemcacheFullVersion() { - + memcacheFullVersion_ = getDefaultInstance().getMemcacheFullVersion(); onChanged(); return this; } /** - * - * *
      * Output only. The full version of memcached server running on this instance.
      * System automatically determines the full memcached version for an instance
@@ -7925,51 +7049,41 @@ public Builder clearMemcacheFullVersion() {
      * 
* * string memcache_full_version = 18 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @param value The bytes for memcacheFullVersion to set. * @return This builder for chaining. */ - public Builder setMemcacheFullVersionBytes(com.google.protobuf.ByteString value) { + public Builder setMemcacheFullVersionBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + memcacheFullVersion_ = value; onChanged(); return this; } - private java.util.List - instanceMessages_ = java.util.Collections.emptyList(); - + private java.util.List instanceMessages_ = + java.util.Collections.emptyList(); private void ensureInstanceMessagesIsMutable() { if (!((bitField0_ & 0x00000008) != 0)) { - instanceMessages_ = - new java.util.ArrayList( - instanceMessages_); + instanceMessages_ = new java.util.ArrayList(instanceMessages_); bitField0_ |= 0x00000008; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.memcache.v1.Instance.InstanceMessage, - com.google.cloud.memcache.v1.Instance.InstanceMessage.Builder, - com.google.cloud.memcache.v1.Instance.InstanceMessageOrBuilder> - instanceMessagesBuilder_; + com.google.cloud.memcache.v1.Instance.InstanceMessage, com.google.cloud.memcache.v1.Instance.InstanceMessage.Builder, com.google.cloud.memcache.v1.Instance.InstanceMessageOrBuilder> instanceMessagesBuilder_; /** - * - * *
      * List of messages that describe current statuses of memcached instance.
      * 
* - * repeated .google.cloud.memcache.v1.Instance.InstanceMessage instance_messages = 19; - * + * repeated .google.cloud.memcache.v1.Instance.InstanceMessage instance_messages = 19; */ - public java.util.List - getInstanceMessagesList() { + public java.util.List getInstanceMessagesList() { if (instanceMessagesBuilder_ == null) { return java.util.Collections.unmodifiableList(instanceMessages_); } else { @@ -7977,14 +7091,11 @@ private void ensureInstanceMessagesIsMutable() { } } /** - * - * *
      * List of messages that describe current statuses of memcached instance.
      * 
* - * repeated .google.cloud.memcache.v1.Instance.InstanceMessage instance_messages = 19; - * + * repeated .google.cloud.memcache.v1.Instance.InstanceMessage instance_messages = 19; */ public int getInstanceMessagesCount() { if (instanceMessagesBuilder_ == null) { @@ -7994,14 +7105,11 @@ public int getInstanceMessagesCount() { } } /** - * - * *
      * List of messages that describe current statuses of memcached instance.
      * 
* - * repeated .google.cloud.memcache.v1.Instance.InstanceMessage instance_messages = 19; - * + * repeated .google.cloud.memcache.v1.Instance.InstanceMessage instance_messages = 19; */ public com.google.cloud.memcache.v1.Instance.InstanceMessage getInstanceMessages(int index) { if (instanceMessagesBuilder_ == null) { @@ -8011,14 +7119,11 @@ public com.google.cloud.memcache.v1.Instance.InstanceMessage getInstanceMessages } } /** - * - * *
      * List of messages that describe current statuses of memcached instance.
      * 
* - * repeated .google.cloud.memcache.v1.Instance.InstanceMessage instance_messages = 19; - * + * repeated .google.cloud.memcache.v1.Instance.InstanceMessage instance_messages = 19; */ public Builder setInstanceMessages( int index, com.google.cloud.memcache.v1.Instance.InstanceMessage value) { @@ -8035,14 +7140,11 @@ public Builder setInstanceMessages( return this; } /** - * - * *
      * List of messages that describe current statuses of memcached instance.
      * 
* - * repeated .google.cloud.memcache.v1.Instance.InstanceMessage instance_messages = 19; - * + * repeated .google.cloud.memcache.v1.Instance.InstanceMessage instance_messages = 19; */ public Builder setInstanceMessages( int index, com.google.cloud.memcache.v1.Instance.InstanceMessage.Builder builderForValue) { @@ -8056,17 +7158,13 @@ public Builder setInstanceMessages( return this; } /** - * - * *
      * List of messages that describe current statuses of memcached instance.
      * 
* - * repeated .google.cloud.memcache.v1.Instance.InstanceMessage instance_messages = 19; - * + * repeated .google.cloud.memcache.v1.Instance.InstanceMessage instance_messages = 19; */ - public Builder addInstanceMessages( - com.google.cloud.memcache.v1.Instance.InstanceMessage value) { + public Builder addInstanceMessages(com.google.cloud.memcache.v1.Instance.InstanceMessage value) { if (instanceMessagesBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -8080,14 +7178,11 @@ public Builder addInstanceMessages( return this; } /** - * - * *
      * List of messages that describe current statuses of memcached instance.
      * 
* - * repeated .google.cloud.memcache.v1.Instance.InstanceMessage instance_messages = 19; - * + * repeated .google.cloud.memcache.v1.Instance.InstanceMessage instance_messages = 19; */ public Builder addInstanceMessages( int index, com.google.cloud.memcache.v1.Instance.InstanceMessage value) { @@ -8104,14 +7199,11 @@ public Builder addInstanceMessages( return this; } /** - * - * *
      * List of messages that describe current statuses of memcached instance.
      * 
* - * repeated .google.cloud.memcache.v1.Instance.InstanceMessage instance_messages = 19; - * + * repeated .google.cloud.memcache.v1.Instance.InstanceMessage instance_messages = 19; */ public Builder addInstanceMessages( com.google.cloud.memcache.v1.Instance.InstanceMessage.Builder builderForValue) { @@ -8125,14 +7217,11 @@ public Builder addInstanceMessages( return this; } /** - * - * *
      * List of messages that describe current statuses of memcached instance.
      * 
* - * repeated .google.cloud.memcache.v1.Instance.InstanceMessage instance_messages = 19; - * + * repeated .google.cloud.memcache.v1.Instance.InstanceMessage instance_messages = 19; */ public Builder addInstanceMessages( int index, com.google.cloud.memcache.v1.Instance.InstanceMessage.Builder builderForValue) { @@ -8146,21 +7235,18 @@ public Builder addInstanceMessages( return this; } /** - * - * *
      * List of messages that describe current statuses of memcached instance.
      * 
* - * repeated .google.cloud.memcache.v1.Instance.InstanceMessage instance_messages = 19; - * + * repeated .google.cloud.memcache.v1.Instance.InstanceMessage instance_messages = 19; */ public Builder addAllInstanceMessages( - java.lang.Iterable - values) { + java.lang.Iterable values) { if (instanceMessagesBuilder_ == null) { ensureInstanceMessagesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, instanceMessages_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, instanceMessages_); onChanged(); } else { instanceMessagesBuilder_.addAllMessages(values); @@ -8168,14 +7254,11 @@ public Builder addAllInstanceMessages( return this; } /** - * - * *
      * List of messages that describe current statuses of memcached instance.
      * 
* - * repeated .google.cloud.memcache.v1.Instance.InstanceMessage instance_messages = 19; - * + * repeated .google.cloud.memcache.v1.Instance.InstanceMessage instance_messages = 19; */ public Builder clearInstanceMessages() { if (instanceMessagesBuilder_ == null) { @@ -8188,14 +7271,11 @@ public Builder clearInstanceMessages() { return this; } /** - * - * *
      * List of messages that describe current statuses of memcached instance.
      * 
* - * repeated .google.cloud.memcache.v1.Instance.InstanceMessage instance_messages = 19; - * + * repeated .google.cloud.memcache.v1.Instance.InstanceMessage instance_messages = 19; */ public Builder removeInstanceMessages(int index) { if (instanceMessagesBuilder_ == null) { @@ -8208,49 +7288,39 @@ public Builder removeInstanceMessages(int index) { return this; } /** - * - * *
      * List of messages that describe current statuses of memcached instance.
      * 
* - * repeated .google.cloud.memcache.v1.Instance.InstanceMessage instance_messages = 19; - * + * repeated .google.cloud.memcache.v1.Instance.InstanceMessage instance_messages = 19; */ public com.google.cloud.memcache.v1.Instance.InstanceMessage.Builder getInstanceMessagesBuilder( int index) { return getInstanceMessagesFieldBuilder().getBuilder(index); } /** - * - * *
      * List of messages that describe current statuses of memcached instance.
      * 
* - * repeated .google.cloud.memcache.v1.Instance.InstanceMessage instance_messages = 19; - * + * repeated .google.cloud.memcache.v1.Instance.InstanceMessage instance_messages = 19; */ - public com.google.cloud.memcache.v1.Instance.InstanceMessageOrBuilder - getInstanceMessagesOrBuilder(int index) { + public com.google.cloud.memcache.v1.Instance.InstanceMessageOrBuilder getInstanceMessagesOrBuilder( + int index) { if (instanceMessagesBuilder_ == null) { - return instanceMessages_.get(index); - } else { + return instanceMessages_.get(index); } else { return instanceMessagesBuilder_.getMessageOrBuilder(index); } } /** - * - * *
      * List of messages that describe current statuses of memcached instance.
      * 
* - * repeated .google.cloud.memcache.v1.Instance.InstanceMessage instance_messages = 19; - * + * repeated .google.cloud.memcache.v1.Instance.InstanceMessage instance_messages = 19; */ - public java.util.List - getInstanceMessagesOrBuilderList() { + public java.util.List + getInstanceMessagesOrBuilderList() { if (instanceMessagesBuilder_ != null) { return instanceMessagesBuilder_.getMessageOrBuilderList(); } else { @@ -8258,62 +7328,45 @@ public com.google.cloud.memcache.v1.Instance.InstanceMessage.Builder getInstance } } /** - * - * *
      * List of messages that describe current statuses of memcached instance.
      * 
* - * repeated .google.cloud.memcache.v1.Instance.InstanceMessage instance_messages = 19; - * + * repeated .google.cloud.memcache.v1.Instance.InstanceMessage instance_messages = 19; */ - public com.google.cloud.memcache.v1.Instance.InstanceMessage.Builder - addInstanceMessagesBuilder() { - return getInstanceMessagesFieldBuilder() - .addBuilder(com.google.cloud.memcache.v1.Instance.InstanceMessage.getDefaultInstance()); + public com.google.cloud.memcache.v1.Instance.InstanceMessage.Builder addInstanceMessagesBuilder() { + return getInstanceMessagesFieldBuilder().addBuilder( + com.google.cloud.memcache.v1.Instance.InstanceMessage.getDefaultInstance()); } /** - * - * *
      * List of messages that describe current statuses of memcached instance.
      * 
* - * repeated .google.cloud.memcache.v1.Instance.InstanceMessage instance_messages = 19; - * + * repeated .google.cloud.memcache.v1.Instance.InstanceMessage instance_messages = 19; */ public com.google.cloud.memcache.v1.Instance.InstanceMessage.Builder addInstanceMessagesBuilder( int index) { - return getInstanceMessagesFieldBuilder() - .addBuilder( - index, com.google.cloud.memcache.v1.Instance.InstanceMessage.getDefaultInstance()); + return getInstanceMessagesFieldBuilder().addBuilder( + index, com.google.cloud.memcache.v1.Instance.InstanceMessage.getDefaultInstance()); } /** - * - * *
      * List of messages that describe current statuses of memcached instance.
      * 
* - * repeated .google.cloud.memcache.v1.Instance.InstanceMessage instance_messages = 19; - * + * repeated .google.cloud.memcache.v1.Instance.InstanceMessage instance_messages = 19; */ - public java.util.List - getInstanceMessagesBuilderList() { + public java.util.List + getInstanceMessagesBuilderList() { return getInstanceMessagesFieldBuilder().getBuilderList(); } - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.memcache.v1.Instance.InstanceMessage, - com.google.cloud.memcache.v1.Instance.InstanceMessage.Builder, - com.google.cloud.memcache.v1.Instance.InstanceMessageOrBuilder> + com.google.cloud.memcache.v1.Instance.InstanceMessage, com.google.cloud.memcache.v1.Instance.InstanceMessage.Builder, com.google.cloud.memcache.v1.Instance.InstanceMessageOrBuilder> getInstanceMessagesFieldBuilder() { if (instanceMessagesBuilder_ == null) { - instanceMessagesBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.memcache.v1.Instance.InstanceMessage, - com.google.cloud.memcache.v1.Instance.InstanceMessage.Builder, - com.google.cloud.memcache.v1.Instance.InstanceMessageOrBuilder>( + instanceMessagesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.memcache.v1.Instance.InstanceMessage, com.google.cloud.memcache.v1.Instance.InstanceMessage.Builder, com.google.cloud.memcache.v1.Instance.InstanceMessageOrBuilder>( instanceMessages_, ((bitField0_ & 0x00000008) != 0), getParentForChildren(), @@ -8325,20 +7378,18 @@ public com.google.cloud.memcache.v1.Instance.InstanceMessage.Builder addInstance private java.lang.Object discoveryEndpoint_ = ""; /** - * - * *
      * Output only. Endpoint for Discovery API
      * 
* * string discovery_endpoint = 20 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The discoveryEndpoint. */ public java.lang.String getDiscoveryEndpoint() { java.lang.Object ref = discoveryEndpoint_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); discoveryEndpoint_ = s; return s; @@ -8347,21 +7398,20 @@ public java.lang.String getDiscoveryEndpoint() { } } /** - * - * *
      * Output only. Endpoint for Discovery API
      * 
* * string discovery_endpoint = 20 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for discoveryEndpoint. */ - public com.google.protobuf.ByteString getDiscoveryEndpointBytes() { + public com.google.protobuf.ByteString + getDiscoveryEndpointBytes() { java.lang.Object ref = discoveryEndpoint_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); discoveryEndpoint_ = b; return b; } else { @@ -8369,68 +7419,61 @@ public com.google.protobuf.ByteString getDiscoveryEndpointBytes() { } } /** - * - * *
      * Output only. Endpoint for Discovery API
      * 
* * string discovery_endpoint = 20 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @param value The discoveryEndpoint to set. * @return This builder for chaining. */ - public Builder setDiscoveryEndpoint(java.lang.String value) { + public Builder setDiscoveryEndpoint( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + discoveryEndpoint_ = value; onChanged(); return this; } /** - * - * *
      * Output only. Endpoint for Discovery API
      * 
* * string discovery_endpoint = 20 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return This builder for chaining. */ public Builder clearDiscoveryEndpoint() { - + discoveryEndpoint_ = getDefaultInstance().getDiscoveryEndpoint(); onChanged(); return this; } /** - * - * *
      * Output only. Endpoint for Discovery API
      * 
* * string discovery_endpoint = 20 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @param value The bytes for discoveryEndpoint to set. * @return This builder for chaining. */ - public Builder setDiscoveryEndpointBytes(com.google.protobuf.ByteString value) { + public Builder setDiscoveryEndpointBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + discoveryEndpoint_ = value; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -8440,12 +7483,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.memcache.v1.Instance) } // @@protoc_insertion_point(class_scope:google.cloud.memcache.v1.Instance) private static final com.google.cloud.memcache.v1.Instance DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.memcache.v1.Instance(); } @@ -8454,16 +7497,16 @@ public static com.google.cloud.memcache.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; @@ -8478,4 +7521,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.memcache.v1.Instance getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-memcache-v1/src/main/java/com/google/cloud/memcache/v1/InstanceName.java b/owl-bot-staging/v1/proto-google-cloud-memcache-v1/src/main/java/com/google/cloud/memcache/v1/InstanceName.java similarity index 100% rename from proto-google-cloud-memcache-v1/src/main/java/com/google/cloud/memcache/v1/InstanceName.java rename to owl-bot-staging/v1/proto-google-cloud-memcache-v1/src/main/java/com/google/cloud/memcache/v1/InstanceName.java diff --git a/proto-google-cloud-memcache-v1/src/main/java/com/google/cloud/memcache/v1/InstanceOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-memcache-v1/src/main/java/com/google/cloud/memcache/v1/InstanceOrBuilder.java similarity index 77% rename from proto-google-cloud-memcache-v1/src/main/java/com/google/cloud/memcache/v1/InstanceOrBuilder.java rename to owl-bot-staging/v1/proto-google-cloud-memcache-v1/src/main/java/com/google/cloud/memcache/v1/InstanceOrBuilder.java index 928feb0a..41dae566 100644 --- a/proto-google-cloud-memcache-v1/src/main/java/com/google/cloud/memcache/v1/InstanceOrBuilder.java +++ b/owl-bot-staging/v1/proto-google-cloud-memcache-v1/src/main/java/com/google/cloud/memcache/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/memcache/v1/cloud_memcache.proto package com.google.cloud.memcache.v1; -public interface InstanceOrBuilder - extends +public interface InstanceOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.memcache.v1.Instance) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Required. Unique name of the resource in this scope including project and
    * location using the form:
@@ -37,13 +19,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:
@@ -55,41 +34,34 @@ 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(); /** - * - * *
    * User provided name for the instance only used for display
    * purposes. Cannot be more than 80 characters.
    * 
* * string display_name = 2; - * * @return The displayName. */ java.lang.String getDisplayName(); /** - * - * *
    * User provided name for the instance only used for display
    * purposes. Cannot be more than 80 characters.
    * 
* * 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.
    * Refer to cloud documentation on labels for more details.
@@ -100,8 +72,6 @@ public interface InstanceOrBuilder
    */
   int getLabelsCount();
   /**
-   *
-   *
    * 
    * Resource labels to represent user-provided metadata.
    * Refer to cloud documentation on labels for more details.
@@ -110,13 +80,15 @@ public interface InstanceOrBuilder
    *
    * 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.
    * Refer to cloud documentation on labels for more details.
@@ -125,10 +97,9 @@ public interface InstanceOrBuilder
    *
    * map<string, string> labels = 3;
    */
-  java.util.Map getLabelsMap();
+  java.util.Map
+  getLabelsMap();
   /**
-   *
-   *
    * 
    * Resource labels to represent user-provided metadata.
    * Refer to cloud documentation on labels for more details.
@@ -139,13 +110,11 @@ 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.
    * Refer to cloud documentation on labels for more details.
@@ -154,11 +123,11 @@ java.lang.String getLabelsOrDefault(
    *
    * map<string, string> labels = 3;
    */
-  java.lang.String getLabelsOrThrow(java.lang.String key);
+
+  java.lang.String getLabelsOrThrow(
+      java.lang.String key);
 
   /**
-   *
-   *
    * 
    * The full name of the Google Compute Engine
    * [network](/compute/docs/networks-and-firewalls#networks) to which the
@@ -167,13 +136,10 @@ java.lang.String getLabelsOrDefault(
    * 
* * string authorized_network = 4; - * * @return The authorizedNetwork. */ java.lang.String getAuthorizedNetwork(); /** - * - * *
    * The full name of the Google Compute Engine
    * [network](/compute/docs/networks-and-firewalls#networks) to which the
@@ -182,14 +148,12 @@ java.lang.String getLabelsOrDefault(
    * 
* * string authorized_network = 4; - * * @return The bytes for authorizedNetwork. */ - com.google.protobuf.ByteString getAuthorizedNetworkBytes(); + com.google.protobuf.ByteString + getAuthorizedNetworkBytes(); /** - * - * *
    * Zones where Memcached nodes should be provisioned in.
    * Memcached nodes will be equally distributed across these zones. If not
@@ -198,13 +162,11 @@ java.lang.String getLabelsOrDefault(
    * 
* * repeated string zones = 5; - * * @return A list containing the zones. */ - java.util.List getZonesList(); + java.util.List + getZonesList(); /** - * - * *
    * Zones where Memcached nodes should be provisioned in.
    * Memcached nodes will be equally distributed across these zones. If not
@@ -213,13 +175,10 @@ java.lang.String getLabelsOrDefault(
    * 
* * repeated string zones = 5; - * * @return The count of zones. */ int getZonesCount(); /** - * - * *
    * Zones where Memcached nodes should be provisioned in.
    * Memcached nodes will be equally distributed across these zones. If not
@@ -228,14 +187,11 @@ java.lang.String getLabelsOrDefault(
    * 
* * repeated string zones = 5; - * * @param index The index of the element to return. * @return The zones at the given index. */ java.lang.String getZones(int index); /** - * - * *
    * Zones where Memcached nodes should be provisioned in.
    * Memcached nodes will be equally distributed across these zones. If not
@@ -244,69 +200,50 @@ java.lang.String getLabelsOrDefault(
    * 
* * repeated string zones = 5; - * * @param index The index of the value to return. * @return The bytes of the zones at the given index. */ - com.google.protobuf.ByteString getZonesBytes(int index); + com.google.protobuf.ByteString + getZonesBytes(int index); /** - * - * *
    * Required. Number of nodes in the Memcached instance.
    * 
* * int32 node_count = 6 [(.google.api.field_behavior) = REQUIRED]; - * * @return The nodeCount. */ int getNodeCount(); /** - * - * *
    * Required. Configuration for Memcached nodes.
    * 
* - * - * .google.cloud.memcache.v1.Instance.NodeConfig node_config = 7 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.memcache.v1.Instance.NodeConfig node_config = 7 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the nodeConfig field is set. */ boolean hasNodeConfig(); /** - * - * *
    * Required. Configuration for Memcached nodes.
    * 
* - * - * .google.cloud.memcache.v1.Instance.NodeConfig node_config = 7 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.memcache.v1.Instance.NodeConfig node_config = 7 [(.google.api.field_behavior) = REQUIRED]; * @return The nodeConfig. */ com.google.cloud.memcache.v1.Instance.NodeConfig getNodeConfig(); /** - * - * *
    * Required. Configuration for Memcached nodes.
    * 
* - * - * .google.cloud.memcache.v1.Instance.NodeConfig node_config = 7 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.memcache.v1.Instance.NodeConfig node_config = 7 [(.google.api.field_behavior) = REQUIRED]; */ com.google.cloud.memcache.v1.Instance.NodeConfigOrBuilder getNodeConfigOrBuilder(); /** - * - * *
    * The major version of Memcached software.
    * If not provided, latest supported version will be used. Currently the
@@ -316,13 +253,10 @@ java.lang.String getLabelsOrDefault(
    * 
* * .google.cloud.memcache.v1.MemcacheVersion memcache_version = 9; - * * @return The enum numeric value on the wire for memcacheVersion. */ int getMemcacheVersionValue(); /** - * - * *
    * The major version of Memcached software.
    * If not provided, latest supported version will be used. Currently the
@@ -332,40 +266,31 @@ java.lang.String getLabelsOrDefault(
    * 
* * .google.cloud.memcache.v1.MemcacheVersion memcache_version = 9; - * * @return The memcacheVersion. */ com.google.cloud.memcache.v1.MemcacheVersion getMemcacheVersion(); /** - * - * *
    * Optional: User defined parameters to apply to the memcached process
    * on each node.
    * 
* * .google.cloud.memcache.v1.MemcacheParameters parameters = 11; - * * @return Whether the parameters field is set. */ boolean hasParameters(); /** - * - * *
    * Optional: User defined parameters to apply to the memcached process
    * on each node.
    * 
* * .google.cloud.memcache.v1.MemcacheParameters parameters = 11; - * * @return The parameters. */ com.google.cloud.memcache.v1.MemcacheParameters getParameters(); /** - * - * *
    * Optional: User defined parameters to apply to the memcached process
    * on each node.
@@ -376,180 +301,128 @@ java.lang.String getLabelsOrDefault(
   com.google.cloud.memcache.v1.MemcacheParametersOrBuilder getParametersOrBuilder();
 
   /**
-   *
-   *
    * 
    * Output only. List of Memcached nodes.
    * Refer to [Node] message for more details.
    * 
* - * - * repeated .google.cloud.memcache.v1.Instance.Node memcache_nodes = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.memcache.v1.Instance.Node memcache_nodes = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - java.util.List getMemcacheNodesList(); + java.util.List + getMemcacheNodesList(); /** - * - * *
    * Output only. List of Memcached nodes.
    * Refer to [Node] message for more details.
    * 
* - * - * repeated .google.cloud.memcache.v1.Instance.Node memcache_nodes = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.memcache.v1.Instance.Node memcache_nodes = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ com.google.cloud.memcache.v1.Instance.Node getMemcacheNodes(int index); /** - * - * *
    * Output only. List of Memcached nodes.
    * Refer to [Node] message for more details.
    * 
* - * - * repeated .google.cloud.memcache.v1.Instance.Node memcache_nodes = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.memcache.v1.Instance.Node memcache_nodes = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ int getMemcacheNodesCount(); /** - * - * *
    * Output only. List of Memcached nodes.
    * Refer to [Node] message for more details.
    * 
* - * - * repeated .google.cloud.memcache.v1.Instance.Node memcache_nodes = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.memcache.v1.Instance.Node memcache_nodes = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - java.util.List + java.util.List getMemcacheNodesOrBuilderList(); /** - * - * *
    * Output only. List of Memcached nodes.
    * Refer to [Node] message for more details.
    * 
* - * - * repeated .google.cloud.memcache.v1.Instance.Node memcache_nodes = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.memcache.v1.Instance.Node memcache_nodes = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - com.google.cloud.memcache.v1.Instance.NodeOrBuilder getMemcacheNodesOrBuilder(int index); + com.google.cloud.memcache.v1.Instance.NodeOrBuilder getMemcacheNodesOrBuilder( + int index); /** - * - * *
    * 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 time the instance was updated.
    * 
* - * .google.protobuf.Timestamp update_time = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp update_time = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the updateTime field is set. */ boolean hasUpdateTime(); /** - * - * *
    * Output only. The time the instance was updated.
    * 
* - * .google.protobuf.Timestamp update_time = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp update_time = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The updateTime. */ com.google.protobuf.Timestamp getUpdateTime(); /** - * - * *
    * Output only. The time the instance was updated.
    * 
* - * .google.protobuf.Timestamp update_time = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp update_time = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder(); /** - * - * *
    * Output only. The state of this Memcached instance.
    * 
* - * - * .google.cloud.memcache.v1.Instance.State state = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.memcache.v1.Instance.State state = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The enum numeric value on the wire for state. */ int getStateValue(); /** - * - * *
    * Output only. The state of this Memcached instance.
    * 
* - * - * .google.cloud.memcache.v1.Instance.State state = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.memcache.v1.Instance.State state = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The state. */ com.google.cloud.memcache.v1.Instance.State getState(); /** - * - * *
    * Output only. The full version of memcached server running on this instance.
    * System automatically determines the full memcached version for an instance
@@ -558,13 +431,10 @@ java.lang.String getLabelsOrDefault(
    * 
* * string memcache_full_version = 18 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The memcacheFullVersion. */ java.lang.String getMemcacheFullVersion(); /** - * - * *
    * Output only. The full version of memcached server running on this instance.
    * System automatically determines the full memcached version for an instance
@@ -573,91 +443,72 @@ java.lang.String getLabelsOrDefault(
    * 
* * string memcache_full_version = 18 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for memcacheFullVersion. */ - com.google.protobuf.ByteString getMemcacheFullVersionBytes(); + com.google.protobuf.ByteString + getMemcacheFullVersionBytes(); /** - * - * *
    * List of messages that describe current statuses of memcached instance.
    * 
* - * repeated .google.cloud.memcache.v1.Instance.InstanceMessage instance_messages = 19; - * + * repeated .google.cloud.memcache.v1.Instance.InstanceMessage instance_messages = 19; */ - java.util.List getInstanceMessagesList(); + java.util.List + getInstanceMessagesList(); /** - * - * *
    * List of messages that describe current statuses of memcached instance.
    * 
* - * repeated .google.cloud.memcache.v1.Instance.InstanceMessage instance_messages = 19; - * + * repeated .google.cloud.memcache.v1.Instance.InstanceMessage instance_messages = 19; */ com.google.cloud.memcache.v1.Instance.InstanceMessage getInstanceMessages(int index); /** - * - * *
    * List of messages that describe current statuses of memcached instance.
    * 
* - * repeated .google.cloud.memcache.v1.Instance.InstanceMessage instance_messages = 19; - * + * repeated .google.cloud.memcache.v1.Instance.InstanceMessage instance_messages = 19; */ int getInstanceMessagesCount(); /** - * - * *
    * List of messages that describe current statuses of memcached instance.
    * 
* - * repeated .google.cloud.memcache.v1.Instance.InstanceMessage instance_messages = 19; - * + * repeated .google.cloud.memcache.v1.Instance.InstanceMessage instance_messages = 19; */ - java.util.List + java.util.List getInstanceMessagesOrBuilderList(); /** - * - * *
    * List of messages that describe current statuses of memcached instance.
    * 
* - * repeated .google.cloud.memcache.v1.Instance.InstanceMessage instance_messages = 19; - * + * repeated .google.cloud.memcache.v1.Instance.InstanceMessage instance_messages = 19; */ com.google.cloud.memcache.v1.Instance.InstanceMessageOrBuilder getInstanceMessagesOrBuilder( int index); /** - * - * *
    * Output only. Endpoint for Discovery API
    * 
* * string discovery_endpoint = 20 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The discoveryEndpoint. */ java.lang.String getDiscoveryEndpoint(); /** - * - * *
    * Output only. Endpoint for Discovery API
    * 
* * string discovery_endpoint = 20 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for discoveryEndpoint. */ - com.google.protobuf.ByteString getDiscoveryEndpointBytes(); + com.google.protobuf.ByteString + getDiscoveryEndpointBytes(); } diff --git a/proto-google-cloud-memcache-v1/src/main/java/com/google/cloud/memcache/v1/ListInstancesRequest.java b/owl-bot-staging/v1/proto-google-cloud-memcache-v1/src/main/java/com/google/cloud/memcache/v1/ListInstancesRequest.java similarity index 71% rename from proto-google-cloud-memcache-v1/src/main/java/com/google/cloud/memcache/v1/ListInstancesRequest.java rename to owl-bot-staging/v1/proto-google-cloud-memcache-v1/src/main/java/com/google/cloud/memcache/v1/ListInstancesRequest.java index 172a608b..b86942d9 100644 --- a/proto-google-cloud-memcache-v1/src/main/java/com/google/cloud/memcache/v1/ListInstancesRequest.java +++ b/owl-bot-staging/v1/proto-google-cloud-memcache-v1/src/main/java/com/google/cloud/memcache/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/memcache/v1/cloud_memcache.proto package com.google.cloud.memcache.v1; /** - * - * *
  * Request for [ListInstances][google.cloud.memcache.v1.CloudMemcache.ListInstances].
  * 
* * Protobuf type {@code google.cloud.memcache.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.memcache.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_ = ""; @@ -46,15 +28,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) @@ -73,46 +56,42 @@ 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; - } - case 34: - { - java.lang.String s = input.readStringRequireUtf8(); + pageSize_ = input.readInt32(); + break; + } + case 26: { + java.lang.String s = input.readStringRequireUtf8(); - filter_ = s; - break; - } - case 42: - { - java.lang.String s = input.readStringRequireUtf8(); + pageToken_ = s; + break; + } + case 34: { + java.lang.String s = input.readStringRequireUtf8(); - orderBy_ = s; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + filter_ = s; + break; + } + case 42: { + java.lang.String s = input.readStringRequireUtf8(); + + orderBy_ = s; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -120,43 +99,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.memcache.v1.CloudMemcacheProto - .internal_static_google_cloud_memcache_v1_ListInstancesRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.memcache.v1.CloudMemcacheProto.internal_static_google_cloud_memcache_v1_ListInstancesRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.memcache.v1.CloudMemcacheProto - .internal_static_google_cloud_memcache_v1_ListInstancesRequest_fieldAccessorTable + return com.google.cloud.memcache.v1.CloudMemcacheProto.internal_static_google_cloud_memcache_v1_ListInstancesRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.memcache.v1.ListInstancesRequest.class, - com.google.cloud.memcache.v1.ListInstancesRequest.Builder.class); + com.google.cloud.memcache.v1.ListInstancesRequest.class, com.google.cloud.memcache.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 @@ -165,33 +137,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 { @@ -202,8 +172,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.
@@ -214,7 +182,6 @@ public com.google.protobuf.ByteString getParentBytes() {
    * 
* * int32 page_size = 2; - * * @return The pageSize. */ @java.lang.Override @@ -225,15 +192,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 List request,
    * if any.
    * 
* * string page_token = 3; - * * @return The pageToken. */ @java.lang.Override @@ -242,30 +206,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 List 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 { @@ -276,15 +240,12 @@ public com.google.protobuf.ByteString getPageTokenBytes() { public static final int FILTER_FIELD_NUMBER = 4; private volatile java.lang.Object filter_; /** - * - * *
    * List filter. For example, exclude all Memcached instances with name as
    * my-instance by specifying "name != my-instance".
    * 
* * string filter = 4; - * * @return The filter. */ @java.lang.Override @@ -293,30 +254,30 @@ public java.lang.String getFilter() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); filter_ = s; return s; } } /** - * - * *
    * List filter. For example, exclude all Memcached instances with name as
    * my-instance by specifying "name != my-instance".
    * 
* * string filter = 4; - * * @return The bytes for filter. */ @java.lang.Override - public com.google.protobuf.ByteString getFilterBytes() { + public com.google.protobuf.ByteString + getFilterBytes() { java.lang.Object ref = filter_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); filter_ = b; return b; } else { @@ -327,14 +288,11 @@ public com.google.protobuf.ByteString getFilterBytes() { public static final int ORDER_BY_FIELD_NUMBER = 5; private volatile java.lang.Object orderBy_; /** - * - * *
    * Sort results. Supported values are "name", "name desc" or "" (unsorted).
    * 
* * string order_by = 5; - * * @return The orderBy. */ @java.lang.Override @@ -343,29 +301,29 @@ public java.lang.String getOrderBy() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); orderBy_ = s; return s; } } /** - * - * *
    * Sort results. Supported values are "name", "name desc" or "" (unsorted).
    * 
* * string order_by = 5; - * * @return The bytes for orderBy. */ @java.lang.Override - public com.google.protobuf.ByteString getOrderByBytes() { + public com.google.protobuf.ByteString + getOrderByBytes() { java.lang.Object ref = orderBy_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); orderBy_ = b; return b; } else { @@ -374,7 +332,6 @@ public com.google.protobuf.ByteString getOrderByBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -386,7 +343,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.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_); } @@ -415,7 +373,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_); @@ -434,19 +393,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.memcache.v1.ListInstancesRequest)) { return super.equals(obj); } - com.google.cloud.memcache.v1.ListInstancesRequest other = - (com.google.cloud.memcache.v1.ListInstancesRequest) obj; - - if (!getParent().equals(other.getParent())) return false; - if (getPageSize() != other.getPageSize()) return false; - if (!getPageToken().equals(other.getPageToken())) return false; - if (!getFilter().equals(other.getFilter())) return false; - if (!getOrderBy().equals(other.getOrderBy())) return false; + com.google.cloud.memcache.v1.ListInstancesRequest other = (com.google.cloud.memcache.v1.ListInstancesRequest) obj; + + if (!getParent() + .equals(other.getParent())) return false; + if (getPageSize() + != other.getPageSize()) return false; + if (!getPageToken() + .equals(other.getPageToken())) return false; + if (!getFilter() + .equals(other.getFilter())) return false; + if (!getOrderBy() + .equals(other.getOrderBy())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -474,126 +437,117 @@ public int hashCode() { } public static com.google.cloud.memcache.v1.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.memcache.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.memcache.v1.ListInstancesRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.memcache.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.memcache.v1.ListInstancesRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.memcache.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.memcache.v1.ListInstancesRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.memcache.v1.ListInstancesRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.memcache.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.memcache.v1.ListInstancesRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.memcache.v1.ListInstancesRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.memcache.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.memcache.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.memcache.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.memcache.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.memcache.v1.CloudMemcache.ListInstances].
    * 
* * Protobuf type {@code google.cloud.memcache.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.memcache.v1.ListInstancesRequest) com.google.cloud.memcache.v1.ListInstancesRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.memcache.v1.CloudMemcacheProto - .internal_static_google_cloud_memcache_v1_ListInstancesRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.memcache.v1.CloudMemcacheProto.internal_static_google_cloud_memcache_v1_ListInstancesRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.memcache.v1.CloudMemcacheProto - .internal_static_google_cloud_memcache_v1_ListInstancesRequest_fieldAccessorTable + return com.google.cloud.memcache.v1.CloudMemcacheProto.internal_static_google_cloud_memcache_v1_ListInstancesRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.memcache.v1.ListInstancesRequest.class, - com.google.cloud.memcache.v1.ListInstancesRequest.Builder.class); + com.google.cloud.memcache.v1.ListInstancesRequest.class, com.google.cloud.memcache.v1.ListInstancesRequest.Builder.class); } // Construct using com.google.cloud.memcache.v1.ListInstancesRequest.newBuilder() @@ -601,15 +555,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(); @@ -627,9 +582,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.memcache.v1.CloudMemcacheProto - .internal_static_google_cloud_memcache_v1_ListInstancesRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.memcache.v1.CloudMemcacheProto.internal_static_google_cloud_memcache_v1_ListInstancesRequest_descriptor; } @java.lang.Override @@ -648,8 +603,7 @@ public com.google.cloud.memcache.v1.ListInstancesRequest build() { @java.lang.Override public com.google.cloud.memcache.v1.ListInstancesRequest buildPartial() { - com.google.cloud.memcache.v1.ListInstancesRequest result = - new com.google.cloud.memcache.v1.ListInstancesRequest(this); + com.google.cloud.memcache.v1.ListInstancesRequest result = new com.google.cloud.memcache.v1.ListInstancesRequest(this); result.parent_ = parent_; result.pageSize_ = pageSize_; result.pageToken_ = pageToken_; @@ -663,39 +617,38 @@ public com.google.cloud.memcache.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.memcache.v1.ListInstancesRequest) { - return mergeFrom((com.google.cloud.memcache.v1.ListInstancesRequest) other); + return mergeFrom((com.google.cloud.memcache.v1.ListInstancesRequest)other); } else { super.mergeFrom(other); return this; @@ -703,8 +656,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.memcache.v1.ListInstancesRequest other) { - if (other == com.google.cloud.memcache.v1.ListInstancesRequest.getDefaultInstance()) - return this; + if (other == com.google.cloud.memcache.v1.ListInstancesRequest.getDefaultInstance()) return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; onChanged(); @@ -743,8 +695,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.memcache.v1.ListInstancesRequest) e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.memcache.v1.ListInstancesRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -756,24 +707,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; @@ -782,25 +729,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 { @@ -808,82 +752,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.
@@ -894,7 +823,6 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) {
      * 
* * int32 page_size = 2; - * * @return The pageSize. */ @java.lang.Override @@ -902,8 +830,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.
@@ -914,19 +840,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.
@@ -937,11 +860,10 @@ public Builder setPageSize(int value) {
      * 
* * int32 page_size = 2; - * * @return This builder for chaining. */ public Builder clearPageSize() { - + pageSize_ = 0; onChanged(); return this; @@ -949,21 +871,19 @@ public Builder clearPageSize() { private java.lang.Object pageToken_ = ""; /** - * - * *
      * The next_page_token value returned from a previous List 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; @@ -972,22 +892,21 @@ public java.lang.String getPageToken() { } } /** - * - * *
      * The next_page_token value returned from a previous List 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 { @@ -995,64 +914,57 @@ public com.google.protobuf.ByteString getPageTokenBytes() { } } /** - * - * *
      * The next_page_token value returned from a previous List 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 List 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 List 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; @@ -1060,21 +972,19 @@ public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { private java.lang.Object filter_ = ""; /** - * - * *
      * List filter. For example, exclude all Memcached instances with name as
      * my-instance by specifying "name != my-instance".
      * 
* * string filter = 4; - * * @return The filter. */ public java.lang.String getFilter() { java.lang.Object ref = filter_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); filter_ = s; return s; @@ -1083,22 +993,21 @@ public java.lang.String getFilter() { } } /** - * - * *
      * List filter. For example, exclude all Memcached instances with name as
      * my-instance by specifying "name != my-instance".
      * 
* * string filter = 4; - * * @return The bytes for filter. */ - public com.google.protobuf.ByteString getFilterBytes() { + public com.google.protobuf.ByteString + getFilterBytes() { java.lang.Object ref = filter_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); filter_ = b; return b; } else { @@ -1106,64 +1015,57 @@ public com.google.protobuf.ByteString getFilterBytes() { } } /** - * - * *
      * List filter. For example, exclude all Memcached instances with name as
      * my-instance by specifying "name != my-instance".
      * 
* * string filter = 4; - * * @param value The filter to set. * @return This builder for chaining. */ - public Builder setFilter(java.lang.String value) { + public Builder setFilter( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + filter_ = value; onChanged(); return this; } /** - * - * *
      * List filter. For example, exclude all Memcached instances with name as
      * my-instance by specifying "name != my-instance".
      * 
* * string filter = 4; - * * @return This builder for chaining. */ public Builder clearFilter() { - + filter_ = getDefaultInstance().getFilter(); onChanged(); return this; } /** - * - * *
      * List filter. For example, exclude all Memcached instances with name as
      * my-instance by specifying "name != my-instance".
      * 
* * string filter = 4; - * * @param value The bytes for filter to set. * @return This builder for chaining. */ - public Builder setFilterBytes(com.google.protobuf.ByteString value) { + public Builder setFilterBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + filter_ = value; onChanged(); return this; @@ -1171,20 +1073,18 @@ public Builder setFilterBytes(com.google.protobuf.ByteString value) { private java.lang.Object orderBy_ = ""; /** - * - * *
      * Sort results. Supported values are "name", "name desc" or "" (unsorted).
      * 
* * string order_by = 5; - * * @return The orderBy. */ public java.lang.String getOrderBy() { java.lang.Object ref = orderBy_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); orderBy_ = s; return s; @@ -1193,21 +1093,20 @@ public java.lang.String getOrderBy() { } } /** - * - * *
      * Sort results. Supported values are "name", "name desc" or "" (unsorted).
      * 
* * string order_by = 5; - * * @return The bytes for orderBy. */ - public com.google.protobuf.ByteString getOrderByBytes() { + public com.google.protobuf.ByteString + getOrderByBytes() { java.lang.Object ref = orderBy_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); orderBy_ = b; return b; } else { @@ -1215,68 +1114,61 @@ public com.google.protobuf.ByteString getOrderByBytes() { } } /** - * - * *
      * Sort results. Supported values are "name", "name desc" or "" (unsorted).
      * 
* * string order_by = 5; - * * @param value The orderBy to set. * @return This builder for chaining. */ - public Builder setOrderBy(java.lang.String value) { + public Builder setOrderBy( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + orderBy_ = value; onChanged(); return this; } /** - * - * *
      * Sort results. Supported values are "name", "name desc" or "" (unsorted).
      * 
* * string order_by = 5; - * * @return This builder for chaining. */ public Builder clearOrderBy() { - + orderBy_ = getDefaultInstance().getOrderBy(); onChanged(); return this; } /** - * - * *
      * Sort results. Supported values are "name", "name desc" or "" (unsorted).
      * 
* * string order_by = 5; - * * @param value The bytes for orderBy to set. * @return This builder for chaining. */ - public Builder setOrderByBytes(com.google.protobuf.ByteString value) { + public Builder setOrderByBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + orderBy_ = value; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1286,12 +1178,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.memcache.v1.ListInstancesRequest) } // @@protoc_insertion_point(class_scope:google.cloud.memcache.v1.ListInstancesRequest) private static final com.google.cloud.memcache.v1.ListInstancesRequest DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.memcache.v1.ListInstancesRequest(); } @@ -1300,16 +1192,16 @@ public static com.google.cloud.memcache.v1.ListInstancesRequest getDefaultInstan 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; @@ -1324,4 +1216,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.memcache.v1.ListInstancesRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-memcache-v1/src/main/java/com/google/cloud/memcache/v1/ListInstancesRequestOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-memcache-v1/src/main/java/com/google/cloud/memcache/v1/ListInstancesRequestOrBuilder.java similarity index 68% rename from proto-google-cloud-memcache-v1/src/main/java/com/google/cloud/memcache/v1/ListInstancesRequestOrBuilder.java rename to owl-bot-staging/v1/proto-google-cloud-memcache-v1/src/main/java/com/google/cloud/memcache/v1/ListInstancesRequestOrBuilder.java index 0b1bf027..211fc2dd 100644 --- a/proto-google-cloud-memcache-v1/src/main/java/com/google/cloud/memcache/v1/ListInstancesRequestOrBuilder.java +++ b/owl-bot-staging/v1/proto-google-cloud-memcache-v1/src/main/java/com/google/cloud/memcache/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/memcache/v1/cloud_memcache.proto package com.google.cloud.memcache.v1; -public interface ListInstancesRequestOrBuilder - extends +public interface ListInstancesRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.memcache.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,87 +42,71 @@ public interface ListInstancesRequestOrBuilder
    * 
* * int32 page_size = 2; - * * @return The pageSize. */ int getPageSize(); /** - * - * *
    * The next_page_token value returned from a previous List request,
    * if any.
    * 
* * string page_token = 3; - * * @return The pageToken. */ java.lang.String getPageToken(); /** - * - * *
    * The next_page_token value returned from a previous List request,
    * if any.
    * 
* * string page_token = 3; - * * @return The bytes for pageToken. */ - com.google.protobuf.ByteString getPageTokenBytes(); + com.google.protobuf.ByteString + getPageTokenBytes(); /** - * - * *
    * List filter. For example, exclude all Memcached instances with name as
    * my-instance by specifying "name != my-instance".
    * 
* * string filter = 4; - * * @return The filter. */ java.lang.String getFilter(); /** - * - * *
    * List filter. For example, exclude all Memcached instances with name as
    * my-instance by specifying "name != my-instance".
    * 
* * string filter = 4; - * * @return The bytes for filter. */ - com.google.protobuf.ByteString getFilterBytes(); + com.google.protobuf.ByteString + getFilterBytes(); /** - * - * *
    * Sort results. Supported values are "name", "name desc" or "" (unsorted).
    * 
* * string order_by = 5; - * * @return The orderBy. */ java.lang.String getOrderBy(); /** - * - * *
    * Sort results. Supported values are "name", "name desc" or "" (unsorted).
    * 
* * string order_by = 5; - * * @return The bytes for orderBy. */ - com.google.protobuf.ByteString getOrderByBytes(); + com.google.protobuf.ByteString + getOrderByBytes(); } diff --git a/proto-google-cloud-memcache-v1/src/main/java/com/google/cloud/memcache/v1/ListInstancesResponse.java b/owl-bot-staging/v1/proto-google-cloud-memcache-v1/src/main/java/com/google/cloud/memcache/v1/ListInstancesResponse.java similarity index 76% rename from proto-google-cloud-memcache-v1/src/main/java/com/google/cloud/memcache/v1/ListInstancesResponse.java rename to owl-bot-staging/v1/proto-google-cloud-memcache-v1/src/main/java/com/google/cloud/memcache/v1/ListInstancesResponse.java index 442d8f04..3ae9d178 100644 --- a/proto-google-cloud-memcache-v1/src/main/java/com/google/cloud/memcache/v1/ListInstancesResponse.java +++ b/owl-bot-staging/v1/proto-google-cloud-memcache-v1/src/main/java/com/google/cloud/memcache/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/memcache/v1/cloud_memcache.proto package com.google.cloud.memcache.v1; /** - * - * *
  * Response for [ListInstances][google.cloud.memcache.v1.CloudMemcache.ListInstances].
  * 
* * Protobuf type {@code google.cloud.memcache.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.memcache.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.memcache.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.memcache.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.memcache.v1.CloudMemcacheProto - .internal_static_google_cloud_memcache_v1_ListInstancesResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.memcache.v1.CloudMemcacheProto.internal_static_google_cloud_memcache_v1_ListInstancesResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.memcache.v1.CloudMemcacheProto - .internal_static_google_cloud_memcache_v1_ListInstancesResponse_fieldAccessorTable + return com.google.cloud.memcache.v1.CloudMemcacheProto.internal_static_google_cloud_memcache_v1_ListInstancesResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.memcache.v1.ListInstancesResponse.class, - com.google.cloud.memcache.v1.ListInstancesResponse.Builder.class); + com.google.cloud.memcache.v1.ListInstancesResponse.class, com.google.cloud.memcache.v1.ListInstancesResponse.Builder.class); } public static final int INSTANCES_FIELD_NUMBER = 1; private java.util.List instances_; /** - * - * *
    * A list of Memcached instances in the project in the specified location,
    * or across all locations.
@@ -162,8 +137,6 @@ public java.util.List getInstancesList()
     return instances_;
   }
   /**
-   *
-   *
    * 
    * A list of Memcached instances in the project in the specified location,
    * or across all locations.
@@ -174,13 +147,11 @@ public java.util.List getInstancesList()
    * repeated .google.cloud.memcache.v1.Instance instances = 1;
    */
   @java.lang.Override
-  public java.util.List
+  public java.util.List 
       getInstancesOrBuilderList() {
     return instances_;
   }
   /**
-   *
-   *
    * 
    * A list of Memcached instances in the project in the specified location,
    * or across all locations.
@@ -195,8 +166,6 @@ public int getInstancesCount() {
     return instances_.size();
   }
   /**
-   *
-   *
    * 
    * A list of Memcached instances in the project in the specified location,
    * or across all locations.
@@ -211,8 +180,6 @@ public com.google.cloud.memcache.v1.Instance getInstances(int index) {
     return instances_.get(index);
   }
   /**
-   *
-   *
    * 
    * A list of Memcached instances in the project in the specified location,
    * or across all locations.
@@ -223,22 +190,20 @@ public com.google.cloud.memcache.v1.Instance getInstances(int index) {
    * repeated .google.cloud.memcache.v1.Instance instances = 1;
    */
   @java.lang.Override
-  public com.google.cloud.memcache.v1.InstanceOrBuilder getInstancesOrBuilder(int index) {
+  public com.google.cloud.memcache.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 @@ -247,30 +212,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 { @@ -281,42 +246,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. */ @@ -324,23 +281,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; @@ -352,7 +306,8 @@ public final boolean isInitialized() { } @java.lang.Override - 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)); } @@ -372,7 +327,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_); @@ -393,17 +349,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.memcache.v1.ListInstancesResponse)) { return super.equals(obj); } - com.google.cloud.memcache.v1.ListInstancesResponse other = - (com.google.cloud.memcache.v1.ListInstancesResponse) obj; + com.google.cloud.memcache.v1.ListInstancesResponse other = (com.google.cloud.memcache.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; } @@ -431,126 +389,117 @@ public int hashCode() { } public static com.google.cloud.memcache.v1.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.memcache.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.memcache.v1.ListInstancesResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.memcache.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.memcache.v1.ListInstancesResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.memcache.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.memcache.v1.ListInstancesResponse parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.memcache.v1.ListInstancesResponse parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.memcache.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.memcache.v1.ListInstancesResponse parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.memcache.v1.ListInstancesResponse parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.memcache.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.memcache.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.memcache.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.memcache.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.memcache.v1.CloudMemcache.ListInstances].
    * 
* * Protobuf type {@code google.cloud.memcache.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.memcache.v1.ListInstancesResponse) com.google.cloud.memcache.v1.ListInstancesResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.memcache.v1.CloudMemcacheProto - .internal_static_google_cloud_memcache_v1_ListInstancesResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.memcache.v1.CloudMemcacheProto.internal_static_google_cloud_memcache_v1_ListInstancesResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.memcache.v1.CloudMemcacheProto - .internal_static_google_cloud_memcache_v1_ListInstancesResponse_fieldAccessorTable + return com.google.cloud.memcache.v1.CloudMemcacheProto.internal_static_google_cloud_memcache_v1_ListInstancesResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.memcache.v1.ListInstancesResponse.class, - com.google.cloud.memcache.v1.ListInstancesResponse.Builder.class); + com.google.cloud.memcache.v1.ListInstancesResponse.class, com.google.cloud.memcache.v1.ListInstancesResponse.Builder.class); } // Construct using com.google.cloud.memcache.v1.ListInstancesResponse.newBuilder() @@ -558,17 +507,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(); @@ -586,9 +535,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.memcache.v1.CloudMemcacheProto - .internal_static_google_cloud_memcache_v1_ListInstancesResponse_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.memcache.v1.CloudMemcacheProto.internal_static_google_cloud_memcache_v1_ListInstancesResponse_descriptor; } @java.lang.Override @@ -607,8 +556,7 @@ public com.google.cloud.memcache.v1.ListInstancesResponse build() { @java.lang.Override public com.google.cloud.memcache.v1.ListInstancesResponse buildPartial() { - com.google.cloud.memcache.v1.ListInstancesResponse result = - new com.google.cloud.memcache.v1.ListInstancesResponse(this); + com.google.cloud.memcache.v1.ListInstancesResponse result = new com.google.cloud.memcache.v1.ListInstancesResponse(this); int from_bitField0_ = bitField0_; if (instancesBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { @@ -633,39 +581,38 @@ public com.google.cloud.memcache.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.memcache.v1.ListInstancesResponse) { - return mergeFrom((com.google.cloud.memcache.v1.ListInstancesResponse) other); + return mergeFrom((com.google.cloud.memcache.v1.ListInstancesResponse)other); } else { super.mergeFrom(other); return this; @@ -673,8 +620,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.memcache.v1.ListInstancesResponse other) { - if (other == com.google.cloud.memcache.v1.ListInstancesResponse.getDefaultInstance()) - return this; + if (other == com.google.cloud.memcache.v1.ListInstancesResponse.getDefaultInstance()) return this; if (instancesBuilder_ == null) { if (!other.instances_.isEmpty()) { if (instances_.isEmpty()) { @@ -693,10 +639,9 @@ public Builder mergeFrom(com.google.cloud.memcache.v1.ListInstancesResponse othe 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_); } @@ -735,8 +680,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.memcache.v1.ListInstancesResponse) e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.memcache.v1.ListInstancesResponse) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -745,28 +689,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.memcache.v1.Instance, - com.google.cloud.memcache.v1.Instance.Builder, - com.google.cloud.memcache.v1.InstanceOrBuilder> - instancesBuilder_; + com.google.cloud.memcache.v1.Instance, com.google.cloud.memcache.v1.Instance.Builder, com.google.cloud.memcache.v1.InstanceOrBuilder> instancesBuilder_; /** - * - * *
      * A list of Memcached instances in the project in the specified location,
      * or across all locations.
@@ -784,8 +721,6 @@ public java.util.List getInstancesList()
       }
     }
     /**
-     *
-     *
      * 
      * A list of Memcached instances in the project in the specified location,
      * or across all locations.
@@ -803,8 +738,6 @@ public int getInstancesCount() {
       }
     }
     /**
-     *
-     *
      * 
      * A list of Memcached instances in the project in the specified location,
      * or across all locations.
@@ -822,8 +755,6 @@ public com.google.cloud.memcache.v1.Instance getInstances(int index) {
       }
     }
     /**
-     *
-     *
      * 
      * A list of Memcached instances in the project in the specified location,
      * or across all locations.
@@ -833,7 +764,8 @@ public com.google.cloud.memcache.v1.Instance getInstances(int index) {
      *
      * repeated .google.cloud.memcache.v1.Instance instances = 1;
      */
-    public Builder setInstances(int index, com.google.cloud.memcache.v1.Instance value) {
+    public Builder setInstances(
+        int index, com.google.cloud.memcache.v1.Instance value) {
       if (instancesBuilder_ == null) {
         if (value == null) {
           throw new NullPointerException();
@@ -847,8 +779,6 @@ public Builder setInstances(int index, com.google.cloud.memcache.v1.Instance val
       return this;
     }
     /**
-     *
-     *
      * 
      * A list of Memcached instances in the project in the specified location,
      * or across all locations.
@@ -870,8 +800,6 @@ public Builder setInstances(
       return this;
     }
     /**
-     *
-     *
      * 
      * A list of Memcached instances in the project in the specified location,
      * or across all locations.
@@ -895,8 +823,6 @@ public Builder addInstances(com.google.cloud.memcache.v1.Instance value) {
       return this;
     }
     /**
-     *
-     *
      * 
      * A list of Memcached instances in the project in the specified location,
      * or across all locations.
@@ -906,7 +832,8 @@ public Builder addInstances(com.google.cloud.memcache.v1.Instance value) {
      *
      * repeated .google.cloud.memcache.v1.Instance instances = 1;
      */
-    public Builder addInstances(int index, com.google.cloud.memcache.v1.Instance value) {
+    public Builder addInstances(
+        int index, com.google.cloud.memcache.v1.Instance value) {
       if (instancesBuilder_ == null) {
         if (value == null) {
           throw new NullPointerException();
@@ -920,8 +847,6 @@ public Builder addInstances(int index, com.google.cloud.memcache.v1.Instance val
       return this;
     }
     /**
-     *
-     *
      * 
      * A list of Memcached instances in the project in the specified location,
      * or across all locations.
@@ -931,7 +856,8 @@ public Builder addInstances(int index, com.google.cloud.memcache.v1.Instance val
      *
      * repeated .google.cloud.memcache.v1.Instance instances = 1;
      */
-    public Builder addInstances(com.google.cloud.memcache.v1.Instance.Builder builderForValue) {
+    public Builder addInstances(
+        com.google.cloud.memcache.v1.Instance.Builder builderForValue) {
       if (instancesBuilder_ == null) {
         ensureInstancesIsMutable();
         instances_.add(builderForValue.build());
@@ -942,8 +868,6 @@ public Builder addInstances(com.google.cloud.memcache.v1.Instance.Builder builde
       return this;
     }
     /**
-     *
-     *
      * 
      * A list of Memcached instances in the project in the specified location,
      * or across all locations.
@@ -965,8 +889,6 @@ public Builder addInstances(
       return this;
     }
     /**
-     *
-     *
      * 
      * A list of Memcached instances in the project in the specified location,
      * or across all locations.
@@ -980,7 +902,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);
@@ -988,8 +911,6 @@ public Builder addAllInstances(
       return this;
     }
     /**
-     *
-     *
      * 
      * A list of Memcached instances in the project in the specified location,
      * or across all locations.
@@ -1010,8 +931,6 @@ public Builder clearInstances() {
       return this;
     }
     /**
-     *
-     *
      * 
      * A list of Memcached instances in the project in the specified location,
      * or across all locations.
@@ -1032,8 +951,6 @@ public Builder removeInstances(int index) {
       return this;
     }
     /**
-     *
-     *
      * 
      * A list of Memcached instances in the project in the specified location,
      * or across all locations.
@@ -1043,12 +960,11 @@ public Builder removeInstances(int index) {
      *
      * repeated .google.cloud.memcache.v1.Instance instances = 1;
      */
-    public com.google.cloud.memcache.v1.Instance.Builder getInstancesBuilder(int index) {
+    public com.google.cloud.memcache.v1.Instance.Builder getInstancesBuilder(
+        int index) {
       return getInstancesFieldBuilder().getBuilder(index);
     }
     /**
-     *
-     *
      * 
      * A list of Memcached instances in the project in the specified location,
      * or across all locations.
@@ -1058,16 +974,14 @@ public com.google.cloud.memcache.v1.Instance.Builder getInstancesBuilder(int ind
      *
      * repeated .google.cloud.memcache.v1.Instance instances = 1;
      */
-    public com.google.cloud.memcache.v1.InstanceOrBuilder getInstancesOrBuilder(int index) {
+    public com.google.cloud.memcache.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 Memcached instances in the project in the specified location,
      * or across all locations.
@@ -1077,8 +991,8 @@ public com.google.cloud.memcache.v1.InstanceOrBuilder getInstancesOrBuilder(int
      *
      * repeated .google.cloud.memcache.v1.Instance instances = 1;
      */
-    public java.util.List
-        getInstancesOrBuilderList() {
+    public java.util.List 
+         getInstancesOrBuilderList() {
       if (instancesBuilder_ != null) {
         return instancesBuilder_.getMessageOrBuilderList();
       } else {
@@ -1086,8 +1000,6 @@ public com.google.cloud.memcache.v1.InstanceOrBuilder getInstancesOrBuilder(int
       }
     }
     /**
-     *
-     *
      * 
      * A list of Memcached instances in the project in the specified location,
      * or across all locations.
@@ -1098,12 +1010,10 @@ public com.google.cloud.memcache.v1.InstanceOrBuilder getInstancesOrBuilder(int
      * repeated .google.cloud.memcache.v1.Instance instances = 1;
      */
     public com.google.cloud.memcache.v1.Instance.Builder addInstancesBuilder() {
-      return getInstancesFieldBuilder()
-          .addBuilder(com.google.cloud.memcache.v1.Instance.getDefaultInstance());
+      return getInstancesFieldBuilder().addBuilder(
+          com.google.cloud.memcache.v1.Instance.getDefaultInstance());
     }
     /**
-     *
-     *
      * 
      * A list of Memcached instances in the project in the specified location,
      * or across all locations.
@@ -1113,13 +1023,12 @@ public com.google.cloud.memcache.v1.Instance.Builder addInstancesBuilder() {
      *
      * repeated .google.cloud.memcache.v1.Instance instances = 1;
      */
-    public com.google.cloud.memcache.v1.Instance.Builder addInstancesBuilder(int index) {
-      return getInstancesFieldBuilder()
-          .addBuilder(index, com.google.cloud.memcache.v1.Instance.getDefaultInstance());
+    public com.google.cloud.memcache.v1.Instance.Builder addInstancesBuilder(
+        int index) {
+      return getInstancesFieldBuilder().addBuilder(
+          index, com.google.cloud.memcache.v1.Instance.getDefaultInstance());
     }
     /**
-     *
-     *
      * 
      * A list of Memcached instances in the project in the specified location,
      * or across all locations.
@@ -1129,22 +1038,20 @@ public com.google.cloud.memcache.v1.Instance.Builder addInstancesBuilder(int ind
      *
      * repeated .google.cloud.memcache.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.memcache.v1.Instance,
-            com.google.cloud.memcache.v1.Instance.Builder,
-            com.google.cloud.memcache.v1.InstanceOrBuilder>
+        com.google.cloud.memcache.v1.Instance, com.google.cloud.memcache.v1.Instance.Builder, com.google.cloud.memcache.v1.InstanceOrBuilder> 
         getInstancesFieldBuilder() {
       if (instancesBuilder_ == null) {
-        instancesBuilder_ =
-            new com.google.protobuf.RepeatedFieldBuilderV3<
-                com.google.cloud.memcache.v1.Instance,
-                com.google.cloud.memcache.v1.Instance.Builder,
-                com.google.cloud.memcache.v1.InstanceOrBuilder>(
-                instances_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean());
+        instancesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
+            com.google.cloud.memcache.v1.Instance, com.google.cloud.memcache.v1.Instance.Builder, com.google.cloud.memcache.v1.InstanceOrBuilder>(
+                instances_,
+                ((bitField0_ & 0x00000001) != 0),
+                getParentForChildren(),
+                isClean());
         instances_ = null;
       }
       return instancesBuilder_;
@@ -1152,21 +1059,19 @@ public java.util.List getInstance
 
     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; @@ -1175,22 +1080,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 { @@ -1198,115 +1102,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. */ @@ -1314,90 +1201,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() { @@ -1407,30 +1284,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); } @@ -1440,12 +1315,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.memcache.v1.ListInstancesResponse) } // @@protoc_insertion_point(class_scope:google.cloud.memcache.v1.ListInstancesResponse) private static final com.google.cloud.memcache.v1.ListInstancesResponse DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.memcache.v1.ListInstancesResponse(); } @@ -1454,16 +1329,16 @@ public static com.google.cloud.memcache.v1.ListInstancesResponse getDefaultInsta 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; @@ -1478,4 +1353,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.memcache.v1.ListInstancesResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-memcache-v1/src/main/java/com/google/cloud/memcache/v1/ListInstancesResponseOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-memcache-v1/src/main/java/com/google/cloud/memcache/v1/ListInstancesResponseOrBuilder.java similarity index 78% rename from proto-google-cloud-memcache-v1/src/main/java/com/google/cloud/memcache/v1/ListInstancesResponseOrBuilder.java rename to owl-bot-staging/v1/proto-google-cloud-memcache-v1/src/main/java/com/google/cloud/memcache/v1/ListInstancesResponseOrBuilder.java index aeb159bf..48fec150 100644 --- a/proto-google-cloud-memcache-v1/src/main/java/com/google/cloud/memcache/v1/ListInstancesResponseOrBuilder.java +++ b/owl-bot-staging/v1/proto-google-cloud-memcache-v1/src/main/java/com/google/cloud/memcache/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/memcache/v1/cloud_memcache.proto package com.google.cloud.memcache.v1; -public interface ListInstancesResponseOrBuilder - extends +public interface ListInstancesResponseOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.memcache.v1.ListInstancesResponse) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * A list of Memcached instances in the project in the specified location,
    * or across all locations.
@@ -35,10 +17,9 @@ public interface ListInstancesResponseOrBuilder
    *
    * repeated .google.cloud.memcache.v1.Instance instances = 1;
    */
-  java.util.List getInstancesList();
+  java.util.List 
+      getInstancesList();
   /**
-   *
-   *
    * 
    * A list of Memcached instances in the project in the specified location,
    * or across all locations.
@@ -50,8 +31,6 @@ public interface ListInstancesResponseOrBuilder
    */
   com.google.cloud.memcache.v1.Instance getInstances(int index);
   /**
-   *
-   *
    * 
    * A list of Memcached instances in the project in the specified location,
    * or across all locations.
@@ -63,8 +42,6 @@ public interface ListInstancesResponseOrBuilder
    */
   int getInstancesCount();
   /**
-   *
-   *
    * 
    * A list of Memcached instances in the project in the specified location,
    * or across all locations.
@@ -74,11 +51,9 @@ public interface ListInstancesResponseOrBuilder
    *
    * repeated .google.cloud.memcache.v1.Instance instances = 1;
    */
-  java.util.List
+  java.util.List 
       getInstancesOrBuilderList();
   /**
-   *
-   *
    * 
    * A list of Memcached instances in the project in the specified location,
    * or across all locations.
@@ -88,83 +63,69 @@ public interface ListInstancesResponseOrBuilder
    *
    * repeated .google.cloud.memcache.v1.Instance instances = 1;
    */
-  com.google.cloud.memcache.v1.InstanceOrBuilder getInstancesOrBuilder(int index);
+  com.google.cloud.memcache.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-memcache-v1/src/main/java/com/google/cloud/memcache/v1/LocationName.java b/owl-bot-staging/v1/proto-google-cloud-memcache-v1/src/main/java/com/google/cloud/memcache/v1/LocationName.java similarity index 100% rename from proto-google-cloud-memcache-v1/src/main/java/com/google/cloud/memcache/v1/LocationName.java rename to owl-bot-staging/v1/proto-google-cloud-memcache-v1/src/main/java/com/google/cloud/memcache/v1/LocationName.java diff --git a/proto-google-cloud-memcache-v1/src/main/java/com/google/cloud/memcache/v1/MemcacheParameters.java b/owl-bot-staging/v1/proto-google-cloud-memcache-v1/src/main/java/com/google/cloud/memcache/v1/MemcacheParameters.java similarity index 64% rename from proto-google-cloud-memcache-v1/src/main/java/com/google/cloud/memcache/v1/MemcacheParameters.java rename to owl-bot-staging/v1/proto-google-cloud-memcache-v1/src/main/java/com/google/cloud/memcache/v1/MemcacheParameters.java index 1b1eed01..0768f264 100644 --- a/proto-google-cloud-memcache-v1/src/main/java/com/google/cloud/memcache/v1/MemcacheParameters.java +++ b/owl-bot-staging/v1/proto-google-cloud-memcache-v1/src/main/java/com/google/cloud/memcache/v1/MemcacheParameters.java @@ -1,49 +1,36 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/memcache/v1/cloud_memcache.proto package com.google.cloud.memcache.v1; -/** Protobuf type {@code google.cloud.memcache.v1.MemcacheParameters} */ -public final class MemcacheParameters extends com.google.protobuf.GeneratedMessageV3 - implements +/** + * Protobuf type {@code google.cloud.memcache.v1.MemcacheParameters} + */ +public final class MemcacheParameters extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.memcache.v1.MemcacheParameters) MemcacheParametersOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use MemcacheParameters.newBuilder() to construct. private MemcacheParameters(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private MemcacheParameters() { id_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new MemcacheParameters(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private MemcacheParameters( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -63,33 +50,32 @@ private MemcacheParameters( 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 26: - { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - params_ = - com.google.protobuf.MapField.newMapField(ParamsDefaultEntryHolder.defaultEntry); - mutable_bitField0_ |= 0x00000001; - } - com.google.protobuf.MapEntry params__ = - input.readMessage( - ParamsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); - params_.getMutableMap().put(params__.getKey(), params__.getValue()); - break; + id_ = s; + break; + } + case 26: { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + params_ = com.google.protobuf.MapField.newMapField( + ParamsDefaultEntryHolder.defaultEntry); + mutable_bitField0_ |= 0x00000001; } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + com.google.protobuf.MapEntry + params__ = input.readMessage( + ParamsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); + params_.getMutableMap().put( + params__.getKey(), params__.getValue()); + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -97,44 +83,41 @@ private MemcacheParameters( } 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.memcache.v1.CloudMemcacheProto - .internal_static_google_cloud_memcache_v1_MemcacheParameters_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.memcache.v1.CloudMemcacheProto.internal_static_google_cloud_memcache_v1_MemcacheParameters_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 internalGetParams(); 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.memcache.v1.CloudMemcacheProto - .internal_static_google_cloud_memcache_v1_MemcacheParameters_fieldAccessorTable + return com.google.cloud.memcache.v1.CloudMemcacheProto.internal_static_google_cloud_memcache_v1_MemcacheParameters_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.memcache.v1.MemcacheParameters.class, - com.google.cloud.memcache.v1.MemcacheParameters.Builder.class); + com.google.cloud.memcache.v1.MemcacheParameters.class, com.google.cloud.memcache.v1.MemcacheParameters.Builder.class); } public static final int ID_FIELD_NUMBER = 1; private volatile java.lang.Object id_; /** - * - * *
    * Output only. The unique ID associated with this set of parameters. Users
    * can use this id to determine if the parameters associated with the instance
@@ -143,7 +126,6 @@ protected com.google.protobuf.MapField internalGetMapField(int number) {
    * 
* * string id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The id. */ @java.lang.Override @@ -152,15 +134,14 @@ 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. The unique ID associated with this set of parameters. Users
    * can use this id to determine if the parameters associated with the instance
@@ -169,15 +150,16 @@ public java.lang.String getId() {
    * 
* * 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 { @@ -186,23 +168,24 @@ public com.google.protobuf.ByteString getIdBytes() { } public static final int PARAMS_FIELD_NUMBER = 3; - private static final class ParamsDefaultEntryHolder { - static final com.google.protobuf.MapEntry defaultEntry = - com.google.protobuf.MapEntry.newDefaultInstance( - com.google.cloud.memcache.v1.CloudMemcacheProto - .internal_static_google_cloud_memcache_v1_MemcacheParameters_ParamsEntry_descriptor, - com.google.protobuf.WireFormat.FieldType.STRING, - "", - com.google.protobuf.WireFormat.FieldType.STRING, - ""); - } - - private com.google.protobuf.MapField params_; - - private com.google.protobuf.MapField internalGetParams() { + static final com.google.protobuf.MapEntry< + java.lang.String, java.lang.String> defaultEntry = + com.google.protobuf.MapEntry + .newDefaultInstance( + com.google.cloud.memcache.v1.CloudMemcacheProto.internal_static_google_cloud_memcache_v1_MemcacheParameters_ParamsEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.STRING, + "", + com.google.protobuf.WireFormat.FieldType.STRING, + ""); + } + private com.google.protobuf.MapField< + java.lang.String, java.lang.String> params_; + private com.google.protobuf.MapField + internalGetParams() { if (params_ == null) { - return com.google.protobuf.MapField.emptyMapField(ParamsDefaultEntryHolder.defaultEntry); + return com.google.protobuf.MapField.emptyMapField( + ParamsDefaultEntryHolder.defaultEntry); } return params_; } @@ -211,30 +194,28 @@ public int getParamsCount() { return internalGetParams().getMap().size(); } /** - * - * *
    * User defined set of parameters to use in the memcached process.
    * 
* * map<string, string> params = 3; */ + @java.lang.Override - public boolean containsParams(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } + public boolean containsParams( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } return internalGetParams().getMap().containsKey(key); } - /** Use {@link #getParamsMap()} instead. */ + /** + * Use {@link #getParamsMap()} instead. + */ @java.lang.Override @java.lang.Deprecated public java.util.Map getParams() { return getParamsMap(); } /** - * - * *
    * User defined set of parameters to use in the memcached process.
    * 
@@ -242,12 +223,11 @@ public java.util.Map getParams() { * map<string, string> params = 3; */ @java.lang.Override + public java.util.Map getParamsMap() { return internalGetParams().getMap(); } /** - * - * *
    * User defined set of parameters to use in the memcached process.
    * 
@@ -255,16 +235,16 @@ public java.util.Map getParamsMap() { * map<string, string> params = 3; */ @java.lang.Override - public java.lang.String getParamsOrDefault(java.lang.String key, java.lang.String defaultValue) { - if (key == null) { - throw new NullPointerException("map key"); - } - java.util.Map map = internalGetParams().getMap(); + + public java.lang.String getParamsOrDefault( + java.lang.String key, + java.lang.String defaultValue) { + if (key == null) { throw new NullPointerException("map key"); } + java.util.Map map = + internalGetParams().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** - * - * *
    * User defined set of parameters to use in the memcached process.
    * 
@@ -272,11 +252,12 @@ public java.lang.String getParamsOrDefault(java.lang.String key, java.lang.Strin * map<string, string> params = 3; */ @java.lang.Override - public java.lang.String getParamsOrThrow(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } - java.util.Map map = internalGetParams().getMap(); + + public java.lang.String getParamsOrThrow( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } + java.util.Map map = + internalGetParams().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } @@ -284,7 +265,6 @@ public java.lang.String getParamsOrThrow(java.lang.String key) { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -296,12 +276,17 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(id_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, id_); } - com.google.protobuf.GeneratedMessageV3.serializeStringMapTo( - output, internalGetParams(), ParamsDefaultEntryHolder.defaultEntry, 3); + com.google.protobuf.GeneratedMessageV3 + .serializeStringMapTo( + output, + internalGetParams(), + ParamsDefaultEntryHolder.defaultEntry, + 3); unknownFields.writeTo(output); } @@ -314,15 +299,15 @@ public int getSerializedSize() { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(id_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, id_); } - for (java.util.Map.Entry entry : - internalGetParams().getMap().entrySet()) { - com.google.protobuf.MapEntry params__ = - ParamsDefaultEntryHolder.defaultEntry - .newBuilderForType() - .setKey(entry.getKey()) - .setValue(entry.getValue()) - .build(); - size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, params__); + for (java.util.Map.Entry entry + : internalGetParams().getMap().entrySet()) { + com.google.protobuf.MapEntry + params__ = ParamsDefaultEntryHolder.defaultEntry.newBuilderForType() + .setKey(entry.getKey()) + .setValue(entry.getValue()) + .build(); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(3, params__); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -332,16 +317,17 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.memcache.v1.MemcacheParameters)) { return super.equals(obj); } - com.google.cloud.memcache.v1.MemcacheParameters other = - (com.google.cloud.memcache.v1.MemcacheParameters) obj; + com.google.cloud.memcache.v1.MemcacheParameters other = (com.google.cloud.memcache.v1.MemcacheParameters) obj; - if (!getId().equals(other.getId())) return false; - if (!internalGetParams().equals(other.internalGetParams())) return false; + if (!getId() + .equals(other.getId())) return false; + if (!internalGetParams().equals( + other.internalGetParams())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -364,139 +350,136 @@ public int hashCode() { return hash; } - public static com.google.cloud.memcache.v1.MemcacheParameters parseFrom(java.nio.ByteBuffer data) + public static com.google.cloud.memcache.v1.MemcacheParameters parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.memcache.v1.MemcacheParameters parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.memcache.v1.MemcacheParameters parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.memcache.v1.MemcacheParameters parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.memcache.v1.MemcacheParameters parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.memcache.v1.MemcacheParameters parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.memcache.v1.MemcacheParameters 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.memcache.v1.MemcacheParameters parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.memcache.v1.MemcacheParameters parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.memcache.v1.MemcacheParameters parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.memcache.v1.MemcacheParameters parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.memcache.v1.MemcacheParameters parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.memcache.v1.MemcacheParameters parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.memcache.v1.MemcacheParameters prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } - /** Protobuf type {@code google.cloud.memcache.v1.MemcacheParameters} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + /** + * Protobuf type {@code google.cloud.memcache.v1.MemcacheParameters} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.memcache.v1.MemcacheParameters) com.google.cloud.memcache.v1.MemcacheParametersOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.memcache.v1.CloudMemcacheProto - .internal_static_google_cloud_memcache_v1_MemcacheParameters_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.memcache.v1.CloudMemcacheProto.internal_static_google_cloud_memcache_v1_MemcacheParameters_descriptor; } @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapField internalGetMapField(int number) { + protected com.google.protobuf.MapField internalGetMapField( + int number) { switch (number) { case 3: return internalGetParams(); 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 internalGetMutableParams(); 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.memcache.v1.CloudMemcacheProto - .internal_static_google_cloud_memcache_v1_MemcacheParameters_fieldAccessorTable + return com.google.cloud.memcache.v1.CloudMemcacheProto.internal_static_google_cloud_memcache_v1_MemcacheParameters_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.memcache.v1.MemcacheParameters.class, - com.google.cloud.memcache.v1.MemcacheParameters.Builder.class); + com.google.cloud.memcache.v1.MemcacheParameters.class, com.google.cloud.memcache.v1.MemcacheParameters.Builder.class); } // Construct using com.google.cloud.memcache.v1.MemcacheParameters.newBuilder() @@ -504,15 +487,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(); @@ -523,9 +507,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.memcache.v1.CloudMemcacheProto - .internal_static_google_cloud_memcache_v1_MemcacheParameters_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.memcache.v1.CloudMemcacheProto.internal_static_google_cloud_memcache_v1_MemcacheParameters_descriptor; } @java.lang.Override @@ -544,8 +528,7 @@ public com.google.cloud.memcache.v1.MemcacheParameters build() { @java.lang.Override public com.google.cloud.memcache.v1.MemcacheParameters buildPartial() { - com.google.cloud.memcache.v1.MemcacheParameters result = - new com.google.cloud.memcache.v1.MemcacheParameters(this); + com.google.cloud.memcache.v1.MemcacheParameters result = new com.google.cloud.memcache.v1.MemcacheParameters(this); int from_bitField0_ = bitField0_; result.id_ = id_; result.params_ = internalGetParams(); @@ -558,39 +541,38 @@ public com.google.cloud.memcache.v1.MemcacheParameters buildPartial() { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.memcache.v1.MemcacheParameters) { - return mergeFrom((com.google.cloud.memcache.v1.MemcacheParameters) other); + return mergeFrom((com.google.cloud.memcache.v1.MemcacheParameters)other); } else { super.mergeFrom(other); return this; @@ -598,13 +580,13 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.memcache.v1.MemcacheParameters other) { - if (other == com.google.cloud.memcache.v1.MemcacheParameters.getDefaultInstance()) - return this; + if (other == com.google.cloud.memcache.v1.MemcacheParameters.getDefaultInstance()) return this; if (!other.getId().isEmpty()) { id_ = other.id_; onChanged(); } - internalGetMutableParams().mergeFrom(other.internalGetParams()); + internalGetMutableParams().mergeFrom( + other.internalGetParams()); this.mergeUnknownFields(other.unknownFields); onChanged(); return this; @@ -633,13 +615,10 @@ public Builder mergeFrom( } return this; } - private int bitField0_; private java.lang.Object id_ = ""; /** - * - * *
      * Output only. The unique ID associated with this set of parameters. Users
      * can use this id to determine if the parameters associated with the instance
@@ -648,13 +627,13 @@ public Builder mergeFrom(
      * 
* * 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; @@ -663,8 +642,6 @@ public java.lang.String getId() { } } /** - * - * *
      * Output only. The unique ID associated with this set of parameters. Users
      * can use this id to determine if the parameters associated with the instance
@@ -673,14 +650,15 @@ public java.lang.String getId() {
      * 
* * 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 { @@ -688,8 +666,6 @@ public com.google.protobuf.ByteString getIdBytes() { } } /** - * - * *
      * Output only. The unique ID associated with this set of parameters. Users
      * can use this id to determine if the parameters associated with the instance
@@ -698,22 +674,20 @@ public com.google.protobuf.ByteString getIdBytes() {
      * 
* * 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. The unique ID associated with this set of parameters. Users
      * can use this id to determine if the parameters associated with the instance
@@ -722,18 +696,15 @@ public Builder setId(java.lang.String value) {
      * 
* * 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. The unique ID associated with this set of parameters. Users
      * can use this id to determine if the parameters associated with the instance
@@ -742,36 +713,37 @@ public Builder clearId() {
      * 
* * 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; } - private com.google.protobuf.MapField params_; - - private com.google.protobuf.MapField internalGetParams() { + private com.google.protobuf.MapField< + java.lang.String, java.lang.String> params_; + private com.google.protobuf.MapField + internalGetParams() { if (params_ == null) { - return com.google.protobuf.MapField.emptyMapField(ParamsDefaultEntryHolder.defaultEntry); + return com.google.protobuf.MapField.emptyMapField( + ParamsDefaultEntryHolder.defaultEntry); } return params_; } - private com.google.protobuf.MapField - internalGetMutableParams() { - onChanged(); - ; + internalGetMutableParams() { + onChanged();; if (params_ == null) { - params_ = com.google.protobuf.MapField.newMapField(ParamsDefaultEntryHolder.defaultEntry); + params_ = com.google.protobuf.MapField.newMapField( + ParamsDefaultEntryHolder.defaultEntry); } if (!params_.isMutable()) { params_ = params_.copy(); @@ -783,30 +755,28 @@ public int getParamsCount() { return internalGetParams().getMap().size(); } /** - * - * *
      * User defined set of parameters to use in the memcached process.
      * 
* * map<string, string> params = 3; */ + @java.lang.Override - public boolean containsParams(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } + public boolean containsParams( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } return internalGetParams().getMap().containsKey(key); } - /** Use {@link #getParamsMap()} instead. */ + /** + * Use {@link #getParamsMap()} instead. + */ @java.lang.Override @java.lang.Deprecated public java.util.Map getParams() { return getParamsMap(); } /** - * - * *
      * User defined set of parameters to use in the memcached process.
      * 
@@ -814,12 +784,11 @@ public java.util.Map getParams() { * map<string, string> params = 3; */ @java.lang.Override + public java.util.Map getParamsMap() { return internalGetParams().getMap(); } /** - * - * *
      * User defined set of parameters to use in the memcached process.
      * 
@@ -827,17 +796,16 @@ public java.util.Map getParamsMap() { * map<string, string> params = 3; */ @java.lang.Override + public java.lang.String getParamsOrDefault( - java.lang.String key, java.lang.String defaultValue) { - if (key == null) { - throw new NullPointerException("map key"); - } - java.util.Map map = internalGetParams().getMap(); + java.lang.String key, + java.lang.String defaultValue) { + if (key == null) { throw new NullPointerException("map key"); } + java.util.Map map = + internalGetParams().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** - * - * *
      * User defined set of parameters to use in the memcached process.
      * 
@@ -845,11 +813,12 @@ public java.lang.String getParamsOrDefault( * map<string, string> params = 3; */ @java.lang.Override - public java.lang.String getParamsOrThrow(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } - java.util.Map map = internalGetParams().getMap(); + + public java.lang.String getParamsOrThrow( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } + java.util.Map map = + internalGetParams().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } @@ -857,66 +826,69 @@ public java.lang.String getParamsOrThrow(java.lang.String key) { } public Builder clearParams() { - internalGetMutableParams().getMutableMap().clear(); + internalGetMutableParams().getMutableMap() + .clear(); return this; } /** - * - * *
      * User defined set of parameters to use in the memcached process.
      * 
* * map<string, string> params = 3; */ - public Builder removeParams(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } - internalGetMutableParams().getMutableMap().remove(key); + + public Builder removeParams( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } + internalGetMutableParams().getMutableMap() + .remove(key); return this; } - /** Use alternate mutation accessors instead. */ + /** + * Use alternate mutation accessors instead. + */ @java.lang.Deprecated - public java.util.Map getMutableParams() { + public java.util.Map + getMutableParams() { return internalGetMutableParams().getMutableMap(); } /** - * - * *
      * User defined set of parameters to use in the memcached process.
      * 
* * map<string, string> params = 3; */ - public Builder putParams(java.lang.String key, java.lang.String value) { - if (key == null) { - throw new NullPointerException("map key"); - } + public Builder putParams( + 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"); +} - internalGetMutableParams().getMutableMap().put(key, value); + internalGetMutableParams().getMutableMap() + .put(key, value); return this; } /** - * - * *
      * User defined set of parameters to use in the memcached process.
      * 
* * map<string, string> params = 3; */ - public Builder putAllParams(java.util.Map values) { - internalGetMutableParams().getMutableMap().putAll(values); + + public Builder putAllParams( + java.util.Map values) { + internalGetMutableParams().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); } @@ -926,12 +898,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.memcache.v1.MemcacheParameters) } // @@protoc_insertion_point(class_scope:google.cloud.memcache.v1.MemcacheParameters) private static final com.google.cloud.memcache.v1.MemcacheParameters DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.memcache.v1.MemcacheParameters(); } @@ -940,16 +912,16 @@ public static com.google.cloud.memcache.v1.MemcacheParameters getDefaultInstance return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public MemcacheParameters parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new MemcacheParameters(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public MemcacheParameters parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new MemcacheParameters(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -964,4 +936,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.memcache.v1.MemcacheParameters getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-memcache-v1/src/main/java/com/google/cloud/memcache/v1/MemcacheParametersOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-memcache-v1/src/main/java/com/google/cloud/memcache/v1/MemcacheParametersOrBuilder.java similarity index 65% rename from proto-google-cloud-memcache-v1/src/main/java/com/google/cloud/memcache/v1/MemcacheParametersOrBuilder.java rename to owl-bot-staging/v1/proto-google-cloud-memcache-v1/src/main/java/com/google/cloud/memcache/v1/MemcacheParametersOrBuilder.java index 1deaaa58..0b77dc3c 100644 --- a/proto-google-cloud-memcache-v1/src/main/java/com/google/cloud/memcache/v1/MemcacheParametersOrBuilder.java +++ b/owl-bot-staging/v1/proto-google-cloud-memcache-v1/src/main/java/com/google/cloud/memcache/v1/MemcacheParametersOrBuilder.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/memcache/v1/cloud_memcache.proto package com.google.cloud.memcache.v1; -public interface MemcacheParametersOrBuilder - extends +public interface MemcacheParametersOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.memcache.v1.MemcacheParameters) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Output only. The unique ID associated with this set of parameters. Users
    * can use this id to determine if the parameters associated with the instance
@@ -34,13 +16,10 @@ public interface MemcacheParametersOrBuilder
    * 
* * string id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The id. */ java.lang.String getId(); /** - * - * *
    * Output only. The unique ID associated with this set of parameters. Users
    * can use this id to determine if the parameters associated with the instance
@@ -49,14 +28,12 @@ public interface MemcacheParametersOrBuilder
    * 
* * string id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for id. */ - com.google.protobuf.ByteString getIdBytes(); + com.google.protobuf.ByteString + getIdBytes(); /** - * - * *
    * User defined set of parameters to use in the memcached process.
    * 
@@ -65,31 +42,30 @@ public interface MemcacheParametersOrBuilder */ int getParamsCount(); /** - * - * *
    * User defined set of parameters to use in the memcached process.
    * 
* * map<string, string> params = 3; */ - boolean containsParams(java.lang.String key); - /** Use {@link #getParamsMap()} instead. */ + boolean containsParams( + java.lang.String key); + /** + * Use {@link #getParamsMap()} instead. + */ @java.lang.Deprecated - java.util.Map getParams(); + java.util.Map + getParams(); /** - * - * *
    * User defined set of parameters to use in the memcached process.
    * 
* * map<string, string> params = 3; */ - java.util.Map getParamsMap(); + java.util.Map + getParamsMap(); /** - * - * *
    * User defined set of parameters to use in the memcached process.
    * 
@@ -98,18 +74,18 @@ public interface MemcacheParametersOrBuilder */ /* nullable */ - java.lang.String getParamsOrDefault( +java.lang.String getParamsOrDefault( java.lang.String key, /* nullable */ - java.lang.String defaultValue); +java.lang.String defaultValue); /** - * - * *
    * User defined set of parameters to use in the memcached process.
    * 
* * map<string, string> params = 3; */ - java.lang.String getParamsOrThrow(java.lang.String key); + + java.lang.String getParamsOrThrow( + java.lang.String key); } diff --git a/proto-google-cloud-memcache-v1/src/main/java/com/google/cloud/memcache/v1/MemcacheVersion.java b/owl-bot-staging/v1/proto-google-cloud-memcache-v1/src/main/java/com/google/cloud/memcache/v1/MemcacheVersion.java similarity index 61% rename from proto-google-cloud-memcache-v1/src/main/java/com/google/cloud/memcache/v1/MemcacheVersion.java rename to owl-bot-staging/v1/proto-google-cloud-memcache-v1/src/main/java/com/google/cloud/memcache/v1/MemcacheVersion.java index 48a5e097..88e86936 100644 --- a/proto-google-cloud-memcache-v1/src/main/java/com/google/cloud/memcache/v1/MemcacheVersion.java +++ b/owl-bot-staging/v1/proto-google-cloud-memcache-v1/src/main/java/com/google/cloud/memcache/v1/MemcacheVersion.java @@ -1,38 +1,22 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/memcache/v1/cloud_memcache.proto package com.google.cloud.memcache.v1; /** - * - * *
  * Memcached versions supported by our service.
  * 
* * Protobuf enum {@code google.cloud.memcache.v1.MemcacheVersion} */ -public enum MemcacheVersion implements com.google.protobuf.ProtocolMessageEnum { - /** MEMCACHE_VERSION_UNSPECIFIED = 0; */ +public enum MemcacheVersion + implements com.google.protobuf.ProtocolMessageEnum { + /** + * MEMCACHE_VERSION_UNSPECIFIED = 0; + */ MEMCACHE_VERSION_UNSPECIFIED(0), /** - * - * *
    * Memcached 1.5 version.
    * 
@@ -43,11 +27,11 @@ public enum MemcacheVersion implements com.google.protobuf.ProtocolMessageEnum { UNRECOGNIZED(-1), ; - /** MEMCACHE_VERSION_UNSPECIFIED = 0; */ + /** + * MEMCACHE_VERSION_UNSPECIFIED = 0; + */ public static final int MEMCACHE_VERSION_UNSPECIFIED_VALUE = 0; /** - * - * *
    * Memcached 1.5 version.
    * 
@@ -56,6 +40,7 @@ public enum MemcacheVersion implements com.google.protobuf.ProtocolMessageEnum { */ public static final int MEMCACHE_1_5_VALUE = 1; + public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( @@ -80,47 +65,48 @@ public static MemcacheVersion valueOf(int value) { */ public static MemcacheVersion forNumber(int value) { switch (value) { - case 0: - return MEMCACHE_VERSION_UNSPECIFIED; - case 1: - return MEMCACHE_1_5; - default: - return null; + case 0: return MEMCACHE_VERSION_UNSPECIFIED; + case 1: return MEMCACHE_1_5; + default: return null; } } - public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { + public static com.google.protobuf.Internal.EnumLiteMap + internalGetValueMap() { return internalValueMap; } - - private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public MemcacheVersion findValueByNumber(int number) { - return MemcacheVersion.forNumber(number); - } - }; - - public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { + private static final com.google.protobuf.Internal.EnumLiteMap< + MemcacheVersion> internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public MemcacheVersion findValueByNumber(int number) { + return MemcacheVersion.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.memcache.v1.CloudMemcacheProto.getDescriptor().getEnumTypes().get(0); } private static final MemcacheVersion[] VALUES = values(); - public static MemcacheVersion valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + public static MemcacheVersion 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; @@ -136,3 +122,4 @@ private MemcacheVersion(int value) { // @@protoc_insertion_point(enum_scope:google.cloud.memcache.v1.MemcacheVersion) } + diff --git a/proto-google-cloud-memcache-v1/src/main/java/com/google/cloud/memcache/v1/OperationMetadata.java b/owl-bot-staging/v1/proto-google-cloud-memcache-v1/src/main/java/com/google/cloud/memcache/v1/OperationMetadata.java similarity index 71% rename from proto-google-cloud-memcache-v1/src/main/java/com/google/cloud/memcache/v1/OperationMetadata.java rename to owl-bot-staging/v1/proto-google-cloud-memcache-v1/src/main/java/com/google/cloud/memcache/v1/OperationMetadata.java index 16236681..f26ab749 100644 --- a/proto-google-cloud-memcache-v1/src/main/java/com/google/cloud/memcache/v1/OperationMetadata.java +++ b/owl-bot-staging/v1/proto-google-cloud-memcache-v1/src/main/java/com/google/cloud/memcache/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/memcache/v1/cloud_memcache.proto package com.google.cloud.memcache.v1; /** - * - * *
  * Represents the metadata of a long-running operation.
  * 
* * Protobuf type {@code google.cloud.memcache.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.memcache.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,40 +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.memcache.v1.CloudMemcacheProto - .internal_static_google_cloud_memcache_v1_OperationMetadata_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.memcache.v1.CloudMemcacheProto.internal_static_google_cloud_memcache_v1_OperationMetadata_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.memcache.v1.CloudMemcacheProto - .internal_static_google_cloud_memcache_v1_OperationMetadata_fieldAccessorTable + return com.google.cloud.memcache.v1.CloudMemcacheProto.internal_static_google_cloud_memcache_v1_OperationMetadata_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.memcache.v1.OperationMetadata.class, - com.google.cloud.memcache.v1.OperationMetadata.Builder.class); + com.google.cloud.memcache.v1.OperationMetadata.class, com.google.cloud.memcache.v1.OperationMetadata.Builder.class); } public static final int CREATE_TIME_FIELD_NUMBER = 1; private com.google.protobuf.Timestamp createTime_; /** - * - * *
    * Output only. Time when the operation was created.
    * 
* - * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the createTime field is set. */ @java.lang.Override @@ -191,15 +160,11 @@ public boolean hasCreateTime() { return createTime_ != null; } /** - * - * *
    * Output only. Time when the operation was created.
    * 
* - * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The createTime. */ @java.lang.Override @@ -207,14 +172,11 @@ public com.google.protobuf.Timestamp getCreateTime() { return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; } /** - * - * *
    * Output only. Time when the operation was created.
    * 
* - * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { @@ -224,15 +186,11 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { public static final int END_TIME_FIELD_NUMBER = 2; private com.google.protobuf.Timestamp endTime_; /** - * - * *
    * Output only. Time when the operation finished running.
    * 
* - * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the endTime field is set. */ @java.lang.Override @@ -240,15 +198,11 @@ public boolean hasEndTime() { return endTime_ != null; } /** - * - * *
    * Output only. Time when the operation finished running.
    * 
* - * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The endTime. */ @java.lang.Override @@ -256,14 +210,11 @@ public com.google.protobuf.Timestamp getEndTime() { return endTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : endTime_; } /** - * - * *
    * Output only. Time when the operation finished running.
    * 
* - * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder() { @@ -273,14 +224,11 @@ public com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder() { public static final int TARGET_FIELD_NUMBER = 3; private volatile java.lang.Object target_; /** - * - * *
    * Output only. Server-defined resource path for the target of the operation.
    * 
* * string target = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The target. */ @java.lang.Override @@ -289,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; } } /** - * - * *
    * Output only. Server-defined resource path for the target of the operation.
    * 
* * string target = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for target. */ @java.lang.Override - public com.google.protobuf.ByteString getTargetBytes() { + public com.google.protobuf.ByteString + getTargetBytes() { java.lang.Object ref = target_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); target_ = b; return b; } else { @@ -322,14 +270,11 @@ public com.google.protobuf.ByteString getTargetBytes() { public static final int VERB_FIELD_NUMBER = 4; private volatile java.lang.Object verb_; /** - * - * *
    * Output only. Name of the verb executed by the operation.
    * 
* * string verb = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The verb. */ @java.lang.Override @@ -338,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; } } /** - * - * *
    * Output only. Name of the verb executed by the operation.
    * 
* * string verb = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for verb. */ @java.lang.Override - public com.google.protobuf.ByteString getVerbBytes() { + public com.google.protobuf.ByteString + getVerbBytes() { java.lang.Object ref = verb_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); verb_ = b; return b; } else { @@ -371,14 +316,11 @@ public com.google.protobuf.ByteString getVerbBytes() { public static final int STATUS_DETAIL_FIELD_NUMBER = 5; private volatile java.lang.Object statusDetail_; /** - * - * *
    * Output only. Human-readable status of the operation, if any.
    * 
* * string status_detail = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The statusDetail. */ @java.lang.Override @@ -387,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; } } /** - * - * *
    * Output only. Human-readable status of the operation, if any.
    * 
* * string status_detail = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @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 { @@ -420,8 +362,6 @@ public com.google.protobuf.ByteString getStatusDetailBytes() { public static final int CANCEL_REQUESTED_FIELD_NUMBER = 6; private boolean cancelRequested_; /** - * - * *
    * Output only. Identifies whether the user has requested cancellation
    * of the operation. Operations that have successfully been cancelled
@@ -430,7 +370,6 @@ public com.google.protobuf.ByteString getStatusDetailBytes() {
    * 
* * bool cancel_requested = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The cancelRequested. */ @java.lang.Override @@ -441,14 +380,11 @@ public boolean getCancelRequested() { public static final int API_VERSION_FIELD_NUMBER = 7; private volatile java.lang.Object apiVersion_; /** - * - * *
    * Output only. API version used to start the operation.
    * 
* * string api_version = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The apiVersion. */ @java.lang.Override @@ -457,29 +393,29 @@ public java.lang.String getApiVersion() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); apiVersion_ = s; return s; } } /** - * - * *
    * Output only. API version used to start the operation.
    * 
* * string api_version = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for apiVersion. */ @java.lang.Override - public com.google.protobuf.ByteString getApiVersionBytes() { + public com.google.protobuf.ByteString + getApiVersionBytes() { java.lang.Object ref = apiVersion_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); apiVersion_ = b; return b; } else { @@ -488,7 +424,6 @@ public com.google.protobuf.ByteString getApiVersionBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -500,7 +435,8 @@ public final boolean isInitialized() { } @java.lang.Override - public 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()); } @@ -532,10 +468,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_); @@ -547,7 +485,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_); @@ -560,27 +499,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.memcache.v1.OperationMetadata)) { return super.equals(obj); } - com.google.cloud.memcache.v1.OperationMetadata other = - (com.google.cloud.memcache.v1.OperationMetadata) obj; + com.google.cloud.memcache.v1.OperationMetadata other = (com.google.cloud.memcache.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; } @@ -607,7 +552,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(); @@ -615,127 +561,118 @@ public int hashCode() { return hash; } - public static com.google.cloud.memcache.v1.OperationMetadata parseFrom(java.nio.ByteBuffer data) + public static com.google.cloud.memcache.v1.OperationMetadata parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.memcache.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.memcache.v1.OperationMetadata parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.memcache.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.memcache.v1.OperationMetadata parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.memcache.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.memcache.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.memcache.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.memcache.v1.OperationMetadata parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.memcache.v1.OperationMetadata parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.memcache.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.memcache.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.memcache.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.memcache.v1.OperationMetadata prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Represents the metadata of a long-running operation.
    * 
* * Protobuf type {@code google.cloud.memcache.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.memcache.v1.OperationMetadata) com.google.cloud.memcache.v1.OperationMetadataOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.memcache.v1.CloudMemcacheProto - .internal_static_google_cloud_memcache_v1_OperationMetadata_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.memcache.v1.CloudMemcacheProto.internal_static_google_cloud_memcache_v1_OperationMetadata_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.memcache.v1.CloudMemcacheProto - .internal_static_google_cloud_memcache_v1_OperationMetadata_fieldAccessorTable + return com.google.cloud.memcache.v1.CloudMemcacheProto.internal_static_google_cloud_memcache_v1_OperationMetadata_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.memcache.v1.OperationMetadata.class, - com.google.cloud.memcache.v1.OperationMetadata.Builder.class); + com.google.cloud.memcache.v1.OperationMetadata.class, com.google.cloud.memcache.v1.OperationMetadata.Builder.class); } // Construct using com.google.cloud.memcache.v1.OperationMetadata.newBuilder() @@ -743,15 +680,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(); @@ -781,9 +719,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.memcache.v1.CloudMemcacheProto - .internal_static_google_cloud_memcache_v1_OperationMetadata_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.memcache.v1.CloudMemcacheProto.internal_static_google_cloud_memcache_v1_OperationMetadata_descriptor; } @java.lang.Override @@ -802,8 +740,7 @@ public com.google.cloud.memcache.v1.OperationMetadata build() { @java.lang.Override public com.google.cloud.memcache.v1.OperationMetadata buildPartial() { - com.google.cloud.memcache.v1.OperationMetadata result = - new com.google.cloud.memcache.v1.OperationMetadata(this); + com.google.cloud.memcache.v1.OperationMetadata result = new com.google.cloud.memcache.v1.OperationMetadata(this); if (createTimeBuilder_ == null) { result.createTime_ = createTime_; } else { @@ -827,39 +764,38 @@ public com.google.cloud.memcache.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.memcache.v1.OperationMetadata) { - return mergeFrom((com.google.cloud.memcache.v1.OperationMetadata) other); + return mergeFrom((com.google.cloud.memcache.v1.OperationMetadata)other); } else { super.mergeFrom(other); return this; @@ -924,58 +860,39 @@ public Builder mergeFrom( private com.google.protobuf.Timestamp createTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> - createTimeBuilder_; + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> createTimeBuilder_; /** - * - * *
      * Output only. Time when the operation was created.
      * 
* - * - * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the createTime field is set. */ public boolean hasCreateTime() { return createTimeBuilder_ != null || createTime_ != null; } /** - * - * *
      * Output only. Time when the operation was created.
      * 
* - * - * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The createTime. */ public com.google.protobuf.Timestamp getCreateTime() { if (createTimeBuilder_ == null) { - return createTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : createTime_; + return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; } else { return createTimeBuilder_.getMessage(); } } /** - * - * *
      * Output only. Time when the operation was created.
      * 
* - * - * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder setCreateTime(com.google.protobuf.Timestamp value) { if (createTimeBuilder_ == null) { @@ -991,17 +908,14 @@ public Builder setCreateTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * Output only. Time when the operation was created.
      * 
* - * - * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setCreateTime( + com.google.protobuf.Timestamp.Builder builderForValue) { if (createTimeBuilder_ == null) { createTime_ = builderForValue.build(); onChanged(); @@ -1012,21 +926,17 @@ public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForVal return this; } /** - * - * *
      * Output only. Time when the operation was created.
      * 
* - * - * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { if (createTimeBuilder_ == null) { if (createTime_ != null) { createTime_ = - com.google.protobuf.Timestamp.newBuilder(createTime_).mergeFrom(value).buildPartial(); + com.google.protobuf.Timestamp.newBuilder(createTime_).mergeFrom(value).buildPartial(); } else { createTime_ = value; } @@ -1038,15 +948,11 @@ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * Output only. Time when the operation was created.
      * 
* - * - * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder clearCreateTime() { if (createTimeBuilder_ == null) { @@ -1060,64 +966,48 @@ public Builder clearCreateTime() { return this; } /** - * - * *
      * Output only. Time when the operation was created.
      * 
* - * - * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { - + onChanged(); return getCreateTimeFieldBuilder().getBuilder(); } /** - * - * *
      * Output only. Time when the operation was created.
      * 
* - * - * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { if (createTimeBuilder_ != null) { return createTimeBuilder_.getMessageOrBuilder(); } else { - return createTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : createTime_; + return createTime_ == null ? + com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; } } /** - * - * *
      * Output only. Time when the operation was created.
      * 
* - * - * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> getCreateTimeFieldBuilder() { if (createTimeBuilder_ == null) { - createTimeBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder>( - getCreateTime(), getParentForChildren(), isClean()); + createTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( + getCreateTime(), + getParentForChildren(), + isClean()); createTime_ = null; } return createTimeBuilder_; @@ -1125,35 +1015,24 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { private com.google.protobuf.Timestamp endTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> - endTimeBuilder_; + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> endTimeBuilder_; /** - * - * *
      * Output only. Time when the operation finished running.
      * 
* - * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the endTime field is set. */ public boolean hasEndTime() { return endTimeBuilder_ != null || endTime_ != null; } /** - * - * *
      * Output only. Time when the operation finished running.
      * 
* - * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The endTime. */ public com.google.protobuf.Timestamp getEndTime() { @@ -1164,14 +1043,11 @@ public com.google.protobuf.Timestamp getEndTime() { } } /** - * - * *
      * Output only. Time when the operation finished running.
      * 
* - * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder setEndTime(com.google.protobuf.Timestamp value) { if (endTimeBuilder_ == null) { @@ -1187,16 +1063,14 @@ public Builder setEndTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * Output only. Time when the operation finished running.
      * 
* - * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - public Builder setEndTime(com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setEndTime( + com.google.protobuf.Timestamp.Builder builderForValue) { if (endTimeBuilder_ == null) { endTime_ = builderForValue.build(); onChanged(); @@ -1207,20 +1081,17 @@ public Builder setEndTime(com.google.protobuf.Timestamp.Builder builderForValue) return this; } /** - * - * *
      * Output only. Time when the operation finished running.
      * 
* - * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder mergeEndTime(com.google.protobuf.Timestamp value) { if (endTimeBuilder_ == null) { if (endTime_ != null) { endTime_ = - com.google.protobuf.Timestamp.newBuilder(endTime_).mergeFrom(value).buildPartial(); + com.google.protobuf.Timestamp.newBuilder(endTime_).mergeFrom(value).buildPartial(); } else { endTime_ = value; } @@ -1232,14 +1103,11 @@ public Builder mergeEndTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * Output only. Time when the operation finished running.
      * 
* - * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder clearEndTime() { if (endTimeBuilder_ == null) { @@ -1253,59 +1121,48 @@ public Builder clearEndTime() { return this; } /** - * - * *
      * Output only. Time when the operation finished running.
      * 
* - * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.protobuf.Timestamp.Builder getEndTimeBuilder() { - + onChanged(); return getEndTimeFieldBuilder().getBuilder(); } /** - * - * *
      * Output only. Time when the operation finished running.
      * 
* - * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder() { if (endTimeBuilder_ != null) { return endTimeBuilder_.getMessageOrBuilder(); } else { - return endTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : endTime_; + return endTime_ == null ? + com.google.protobuf.Timestamp.getDefaultInstance() : endTime_; } } /** - * - * *
      * Output only. Time when the operation finished running.
      * 
* - * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> getEndTimeFieldBuilder() { if (endTimeBuilder_ == null) { - endTimeBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder>( - getEndTime(), getParentForChildren(), isClean()); + endTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( + getEndTime(), + getParentForChildren(), + isClean()); endTime_ = null; } return endTimeBuilder_; @@ -1313,20 +1170,18 @@ public com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder() { private java.lang.Object target_ = ""; /** - * - * *
      * Output only. Server-defined resource path for the target of the operation.
      * 
* * string target = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The target. */ public java.lang.String getTarget() { java.lang.Object ref = target_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); target_ = s; return s; @@ -1335,21 +1190,20 @@ public java.lang.String getTarget() { } } /** - * - * *
      * Output only. Server-defined resource path for the target of the operation.
      * 
* * string target = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for target. */ - public com.google.protobuf.ByteString getTargetBytes() { + public com.google.protobuf.ByteString + getTargetBytes() { java.lang.Object ref = target_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); target_ = b; return b; } else { @@ -1357,61 +1211,54 @@ public com.google.protobuf.ByteString getTargetBytes() { } } /** - * - * *
      * Output only. Server-defined resource path for the target of the operation.
      * 
* * string target = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @param value The target to set. * @return This builder for chaining. */ - public Builder setTarget(java.lang.String value) { + public Builder setTarget( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + target_ = value; onChanged(); return this; } /** - * - * *
      * Output only. Server-defined resource path for the target of the operation.
      * 
* * string target = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return This builder for chaining. */ public Builder clearTarget() { - + target_ = getDefaultInstance().getTarget(); onChanged(); return this; } /** - * - * *
      * Output only. Server-defined resource path for the target of the operation.
      * 
* * string target = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @param value The bytes for target to set. * @return This builder for chaining. */ - public Builder setTargetBytes(com.google.protobuf.ByteString value) { + public Builder setTargetBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + target_ = value; onChanged(); return this; @@ -1419,20 +1266,18 @@ public Builder setTargetBytes(com.google.protobuf.ByteString value) { private java.lang.Object verb_ = ""; /** - * - * *
      * Output only. Name of the verb executed by the operation.
      * 
* * string verb = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The verb. */ public java.lang.String getVerb() { java.lang.Object ref = verb_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); verb_ = s; return s; @@ -1441,21 +1286,20 @@ public java.lang.String getVerb() { } } /** - * - * *
      * Output only. Name of the verb executed by the operation.
      * 
* * string verb = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for verb. */ - public com.google.protobuf.ByteString getVerbBytes() { + public com.google.protobuf.ByteString + getVerbBytes() { java.lang.Object ref = verb_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); verb_ = b; return b; } else { @@ -1463,61 +1307,54 @@ public com.google.protobuf.ByteString getVerbBytes() { } } /** - * - * *
      * Output only. Name of the verb executed by the operation.
      * 
* * string verb = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @param value The verb to set. * @return This builder for chaining. */ - public Builder setVerb(java.lang.String value) { + public Builder setVerb( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + verb_ = value; onChanged(); return this; } /** - * - * *
      * Output only. Name of the verb executed by the operation.
      * 
* * string verb = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return This builder for chaining. */ public Builder clearVerb() { - + verb_ = getDefaultInstance().getVerb(); onChanged(); return this; } /** - * - * *
      * Output only. Name of the verb executed by the operation.
      * 
* * string verb = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @param value The bytes for verb to set. * @return This builder for chaining. */ - public Builder setVerbBytes(com.google.protobuf.ByteString value) { + public Builder setVerbBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + verb_ = value; onChanged(); return this; @@ -1525,20 +1362,18 @@ public Builder setVerbBytes(com.google.protobuf.ByteString value) { private java.lang.Object statusDetail_ = ""; /** - * - * *
      * Output only. Human-readable status of the operation, if any.
      * 
* * string status_detail = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @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; @@ -1547,21 +1382,20 @@ public java.lang.String getStatusDetail() { } } /** - * - * *
      * Output only. Human-readable status of the operation, if any.
      * 
* * string status_detail = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @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 { @@ -1569,70 +1403,61 @@ public com.google.protobuf.ByteString getStatusDetailBytes() { } } /** - * - * *
      * Output only. Human-readable status of the operation, if any.
      * 
* * string status_detail = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @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; } /** - * - * *
      * Output only. Human-readable status of the operation, if any.
      * 
* * string status_detail = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return This builder for chaining. */ public Builder clearStatusDetail() { - + statusDetail_ = getDefaultInstance().getStatusDetail(); onChanged(); return this; } /** - * - * *
      * Output only. Human-readable status of the operation, if any.
      * 
* * string status_detail = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @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_ ; /** - * - * *
      * Output only. Identifies whether the user has requested cancellation
      * of the operation. Operations that have successfully been cancelled
@@ -1641,7 +1466,6 @@ public Builder setStatusDetailBytes(com.google.protobuf.ByteString value) {
      * 
* * bool cancel_requested = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The cancelRequested. */ @java.lang.Override @@ -1649,8 +1473,6 @@ public boolean getCancelRequested() { return cancelRequested_; } /** - * - * *
      * Output only. Identifies whether the user has requested cancellation
      * of the operation. Operations that have successfully been cancelled
@@ -1659,19 +1481,16 @@ public boolean getCancelRequested() {
      * 
* * bool cancel_requested = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @param value The cancelRequested to set. * @return This builder for chaining. */ public Builder setCancelRequested(boolean value) { - + cancelRequested_ = value; onChanged(); return this; } /** - * - * *
      * Output only. Identifies whether the user has requested cancellation
      * of the operation. Operations that have successfully been cancelled
@@ -1680,11 +1499,10 @@ public Builder setCancelRequested(boolean value) {
      * 
* * bool cancel_requested = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return This builder for chaining. */ public Builder clearCancelRequested() { - + cancelRequested_ = false; onChanged(); return this; @@ -1692,20 +1510,18 @@ public Builder clearCancelRequested() { private java.lang.Object apiVersion_ = ""; /** - * - * *
      * Output only. API version used to start the operation.
      * 
* * string api_version = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The apiVersion. */ public java.lang.String getApiVersion() { java.lang.Object ref = apiVersion_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); apiVersion_ = s; return s; @@ -1714,21 +1530,20 @@ public java.lang.String getApiVersion() { } } /** - * - * *
      * Output only. API version used to start the operation.
      * 
* * string api_version = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for apiVersion. */ - public com.google.protobuf.ByteString getApiVersionBytes() { + public com.google.protobuf.ByteString + getApiVersionBytes() { java.lang.Object ref = apiVersion_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); apiVersion_ = b; return b; } else { @@ -1736,68 +1551,61 @@ public com.google.protobuf.ByteString getApiVersionBytes() { } } /** - * - * *
      * Output only. API version used to start the operation.
      * 
* * string api_version = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @param value The apiVersion to set. * @return This builder for chaining. */ - public Builder setApiVersion(java.lang.String value) { + public Builder setApiVersion( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + apiVersion_ = value; onChanged(); return this; } /** - * - * *
      * Output only. API version used to start the operation.
      * 
* * string api_version = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return This builder for chaining. */ public Builder clearApiVersion() { - + apiVersion_ = getDefaultInstance().getApiVersion(); onChanged(); return this; } /** - * - * *
      * Output only. API version used to start the operation.
      * 
* * string api_version = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @param value The bytes for apiVersion to set. * @return This builder for chaining. */ - public Builder setApiVersionBytes(com.google.protobuf.ByteString value) { + public Builder setApiVersionBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + apiVersion_ = value; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1807,12 +1615,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.memcache.v1.OperationMetadata) } // @@protoc_insertion_point(class_scope:google.cloud.memcache.v1.OperationMetadata) private static final com.google.cloud.memcache.v1.OperationMetadata DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.memcache.v1.OperationMetadata(); } @@ -1821,16 +1629,16 @@ public static com.google.cloud.memcache.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; @@ -1845,4 +1653,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.memcache.v1.OperationMetadata getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-memcache-v1/src/main/java/com/google/cloud/memcache/v1/OperationMetadataOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-memcache-v1/src/main/java/com/google/cloud/memcache/v1/OperationMetadataOrBuilder.java similarity index 75% rename from proto-google-cloud-memcache-v1/src/main/java/com/google/cloud/memcache/v1/OperationMetadataOrBuilder.java rename to owl-bot-staging/v1/proto-google-cloud-memcache-v1/src/main/java/com/google/cloud/memcache/v1/OperationMetadataOrBuilder.java index 8181a184..4562cae3 100644 --- a/proto-google-cloud-memcache-v1/src/main/java/com/google/cloud/memcache/v1/OperationMetadataOrBuilder.java +++ b/owl-bot-staging/v1/proto-google-cloud-memcache-v1/src/main/java/com/google/cloud/memcache/v1/OperationMetadataOrBuilder.java @@ -1,182 +1,127 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/memcache/v1/cloud_memcache.proto package com.google.cloud.memcache.v1; -public interface OperationMetadataOrBuilder - extends +public interface OperationMetadataOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.memcache.v1.OperationMetadata) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Output only. Time when the operation was created.
    * 
* - * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the createTime field is set. */ boolean hasCreateTime(); /** - * - * *
    * Output only. Time when the operation was created.
    * 
* - * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The createTime. */ com.google.protobuf.Timestamp getCreateTime(); /** - * - * *
    * Output only. Time when the operation was created.
    * 
* - * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder(); /** - * - * *
    * Output only. Time when the operation finished running.
    * 
* - * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the endTime field is set. */ boolean hasEndTime(); /** - * - * *
    * Output only. Time when the operation finished running.
    * 
* - * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The endTime. */ com.google.protobuf.Timestamp getEndTime(); /** - * - * *
    * Output only. Time when the operation finished running.
    * 
* - * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder(); /** - * - * *
    * Output only. Server-defined resource path for the target of the operation.
    * 
* * string target = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The target. */ java.lang.String getTarget(); /** - * - * *
    * Output only. Server-defined resource path for the target of the operation.
    * 
* * string target = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for target. */ - com.google.protobuf.ByteString getTargetBytes(); + com.google.protobuf.ByteString + getTargetBytes(); /** - * - * *
    * Output only. Name of the verb executed by the operation.
    * 
* * string verb = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The verb. */ java.lang.String getVerb(); /** - * - * *
    * Output only. Name of the verb executed by the operation.
    * 
* * string verb = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for verb. */ - com.google.protobuf.ByteString getVerbBytes(); + com.google.protobuf.ByteString + getVerbBytes(); /** - * - * *
    * Output only. Human-readable status of the operation, if any.
    * 
* * string status_detail = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The statusDetail. */ java.lang.String getStatusDetail(); /** - * - * *
    * Output only. Human-readable status of the operation, if any.
    * 
* * string status_detail = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for statusDetail. */ - com.google.protobuf.ByteString getStatusDetailBytes(); + com.google.protobuf.ByteString + getStatusDetailBytes(); /** - * - * *
    * Output only. Identifies whether the user has requested cancellation
    * of the operation. Operations that have successfully been cancelled
@@ -185,33 +130,27 @@ public interface OperationMetadataOrBuilder
    * 
* * bool cancel_requested = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The cancelRequested. */ boolean getCancelRequested(); /** - * - * *
    * Output only. API version used to start the operation.
    * 
* * string api_version = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The apiVersion. */ java.lang.String getApiVersion(); /** - * - * *
    * Output only. API version used to start the operation.
    * 
* * string api_version = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for apiVersion. */ - com.google.protobuf.ByteString getApiVersionBytes(); + com.google.protobuf.ByteString + getApiVersionBytes(); } diff --git a/proto-google-cloud-memcache-v1/src/main/java/com/google/cloud/memcache/v1/UpdateInstanceRequest.java b/owl-bot-staging/v1/proto-google-cloud-memcache-v1/src/main/java/com/google/cloud/memcache/v1/UpdateInstanceRequest.java similarity index 64% rename from proto-google-cloud-memcache-v1/src/main/java/com/google/cloud/memcache/v1/UpdateInstanceRequest.java rename to owl-bot-staging/v1/proto-google-cloud-memcache-v1/src/main/java/com/google/cloud/memcache/v1/UpdateInstanceRequest.java index 5b6e9c54..2dc58fbd 100644 --- a/proto-google-cloud-memcache-v1/src/main/java/com/google/cloud/memcache/v1/UpdateInstanceRequest.java +++ b/owl-bot-staging/v1/proto-google-cloud-memcache-v1/src/main/java/com/google/cloud/memcache/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/memcache/v1/cloud_memcache.proto package com.google.cloud.memcache.v1; /** - * - * *
  * Request for [UpdateInstance][google.cloud.memcache.v1.CloudMemcache.UpdateInstance].
  * 
* * Protobuf type {@code google.cloud.memcache.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.memcache.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,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.memcache.v1.Instance.Builder subBuilder = null; - if (instance_ != null) { - subBuilder = instance_.toBuilder(); - } - instance_ = - input.readMessage( - com.google.cloud.memcache.v1.Instance.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(instance_); - instance_ = subBuilder.buildPartial(); - } - break; + break; + } + case 18: { + com.google.cloud.memcache.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.memcache.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) { @@ -113,41 +92,35 @@ 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.memcache.v1.CloudMemcacheProto - .internal_static_google_cloud_memcache_v1_UpdateInstanceRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.memcache.v1.CloudMemcacheProto.internal_static_google_cloud_memcache_v1_UpdateInstanceRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.memcache.v1.CloudMemcacheProto - .internal_static_google_cloud_memcache_v1_UpdateInstanceRequest_fieldAccessorTable + return com.google.cloud.memcache.v1.CloudMemcacheProto.internal_static_google_cloud_memcache_v1_UpdateInstanceRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.memcache.v1.UpdateInstanceRequest.class, - com.google.cloud.memcache.v1.UpdateInstanceRequest.Builder.class); + com.google.cloud.memcache.v1.UpdateInstanceRequest.class, com.google.cloud.memcache.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.
    *  *   `displayName`
    * 
* - * .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 @@ -155,16 +128,12 @@ public boolean hasUpdateMask() { return updateMask_ != null; } /** - * - * *
    * Required. Mask of fields to update.
    *  *   `displayName`
    * 
* - * .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 @@ -172,15 +141,12 @@ public com.google.protobuf.FieldMask getUpdateMask() { return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; } /** - * - * *
    * Required. Mask of fields to update.
    *  *   `displayName`
    * 
* - * .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() { @@ -190,17 +156,12 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { public static final int INSTANCE_FIELD_NUMBER = 2; private com.google.cloud.memcache.v1.Instance instance_; /** - * - * *
    * Required. A Memcached Instance.
    * Only fields specified in update_mask are updated.
    * 
* - * - * .google.cloud.memcache.v1.Instance instance = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.memcache.v1.Instance instance = 2 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the instance field is set. */ @java.lang.Override @@ -208,36 +169,25 @@ public boolean hasInstance() { return instance_ != null; } /** - * - * *
    * Required. A Memcached Instance.
    * Only fields specified in update_mask are updated.
    * 
* - * - * .google.cloud.memcache.v1.Instance instance = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.memcache.v1.Instance instance = 2 [(.google.api.field_behavior) = REQUIRED]; * @return The instance. */ @java.lang.Override public com.google.cloud.memcache.v1.Instance getInstance() { - return instance_ == null - ? com.google.cloud.memcache.v1.Instance.getDefaultInstance() - : instance_; + return instance_ == null ? com.google.cloud.memcache.v1.Instance.getDefaultInstance() : instance_; } /** - * - * *
    * Required. A Memcached Instance.
    * Only fields specified in update_mask are updated.
    * 
* - * - * .google.cloud.memcache.v1.Instance instance = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.memcache.v1.Instance instance = 2 [(.google.api.field_behavior) = REQUIRED]; */ @java.lang.Override public com.google.cloud.memcache.v1.InstanceOrBuilder getInstanceOrBuilder() { @@ -245,7 +195,6 @@ public com.google.cloud.memcache.v1.InstanceOrBuilder getInstanceOrBuilder() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -257,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 (updateMask_ != null) { output.writeMessage(1, getUpdateMask()); } @@ -274,10 +224,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; @@ -287,21 +239,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.memcache.v1.UpdateInstanceRequest)) { return super.equals(obj); } - com.google.cloud.memcache.v1.UpdateInstanceRequest other = - (com.google.cloud.memcache.v1.UpdateInstanceRequest) obj; + com.google.cloud.memcache.v1.UpdateInstanceRequest other = (com.google.cloud.memcache.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; @@ -328,126 +281,117 @@ public int hashCode() { } public static com.google.cloud.memcache.v1.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.memcache.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.memcache.v1.UpdateInstanceRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.memcache.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.memcache.v1.UpdateInstanceRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.memcache.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.memcache.v1.UpdateInstanceRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.memcache.v1.UpdateInstanceRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.memcache.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.memcache.v1.UpdateInstanceRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.memcache.v1.UpdateInstanceRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.memcache.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.memcache.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.memcache.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.memcache.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.memcache.v1.CloudMemcache.UpdateInstance].
    * 
* * Protobuf type {@code google.cloud.memcache.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.memcache.v1.UpdateInstanceRequest) com.google.cloud.memcache.v1.UpdateInstanceRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.memcache.v1.CloudMemcacheProto - .internal_static_google_cloud_memcache_v1_UpdateInstanceRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.memcache.v1.CloudMemcacheProto.internal_static_google_cloud_memcache_v1_UpdateInstanceRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.memcache.v1.CloudMemcacheProto - .internal_static_google_cloud_memcache_v1_UpdateInstanceRequest_fieldAccessorTable + return com.google.cloud.memcache.v1.CloudMemcacheProto.internal_static_google_cloud_memcache_v1_UpdateInstanceRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.memcache.v1.UpdateInstanceRequest.class, - com.google.cloud.memcache.v1.UpdateInstanceRequest.Builder.class); + com.google.cloud.memcache.v1.UpdateInstanceRequest.class, com.google.cloud.memcache.v1.UpdateInstanceRequest.Builder.class); } // Construct using com.google.cloud.memcache.v1.UpdateInstanceRequest.newBuilder() @@ -455,15 +399,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(); @@ -483,9 +428,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.memcache.v1.CloudMemcacheProto - .internal_static_google_cloud_memcache_v1_UpdateInstanceRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.memcache.v1.CloudMemcacheProto.internal_static_google_cloud_memcache_v1_UpdateInstanceRequest_descriptor; } @java.lang.Override @@ -504,8 +449,7 @@ public com.google.cloud.memcache.v1.UpdateInstanceRequest build() { @java.lang.Override public com.google.cloud.memcache.v1.UpdateInstanceRequest buildPartial() { - com.google.cloud.memcache.v1.UpdateInstanceRequest result = - new com.google.cloud.memcache.v1.UpdateInstanceRequest(this); + com.google.cloud.memcache.v1.UpdateInstanceRequest result = new com.google.cloud.memcache.v1.UpdateInstanceRequest(this); if (updateMaskBuilder_ == null) { result.updateMask_ = updateMask_; } else { @@ -524,39 +468,38 @@ public com.google.cloud.memcache.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.memcache.v1.UpdateInstanceRequest) { - return mergeFrom((com.google.cloud.memcache.v1.UpdateInstanceRequest) other); + return mergeFrom((com.google.cloud.memcache.v1.UpdateInstanceRequest)other); } else { super.mergeFrom(other); return this; @@ -564,8 +507,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.memcache.v1.UpdateInstanceRequest other) { - if (other == com.google.cloud.memcache.v1.UpdateInstanceRequest.getDefaultInstance()) - return this; + if (other == com.google.cloud.memcache.v1.UpdateInstanceRequest.getDefaultInstance()) return this; if (other.hasUpdateMask()) { mergeUpdateMask(other.getUpdateMask()); } @@ -591,8 +533,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.memcache.v1.UpdateInstanceRequest) e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.memcache.v1.UpdateInstanceRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -604,58 +545,42 @@ 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.
      *  *   `displayName`
      * 
* - * .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.
      *  *   `displayName`
      * 
* - * .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.
      *  *   `displayName`
      * 
* - * .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) { @@ -671,17 +596,15 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask value) { return this; } /** - * - * *
      * Required. Mask of fields to update.
      *  *   `displayName`
      * 
* - * .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(); @@ -692,21 +615,18 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForVal return this; } /** - * - * *
      * Required. Mask of fields to update.
      *  *   `displayName`
      * 
* - * .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; } @@ -718,15 +638,12 @@ public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) { return this; } /** - * - * *
      * Required. Mask of fields to update.
      *  *   `displayName`
      * 
* - * .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) { @@ -740,64 +657,51 @@ public Builder clearUpdateMask() { return this; } /** - * - * *
      * Required. Mask of fields to update.
      *  *   `displayName`
      * 
* - * .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.
      *  *   `displayName`
      * 
* - * .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.
      *  *   `displayName`
      * 
* - * .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_; @@ -805,61 +709,42 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { private com.google.cloud.memcache.v1.Instance instance_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.memcache.v1.Instance, - com.google.cloud.memcache.v1.Instance.Builder, - com.google.cloud.memcache.v1.InstanceOrBuilder> - instanceBuilder_; + com.google.cloud.memcache.v1.Instance, com.google.cloud.memcache.v1.Instance.Builder, com.google.cloud.memcache.v1.InstanceOrBuilder> instanceBuilder_; /** - * - * *
      * Required. A Memcached Instance.
      * Only fields specified in update_mask are updated.
      * 
* - * - * .google.cloud.memcache.v1.Instance instance = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.memcache.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. A Memcached Instance.
      * Only fields specified in update_mask are updated.
      * 
* - * - * .google.cloud.memcache.v1.Instance instance = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.memcache.v1.Instance instance = 2 [(.google.api.field_behavior) = REQUIRED]; * @return The instance. */ public com.google.cloud.memcache.v1.Instance getInstance() { if (instanceBuilder_ == null) { - return instance_ == null - ? com.google.cloud.memcache.v1.Instance.getDefaultInstance() - : instance_; + return instance_ == null ? com.google.cloud.memcache.v1.Instance.getDefaultInstance() : instance_; } else { return instanceBuilder_.getMessage(); } } /** - * - * *
      * Required. A Memcached Instance.
      * Only fields specified in update_mask are updated.
      * 
* - * - * .google.cloud.memcache.v1.Instance instance = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.memcache.v1.Instance instance = 2 [(.google.api.field_behavior) = REQUIRED]; */ public Builder setInstance(com.google.cloud.memcache.v1.Instance value) { if (instanceBuilder_ == null) { @@ -875,18 +760,15 @@ public Builder setInstance(com.google.cloud.memcache.v1.Instance value) { return this; } /** - * - * *
      * Required. A Memcached Instance.
      * Only fields specified in update_mask are updated.
      * 
* - * - * .google.cloud.memcache.v1.Instance instance = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.memcache.v1.Instance instance = 2 [(.google.api.field_behavior) = REQUIRED]; */ - public Builder setInstance(com.google.cloud.memcache.v1.Instance.Builder builderForValue) { + public Builder setInstance( + com.google.cloud.memcache.v1.Instance.Builder builderForValue) { if (instanceBuilder_ == null) { instance_ = builderForValue.build(); onChanged(); @@ -897,24 +779,18 @@ public Builder setInstance(com.google.cloud.memcache.v1.Instance.Builder builder return this; } /** - * - * *
      * Required. A Memcached Instance.
      * Only fields specified in update_mask are updated.
      * 
* - * - * .google.cloud.memcache.v1.Instance instance = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.memcache.v1.Instance instance = 2 [(.google.api.field_behavior) = REQUIRED]; */ public Builder mergeInstance(com.google.cloud.memcache.v1.Instance value) { if (instanceBuilder_ == null) { if (instance_ != null) { instance_ = - com.google.cloud.memcache.v1.Instance.newBuilder(instance_) - .mergeFrom(value) - .buildPartial(); + com.google.cloud.memcache.v1.Instance.newBuilder(instance_).mergeFrom(value).buildPartial(); } else { instance_ = value; } @@ -926,16 +802,12 @@ public Builder mergeInstance(com.google.cloud.memcache.v1.Instance value) { return this; } /** - * - * *
      * Required. A Memcached Instance.
      * Only fields specified in update_mask are updated.
      * 
* - * - * .google.cloud.memcache.v1.Instance instance = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.memcache.v1.Instance instance = 2 [(.google.api.field_behavior) = REQUIRED]; */ public Builder clearInstance() { if (instanceBuilder_ == null) { @@ -949,74 +821,58 @@ public Builder clearInstance() { return this; } /** - * - * *
      * Required. A Memcached Instance.
      * Only fields specified in update_mask are updated.
      * 
* - * - * .google.cloud.memcache.v1.Instance instance = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.memcache.v1.Instance instance = 2 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.cloud.memcache.v1.Instance.Builder getInstanceBuilder() { - + onChanged(); return getInstanceFieldBuilder().getBuilder(); } /** - * - * *
      * Required. A Memcached Instance.
      * Only fields specified in update_mask are updated.
      * 
* - * - * .google.cloud.memcache.v1.Instance instance = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.memcache.v1.Instance instance = 2 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.cloud.memcache.v1.InstanceOrBuilder getInstanceOrBuilder() { if (instanceBuilder_ != null) { return instanceBuilder_.getMessageOrBuilder(); } else { - return instance_ == null - ? com.google.cloud.memcache.v1.Instance.getDefaultInstance() - : instance_; + return instance_ == null ? + com.google.cloud.memcache.v1.Instance.getDefaultInstance() : instance_; } } /** - * - * *
      * Required. A Memcached Instance.
      * Only fields specified in update_mask are updated.
      * 
* - * - * .google.cloud.memcache.v1.Instance instance = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.memcache.v1.Instance instance = 2 [(.google.api.field_behavior) = REQUIRED]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.memcache.v1.Instance, - com.google.cloud.memcache.v1.Instance.Builder, - com.google.cloud.memcache.v1.InstanceOrBuilder> + com.google.cloud.memcache.v1.Instance, com.google.cloud.memcache.v1.Instance.Builder, com.google.cloud.memcache.v1.InstanceOrBuilder> getInstanceFieldBuilder() { if (instanceBuilder_ == null) { - instanceBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.memcache.v1.Instance, - com.google.cloud.memcache.v1.Instance.Builder, - com.google.cloud.memcache.v1.InstanceOrBuilder>( - getInstance(), getParentForChildren(), isClean()); + instanceBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.memcache.v1.Instance, com.google.cloud.memcache.v1.Instance.Builder, com.google.cloud.memcache.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); } @@ -1026,12 +882,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.memcache.v1.UpdateInstanceRequest) } // @@protoc_insertion_point(class_scope:google.cloud.memcache.v1.UpdateInstanceRequest) private static final com.google.cloud.memcache.v1.UpdateInstanceRequest DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.memcache.v1.UpdateInstanceRequest(); } @@ -1040,16 +896,16 @@ public static com.google.cloud.memcache.v1.UpdateInstanceRequest getDefaultInsta 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; @@ -1064,4 +920,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.memcache.v1.UpdateInstanceRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-memcache-v1/src/main/java/com/google/cloud/memcache/v1/UpdateInstanceRequestOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-memcache-v1/src/main/java/com/google/cloud/memcache/v1/UpdateInstanceRequestOrBuilder.java similarity index 57% rename from proto-google-cloud-memcache-v1/src/main/java/com/google/cloud/memcache/v1/UpdateInstanceRequestOrBuilder.java rename to owl-bot-staging/v1/proto-google-cloud-memcache-v1/src/main/java/com/google/cloud/memcache/v1/UpdateInstanceRequestOrBuilder.java index 657bd5f5..bde742e0 100644 --- a/proto-google-cloud-memcache-v1/src/main/java/com/google/cloud/memcache/v1/UpdateInstanceRequestOrBuilder.java +++ b/owl-bot-staging/v1/proto-google-cloud-memcache-v1/src/main/java/com/google/cloud/memcache/v1/UpdateInstanceRequestOrBuilder.java @@ -1,110 +1,69 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/memcache/v1/cloud_memcache.proto package com.google.cloud.memcache.v1; -public interface UpdateInstanceRequestOrBuilder - extends +public interface UpdateInstanceRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.memcache.v1.UpdateInstanceRequest) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Required. Mask of fields to update.
    *  *   `displayName`
    * 
* - * .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.
    *  *   `displayName`
    * 
* - * .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.
    *  *   `displayName`
    * 
* - * .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. A Memcached Instance.
    * Only fields specified in update_mask are updated.
    * 
* - * - * .google.cloud.memcache.v1.Instance instance = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.memcache.v1.Instance instance = 2 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the instance field is set. */ boolean hasInstance(); /** - * - * *
    * Required. A Memcached Instance.
    * Only fields specified in update_mask are updated.
    * 
* - * - * .google.cloud.memcache.v1.Instance instance = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.memcache.v1.Instance instance = 2 [(.google.api.field_behavior) = REQUIRED]; * @return The instance. */ com.google.cloud.memcache.v1.Instance getInstance(); /** - * - * *
    * Required. A Memcached Instance.
    * Only fields specified in update_mask are updated.
    * 
* - * - * .google.cloud.memcache.v1.Instance instance = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.memcache.v1.Instance instance = 2 [(.google.api.field_behavior) = REQUIRED]; */ com.google.cloud.memcache.v1.InstanceOrBuilder getInstanceOrBuilder(); } diff --git a/proto-google-cloud-memcache-v1/src/main/java/com/google/cloud/memcache/v1/UpdateParametersRequest.java b/owl-bot-staging/v1/proto-google-cloud-memcache-v1/src/main/java/com/google/cloud/memcache/v1/UpdateParametersRequest.java similarity index 67% rename from proto-google-cloud-memcache-v1/src/main/java/com/google/cloud/memcache/v1/UpdateParametersRequest.java rename to owl-bot-staging/v1/proto-google-cloud-memcache-v1/src/main/java/com/google/cloud/memcache/v1/UpdateParametersRequest.java index 0d3e5de9..39988baa 100644 --- a/proto-google-cloud-memcache-v1/src/main/java/com/google/cloud/memcache/v1/UpdateParametersRequest.java +++ b/owl-bot-staging/v1/proto-google-cloud-memcache-v1/src/main/java/com/google/cloud/memcache/v1/UpdateParametersRequest.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/memcache/v1/cloud_memcache.proto package com.google.cloud.memcache.v1; /** - * - * *
  * Request for [UpdateParameters][google.cloud.memcache.v1.CloudMemcache.UpdateParameters].
  * 
* * Protobuf type {@code google.cloud.memcache.v1.UpdateParametersRequest} */ -public final class UpdateParametersRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class UpdateParametersRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.memcache.v1.UpdateParametersRequest) UpdateParametersRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use UpdateParametersRequest.newBuilder() to construct. private UpdateParametersRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private UpdateParametersRequest() { name_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new UpdateParametersRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private UpdateParametersRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -70,51 +53,45 @@ private UpdateParametersRequest( case 0: done = true; break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); + case 10: { + java.lang.String s = input.readStringRequireUtf8(); - name_ = s; - break; + name_ = s; + break; + } + case 18: { + com.google.protobuf.FieldMask.Builder subBuilder = null; + if (updateMask_ != null) { + subBuilder = updateMask_.toBuilder(); } - case 18: - { - com.google.protobuf.FieldMask.Builder subBuilder = null; - if (updateMask_ != null) { - subBuilder = updateMask_.toBuilder(); - } - updateMask_ = - input.readMessage(com.google.protobuf.FieldMask.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(updateMask_); - updateMask_ = subBuilder.buildPartial(); - } - - break; + updateMask_ = input.readMessage(com.google.protobuf.FieldMask.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(updateMask_); + updateMask_ = subBuilder.buildPartial(); } - case 26: - { - com.google.cloud.memcache.v1.MemcacheParameters.Builder subBuilder = null; - if (parameters_ != null) { - subBuilder = parameters_.toBuilder(); - } - parameters_ = - input.readMessage( - com.google.cloud.memcache.v1.MemcacheParameters.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(parameters_); - parameters_ = subBuilder.buildPartial(); - } - break; + break; + } + case 26: { + com.google.cloud.memcache.v1.MemcacheParameters.Builder subBuilder = null; + if (parameters_ != null) { + subBuilder = parameters_.toBuilder(); } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + parameters_ = input.readMessage(com.google.cloud.memcache.v1.MemcacheParameters.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(parameters_); + parameters_ = subBuilder.buildPartial(); } + + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -122,42 +99,35 @@ private UpdateParametersRequest( } 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.memcache.v1.CloudMemcacheProto - .internal_static_google_cloud_memcache_v1_UpdateParametersRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.memcache.v1.CloudMemcacheProto.internal_static_google_cloud_memcache_v1_UpdateParametersRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.memcache.v1.CloudMemcacheProto - .internal_static_google_cloud_memcache_v1_UpdateParametersRequest_fieldAccessorTable + return com.google.cloud.memcache.v1.CloudMemcacheProto.internal_static_google_cloud_memcache_v1_UpdateParametersRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.memcache.v1.UpdateParametersRequest.class, - com.google.cloud.memcache.v1.UpdateParametersRequest.Builder.class); + com.google.cloud.memcache.v1.UpdateParametersRequest.class, com.google.cloud.memcache.v1.UpdateParametersRequest.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** - * - * *
    * Required. Resource name of the Memcached instance for which the parameters should be
    * updated.
    * 
* - * - * string name = 1 [(.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 @@ -166,32 +136,30 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** - * - * *
    * Required. Resource name of the Memcached instance for which the parameters should be
    * updated.
    * 
* - * - * string name = 1 [(.google.api.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 { @@ -202,15 +170,11 @@ public com.google.protobuf.ByteString getNameBytes() { public static final int UPDATE_MASK_FIELD_NUMBER = 2; private com.google.protobuf.FieldMask updateMask_; /** - * - * *
    * Required. Mask of fields to update.
    * 
* - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the updateMask field is set. */ @java.lang.Override @@ -218,15 +182,11 @@ public boolean hasUpdateMask() { return updateMask_ != null; } /** - * - * *
    * Required. Mask of fields to update.
    * 
* - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; * @return The updateMask. */ @java.lang.Override @@ -234,14 +194,11 @@ public com.google.protobuf.FieldMask getUpdateMask() { return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; } /** - * - * *
    * Required. Mask of fields to update.
    * 
* - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; */ @java.lang.Override public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { @@ -251,14 +208,11 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { public static final int PARAMETERS_FIELD_NUMBER = 3; private com.google.cloud.memcache.v1.MemcacheParameters parameters_; /** - * - * *
    * The parameters to apply to the instance.
    * 
* * .google.cloud.memcache.v1.MemcacheParameters parameters = 3; - * * @return Whether the parameters field is set. */ @java.lang.Override @@ -266,25 +220,18 @@ public boolean hasParameters() { return parameters_ != null; } /** - * - * *
    * The parameters to apply to the instance.
    * 
* * .google.cloud.memcache.v1.MemcacheParameters parameters = 3; - * * @return The parameters. */ @java.lang.Override public com.google.cloud.memcache.v1.MemcacheParameters getParameters() { - return parameters_ == null - ? com.google.cloud.memcache.v1.MemcacheParameters.getDefaultInstance() - : parameters_; + return parameters_ == null ? com.google.cloud.memcache.v1.MemcacheParameters.getDefaultInstance() : parameters_; } /** - * - * *
    * The parameters to apply to the instance.
    * 
@@ -297,7 +244,6 @@ public com.google.cloud.memcache.v1.MemcacheParametersOrBuilder getParametersOrB } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -309,7 +255,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.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_); } @@ -332,10 +279,12 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); } if (updateMask_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getUpdateMask()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getUpdateMask()); } if (parameters_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getParameters()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(3, getParameters()); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -345,22 +294,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.memcache.v1.UpdateParametersRequest)) { return super.equals(obj); } - com.google.cloud.memcache.v1.UpdateParametersRequest other = - (com.google.cloud.memcache.v1.UpdateParametersRequest) obj; + com.google.cloud.memcache.v1.UpdateParametersRequest other = (com.google.cloud.memcache.v1.UpdateParametersRequest) obj; - if (!getName().equals(other.getName())) return false; + if (!getName() + .equals(other.getName())) return false; if (hasUpdateMask() != other.hasUpdateMask()) return false; if (hasUpdateMask()) { - if (!getUpdateMask().equals(other.getUpdateMask())) return false; + if (!getUpdateMask() + .equals(other.getUpdateMask())) return false; } if (hasParameters() != other.hasParameters()) return false; if (hasParameters()) { - if (!getParameters().equals(other.getParameters())) return false; + if (!getParameters() + .equals(other.getParameters())) return false; } if (!unknownFields.equals(other.unknownFields)) return false; return true; @@ -389,126 +340,117 @@ public int hashCode() { } public static com.google.cloud.memcache.v1.UpdateParametersRequest parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.memcache.v1.UpdateParametersRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.memcache.v1.UpdateParametersRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.memcache.v1.UpdateParametersRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.memcache.v1.UpdateParametersRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.memcache.v1.UpdateParametersRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.memcache.v1.UpdateParametersRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.memcache.v1.UpdateParametersRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.memcache.v1.UpdateParametersRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.memcache.v1.UpdateParametersRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.memcache.v1.UpdateParametersRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.memcache.v1.UpdateParametersRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.memcache.v1.UpdateParametersRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.memcache.v1.UpdateParametersRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.memcache.v1.UpdateParametersRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected 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 [UpdateParameters][google.cloud.memcache.v1.CloudMemcache.UpdateParameters].
    * 
* * Protobuf type {@code google.cloud.memcache.v1.UpdateParametersRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.memcache.v1.UpdateParametersRequest) com.google.cloud.memcache.v1.UpdateParametersRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.memcache.v1.CloudMemcacheProto - .internal_static_google_cloud_memcache_v1_UpdateParametersRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.memcache.v1.CloudMemcacheProto.internal_static_google_cloud_memcache_v1_UpdateParametersRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.memcache.v1.CloudMemcacheProto - .internal_static_google_cloud_memcache_v1_UpdateParametersRequest_fieldAccessorTable + return com.google.cloud.memcache.v1.CloudMemcacheProto.internal_static_google_cloud_memcache_v1_UpdateParametersRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.memcache.v1.UpdateParametersRequest.class, - com.google.cloud.memcache.v1.UpdateParametersRequest.Builder.class); + com.google.cloud.memcache.v1.UpdateParametersRequest.class, com.google.cloud.memcache.v1.UpdateParametersRequest.Builder.class); } // Construct using com.google.cloud.memcache.v1.UpdateParametersRequest.newBuilder() @@ -516,15 +458,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(); @@ -546,9 +489,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.memcache.v1.CloudMemcacheProto - .internal_static_google_cloud_memcache_v1_UpdateParametersRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.memcache.v1.CloudMemcacheProto.internal_static_google_cloud_memcache_v1_UpdateParametersRequest_descriptor; } @java.lang.Override @@ -567,8 +510,7 @@ public com.google.cloud.memcache.v1.UpdateParametersRequest build() { @java.lang.Override public com.google.cloud.memcache.v1.UpdateParametersRequest buildPartial() { - com.google.cloud.memcache.v1.UpdateParametersRequest result = - new com.google.cloud.memcache.v1.UpdateParametersRequest(this); + com.google.cloud.memcache.v1.UpdateParametersRequest result = new com.google.cloud.memcache.v1.UpdateParametersRequest(this); result.name_ = name_; if (updateMaskBuilder_ == null) { result.updateMask_ = updateMask_; @@ -588,39 +530,38 @@ public com.google.cloud.memcache.v1.UpdateParametersRequest buildPartial() { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.memcache.v1.UpdateParametersRequest) { - return mergeFrom((com.google.cloud.memcache.v1.UpdateParametersRequest) other); + return mergeFrom((com.google.cloud.memcache.v1.UpdateParametersRequest)other); } else { super.mergeFrom(other); return this; @@ -628,8 +569,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.memcache.v1.UpdateParametersRequest other) { - if (other == com.google.cloud.memcache.v1.UpdateParametersRequest.getDefaultInstance()) - return this; + if (other == com.google.cloud.memcache.v1.UpdateParametersRequest.getDefaultInstance()) return this; if (!other.getName().isEmpty()) { name_ = other.name_; onChanged(); @@ -659,8 +599,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.memcache.v1.UpdateParametersRequest) e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.memcache.v1.UpdateParametersRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -672,23 +611,19 @@ public Builder mergeFrom( private java.lang.Object name_ = ""; /** - * - * *
      * Required. Resource name of the Memcached instance for which the parameters should be
      * updated.
      * 
* - * - * string name = 1 [(.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; @@ -697,24 +632,21 @@ public java.lang.String getName() { } } /** - * - * *
      * Required. Resource name of the Memcached instance for which the parameters should be
      * updated.
      * 
* - * - * string name = 1 [(.google.api.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 { @@ -722,70 +654,57 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
      * Required. Resource name of the Memcached instance for which the parameters should be
      * updated.
      * 
* - * - * 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. Resource name of the Memcached instance for which the parameters should be
      * updated.
      * 
* - * - * string 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. Resource name of the Memcached instance for which the parameters should be
      * updated.
      * 
* - * - * 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; @@ -793,55 +712,39 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { 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.
      * 
* - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.protobuf.FieldMask update_mask = 2 [(.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.
      * 
* - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.protobuf.FieldMask update_mask = 2 [(.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.
      * 
* - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; */ public Builder setUpdateMask(com.google.protobuf.FieldMask value) { if (updateMaskBuilder_ == null) { @@ -857,16 +760,14 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask value) { return this; } /** - * - * *
      * Required. Mask of fields to update.
      * 
* - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.protobuf.FieldMask update_mask = 2 [(.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(); @@ -877,20 +778,17 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForVal return this; } /** - * - * *
      * Required. Mask of fields to update.
      * 
* - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.protobuf.FieldMask update_mask = 2 [(.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; } @@ -902,14 +800,11 @@ public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) { return this; } /** - * - * *
      * Required. Mask of fields to update.
      * 
* - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; */ public Builder clearUpdateMask() { if (updateMaskBuilder_ == null) { @@ -923,61 +818,48 @@ public Builder clearUpdateMask() { return this; } /** - * - * *
      * Required. Mask of fields to update.
      * 
* - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() { - + onChanged(); return getUpdateMaskFieldBuilder().getBuilder(); } /** - * - * *
      * Required. Mask of fields to update.
      * 
* - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.protobuf.FieldMask update_mask = 2 [(.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.
      * 
* - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.protobuf.FieldMask update_mask = 2 [(.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_; @@ -985,47 +867,34 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { private com.google.cloud.memcache.v1.MemcacheParameters parameters_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.memcache.v1.MemcacheParameters, - com.google.cloud.memcache.v1.MemcacheParameters.Builder, - com.google.cloud.memcache.v1.MemcacheParametersOrBuilder> - parametersBuilder_; + com.google.cloud.memcache.v1.MemcacheParameters, com.google.cloud.memcache.v1.MemcacheParameters.Builder, com.google.cloud.memcache.v1.MemcacheParametersOrBuilder> parametersBuilder_; /** - * - * *
      * The parameters to apply to the instance.
      * 
* * .google.cloud.memcache.v1.MemcacheParameters parameters = 3; - * * @return Whether the parameters field is set. */ public boolean hasParameters() { return parametersBuilder_ != null || parameters_ != null; } /** - * - * *
      * The parameters to apply to the instance.
      * 
* * .google.cloud.memcache.v1.MemcacheParameters parameters = 3; - * * @return The parameters. */ public com.google.cloud.memcache.v1.MemcacheParameters getParameters() { if (parametersBuilder_ == null) { - return parameters_ == null - ? com.google.cloud.memcache.v1.MemcacheParameters.getDefaultInstance() - : parameters_; + return parameters_ == null ? com.google.cloud.memcache.v1.MemcacheParameters.getDefaultInstance() : parameters_; } else { return parametersBuilder_.getMessage(); } } /** - * - * *
      * The parameters to apply to the instance.
      * 
@@ -1046,8 +915,6 @@ public Builder setParameters(com.google.cloud.memcache.v1.MemcacheParameters val return this; } /** - * - * *
      * The parameters to apply to the instance.
      * 
@@ -1066,8 +933,6 @@ public Builder setParameters( return this; } /** - * - * *
      * The parameters to apply to the instance.
      * 
@@ -1078,9 +943,7 @@ public Builder mergeParameters(com.google.cloud.memcache.v1.MemcacheParameters v if (parametersBuilder_ == null) { if (parameters_ != null) { parameters_ = - com.google.cloud.memcache.v1.MemcacheParameters.newBuilder(parameters_) - .mergeFrom(value) - .buildPartial(); + com.google.cloud.memcache.v1.MemcacheParameters.newBuilder(parameters_).mergeFrom(value).buildPartial(); } else { parameters_ = value; } @@ -1092,8 +955,6 @@ public Builder mergeParameters(com.google.cloud.memcache.v1.MemcacheParameters v return this; } /** - * - * *
      * The parameters to apply to the instance.
      * 
@@ -1112,8 +973,6 @@ public Builder clearParameters() { return this; } /** - * - * *
      * The parameters to apply to the instance.
      * 
@@ -1121,13 +980,11 @@ public Builder clearParameters() { * .google.cloud.memcache.v1.MemcacheParameters parameters = 3; */ public com.google.cloud.memcache.v1.MemcacheParameters.Builder getParametersBuilder() { - + onChanged(); return getParametersFieldBuilder().getBuilder(); } /** - * - * *
      * The parameters to apply to the instance.
      * 
@@ -1138,14 +995,11 @@ public com.google.cloud.memcache.v1.MemcacheParametersOrBuilder getParametersOrB if (parametersBuilder_ != null) { return parametersBuilder_.getMessageOrBuilder(); } else { - return parameters_ == null - ? com.google.cloud.memcache.v1.MemcacheParameters.getDefaultInstance() - : parameters_; + return parameters_ == null ? + com.google.cloud.memcache.v1.MemcacheParameters.getDefaultInstance() : parameters_; } } /** - * - * *
      * The parameters to apply to the instance.
      * 
@@ -1153,24 +1007,21 @@ public com.google.cloud.memcache.v1.MemcacheParametersOrBuilder getParametersOrB * .google.cloud.memcache.v1.MemcacheParameters parameters = 3; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.memcache.v1.MemcacheParameters, - com.google.cloud.memcache.v1.MemcacheParameters.Builder, - com.google.cloud.memcache.v1.MemcacheParametersOrBuilder> + com.google.cloud.memcache.v1.MemcacheParameters, com.google.cloud.memcache.v1.MemcacheParameters.Builder, com.google.cloud.memcache.v1.MemcacheParametersOrBuilder> getParametersFieldBuilder() { if (parametersBuilder_ == null) { - parametersBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.memcache.v1.MemcacheParameters, - com.google.cloud.memcache.v1.MemcacheParameters.Builder, - com.google.cloud.memcache.v1.MemcacheParametersOrBuilder>( - getParameters(), getParentForChildren(), isClean()); + parametersBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.memcache.v1.MemcacheParameters, com.google.cloud.memcache.v1.MemcacheParameters.Builder, com.google.cloud.memcache.v1.MemcacheParametersOrBuilder>( + getParameters(), + getParentForChildren(), + isClean()); parameters_ = null; } return parametersBuilder_; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1180,12 +1031,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.memcache.v1.UpdateParametersRequest) } // @@protoc_insertion_point(class_scope:google.cloud.memcache.v1.UpdateParametersRequest) private static final com.google.cloud.memcache.v1.UpdateParametersRequest DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.memcache.v1.UpdateParametersRequest(); } @@ -1194,16 +1045,16 @@ public static com.google.cloud.memcache.v1.UpdateParametersRequest getDefaultIns return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public UpdateParametersRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new UpdateParametersRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public UpdateParametersRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new UpdateParametersRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1218,4 +1069,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.memcache.v1.UpdateParametersRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-memcache-v1/src/main/java/com/google/cloud/memcache/v1/UpdateParametersRequestOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-memcache-v1/src/main/java/com/google/cloud/memcache/v1/UpdateParametersRequestOrBuilder.java similarity index 63% rename from proto-google-cloud-memcache-v1/src/main/java/com/google/cloud/memcache/v1/UpdateParametersRequestOrBuilder.java rename to owl-bot-staging/v1/proto-google-cloud-memcache-v1/src/main/java/com/google/cloud/memcache/v1/UpdateParametersRequestOrBuilder.java index 3c76cc6c..0a08e55c 100644 --- a/proto-google-cloud-memcache-v1/src/main/java/com/google/cloud/memcache/v1/UpdateParametersRequestOrBuilder.java +++ b/owl-bot-staging/v1/proto-google-cloud-memcache-v1/src/main/java/com/google/cloud/memcache/v1/UpdateParametersRequestOrBuilder.java @@ -1,124 +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/memcache/v1/cloud_memcache.proto package com.google.cloud.memcache.v1; -public interface UpdateParametersRequestOrBuilder - extends +public interface UpdateParametersRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.memcache.v1.UpdateParametersRequest) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Required. Resource name of the Memcached instance for which the parameters should be
    * updated.
    * 
* - * - * string name = 1 [(.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. Resource name of the Memcached instance for which the parameters should be
    * updated.
    * 
* - * - * string name = 1 [(.google.api.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. Mask of fields to update.
    * 
* - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the updateMask field is set. */ boolean hasUpdateMask(); /** - * - * *
    * Required. Mask of fields to update.
    * 
* - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; * @return The updateMask. */ com.google.protobuf.FieldMask getUpdateMask(); /** - * - * *
    * Required. Mask of fields to update.
    * 
* - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; */ com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder(); /** - * - * *
    * The parameters to apply to the instance.
    * 
* * .google.cloud.memcache.v1.MemcacheParameters parameters = 3; - * * @return Whether the parameters field is set. */ boolean hasParameters(); /** - * - * *
    * The parameters to apply to the instance.
    * 
* * .google.cloud.memcache.v1.MemcacheParameters parameters = 3; - * * @return The parameters. */ com.google.cloud.memcache.v1.MemcacheParameters getParameters(); /** - * - * *
    * The parameters to apply to the instance.
    * 
diff --git a/proto-google-cloud-memcache-v1/src/main/proto/google/cloud/memcache/v1/cloud_memcache.proto b/owl-bot-staging/v1/proto-google-cloud-memcache-v1/src/main/proto/google/cloud/memcache/v1/cloud_memcache.proto similarity index 100% rename from proto-google-cloud-memcache-v1/src/main/proto/google/cloud/memcache/v1/cloud_memcache.proto rename to owl-bot-staging/v1/proto-google-cloud-memcache-v1/src/main/proto/google/cloud/memcache/v1/cloud_memcache.proto diff --git a/samples/snippets/generated/com/google/cloud/memcache/v1/cloudmemcacheclient/applyparameters/AsyncApplyParameters.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/memcache/v1/cloudmemcacheclient/applyparameters/AsyncApplyParameters.java similarity index 100% rename from samples/snippets/generated/com/google/cloud/memcache/v1/cloudmemcacheclient/applyparameters/AsyncApplyParameters.java rename to owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/memcache/v1/cloudmemcacheclient/applyparameters/AsyncApplyParameters.java diff --git a/samples/snippets/generated/com/google/cloud/memcache/v1/cloudmemcacheclient/applyparameters/AsyncApplyParametersLRO.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/memcache/v1/cloudmemcacheclient/applyparameters/AsyncApplyParametersLRO.java similarity index 100% rename from samples/snippets/generated/com/google/cloud/memcache/v1/cloudmemcacheclient/applyparameters/AsyncApplyParametersLRO.java rename to owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/memcache/v1/cloudmemcacheclient/applyparameters/AsyncApplyParametersLRO.java diff --git a/samples/snippets/generated/com/google/cloud/memcache/v1/cloudmemcacheclient/applyparameters/SyncApplyParameters.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/memcache/v1/cloudmemcacheclient/applyparameters/SyncApplyParameters.java similarity index 100% rename from samples/snippets/generated/com/google/cloud/memcache/v1/cloudmemcacheclient/applyparameters/SyncApplyParameters.java rename to owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/memcache/v1/cloudmemcacheclient/applyparameters/SyncApplyParameters.java diff --git a/samples/snippets/generated/com/google/cloud/memcache/v1/cloudmemcacheclient/applyparameters/SyncApplyParametersInstancenameListstringBoolean.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/memcache/v1/cloudmemcacheclient/applyparameters/SyncApplyParametersInstancenameListstringBoolean.java similarity index 88% rename from samples/snippets/generated/com/google/cloud/memcache/v1/cloudmemcacheclient/applyparameters/SyncApplyParametersInstancenameListstringBoolean.java rename to owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/memcache/v1/cloudmemcacheclient/applyparameters/SyncApplyParametersInstancenameListstringBoolean.java index 3c387967..3006b54f 100644 --- a/samples/snippets/generated/com/google/cloud/memcache/v1/cloudmemcacheclient/applyparameters/SyncApplyParametersInstancenameListstringBoolean.java +++ b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/memcache/v1/cloudmemcacheclient/applyparameters/SyncApplyParametersInstancenameListstringBoolean.java @@ -16,8 +16,7 @@ package com.google.cloud.memcache.v1.samples; -// [START -// memcache_v1_generated_cloudmemcacheclient_applyparameters_instancenameliststringboolean_sync] +// [START memcache_v1_generated_cloudmemcacheclient_applyparameters_instancenameliststringboolean_sync] import com.google.cloud.memcache.v1.CloudMemcacheClient; import com.google.cloud.memcache.v1.Instance; import com.google.cloud.memcache.v1.InstanceName; @@ -41,5 +40,4 @@ public static void syncApplyParametersInstancenameListstringBoolean() throws Exc } } } -// [END -// memcache_v1_generated_cloudmemcacheclient_applyparameters_instancenameliststringboolean_sync] +// [END memcache_v1_generated_cloudmemcacheclient_applyparameters_instancenameliststringboolean_sync] diff --git a/samples/snippets/generated/com/google/cloud/memcache/v1/cloudmemcacheclient/applyparameters/SyncApplyParametersStringListstringBoolean.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/memcache/v1/cloudmemcacheclient/applyparameters/SyncApplyParametersStringListstringBoolean.java similarity index 100% rename from samples/snippets/generated/com/google/cloud/memcache/v1/cloudmemcacheclient/applyparameters/SyncApplyParametersStringListstringBoolean.java rename to owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/memcache/v1/cloudmemcacheclient/applyparameters/SyncApplyParametersStringListstringBoolean.java diff --git a/samples/snippets/generated/com/google/cloud/memcache/v1/cloudmemcacheclient/create/SyncCreateSetCredentialsProvider.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/memcache/v1/cloudmemcacheclient/create/SyncCreateSetCredentialsProvider.java similarity index 100% rename from samples/snippets/generated/com/google/cloud/memcache/v1/cloudmemcacheclient/create/SyncCreateSetCredentialsProvider.java rename to owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/memcache/v1/cloudmemcacheclient/create/SyncCreateSetCredentialsProvider.java diff --git a/samples/snippets/generated/com/google/cloud/memcache/v1/cloudmemcacheclient/create/SyncCreateSetCredentialsProvider1.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/memcache/v1/cloudmemcacheclient/create/SyncCreateSetCredentialsProvider1.java similarity index 100% rename from samples/snippets/generated/com/google/cloud/memcache/v1/cloudmemcacheclient/create/SyncCreateSetCredentialsProvider1.java rename to owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/memcache/v1/cloudmemcacheclient/create/SyncCreateSetCredentialsProvider1.java diff --git a/samples/snippets/generated/com/google/cloud/memcache/v1/cloudmemcacheclient/create/SyncCreateSetEndpoint.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/memcache/v1/cloudmemcacheclient/create/SyncCreateSetEndpoint.java similarity index 100% rename from samples/snippets/generated/com/google/cloud/memcache/v1/cloudmemcacheclient/create/SyncCreateSetEndpoint.java rename to owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/memcache/v1/cloudmemcacheclient/create/SyncCreateSetEndpoint.java diff --git a/samples/snippets/generated/com/google/cloud/memcache/v1/cloudmemcacheclient/createinstance/AsyncCreateInstance.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/memcache/v1/cloudmemcacheclient/createinstance/AsyncCreateInstance.java similarity index 100% rename from samples/snippets/generated/com/google/cloud/memcache/v1/cloudmemcacheclient/createinstance/AsyncCreateInstance.java rename to owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/memcache/v1/cloudmemcacheclient/createinstance/AsyncCreateInstance.java diff --git a/samples/snippets/generated/com/google/cloud/memcache/v1/cloudmemcacheclient/createinstance/AsyncCreateInstanceLRO.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/memcache/v1/cloudmemcacheclient/createinstance/AsyncCreateInstanceLRO.java similarity index 100% rename from samples/snippets/generated/com/google/cloud/memcache/v1/cloudmemcacheclient/createinstance/AsyncCreateInstanceLRO.java rename to owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/memcache/v1/cloudmemcacheclient/createinstance/AsyncCreateInstanceLRO.java diff --git a/samples/snippets/generated/com/google/cloud/memcache/v1/cloudmemcacheclient/createinstance/SyncCreateInstance.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/memcache/v1/cloudmemcacheclient/createinstance/SyncCreateInstance.java similarity index 100% rename from samples/snippets/generated/com/google/cloud/memcache/v1/cloudmemcacheclient/createinstance/SyncCreateInstance.java rename to owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/memcache/v1/cloudmemcacheclient/createinstance/SyncCreateInstance.java diff --git a/samples/snippets/generated/com/google/cloud/memcache/v1/cloudmemcacheclient/createinstance/SyncCreateInstanceLocationnameInstanceString.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/memcache/v1/cloudmemcacheclient/createinstance/SyncCreateInstanceLocationnameInstanceString.java similarity index 100% rename from samples/snippets/generated/com/google/cloud/memcache/v1/cloudmemcacheclient/createinstance/SyncCreateInstanceLocationnameInstanceString.java rename to owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/memcache/v1/cloudmemcacheclient/createinstance/SyncCreateInstanceLocationnameInstanceString.java diff --git a/samples/snippets/generated/com/google/cloud/memcache/v1/cloudmemcacheclient/createinstance/SyncCreateInstanceStringInstanceString.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/memcache/v1/cloudmemcacheclient/createinstance/SyncCreateInstanceStringInstanceString.java similarity index 100% rename from samples/snippets/generated/com/google/cloud/memcache/v1/cloudmemcacheclient/createinstance/SyncCreateInstanceStringInstanceString.java rename to owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/memcache/v1/cloudmemcacheclient/createinstance/SyncCreateInstanceStringInstanceString.java diff --git a/samples/snippets/generated/com/google/cloud/memcache/v1/cloudmemcacheclient/deleteinstance/AsyncDeleteInstance.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/memcache/v1/cloudmemcacheclient/deleteinstance/AsyncDeleteInstance.java similarity index 100% rename from samples/snippets/generated/com/google/cloud/memcache/v1/cloudmemcacheclient/deleteinstance/AsyncDeleteInstance.java rename to owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/memcache/v1/cloudmemcacheclient/deleteinstance/AsyncDeleteInstance.java diff --git a/samples/snippets/generated/com/google/cloud/memcache/v1/cloudmemcacheclient/deleteinstance/AsyncDeleteInstanceLRO.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/memcache/v1/cloudmemcacheclient/deleteinstance/AsyncDeleteInstanceLRO.java similarity index 100% rename from samples/snippets/generated/com/google/cloud/memcache/v1/cloudmemcacheclient/deleteinstance/AsyncDeleteInstanceLRO.java rename to owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/memcache/v1/cloudmemcacheclient/deleteinstance/AsyncDeleteInstanceLRO.java diff --git a/samples/snippets/generated/com/google/cloud/memcache/v1/cloudmemcacheclient/deleteinstance/SyncDeleteInstance.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/memcache/v1/cloudmemcacheclient/deleteinstance/SyncDeleteInstance.java similarity index 97% rename from samples/snippets/generated/com/google/cloud/memcache/v1/cloudmemcacheclient/deleteinstance/SyncDeleteInstance.java rename to owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/memcache/v1/cloudmemcacheclient/deleteinstance/SyncDeleteInstance.java index 7733e6e1..8dce5b77 100644 --- a/samples/snippets/generated/com/google/cloud/memcache/v1/cloudmemcacheclient/deleteinstance/SyncDeleteInstance.java +++ b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/memcache/v1/cloudmemcacheclient/deleteinstance/SyncDeleteInstance.java @@ -20,6 +20,7 @@ import com.google.cloud.memcache.v1.CloudMemcacheClient; import com.google.cloud.memcache.v1.DeleteInstanceRequest; import com.google.cloud.memcache.v1.InstanceName; +import com.google.protobuf.Empty; public class SyncDeleteInstance { diff --git a/samples/snippets/generated/com/google/cloud/memcache/v1/cloudmemcacheclient/deleteinstance/SyncDeleteInstanceInstancename.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/memcache/v1/cloudmemcacheclient/deleteinstance/SyncDeleteInstanceInstancename.java similarity index 97% rename from samples/snippets/generated/com/google/cloud/memcache/v1/cloudmemcacheclient/deleteinstance/SyncDeleteInstanceInstancename.java rename to owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/memcache/v1/cloudmemcacheclient/deleteinstance/SyncDeleteInstanceInstancename.java index 83b558dd..83449acb 100644 --- a/samples/snippets/generated/com/google/cloud/memcache/v1/cloudmemcacheclient/deleteinstance/SyncDeleteInstanceInstancename.java +++ b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/memcache/v1/cloudmemcacheclient/deleteinstance/SyncDeleteInstanceInstancename.java @@ -19,6 +19,7 @@ // [START memcache_v1_generated_cloudmemcacheclient_deleteinstance_instancename_sync] import com.google.cloud.memcache.v1.CloudMemcacheClient; import com.google.cloud.memcache.v1.InstanceName; +import com.google.protobuf.Empty; public class SyncDeleteInstanceInstancename { diff --git a/samples/snippets/generated/com/google/cloud/memcache/v1/cloudmemcacheclient/deleteinstance/SyncDeleteInstanceString.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/memcache/v1/cloudmemcacheclient/deleteinstance/SyncDeleteInstanceString.java similarity index 97% rename from samples/snippets/generated/com/google/cloud/memcache/v1/cloudmemcacheclient/deleteinstance/SyncDeleteInstanceString.java rename to owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/memcache/v1/cloudmemcacheclient/deleteinstance/SyncDeleteInstanceString.java index 15182ba9..e907e459 100644 --- a/samples/snippets/generated/com/google/cloud/memcache/v1/cloudmemcacheclient/deleteinstance/SyncDeleteInstanceString.java +++ b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/memcache/v1/cloudmemcacheclient/deleteinstance/SyncDeleteInstanceString.java @@ -19,6 +19,7 @@ // [START memcache_v1_generated_cloudmemcacheclient_deleteinstance_string_sync] import com.google.cloud.memcache.v1.CloudMemcacheClient; import com.google.cloud.memcache.v1.InstanceName; +import com.google.protobuf.Empty; public class SyncDeleteInstanceString { diff --git a/samples/snippets/generated/com/google/cloud/memcache/v1/cloudmemcacheclient/getinstance/AsyncGetInstance.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/memcache/v1/cloudmemcacheclient/getinstance/AsyncGetInstance.java similarity index 100% rename from samples/snippets/generated/com/google/cloud/memcache/v1/cloudmemcacheclient/getinstance/AsyncGetInstance.java rename to owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/memcache/v1/cloudmemcacheclient/getinstance/AsyncGetInstance.java diff --git a/samples/snippets/generated/com/google/cloud/memcache/v1/cloudmemcacheclient/getinstance/SyncGetInstance.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/memcache/v1/cloudmemcacheclient/getinstance/SyncGetInstance.java similarity index 100% rename from samples/snippets/generated/com/google/cloud/memcache/v1/cloudmemcacheclient/getinstance/SyncGetInstance.java rename to owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/memcache/v1/cloudmemcacheclient/getinstance/SyncGetInstance.java diff --git a/samples/snippets/generated/com/google/cloud/memcache/v1/cloudmemcacheclient/getinstance/SyncGetInstanceInstancename.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/memcache/v1/cloudmemcacheclient/getinstance/SyncGetInstanceInstancename.java similarity index 100% rename from samples/snippets/generated/com/google/cloud/memcache/v1/cloudmemcacheclient/getinstance/SyncGetInstanceInstancename.java rename to owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/memcache/v1/cloudmemcacheclient/getinstance/SyncGetInstanceInstancename.java diff --git a/samples/snippets/generated/com/google/cloud/memcache/v1/cloudmemcacheclient/getinstance/SyncGetInstanceString.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/memcache/v1/cloudmemcacheclient/getinstance/SyncGetInstanceString.java similarity index 100% rename from samples/snippets/generated/com/google/cloud/memcache/v1/cloudmemcacheclient/getinstance/SyncGetInstanceString.java rename to owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/memcache/v1/cloudmemcacheclient/getinstance/SyncGetInstanceString.java diff --git a/samples/snippets/generated/com/google/cloud/memcache/v1/cloudmemcacheclient/listinstances/AsyncListInstances.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/memcache/v1/cloudmemcacheclient/listinstances/AsyncListInstances.java similarity index 100% rename from samples/snippets/generated/com/google/cloud/memcache/v1/cloudmemcacheclient/listinstances/AsyncListInstances.java rename to owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/memcache/v1/cloudmemcacheclient/listinstances/AsyncListInstances.java diff --git a/samples/snippets/generated/com/google/cloud/memcache/v1/cloudmemcacheclient/listinstances/AsyncListInstancesPaged.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/memcache/v1/cloudmemcacheclient/listinstances/AsyncListInstancesPaged.java similarity index 100% rename from samples/snippets/generated/com/google/cloud/memcache/v1/cloudmemcacheclient/listinstances/AsyncListInstancesPaged.java rename to owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/memcache/v1/cloudmemcacheclient/listinstances/AsyncListInstancesPaged.java diff --git a/samples/snippets/generated/com/google/cloud/memcache/v1/cloudmemcacheclient/listinstances/SyncListInstances.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/memcache/v1/cloudmemcacheclient/listinstances/SyncListInstances.java similarity index 100% rename from samples/snippets/generated/com/google/cloud/memcache/v1/cloudmemcacheclient/listinstances/SyncListInstances.java rename to owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/memcache/v1/cloudmemcacheclient/listinstances/SyncListInstances.java diff --git a/samples/snippets/generated/com/google/cloud/memcache/v1/cloudmemcacheclient/listinstances/SyncListInstancesLocationname.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/memcache/v1/cloudmemcacheclient/listinstances/SyncListInstancesLocationname.java similarity index 100% rename from samples/snippets/generated/com/google/cloud/memcache/v1/cloudmemcacheclient/listinstances/SyncListInstancesLocationname.java rename to owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/memcache/v1/cloudmemcacheclient/listinstances/SyncListInstancesLocationname.java diff --git a/samples/snippets/generated/com/google/cloud/memcache/v1/cloudmemcacheclient/listinstances/SyncListInstancesString.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/memcache/v1/cloudmemcacheclient/listinstances/SyncListInstancesString.java similarity index 100% rename from samples/snippets/generated/com/google/cloud/memcache/v1/cloudmemcacheclient/listinstances/SyncListInstancesString.java rename to owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/memcache/v1/cloudmemcacheclient/listinstances/SyncListInstancesString.java diff --git a/samples/snippets/generated/com/google/cloud/memcache/v1/cloudmemcacheclient/updateinstance/AsyncUpdateInstance.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/memcache/v1/cloudmemcacheclient/updateinstance/AsyncUpdateInstance.java similarity index 100% rename from samples/snippets/generated/com/google/cloud/memcache/v1/cloudmemcacheclient/updateinstance/AsyncUpdateInstance.java rename to owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/memcache/v1/cloudmemcacheclient/updateinstance/AsyncUpdateInstance.java diff --git a/samples/snippets/generated/com/google/cloud/memcache/v1/cloudmemcacheclient/updateinstance/AsyncUpdateInstanceLRO.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/memcache/v1/cloudmemcacheclient/updateinstance/AsyncUpdateInstanceLRO.java similarity index 100% rename from samples/snippets/generated/com/google/cloud/memcache/v1/cloudmemcacheclient/updateinstance/AsyncUpdateInstanceLRO.java rename to owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/memcache/v1/cloudmemcacheclient/updateinstance/AsyncUpdateInstanceLRO.java diff --git a/samples/snippets/generated/com/google/cloud/memcache/v1/cloudmemcacheclient/updateinstance/SyncUpdateInstance.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/memcache/v1/cloudmemcacheclient/updateinstance/SyncUpdateInstance.java similarity index 100% rename from samples/snippets/generated/com/google/cloud/memcache/v1/cloudmemcacheclient/updateinstance/SyncUpdateInstance.java rename to owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/memcache/v1/cloudmemcacheclient/updateinstance/SyncUpdateInstance.java diff --git a/samples/snippets/generated/com/google/cloud/memcache/v1/cloudmemcacheclient/updateinstance/SyncUpdateInstanceInstanceFieldmask.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/memcache/v1/cloudmemcacheclient/updateinstance/SyncUpdateInstanceInstanceFieldmask.java similarity index 100% rename from samples/snippets/generated/com/google/cloud/memcache/v1/cloudmemcacheclient/updateinstance/SyncUpdateInstanceInstanceFieldmask.java rename to owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/memcache/v1/cloudmemcacheclient/updateinstance/SyncUpdateInstanceInstanceFieldmask.java diff --git a/samples/snippets/generated/com/google/cloud/memcache/v1/cloudmemcacheclient/updateparameters/AsyncUpdateParameters.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/memcache/v1/cloudmemcacheclient/updateparameters/AsyncUpdateParameters.java similarity index 100% rename from samples/snippets/generated/com/google/cloud/memcache/v1/cloudmemcacheclient/updateparameters/AsyncUpdateParameters.java rename to owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/memcache/v1/cloudmemcacheclient/updateparameters/AsyncUpdateParameters.java diff --git a/samples/snippets/generated/com/google/cloud/memcache/v1/cloudmemcacheclient/updateparameters/AsyncUpdateParametersLRO.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/memcache/v1/cloudmemcacheclient/updateparameters/AsyncUpdateParametersLRO.java similarity index 100% rename from samples/snippets/generated/com/google/cloud/memcache/v1/cloudmemcacheclient/updateparameters/AsyncUpdateParametersLRO.java rename to owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/memcache/v1/cloudmemcacheclient/updateparameters/AsyncUpdateParametersLRO.java diff --git a/samples/snippets/generated/com/google/cloud/memcache/v1/cloudmemcacheclient/updateparameters/SyncUpdateParameters.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/memcache/v1/cloudmemcacheclient/updateparameters/SyncUpdateParameters.java similarity index 100% rename from samples/snippets/generated/com/google/cloud/memcache/v1/cloudmemcacheclient/updateparameters/SyncUpdateParameters.java rename to owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/memcache/v1/cloudmemcacheclient/updateparameters/SyncUpdateParameters.java diff --git a/samples/snippets/generated/com/google/cloud/memcache/v1/cloudmemcacheclient/updateparameters/SyncUpdateParametersInstancenameFieldmaskMemcacheparameters.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/memcache/v1/cloudmemcacheclient/updateparameters/SyncUpdateParametersInstancenameFieldmaskMemcacheparameters.java similarity index 88% rename from samples/snippets/generated/com/google/cloud/memcache/v1/cloudmemcacheclient/updateparameters/SyncUpdateParametersInstancenameFieldmaskMemcacheparameters.java rename to owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/memcache/v1/cloudmemcacheclient/updateparameters/SyncUpdateParametersInstancenameFieldmaskMemcacheparameters.java index b747c648..82cf93b9 100644 --- a/samples/snippets/generated/com/google/cloud/memcache/v1/cloudmemcacheclient/updateparameters/SyncUpdateParametersInstancenameFieldmaskMemcacheparameters.java +++ b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/memcache/v1/cloudmemcacheclient/updateparameters/SyncUpdateParametersInstancenameFieldmaskMemcacheparameters.java @@ -16,8 +16,7 @@ package com.google.cloud.memcache.v1.samples; -// [START -// memcache_v1_generated_cloudmemcacheclient_updateparameters_instancenamefieldmaskmemcacheparameters_sync] +// [START memcache_v1_generated_cloudmemcacheclient_updateparameters_instancenamefieldmaskmemcacheparameters_sync] import com.google.cloud.memcache.v1.CloudMemcacheClient; import com.google.cloud.memcache.v1.Instance; import com.google.cloud.memcache.v1.InstanceName; @@ -43,5 +42,4 @@ public static void syncUpdateParametersInstancenameFieldmaskMemcacheparameters() } } } -// [END -// memcache_v1_generated_cloudmemcacheclient_updateparameters_instancenamefieldmaskmemcacheparameters_sync] +// [END memcache_v1_generated_cloudmemcacheclient_updateparameters_instancenamefieldmaskmemcacheparameters_sync] diff --git a/samples/snippets/generated/com/google/cloud/memcache/v1/cloudmemcacheclient/updateparameters/SyncUpdateParametersStringFieldmaskMemcacheparameters.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/memcache/v1/cloudmemcacheclient/updateparameters/SyncUpdateParametersStringFieldmaskMemcacheparameters.java similarity index 88% rename from samples/snippets/generated/com/google/cloud/memcache/v1/cloudmemcacheclient/updateparameters/SyncUpdateParametersStringFieldmaskMemcacheparameters.java rename to owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/memcache/v1/cloudmemcacheclient/updateparameters/SyncUpdateParametersStringFieldmaskMemcacheparameters.java index 76d6d395..e0a627fc 100644 --- a/samples/snippets/generated/com/google/cloud/memcache/v1/cloudmemcacheclient/updateparameters/SyncUpdateParametersStringFieldmaskMemcacheparameters.java +++ b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/memcache/v1/cloudmemcacheclient/updateparameters/SyncUpdateParametersStringFieldmaskMemcacheparameters.java @@ -16,8 +16,7 @@ package com.google.cloud.memcache.v1.samples; -// [START -// memcache_v1_generated_cloudmemcacheclient_updateparameters_stringfieldmaskmemcacheparameters_sync] +// [START memcache_v1_generated_cloudmemcacheclient_updateparameters_stringfieldmaskmemcacheparameters_sync] import com.google.cloud.memcache.v1.CloudMemcacheClient; import com.google.cloud.memcache.v1.Instance; import com.google.cloud.memcache.v1.InstanceName; @@ -42,5 +41,4 @@ public static void syncUpdateParametersStringFieldmaskMemcacheparameters() throw } } } -// [END -// memcache_v1_generated_cloudmemcacheclient_updateparameters_stringfieldmaskmemcacheparameters_sync] +// [END memcache_v1_generated_cloudmemcacheclient_updateparameters_stringfieldmaskmemcacheparameters_sync] diff --git a/samples/snippets/generated/com/google/cloud/memcache/v1/cloudmemcachesettings/getinstance/SyncGetInstance.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/memcache/v1/cloudmemcachesettings/getinstance/SyncGetInstance.java similarity index 100% rename from samples/snippets/generated/com/google/cloud/memcache/v1/cloudmemcachesettings/getinstance/SyncGetInstance.java rename to owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/memcache/v1/cloudmemcachesettings/getinstance/SyncGetInstance.java diff --git a/samples/snippets/generated/com/google/cloud/memcache/v1/stub/cloudmemcachestubsettings/getinstance/SyncGetInstance.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/memcache/v1/stub/cloudmemcachestubsettings/getinstance/SyncGetInstance.java similarity index 100% rename from samples/snippets/generated/com/google/cloud/memcache/v1/stub/cloudmemcachestubsettings/getinstance/SyncGetInstance.java rename to owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/memcache/v1/stub/cloudmemcachestubsettings/getinstance/SyncGetInstance.java diff --git a/google-cloud-memcache/src/main/java/com/google/cloud/memcache/v1beta2/CloudMemcacheClient.java b/owl-bot-staging/v1beta2/google-cloud-memcache/src/main/java/com/google/cloud/memcache/v1beta2/CloudMemcacheClient.java similarity index 97% rename from google-cloud-memcache/src/main/java/com/google/cloud/memcache/v1beta2/CloudMemcacheClient.java rename to owl-bot-staging/v1beta2/google-cloud-memcache/src/main/java/com/google/cloud/memcache/v1beta2/CloudMemcacheClient.java index 30cc7a04..71fd7427 100644 --- a/google-cloud-memcache/src/main/java/com/google/cloud/memcache/v1beta2/CloudMemcacheClient.java +++ b/owl-bot-staging/v1beta2/google-cloud-memcache/src/main/java/com/google/cloud/memcache/v1beta2/CloudMemcacheClient.java @@ -48,17 +48,17 @@ * Memcached below) 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 Memcached instances, named: `/instances/*` - *
  • As such, Memcached 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 Memcached instances, named: `/instances/*` + *
  • As such, Memcached instances are resources of the form: * `/projects/{project_id}/locations/{location_id}/instances/{instance_id}` *
* *

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

    - *
  • `projects/my-memcached-project/locations/us-central1/instances/my-memcached` + *
  • `projects/my-memcached-project/locations/us-central1/instances/my-memcached` *
* *

This class provides the ability to make remote calls to the backing service through method @@ -80,13 +80,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. *
* @@ -208,6 +208,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; } @@ -490,11 +491,11 @@ public final UnaryCallable getInstanceCallable() { * @param instanceId Required. The logical name of the Memcached instance in the user 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 user 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 user project / location. *
*

If any of the above are not met, the API raises an invalid argument error. * @param resource Required. A Memcached [Instance] resource @@ -534,11 +535,11 @@ public final OperationFuture createInstanceAsync( * @param instanceId Required. The logical name of the Memcached instance in the user 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 user 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 user project / location. *
*

If any of the above are not met, the API raises an invalid argument error. * @param resource Required. A Memcached [Instance] resource @@ -1388,10 +1389,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( @@ -1441,10 +1439,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-memcache/src/main/java/com/google/cloud/memcache/v1beta2/CloudMemcacheSettings.java b/owl-bot-staging/v1beta2/google-cloud-memcache/src/main/java/com/google/cloud/memcache/v1beta2/CloudMemcacheSettings.java similarity index 97% rename from google-cloud-memcache/src/main/java/com/google/cloud/memcache/v1beta2/CloudMemcacheSettings.java rename to owl-bot-staging/v1beta2/google-cloud-memcache/src/main/java/com/google/cloud/memcache/v1beta2/CloudMemcacheSettings.java index 51da4ed8..c76826d3 100644 --- a/google-cloud-memcache/src/main/java/com/google/cloud/memcache/v1beta2/CloudMemcacheSettings.java +++ b/owl-bot-staging/v1beta2/google-cloud-memcache/src/main/java/com/google/cloud/memcache/v1beta2/CloudMemcacheSettings.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.memcache.v1beta2.stub.CloudMemcacheStubSettings; @@ -45,9 +46,9 @@ *

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

    - *
  • The default service address (memcache.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 (memcache.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-memcache/src/main/java/com/google/cloud/memcache/v1beta2/gapic_metadata.json b/owl-bot-staging/v1beta2/google-cloud-memcache/src/main/java/com/google/cloud/memcache/v1beta2/gapic_metadata.json similarity index 100% rename from google-cloud-memcache/src/main/java/com/google/cloud/memcache/v1beta2/gapic_metadata.json rename to owl-bot-staging/v1beta2/google-cloud-memcache/src/main/java/com/google/cloud/memcache/v1beta2/gapic_metadata.json diff --git a/google-cloud-memcache/src/main/java/com/google/cloud/memcache/v1beta2/package-info.java b/owl-bot-staging/v1beta2/google-cloud-memcache/src/main/java/com/google/cloud/memcache/v1beta2/package-info.java similarity index 81% rename from google-cloud-memcache/src/main/java/com/google/cloud/memcache/v1beta2/package-info.java rename to owl-bot-staging/v1beta2/google-cloud-memcache/src/main/java/com/google/cloud/memcache/v1beta2/package-info.java index 96cda576..886fa704 100644 --- a/google-cloud-memcache/src/main/java/com/google/cloud/memcache/v1beta2/package-info.java +++ b/owl-bot-staging/v1beta2/google-cloud-memcache/src/main/java/com/google/cloud/memcache/v1beta2/package-info.java @@ -26,17 +26,17 @@ * Memcached below) 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 Memcached instances, named: `/instances/*` - *
  • As such, Memcached 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 Memcached instances, named: `/instances/*` + *
  • As such, Memcached instances are resources of the form: * `/projects/{project_id}/locations/{location_id}/instances/{instance_id}` *
* *

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

    - *
  • `projects/my-memcached-project/locations/us-central1/instances/my-memcached` + *
  • `projects/my-memcached-project/locations/us-central1/instances/my-memcached` *
* *

Sample for CloudMemcacheClient: diff --git a/google-cloud-memcache/src/main/java/com/google/cloud/memcache/v1beta2/stub/CloudMemcacheStub.java b/owl-bot-staging/v1beta2/google-cloud-memcache/src/main/java/com/google/cloud/memcache/v1beta2/stub/CloudMemcacheStub.java similarity index 100% rename from google-cloud-memcache/src/main/java/com/google/cloud/memcache/v1beta2/stub/CloudMemcacheStub.java rename to owl-bot-staging/v1beta2/google-cloud-memcache/src/main/java/com/google/cloud/memcache/v1beta2/stub/CloudMemcacheStub.java diff --git a/google-cloud-memcache/src/main/java/com/google/cloud/memcache/v1beta2/stub/CloudMemcacheStubSettings.java b/owl-bot-staging/v1beta2/google-cloud-memcache/src/main/java/com/google/cloud/memcache/v1beta2/stub/CloudMemcacheStubSettings.java similarity index 99% rename from google-cloud-memcache/src/main/java/com/google/cloud/memcache/v1beta2/stub/CloudMemcacheStubSettings.java rename to owl-bot-staging/v1beta2/google-cloud-memcache/src/main/java/com/google/cloud/memcache/v1beta2/stub/CloudMemcacheStubSettings.java index 90fb09a6..d9b2ac0a 100644 --- a/google-cloud-memcache/src/main/java/com/google/cloud/memcache/v1beta2/stub/CloudMemcacheStubSettings.java +++ b/owl-bot-staging/v1beta2/google-cloud-memcache/src/main/java/com/google/cloud/memcache/v1beta2/stub/CloudMemcacheStubSettings.java @@ -76,9 +76,9 @@ *

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

    - *
  • The default service address (memcache.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 (memcache.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-memcache/src/main/java/com/google/cloud/memcache/v1beta2/stub/GrpcCloudMemcacheCallableFactory.java b/owl-bot-staging/v1beta2/google-cloud-memcache/src/main/java/com/google/cloud/memcache/v1beta2/stub/GrpcCloudMemcacheCallableFactory.java similarity index 100% rename from google-cloud-memcache/src/main/java/com/google/cloud/memcache/v1beta2/stub/GrpcCloudMemcacheCallableFactory.java rename to owl-bot-staging/v1beta2/google-cloud-memcache/src/main/java/com/google/cloud/memcache/v1beta2/stub/GrpcCloudMemcacheCallableFactory.java diff --git a/google-cloud-memcache/src/main/java/com/google/cloud/memcache/v1beta2/stub/GrpcCloudMemcacheStub.java b/owl-bot-staging/v1beta2/google-cloud-memcache/src/main/java/com/google/cloud/memcache/v1beta2/stub/GrpcCloudMemcacheStub.java similarity index 99% rename from google-cloud-memcache/src/main/java/com/google/cloud/memcache/v1beta2/stub/GrpcCloudMemcacheStub.java rename to owl-bot-staging/v1beta2/google-cloud-memcache/src/main/java/com/google/cloud/memcache/v1beta2/stub/GrpcCloudMemcacheStub.java index 65e359bb..37275a64 100644 --- a/google-cloud-memcache/src/main/java/com/google/cloud/memcache/v1beta2/stub/GrpcCloudMemcacheStub.java +++ b/owl-bot-staging/v1beta2/google-cloud-memcache/src/main/java/com/google/cloud/memcache/v1beta2/stub/GrpcCloudMemcacheStub.java @@ -44,6 +44,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-memcache/src/main/java/com/google/cloud/memcache/v1beta2/stub/HttpJsonCloudMemcacheCallableFactory.java b/owl-bot-staging/v1beta2/google-cloud-memcache/src/main/java/com/google/cloud/memcache/v1beta2/stub/HttpJsonCloudMemcacheCallableFactory.java similarity index 100% rename from google-cloud-memcache/src/main/java/com/google/cloud/memcache/v1beta2/stub/HttpJsonCloudMemcacheCallableFactory.java rename to owl-bot-staging/v1beta2/google-cloud-memcache/src/main/java/com/google/cloud/memcache/v1beta2/stub/HttpJsonCloudMemcacheCallableFactory.java diff --git a/google-cloud-memcache/src/main/java/com/google/cloud/memcache/v1beta2/stub/HttpJsonCloudMemcacheStub.java b/owl-bot-staging/v1beta2/google-cloud-memcache/src/main/java/com/google/cloud/memcache/v1beta2/stub/HttpJsonCloudMemcacheStub.java similarity index 99% rename from google-cloud-memcache/src/main/java/com/google/cloud/memcache/v1beta2/stub/HttpJsonCloudMemcacheStub.java rename to owl-bot-staging/v1beta2/google-cloud-memcache/src/main/java/com/google/cloud/memcache/v1beta2/stub/HttpJsonCloudMemcacheStub.java index f034b57b..c5319b7f 100644 --- a/google-cloud-memcache/src/main/java/com/google/cloud/memcache/v1beta2/stub/HttpJsonCloudMemcacheStub.java +++ b/owl-bot-staging/v1beta2/google-cloud-memcache/src/main/java/com/google/cloud/memcache/v1beta2/stub/HttpJsonCloudMemcacheStub.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-memcache/src/test/java/com/google/cloud/memcache/v1beta2/CloudMemcacheClientHttpJsonTest.java b/owl-bot-staging/v1beta2/google-cloud-memcache/src/test/java/com/google/cloud/memcache/v1beta2/CloudMemcacheClientHttpJsonTest.java similarity index 100% rename from google-cloud-memcache/src/test/java/com/google/cloud/memcache/v1beta2/CloudMemcacheClientHttpJsonTest.java rename to owl-bot-staging/v1beta2/google-cloud-memcache/src/test/java/com/google/cloud/memcache/v1beta2/CloudMemcacheClientHttpJsonTest.java diff --git a/google-cloud-memcache/src/test/java/com/google/cloud/memcache/v1beta2/CloudMemcacheClientTest.java b/owl-bot-staging/v1beta2/google-cloud-memcache/src/test/java/com/google/cloud/memcache/v1beta2/CloudMemcacheClientTest.java similarity index 100% rename from google-cloud-memcache/src/test/java/com/google/cloud/memcache/v1beta2/CloudMemcacheClientTest.java rename to owl-bot-staging/v1beta2/google-cloud-memcache/src/test/java/com/google/cloud/memcache/v1beta2/CloudMemcacheClientTest.java diff --git a/google-cloud-memcache/src/test/java/com/google/cloud/memcache/v1beta2/MockCloudMemcache.java b/owl-bot-staging/v1beta2/google-cloud-memcache/src/test/java/com/google/cloud/memcache/v1beta2/MockCloudMemcache.java similarity index 100% rename from google-cloud-memcache/src/test/java/com/google/cloud/memcache/v1beta2/MockCloudMemcache.java rename to owl-bot-staging/v1beta2/google-cloud-memcache/src/test/java/com/google/cloud/memcache/v1beta2/MockCloudMemcache.java diff --git a/google-cloud-memcache/src/test/java/com/google/cloud/memcache/v1beta2/MockCloudMemcacheImpl.java b/owl-bot-staging/v1beta2/google-cloud-memcache/src/test/java/com/google/cloud/memcache/v1beta2/MockCloudMemcacheImpl.java similarity index 100% rename from google-cloud-memcache/src/test/java/com/google/cloud/memcache/v1beta2/MockCloudMemcacheImpl.java rename to owl-bot-staging/v1beta2/google-cloud-memcache/src/test/java/com/google/cloud/memcache/v1beta2/MockCloudMemcacheImpl.java diff --git a/owl-bot-staging/v1beta2/grpc-google-cloud-memcache-v1beta2/src/main/java/com/google/cloud/memcache/v1beta2/CloudMemcacheGrpc.java b/owl-bot-staging/v1beta2/grpc-google-cloud-memcache-v1beta2/src/main/java/com/google/cloud/memcache/v1beta2/CloudMemcacheGrpc.java new file mode 100644 index 00000000..186e9cf9 --- /dev/null +++ b/owl-bot-staging/v1beta2/grpc-google-cloud-memcache-v1beta2/src/main/java/com/google/cloud/memcache/v1beta2/CloudMemcacheGrpc.java @@ -0,0 +1,976 @@ +package com.google.cloud.memcache.v1beta2; + +import static io.grpc.MethodDescriptor.generateFullMethodName; + +/** + *

+ * Configures and manages Cloud Memorystore for Memcached instances.
+ * The `memcache.googleapis.com` service implements the Google Cloud Memorystore
+ * for Memcached API and defines the following resource model for managing
+ * Memorystore Memcached (also called Memcached below) 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 Memcached instances, named:
+ * `/instances/*`
+ * * As such, Memcached instances are resources of the form:
+ *   `/projects/{project_id}/locations/{location_id}/instances/{instance_id}`
+ * Note that location_id must be a GCP `region`; for example:
+ * * `projects/my-memcached-project/locations/us-central1/instances/my-memcached`
+ * 
+ */ +@javax.annotation.Generated( + value = "by gRPC proto compiler", + comments = "Source: google/cloud/memcache/v1beta2/cloud_memcache.proto") +@io.grpc.stub.annotations.GrpcGenerated +public final class CloudMemcacheGrpc { + + private CloudMemcacheGrpc() {} + + public static final String SERVICE_NAME = "google.cloud.memcache.v1beta2.CloudMemcache"; + + // Static method descriptors that strictly reflect the proto. + private static volatile io.grpc.MethodDescriptor getListInstancesMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "ListInstances", + requestType = com.google.cloud.memcache.v1beta2.ListInstancesRequest.class, + responseType = com.google.cloud.memcache.v1beta2.ListInstancesResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getListInstancesMethod() { + io.grpc.MethodDescriptor getListInstancesMethod; + if ((getListInstancesMethod = CloudMemcacheGrpc.getListInstancesMethod) == null) { + synchronized (CloudMemcacheGrpc.class) { + if ((getListInstancesMethod = CloudMemcacheGrpc.getListInstancesMethod) == null) { + CloudMemcacheGrpc.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.memcache.v1beta2.ListInstancesRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.memcache.v1beta2.ListInstancesResponse.getDefaultInstance())) + .setSchemaDescriptor(new CloudMemcacheMethodDescriptorSupplier("ListInstances")) + .build(); + } + } + } + return getListInstancesMethod; + } + + private static volatile io.grpc.MethodDescriptor getGetInstanceMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "GetInstance", + requestType = com.google.cloud.memcache.v1beta2.GetInstanceRequest.class, + responseType = com.google.cloud.memcache.v1beta2.Instance.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getGetInstanceMethod() { + io.grpc.MethodDescriptor getGetInstanceMethod; + if ((getGetInstanceMethod = CloudMemcacheGrpc.getGetInstanceMethod) == null) { + synchronized (CloudMemcacheGrpc.class) { + if ((getGetInstanceMethod = CloudMemcacheGrpc.getGetInstanceMethod) == null) { + CloudMemcacheGrpc.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.memcache.v1beta2.GetInstanceRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.memcache.v1beta2.Instance.getDefaultInstance())) + .setSchemaDescriptor(new CloudMemcacheMethodDescriptorSupplier("GetInstance")) + .build(); + } + } + } + return getGetInstanceMethod; + } + + private static volatile io.grpc.MethodDescriptor getCreateInstanceMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "CreateInstance", + requestType = com.google.cloud.memcache.v1beta2.CreateInstanceRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getCreateInstanceMethod() { + io.grpc.MethodDescriptor getCreateInstanceMethod; + if ((getCreateInstanceMethod = CloudMemcacheGrpc.getCreateInstanceMethod) == null) { + synchronized (CloudMemcacheGrpc.class) { + if ((getCreateInstanceMethod = CloudMemcacheGrpc.getCreateInstanceMethod) == null) { + CloudMemcacheGrpc.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.memcache.v1beta2.CreateInstanceRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor(new CloudMemcacheMethodDescriptorSupplier("CreateInstance")) + .build(); + } + } + } + return getCreateInstanceMethod; + } + + private static volatile io.grpc.MethodDescriptor getUpdateInstanceMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "UpdateInstance", + requestType = com.google.cloud.memcache.v1beta2.UpdateInstanceRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getUpdateInstanceMethod() { + io.grpc.MethodDescriptor getUpdateInstanceMethod; + if ((getUpdateInstanceMethod = CloudMemcacheGrpc.getUpdateInstanceMethod) == null) { + synchronized (CloudMemcacheGrpc.class) { + if ((getUpdateInstanceMethod = CloudMemcacheGrpc.getUpdateInstanceMethod) == null) { + CloudMemcacheGrpc.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.memcache.v1beta2.UpdateInstanceRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor(new CloudMemcacheMethodDescriptorSupplier("UpdateInstance")) + .build(); + } + } + } + return getUpdateInstanceMethod; + } + + private static volatile io.grpc.MethodDescriptor getUpdateParametersMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "UpdateParameters", + requestType = com.google.cloud.memcache.v1beta2.UpdateParametersRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getUpdateParametersMethod() { + io.grpc.MethodDescriptor getUpdateParametersMethod; + if ((getUpdateParametersMethod = CloudMemcacheGrpc.getUpdateParametersMethod) == null) { + synchronized (CloudMemcacheGrpc.class) { + if ((getUpdateParametersMethod = CloudMemcacheGrpc.getUpdateParametersMethod) == null) { + CloudMemcacheGrpc.getUpdateParametersMethod = getUpdateParametersMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "UpdateParameters")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.memcache.v1beta2.UpdateParametersRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor(new CloudMemcacheMethodDescriptorSupplier("UpdateParameters")) + .build(); + } + } + } + return getUpdateParametersMethod; + } + + private static volatile io.grpc.MethodDescriptor getDeleteInstanceMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "DeleteInstance", + requestType = com.google.cloud.memcache.v1beta2.DeleteInstanceRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getDeleteInstanceMethod() { + io.grpc.MethodDescriptor getDeleteInstanceMethod; + if ((getDeleteInstanceMethod = CloudMemcacheGrpc.getDeleteInstanceMethod) == null) { + synchronized (CloudMemcacheGrpc.class) { + if ((getDeleteInstanceMethod = CloudMemcacheGrpc.getDeleteInstanceMethod) == null) { + CloudMemcacheGrpc.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.memcache.v1beta2.DeleteInstanceRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor(new CloudMemcacheMethodDescriptorSupplier("DeleteInstance")) + .build(); + } + } + } + return getDeleteInstanceMethod; + } + + private static volatile io.grpc.MethodDescriptor getApplyParametersMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "ApplyParameters", + requestType = com.google.cloud.memcache.v1beta2.ApplyParametersRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getApplyParametersMethod() { + io.grpc.MethodDescriptor getApplyParametersMethod; + if ((getApplyParametersMethod = CloudMemcacheGrpc.getApplyParametersMethod) == null) { + synchronized (CloudMemcacheGrpc.class) { + if ((getApplyParametersMethod = CloudMemcacheGrpc.getApplyParametersMethod) == null) { + CloudMemcacheGrpc.getApplyParametersMethod = getApplyParametersMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ApplyParameters")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.memcache.v1beta2.ApplyParametersRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor(new CloudMemcacheMethodDescriptorSupplier("ApplyParameters")) + .build(); + } + } + } + return getApplyParametersMethod; + } + + private static volatile io.grpc.MethodDescriptor getApplySoftwareUpdateMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "ApplySoftwareUpdate", + requestType = com.google.cloud.memcache.v1beta2.ApplySoftwareUpdateRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getApplySoftwareUpdateMethod() { + io.grpc.MethodDescriptor getApplySoftwareUpdateMethod; + if ((getApplySoftwareUpdateMethod = CloudMemcacheGrpc.getApplySoftwareUpdateMethod) == null) { + synchronized (CloudMemcacheGrpc.class) { + if ((getApplySoftwareUpdateMethod = CloudMemcacheGrpc.getApplySoftwareUpdateMethod) == null) { + CloudMemcacheGrpc.getApplySoftwareUpdateMethod = getApplySoftwareUpdateMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ApplySoftwareUpdate")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.memcache.v1beta2.ApplySoftwareUpdateRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor(new CloudMemcacheMethodDescriptorSupplier("ApplySoftwareUpdate")) + .build(); + } + } + } + return getApplySoftwareUpdateMethod; + } + + /** + * Creates a new async stub that supports all call types for the service + */ + public static CloudMemcacheStub newStub(io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public CloudMemcacheStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new CloudMemcacheStub(channel, callOptions); + } + }; + return CloudMemcacheStub.newStub(factory, channel); + } + + /** + * Creates a new blocking-style stub that supports unary and streaming output calls on the service + */ + public static CloudMemcacheBlockingStub newBlockingStub( + io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public CloudMemcacheBlockingStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new CloudMemcacheBlockingStub(channel, callOptions); + } + }; + return CloudMemcacheBlockingStub.newStub(factory, channel); + } + + /** + * Creates a new ListenableFuture-style stub that supports unary calls on the service + */ + public static CloudMemcacheFutureStub newFutureStub( + io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public CloudMemcacheFutureStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new CloudMemcacheFutureStub(channel, callOptions); + } + }; + return CloudMemcacheFutureStub.newStub(factory, channel); + } + + /** + *
+   * Configures and manages Cloud Memorystore for Memcached instances.
+   * The `memcache.googleapis.com` service implements the Google Cloud Memorystore
+   * for Memcached API and defines the following resource model for managing
+   * Memorystore Memcached (also called Memcached below) 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 Memcached instances, named:
+   * `/instances/*`
+   * * As such, Memcached instances are resources of the form:
+   *   `/projects/{project_id}/locations/{location_id}/instances/{instance_id}`
+   * Note that location_id must be a GCP `region`; for example:
+   * * `projects/my-memcached-project/locations/us-central1/instances/my-memcached`
+   * 
+ */ + public static abstract class CloudMemcacheImplBase implements io.grpc.BindableService { + + /** + *
+     * Lists Instances in a given location.
+     * 
+ */ + public void listInstances(com.google.cloud.memcache.v1beta2.ListInstancesRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getListInstancesMethod(), responseObserver); + } + + /** + *
+     * Gets details of a single Instance.
+     * 
+ */ + public void getInstance(com.google.cloud.memcache.v1beta2.GetInstanceRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetInstanceMethod(), responseObserver); + } + + /** + *
+     * Creates a new Instance in a given location.
+     * 
+ */ + public void createInstance(com.google.cloud.memcache.v1beta2.CreateInstanceRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getCreateInstanceMethod(), responseObserver); + } + + /** + *
+     * Updates an existing Instance in a given project and location.
+     * 
+ */ + public void updateInstance(com.google.cloud.memcache.v1beta2.UpdateInstanceRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getUpdateInstanceMethod(), responseObserver); + } + + /** + *
+     * Updates the defined Memcached parameters for an existing instance.
+     * This method only stages the parameters, it must be followed by
+     * `ApplyParameters` to apply the parameters to nodes of the Memcached
+     * instance.
+     * 
+ */ + public void updateParameters(com.google.cloud.memcache.v1beta2.UpdateParametersRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getUpdateParametersMethod(), responseObserver); + } + + /** + *
+     * Deletes a single Instance.
+     * 
+ */ + public void deleteInstance(com.google.cloud.memcache.v1beta2.DeleteInstanceRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getDeleteInstanceMethod(), responseObserver); + } + + /** + *
+     * `ApplyParameters` restarts the set of specified nodes in order to update
+     * them to the current set of parameters for the Memcached Instance.
+     * 
+ */ + public void applyParameters(com.google.cloud.memcache.v1beta2.ApplyParametersRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getApplyParametersMethod(), responseObserver); + } + + /** + *
+     * Updates software on the selected nodes of the Instance.
+     * 
+ */ + public void applySoftwareUpdate(com.google.cloud.memcache.v1beta2.ApplySoftwareUpdateRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getApplySoftwareUpdateMethod(), responseObserver); + } + + @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.memcache.v1beta2.ListInstancesRequest, + com.google.cloud.memcache.v1beta2.ListInstancesResponse>( + this, METHODID_LIST_INSTANCES))) + .addMethod( + getGetInstanceMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.memcache.v1beta2.GetInstanceRequest, + com.google.cloud.memcache.v1beta2.Instance>( + this, METHODID_GET_INSTANCE))) + .addMethod( + getCreateInstanceMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.memcache.v1beta2.CreateInstanceRequest, + com.google.longrunning.Operation>( + this, METHODID_CREATE_INSTANCE))) + .addMethod( + getUpdateInstanceMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.memcache.v1beta2.UpdateInstanceRequest, + com.google.longrunning.Operation>( + this, METHODID_UPDATE_INSTANCE))) + .addMethod( + getUpdateParametersMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.memcache.v1beta2.UpdateParametersRequest, + com.google.longrunning.Operation>( + this, METHODID_UPDATE_PARAMETERS))) + .addMethod( + getDeleteInstanceMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.memcache.v1beta2.DeleteInstanceRequest, + com.google.longrunning.Operation>( + this, METHODID_DELETE_INSTANCE))) + .addMethod( + getApplyParametersMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.memcache.v1beta2.ApplyParametersRequest, + com.google.longrunning.Operation>( + this, METHODID_APPLY_PARAMETERS))) + .addMethod( + getApplySoftwareUpdateMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.memcache.v1beta2.ApplySoftwareUpdateRequest, + com.google.longrunning.Operation>( + this, METHODID_APPLY_SOFTWARE_UPDATE))) + .build(); + } + } + + /** + *
+   * Configures and manages Cloud Memorystore for Memcached instances.
+   * The `memcache.googleapis.com` service implements the Google Cloud Memorystore
+   * for Memcached API and defines the following resource model for managing
+   * Memorystore Memcached (also called Memcached below) 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 Memcached instances, named:
+   * `/instances/*`
+   * * As such, Memcached instances are resources of the form:
+   *   `/projects/{project_id}/locations/{location_id}/instances/{instance_id}`
+   * Note that location_id must be a GCP `region`; for example:
+   * * `projects/my-memcached-project/locations/us-central1/instances/my-memcached`
+   * 
+ */ + public static final class CloudMemcacheStub extends io.grpc.stub.AbstractAsyncStub { + private CloudMemcacheStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected CloudMemcacheStub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new CloudMemcacheStub(channel, callOptions); + } + + /** + *
+     * Lists Instances in a given location.
+     * 
+ */ + public void listInstances(com.google.cloud.memcache.v1beta2.ListInstancesRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getListInstancesMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Gets details of a single Instance.
+     * 
+ */ + public void getInstance(com.google.cloud.memcache.v1beta2.GetInstanceRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getGetInstanceMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Creates a new Instance in a given location.
+     * 
+ */ + public void createInstance(com.google.cloud.memcache.v1beta2.CreateInstanceRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getCreateInstanceMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Updates an existing Instance in a given project and location.
+     * 
+ */ + public void updateInstance(com.google.cloud.memcache.v1beta2.UpdateInstanceRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getUpdateInstanceMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Updates the defined Memcached parameters for an existing instance.
+     * This method only stages the parameters, it must be followed by
+     * `ApplyParameters` to apply the parameters to nodes of the Memcached
+     * instance.
+     * 
+ */ + public void updateParameters(com.google.cloud.memcache.v1beta2.UpdateParametersRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getUpdateParametersMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Deletes a single Instance.
+     * 
+ */ + public void deleteInstance(com.google.cloud.memcache.v1beta2.DeleteInstanceRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getDeleteInstanceMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * `ApplyParameters` restarts the set of specified nodes in order to update
+     * them to the current set of parameters for the Memcached Instance.
+     * 
+ */ + public void applyParameters(com.google.cloud.memcache.v1beta2.ApplyParametersRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getApplyParametersMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Updates software on the selected nodes of the Instance.
+     * 
+ */ + public void applySoftwareUpdate(com.google.cloud.memcache.v1beta2.ApplySoftwareUpdateRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getApplySoftwareUpdateMethod(), getCallOptions()), request, responseObserver); + } + } + + /** + *
+   * Configures and manages Cloud Memorystore for Memcached instances.
+   * The `memcache.googleapis.com` service implements the Google Cloud Memorystore
+   * for Memcached API and defines the following resource model for managing
+   * Memorystore Memcached (also called Memcached below) 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 Memcached instances, named:
+   * `/instances/*`
+   * * As such, Memcached instances are resources of the form:
+   *   `/projects/{project_id}/locations/{location_id}/instances/{instance_id}`
+   * Note that location_id must be a GCP `region`; for example:
+   * * `projects/my-memcached-project/locations/us-central1/instances/my-memcached`
+   * 
+ */ + public static final class CloudMemcacheBlockingStub extends io.grpc.stub.AbstractBlockingStub { + private CloudMemcacheBlockingStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected CloudMemcacheBlockingStub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new CloudMemcacheBlockingStub(channel, callOptions); + } + + /** + *
+     * Lists Instances in a given location.
+     * 
+ */ + public com.google.cloud.memcache.v1beta2.ListInstancesResponse listInstances(com.google.cloud.memcache.v1beta2.ListInstancesRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getListInstancesMethod(), getCallOptions(), request); + } + + /** + *
+     * Gets details of a single Instance.
+     * 
+ */ + public com.google.cloud.memcache.v1beta2.Instance getInstance(com.google.cloud.memcache.v1beta2.GetInstanceRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getGetInstanceMethod(), getCallOptions(), request); + } + + /** + *
+     * Creates a new Instance in a given location.
+     * 
+ */ + public com.google.longrunning.Operation createInstance(com.google.cloud.memcache.v1beta2.CreateInstanceRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getCreateInstanceMethod(), getCallOptions(), request); + } + + /** + *
+     * Updates an existing Instance in a given project and location.
+     * 
+ */ + public com.google.longrunning.Operation updateInstance(com.google.cloud.memcache.v1beta2.UpdateInstanceRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getUpdateInstanceMethod(), getCallOptions(), request); + } + + /** + *
+     * Updates the defined Memcached parameters for an existing instance.
+     * This method only stages the parameters, it must be followed by
+     * `ApplyParameters` to apply the parameters to nodes of the Memcached
+     * instance.
+     * 
+ */ + public com.google.longrunning.Operation updateParameters(com.google.cloud.memcache.v1beta2.UpdateParametersRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getUpdateParametersMethod(), getCallOptions(), request); + } + + /** + *
+     * Deletes a single Instance.
+     * 
+ */ + public com.google.longrunning.Operation deleteInstance(com.google.cloud.memcache.v1beta2.DeleteInstanceRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getDeleteInstanceMethod(), getCallOptions(), request); + } + + /** + *
+     * `ApplyParameters` restarts the set of specified nodes in order to update
+     * them to the current set of parameters for the Memcached Instance.
+     * 
+ */ + public com.google.longrunning.Operation applyParameters(com.google.cloud.memcache.v1beta2.ApplyParametersRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getApplyParametersMethod(), getCallOptions(), request); + } + + /** + *
+     * Updates software on the selected nodes of the Instance.
+     * 
+ */ + public com.google.longrunning.Operation applySoftwareUpdate(com.google.cloud.memcache.v1beta2.ApplySoftwareUpdateRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getApplySoftwareUpdateMethod(), getCallOptions(), request); + } + } + + /** + *
+   * Configures and manages Cloud Memorystore for Memcached instances.
+   * The `memcache.googleapis.com` service implements the Google Cloud Memorystore
+   * for Memcached API and defines the following resource model for managing
+   * Memorystore Memcached (also called Memcached below) 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 Memcached instances, named:
+   * `/instances/*`
+   * * As such, Memcached instances are resources of the form:
+   *   `/projects/{project_id}/locations/{location_id}/instances/{instance_id}`
+   * Note that location_id must be a GCP `region`; for example:
+   * * `projects/my-memcached-project/locations/us-central1/instances/my-memcached`
+   * 
+ */ + public static final class CloudMemcacheFutureStub extends io.grpc.stub.AbstractFutureStub { + private CloudMemcacheFutureStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected CloudMemcacheFutureStub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new CloudMemcacheFutureStub(channel, callOptions); + } + + /** + *
+     * Lists Instances in a given location.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture listInstances( + com.google.cloud.memcache.v1beta2.ListInstancesRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getListInstancesMethod(), getCallOptions()), request); + } + + /** + *
+     * Gets details of a single Instance.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture getInstance( + com.google.cloud.memcache.v1beta2.GetInstanceRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getGetInstanceMethod(), getCallOptions()), request); + } + + /** + *
+     * Creates a new Instance in a given location.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture createInstance( + com.google.cloud.memcache.v1beta2.CreateInstanceRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getCreateInstanceMethod(), getCallOptions()), request); + } + + /** + *
+     * Updates an existing Instance in a given project and location.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture updateInstance( + com.google.cloud.memcache.v1beta2.UpdateInstanceRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getUpdateInstanceMethod(), getCallOptions()), request); + } + + /** + *
+     * Updates the defined Memcached parameters for an existing instance.
+     * This method only stages the parameters, it must be followed by
+     * `ApplyParameters` to apply the parameters to nodes of the Memcached
+     * instance.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture updateParameters( + com.google.cloud.memcache.v1beta2.UpdateParametersRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getUpdateParametersMethod(), getCallOptions()), request); + } + + /** + *
+     * Deletes a single Instance.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture deleteInstance( + com.google.cloud.memcache.v1beta2.DeleteInstanceRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getDeleteInstanceMethod(), getCallOptions()), request); + } + + /** + *
+     * `ApplyParameters` restarts the set of specified nodes in order to update
+     * them to the current set of parameters for the Memcached Instance.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture applyParameters( + com.google.cloud.memcache.v1beta2.ApplyParametersRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getApplyParametersMethod(), getCallOptions()), request); + } + + /** + *
+     * Updates software on the selected nodes of the Instance.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture applySoftwareUpdate( + com.google.cloud.memcache.v1beta2.ApplySoftwareUpdateRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getApplySoftwareUpdateMethod(), getCallOptions()), request); + } + } + + private static final int METHODID_LIST_INSTANCES = 0; + private static final int METHODID_GET_INSTANCE = 1; + private static final int METHODID_CREATE_INSTANCE = 2; + private static final int METHODID_UPDATE_INSTANCE = 3; + private static final int METHODID_UPDATE_PARAMETERS = 4; + private static final int METHODID_DELETE_INSTANCE = 5; + private static final int METHODID_APPLY_PARAMETERS = 6; + private static final int METHODID_APPLY_SOFTWARE_UPDATE = 7; + + 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 CloudMemcacheImplBase serviceImpl; + private final int methodId; + + MethodHandlers(CloudMemcacheImplBase serviceImpl, int methodId) { + this.serviceImpl = serviceImpl; + this.methodId = methodId; + } + + @java.lang.Override + @java.lang.SuppressWarnings("unchecked") + public void invoke(Req request, io.grpc.stub.StreamObserver responseObserver) { + switch (methodId) { + case METHODID_LIST_INSTANCES: + serviceImpl.listInstances((com.google.cloud.memcache.v1beta2.ListInstancesRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_GET_INSTANCE: + serviceImpl.getInstance((com.google.cloud.memcache.v1beta2.GetInstanceRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_CREATE_INSTANCE: + serviceImpl.createInstance((com.google.cloud.memcache.v1beta2.CreateInstanceRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_UPDATE_INSTANCE: + serviceImpl.updateInstance((com.google.cloud.memcache.v1beta2.UpdateInstanceRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_UPDATE_PARAMETERS: + serviceImpl.updateParameters((com.google.cloud.memcache.v1beta2.UpdateParametersRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_DELETE_INSTANCE: + serviceImpl.deleteInstance((com.google.cloud.memcache.v1beta2.DeleteInstanceRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_APPLY_PARAMETERS: + serviceImpl.applyParameters((com.google.cloud.memcache.v1beta2.ApplyParametersRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_APPLY_SOFTWARE_UPDATE: + serviceImpl.applySoftwareUpdate((com.google.cloud.memcache.v1beta2.ApplySoftwareUpdateRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + default: + throw new AssertionError(); + } + } + + @java.lang.Override + @java.lang.SuppressWarnings("unchecked") + public io.grpc.stub.StreamObserver invoke( + io.grpc.stub.StreamObserver responseObserver) { + switch (methodId) { + default: + throw new AssertionError(); + } + } + } + + private static abstract class CloudMemcacheBaseDescriptorSupplier + implements io.grpc.protobuf.ProtoFileDescriptorSupplier, io.grpc.protobuf.ProtoServiceDescriptorSupplier { + CloudMemcacheBaseDescriptorSupplier() {} + + @java.lang.Override + public com.google.protobuf.Descriptors.FileDescriptor getFileDescriptor() { + return com.google.cloud.memcache.v1beta2.CloudMemcacheProto.getDescriptor(); + } + + @java.lang.Override + public com.google.protobuf.Descriptors.ServiceDescriptor getServiceDescriptor() { + return getFileDescriptor().findServiceByName("CloudMemcache"); + } + } + + private static final class CloudMemcacheFileDescriptorSupplier + extends CloudMemcacheBaseDescriptorSupplier { + CloudMemcacheFileDescriptorSupplier() {} + } + + private static final class CloudMemcacheMethodDescriptorSupplier + extends CloudMemcacheBaseDescriptorSupplier + implements io.grpc.protobuf.ProtoMethodDescriptorSupplier { + private final String methodName; + + CloudMemcacheMethodDescriptorSupplier(String methodName) { + this.methodName = methodName; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.MethodDescriptor getMethodDescriptor() { + return getServiceDescriptor().findMethodByName(methodName); + } + } + + private static volatile io.grpc.ServiceDescriptor serviceDescriptor; + + public static io.grpc.ServiceDescriptor getServiceDescriptor() { + io.grpc.ServiceDescriptor result = serviceDescriptor; + if (result == null) { + synchronized (CloudMemcacheGrpc.class) { + result = serviceDescriptor; + if (result == null) { + serviceDescriptor = result = io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) + .setSchemaDescriptor(new CloudMemcacheFileDescriptorSupplier()) + .addMethod(getListInstancesMethod()) + .addMethod(getGetInstanceMethod()) + .addMethod(getCreateInstanceMethod()) + .addMethod(getUpdateInstanceMethod()) + .addMethod(getUpdateParametersMethod()) + .addMethod(getDeleteInstanceMethod()) + .addMethod(getApplyParametersMethod()) + .addMethod(getApplySoftwareUpdateMethod()) + .build(); + } + } + } + return result; + } +} diff --git a/proto-google-cloud-memcache-v1beta2/src/main/java/com/google/cloud/memcache/v1beta2/ApplyParametersRequest.java b/owl-bot-staging/v1beta2/proto-google-cloud-memcache-v1beta2/src/main/java/com/google/cloud/memcache/v1beta2/ApplyParametersRequest.java similarity index 70% rename from proto-google-cloud-memcache-v1beta2/src/main/java/com/google/cloud/memcache/v1beta2/ApplyParametersRequest.java rename to owl-bot-staging/v1beta2/proto-google-cloud-memcache-v1beta2/src/main/java/com/google/cloud/memcache/v1beta2/ApplyParametersRequest.java index ff3f8863..7bf92066 100644 --- a/proto-google-cloud-memcache-v1beta2/src/main/java/com/google/cloud/memcache/v1beta2/ApplyParametersRequest.java +++ b/owl-bot-staging/v1beta2/proto-google-cloud-memcache-v1beta2/src/main/java/com/google/cloud/memcache/v1beta2/ApplyParametersRequest.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/memcache/v1beta2/cloud_memcache.proto package com.google.cloud.memcache.v1beta2; /** - * - * *
  * Request for [ApplyParameters][google.cloud.memcache.v1beta2.CloudMemcache.ApplyParameters].
  * 
* * Protobuf type {@code google.cloud.memcache.v1beta2.ApplyParametersRequest} */ -public final class ApplyParametersRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class ApplyParametersRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.memcache.v1beta2.ApplyParametersRequest) ApplyParametersRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use ApplyParametersRequest.newBuilder() to construct. private ApplyParametersRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private ApplyParametersRequest() { name_ = ""; nodeIds_ = com.google.protobuf.LazyStringArrayList.EMPTY; @@ -44,15 +26,16 @@ private ApplyParametersRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new ApplyParametersRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private ApplyParametersRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -72,35 +55,33 @@ private ApplyParametersRequest( 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(); - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - nodeIds_ = new com.google.protobuf.LazyStringArrayList(); - mutable_bitField0_ |= 0x00000001; - } - nodeIds_.add(s); - break; - } - case 24: - { - applyAll_ = input.readBool(); - break; + name_ = s; + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + nodeIds_ = new com.google.protobuf.LazyStringArrayList(); + mutable_bitField0_ |= 0x00000001; } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + nodeIds_.add(s); + break; + } + case 24: { + + applyAll_ = input.readBool(); + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -108,7 +89,8 @@ private ApplyParametersRequest( } 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)) { nodeIds_ = nodeIds_.getUnmodifiableView(); @@ -117,36 +99,28 @@ private ApplyParametersRequest( makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.memcache.v1beta2.CloudMemcacheProto - .internal_static_google_cloud_memcache_v1beta2_ApplyParametersRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.memcache.v1beta2.CloudMemcacheProto.internal_static_google_cloud_memcache_v1beta2_ApplyParametersRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.memcache.v1beta2.CloudMemcacheProto - .internal_static_google_cloud_memcache_v1beta2_ApplyParametersRequest_fieldAccessorTable + return com.google.cloud.memcache.v1beta2.CloudMemcacheProto.internal_static_google_cloud_memcache_v1beta2_ApplyParametersRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.memcache.v1beta2.ApplyParametersRequest.class, - com.google.cloud.memcache.v1beta2.ApplyParametersRequest.Builder.class); + com.google.cloud.memcache.v1beta2.ApplyParametersRequest.class, com.google.cloud.memcache.v1beta2.ApplyParametersRequest.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** - * - * *
    * Required. Resource name of the Memcached instance for which parameter group updates
    * should be applied.
    * 
* - * - * string name = 1 [(.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 @@ -155,32 +129,30 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** - * - * *
    * Required. Resource name of the Memcached instance for which parameter group updates
    * should be applied.
    * 
* - * - * string name = 1 [(.google.api.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 { @@ -191,42 +163,34 @@ public com.google.protobuf.ByteString getNameBytes() { public static final int NODE_IDS_FIELD_NUMBER = 2; private com.google.protobuf.LazyStringList nodeIds_; /** - * - * *
    * Nodes to which the instance-level parameter group is applied.
    * 
* * repeated string node_ids = 2; - * * @return A list containing the nodeIds. */ - public com.google.protobuf.ProtocolStringList getNodeIdsList() { + public com.google.protobuf.ProtocolStringList + getNodeIdsList() { return nodeIds_; } /** - * - * *
    * Nodes to which the instance-level parameter group is applied.
    * 
* * repeated string node_ids = 2; - * * @return The count of nodeIds. */ public int getNodeIdsCount() { return nodeIds_.size(); } /** - * - * *
    * Nodes to which the instance-level parameter group is applied.
    * 
* * repeated string node_ids = 2; - * * @param index The index of the element to return. * @return The nodeIds at the given index. */ @@ -234,26 +198,22 @@ public java.lang.String getNodeIds(int index) { return nodeIds_.get(index); } /** - * - * *
    * Nodes to which the instance-level parameter group is applied.
    * 
* * repeated string node_ids = 2; - * * @param index The index of the value to return. * @return The bytes of the nodeIds at the given index. */ - public com.google.protobuf.ByteString getNodeIdsBytes(int index) { + public com.google.protobuf.ByteString + getNodeIdsBytes(int index) { return nodeIds_.getByteString(index); } public static final int APPLY_ALL_FIELD_NUMBER = 3; private boolean applyAll_; /** - * - * *
    * Whether to apply instance-level parameter group to all nodes. If set to
    * true, users are restricted from specifying individual nodes, and
@@ -261,7 +221,6 @@ public com.google.protobuf.ByteString getNodeIdsBytes(int index) {
    * 
* * bool apply_all = 3; - * * @return The applyAll. */ @java.lang.Override @@ -270,7 +229,6 @@ public boolean getApplyAll() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -282,7 +240,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.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_); } @@ -313,7 +272,8 @@ public int getSerializedSize() { size += 1 * getNodeIdsList().size(); } if (applyAll_ != false) { - size += com.google.protobuf.CodedOutputStream.computeBoolSize(3, applyAll_); + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(3, applyAll_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -323,17 +283,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.memcache.v1beta2.ApplyParametersRequest)) { return super.equals(obj); } - com.google.cloud.memcache.v1beta2.ApplyParametersRequest other = - (com.google.cloud.memcache.v1beta2.ApplyParametersRequest) obj; + com.google.cloud.memcache.v1beta2.ApplyParametersRequest other = (com.google.cloud.memcache.v1beta2.ApplyParametersRequest) obj; - if (!getName().equals(other.getName())) return false; - if (!getNodeIdsList().equals(other.getNodeIdsList())) return false; - if (getApplyAll() != other.getApplyAll()) return false; + if (!getName() + .equals(other.getName())) return false; + if (!getNodeIdsList() + .equals(other.getNodeIdsList())) return false; + if (getApplyAll() + != other.getApplyAll()) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -352,134 +314,125 @@ public int hashCode() { hash = (53 * hash) + getNodeIdsList().hashCode(); } hash = (37 * hash) + APPLY_ALL_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getApplyAll()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getApplyAll()); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static com.google.cloud.memcache.v1beta2.ApplyParametersRequest parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.memcache.v1beta2.ApplyParametersRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.memcache.v1beta2.ApplyParametersRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.memcache.v1beta2.ApplyParametersRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.memcache.v1beta2.ApplyParametersRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.memcache.v1beta2.ApplyParametersRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.memcache.v1beta2.ApplyParametersRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.memcache.v1beta2.ApplyParametersRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.memcache.v1beta2.ApplyParametersRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.memcache.v1beta2.ApplyParametersRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.memcache.v1beta2.ApplyParametersRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.memcache.v1beta2.ApplyParametersRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.memcache.v1beta2.ApplyParametersRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.memcache.v1beta2.ApplyParametersRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.memcache.v1beta2.ApplyParametersRequest prototype) { + public static Builder newBuilder(com.google.cloud.memcache.v1beta2.ApplyParametersRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected 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 [ApplyParameters][google.cloud.memcache.v1beta2.CloudMemcache.ApplyParameters].
    * 
* * Protobuf type {@code google.cloud.memcache.v1beta2.ApplyParametersRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.memcache.v1beta2.ApplyParametersRequest) com.google.cloud.memcache.v1beta2.ApplyParametersRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.memcache.v1beta2.CloudMemcacheProto - .internal_static_google_cloud_memcache_v1beta2_ApplyParametersRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.memcache.v1beta2.CloudMemcacheProto.internal_static_google_cloud_memcache_v1beta2_ApplyParametersRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.memcache.v1beta2.CloudMemcacheProto - .internal_static_google_cloud_memcache_v1beta2_ApplyParametersRequest_fieldAccessorTable + return com.google.cloud.memcache.v1beta2.CloudMemcacheProto.internal_static_google_cloud_memcache_v1beta2_ApplyParametersRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.memcache.v1beta2.ApplyParametersRequest.class, - com.google.cloud.memcache.v1beta2.ApplyParametersRequest.Builder.class); + com.google.cloud.memcache.v1beta2.ApplyParametersRequest.class, com.google.cloud.memcache.v1beta2.ApplyParametersRequest.Builder.class); } // Construct using com.google.cloud.memcache.v1beta2.ApplyParametersRequest.newBuilder() @@ -487,15 +440,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(); @@ -509,9 +463,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.memcache.v1beta2.CloudMemcacheProto - .internal_static_google_cloud_memcache_v1beta2_ApplyParametersRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.memcache.v1beta2.CloudMemcacheProto.internal_static_google_cloud_memcache_v1beta2_ApplyParametersRequest_descriptor; } @java.lang.Override @@ -530,8 +484,7 @@ public com.google.cloud.memcache.v1beta2.ApplyParametersRequest build() { @java.lang.Override public com.google.cloud.memcache.v1beta2.ApplyParametersRequest buildPartial() { - com.google.cloud.memcache.v1beta2.ApplyParametersRequest result = - new com.google.cloud.memcache.v1beta2.ApplyParametersRequest(this); + com.google.cloud.memcache.v1beta2.ApplyParametersRequest result = new com.google.cloud.memcache.v1beta2.ApplyParametersRequest(this); int from_bitField0_ = bitField0_; result.name_ = name_; if (((bitField0_ & 0x00000001) != 0)) { @@ -548,39 +501,38 @@ public com.google.cloud.memcache.v1beta2.ApplyParametersRequest buildPartial() { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.memcache.v1beta2.ApplyParametersRequest) { - return mergeFrom((com.google.cloud.memcache.v1beta2.ApplyParametersRequest) other); + return mergeFrom((com.google.cloud.memcache.v1beta2.ApplyParametersRequest)other); } else { super.mergeFrom(other); return this; @@ -588,8 +540,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.memcache.v1beta2.ApplyParametersRequest other) { - if (other == com.google.cloud.memcache.v1beta2.ApplyParametersRequest.getDefaultInstance()) - return this; + if (other == com.google.cloud.memcache.v1beta2.ApplyParametersRequest.getDefaultInstance()) return this; if (!other.getName().isEmpty()) { name_ = other.name_; onChanged(); @@ -626,8 +577,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.memcache.v1beta2.ApplyParametersRequest) e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.memcache.v1beta2.ApplyParametersRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -636,28 +586,23 @@ public Builder mergeFrom( } return this; } - private int bitField0_; private java.lang.Object name_ = ""; /** - * - * *
      * Required. Resource name of the Memcached instance for which parameter group updates
      * should be applied.
      * 
* - * - * string name = 1 [(.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; @@ -666,24 +611,21 @@ public java.lang.String getName() { } } /** - * - * *
      * Required. Resource name of the Memcached instance for which parameter group updates
      * should be applied.
      * 
* - * - * string name = 1 [(.google.api.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 { @@ -691,121 +633,98 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
      * Required. Resource name of the Memcached instance for which parameter group updates
      * should be applied.
      * 
* - * - * 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. Resource name of the Memcached instance for which parameter group updates
      * should be applied.
      * 
* - * - * string 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. Resource name of the Memcached instance for which parameter group updates
      * should be applied.
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes(com.google.protobuf.ByteString value) { + public Builder setNameBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; onChanged(); return this; } - private com.google.protobuf.LazyStringList nodeIds_ = - com.google.protobuf.LazyStringArrayList.EMPTY; - + private com.google.protobuf.LazyStringList nodeIds_ = com.google.protobuf.LazyStringArrayList.EMPTY; private void ensureNodeIdsIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { nodeIds_ = new com.google.protobuf.LazyStringArrayList(nodeIds_); bitField0_ |= 0x00000001; - } + } } /** - * - * *
      * Nodes to which the instance-level parameter group is applied.
      * 
* * repeated string node_ids = 2; - * * @return A list containing the nodeIds. */ - public com.google.protobuf.ProtocolStringList getNodeIdsList() { + public com.google.protobuf.ProtocolStringList + getNodeIdsList() { return nodeIds_.getUnmodifiableView(); } /** - * - * *
      * Nodes to which the instance-level parameter group is applied.
      * 
* * repeated string node_ids = 2; - * * @return The count of nodeIds. */ public int getNodeIdsCount() { return nodeIds_.size(); } /** - * - * *
      * Nodes to which the instance-level parameter group is applied.
      * 
* * repeated string node_ids = 2; - * * @param index The index of the element to return. * @return The nodeIds at the given index. */ @@ -813,90 +732,80 @@ public java.lang.String getNodeIds(int index) { return nodeIds_.get(index); } /** - * - * *
      * Nodes to which the instance-level parameter group is applied.
      * 
* * repeated string node_ids = 2; - * * @param index The index of the value to return. * @return The bytes of the nodeIds at the given index. */ - public com.google.protobuf.ByteString getNodeIdsBytes(int index) { + public com.google.protobuf.ByteString + getNodeIdsBytes(int index) { return nodeIds_.getByteString(index); } /** - * - * *
      * Nodes to which the instance-level parameter group is applied.
      * 
* * repeated string node_ids = 2; - * * @param index The index to set the value at. * @param value The nodeIds to set. * @return This builder for chaining. */ - public Builder setNodeIds(int index, java.lang.String value) { + public Builder setNodeIds( + int index, java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureNodeIdsIsMutable(); + throw new NullPointerException(); + } + ensureNodeIdsIsMutable(); nodeIds_.set(index, value); onChanged(); return this; } /** - * - * *
      * Nodes to which the instance-level parameter group is applied.
      * 
* * repeated string node_ids = 2; - * * @param value The nodeIds to add. * @return This builder for chaining. */ - public Builder addNodeIds(java.lang.String value) { + public Builder addNodeIds( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureNodeIdsIsMutable(); + throw new NullPointerException(); + } + ensureNodeIdsIsMutable(); nodeIds_.add(value); onChanged(); return this; } /** - * - * *
      * Nodes to which the instance-level parameter group is applied.
      * 
* * repeated string node_ids = 2; - * * @param values The nodeIds to add. * @return This builder for chaining. */ - public Builder addAllNodeIds(java.lang.Iterable values) { + public Builder addAllNodeIds( + java.lang.Iterable values) { ensureNodeIdsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, nodeIds_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, nodeIds_); onChanged(); return this; } /** - * - * *
      * Nodes to which the instance-level parameter group is applied.
      * 
* * repeated string node_ids = 2; - * * @return This builder for chaining. */ public Builder clearNodeIds() { @@ -906,32 +815,28 @@ public Builder clearNodeIds() { return this; } /** - * - * *
      * Nodes to which the instance-level parameter group is applied.
      * 
* * repeated string node_ids = 2; - * * @param value The bytes of the nodeIds to add. * @return This builder for chaining. */ - public Builder addNodeIdsBytes(com.google.protobuf.ByteString value) { + public Builder addNodeIdsBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); ensureNodeIdsIsMutable(); nodeIds_.add(value); onChanged(); return this; } - private boolean applyAll_; + private boolean applyAll_ ; /** - * - * *
      * Whether to apply instance-level parameter group to all nodes. If set to
      * true, users are restricted from specifying individual nodes, and
@@ -939,7 +844,6 @@ public Builder addNodeIdsBytes(com.google.protobuf.ByteString value) {
      * 
* * bool apply_all = 3; - * * @return The applyAll. */ @java.lang.Override @@ -947,8 +851,6 @@ public boolean getApplyAll() { return applyAll_; } /** - * - * *
      * Whether to apply instance-level parameter group to all nodes. If set to
      * true, users are restricted from specifying individual nodes, and
@@ -956,19 +858,16 @@ public boolean getApplyAll() {
      * 
* * bool apply_all = 3; - * * @param value The applyAll to set. * @return This builder for chaining. */ public Builder setApplyAll(boolean value) { - + applyAll_ = value; onChanged(); return this; } /** - * - * *
      * Whether to apply instance-level parameter group to all nodes. If set to
      * true, users are restricted from specifying individual nodes, and
@@ -976,18 +875,17 @@ public Builder setApplyAll(boolean value) {
      * 
* * bool apply_all = 3; - * * @return This builder for chaining. */ public Builder clearApplyAll() { - + applyAll_ = false; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -997,12 +895,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.memcache.v1beta2.ApplyParametersRequest) } // @@protoc_insertion_point(class_scope:google.cloud.memcache.v1beta2.ApplyParametersRequest) private static final com.google.cloud.memcache.v1beta2.ApplyParametersRequest DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.memcache.v1beta2.ApplyParametersRequest(); } @@ -1011,16 +909,16 @@ public static com.google.cloud.memcache.v1beta2.ApplyParametersRequest getDefaul return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ApplyParametersRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ApplyParametersRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ApplyParametersRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ApplyParametersRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1035,4 +933,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.memcache.v1beta2.ApplyParametersRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-memcache-v1beta2/src/main/java/com/google/cloud/memcache/v1beta2/ApplyParametersRequestOrBuilder.java b/owl-bot-staging/v1beta2/proto-google-cloud-memcache-v1beta2/src/main/java/com/google/cloud/memcache/v1beta2/ApplyParametersRequestOrBuilder.java similarity index 63% rename from proto-google-cloud-memcache-v1beta2/src/main/java/com/google/cloud/memcache/v1beta2/ApplyParametersRequestOrBuilder.java rename to owl-bot-staging/v1beta2/proto-google-cloud-memcache-v1beta2/src/main/java/com/google/cloud/memcache/v1beta2/ApplyParametersRequestOrBuilder.java index 43e8902f..d988d533 100644 --- a/proto-google-cloud-memcache-v1beta2/src/main/java/com/google/cloud/memcache/v1beta2/ApplyParametersRequestOrBuilder.java +++ b/owl-bot-staging/v1beta2/proto-google-cloud-memcache-v1beta2/src/main/java/com/google/cloud/memcache/v1beta2/ApplyParametersRequestOrBuilder.java @@ -1,113 +1,76 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/memcache/v1beta2/cloud_memcache.proto package com.google.cloud.memcache.v1beta2; -public interface ApplyParametersRequestOrBuilder - extends +public interface ApplyParametersRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.memcache.v1beta2.ApplyParametersRequest) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Required. Resource name of the Memcached instance for which parameter group updates
    * should be applied.
    * 
* - * - * string name = 1 [(.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. Resource name of the Memcached instance for which parameter group updates
    * should be applied.
    * 
* - * - * string name = 1 [(.google.api.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(); /** - * - * *
    * Nodes to which the instance-level parameter group is applied.
    * 
* * repeated string node_ids = 2; - * * @return A list containing the nodeIds. */ - java.util.List getNodeIdsList(); + java.util.List + getNodeIdsList(); /** - * - * *
    * Nodes to which the instance-level parameter group is applied.
    * 
* * repeated string node_ids = 2; - * * @return The count of nodeIds. */ int getNodeIdsCount(); /** - * - * *
    * Nodes to which the instance-level parameter group is applied.
    * 
* * repeated string node_ids = 2; - * * @param index The index of the element to return. * @return The nodeIds at the given index. */ java.lang.String getNodeIds(int index); /** - * - * *
    * Nodes to which the instance-level parameter group is applied.
    * 
* * repeated string node_ids = 2; - * * @param index The index of the value to return. * @return The bytes of the nodeIds at the given index. */ - com.google.protobuf.ByteString getNodeIdsBytes(int index); + com.google.protobuf.ByteString + getNodeIdsBytes(int index); /** - * - * *
    * Whether to apply instance-level parameter group to all nodes. If set to
    * true, users are restricted from specifying individual nodes, and
@@ -115,7 +78,6 @@ public interface ApplyParametersRequestOrBuilder
    * 
* * bool apply_all = 3; - * * @return The applyAll. */ boolean getApplyAll(); diff --git a/proto-google-cloud-memcache-v1beta2/src/main/java/com/google/cloud/memcache/v1beta2/ApplySoftwareUpdateRequest.java b/owl-bot-staging/v1beta2/proto-google-cloud-memcache-v1beta2/src/main/java/com/google/cloud/memcache/v1beta2/ApplySoftwareUpdateRequest.java similarity index 70% rename from proto-google-cloud-memcache-v1beta2/src/main/java/com/google/cloud/memcache/v1beta2/ApplySoftwareUpdateRequest.java rename to owl-bot-staging/v1beta2/proto-google-cloud-memcache-v1beta2/src/main/java/com/google/cloud/memcache/v1beta2/ApplySoftwareUpdateRequest.java index 6eaa5601..944fa087 100644 --- a/proto-google-cloud-memcache-v1beta2/src/main/java/com/google/cloud/memcache/v1beta2/ApplySoftwareUpdateRequest.java +++ b/owl-bot-staging/v1beta2/proto-google-cloud-memcache-v1beta2/src/main/java/com/google/cloud/memcache/v1beta2/ApplySoftwareUpdateRequest.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/memcache/v1beta2/cloud_memcache.proto package com.google.cloud.memcache.v1beta2; /** - * - * *
  * Request for [ApplySoftwareUpdate][google.cloud.memcache.v1beta2.CloudMemcache.ApplySoftwareUpdate].
  * 
* * Protobuf type {@code google.cloud.memcache.v1beta2.ApplySoftwareUpdateRequest} */ -public final class ApplySoftwareUpdateRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class ApplySoftwareUpdateRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.memcache.v1beta2.ApplySoftwareUpdateRequest) ApplySoftwareUpdateRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use ApplySoftwareUpdateRequest.newBuilder() to construct. private ApplySoftwareUpdateRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private ApplySoftwareUpdateRequest() { instance_ = ""; nodeIds_ = com.google.protobuf.LazyStringArrayList.EMPTY; @@ -44,15 +26,16 @@ private ApplySoftwareUpdateRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new ApplySoftwareUpdateRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private ApplySoftwareUpdateRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -72,35 +55,33 @@ private ApplySoftwareUpdateRequest( case 0: done = true; break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); + case 10: { + java.lang.String s = input.readStringRequireUtf8(); - instance_ = s; - break; - } - case 18: - { - java.lang.String s = input.readStringRequireUtf8(); - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - nodeIds_ = new com.google.protobuf.LazyStringArrayList(); - mutable_bitField0_ |= 0x00000001; - } - nodeIds_.add(s); - break; - } - case 24: - { - applyAll_ = input.readBool(); - break; + instance_ = s; + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + nodeIds_ = new com.google.protobuf.LazyStringArrayList(); + mutable_bitField0_ |= 0x00000001; } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + nodeIds_.add(s); + break; + } + case 24: { + + applyAll_ = input.readBool(); + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -108,7 +89,8 @@ private ApplySoftwareUpdateRequest( } 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)) { nodeIds_ = nodeIds_.getUnmodifiableView(); @@ -117,36 +99,28 @@ private ApplySoftwareUpdateRequest( makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.memcache.v1beta2.CloudMemcacheProto - .internal_static_google_cloud_memcache_v1beta2_ApplySoftwareUpdateRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.memcache.v1beta2.CloudMemcacheProto.internal_static_google_cloud_memcache_v1beta2_ApplySoftwareUpdateRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.memcache.v1beta2.CloudMemcacheProto - .internal_static_google_cloud_memcache_v1beta2_ApplySoftwareUpdateRequest_fieldAccessorTable + return com.google.cloud.memcache.v1beta2.CloudMemcacheProto.internal_static_google_cloud_memcache_v1beta2_ApplySoftwareUpdateRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.memcache.v1beta2.ApplySoftwareUpdateRequest.class, - com.google.cloud.memcache.v1beta2.ApplySoftwareUpdateRequest.Builder.class); + com.google.cloud.memcache.v1beta2.ApplySoftwareUpdateRequest.class, com.google.cloud.memcache.v1beta2.ApplySoftwareUpdateRequest.Builder.class); } public static final int INSTANCE_FIELD_NUMBER = 1; private volatile java.lang.Object instance_; /** - * - * *
    * Required. Resource name of the Memcached instance for which software update should be
    * applied.
    * 
* - * - * string instance = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string instance = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The instance. */ @java.lang.Override @@ -155,32 +129,30 @@ public java.lang.String getInstance() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); instance_ = s; return s; } } /** - * - * *
    * Required. Resource name of the Memcached instance for which software update should be
    * applied.
    * 
* - * - * string instance = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string instance = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for instance. */ @java.lang.Override - public com.google.protobuf.ByteString getInstanceBytes() { + public com.google.protobuf.ByteString + getInstanceBytes() { java.lang.Object ref = instance_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); instance_ = b; return b; } else { @@ -191,45 +163,37 @@ public com.google.protobuf.ByteString getInstanceBytes() { public static final int NODE_IDS_FIELD_NUMBER = 2; private com.google.protobuf.LazyStringList nodeIds_; /** - * - * *
    * Nodes to which we should apply the update to. Note all the selected nodes
    * are updated in parallel.
    * 
* * repeated string node_ids = 2; - * * @return A list containing the nodeIds. */ - public com.google.protobuf.ProtocolStringList getNodeIdsList() { + public com.google.protobuf.ProtocolStringList + getNodeIdsList() { return nodeIds_; } /** - * - * *
    * Nodes to which we should apply the update to. Note all the selected nodes
    * are updated in parallel.
    * 
* * repeated string node_ids = 2; - * * @return The count of nodeIds. */ public int getNodeIdsCount() { return nodeIds_.size(); } /** - * - * *
    * Nodes to which we should apply the update to. Note all the selected nodes
    * are updated in parallel.
    * 
* * repeated string node_ids = 2; - * * @param index The index of the element to return. * @return The nodeIds at the given index. */ @@ -237,27 +201,23 @@ public java.lang.String getNodeIds(int index) { return nodeIds_.get(index); } /** - * - * *
    * Nodes to which we should apply the update to. Note all the selected nodes
    * are updated in parallel.
    * 
* * repeated string node_ids = 2; - * * @param index The index of the value to return. * @return The bytes of the nodeIds at the given index. */ - public com.google.protobuf.ByteString getNodeIdsBytes(int index) { + public com.google.protobuf.ByteString + getNodeIdsBytes(int index) { return nodeIds_.getByteString(index); } public static final int APPLY_ALL_FIELD_NUMBER = 3; private boolean applyAll_; /** - * - * *
    * Whether to apply the update to all nodes. If set to
    * true, will explicitly restrict users from specifying any nodes, and apply
@@ -265,7 +225,6 @@ public com.google.protobuf.ByteString getNodeIdsBytes(int index) {
    * 
* * bool apply_all = 3; - * * @return The applyAll. */ @java.lang.Override @@ -274,7 +233,6 @@ public boolean getApplyAll() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -286,7 +244,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(instance_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, instance_); } @@ -317,7 +276,8 @@ public int getSerializedSize() { size += 1 * getNodeIdsList().size(); } if (applyAll_ != false) { - size += com.google.protobuf.CodedOutputStream.computeBoolSize(3, applyAll_); + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(3, applyAll_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -327,17 +287,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.memcache.v1beta2.ApplySoftwareUpdateRequest)) { return super.equals(obj); } - com.google.cloud.memcache.v1beta2.ApplySoftwareUpdateRequest other = - (com.google.cloud.memcache.v1beta2.ApplySoftwareUpdateRequest) obj; + com.google.cloud.memcache.v1beta2.ApplySoftwareUpdateRequest other = (com.google.cloud.memcache.v1beta2.ApplySoftwareUpdateRequest) obj; - if (!getInstance().equals(other.getInstance())) return false; - if (!getNodeIdsList().equals(other.getNodeIdsList())) return false; - if (getApplyAll() != other.getApplyAll()) return false; + if (!getInstance() + .equals(other.getInstance())) return false; + if (!getNodeIdsList() + .equals(other.getNodeIdsList())) return false; + if (getApplyAll() + != other.getApplyAll()) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -356,134 +318,125 @@ public int hashCode() { hash = (53 * hash) + getNodeIdsList().hashCode(); } hash = (37 * hash) + APPLY_ALL_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getApplyAll()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getApplyAll()); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static com.google.cloud.memcache.v1beta2.ApplySoftwareUpdateRequest parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.memcache.v1beta2.ApplySoftwareUpdateRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.memcache.v1beta2.ApplySoftwareUpdateRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.memcache.v1beta2.ApplySoftwareUpdateRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.memcache.v1beta2.ApplySoftwareUpdateRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.memcache.v1beta2.ApplySoftwareUpdateRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.memcache.v1beta2.ApplySoftwareUpdateRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.memcache.v1beta2.ApplySoftwareUpdateRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.memcache.v1beta2.ApplySoftwareUpdateRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.memcache.v1beta2.ApplySoftwareUpdateRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.memcache.v1beta2.ApplySoftwareUpdateRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.memcache.v1beta2.ApplySoftwareUpdateRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.memcache.v1beta2.ApplySoftwareUpdateRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.memcache.v1beta2.ApplySoftwareUpdateRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.memcache.v1beta2.ApplySoftwareUpdateRequest prototype) { + public static Builder newBuilder(com.google.cloud.memcache.v1beta2.ApplySoftwareUpdateRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected 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 [ApplySoftwareUpdate][google.cloud.memcache.v1beta2.CloudMemcache.ApplySoftwareUpdate].
    * 
* * Protobuf type {@code google.cloud.memcache.v1beta2.ApplySoftwareUpdateRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.memcache.v1beta2.ApplySoftwareUpdateRequest) com.google.cloud.memcache.v1beta2.ApplySoftwareUpdateRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.memcache.v1beta2.CloudMemcacheProto - .internal_static_google_cloud_memcache_v1beta2_ApplySoftwareUpdateRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.memcache.v1beta2.CloudMemcacheProto.internal_static_google_cloud_memcache_v1beta2_ApplySoftwareUpdateRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.memcache.v1beta2.CloudMemcacheProto - .internal_static_google_cloud_memcache_v1beta2_ApplySoftwareUpdateRequest_fieldAccessorTable + return com.google.cloud.memcache.v1beta2.CloudMemcacheProto.internal_static_google_cloud_memcache_v1beta2_ApplySoftwareUpdateRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.memcache.v1beta2.ApplySoftwareUpdateRequest.class, - com.google.cloud.memcache.v1beta2.ApplySoftwareUpdateRequest.Builder.class); + com.google.cloud.memcache.v1beta2.ApplySoftwareUpdateRequest.class, com.google.cloud.memcache.v1beta2.ApplySoftwareUpdateRequest.Builder.class); } // Construct using com.google.cloud.memcache.v1beta2.ApplySoftwareUpdateRequest.newBuilder() @@ -491,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(); @@ -513,14 +467,13 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.memcache.v1beta2.CloudMemcacheProto - .internal_static_google_cloud_memcache_v1beta2_ApplySoftwareUpdateRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.memcache.v1beta2.CloudMemcacheProto.internal_static_google_cloud_memcache_v1beta2_ApplySoftwareUpdateRequest_descriptor; } @java.lang.Override - public com.google.cloud.memcache.v1beta2.ApplySoftwareUpdateRequest - getDefaultInstanceForType() { + public com.google.cloud.memcache.v1beta2.ApplySoftwareUpdateRequest getDefaultInstanceForType() { return com.google.cloud.memcache.v1beta2.ApplySoftwareUpdateRequest.getDefaultInstance(); } @@ -535,8 +488,7 @@ public com.google.cloud.memcache.v1beta2.ApplySoftwareUpdateRequest build() { @java.lang.Override public com.google.cloud.memcache.v1beta2.ApplySoftwareUpdateRequest buildPartial() { - com.google.cloud.memcache.v1beta2.ApplySoftwareUpdateRequest result = - new com.google.cloud.memcache.v1beta2.ApplySoftwareUpdateRequest(this); + com.google.cloud.memcache.v1beta2.ApplySoftwareUpdateRequest result = new com.google.cloud.memcache.v1beta2.ApplySoftwareUpdateRequest(this); int from_bitField0_ = bitField0_; result.instance_ = instance_; if (((bitField0_ & 0x00000001) != 0)) { @@ -553,39 +505,38 @@ public com.google.cloud.memcache.v1beta2.ApplySoftwareUpdateRequest buildPartial public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.memcache.v1beta2.ApplySoftwareUpdateRequest) { - return mergeFrom((com.google.cloud.memcache.v1beta2.ApplySoftwareUpdateRequest) other); + return mergeFrom((com.google.cloud.memcache.v1beta2.ApplySoftwareUpdateRequest)other); } else { super.mergeFrom(other); return this; @@ -593,9 +544,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.memcache.v1beta2.ApplySoftwareUpdateRequest other) { - if (other - == com.google.cloud.memcache.v1beta2.ApplySoftwareUpdateRequest.getDefaultInstance()) - return this; + if (other == com.google.cloud.memcache.v1beta2.ApplySoftwareUpdateRequest.getDefaultInstance()) return this; if (!other.getInstance().isEmpty()) { instance_ = other.instance_; onChanged(); @@ -632,8 +581,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.memcache.v1beta2.ApplySoftwareUpdateRequest) e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.memcache.v1beta2.ApplySoftwareUpdateRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -642,28 +590,23 @@ public Builder mergeFrom( } return this; } - private int bitField0_; private java.lang.Object instance_ = ""; /** - * - * *
      * Required. Resource name of the Memcached instance for which software update should be
      * applied.
      * 
* - * - * string instance = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string instance = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The instance. */ public java.lang.String getInstance() { java.lang.Object ref = instance_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); instance_ = s; return s; @@ -672,24 +615,21 @@ public java.lang.String getInstance() { } } /** - * - * *
      * Required. Resource name of the Memcached instance for which software update should be
      * applied.
      * 
* - * - * string instance = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string instance = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for instance. */ - public com.google.protobuf.ByteString getInstanceBytes() { + public com.google.protobuf.ByteString + getInstanceBytes() { java.lang.Object ref = instance_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); instance_ = b; return b; } else { @@ -697,124 +637,101 @@ public com.google.protobuf.ByteString getInstanceBytes() { } } /** - * - * *
      * Required. Resource name of the Memcached instance for which software update should be
      * applied.
      * 
* - * - * string instance = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string instance = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The instance to set. * @return This builder for chaining. */ - public Builder setInstance(java.lang.String value) { + public Builder setInstance( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + instance_ = value; onChanged(); return this; } /** - * - * *
      * Required. Resource name of the Memcached instance for which software update should be
      * applied.
      * 
* - * - * string instance = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string instance = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return This builder for chaining. */ public Builder clearInstance() { - + instance_ = getDefaultInstance().getInstance(); onChanged(); return this; } /** - * - * *
      * Required. Resource name of the Memcached instance for which software update should be
      * applied.
      * 
* - * - * string instance = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string instance = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The bytes for instance to set. * @return This builder for chaining. */ - public Builder setInstanceBytes(com.google.protobuf.ByteString value) { + public Builder setInstanceBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + instance_ = value; onChanged(); return this; } - private com.google.protobuf.LazyStringList nodeIds_ = - com.google.protobuf.LazyStringArrayList.EMPTY; - + private com.google.protobuf.LazyStringList nodeIds_ = com.google.protobuf.LazyStringArrayList.EMPTY; private void ensureNodeIdsIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { nodeIds_ = new com.google.protobuf.LazyStringArrayList(nodeIds_); bitField0_ |= 0x00000001; - } + } } /** - * - * *
      * Nodes to which we should apply the update to. Note all the selected nodes
      * are updated in parallel.
      * 
* * repeated string node_ids = 2; - * * @return A list containing the nodeIds. */ - public com.google.protobuf.ProtocolStringList getNodeIdsList() { + public com.google.protobuf.ProtocolStringList + getNodeIdsList() { return nodeIds_.getUnmodifiableView(); } /** - * - * *
      * Nodes to which we should apply the update to. Note all the selected nodes
      * are updated in parallel.
      * 
* * repeated string node_ids = 2; - * * @return The count of nodeIds. */ public int getNodeIdsCount() { return nodeIds_.size(); } /** - * - * *
      * Nodes to which we should apply the update to. Note all the selected nodes
      * are updated in parallel.
      * 
* * repeated string node_ids = 2; - * * @param index The index of the element to return. * @return The nodeIds at the given index. */ @@ -822,95 +739,85 @@ public java.lang.String getNodeIds(int index) { return nodeIds_.get(index); } /** - * - * *
      * Nodes to which we should apply the update to. Note all the selected nodes
      * are updated in parallel.
      * 
* * repeated string node_ids = 2; - * * @param index The index of the value to return. * @return The bytes of the nodeIds at the given index. */ - public com.google.protobuf.ByteString getNodeIdsBytes(int index) { + public com.google.protobuf.ByteString + getNodeIdsBytes(int index) { return nodeIds_.getByteString(index); } /** - * - * *
      * Nodes to which we should apply the update to. Note all the selected nodes
      * are updated in parallel.
      * 
* * repeated string node_ids = 2; - * * @param index The index to set the value at. * @param value The nodeIds to set. * @return This builder for chaining. */ - public Builder setNodeIds(int index, java.lang.String value) { + public Builder setNodeIds( + int index, java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureNodeIdsIsMutable(); + throw new NullPointerException(); + } + ensureNodeIdsIsMutable(); nodeIds_.set(index, value); onChanged(); return this; } /** - * - * *
      * Nodes to which we should apply the update to. Note all the selected nodes
      * are updated in parallel.
      * 
* * repeated string node_ids = 2; - * * @param value The nodeIds to add. * @return This builder for chaining. */ - public Builder addNodeIds(java.lang.String value) { + public Builder addNodeIds( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureNodeIdsIsMutable(); + throw new NullPointerException(); + } + ensureNodeIdsIsMutable(); nodeIds_.add(value); onChanged(); return this; } /** - * - * *
      * Nodes to which we should apply the update to. Note all the selected nodes
      * are updated in parallel.
      * 
* * repeated string node_ids = 2; - * * @param values The nodeIds to add. * @return This builder for chaining. */ - public Builder addAllNodeIds(java.lang.Iterable values) { + public Builder addAllNodeIds( + java.lang.Iterable values) { ensureNodeIdsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, nodeIds_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, nodeIds_); onChanged(); return this; } /** - * - * *
      * Nodes to which we should apply the update to. Note all the selected nodes
      * are updated in parallel.
      * 
* * repeated string node_ids = 2; - * * @return This builder for chaining. */ public Builder clearNodeIds() { @@ -920,33 +827,29 @@ public Builder clearNodeIds() { return this; } /** - * - * *
      * Nodes to which we should apply the update to. Note all the selected nodes
      * are updated in parallel.
      * 
* * repeated string node_ids = 2; - * * @param value The bytes of the nodeIds to add. * @return This builder for chaining. */ - public Builder addNodeIdsBytes(com.google.protobuf.ByteString value) { + public Builder addNodeIdsBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); ensureNodeIdsIsMutable(); nodeIds_.add(value); onChanged(); return this; } - private boolean applyAll_; + private boolean applyAll_ ; /** - * - * *
      * Whether to apply the update to all nodes. If set to
      * true, will explicitly restrict users from specifying any nodes, and apply
@@ -954,7 +857,6 @@ public Builder addNodeIdsBytes(com.google.protobuf.ByteString value) {
      * 
* * bool apply_all = 3; - * * @return The applyAll. */ @java.lang.Override @@ -962,8 +864,6 @@ public boolean getApplyAll() { return applyAll_; } /** - * - * *
      * Whether to apply the update to all nodes. If set to
      * true, will explicitly restrict users from specifying any nodes, and apply
@@ -971,19 +871,16 @@ public boolean getApplyAll() {
      * 
* * bool apply_all = 3; - * * @param value The applyAll to set. * @return This builder for chaining. */ public Builder setApplyAll(boolean value) { - + applyAll_ = value; onChanged(); return this; } /** - * - * *
      * Whether to apply the update to all nodes. If set to
      * true, will explicitly restrict users from specifying any nodes, and apply
@@ -991,18 +888,17 @@ public Builder setApplyAll(boolean value) {
      * 
* * bool apply_all = 3; - * * @return This builder for chaining. */ public Builder clearApplyAll() { - + applyAll_ = false; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1012,13 +908,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.memcache.v1beta2.ApplySoftwareUpdateRequest) } // @@protoc_insertion_point(class_scope:google.cloud.memcache.v1beta2.ApplySoftwareUpdateRequest) - private static final com.google.cloud.memcache.v1beta2.ApplySoftwareUpdateRequest - DEFAULT_INSTANCE; - + private static final com.google.cloud.memcache.v1beta2.ApplySoftwareUpdateRequest DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.cloud.memcache.v1beta2.ApplySoftwareUpdateRequest(); } @@ -1027,16 +922,16 @@ public static com.google.cloud.memcache.v1beta2.ApplySoftwareUpdateRequest getDe return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ApplySoftwareUpdateRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ApplySoftwareUpdateRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ApplySoftwareUpdateRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ApplySoftwareUpdateRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1051,4 +946,6 @@ public com.google.protobuf.Parser getParserForType() public com.google.cloud.memcache.v1beta2.ApplySoftwareUpdateRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-memcache-v1beta2/src/main/java/com/google/cloud/memcache/v1beta2/ApplySoftwareUpdateRequestOrBuilder.java b/owl-bot-staging/v1beta2/proto-google-cloud-memcache-v1beta2/src/main/java/com/google/cloud/memcache/v1beta2/ApplySoftwareUpdateRequestOrBuilder.java similarity index 64% rename from proto-google-cloud-memcache-v1beta2/src/main/java/com/google/cloud/memcache/v1beta2/ApplySoftwareUpdateRequestOrBuilder.java rename to owl-bot-staging/v1beta2/proto-google-cloud-memcache-v1beta2/src/main/java/com/google/cloud/memcache/v1beta2/ApplySoftwareUpdateRequestOrBuilder.java index e3dbcc27..c676cd73 100644 --- a/proto-google-cloud-memcache-v1beta2/src/main/java/com/google/cloud/memcache/v1beta2/ApplySoftwareUpdateRequestOrBuilder.java +++ b/owl-bot-staging/v1beta2/proto-google-cloud-memcache-v1beta2/src/main/java/com/google/cloud/memcache/v1beta2/ApplySoftwareUpdateRequestOrBuilder.java @@ -1,117 +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/memcache/v1beta2/cloud_memcache.proto package com.google.cloud.memcache.v1beta2; -public interface ApplySoftwareUpdateRequestOrBuilder - extends +public interface ApplySoftwareUpdateRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.memcache.v1beta2.ApplySoftwareUpdateRequest) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Required. Resource name of the Memcached instance for which software update should be
    * applied.
    * 
* - * - * string instance = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string instance = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The instance. */ java.lang.String getInstance(); /** - * - * *
    * Required. Resource name of the Memcached instance for which software update should be
    * applied.
    * 
* - * - * string instance = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string instance = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for instance. */ - com.google.protobuf.ByteString getInstanceBytes(); + com.google.protobuf.ByteString + getInstanceBytes(); /** - * - * *
    * Nodes to which we should apply the update to. Note all the selected nodes
    * are updated in parallel.
    * 
* * repeated string node_ids = 2; - * * @return A list containing the nodeIds. */ - java.util.List getNodeIdsList(); + java.util.List + getNodeIdsList(); /** - * - * *
    * Nodes to which we should apply the update to. Note all the selected nodes
    * are updated in parallel.
    * 
* * repeated string node_ids = 2; - * * @return The count of nodeIds. */ int getNodeIdsCount(); /** - * - * *
    * Nodes to which we should apply the update to. Note all the selected nodes
    * are updated in parallel.
    * 
* * repeated string node_ids = 2; - * * @param index The index of the element to return. * @return The nodeIds at the given index. */ java.lang.String getNodeIds(int index); /** - * - * *
    * Nodes to which we should apply the update to. Note all the selected nodes
    * are updated in parallel.
    * 
* * repeated string node_ids = 2; - * * @param index The index of the value to return. * @return The bytes of the nodeIds at the given index. */ - com.google.protobuf.ByteString getNodeIdsBytes(int index); + com.google.protobuf.ByteString + getNodeIdsBytes(int index); /** - * - * *
    * Whether to apply the update to all nodes. If set to
    * true, will explicitly restrict users from specifying any nodes, and apply
@@ -119,7 +82,6 @@ public interface ApplySoftwareUpdateRequestOrBuilder
    * 
* * bool apply_all = 3; - * * @return The applyAll. */ boolean getApplyAll(); diff --git a/owl-bot-staging/v1beta2/proto-google-cloud-memcache-v1beta2/src/main/java/com/google/cloud/memcache/v1beta2/CloudMemcacheProto.java b/owl-bot-staging/v1beta2/proto-google-cloud-memcache-v1beta2/src/main/java/com/google/cloud/memcache/v1beta2/CloudMemcacheProto.java new file mode 100644 index 00000000..0be727f3 --- /dev/null +++ b/owl-bot-staging/v1beta2/proto-google-cloud-memcache-v1beta2/src/main/java/com/google/cloud/memcache/v1beta2/CloudMemcacheProto.java @@ -0,0 +1,438 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/memcache/v1beta2/cloud_memcache.proto + +package com.google.cloud.memcache.v1beta2; + +public final class CloudMemcacheProto { + private CloudMemcacheProto() {} + 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_memcache_v1beta2_Instance_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_memcache_v1beta2_Instance_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_memcache_v1beta2_Instance_NodeConfig_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_memcache_v1beta2_Instance_NodeConfig_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_memcache_v1beta2_Instance_Node_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_memcache_v1beta2_Instance_Node_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_memcache_v1beta2_Instance_InstanceMessage_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_memcache_v1beta2_Instance_InstanceMessage_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_memcache_v1beta2_Instance_LabelsEntry_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_memcache_v1beta2_Instance_LabelsEntry_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_memcache_v1beta2_ListInstancesRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_memcache_v1beta2_ListInstancesRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_memcache_v1beta2_ListInstancesResponse_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_memcache_v1beta2_ListInstancesResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_memcache_v1beta2_GetInstanceRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_memcache_v1beta2_GetInstanceRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_memcache_v1beta2_CreateInstanceRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_memcache_v1beta2_CreateInstanceRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_memcache_v1beta2_UpdateInstanceRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_memcache_v1beta2_UpdateInstanceRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_memcache_v1beta2_DeleteInstanceRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_memcache_v1beta2_DeleteInstanceRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_memcache_v1beta2_ApplyParametersRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_memcache_v1beta2_ApplyParametersRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_memcache_v1beta2_UpdateParametersRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_memcache_v1beta2_UpdateParametersRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_memcache_v1beta2_ApplySoftwareUpdateRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_memcache_v1beta2_ApplySoftwareUpdateRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_memcache_v1beta2_MemcacheParameters_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_memcache_v1beta2_MemcacheParameters_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_memcache_v1beta2_MemcacheParameters_ParamsEntry_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_memcache_v1beta2_MemcacheParameters_ParamsEntry_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_memcache_v1beta2_OperationMetadata_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_memcache_v1beta2_OperationMetadata_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_memcache_v1beta2_LocationMetadata_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_memcache_v1beta2_LocationMetadata_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_memcache_v1beta2_LocationMetadata_AvailableZonesEntry_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_memcache_v1beta2_LocationMetadata_AvailableZonesEntry_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_memcache_v1beta2_ZoneMetadata_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_memcache_v1beta2_ZoneMetadata_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor + getDescriptor() { + return descriptor; + } + private static com.google.protobuf.Descriptors.FileDescriptor + descriptor; + static { + java.lang.String[] descriptorData = { + "\n2google/cloud/memcache/v1beta2/cloud_me" + + "mcache.proto\022\035google.cloud.memcache.v1be" + + "ta2\032\034google/api/annotations.proto\032\027googl" + + "e/api/client.proto\032\037google/api/field_beh" + + "avior.proto\032\031google/api/resource.proto\032#" + + "google/longrunning/operations.proto\032 goo" + + "gle/protobuf/field_mask.proto\032\037google/pr" + + "otobuf/timestamp.proto\"\223\r\n\010Instance\022\021\n\004n" + + "ame\030\001 \001(\tB\003\340A\002\022\024\n\014display_name\030\002 \001(\t\022C\n\006" + + "labels\030\003 \003(\01323.google.cloud.memcache.v1b" + + "eta2.Instance.LabelsEntry\022\032\n\022authorized_" + + "network\030\004 \001(\t\022\r\n\005zones\030\005 \003(\t\022\027\n\nnode_cou" + + "nt\030\006 \001(\005B\003\340A\002\022L\n\013node_config\030\007 \001(\01322.goo" + + "gle.cloud.memcache.v1beta2.Instance.Node" + + "ConfigB\003\340A\002\022H\n\020memcache_version\030\t \001(\0162.." + + "google.cloud.memcache.v1beta2.MemcacheVe" + + "rsion\022E\n\nparameters\030\013 \001(\01321.google.cloud" + + ".memcache.v1beta2.MemcacheParameters\022I\n\016" + + "memcache_nodes\030\014 \003(\0132,.google.cloud.memc" + + "ache.v1beta2.Instance.NodeB\003\340A\003\0224\n\013creat" + + "e_time\030\r \001(\0132\032.google.protobuf.Timestamp" + + "B\003\340A\003\0224\n\013update_time\030\016 \001(\0132\032.google.prot" + + "obuf.TimestampB\003\340A\003\022A\n\005state\030\017 \001(\0162-.goo" + + "gle.cloud.memcache.v1beta2.Instance.Stat" + + "eB\003\340A\003\022\"\n\025memcache_full_version\030\022 \001(\tB\003\340" + + "A\003\022R\n\021instance_messages\030\023 \003(\01327.google.c" + + "loud.memcache.v1beta2.Instance.InstanceM" + + "essage\022\037\n\022discovery_endpoint\030\024 \001(\tB\003\340A\003\022" + + "\035\n\020update_available\030\025 \001(\010B\003\340A\003\032A\n\nNodeCo" + + "nfig\022\026\n\tcpu_count\030\001 \001(\005B\003\340A\002\022\033\n\016memory_s" + + "ize_mb\030\002 \001(\005B\003\340A\002\032\330\002\n\004Node\022\024\n\007node_id\030\001 " + + "\001(\tB\003\340A\003\022\021\n\004zone\030\002 \001(\tB\003\340A\003\022F\n\005state\030\003 \001" + + "(\01622.google.cloud.memcache.v1beta2.Insta" + + "nce.Node.StateB\003\340A\003\022\021\n\004host\030\004 \001(\tB\003\340A\003\022\021" + + "\n\004port\030\005 \001(\005B\003\340A\003\022E\n\nparameters\030\006 \001(\01321." + + "google.cloud.memcache.v1beta2.MemcachePa" + + "rameters\022\035\n\020update_available\030\007 \001(\010B\003\340A\003\"" + + "S\n\005State\022\025\n\021STATE_UNSPECIFIED\020\000\022\014\n\010CREAT" + + "ING\020\001\022\t\n\005READY\020\002\022\014\n\010DELETING\020\003\022\014\n\010UPDATI" + + "NG\020\004\032\256\001\n\017InstanceMessage\022J\n\004code\030\001 \001(\0162<" + + ".google.cloud.memcache.v1beta2.Instance." + + "InstanceMessage.Code\022\017\n\007message\030\002 \001(\t\">\n" + + "\004Code\022\024\n\020CODE_UNSPECIFIED\020\000\022 \n\034ZONE_DIST" + + "RIBUTION_UNBALANCED\020\001\032-\n\013LabelsEntry\022\013\n\003" + + "key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\"a\n\005State\022\025\n" + + "\021STATE_UNSPECIFIED\020\000\022\014\n\010CREATING\020\001\022\t\n\005RE" + + "ADY\020\002\022\014\n\010DELETING\020\004\022\032\n\026PERFORMING_MAINTE" + + "NANCE\020\005:c\352A`\n memcache.googleapis.com/In" + + "stance\022\n\010resource\030\003" + + " \001(\0132\'.google.cloud.memcache.v1beta2.Ins" + + "tanceB\003\340A\002\"\215\001\n\025UpdateInstanceRequest\0224\n\013" + + "update_mask\030\001 \001(\0132\032.google.protobuf.Fiel" + + "dMaskB\003\340A\002\022>\n\010resource\030\002 \001(\0132\'.google.cl" + + "oud.memcache.v1beta2.InstanceB\003\340A\002\"O\n\025De" + + "leteInstanceRequest\0226\n\004name\030\001 \001(\tB(\340A\002\372A" + + "\"\n memcache.googleapis.com/Instance\"u\n\026A" + + "pplyParametersRequest\0226\n\004name\030\001 \001(\tB(\340A\002" + + "\372A\"\n memcache.googleapis.com/Instance\022\020\n" + + "\010node_ids\030\002 \003(\t\022\021\n\tapply_all\030\003 \001(\010\"\316\001\n\027U" + + "pdateParametersRequest\0226\n\004name\030\001 \001(\tB(\340A" + + "\002\372A\"\n memcache.googleapis.com/Instance\0224" + + "\n\013update_mask\030\002 \001(\0132\032.google.protobuf.Fi" + + "eldMaskB\003\340A\002\022E\n\nparameters\030\003 \001(\01321.googl" + + "e.cloud.memcache.v1beta2.MemcacheParamet" + + "ers\"}\n\032ApplySoftwareUpdateRequest\022:\n\010ins" + + "tance\030\001 \001(\tB(\340A\002\372A\"\n memcache.googleapis" + + ".com/Instance\022\020\n\010node_ids\030\002 \003(\t\022\021\n\tapply" + + "_all\030\003 \001(\010\"\243\001\n\022MemcacheParameters\022\017\n\002id\030" + + "\001 \001(\tB\003\340A\003\022M\n\006params\030\003 \003(\0132=.google.clou" + + "d.memcache.v1beta2.MemcacheParameters.Pa" + + "ramsEntry\032-\n\013ParamsEntry\022\013\n\003key\030\001 \001(\t\022\r\n" + + "\005value\030\002 \001(\t:\0028\001\"\371\001\n\021OperationMetadata\0224" + + "\n\013create_time\030\001 \001(\0132\032.google.protobuf.Ti" + + "mestampB\003\340A\003\0221\n\010end_time\030\002 \001(\0132\032.google." + + "protobuf.TimestampB\003\340A\003\022\023\n\006target\030\003 \001(\tB" + + "\003\340A\003\022\021\n\004verb\030\004 \001(\tB\003\340A\003\022\032\n\rstatus_detail" + + "\030\005 \001(\tB\003\340A\003\022\035\n\020cancel_requested\030\006 \001(\010B\003\340" + + "A\003\022\030\n\013api_version\030\007 \001(\tB\003\340A\003\"\331\001\n\020Locatio" + + "nMetadata\022a\n\017available_zones\030\001 \003(\0132C.goo" + + "gle.cloud.memcache.v1beta2.LocationMetad" + + "ata.AvailableZonesEntryB\003\340A\003\032b\n\023Availabl" + + "eZonesEntry\022\013\n\003key\030\001 \001(\t\022:\n\005value\030\002 \001(\0132" + + "+.google.cloud.memcache.v1beta2.ZoneMeta" + + "data:\0028\001\"\016\n\014ZoneMetadata*E\n\017MemcacheVers" + + "ion\022 \n\034MEMCACHE_VERSION_UNSPECIFIED\020\000\022\020\n" + + "\014MEMCACHE_1_5\020\0012\303\021\n\rCloudMemcache\022\277\001\n\rLi" + + "stInstances\0223.google.cloud.memcache.v1be" + + "ta2.ListInstancesRequest\0324.google.cloud." + + "memcache.v1beta2.ListInstancesResponse\"C" + + "\202\323\344\223\0024\0222/v1beta2/{parent=projects/*/loca" + + "tions/*}/instances\332A\006parent\022\254\001\n\013GetInsta" + + "nce\0221.google.cloud.memcache.v1beta2.GetI" + + "nstanceRequest\032\'.google.cloud.memcache.v" + + "1beta2.Instance\"A\202\323\344\223\0024\0222/v1beta2/{name=" + + "projects/*/locations/*/instances/*}\332A\004na" + + "me\022\246\002\n\016CreateInstance\0224.google.cloud.mem" + + "cache.v1beta2.CreateInstanceRequest\032\035.go" + + "ogle.longrunning.Operation\"\276\001\202\323\344\223\002>\"2/v1" + + "beta2/{parent=projects/*/locations/*}/in" + + "stances:\010resource\332A\033parent,instance_id,r" + + "esource\312AY\n&google.cloud.memcache.v1beta" + + "2.Instance\022/google.cloud.memcache.v1beta" + + "2.OperationMetadata\022\250\002\n\016UpdateInstance\0224" + + ".google.cloud.memcache.v1beta2.UpdateIns" + + "tanceRequest\032\035.google.longrunning.Operat" + + "ion\"\300\001\202\323\344\223\002G2;/v1beta2/{resource.name=pr" + + "ojects/*/locations/*/instances/*}:\010resou" + + "rce\332A\024update_mask,resource\312AY\n&google.cl" + + "oud.memcache.v1beta2.Instance\022/google.cl" + + "oud.memcache.v1beta2.OperationMetadata\022\264" + + "\002\n\020UpdateParameters\0226.google.cloud.memca" + + "che.v1beta2.UpdateParametersRequest\032\035.go" + + "ogle.longrunning.Operation\"\310\001\202\323\344\223\002H2C/v1" + + "beta2/{name=projects/*/locations/*/insta" + + "nces/*}:updateParameters:\001*\332A\033name,updat" + + "e_mask,parameters\312AY\n&google.cloud.memca" + + "che.v1beta2.Instance\022/google.cloud.memca" + + "che.v1beta2.OperationMetadata\022\364\001\n\016Delete" + + "Instance\0224.google.cloud.memcache.v1beta2" + + ".DeleteInstanceRequest\032\035.google.longrunn" + + "ing.Operation\"\214\001\202\323\344\223\0024*2/v1beta2/{name=p" + + "rojects/*/locations/*/instances/*}\332A\004nam" + + "e\312AH\n\025google.protobuf.Empty\022/google.clou" + + "d.memcache.v1beta2.OperationMetadata\022\255\002\n" + + "\017ApplyParameters\0225.google.cloud.memcache" + + ".v1beta2.ApplyParametersRequest\032\035.google" + + ".longrunning.Operation\"\303\001\202\323\344\223\002G\"B/v1beta" + + "2/{name=projects/*/locations/*/instances" + + "/*}:applyParameters:\001*\332A\027name,node_ids,a" + + "pply_all\312AY\n&google.cloud.memcache.v1bet" + + "a2.Instance\022/google.cloud.memcache.v1bet" + + "a2.OperationMetadata\022\301\002\n\023ApplySoftwareUp" + + "date\0229.google.cloud.memcache.v1beta2.App" + + "lySoftwareUpdateRequest\032\035.google.longrun" + + "ning.Operation\"\317\001\202\323\344\223\002O\"J/v1beta2/{insta" + + "nce=projects/*/locations/*/instances/*}:" + + "applySoftwareUpdate:\001*\332A\033instance,node_i" + + "ds,apply_all\312AY\n&google.cloud.memcache.v" + + "1beta2.Instance\022/google.cloud.memcache.v" + + "1beta2.OperationMetadata\032K\312A\027memcache.go" + + "ogleapis.com\322A.https://www.googleapis.co" + + "m/auth/cloud-platformB\200\001\n!com.google.clo" + + "ud.memcache.v1beta2B\022CloudMemcacheProtoP" + + "\001ZEgoogle.golang.org/genproto/googleapis" + + "/cloud/memcache/v1beta2;memcacheb\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.FieldMaskProto.getDescriptor(), + com.google.protobuf.TimestampProto.getDescriptor(), + }); + internal_static_google_cloud_memcache_v1beta2_Instance_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_cloud_memcache_v1beta2_Instance_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_memcache_v1beta2_Instance_descriptor, + new java.lang.String[] { "Name", "DisplayName", "Labels", "AuthorizedNetwork", "Zones", "NodeCount", "NodeConfig", "MemcacheVersion", "Parameters", "MemcacheNodes", "CreateTime", "UpdateTime", "State", "MemcacheFullVersion", "InstanceMessages", "DiscoveryEndpoint", "UpdateAvailable", }); + internal_static_google_cloud_memcache_v1beta2_Instance_NodeConfig_descriptor = + internal_static_google_cloud_memcache_v1beta2_Instance_descriptor.getNestedTypes().get(0); + internal_static_google_cloud_memcache_v1beta2_Instance_NodeConfig_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_memcache_v1beta2_Instance_NodeConfig_descriptor, + new java.lang.String[] { "CpuCount", "MemorySizeMb", }); + internal_static_google_cloud_memcache_v1beta2_Instance_Node_descriptor = + internal_static_google_cloud_memcache_v1beta2_Instance_descriptor.getNestedTypes().get(1); + internal_static_google_cloud_memcache_v1beta2_Instance_Node_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_memcache_v1beta2_Instance_Node_descriptor, + new java.lang.String[] { "NodeId", "Zone", "State", "Host", "Port", "Parameters", "UpdateAvailable", }); + internal_static_google_cloud_memcache_v1beta2_Instance_InstanceMessage_descriptor = + internal_static_google_cloud_memcache_v1beta2_Instance_descriptor.getNestedTypes().get(2); + internal_static_google_cloud_memcache_v1beta2_Instance_InstanceMessage_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_memcache_v1beta2_Instance_InstanceMessage_descriptor, + new java.lang.String[] { "Code", "Message", }); + internal_static_google_cloud_memcache_v1beta2_Instance_LabelsEntry_descriptor = + internal_static_google_cloud_memcache_v1beta2_Instance_descriptor.getNestedTypes().get(3); + internal_static_google_cloud_memcache_v1beta2_Instance_LabelsEntry_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_memcache_v1beta2_Instance_LabelsEntry_descriptor, + new java.lang.String[] { "Key", "Value", }); + internal_static_google_cloud_memcache_v1beta2_ListInstancesRequest_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_google_cloud_memcache_v1beta2_ListInstancesRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_memcache_v1beta2_ListInstancesRequest_descriptor, + new java.lang.String[] { "Parent", "PageSize", "PageToken", "Filter", "OrderBy", }); + internal_static_google_cloud_memcache_v1beta2_ListInstancesResponse_descriptor = + getDescriptor().getMessageTypes().get(2); + internal_static_google_cloud_memcache_v1beta2_ListInstancesResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_memcache_v1beta2_ListInstancesResponse_descriptor, + new java.lang.String[] { "Resources", "NextPageToken", "Unreachable", }); + internal_static_google_cloud_memcache_v1beta2_GetInstanceRequest_descriptor = + getDescriptor().getMessageTypes().get(3); + internal_static_google_cloud_memcache_v1beta2_GetInstanceRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_memcache_v1beta2_GetInstanceRequest_descriptor, + new java.lang.String[] { "Name", }); + internal_static_google_cloud_memcache_v1beta2_CreateInstanceRequest_descriptor = + getDescriptor().getMessageTypes().get(4); + internal_static_google_cloud_memcache_v1beta2_CreateInstanceRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_memcache_v1beta2_CreateInstanceRequest_descriptor, + new java.lang.String[] { "Parent", "InstanceId", "Resource", }); + internal_static_google_cloud_memcache_v1beta2_UpdateInstanceRequest_descriptor = + getDescriptor().getMessageTypes().get(5); + internal_static_google_cloud_memcache_v1beta2_UpdateInstanceRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_memcache_v1beta2_UpdateInstanceRequest_descriptor, + new java.lang.String[] { "UpdateMask", "Resource", }); + internal_static_google_cloud_memcache_v1beta2_DeleteInstanceRequest_descriptor = + getDescriptor().getMessageTypes().get(6); + internal_static_google_cloud_memcache_v1beta2_DeleteInstanceRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_memcache_v1beta2_DeleteInstanceRequest_descriptor, + new java.lang.String[] { "Name", }); + internal_static_google_cloud_memcache_v1beta2_ApplyParametersRequest_descriptor = + getDescriptor().getMessageTypes().get(7); + internal_static_google_cloud_memcache_v1beta2_ApplyParametersRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_memcache_v1beta2_ApplyParametersRequest_descriptor, + new java.lang.String[] { "Name", "NodeIds", "ApplyAll", }); + internal_static_google_cloud_memcache_v1beta2_UpdateParametersRequest_descriptor = + getDescriptor().getMessageTypes().get(8); + internal_static_google_cloud_memcache_v1beta2_UpdateParametersRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_memcache_v1beta2_UpdateParametersRequest_descriptor, + new java.lang.String[] { "Name", "UpdateMask", "Parameters", }); + internal_static_google_cloud_memcache_v1beta2_ApplySoftwareUpdateRequest_descriptor = + getDescriptor().getMessageTypes().get(9); + internal_static_google_cloud_memcache_v1beta2_ApplySoftwareUpdateRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_memcache_v1beta2_ApplySoftwareUpdateRequest_descriptor, + new java.lang.String[] { "Instance", "NodeIds", "ApplyAll", }); + internal_static_google_cloud_memcache_v1beta2_MemcacheParameters_descriptor = + getDescriptor().getMessageTypes().get(10); + internal_static_google_cloud_memcache_v1beta2_MemcacheParameters_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_memcache_v1beta2_MemcacheParameters_descriptor, + new java.lang.String[] { "Id", "Params", }); + internal_static_google_cloud_memcache_v1beta2_MemcacheParameters_ParamsEntry_descriptor = + internal_static_google_cloud_memcache_v1beta2_MemcacheParameters_descriptor.getNestedTypes().get(0); + internal_static_google_cloud_memcache_v1beta2_MemcacheParameters_ParamsEntry_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_memcache_v1beta2_MemcacheParameters_ParamsEntry_descriptor, + new java.lang.String[] { "Key", "Value", }); + internal_static_google_cloud_memcache_v1beta2_OperationMetadata_descriptor = + getDescriptor().getMessageTypes().get(11); + internal_static_google_cloud_memcache_v1beta2_OperationMetadata_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_memcache_v1beta2_OperationMetadata_descriptor, + new java.lang.String[] { "CreateTime", "EndTime", "Target", "Verb", "StatusDetail", "CancelRequested", "ApiVersion", }); + internal_static_google_cloud_memcache_v1beta2_LocationMetadata_descriptor = + getDescriptor().getMessageTypes().get(12); + internal_static_google_cloud_memcache_v1beta2_LocationMetadata_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_memcache_v1beta2_LocationMetadata_descriptor, + new java.lang.String[] { "AvailableZones", }); + internal_static_google_cloud_memcache_v1beta2_LocationMetadata_AvailableZonesEntry_descriptor = + internal_static_google_cloud_memcache_v1beta2_LocationMetadata_descriptor.getNestedTypes().get(0); + internal_static_google_cloud_memcache_v1beta2_LocationMetadata_AvailableZonesEntry_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_memcache_v1beta2_LocationMetadata_AvailableZonesEntry_descriptor, + new java.lang.String[] { "Key", "Value", }); + internal_static_google_cloud_memcache_v1beta2_ZoneMetadata_descriptor = + getDescriptor().getMessageTypes().get(13); + internal_static_google_cloud_memcache_v1beta2_ZoneMetadata_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_memcache_v1beta2_ZoneMetadata_descriptor, + new java.lang.String[] { }); + 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.FieldMaskProto.getDescriptor(); + com.google.protobuf.TimestampProto.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/proto-google-cloud-memcache-v1beta2/src/main/java/com/google/cloud/memcache/v1beta2/CreateInstanceRequest.java b/owl-bot-staging/v1beta2/proto-google-cloud-memcache-v1beta2/src/main/java/com/google/cloud/memcache/v1beta2/CreateInstanceRequest.java similarity index 67% rename from proto-google-cloud-memcache-v1beta2/src/main/java/com/google/cloud/memcache/v1beta2/CreateInstanceRequest.java rename to owl-bot-staging/v1beta2/proto-google-cloud-memcache-v1beta2/src/main/java/com/google/cloud/memcache/v1beta2/CreateInstanceRequest.java index c4d8d0c8..131f8ec7 100644 --- a/proto-google-cloud-memcache-v1beta2/src/main/java/com/google/cloud/memcache/v1beta2/CreateInstanceRequest.java +++ b/owl-bot-staging/v1beta2/proto-google-cloud-memcache-v1beta2/src/main/java/com/google/cloud/memcache/v1beta2/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/memcache/v1beta2/cloud_memcache.proto package com.google.cloud.memcache.v1beta2; /** - * - * *
  * Request for [CreateInstance][google.cloud.memcache.v1beta2.CloudMemcache.CreateInstance].
  * 
* * Protobuf type {@code google.cloud.memcache.v1beta2.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.memcache.v1beta2.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.memcache.v1beta2.Instance.Builder subBuilder = null; + if (resource_ != null) { + subBuilder = resource_.toBuilder(); } - case 26: - { - com.google.cloud.memcache.v1beta2.Instance.Builder subBuilder = null; - if (resource_ != null) { - subBuilder = resource_.toBuilder(); - } - resource_ = - input.readMessage( - com.google.cloud.memcache.v1beta2.Instance.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(resource_); - resource_ = subBuilder.buildPartial(); - } - - break; + resource_ = input.readMessage(com.google.cloud.memcache.v1beta2.Instance.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(resource_); + resource_ = 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.memcache.v1beta2.CloudMemcacheProto - .internal_static_google_cloud_memcache_v1beta2_CreateInstanceRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.memcache.v1beta2.CloudMemcacheProto.internal_static_google_cloud_memcache_v1beta2_CreateInstanceRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.memcache.v1beta2.CloudMemcacheProto - .internal_static_google_cloud_memcache_v1beta2_CreateInstanceRequest_fieldAccessorTable + return com.google.cloud.memcache.v1beta2.CloudMemcacheProto.internal_static_google_cloud_memcache_v1beta2_CreateInstanceRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.memcache.v1beta2.CreateInstanceRequest.class, - com.google.cloud.memcache.v1beta2.CreateInstanceRequest.Builder.class); + com.google.cloud.memcache.v1beta2.CreateInstanceRequest.class, com.google.cloud.memcache.v1beta2.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 Memcached instance in the user
    * project with the following restrictions:
@@ -211,7 +178,6 @@ public com.google.protobuf.ByteString getParentBytes() {
    * 
* * string instance_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The instanceId. */ @java.lang.Override @@ -220,15 +186,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 Memcached instance in the user
    * project with the following restrictions:
@@ -241,15 +206,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 { @@ -260,16 +226,11 @@ public com.google.protobuf.ByteString getInstanceIdBytes() { public static final int RESOURCE_FIELD_NUMBER = 3; private com.google.cloud.memcache.v1beta2.Instance resource_; /** - * - * *
    * Required. A Memcached [Instance] resource
    * 
* - * - * .google.cloud.memcache.v1beta2.Instance resource = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.memcache.v1beta2.Instance resource = 3 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the resource field is set. */ @java.lang.Override @@ -277,34 +238,23 @@ public boolean hasResource() { return resource_ != null; } /** - * - * *
    * Required. A Memcached [Instance] resource
    * 
* - * - * .google.cloud.memcache.v1beta2.Instance resource = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.memcache.v1beta2.Instance resource = 3 [(.google.api.field_behavior) = REQUIRED]; * @return The resource. */ @java.lang.Override public com.google.cloud.memcache.v1beta2.Instance getResource() { - return resource_ == null - ? com.google.cloud.memcache.v1beta2.Instance.getDefaultInstance() - : resource_; + return resource_ == null ? com.google.cloud.memcache.v1beta2.Instance.getDefaultInstance() : resource_; } /** - * - * *
    * Required. A Memcached [Instance] resource
    * 
* - * - * .google.cloud.memcache.v1beta2.Instance resource = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.memcache.v1beta2.Instance resource = 3 [(.google.api.field_behavior) = REQUIRED]; */ @java.lang.Override public com.google.cloud.memcache.v1beta2.InstanceOrBuilder getResourceOrBuilder() { @@ -312,7 +262,6 @@ public com.google.cloud.memcache.v1beta2.InstanceOrBuilder getResourceOrBuilder( } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -324,7 +273,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); } @@ -350,7 +300,8 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, instanceId_); } if (resource_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getResource()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(3, getResource()); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -360,19 +311,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.memcache.v1beta2.CreateInstanceRequest)) { return super.equals(obj); } - com.google.cloud.memcache.v1beta2.CreateInstanceRequest other = - (com.google.cloud.memcache.v1beta2.CreateInstanceRequest) obj; + com.google.cloud.memcache.v1beta2.CreateInstanceRequest other = (com.google.cloud.memcache.v1beta2.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 (hasResource() != other.hasResource()) return false; if (hasResource()) { - if (!getResource().equals(other.getResource())) return false; + if (!getResource() + .equals(other.getResource())) return false; } if (!unknownFields.equals(other.unknownFields)) return false; return true; @@ -399,127 +352,117 @@ public int hashCode() { } public static com.google.cloud.memcache.v1beta2.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.memcache.v1beta2.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.memcache.v1beta2.CreateInstanceRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.memcache.v1beta2.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.memcache.v1beta2.CreateInstanceRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.memcache.v1beta2.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.memcache.v1beta2.CreateInstanceRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.memcache.v1beta2.CreateInstanceRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.memcache.v1beta2.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.memcache.v1beta2.CreateInstanceRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.memcache.v1beta2.CreateInstanceRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.memcache.v1beta2.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.memcache.v1beta2.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.memcache.v1beta2.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.memcache.v1beta2.CreateInstanceRequest prototype) { + public static Builder newBuilder(com.google.cloud.memcache.v1beta2.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.memcache.v1beta2.CloudMemcache.CreateInstance].
    * 
* * Protobuf type {@code google.cloud.memcache.v1beta2.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.memcache.v1beta2.CreateInstanceRequest) com.google.cloud.memcache.v1beta2.CreateInstanceRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.memcache.v1beta2.CloudMemcacheProto - .internal_static_google_cloud_memcache_v1beta2_CreateInstanceRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.memcache.v1beta2.CloudMemcacheProto.internal_static_google_cloud_memcache_v1beta2_CreateInstanceRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.memcache.v1beta2.CloudMemcacheProto - .internal_static_google_cloud_memcache_v1beta2_CreateInstanceRequest_fieldAccessorTable + return com.google.cloud.memcache.v1beta2.CloudMemcacheProto.internal_static_google_cloud_memcache_v1beta2_CreateInstanceRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.memcache.v1beta2.CreateInstanceRequest.class, - com.google.cloud.memcache.v1beta2.CreateInstanceRequest.Builder.class); + com.google.cloud.memcache.v1beta2.CreateInstanceRequest.class, com.google.cloud.memcache.v1beta2.CreateInstanceRequest.Builder.class); } // Construct using com.google.cloud.memcache.v1beta2.CreateInstanceRequest.newBuilder() @@ -527,15 +470,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(); @@ -553,9 +497,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.memcache.v1beta2.CloudMemcacheProto - .internal_static_google_cloud_memcache_v1beta2_CreateInstanceRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.memcache.v1beta2.CloudMemcacheProto.internal_static_google_cloud_memcache_v1beta2_CreateInstanceRequest_descriptor; } @java.lang.Override @@ -574,8 +518,7 @@ public com.google.cloud.memcache.v1beta2.CreateInstanceRequest build() { @java.lang.Override public com.google.cloud.memcache.v1beta2.CreateInstanceRequest buildPartial() { - com.google.cloud.memcache.v1beta2.CreateInstanceRequest result = - new com.google.cloud.memcache.v1beta2.CreateInstanceRequest(this); + com.google.cloud.memcache.v1beta2.CreateInstanceRequest result = new com.google.cloud.memcache.v1beta2.CreateInstanceRequest(this); result.parent_ = parent_; result.instanceId_ = instanceId_; if (resourceBuilder_ == null) { @@ -591,39 +534,38 @@ public com.google.cloud.memcache.v1beta2.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.memcache.v1beta2.CreateInstanceRequest) { - return mergeFrom((com.google.cloud.memcache.v1beta2.CreateInstanceRequest) other); + return mergeFrom((com.google.cloud.memcache.v1beta2.CreateInstanceRequest)other); } else { super.mergeFrom(other); return this; @@ -631,8 +573,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.memcache.v1beta2.CreateInstanceRequest other) { - if (other == com.google.cloud.memcache.v1beta2.CreateInstanceRequest.getDefaultInstance()) - return this; + if (other == com.google.cloud.memcache.v1beta2.CreateInstanceRequest.getDefaultInstance()) return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; onChanged(); @@ -663,8 +604,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.memcache.v1beta2.CreateInstanceRequest) e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.memcache.v1beta2.CreateInstanceRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -676,24 +616,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; @@ -702,25 +638,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 { @@ -728,73 +661,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; @@ -802,8 +722,6 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { private java.lang.Object instanceId_ = ""; /** - * - * *
      * Required. The logical name of the Memcached instance in the user
      * project with the following restrictions:
@@ -816,13 +734,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; @@ -831,8 +749,6 @@ public java.lang.String getInstanceId() { } } /** - * - * *
      * Required. The logical name of the Memcached instance in the user
      * project with the following restrictions:
@@ -845,14 +761,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 { @@ -860,8 +777,6 @@ public com.google.protobuf.ByteString getInstanceIdBytes() { } } /** - * - * *
      * Required. The logical name of the Memcached instance in the user
      * project with the following restrictions:
@@ -874,22 +789,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 Memcached instance in the user
      * project with the following restrictions:
@@ -902,18 +815,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 Memcached instance in the user
      * project with the following restrictions:
@@ -926,16 +836,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; @@ -943,58 +853,39 @@ public Builder setInstanceIdBytes(com.google.protobuf.ByteString value) { private com.google.cloud.memcache.v1beta2.Instance resource_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.memcache.v1beta2.Instance, - com.google.cloud.memcache.v1beta2.Instance.Builder, - com.google.cloud.memcache.v1beta2.InstanceOrBuilder> - resourceBuilder_; + com.google.cloud.memcache.v1beta2.Instance, com.google.cloud.memcache.v1beta2.Instance.Builder, com.google.cloud.memcache.v1beta2.InstanceOrBuilder> resourceBuilder_; /** - * - * *
      * Required. A Memcached [Instance] resource
      * 
* - * - * .google.cloud.memcache.v1beta2.Instance resource = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.memcache.v1beta2.Instance resource = 3 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the resource field is set. */ public boolean hasResource() { return resourceBuilder_ != null || resource_ != null; } /** - * - * *
      * Required. A Memcached [Instance] resource
      * 
* - * - * .google.cloud.memcache.v1beta2.Instance resource = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.memcache.v1beta2.Instance resource = 3 [(.google.api.field_behavior) = REQUIRED]; * @return The resource. */ public com.google.cloud.memcache.v1beta2.Instance getResource() { if (resourceBuilder_ == null) { - return resource_ == null - ? com.google.cloud.memcache.v1beta2.Instance.getDefaultInstance() - : resource_; + return resource_ == null ? com.google.cloud.memcache.v1beta2.Instance.getDefaultInstance() : resource_; } else { return resourceBuilder_.getMessage(); } } /** - * - * *
      * Required. A Memcached [Instance] resource
      * 
* - * - * .google.cloud.memcache.v1beta2.Instance resource = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.memcache.v1beta2.Instance resource = 3 [(.google.api.field_behavior) = REQUIRED]; */ public Builder setResource(com.google.cloud.memcache.v1beta2.Instance value) { if (resourceBuilder_ == null) { @@ -1010,17 +901,14 @@ public Builder setResource(com.google.cloud.memcache.v1beta2.Instance value) { return this; } /** - * - * *
      * Required. A Memcached [Instance] resource
      * 
* - * - * .google.cloud.memcache.v1beta2.Instance resource = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.memcache.v1beta2.Instance resource = 3 [(.google.api.field_behavior) = REQUIRED]; */ - public Builder setResource(com.google.cloud.memcache.v1beta2.Instance.Builder builderForValue) { + public Builder setResource( + com.google.cloud.memcache.v1beta2.Instance.Builder builderForValue) { if (resourceBuilder_ == null) { resource_ = builderForValue.build(); onChanged(); @@ -1031,23 +919,17 @@ public Builder setResource(com.google.cloud.memcache.v1beta2.Instance.Builder bu return this; } /** - * - * *
      * Required. A Memcached [Instance] resource
      * 
* - * - * .google.cloud.memcache.v1beta2.Instance resource = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.memcache.v1beta2.Instance resource = 3 [(.google.api.field_behavior) = REQUIRED]; */ public Builder mergeResource(com.google.cloud.memcache.v1beta2.Instance value) { if (resourceBuilder_ == null) { if (resource_ != null) { resource_ = - com.google.cloud.memcache.v1beta2.Instance.newBuilder(resource_) - .mergeFrom(value) - .buildPartial(); + com.google.cloud.memcache.v1beta2.Instance.newBuilder(resource_).mergeFrom(value).buildPartial(); } else { resource_ = value; } @@ -1059,15 +941,11 @@ public Builder mergeResource(com.google.cloud.memcache.v1beta2.Instance value) { return this; } /** - * - * *
      * Required. A Memcached [Instance] resource
      * 
* - * - * .google.cloud.memcache.v1beta2.Instance resource = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.memcache.v1beta2.Instance resource = 3 [(.google.api.field_behavior) = REQUIRED]; */ public Builder clearResource() { if (resourceBuilder_ == null) { @@ -1081,71 +959,55 @@ public Builder clearResource() { return this; } /** - * - * *
      * Required. A Memcached [Instance] resource
      * 
* - * - * .google.cloud.memcache.v1beta2.Instance resource = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.memcache.v1beta2.Instance resource = 3 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.cloud.memcache.v1beta2.Instance.Builder getResourceBuilder() { - + onChanged(); return getResourceFieldBuilder().getBuilder(); } /** - * - * *
      * Required. A Memcached [Instance] resource
      * 
* - * - * .google.cloud.memcache.v1beta2.Instance resource = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.memcache.v1beta2.Instance resource = 3 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.cloud.memcache.v1beta2.InstanceOrBuilder getResourceOrBuilder() { if (resourceBuilder_ != null) { return resourceBuilder_.getMessageOrBuilder(); } else { - return resource_ == null - ? com.google.cloud.memcache.v1beta2.Instance.getDefaultInstance() - : resource_; + return resource_ == null ? + com.google.cloud.memcache.v1beta2.Instance.getDefaultInstance() : resource_; } } /** - * - * *
      * Required. A Memcached [Instance] resource
      * 
* - * - * .google.cloud.memcache.v1beta2.Instance resource = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.memcache.v1beta2.Instance resource = 3 [(.google.api.field_behavior) = REQUIRED]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.memcache.v1beta2.Instance, - com.google.cloud.memcache.v1beta2.Instance.Builder, - com.google.cloud.memcache.v1beta2.InstanceOrBuilder> + com.google.cloud.memcache.v1beta2.Instance, com.google.cloud.memcache.v1beta2.Instance.Builder, com.google.cloud.memcache.v1beta2.InstanceOrBuilder> getResourceFieldBuilder() { if (resourceBuilder_ == null) { - resourceBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.memcache.v1beta2.Instance, - com.google.cloud.memcache.v1beta2.Instance.Builder, - com.google.cloud.memcache.v1beta2.InstanceOrBuilder>( - getResource(), getParentForChildren(), isClean()); + resourceBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.memcache.v1beta2.Instance, com.google.cloud.memcache.v1beta2.Instance.Builder, com.google.cloud.memcache.v1beta2.InstanceOrBuilder>( + getResource(), + getParentForChildren(), + isClean()); resource_ = null; } return resourceBuilder_; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1155,12 +1017,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.memcache.v1beta2.CreateInstanceRequest) } // @@protoc_insertion_point(class_scope:google.cloud.memcache.v1beta2.CreateInstanceRequest) private static final com.google.cloud.memcache.v1beta2.CreateInstanceRequest DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.memcache.v1beta2.CreateInstanceRequest(); } @@ -1169,16 +1031,16 @@ public static com.google.cloud.memcache.v1beta2.CreateInstanceRequest getDefault 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; @@ -1193,4 +1055,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.memcache.v1beta2.CreateInstanceRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-memcache-v1beta2/src/main/java/com/google/cloud/memcache/v1beta2/CreateInstanceRequestOrBuilder.java b/owl-bot-staging/v1beta2/proto-google-cloud-memcache-v1beta2/src/main/java/com/google/cloud/memcache/v1beta2/CreateInstanceRequestOrBuilder.java similarity index 63% rename from proto-google-cloud-memcache-v1beta2/src/main/java/com/google/cloud/memcache/v1beta2/CreateInstanceRequestOrBuilder.java rename to owl-bot-staging/v1beta2/proto-google-cloud-memcache-v1beta2/src/main/java/com/google/cloud/memcache/v1beta2/CreateInstanceRequestOrBuilder.java index 13a41194..bc8fe542 100644 --- a/proto-google-cloud-memcache-v1beta2/src/main/java/com/google/cloud/memcache/v1beta2/CreateInstanceRequestOrBuilder.java +++ b/owl-bot-staging/v1beta2/proto-google-cloud-memcache-v1beta2/src/main/java/com/google/cloud/memcache/v1beta2/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/memcache/v1beta2/cloud_memcache.proto package com.google.cloud.memcache.v1beta2; -public interface CreateInstanceRequestOrBuilder - extends +public interface CreateInstanceRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.memcache.v1beta2.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 Memcached instance in the user
    * project with the following restrictions:
@@ -71,13 +44,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 Memcached instance in the user
    * project with the following restrictions:
@@ -90,49 +60,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 Memcached [Instance] resource
    * 
* - * - * .google.cloud.memcache.v1beta2.Instance resource = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.memcache.v1beta2.Instance resource = 3 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the resource field is set. */ boolean hasResource(); /** - * - * *
    * Required. A Memcached [Instance] resource
    * 
* - * - * .google.cloud.memcache.v1beta2.Instance resource = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.memcache.v1beta2.Instance resource = 3 [(.google.api.field_behavior) = REQUIRED]; * @return The resource. */ com.google.cloud.memcache.v1beta2.Instance getResource(); /** - * - * *
    * Required. A Memcached [Instance] resource
    * 
* - * - * .google.cloud.memcache.v1beta2.Instance resource = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.memcache.v1beta2.Instance resource = 3 [(.google.api.field_behavior) = REQUIRED]; */ com.google.cloud.memcache.v1beta2.InstanceOrBuilder getResourceOrBuilder(); } diff --git a/proto-google-cloud-memcache-v1beta2/src/main/java/com/google/cloud/memcache/v1beta2/DeleteInstanceRequest.java b/owl-bot-staging/v1beta2/proto-google-cloud-memcache-v1beta2/src/main/java/com/google/cloud/memcache/v1beta2/DeleteInstanceRequest.java similarity index 66% rename from proto-google-cloud-memcache-v1beta2/src/main/java/com/google/cloud/memcache/v1beta2/DeleteInstanceRequest.java rename to owl-bot-staging/v1beta2/proto-google-cloud-memcache-v1beta2/src/main/java/com/google/cloud/memcache/v1beta2/DeleteInstanceRequest.java index 9603a981..3bda98d5 100644 --- a/proto-google-cloud-memcache-v1beta2/src/main/java/com/google/cloud/memcache/v1beta2/DeleteInstanceRequest.java +++ b/owl-bot-staging/v1beta2/proto-google-cloud-memcache-v1beta2/src/main/java/com/google/cloud/memcache/v1beta2/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/memcache/v1beta2/cloud_memcache.proto package com.google.cloud.memcache.v1beta2; /** - * - * *
  * Request for [DeleteInstance][google.cloud.memcache.v1beta2.CloudMemcache.DeleteInstance].
  * 
* * Protobuf type {@code google.cloud.memcache.v1beta2.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.memcache.v1beta2.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.memcache.v1beta2.CloudMemcacheProto - .internal_static_google_cloud_memcache_v1beta2_DeleteInstanceRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.memcache.v1beta2.CloudMemcacheProto.internal_static_google_cloud_memcache_v1beta2_DeleteInstanceRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.memcache.v1beta2.CloudMemcacheProto - .internal_static_google_cloud_memcache_v1beta2_DeleteInstanceRequest_fieldAccessorTable + return com.google.cloud.memcache.v1beta2.CloudMemcacheProto.internal_static_google_cloud_memcache_v1beta2_DeleteInstanceRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.memcache.v1beta2.DeleteInstanceRequest.class, - com.google.cloud.memcache.v1beta2.DeleteInstanceRequest.Builder.class); + com.google.cloud.memcache.v1beta2.DeleteInstanceRequest.class, com.google.cloud.memcache.v1beta2.DeleteInstanceRequest.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** - * - * *
    * Required. Memcached instance resource name in the format:
    *     `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. Memcached instance resource name in the format:
    *     `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.memcache.v1beta2.DeleteInstanceRequest)) { return super.equals(obj); } - com.google.cloud.memcache.v1beta2.DeleteInstanceRequest other = - (com.google.cloud.memcache.v1beta2.DeleteInstanceRequest) obj; + com.google.cloud.memcache.v1beta2.DeleteInstanceRequest other = (com.google.cloud.memcache.v1beta2.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,127 +208,117 @@ public int hashCode() { } public static com.google.cloud.memcache.v1beta2.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.memcache.v1beta2.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.memcache.v1beta2.DeleteInstanceRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.memcache.v1beta2.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.memcache.v1beta2.DeleteInstanceRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.memcache.v1beta2.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.memcache.v1beta2.DeleteInstanceRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.memcache.v1beta2.DeleteInstanceRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.memcache.v1beta2.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.memcache.v1beta2.DeleteInstanceRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.memcache.v1beta2.DeleteInstanceRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.memcache.v1beta2.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.memcache.v1beta2.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.memcache.v1beta2.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.memcache.v1beta2.DeleteInstanceRequest prototype) { + public static Builder newBuilder(com.google.cloud.memcache.v1beta2.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.memcache.v1beta2.CloudMemcache.DeleteInstance].
    * 
* * Protobuf type {@code google.cloud.memcache.v1beta2.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.memcache.v1beta2.DeleteInstanceRequest) com.google.cloud.memcache.v1beta2.DeleteInstanceRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.memcache.v1beta2.CloudMemcacheProto - .internal_static_google_cloud_memcache_v1beta2_DeleteInstanceRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.memcache.v1beta2.CloudMemcacheProto.internal_static_google_cloud_memcache_v1beta2_DeleteInstanceRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.memcache.v1beta2.CloudMemcacheProto - .internal_static_google_cloud_memcache_v1beta2_DeleteInstanceRequest_fieldAccessorTable + return com.google.cloud.memcache.v1beta2.CloudMemcacheProto.internal_static_google_cloud_memcache_v1beta2_DeleteInstanceRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.memcache.v1beta2.DeleteInstanceRequest.class, - com.google.cloud.memcache.v1beta2.DeleteInstanceRequest.Builder.class); + com.google.cloud.memcache.v1beta2.DeleteInstanceRequest.class, com.google.cloud.memcache.v1beta2.DeleteInstanceRequest.Builder.class); } // Construct using com.google.cloud.memcache.v1beta2.DeleteInstanceRequest.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.memcache.v1beta2.CloudMemcacheProto - .internal_static_google_cloud_memcache_v1beta2_DeleteInstanceRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.memcache.v1beta2.CloudMemcacheProto.internal_static_google_cloud_memcache_v1beta2_DeleteInstanceRequest_descriptor; } @java.lang.Override @@ -402,8 +366,7 @@ public com.google.cloud.memcache.v1beta2.DeleteInstanceRequest build() { @java.lang.Override public com.google.cloud.memcache.v1beta2.DeleteInstanceRequest buildPartial() { - com.google.cloud.memcache.v1beta2.DeleteInstanceRequest result = - new com.google.cloud.memcache.v1beta2.DeleteInstanceRequest(this); + com.google.cloud.memcache.v1beta2.DeleteInstanceRequest result = new com.google.cloud.memcache.v1beta2.DeleteInstanceRequest(this); result.name_ = name_; onBuilt(); return result; @@ -413,39 +376,38 @@ public com.google.cloud.memcache.v1beta2.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.memcache.v1beta2.DeleteInstanceRequest) { - return mergeFrom((com.google.cloud.memcache.v1beta2.DeleteInstanceRequest) other); + return mergeFrom((com.google.cloud.memcache.v1beta2.DeleteInstanceRequest)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.memcache.v1beta2.DeleteInstanceRequest other) { - if (other == com.google.cloud.memcache.v1beta2.DeleteInstanceRequest.getDefaultInstance()) - return this; + if (other == com.google.cloud.memcache.v1beta2.DeleteInstanceRequest.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.memcache.v1beta2.DeleteInstanceRequest) e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.memcache.v1beta2.DeleteInstanceRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -491,24 +451,20 @@ public Builder mergeFrom( private java.lang.Object name_ = ""; /** - * - * *
      * Required. Memcached instance resource name in the format:
      *     `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. Memcached instance resource name in the format:
      *     `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. Memcached instance resource name in the format:
      *     `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. Memcached instance resource name in the format:
      *     `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. Memcached instance resource name in the format:
      *     `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.memcache.v1beta2.DeleteInstanceRequest) } // @@protoc_insertion_point(class_scope:google.cloud.memcache.v1beta2.DeleteInstanceRequest) private static final com.google.cloud.memcache.v1beta2.DeleteInstanceRequest DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.memcache.v1beta2.DeleteInstanceRequest(); } @@ -640,16 +580,16 @@ public static com.google.cloud.memcache.v1beta2.DeleteInstanceRequest getDefault 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; @@ -664,4 +604,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.memcache.v1beta2.DeleteInstanceRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/owl-bot-staging/v1beta2/proto-google-cloud-memcache-v1beta2/src/main/java/com/google/cloud/memcache/v1beta2/DeleteInstanceRequestOrBuilder.java b/owl-bot-staging/v1beta2/proto-google-cloud-memcache-v1beta2/src/main/java/com/google/cloud/memcache/v1beta2/DeleteInstanceRequestOrBuilder.java new file mode 100644 index 00000000..69747a4f --- /dev/null +++ b/owl-bot-staging/v1beta2/proto-google-cloud-memcache-v1beta2/src/main/java/com/google/cloud/memcache/v1beta2/DeleteInstanceRequestOrBuilder.java @@ -0,0 +1,33 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/memcache/v1beta2/cloud_memcache.proto + +package com.google.cloud.memcache.v1beta2; + +public interface DeleteInstanceRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.cloud.memcache.v1beta2.DeleteInstanceRequest) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * Required. Memcached instance resource name in the format:
+   *     `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. Memcached instance resource name in the format:
+   *     `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-memcache-v1beta2/src/main/java/com/google/cloud/memcache/v1beta2/GetInstanceRequest.java b/owl-bot-staging/v1beta2/proto-google-cloud-memcache-v1beta2/src/main/java/com/google/cloud/memcache/v1beta2/GetInstanceRequest.java similarity index 67% rename from proto-google-cloud-memcache-v1beta2/src/main/java/com/google/cloud/memcache/v1beta2/GetInstanceRequest.java rename to owl-bot-staging/v1beta2/proto-google-cloud-memcache-v1beta2/src/main/java/com/google/cloud/memcache/v1beta2/GetInstanceRequest.java index ae6e7b72..886b55fc 100644 --- a/proto-google-cloud-memcache-v1beta2/src/main/java/com/google/cloud/memcache/v1beta2/GetInstanceRequest.java +++ b/owl-bot-staging/v1beta2/proto-google-cloud-memcache-v1beta2/src/main/java/com/google/cloud/memcache/v1beta2/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/memcache/v1beta2/cloud_memcache.proto package com.google.cloud.memcache.v1beta2; /** - * - * *
  * Request for [GetInstance][google.cloud.memcache.v1beta2.CloudMemcache.GetInstance].
  * 
* * Protobuf type {@code google.cloud.memcache.v1beta2.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.memcache.v1beta2.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.memcache.v1beta2.CloudMemcacheProto - .internal_static_google_cloud_memcache_v1beta2_GetInstanceRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.memcache.v1beta2.CloudMemcacheProto.internal_static_google_cloud_memcache_v1beta2_GetInstanceRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.memcache.v1beta2.CloudMemcacheProto - .internal_static_google_cloud_memcache_v1beta2_GetInstanceRequest_fieldAccessorTable + return com.google.cloud.memcache.v1beta2.CloudMemcacheProto.internal_static_google_cloud_memcache_v1beta2_GetInstanceRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.memcache.v1beta2.GetInstanceRequest.class, - com.google.cloud.memcache.v1beta2.GetInstanceRequest.Builder.class); + com.google.cloud.memcache.v1beta2.GetInstanceRequest.class, com.google.cloud.memcache.v1beta2.GetInstanceRequest.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** - * - * *
    * Required. Memcached instance resource name in the format:
    *     `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. Memcached instance resource name in the format:
    *     `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.memcache.v1beta2.GetInstanceRequest)) { return super.equals(obj); } - com.google.cloud.memcache.v1beta2.GetInstanceRequest other = - (com.google.cloud.memcache.v1beta2.GetInstanceRequest) obj; + com.google.cloud.memcache.v1beta2.GetInstanceRequest other = (com.google.cloud.memcache.v1beta2.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.memcache.v1beta2.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.memcache.v1beta2.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.memcache.v1beta2.GetInstanceRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.memcache.v1beta2.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.memcache.v1beta2.GetInstanceRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.memcache.v1beta2.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.memcache.v1beta2.GetInstanceRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.memcache.v1beta2.GetInstanceRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.memcache.v1beta2.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.memcache.v1beta2.GetInstanceRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.memcache.v1beta2.GetInstanceRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.memcache.v1beta2.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.memcache.v1beta2.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.memcache.v1beta2.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.memcache.v1beta2.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.memcache.v1beta2.CloudMemcache.GetInstance].
    * 
* * Protobuf type {@code google.cloud.memcache.v1beta2.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.memcache.v1beta2.GetInstanceRequest) com.google.cloud.memcache.v1beta2.GetInstanceRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.memcache.v1beta2.CloudMemcacheProto - .internal_static_google_cloud_memcache_v1beta2_GetInstanceRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.memcache.v1beta2.CloudMemcacheProto.internal_static_google_cloud_memcache_v1beta2_GetInstanceRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.memcache.v1beta2.CloudMemcacheProto - .internal_static_google_cloud_memcache_v1beta2_GetInstanceRequest_fieldAccessorTable + return com.google.cloud.memcache.v1beta2.CloudMemcacheProto.internal_static_google_cloud_memcache_v1beta2_GetInstanceRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.memcache.v1beta2.GetInstanceRequest.class, - com.google.cloud.memcache.v1beta2.GetInstanceRequest.Builder.class); + com.google.cloud.memcache.v1beta2.GetInstanceRequest.class, com.google.cloud.memcache.v1beta2.GetInstanceRequest.Builder.class); } // Construct using com.google.cloud.memcache.v1beta2.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.memcache.v1beta2.CloudMemcacheProto - .internal_static_google_cloud_memcache_v1beta2_GetInstanceRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.memcache.v1beta2.CloudMemcacheProto.internal_static_google_cloud_memcache_v1beta2_GetInstanceRequest_descriptor; } @java.lang.Override @@ -401,8 +366,7 @@ public com.google.cloud.memcache.v1beta2.GetInstanceRequest build() { @java.lang.Override public com.google.cloud.memcache.v1beta2.GetInstanceRequest buildPartial() { - com.google.cloud.memcache.v1beta2.GetInstanceRequest result = - new com.google.cloud.memcache.v1beta2.GetInstanceRequest(this); + com.google.cloud.memcache.v1beta2.GetInstanceRequest result = new com.google.cloud.memcache.v1beta2.GetInstanceRequest(this); result.name_ = name_; onBuilt(); return result; @@ -412,39 +376,38 @@ public com.google.cloud.memcache.v1beta2.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.memcache.v1beta2.GetInstanceRequest) { - return mergeFrom((com.google.cloud.memcache.v1beta2.GetInstanceRequest) other); + return mergeFrom((com.google.cloud.memcache.v1beta2.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.memcache.v1beta2.GetInstanceRequest other) { - if (other == com.google.cloud.memcache.v1beta2.GetInstanceRequest.getDefaultInstance()) - return this; + if (other == com.google.cloud.memcache.v1beta2.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.memcache.v1beta2.GetInstanceRequest) e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.memcache.v1beta2.GetInstanceRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -490,24 +451,20 @@ public Builder mergeFrom( private java.lang.Object name_ = ""; /** - * - * *
      * Required. Memcached instance resource name in the format:
      *     `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. Memcached instance resource name in the format:
      *     `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. Memcached instance resource name in the format:
      *     `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. Memcached instance resource name in the format:
      *     `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. Memcached instance resource name in the format:
      *     `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.memcache.v1beta2.GetInstanceRequest) } // @@protoc_insertion_point(class_scope:google.cloud.memcache.v1beta2.GetInstanceRequest) private static final com.google.cloud.memcache.v1beta2.GetInstanceRequest DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.memcache.v1beta2.GetInstanceRequest(); } @@ -639,16 +580,16 @@ public static com.google.cloud.memcache.v1beta2.GetInstanceRequest getDefaultIns 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.memcache.v1beta2.GetInstanceRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/owl-bot-staging/v1beta2/proto-google-cloud-memcache-v1beta2/src/main/java/com/google/cloud/memcache/v1beta2/GetInstanceRequestOrBuilder.java b/owl-bot-staging/v1beta2/proto-google-cloud-memcache-v1beta2/src/main/java/com/google/cloud/memcache/v1beta2/GetInstanceRequestOrBuilder.java new file mode 100644 index 00000000..5ddfb6c5 --- /dev/null +++ b/owl-bot-staging/v1beta2/proto-google-cloud-memcache-v1beta2/src/main/java/com/google/cloud/memcache/v1beta2/GetInstanceRequestOrBuilder.java @@ -0,0 +1,33 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/memcache/v1beta2/cloud_memcache.proto + +package com.google.cloud.memcache.v1beta2; + +public interface GetInstanceRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.cloud.memcache.v1beta2.GetInstanceRequest) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * Required. Memcached instance resource name in the format:
+   *     `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. Memcached instance resource name in the format:
+   *     `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-memcache-v1beta2/src/main/java/com/google/cloud/memcache/v1beta2/Instance.java b/owl-bot-staging/v1beta2/proto-google-cloud-memcache-v1beta2/src/main/java/com/google/cloud/memcache/v1beta2/Instance.java similarity index 72% rename from proto-google-cloud-memcache-v1beta2/src/main/java/com/google/cloud/memcache/v1beta2/Instance.java rename to owl-bot-staging/v1beta2/proto-google-cloud-memcache-v1beta2/src/main/java/com/google/cloud/memcache/v1beta2/Instance.java index 61f82a41..3f6b0088 100644 --- a/proto-google-cloud-memcache-v1beta2/src/main/java/com/google/cloud/memcache/v1beta2/Instance.java +++ b/owl-bot-staging/v1beta2/proto-google-cloud-memcache-v1beta2/src/main/java/com/google/cloud/memcache/v1beta2/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/memcache/v1beta2/cloud_memcache.proto package com.google.cloud.memcache.v1beta2; /** - * - * *
  * A Memorystore for Memcached instance
  * 
* * Protobuf type {@code google.cloud.memcache.v1beta2.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.memcache.v1beta2.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_ = ""; @@ -52,15 +34,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) @@ -80,185 +63,157 @@ 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(); - authorizedNetwork_ = s; - break; - } - case 42: - { - java.lang.String s = input.readStringRequireUtf8(); - if (!((mutable_bitField0_ & 0x00000002) != 0)) { - zones_ = new com.google.protobuf.LazyStringArrayList(); - mutable_bitField0_ |= 0x00000002; - } - zones_.add(s); - break; - } - case 48: - { - nodeCount_ = input.readInt32(); - break; + authorizedNetwork_ = s; + break; + } + case 42: { + java.lang.String s = input.readStringRequireUtf8(); + if (!((mutable_bitField0_ & 0x00000002) != 0)) { + zones_ = new com.google.protobuf.LazyStringArrayList(); + mutable_bitField0_ |= 0x00000002; } - case 58: - { - com.google.cloud.memcache.v1beta2.Instance.NodeConfig.Builder subBuilder = null; - if (nodeConfig_ != null) { - subBuilder = nodeConfig_.toBuilder(); - } - nodeConfig_ = - input.readMessage( - com.google.cloud.memcache.v1beta2.Instance.NodeConfig.parser(), - extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(nodeConfig_); - nodeConfig_ = subBuilder.buildPartial(); - } + zones_.add(s); + break; + } + case 48: { - break; + nodeCount_ = input.readInt32(); + break; + } + case 58: { + com.google.cloud.memcache.v1beta2.Instance.NodeConfig.Builder subBuilder = null; + if (nodeConfig_ != null) { + subBuilder = nodeConfig_.toBuilder(); } - case 72: - { - int rawValue = input.readEnum(); - - memcacheVersion_ = rawValue; - break; + nodeConfig_ = input.readMessage(com.google.cloud.memcache.v1beta2.Instance.NodeConfig.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(nodeConfig_); + nodeConfig_ = subBuilder.buildPartial(); } - case 90: - { - com.google.cloud.memcache.v1beta2.MemcacheParameters.Builder subBuilder = null; - if (parameters_ != null) { - subBuilder = parameters_.toBuilder(); - } - parameters_ = - input.readMessage( - com.google.cloud.memcache.v1beta2.MemcacheParameters.parser(), - extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(parameters_); - parameters_ = subBuilder.buildPartial(); - } - break; + break; + } + case 72: { + int rawValue = input.readEnum(); + + memcacheVersion_ = rawValue; + break; + } + case 90: { + com.google.cloud.memcache.v1beta2.MemcacheParameters.Builder subBuilder = null; + if (parameters_ != null) { + subBuilder = parameters_.toBuilder(); } - case 98: - { - if (!((mutable_bitField0_ & 0x00000004) != 0)) { - memcacheNodes_ = - new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000004; - } - memcacheNodes_.add( - input.readMessage( - com.google.cloud.memcache.v1beta2.Instance.Node.parser(), extensionRegistry)); - break; + parameters_ = input.readMessage(com.google.cloud.memcache.v1beta2.MemcacheParameters.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(parameters_); + parameters_ = subBuilder.buildPartial(); } - 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; + break; + } + case 98: { + if (!((mutable_bitField0_ & 0x00000004) != 0)) { + memcacheNodes_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000004; } - case 114: - { - 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; + memcacheNodes_.add( + input.readMessage(com.google.cloud.memcache.v1beta2.Instance.Node.parser(), extensionRegistry)); + break; + } + case 106: { + com.google.protobuf.Timestamp.Builder subBuilder = null; + if (createTime_ != null) { + subBuilder = createTime_.toBuilder(); } - case 120: - { - int rawValue = input.readEnum(); - - state_ = rawValue; - break; + createTime_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(createTime_); + createTime_ = subBuilder.buildPartial(); } - case 146: - { - java.lang.String s = input.readStringRequireUtf8(); - memcacheFullVersion_ = s; - break; + break; + } + case 114: { + com.google.protobuf.Timestamp.Builder subBuilder = null; + if (updateTime_ != null) { + subBuilder = updateTime_.toBuilder(); } - case 154: - { - if (!((mutable_bitField0_ & 0x00000008) != 0)) { - instanceMessages_ = - new java.util.ArrayList< - com.google.cloud.memcache.v1beta2.Instance.InstanceMessage>(); - mutable_bitField0_ |= 0x00000008; - } - instanceMessages_.add( - input.readMessage( - com.google.cloud.memcache.v1beta2.Instance.InstanceMessage.parser(), - extensionRegistry)); - break; + updateTime_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(updateTime_); + updateTime_ = subBuilder.buildPartial(); } - case 162: - { - java.lang.String s = input.readStringRequireUtf8(); - discoveryEndpoint_ = s; - break; - } - case 168: - { - updateAvailable_ = input.readBool(); - break; + break; + } + case 120: { + int rawValue = input.readEnum(); + + state_ = rawValue; + break; + } + case 146: { + java.lang.String s = input.readStringRequireUtf8(); + + memcacheFullVersion_ = s; + break; + } + case 154: { + if (!((mutable_bitField0_ & 0x00000008) != 0)) { + instanceMessages_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000008; } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + instanceMessages_.add( + input.readMessage(com.google.cloud.memcache.v1beta2.Instance.InstanceMessage.parser(), extensionRegistry)); + break; + } + case 162: { + java.lang.String s = input.readStringRequireUtf8(); + + discoveryEndpoint_ = s; + break; + } + case 168: { + + updateAvailable_ = input.readBool(); + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -266,7 +221,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_ & 0x00000002) != 0)) { zones_ = zones_.getUnmodifiableView(); @@ -281,46 +237,41 @@ private Instance( makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.memcache.v1beta2.CloudMemcacheProto - .internal_static_google_cloud_memcache_v1beta2_Instance_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.memcache.v1beta2.CloudMemcacheProto.internal_static_google_cloud_memcache_v1beta2_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(); 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.memcache.v1beta2.CloudMemcacheProto - .internal_static_google_cloud_memcache_v1beta2_Instance_fieldAccessorTable + return com.google.cloud.memcache.v1beta2.CloudMemcacheProto.internal_static_google_cloud_memcache_v1beta2_Instance_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.memcache.v1beta2.Instance.class, - com.google.cloud.memcache.v1beta2.Instance.Builder.class); + com.google.cloud.memcache.v1beta2.Instance.class, com.google.cloud.memcache.v1beta2.Instance.Builder.class); } /** - * - * *
    * Different states of a Memcached instance.
    * 
* * Protobuf enum {@code google.cloud.memcache.v1beta2.Instance.State} */ - public enum State implements com.google.protobuf.ProtocolMessageEnum { + public enum State + implements com.google.protobuf.ProtocolMessageEnum { /** - * - * *
      * State not set.
      * 
@@ -329,8 +280,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ STATE_UNSPECIFIED(0), /** - * - * *
      * Memcached instance is being created.
      * 
@@ -339,8 +288,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ CREATING(1), /** - * - * *
      * Memcached instance has been created and ready to be used.
      * 
@@ -349,8 +296,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ READY(2), /** - * - * *
      * Memcached instance is being deleted.
      * 
@@ -359,8 +304,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ DELETING(4), /** - * - * *
      * Memcached instance is going through maintenance, e.g. data plane rollout.
      * 
@@ -372,8 +315,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { ; /** - * - * *
      * State not set.
      * 
@@ -382,8 +323,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ public static final int STATE_UNSPECIFIED_VALUE = 0; /** - * - * *
      * Memcached instance is being created.
      * 
@@ -392,8 +331,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ public static final int CREATING_VALUE = 1; /** - * - * *
      * Memcached instance has been created and ready to be used.
      * 
@@ -402,8 +339,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ public static final int READY_VALUE = 2; /** - * - * *
      * Memcached instance is being deleted.
      * 
@@ -412,8 +347,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ public static final int DELETING_VALUE = 4; /** - * - * *
      * Memcached instance is going through maintenance, e.g. data plane rollout.
      * 
@@ -422,6 +355,7 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ public static final int PERFORMING_MAINTENANCE_VALUE = 5; + public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( @@ -446,53 +380,51 @@ 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 4: - return DELETING; - case 5: - return PERFORMING_MAINTENANCE; - default: - return null; + case 0: return STATE_UNSPECIFIED; + case 1: return CREATING; + case 2: return READY; + case 4: return DELETING; + case 5: return PERFORMING_MAINTENANCE; + 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.memcache.v1beta2.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; @@ -509,69 +441,61 @@ private State(int value) { // @@protoc_insertion_point(enum_scope:google.cloud.memcache.v1beta2.Instance.State) } - public interface NodeConfigOrBuilder - extends + public interface NodeConfigOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.memcache.v1beta2.Instance.NodeConfig) com.google.protobuf.MessageOrBuilder { /** - * - * *
      * Required. Number of cpus per Memcached node.
      * 
* * int32 cpu_count = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The cpuCount. */ int getCpuCount(); /** - * - * *
      * Required. Memory size in MiB for each Memcached node.
      * 
* * int32 memory_size_mb = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The memorySizeMb. */ int getMemorySizeMb(); } /** - * - * *
    * Configuration for a Memcached Node.
    * 
* * Protobuf type {@code google.cloud.memcache.v1beta2.Instance.NodeConfig} */ - public static final class NodeConfig extends com.google.protobuf.GeneratedMessageV3 - implements + public static final class NodeConfig extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.memcache.v1beta2.Instance.NodeConfig) NodeConfigOrBuilder { - private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use NodeConfig.newBuilder() to construct. private NodeConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - - private NodeConfig() {} + private NodeConfig() { + } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new NodeConfig(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private NodeConfig( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -590,23 +514,23 @@ private NodeConfig( case 0: done = true; break; - case 8: - { - cpuCount_ = input.readInt32(); - break; - } - case 16: - { - memorySizeMb_ = input.readInt32(); - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + case 8: { + + cpuCount_ = input.readInt32(); + break; + } + case 16: { + + memorySizeMb_ = input.readInt32(); + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -614,39 +538,34 @@ private NodeConfig( } 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.memcache.v1beta2.CloudMemcacheProto - .internal_static_google_cloud_memcache_v1beta2_Instance_NodeConfig_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.memcache.v1beta2.CloudMemcacheProto.internal_static_google_cloud_memcache_v1beta2_Instance_NodeConfig_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.memcache.v1beta2.CloudMemcacheProto - .internal_static_google_cloud_memcache_v1beta2_Instance_NodeConfig_fieldAccessorTable + return com.google.cloud.memcache.v1beta2.CloudMemcacheProto.internal_static_google_cloud_memcache_v1beta2_Instance_NodeConfig_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.memcache.v1beta2.Instance.NodeConfig.class, - com.google.cloud.memcache.v1beta2.Instance.NodeConfig.Builder.class); + com.google.cloud.memcache.v1beta2.Instance.NodeConfig.class, com.google.cloud.memcache.v1beta2.Instance.NodeConfig.Builder.class); } public static final int CPU_COUNT_FIELD_NUMBER = 1; private int cpuCount_; /** - * - * *
      * Required. Number of cpus per Memcached node.
      * 
* * int32 cpu_count = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The cpuCount. */ @java.lang.Override @@ -657,14 +576,11 @@ public int getCpuCount() { public static final int MEMORY_SIZE_MB_FIELD_NUMBER = 2; private int memorySizeMb_; /** - * - * *
      * Required. Memory size in MiB for each Memcached node.
      * 
* * int32 memory_size_mb = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The memorySizeMb. */ @java.lang.Override @@ -673,7 +589,6 @@ public int getMemorySizeMb() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -685,7 +600,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (cpuCount_ != 0) { output.writeInt32(1, cpuCount_); } @@ -702,10 +618,12 @@ public int getSerializedSize() { size = 0; if (cpuCount_ != 0) { - size += com.google.protobuf.CodedOutputStream.computeInt32Size(1, cpuCount_); + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(1, cpuCount_); } if (memorySizeMb_ != 0) { - size += com.google.protobuf.CodedOutputStream.computeInt32Size(2, memorySizeMb_); + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(2, memorySizeMb_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -715,16 +633,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.memcache.v1beta2.Instance.NodeConfig)) { return super.equals(obj); } - com.google.cloud.memcache.v1beta2.Instance.NodeConfig other = - (com.google.cloud.memcache.v1beta2.Instance.NodeConfig) obj; + com.google.cloud.memcache.v1beta2.Instance.NodeConfig other = (com.google.cloud.memcache.v1beta2.Instance.NodeConfig) obj; - if (getCpuCount() != other.getCpuCount()) return false; - if (getMemorySizeMb() != other.getMemorySizeMb()) return false; + if (getCpuCount() + != other.getCpuCount()) return false; + if (getMemorySizeMb() + != other.getMemorySizeMb()) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -746,94 +665,87 @@ public int hashCode() { } public static com.google.cloud.memcache.v1beta2.Instance.NodeConfig parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.memcache.v1beta2.Instance.NodeConfig parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.memcache.v1beta2.Instance.NodeConfig parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.memcache.v1beta2.Instance.NodeConfig parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.memcache.v1beta2.Instance.NodeConfig parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.memcache.v1beta2.Instance.NodeConfig parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.memcache.v1beta2.Instance.NodeConfig parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.memcache.v1beta2.Instance.NodeConfig parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.memcache.v1beta2.Instance.NodeConfig parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.memcache.v1beta2.Instance.NodeConfig parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.memcache.v1beta2.Instance.NodeConfig parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.memcache.v1beta2.Instance.NodeConfig parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.memcache.v1beta2.Instance.NodeConfig parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.memcache.v1beta2.Instance.NodeConfig parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.memcache.v1beta2.Instance.NodeConfig prototype) { + public static Builder newBuilder(com.google.cloud.memcache.v1beta2.Instance.NodeConfig prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override @@ -843,32 +755,27 @@ protected Builder newBuilderForType( return builder; } /** - * - * *
      * Configuration for a Memcached Node.
      * 
* * Protobuf type {@code google.cloud.memcache.v1beta2.Instance.NodeConfig} */ - public static final class Builder - extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.memcache.v1beta2.Instance.NodeConfig) com.google.cloud.memcache.v1beta2.Instance.NodeConfigOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.memcache.v1beta2.CloudMemcacheProto - .internal_static_google_cloud_memcache_v1beta2_Instance_NodeConfig_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.memcache.v1beta2.CloudMemcacheProto.internal_static_google_cloud_memcache_v1beta2_Instance_NodeConfig_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.memcache.v1beta2.CloudMemcacheProto - .internal_static_google_cloud_memcache_v1beta2_Instance_NodeConfig_fieldAccessorTable + return com.google.cloud.memcache.v1beta2.CloudMemcacheProto.internal_static_google_cloud_memcache_v1beta2_Instance_NodeConfig_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.memcache.v1beta2.Instance.NodeConfig.class, - com.google.cloud.memcache.v1beta2.Instance.NodeConfig.Builder.class); + com.google.cloud.memcache.v1beta2.Instance.NodeConfig.class, com.google.cloud.memcache.v1beta2.Instance.NodeConfig.Builder.class); } // Construct using com.google.cloud.memcache.v1beta2.Instance.NodeConfig.newBuilder() @@ -876,15 +783,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(); @@ -896,9 +804,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.memcache.v1beta2.CloudMemcacheProto - .internal_static_google_cloud_memcache_v1beta2_Instance_NodeConfig_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.memcache.v1beta2.CloudMemcacheProto.internal_static_google_cloud_memcache_v1beta2_Instance_NodeConfig_descriptor; } @java.lang.Override @@ -917,8 +825,7 @@ public com.google.cloud.memcache.v1beta2.Instance.NodeConfig build() { @java.lang.Override public com.google.cloud.memcache.v1beta2.Instance.NodeConfig buildPartial() { - com.google.cloud.memcache.v1beta2.Instance.NodeConfig result = - new com.google.cloud.memcache.v1beta2.Instance.NodeConfig(this); + com.google.cloud.memcache.v1beta2.Instance.NodeConfig result = new com.google.cloud.memcache.v1beta2.Instance.NodeConfig(this); result.cpuCount_ = cpuCount_; result.memorySizeMb_ = memorySizeMb_; onBuilt(); @@ -929,41 +836,38 @@ public com.google.cloud.memcache.v1beta2.Instance.NodeConfig buildPartial() { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, - int index, - java.lang.Object value) { + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.memcache.v1beta2.Instance.NodeConfig) { - return mergeFrom((com.google.cloud.memcache.v1beta2.Instance.NodeConfig) other); + return mergeFrom((com.google.cloud.memcache.v1beta2.Instance.NodeConfig)other); } else { super.mergeFrom(other); return this; @@ -971,8 +875,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.memcache.v1beta2.Instance.NodeConfig other) { - if (other == com.google.cloud.memcache.v1beta2.Instance.NodeConfig.getDefaultInstance()) - return this; + if (other == com.google.cloud.memcache.v1beta2.Instance.NodeConfig.getDefaultInstance()) return this; if (other.getCpuCount() != 0) { setCpuCount(other.getCpuCount()); } @@ -998,8 +901,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.memcache.v1beta2.Instance.NodeConfig) e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.memcache.v1beta2.Instance.NodeConfig) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -1009,16 +911,13 @@ public Builder mergeFrom( return this; } - private int cpuCount_; + private int cpuCount_ ; /** - * - * *
        * Required. Number of cpus per Memcached node.
        * 
* * int32 cpu_count = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The cpuCount. */ @java.lang.Override @@ -1026,51 +925,42 @@ public int getCpuCount() { return cpuCount_; } /** - * - * *
        * Required. Number of cpus per Memcached node.
        * 
* * int32 cpu_count = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The cpuCount to set. * @return This builder for chaining. */ public Builder setCpuCount(int value) { - + cpuCount_ = value; onChanged(); return this; } /** - * - * *
        * Required. Number of cpus per Memcached node.
        * 
* * int32 cpu_count = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return This builder for chaining. */ public Builder clearCpuCount() { - + cpuCount_ = 0; onChanged(); return this; } - private int memorySizeMb_; + private int memorySizeMb_ ; /** - * - * *
        * Required. Memory size in MiB for each Memcached node.
        * 
* * int32 memory_size_mb = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The memorySizeMb. */ @java.lang.Override @@ -1078,41 +968,34 @@ public int getMemorySizeMb() { return memorySizeMb_; } /** - * - * *
        * Required. Memory size in MiB for each Memcached node.
        * 
* * int32 memory_size_mb = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The memorySizeMb to set. * @return This builder for chaining. */ public Builder setMemorySizeMb(int value) { - + memorySizeMb_ = value; onChanged(); return this; } /** - * - * *
        * Required. Memory size in MiB for each Memcached node.
        * 
* * int32 memory_size_mb = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return This builder for chaining. */ public Builder clearMemorySizeMb() { - + memorySizeMb_ = 0; onChanged(); return this; } - @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -1125,12 +1008,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.memcache.v1beta2.Instance.NodeConfig) } // @@protoc_insertion_point(class_scope:google.cloud.memcache.v1beta2.Instance.NodeConfig) private static final com.google.cloud.memcache.v1beta2.Instance.NodeConfig DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.memcache.v1beta2.Instance.NodeConfig(); } @@ -1139,16 +1022,16 @@ public static com.google.cloud.memcache.v1beta2.Instance.NodeConfig getDefaultIn return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public NodeConfig parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new NodeConfig(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public NodeConfig parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new NodeConfig(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1163,161 +1046,125 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.memcache.v1beta2.Instance.NodeConfig getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } - public interface NodeOrBuilder - extends + public interface NodeOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.memcache.v1beta2.Instance.Node) com.google.protobuf.MessageOrBuilder { /** - * - * *
      * Output only. Identifier of the Memcached node. The node id does not
      * include project or location like the Memcached instance name.
      * 
* * string node_id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The nodeId. */ java.lang.String getNodeId(); /** - * - * *
      * Output only. Identifier of the Memcached node. The node id does not
      * include project or location like the Memcached instance name.
      * 
* * string node_id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for nodeId. */ - com.google.protobuf.ByteString getNodeIdBytes(); + com.google.protobuf.ByteString + getNodeIdBytes(); /** - * - * *
      * Output only. Location (GCP Zone) for the Memcached node.
      * 
* * string zone = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The zone. */ java.lang.String getZone(); /** - * - * *
      * Output only. Location (GCP Zone) for the Memcached 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(); /** - * - * *
      * Output only. Current state of the Memcached node.
      * 
* - * - * .google.cloud.memcache.v1beta2.Instance.Node.State state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.memcache.v1beta2.Instance.Node.State state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The enum numeric value on the wire for state. */ int getStateValue(); /** - * - * *
      * Output only. Current state of the Memcached node.
      * 
* - * - * .google.cloud.memcache.v1beta2.Instance.Node.State state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.memcache.v1beta2.Instance.Node.State state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The state. */ com.google.cloud.memcache.v1beta2.Instance.Node.State getState(); /** - * - * *
      * Output only. Hostname or IP address of the Memcached node used by the
      * clients to connect to the Memcached server on this node.
      * 
* * string host = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The host. */ java.lang.String getHost(); /** - * - * *
      * Output only. Hostname or IP address of the Memcached node used by the
      * clients to connect to the Memcached server on this node.
      * 
* * string host = 4 [(.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 Memcached server on this node.
      * 
* * int32 port = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The port. */ int getPort(); /** - * - * *
      * User defined parameters currently applied to the node.
      * 
* * .google.cloud.memcache.v1beta2.MemcacheParameters parameters = 6; - * * @return Whether the parameters field is set. */ boolean hasParameters(); /** - * - * *
      * User defined parameters currently applied to the node.
      * 
* * .google.cloud.memcache.v1beta2.MemcacheParameters parameters = 6; - * * @return The parameters. */ com.google.cloud.memcache.v1beta2.MemcacheParameters getParameters(); /** - * - * *
      * User defined parameters currently applied to the node.
      * 
@@ -1327,29 +1174,27 @@ public interface NodeOrBuilder com.google.cloud.memcache.v1beta2.MemcacheParametersOrBuilder getParametersOrBuilder(); /** - * - * *
      * Output only. Returns true if there is an update waiting to be applied
      * 
* * bool update_available = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The updateAvailable. */ boolean getUpdateAvailable(); } - /** Protobuf type {@code google.cloud.memcache.v1beta2.Instance.Node} */ - public static final class Node extends com.google.protobuf.GeneratedMessageV3 - implements + /** + * Protobuf type {@code google.cloud.memcache.v1beta2.Instance.Node} + */ + public static final class Node extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.memcache.v1beta2.Instance.Node) NodeOrBuilder { - private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use Node.newBuilder() to construct. private Node(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private Node() { nodeId_ = ""; zone_ = ""; @@ -1359,15 +1204,16 @@ private Node() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new Node(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private Node( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -1386,68 +1232,60 @@ private Node( case 0: done = true; break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); + case 10: { + java.lang.String s = input.readStringRequireUtf8(); - nodeId_ = s; - break; - } - case 18: - { - java.lang.String s = input.readStringRequireUtf8(); + nodeId_ = s; + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); - zone_ = s; - break; - } - case 24: - { - int rawValue = input.readEnum(); + zone_ = s; + break; + } + case 24: { + int rawValue = input.readEnum(); - state_ = rawValue; - break; - } - case 34: - { - java.lang.String s = input.readStringRequireUtf8(); + state_ = rawValue; + break; + } + case 34: { + java.lang.String s = input.readStringRequireUtf8(); - host_ = s; - break; - } - case 40: - { - port_ = input.readInt32(); - break; - } - case 50: - { - com.google.cloud.memcache.v1beta2.MemcacheParameters.Builder subBuilder = null; - if (parameters_ != null) { - subBuilder = parameters_.toBuilder(); - } - parameters_ = - input.readMessage( - com.google.cloud.memcache.v1beta2.MemcacheParameters.parser(), - extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(parameters_); - parameters_ = subBuilder.buildPartial(); - } - - break; + host_ = s; + break; + } + case 40: { + + port_ = input.readInt32(); + break; + } + case 50: { + com.google.cloud.memcache.v1beta2.MemcacheParameters.Builder subBuilder = null; + if (parameters_ != null) { + subBuilder = parameters_.toBuilder(); } - case 56: - { - updateAvailable_ = input.readBool(); - break; + parameters_ = input.readMessage(com.google.cloud.memcache.v1beta2.MemcacheParameters.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(parameters_); + parameters_ = subBuilder.buildPartial(); } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + + break; + } + case 56: { + + updateAvailable_ = input.readBool(); + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -1455,41 +1293,36 @@ private Node( } 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.memcache.v1beta2.CloudMemcacheProto - .internal_static_google_cloud_memcache_v1beta2_Instance_Node_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.memcache.v1beta2.CloudMemcacheProto.internal_static_google_cloud_memcache_v1beta2_Instance_Node_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.memcache.v1beta2.CloudMemcacheProto - .internal_static_google_cloud_memcache_v1beta2_Instance_Node_fieldAccessorTable + return com.google.cloud.memcache.v1beta2.CloudMemcacheProto.internal_static_google_cloud_memcache_v1beta2_Instance_Node_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.memcache.v1beta2.Instance.Node.class, - com.google.cloud.memcache.v1beta2.Instance.Node.Builder.class); + com.google.cloud.memcache.v1beta2.Instance.Node.class, com.google.cloud.memcache.v1beta2.Instance.Node.Builder.class); } /** - * - * *
      * Different states of a Memcached node.
      * 
* * Protobuf enum {@code google.cloud.memcache.v1beta2.Instance.Node.State} */ - public enum State implements com.google.protobuf.ProtocolMessageEnum { + public enum State + implements com.google.protobuf.ProtocolMessageEnum { /** - * - * *
        * Node state is not set.
        * 
@@ -1498,8 +1331,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ STATE_UNSPECIFIED(0), /** - * - * *
        * Node is being created.
        * 
@@ -1508,8 +1339,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ CREATING(1), /** - * - * *
        * Node has been created and ready to be used.
        * 
@@ -1518,8 +1347,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ READY(2), /** - * - * *
        * Node is being deleted.
        * 
@@ -1528,8 +1355,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ DELETING(3), /** - * - * *
        * Node is being updated.
        * 
@@ -1541,8 +1366,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { ; /** - * - * *
        * Node state is not set.
        * 
@@ -1551,8 +1374,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ public static final int STATE_UNSPECIFIED_VALUE = 0; /** - * - * *
        * Node is being created.
        * 
@@ -1561,8 +1382,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ public static final int CREATING_VALUE = 1; /** - * - * *
        * Node has been created and ready to be used.
        * 
@@ -1571,8 +1390,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ public static final int READY_VALUE = 2; /** - * - * *
        * Node is being deleted.
        * 
@@ -1581,8 +1398,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ public static final int DELETING_VALUE = 3; /** - * - * *
        * Node is being updated.
        * 
@@ -1591,6 +1406,7 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ public static final int UPDATING_VALUE = 4; + public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( @@ -1615,55 +1431,51 @@ 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 DELETING; - case 4: - return UPDATING; - default: - return null; + case 0: return STATE_UNSPECIFIED; + case 1: return CREATING; + case 2: return READY; + case 3: return DELETING; + case 4: return UPDATING; + default: return null; } } - public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { + public static com.google.protobuf.Internal.EnumLiteMap + internalGetValueMap() { return internalValueMap; } + private static final com.google.protobuf.Internal.EnumLiteMap< + State> internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public State findValueByNumber(int number) { + return State.forNumber(number); + } + }; - private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public State findValueByNumber(int number) { - return State.forNumber(number); - } - }; - - public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { + public final com.google.protobuf.Descriptors.EnumValueDescriptor + getValueDescriptor() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalStateException( "Can't get the descriptor of an unrecognized enum value."); } return getDescriptor().getValues().get(ordinal()); } - - public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { + public final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptorForType() { return getDescriptor(); } - - public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { - return com.google.cloud.memcache.v1beta2.Instance.Node.getDescriptor() - .getEnumTypes() - .get(0); + public static final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptor() { + return com.google.cloud.memcache.v1beta2.Instance.Node.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; @@ -1683,15 +1495,12 @@ private State(int value) { public static final int NODE_ID_FIELD_NUMBER = 1; private volatile java.lang.Object nodeId_; /** - * - * *
      * Output only. Identifier of the Memcached node. The node id does not
      * include project or location like the Memcached instance name.
      * 
* * string node_id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The nodeId. */ @java.lang.Override @@ -1700,30 +1509,30 @@ public java.lang.String getNodeId() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); nodeId_ = s; return s; } } /** - * - * *
      * Output only. Identifier of the Memcached node. The node id does not
      * include project or location like the Memcached instance name.
      * 
* * string node_id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for nodeId. */ @java.lang.Override - public com.google.protobuf.ByteString getNodeIdBytes() { + public com.google.protobuf.ByteString + getNodeIdBytes() { java.lang.Object ref = nodeId_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); nodeId_ = b; return b; } else { @@ -1734,14 +1543,11 @@ public com.google.protobuf.ByteString getNodeIdBytes() { public static final int ZONE_FIELD_NUMBER = 2; private volatile java.lang.Object zone_; /** - * - * *
      * Output only. Location (GCP Zone) for the Memcached node.
      * 
* * string zone = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The zone. */ @java.lang.Override @@ -1750,29 +1556,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 (GCP Zone) for the Memcached 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 { @@ -1783,57 +1589,39 @@ public com.google.protobuf.ByteString getZoneBytes() { public static final int STATE_FIELD_NUMBER = 3; private int state_; /** - * - * *
      * Output only. Current state of the Memcached node.
      * 
* - * - * .google.cloud.memcache.v1beta2.Instance.Node.State state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.memcache.v1beta2.Instance.Node.State state = 3 [(.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. Current state of the Memcached node.
      * 
* - * - * .google.cloud.memcache.v1beta2.Instance.Node.State state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.memcache.v1beta2.Instance.Node.State state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The state. */ - @java.lang.Override - public com.google.cloud.memcache.v1beta2.Instance.Node.State getState() { + @java.lang.Override public com.google.cloud.memcache.v1beta2.Instance.Node.State getState() { @SuppressWarnings("deprecation") - com.google.cloud.memcache.v1beta2.Instance.Node.State result = - com.google.cloud.memcache.v1beta2.Instance.Node.State.valueOf(state_); - return result == null - ? com.google.cloud.memcache.v1beta2.Instance.Node.State.UNRECOGNIZED - : result; + com.google.cloud.memcache.v1beta2.Instance.Node.State result = com.google.cloud.memcache.v1beta2.Instance.Node.State.valueOf(state_); + return result == null ? com.google.cloud.memcache.v1beta2.Instance.Node.State.UNRECOGNIZED : result; } public static final int HOST_FIELD_NUMBER = 4; private volatile java.lang.Object host_; /** - * - * *
      * Output only. Hostname or IP address of the Memcached node used by the
      * clients to connect to the Memcached server on this node.
      * 
* * string host = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The host. */ @java.lang.Override @@ -1842,30 +1630,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 Memcached node used by the
      * clients to connect to the Memcached server on this node.
      * 
* * string host = 4 [(.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 { @@ -1876,14 +1664,11 @@ public com.google.protobuf.ByteString getHostBytes() { public static final int PORT_FIELD_NUMBER = 5; private int port_; /** - * - * *
      * Output only. The port number of the Memcached server on this node.
      * 
* * int32 port = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The port. */ @java.lang.Override @@ -1894,14 +1679,11 @@ public int getPort() { public static final int PARAMETERS_FIELD_NUMBER = 6; private com.google.cloud.memcache.v1beta2.MemcacheParameters parameters_; /** - * - * *
      * User defined parameters currently applied to the node.
      * 
* * .google.cloud.memcache.v1beta2.MemcacheParameters parameters = 6; - * * @return Whether the parameters field is set. */ @java.lang.Override @@ -1909,25 +1691,18 @@ public boolean hasParameters() { return parameters_ != null; } /** - * - * *
      * User defined parameters currently applied to the node.
      * 
* * .google.cloud.memcache.v1beta2.MemcacheParameters parameters = 6; - * * @return The parameters. */ @java.lang.Override public com.google.cloud.memcache.v1beta2.MemcacheParameters getParameters() { - return parameters_ == null - ? com.google.cloud.memcache.v1beta2.MemcacheParameters.getDefaultInstance() - : parameters_; + return parameters_ == null ? com.google.cloud.memcache.v1beta2.MemcacheParameters.getDefaultInstance() : parameters_; } /** - * - * *
      * User defined parameters currently applied to the node.
      * 
@@ -1942,14 +1717,11 @@ public com.google.cloud.memcache.v1beta2.MemcacheParametersOrBuilder getParamete public static final int UPDATE_AVAILABLE_FIELD_NUMBER = 7; private boolean updateAvailable_; /** - * - * *
      * Output only. Returns true if there is an update waiting to be applied
      * 
* * bool update_available = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The updateAvailable. */ @java.lang.Override @@ -1958,7 +1730,6 @@ public boolean getUpdateAvailable() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -1970,15 +1741,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(nodeId_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, nodeId_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(zone_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, zone_); } - if (state_ - != com.google.cloud.memcache.v1beta2.Instance.Node.State.STATE_UNSPECIFIED.getNumber()) { + if (state_ != com.google.cloud.memcache.v1beta2.Instance.Node.State.STATE_UNSPECIFIED.getNumber()) { output.writeEnum(3, state_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(host_)) { @@ -2008,21 +1779,24 @@ public int getSerializedSize() { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(zone_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, zone_); } - if (state_ - != com.google.cloud.memcache.v1beta2.Instance.Node.State.STATE_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream.computeEnumSize(3, state_); + if (state_ != com.google.cloud.memcache.v1beta2.Instance.Node.State.STATE_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(3, state_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(host_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, host_); } if (port_ != 0) { - size += com.google.protobuf.CodedOutputStream.computeInt32Size(5, port_); + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(5, port_); } if (parameters_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(6, getParameters()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(6, getParameters()); } if (updateAvailable_ != false) { - size += com.google.protobuf.CodedOutputStream.computeBoolSize(7, updateAvailable_); + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(7, updateAvailable_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -2032,24 +1806,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.memcache.v1beta2.Instance.Node)) { return super.equals(obj); } - com.google.cloud.memcache.v1beta2.Instance.Node other = - (com.google.cloud.memcache.v1beta2.Instance.Node) obj; + com.google.cloud.memcache.v1beta2.Instance.Node other = (com.google.cloud.memcache.v1beta2.Instance.Node) obj; - if (!getNodeId().equals(other.getNodeId())) return false; - if (!getZone().equals(other.getZone())) return false; + if (!getNodeId() + .equals(other.getNodeId())) return false; + if (!getZone() + .equals(other.getZone())) return false; if (state_ != other.state_) return false; - if (!getHost().equals(other.getHost())) return false; - if (getPort() != other.getPort()) return false; + if (!getHost() + .equals(other.getHost())) return false; + if (getPort() + != other.getPort()) return false; if (hasParameters() != other.hasParameters()) return false; if (hasParameters()) { - if (!getParameters().equals(other.getParameters())) return false; + if (!getParameters() + .equals(other.getParameters())) return false; } - if (getUpdateAvailable() != other.getUpdateAvailable()) return false; + if (getUpdateAvailable() + != other.getUpdateAvailable()) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -2076,100 +1855,95 @@ public int hashCode() { hash = (53 * hash) + getParameters().hashCode(); } hash = (37 * hash) + UPDATE_AVAILABLE_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getUpdateAvailable()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getUpdateAvailable()); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static com.google.cloud.memcache.v1beta2.Instance.Node parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.memcache.v1beta2.Instance.Node parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.memcache.v1beta2.Instance.Node parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.memcache.v1beta2.Instance.Node parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.memcache.v1beta2.Instance.Node parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.memcache.v1beta2.Instance.Node parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.memcache.v1beta2.Instance.Node parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.memcache.v1beta2.Instance.Node parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.memcache.v1beta2.Instance.Node parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.memcache.v1beta2.Instance.Node parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.memcache.v1beta2.Instance.Node parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.memcache.v1beta2.Instance.Node parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.memcache.v1beta2.Instance.Node parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.memcache.v1beta2.Instance.Node parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.memcache.v1beta2.Instance.Node prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override @@ -2178,25 +1952,24 @@ protected Builder newBuilderForType( Builder builder = new Builder(parent); return builder; } - /** Protobuf type {@code google.cloud.memcache.v1beta2.Instance.Node} */ - public static final class Builder - extends com.google.protobuf.GeneratedMessageV3.Builder - implements + /** + * Protobuf type {@code google.cloud.memcache.v1beta2.Instance.Node} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.memcache.v1beta2.Instance.Node) com.google.cloud.memcache.v1beta2.Instance.NodeOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.memcache.v1beta2.CloudMemcacheProto - .internal_static_google_cloud_memcache_v1beta2_Instance_Node_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.memcache.v1beta2.CloudMemcacheProto.internal_static_google_cloud_memcache_v1beta2_Instance_Node_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.memcache.v1beta2.CloudMemcacheProto - .internal_static_google_cloud_memcache_v1beta2_Instance_Node_fieldAccessorTable + return com.google.cloud.memcache.v1beta2.CloudMemcacheProto.internal_static_google_cloud_memcache_v1beta2_Instance_Node_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.memcache.v1beta2.Instance.Node.class, - com.google.cloud.memcache.v1beta2.Instance.Node.Builder.class); + com.google.cloud.memcache.v1beta2.Instance.Node.class, com.google.cloud.memcache.v1beta2.Instance.Node.Builder.class); } // Construct using com.google.cloud.memcache.v1beta2.Instance.Node.newBuilder() @@ -2204,15 +1977,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(); @@ -2238,9 +2012,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.memcache.v1beta2.CloudMemcacheProto - .internal_static_google_cloud_memcache_v1beta2_Instance_Node_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.memcache.v1beta2.CloudMemcacheProto.internal_static_google_cloud_memcache_v1beta2_Instance_Node_descriptor; } @java.lang.Override @@ -2259,8 +2033,7 @@ public com.google.cloud.memcache.v1beta2.Instance.Node build() { @java.lang.Override public com.google.cloud.memcache.v1beta2.Instance.Node buildPartial() { - com.google.cloud.memcache.v1beta2.Instance.Node result = - new com.google.cloud.memcache.v1beta2.Instance.Node(this); + com.google.cloud.memcache.v1beta2.Instance.Node result = new com.google.cloud.memcache.v1beta2.Instance.Node(this); result.nodeId_ = nodeId_; result.zone_ = zone_; result.state_ = state_; @@ -2280,41 +2053,38 @@ public com.google.cloud.memcache.v1beta2.Instance.Node buildPartial() { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, - int index, - java.lang.Object value) { + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.memcache.v1beta2.Instance.Node) { - return mergeFrom((com.google.cloud.memcache.v1beta2.Instance.Node) other); + return mergeFrom((com.google.cloud.memcache.v1beta2.Instance.Node)other); } else { super.mergeFrom(other); return this; @@ -2322,8 +2092,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.memcache.v1beta2.Instance.Node other) { - if (other == com.google.cloud.memcache.v1beta2.Instance.Node.getDefaultInstance()) - return this; + if (other == com.google.cloud.memcache.v1beta2.Instance.Node.getDefaultInstance()) return this; if (!other.getNodeId().isEmpty()) { nodeId_ = other.nodeId_; onChanged(); @@ -2367,8 +2136,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.memcache.v1beta2.Instance.Node) e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.memcache.v1beta2.Instance.Node) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -2380,21 +2148,19 @@ public Builder mergeFrom( private java.lang.Object nodeId_ = ""; /** - * - * *
        * Output only. Identifier of the Memcached node. The node id does not
        * include project or location like the Memcached instance name.
        * 
* * string node_id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The nodeId. */ public java.lang.String getNodeId() { java.lang.Object ref = nodeId_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); nodeId_ = s; return s; @@ -2403,22 +2169,21 @@ public java.lang.String getNodeId() { } } /** - * - * *
        * Output only. Identifier of the Memcached node. The node id does not
        * include project or location like the Memcached instance name.
        * 
* * string node_id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for nodeId. */ - public com.google.protobuf.ByteString getNodeIdBytes() { + public com.google.protobuf.ByteString + getNodeIdBytes() { java.lang.Object ref = nodeId_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); nodeId_ = b; return b; } else { @@ -2426,64 +2191,57 @@ public com.google.protobuf.ByteString getNodeIdBytes() { } } /** - * - * *
        * Output only. Identifier of the Memcached node. The node id does not
        * include project or location like the Memcached instance name.
        * 
* * string node_id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @param value The nodeId to set. * @return This builder for chaining. */ - public Builder setNodeId(java.lang.String value) { + public Builder setNodeId( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + nodeId_ = value; onChanged(); return this; } /** - * - * *
        * Output only. Identifier of the Memcached node. The node id does not
        * include project or location like the Memcached instance name.
        * 
* * string node_id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return This builder for chaining. */ public Builder clearNodeId() { - + nodeId_ = getDefaultInstance().getNodeId(); onChanged(); return this; } /** - * - * *
        * Output only. Identifier of the Memcached node. The node id does not
        * include project or location like the Memcached instance name.
        * 
* * string node_id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @param value The bytes for nodeId to set. * @return This builder for chaining. */ - public Builder setNodeIdBytes(com.google.protobuf.ByteString value) { + public Builder setNodeIdBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + nodeId_ = value; onChanged(); return this; @@ -2491,20 +2249,18 @@ public Builder setNodeIdBytes(com.google.protobuf.ByteString value) { private java.lang.Object zone_ = ""; /** - * - * *
        * Output only. Location (GCP Zone) for the Memcached 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; @@ -2513,21 +2269,20 @@ public java.lang.String getZone() { } } /** - * - * *
        * Output only. Location (GCP Zone) for the Memcached 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 { @@ -2535,61 +2290,54 @@ public com.google.protobuf.ByteString getZoneBytes() { } } /** - * - * *
        * Output only. Location (GCP Zone) for the Memcached 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 (GCP Zone) for the Memcached 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 (GCP Zone) for the Memcached 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; @@ -2597,75 +2345,51 @@ public Builder setZoneBytes(com.google.protobuf.ByteString value) { private int state_ = 0; /** - * - * *
        * Output only. Current state of the Memcached node.
        * 
* - * - * .google.cloud.memcache.v1beta2.Instance.Node.State state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.memcache.v1beta2.Instance.Node.State state = 3 [(.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. Current state of the Memcached node.
        * 
* - * - * .google.cloud.memcache.v1beta2.Instance.Node.State state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.memcache.v1beta2.Instance.Node.State state = 3 [(.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. Current state of the Memcached node.
        * 
* - * - * .google.cloud.memcache.v1beta2.Instance.Node.State state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.memcache.v1beta2.Instance.Node.State state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The state. */ @java.lang.Override public com.google.cloud.memcache.v1beta2.Instance.Node.State getState() { @SuppressWarnings("deprecation") - com.google.cloud.memcache.v1beta2.Instance.Node.State result = - com.google.cloud.memcache.v1beta2.Instance.Node.State.valueOf(state_); - return result == null - ? com.google.cloud.memcache.v1beta2.Instance.Node.State.UNRECOGNIZED - : result; + com.google.cloud.memcache.v1beta2.Instance.Node.State result = com.google.cloud.memcache.v1beta2.Instance.Node.State.valueOf(state_); + return result == null ? com.google.cloud.memcache.v1beta2.Instance.Node.State.UNRECOGNIZED : result; } /** - * - * *
        * Output only. Current state of the Memcached node.
        * 
* - * - * .google.cloud.memcache.v1beta2.Instance.Node.State state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.memcache.v1beta2.Instance.Node.State state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @param value The state to set. * @return This builder for chaining. */ @@ -2673,26 +2397,21 @@ public Builder setState(com.google.cloud.memcache.v1beta2.Instance.Node.State va if (value == null) { throw new NullPointerException(); } - + state_ = value.getNumber(); onChanged(); return this; } /** - * - * *
        * Output only. Current state of the Memcached node.
        * 
* - * - * .google.cloud.memcache.v1beta2.Instance.Node.State state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.memcache.v1beta2.Instance.Node.State state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return This builder for chaining. */ public Builder clearState() { - + state_ = 0; onChanged(); return this; @@ -2700,21 +2419,19 @@ public Builder clearState() { private java.lang.Object host_ = ""; /** - * - * *
        * Output only. Hostname or IP address of the Memcached node used by the
        * clients to connect to the Memcached server on this node.
        * 
* * string host = 4 [(.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; @@ -2723,22 +2440,21 @@ public java.lang.String getHost() { } } /** - * - * *
        * Output only. Hostname or IP address of the Memcached node used by the
        * clients to connect to the Memcached server on this node.
        * 
* * string host = 4 [(.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 { @@ -2746,79 +2462,69 @@ public com.google.protobuf.ByteString getHostBytes() { } } /** - * - * *
        * Output only. Hostname or IP address of the Memcached node used by the
        * clients to connect to the Memcached server on this node.
        * 
* * string host = 4 [(.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 Memcached node used by the
        * clients to connect to the Memcached server on this node.
        * 
* * string host = 4 [(.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 Memcached node used by the
        * clients to connect to the Memcached server on this node.
        * 
* * string host = 4 [(.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 Memcached server on this node.
        * 
* * int32 port = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The port. */ @java.lang.Override @@ -2826,36 +2532,30 @@ public int getPort() { return port_; } /** - * - * *
        * Output only. The port number of the Memcached server on this node.
        * 
* * int32 port = 5 [(.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 Memcached server on this node.
        * 
* * int32 port = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return This builder for chaining. */ public Builder clearPort() { - + port_ = 0; onChanged(); return this; @@ -2863,47 +2563,34 @@ public Builder clearPort() { private com.google.cloud.memcache.v1beta2.MemcacheParameters parameters_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.memcache.v1beta2.MemcacheParameters, - com.google.cloud.memcache.v1beta2.MemcacheParameters.Builder, - com.google.cloud.memcache.v1beta2.MemcacheParametersOrBuilder> - parametersBuilder_; + com.google.cloud.memcache.v1beta2.MemcacheParameters, com.google.cloud.memcache.v1beta2.MemcacheParameters.Builder, com.google.cloud.memcache.v1beta2.MemcacheParametersOrBuilder> parametersBuilder_; /** - * - * *
        * User defined parameters currently applied to the node.
        * 
* * .google.cloud.memcache.v1beta2.MemcacheParameters parameters = 6; - * * @return Whether the parameters field is set. */ public boolean hasParameters() { return parametersBuilder_ != null || parameters_ != null; } /** - * - * *
        * User defined parameters currently applied to the node.
        * 
* * .google.cloud.memcache.v1beta2.MemcacheParameters parameters = 6; - * * @return The parameters. */ public com.google.cloud.memcache.v1beta2.MemcacheParameters getParameters() { if (parametersBuilder_ == null) { - return parameters_ == null - ? com.google.cloud.memcache.v1beta2.MemcacheParameters.getDefaultInstance() - : parameters_; + return parameters_ == null ? com.google.cloud.memcache.v1beta2.MemcacheParameters.getDefaultInstance() : parameters_; } else { return parametersBuilder_.getMessage(); } } /** - * - * *
        * User defined parameters currently applied to the node.
        * 
@@ -2924,8 +2611,6 @@ public Builder setParameters(com.google.cloud.memcache.v1beta2.MemcacheParameter return this; } /** - * - * *
        * User defined parameters currently applied to the node.
        * 
@@ -2944,8 +2629,6 @@ public Builder setParameters( return this; } /** - * - * *
        * User defined parameters currently applied to the node.
        * 
@@ -2956,9 +2639,7 @@ public Builder mergeParameters(com.google.cloud.memcache.v1beta2.MemcacheParamet if (parametersBuilder_ == null) { if (parameters_ != null) { parameters_ = - com.google.cloud.memcache.v1beta2.MemcacheParameters.newBuilder(parameters_) - .mergeFrom(value) - .buildPartial(); + com.google.cloud.memcache.v1beta2.MemcacheParameters.newBuilder(parameters_).mergeFrom(value).buildPartial(); } else { parameters_ = value; } @@ -2970,8 +2651,6 @@ public Builder mergeParameters(com.google.cloud.memcache.v1beta2.MemcacheParamet return this; } /** - * - * *
        * User defined parameters currently applied to the node.
        * 
@@ -2990,8 +2669,6 @@ public Builder clearParameters() { return this; } /** - * - * *
        * User defined parameters currently applied to the node.
        * 
@@ -2999,32 +2676,26 @@ public Builder clearParameters() { * .google.cloud.memcache.v1beta2.MemcacheParameters parameters = 6; */ public com.google.cloud.memcache.v1beta2.MemcacheParameters.Builder getParametersBuilder() { - + onChanged(); return getParametersFieldBuilder().getBuilder(); } /** - * - * *
        * User defined parameters currently applied to the node.
        * 
* * .google.cloud.memcache.v1beta2.MemcacheParameters parameters = 6; */ - public com.google.cloud.memcache.v1beta2.MemcacheParametersOrBuilder - getParametersOrBuilder() { + public com.google.cloud.memcache.v1beta2.MemcacheParametersOrBuilder getParametersOrBuilder() { if (parametersBuilder_ != null) { return parametersBuilder_.getMessageOrBuilder(); } else { - return parameters_ == null - ? com.google.cloud.memcache.v1beta2.MemcacheParameters.getDefaultInstance() - : parameters_; + return parameters_ == null ? + com.google.cloud.memcache.v1beta2.MemcacheParameters.getDefaultInstance() : parameters_; } } /** - * - * *
        * User defined parameters currently applied to the node.
        * 
@@ -3032,32 +2703,26 @@ public com.google.cloud.memcache.v1beta2.MemcacheParameters.Builder getParameter * .google.cloud.memcache.v1beta2.MemcacheParameters parameters = 6; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.memcache.v1beta2.MemcacheParameters, - com.google.cloud.memcache.v1beta2.MemcacheParameters.Builder, - com.google.cloud.memcache.v1beta2.MemcacheParametersOrBuilder> + com.google.cloud.memcache.v1beta2.MemcacheParameters, com.google.cloud.memcache.v1beta2.MemcacheParameters.Builder, com.google.cloud.memcache.v1beta2.MemcacheParametersOrBuilder> getParametersFieldBuilder() { if (parametersBuilder_ == null) { - parametersBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.memcache.v1beta2.MemcacheParameters, - com.google.cloud.memcache.v1beta2.MemcacheParameters.Builder, - com.google.cloud.memcache.v1beta2.MemcacheParametersOrBuilder>( - getParameters(), getParentForChildren(), isClean()); + parametersBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.memcache.v1beta2.MemcacheParameters, com.google.cloud.memcache.v1beta2.MemcacheParameters.Builder, com.google.cloud.memcache.v1beta2.MemcacheParametersOrBuilder>( + getParameters(), + getParentForChildren(), + isClean()); parameters_ = null; } return parametersBuilder_; } - private boolean updateAvailable_; + private boolean updateAvailable_ ; /** - * - * *
        * Output only. Returns true if there is an update waiting to be applied
        * 
* * bool update_available = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The updateAvailable. */ @java.lang.Override @@ -3065,41 +2730,34 @@ public boolean getUpdateAvailable() { return updateAvailable_; } /** - * - * *
        * Output only. Returns true if there is an update waiting to be applied
        * 
* * bool update_available = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @param value The updateAvailable to set. * @return This builder for chaining. */ public Builder setUpdateAvailable(boolean value) { - + updateAvailable_ = value; onChanged(); return this; } /** - * - * *
        * Output only. Returns true if there is an update waiting to be applied
        * 
* * bool update_available = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return This builder for chaining. */ public Builder clearUpdateAvailable() { - + updateAvailable_ = false; onChanged(); return this; } - @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -3112,12 +2770,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.memcache.v1beta2.Instance.Node) } // @@protoc_insertion_point(class_scope:google.cloud.memcache.v1beta2.Instance.Node) private static final com.google.cloud.memcache.v1beta2.Instance.Node DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.memcache.v1beta2.Instance.Node(); } @@ -3126,16 +2784,16 @@ public static com.google.cloud.memcache.v1beta2.Instance.Node getDefaultInstance return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Node parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new Node(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Node parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new Node(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -3150,74 +2808,64 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.memcache.v1beta2.Instance.Node getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } - public interface InstanceMessageOrBuilder - extends + public interface InstanceMessageOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.memcache.v1beta2.Instance.InstanceMessage) com.google.protobuf.MessageOrBuilder { /** - * - * *
      * A code that correspond to one type of user-facing message.
      * 
* * .google.cloud.memcache.v1beta2.Instance.InstanceMessage.Code code = 1; - * * @return The enum numeric value on the wire for code. */ int getCodeValue(); /** - * - * *
      * A code that correspond to one type of user-facing message.
      * 
* * .google.cloud.memcache.v1beta2.Instance.InstanceMessage.Code code = 1; - * * @return The code. */ com.google.cloud.memcache.v1beta2.Instance.InstanceMessage.Code getCode(); /** - * - * *
      * Message on memcached instance which will be exposed to users.
      * 
* * string message = 2; - * * @return The message. */ java.lang.String getMessage(); /** - * - * *
      * Message on memcached instance which will be exposed to users.
      * 
* * string message = 2; - * * @return The bytes for message. */ - com.google.protobuf.ByteString getMessageBytes(); + com.google.protobuf.ByteString + getMessageBytes(); } - /** Protobuf type {@code google.cloud.memcache.v1beta2.Instance.InstanceMessage} */ - public static final class InstanceMessage extends com.google.protobuf.GeneratedMessageV3 - implements + /** + * Protobuf type {@code google.cloud.memcache.v1beta2.Instance.InstanceMessage} + */ + public static final class InstanceMessage extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.memcache.v1beta2.Instance.InstanceMessage) InstanceMessageOrBuilder { - private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use InstanceMessage.newBuilder() to construct. private InstanceMessage(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private InstanceMessage() { code_ = 0; message_ = ""; @@ -3225,15 +2873,16 @@ private InstanceMessage() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new InstanceMessage(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private InstanceMessage( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -3252,27 +2901,25 @@ private InstanceMessage( case 0: done = true; break; - case 8: - { - int rawValue = input.readEnum(); + case 8: { + int rawValue = input.readEnum(); - code_ = rawValue; - break; - } - case 18: - { - java.lang.String s = input.readStringRequireUtf8(); + code_ = rawValue; + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); - message_ = s; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + message_ = s; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -3280,33 +2927,32 @@ private InstanceMessage( } 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.memcache.v1beta2.CloudMemcacheProto - .internal_static_google_cloud_memcache_v1beta2_Instance_InstanceMessage_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.memcache.v1beta2.CloudMemcacheProto.internal_static_google_cloud_memcache_v1beta2_Instance_InstanceMessage_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.memcache.v1beta2.CloudMemcacheProto - .internal_static_google_cloud_memcache_v1beta2_Instance_InstanceMessage_fieldAccessorTable + return com.google.cloud.memcache.v1beta2.CloudMemcacheProto.internal_static_google_cloud_memcache_v1beta2_Instance_InstanceMessage_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.memcache.v1beta2.Instance.InstanceMessage.class, - com.google.cloud.memcache.v1beta2.Instance.InstanceMessage.Builder.class); + com.google.cloud.memcache.v1beta2.Instance.InstanceMessage.class, com.google.cloud.memcache.v1beta2.Instance.InstanceMessage.Builder.class); } - /** Protobuf enum {@code google.cloud.memcache.v1beta2.Instance.InstanceMessage.Code} */ - public enum Code implements com.google.protobuf.ProtocolMessageEnum { + /** + * Protobuf enum {@code google.cloud.memcache.v1beta2.Instance.InstanceMessage.Code} + */ + public enum Code + implements com.google.protobuf.ProtocolMessageEnum { /** - * - * *
        * Message Code not set.
        * 
@@ -3315,8 +2961,6 @@ public enum Code implements com.google.protobuf.ProtocolMessageEnum { */ CODE_UNSPECIFIED(0), /** - * - * *
        * Memcached nodes are distributed unevenly.
        * 
@@ -3328,8 +2972,6 @@ public enum Code implements com.google.protobuf.ProtocolMessageEnum { ; /** - * - * *
        * Message Code not set.
        * 
@@ -3338,8 +2980,6 @@ public enum Code implements com.google.protobuf.ProtocolMessageEnum { */ public static final int CODE_UNSPECIFIED_VALUE = 0; /** - * - * *
        * Memcached nodes are distributed unevenly.
        * 
@@ -3348,6 +2988,7 @@ public enum Code implements com.google.protobuf.ProtocolMessageEnum { */ public static final int ZONE_DISTRIBUTION_UNBALANCED_VALUE = 1; + public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( @@ -3372,49 +3013,48 @@ public static Code valueOf(int value) { */ public static Code forNumber(int value) { switch (value) { - case 0: - return CODE_UNSPECIFIED; - case 1: - return ZONE_DISTRIBUTION_UNBALANCED; - default: - return null; + case 0: return CODE_UNSPECIFIED; + case 1: return ZONE_DISTRIBUTION_UNBALANCED; + 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< + Code> internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public Code findValueByNumber(int number) { + return Code.forNumber(number); + } + }; - private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public Code findValueByNumber(int number) { - return Code.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.memcache.v1beta2.Instance.InstanceMessage.getDescriptor() - .getEnumTypes() - .get(0); + public static final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptor() { + return com.google.cloud.memcache.v1beta2.Instance.InstanceMessage.getDescriptor().getEnumTypes().get(0); } private static final Code[] VALUES = values(); - public static Code valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + public static Code 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; @@ -3434,52 +3074,38 @@ private Code(int value) { public static final int CODE_FIELD_NUMBER = 1; private int code_; /** - * - * *
      * A code that correspond to one type of user-facing message.
      * 
* * .google.cloud.memcache.v1beta2.Instance.InstanceMessage.Code code = 1; - * * @return The enum numeric value on the wire for code. */ - @java.lang.Override - public int getCodeValue() { + @java.lang.Override public int getCodeValue() { return code_; } /** - * - * *
      * A code that correspond to one type of user-facing message.
      * 
* * .google.cloud.memcache.v1beta2.Instance.InstanceMessage.Code code = 1; - * * @return The code. */ - @java.lang.Override - public com.google.cloud.memcache.v1beta2.Instance.InstanceMessage.Code getCode() { + @java.lang.Override public com.google.cloud.memcache.v1beta2.Instance.InstanceMessage.Code getCode() { @SuppressWarnings("deprecation") - com.google.cloud.memcache.v1beta2.Instance.InstanceMessage.Code result = - com.google.cloud.memcache.v1beta2.Instance.InstanceMessage.Code.valueOf(code_); - return result == null - ? com.google.cloud.memcache.v1beta2.Instance.InstanceMessage.Code.UNRECOGNIZED - : result; + com.google.cloud.memcache.v1beta2.Instance.InstanceMessage.Code result = com.google.cloud.memcache.v1beta2.Instance.InstanceMessage.Code.valueOf(code_); + return result == null ? com.google.cloud.memcache.v1beta2.Instance.InstanceMessage.Code.UNRECOGNIZED : result; } public static final int MESSAGE_FIELD_NUMBER = 2; private volatile java.lang.Object message_; /** - * - * *
      * Message on memcached instance which will be exposed to users.
      * 
* * string message = 2; - * * @return The message. */ @java.lang.Override @@ -3488,29 +3114,29 @@ public java.lang.String getMessage() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); message_ = s; return s; } } /** - * - * *
      * Message on memcached instance which will be exposed to users.
      * 
* * string message = 2; - * * @return The bytes for message. */ @java.lang.Override - public com.google.protobuf.ByteString getMessageBytes() { + public com.google.protobuf.ByteString + getMessageBytes() { java.lang.Object ref = message_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); message_ = b; return b; } else { @@ -3519,7 +3145,6 @@ public com.google.protobuf.ByteString getMessageBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -3531,10 +3156,9 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (code_ - != com.google.cloud.memcache.v1beta2.Instance.InstanceMessage.Code.CODE_UNSPECIFIED - .getNumber()) { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (code_ != com.google.cloud.memcache.v1beta2.Instance.InstanceMessage.Code.CODE_UNSPECIFIED.getNumber()) { output.writeEnum(1, code_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(message_)) { @@ -3549,10 +3173,9 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (code_ - != com.google.cloud.memcache.v1beta2.Instance.InstanceMessage.Code.CODE_UNSPECIFIED - .getNumber()) { - size += com.google.protobuf.CodedOutputStream.computeEnumSize(1, code_); + if (code_ != com.google.cloud.memcache.v1beta2.Instance.InstanceMessage.Code.CODE_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(1, code_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(message_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, message_); @@ -3565,16 +3188,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.memcache.v1beta2.Instance.InstanceMessage)) { return super.equals(obj); } - com.google.cloud.memcache.v1beta2.Instance.InstanceMessage other = - (com.google.cloud.memcache.v1beta2.Instance.InstanceMessage) obj; + com.google.cloud.memcache.v1beta2.Instance.InstanceMessage other = (com.google.cloud.memcache.v1beta2.Instance.InstanceMessage) obj; if (code_ != other.code_) return false; - if (!getMessage().equals(other.getMessage())) return false; + if (!getMessage() + .equals(other.getMessage())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -3596,94 +3219,87 @@ public int hashCode() { } public static com.google.cloud.memcache.v1beta2.Instance.InstanceMessage parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.memcache.v1beta2.Instance.InstanceMessage parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.memcache.v1beta2.Instance.InstanceMessage parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.memcache.v1beta2.Instance.InstanceMessage parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.memcache.v1beta2.Instance.InstanceMessage parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.memcache.v1beta2.Instance.InstanceMessage parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.memcache.v1beta2.Instance.InstanceMessage parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.memcache.v1beta2.Instance.InstanceMessage parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.memcache.v1beta2.Instance.InstanceMessage parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.memcache.v1beta2.Instance.InstanceMessage parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.memcache.v1beta2.Instance.InstanceMessage parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.memcache.v1beta2.Instance.InstanceMessage parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.memcache.v1beta2.Instance.InstanceMessage parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.memcache.v1beta2.Instance.InstanceMessage parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.memcache.v1beta2.Instance.InstanceMessage prototype) { + public static Builder newBuilder(com.google.cloud.memcache.v1beta2.Instance.InstanceMessage prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override @@ -3692,25 +3308,24 @@ protected Builder newBuilderForType( Builder builder = new Builder(parent); return builder; } - /** Protobuf type {@code google.cloud.memcache.v1beta2.Instance.InstanceMessage} */ - public static final class Builder - extends com.google.protobuf.GeneratedMessageV3.Builder - implements + /** + * Protobuf type {@code google.cloud.memcache.v1beta2.Instance.InstanceMessage} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.memcache.v1beta2.Instance.InstanceMessage) com.google.cloud.memcache.v1beta2.Instance.InstanceMessageOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.memcache.v1beta2.CloudMemcacheProto - .internal_static_google_cloud_memcache_v1beta2_Instance_InstanceMessage_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.memcache.v1beta2.CloudMemcacheProto.internal_static_google_cloud_memcache_v1beta2_Instance_InstanceMessage_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.memcache.v1beta2.CloudMemcacheProto - .internal_static_google_cloud_memcache_v1beta2_Instance_InstanceMessage_fieldAccessorTable + return com.google.cloud.memcache.v1beta2.CloudMemcacheProto.internal_static_google_cloud_memcache_v1beta2_Instance_InstanceMessage_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.memcache.v1beta2.Instance.InstanceMessage.class, - com.google.cloud.memcache.v1beta2.Instance.InstanceMessage.Builder.class); + com.google.cloud.memcache.v1beta2.Instance.InstanceMessage.class, com.google.cloud.memcache.v1beta2.Instance.InstanceMessage.Builder.class); } // Construct using com.google.cloud.memcache.v1beta2.Instance.InstanceMessage.newBuilder() @@ -3718,15 +3333,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(); @@ -3738,14 +3354,13 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.memcache.v1beta2.CloudMemcacheProto - .internal_static_google_cloud_memcache_v1beta2_Instance_InstanceMessage_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.memcache.v1beta2.CloudMemcacheProto.internal_static_google_cloud_memcache_v1beta2_Instance_InstanceMessage_descriptor; } @java.lang.Override - public com.google.cloud.memcache.v1beta2.Instance.InstanceMessage - getDefaultInstanceForType() { + public com.google.cloud.memcache.v1beta2.Instance.InstanceMessage getDefaultInstanceForType() { return com.google.cloud.memcache.v1beta2.Instance.InstanceMessage.getDefaultInstance(); } @@ -3760,8 +3375,7 @@ public com.google.cloud.memcache.v1beta2.Instance.InstanceMessage build() { @java.lang.Override public com.google.cloud.memcache.v1beta2.Instance.InstanceMessage buildPartial() { - com.google.cloud.memcache.v1beta2.Instance.InstanceMessage result = - new com.google.cloud.memcache.v1beta2.Instance.InstanceMessage(this); + com.google.cloud.memcache.v1beta2.Instance.InstanceMessage result = new com.google.cloud.memcache.v1beta2.Instance.InstanceMessage(this); result.code_ = code_; result.message_ = message_; onBuilt(); @@ -3772,41 +3386,38 @@ public com.google.cloud.memcache.v1beta2.Instance.InstanceMessage buildPartial() public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, - int index, - java.lang.Object value) { + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.memcache.v1beta2.Instance.InstanceMessage) { - return mergeFrom((com.google.cloud.memcache.v1beta2.Instance.InstanceMessage) other); + return mergeFrom((com.google.cloud.memcache.v1beta2.Instance.InstanceMessage)other); } else { super.mergeFrom(other); return this; @@ -3814,9 +3425,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.memcache.v1beta2.Instance.InstanceMessage other) { - if (other - == com.google.cloud.memcache.v1beta2.Instance.InstanceMessage.getDefaultInstance()) - return this; + if (other == com.google.cloud.memcache.v1beta2.Instance.InstanceMessage.getDefaultInstance()) return this; if (other.code_ != 0) { setCodeValue(other.getCodeValue()); } @@ -3843,8 +3452,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.memcache.v1beta2.Instance.InstanceMessage) e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.memcache.v1beta2.Instance.InstanceMessage) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -3856,93 +3464,73 @@ public Builder mergeFrom( private int code_ = 0; /** - * - * *
        * A code that correspond to one type of user-facing message.
        * 
* * .google.cloud.memcache.v1beta2.Instance.InstanceMessage.Code code = 1; - * * @return The enum numeric value on the wire for code. */ - @java.lang.Override - public int getCodeValue() { + @java.lang.Override public int getCodeValue() { return code_; } /** - * - * *
        * A code that correspond to one type of user-facing message.
        * 
* * .google.cloud.memcache.v1beta2.Instance.InstanceMessage.Code code = 1; - * * @param value The enum numeric value on the wire for code to set. * @return This builder for chaining. */ public Builder setCodeValue(int value) { - + code_ = value; onChanged(); return this; } /** - * - * *
        * A code that correspond to one type of user-facing message.
        * 
* * .google.cloud.memcache.v1beta2.Instance.InstanceMessage.Code code = 1; - * * @return The code. */ @java.lang.Override public com.google.cloud.memcache.v1beta2.Instance.InstanceMessage.Code getCode() { @SuppressWarnings("deprecation") - com.google.cloud.memcache.v1beta2.Instance.InstanceMessage.Code result = - com.google.cloud.memcache.v1beta2.Instance.InstanceMessage.Code.valueOf(code_); - return result == null - ? com.google.cloud.memcache.v1beta2.Instance.InstanceMessage.Code.UNRECOGNIZED - : result; + com.google.cloud.memcache.v1beta2.Instance.InstanceMessage.Code result = com.google.cloud.memcache.v1beta2.Instance.InstanceMessage.Code.valueOf(code_); + return result == null ? com.google.cloud.memcache.v1beta2.Instance.InstanceMessage.Code.UNRECOGNIZED : result; } /** - * - * *
        * A code that correspond to one type of user-facing message.
        * 
* * .google.cloud.memcache.v1beta2.Instance.InstanceMessage.Code code = 1; - * * @param value The code to set. * @return This builder for chaining. */ - public Builder setCode( - com.google.cloud.memcache.v1beta2.Instance.InstanceMessage.Code value) { + public Builder setCode(com.google.cloud.memcache.v1beta2.Instance.InstanceMessage.Code value) { if (value == null) { throw new NullPointerException(); } - + code_ = value.getNumber(); onChanged(); return this; } /** - * - * *
        * A code that correspond to one type of user-facing message.
        * 
* * .google.cloud.memcache.v1beta2.Instance.InstanceMessage.Code code = 1; - * * @return This builder for chaining. */ public Builder clearCode() { - + code_ = 0; onChanged(); return this; @@ -3950,20 +3538,18 @@ public Builder clearCode() { private java.lang.Object message_ = ""; /** - * - * *
        * Message on memcached instance which will be exposed to users.
        * 
* * string message = 2; - * * @return The message. */ public java.lang.String getMessage() { java.lang.Object ref = message_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); message_ = s; return s; @@ -3972,21 +3558,20 @@ public java.lang.String getMessage() { } } /** - * - * *
        * Message on memcached instance which will be exposed to users.
        * 
* * string message = 2; - * * @return The bytes for message. */ - public com.google.protobuf.ByteString getMessageBytes() { + public com.google.protobuf.ByteString + getMessageBytes() { java.lang.Object ref = message_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); message_ = b; return b; } else { @@ -3994,66 +3579,58 @@ public com.google.protobuf.ByteString getMessageBytes() { } } /** - * - * *
        * Message on memcached instance which will be exposed to users.
        * 
* * string message = 2; - * * @param value The message to set. * @return This builder for chaining. */ - public Builder setMessage(java.lang.String value) { + public Builder setMessage( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + message_ = value; onChanged(); return this; } /** - * - * *
        * Message on memcached instance which will be exposed to users.
        * 
* * string message = 2; - * * @return This builder for chaining. */ public Builder clearMessage() { - + message_ = getDefaultInstance().getMessage(); onChanged(); return this; } /** - * - * *
        * Message on memcached instance which will be exposed to users.
        * 
* * string message = 2; - * * @param value The bytes for message to set. * @return This builder for chaining. */ - public Builder setMessageBytes(com.google.protobuf.ByteString value) { + public Builder setMessageBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + message_ = value; onChanged(); return this; } - @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -4066,13 +3643,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.memcache.v1beta2.Instance.InstanceMessage) } // @@protoc_insertion_point(class_scope:google.cloud.memcache.v1beta2.Instance.InstanceMessage) - private static final com.google.cloud.memcache.v1beta2.Instance.InstanceMessage - DEFAULT_INSTANCE; - + private static final com.google.cloud.memcache.v1beta2.Instance.InstanceMessage DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.cloud.memcache.v1beta2.Instance.InstanceMessage(); } @@ -4081,16 +3657,16 @@ public static com.google.cloud.memcache.v1beta2.Instance.InstanceMessage getDefa return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public InstanceMessage parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new InstanceMessage(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public InstanceMessage parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new InstanceMessage(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -4105,13 +3681,12 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.memcache.v1beta2.Instance.InstanceMessage getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } 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:
@@ -4123,7 +3698,6 @@ public com.google.cloud.memcache.v1beta2.Instance.InstanceMessage getDefaultInst
    * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The name. */ @java.lang.Override @@ -4132,15 +3706,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:
@@ -4152,15 +3725,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 { @@ -4171,15 +3745,12 @@ public com.google.protobuf.ByteString getNameBytes() { public static final int DISPLAY_NAME_FIELD_NUMBER = 2; private volatile java.lang.Object displayName_; /** - * - * *
    * User provided name for the instance, which is only used for display
    * purposes. Cannot be more than 80 characters.
    * 
* * string display_name = 2; - * * @return The displayName. */ @java.lang.Override @@ -4188,30 +3759,30 @@ 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; } } /** - * - * *
    * User provided name for the instance, which is only used for display
    * purposes. Cannot be more than 80 characters.
    * 
* * 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 { @@ -4220,23 +3791,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.memcache.v1beta2.CloudMemcacheProto - .internal_static_google_cloud_memcache_v1beta2_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.memcache.v1beta2.CloudMemcacheProto.internal_static_google_cloud_memcache_v1beta2_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_; } @@ -4245,8 +3817,6 @@ public int getLabelsCount() { return internalGetLabels().getMap().size(); } /** - * - * *
    * Resource labels to represent user-provided metadata.
    * Refer to cloud documentation on labels for more details.
@@ -4255,22 +3825,22 @@ public int getLabelsCount() {
    *
    * 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.
    * Refer to cloud documentation on labels for more details.
@@ -4280,12 +3850,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.
    * Refer to cloud documentation on labels for more details.
@@ -4295,16 +3864,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.
    * Refer to cloud documentation on labels for more details.
@@ -4314,11 +3883,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();
     }
@@ -4328,8 +3898,6 @@ public java.lang.String getLabelsOrThrow(java.lang.String key) {
   public static final int AUTHORIZED_NETWORK_FIELD_NUMBER = 4;
   private volatile java.lang.Object authorizedNetwork_;
   /**
-   *
-   *
    * 
    * The full name of the Google Compute Engine
    * [network](https://cloud.google.com/vpc/docs/vpc) to which the
@@ -4338,7 +3906,6 @@ public java.lang.String getLabelsOrThrow(java.lang.String key) {
    * 
* * string authorized_network = 4; - * * @return The authorizedNetwork. */ @java.lang.Override @@ -4347,15 +3914,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; } } /** - * - * *
    * The full name of the Google Compute Engine
    * [network](https://cloud.google.com/vpc/docs/vpc) to which the
@@ -4364,15 +3930,16 @@ public java.lang.String getAuthorizedNetwork() {
    * 
* * string authorized_network = 4; - * * @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 { @@ -4383,8 +3950,6 @@ public com.google.protobuf.ByteString getAuthorizedNetworkBytes() { public static final int ZONES_FIELD_NUMBER = 5; private com.google.protobuf.LazyStringList zones_; /** - * - * *
    * Zones in which Memcached nodes should be provisioned.
    * Memcached nodes will be equally distributed across these zones. If not
@@ -4393,15 +3958,13 @@ public com.google.protobuf.ByteString getAuthorizedNetworkBytes() {
    * 
* * repeated string zones = 5; - * * @return A list containing the zones. */ - public com.google.protobuf.ProtocolStringList getZonesList() { + public com.google.protobuf.ProtocolStringList + getZonesList() { return zones_; } /** - * - * *
    * Zones in which Memcached nodes should be provisioned.
    * Memcached nodes will be equally distributed across these zones. If not
@@ -4410,15 +3973,12 @@ public com.google.protobuf.ProtocolStringList getZonesList() {
    * 
* * repeated string zones = 5; - * * @return The count of zones. */ public int getZonesCount() { return zones_.size(); } /** - * - * *
    * Zones in which Memcached nodes should be provisioned.
    * Memcached nodes will be equally distributed across these zones. If not
@@ -4427,7 +3987,6 @@ public int getZonesCount() {
    * 
* * repeated string zones = 5; - * * @param index The index of the element to return. * @return The zones at the given index. */ @@ -4435,8 +3994,6 @@ public java.lang.String getZones(int index) { return zones_.get(index); } /** - * - * *
    * Zones in which Memcached nodes should be provisioned.
    * Memcached nodes will be equally distributed across these zones. If not
@@ -4445,25 +4002,22 @@ public java.lang.String getZones(int index) {
    * 
* * repeated string zones = 5; - * * @param index The index of the value to return. * @return The bytes of the zones at the given index. */ - public com.google.protobuf.ByteString getZonesBytes(int index) { + public com.google.protobuf.ByteString + getZonesBytes(int index) { return zones_.getByteString(index); } public static final int NODE_COUNT_FIELD_NUMBER = 6; private int nodeCount_; /** - * - * *
    * Required. Number of nodes in the Memcached instance.
    * 
* * int32 node_count = 6 [(.google.api.field_behavior) = REQUIRED]; - * * @return The nodeCount. */ @java.lang.Override @@ -4474,16 +4028,11 @@ public int getNodeCount() { public static final int NODE_CONFIG_FIELD_NUMBER = 7; private com.google.cloud.memcache.v1beta2.Instance.NodeConfig nodeConfig_; /** - * - * *
    * Required. Configuration for Memcached nodes.
    * 
* - * - * .google.cloud.memcache.v1beta2.Instance.NodeConfig node_config = 7 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.memcache.v1beta2.Instance.NodeConfig node_config = 7 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the nodeConfig field is set. */ @java.lang.Override @@ -4491,34 +4040,23 @@ public boolean hasNodeConfig() { return nodeConfig_ != null; } /** - * - * *
    * Required. Configuration for Memcached nodes.
    * 
* - * - * .google.cloud.memcache.v1beta2.Instance.NodeConfig node_config = 7 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.memcache.v1beta2.Instance.NodeConfig node_config = 7 [(.google.api.field_behavior) = REQUIRED]; * @return The nodeConfig. */ @java.lang.Override public com.google.cloud.memcache.v1beta2.Instance.NodeConfig getNodeConfig() { - return nodeConfig_ == null - ? com.google.cloud.memcache.v1beta2.Instance.NodeConfig.getDefaultInstance() - : nodeConfig_; + return nodeConfig_ == null ? com.google.cloud.memcache.v1beta2.Instance.NodeConfig.getDefaultInstance() : nodeConfig_; } /** - * - * *
    * Required. Configuration for Memcached nodes.
    * 
* - * - * .google.cloud.memcache.v1beta2.Instance.NodeConfig node_config = 7 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.memcache.v1beta2.Instance.NodeConfig node_config = 7 [(.google.api.field_behavior) = REQUIRED]; */ @java.lang.Override public com.google.cloud.memcache.v1beta2.Instance.NodeConfigOrBuilder getNodeConfigOrBuilder() { @@ -4528,8 +4066,6 @@ public com.google.cloud.memcache.v1beta2.Instance.NodeConfigOrBuilder getNodeCon public static final int MEMCACHE_VERSION_FIELD_NUMBER = 9; private int memcacheVersion_; /** - * - * *
    * The major version of Memcached software.
    * If not provided, latest supported version will be used. Currently the
@@ -4539,16 +4075,12 @@ public com.google.cloud.memcache.v1beta2.Instance.NodeConfigOrBuilder getNodeCon
    * 
* * .google.cloud.memcache.v1beta2.MemcacheVersion memcache_version = 9; - * * @return The enum numeric value on the wire for memcacheVersion. */ - @java.lang.Override - public int getMemcacheVersionValue() { + @java.lang.Override public int getMemcacheVersionValue() { return memcacheVersion_; } /** - * - * *
    * The major version of Memcached software.
    * If not provided, latest supported version will be used. Currently the
@@ -4558,29 +4090,23 @@ public int getMemcacheVersionValue() {
    * 
* * .google.cloud.memcache.v1beta2.MemcacheVersion memcache_version = 9; - * * @return The memcacheVersion. */ - @java.lang.Override - public com.google.cloud.memcache.v1beta2.MemcacheVersion getMemcacheVersion() { + @java.lang.Override public com.google.cloud.memcache.v1beta2.MemcacheVersion getMemcacheVersion() { @SuppressWarnings("deprecation") - com.google.cloud.memcache.v1beta2.MemcacheVersion result = - com.google.cloud.memcache.v1beta2.MemcacheVersion.valueOf(memcacheVersion_); + com.google.cloud.memcache.v1beta2.MemcacheVersion result = com.google.cloud.memcache.v1beta2.MemcacheVersion.valueOf(memcacheVersion_); return result == null ? com.google.cloud.memcache.v1beta2.MemcacheVersion.UNRECOGNIZED : result; } public static final int PARAMETERS_FIELD_NUMBER = 11; private com.google.cloud.memcache.v1beta2.MemcacheParameters parameters_; /** - * - * *
    * Optional: User defined parameters to apply to the memcached process
    * on each node.
    * 
* * .google.cloud.memcache.v1beta2.MemcacheParameters parameters = 11; - * * @return Whether the parameters field is set. */ @java.lang.Override @@ -4588,26 +4114,19 @@ public boolean hasParameters() { return parameters_ != null; } /** - * - * *
    * Optional: User defined parameters to apply to the memcached process
    * on each node.
    * 
* * .google.cloud.memcache.v1beta2.MemcacheParameters parameters = 11; - * * @return The parameters. */ @java.lang.Override public com.google.cloud.memcache.v1beta2.MemcacheParameters getParameters() { - return parameters_ == null - ? com.google.cloud.memcache.v1beta2.MemcacheParameters.getDefaultInstance() - : parameters_; + return parameters_ == null ? com.google.cloud.memcache.v1beta2.MemcacheParameters.getDefaultInstance() : parameters_; } /** - * - * *
    * Optional: User defined parameters to apply to the memcached process
    * on each node.
@@ -4623,81 +4142,61 @@ public com.google.cloud.memcache.v1beta2.MemcacheParametersOrBuilder getParamete
   public static final int MEMCACHE_NODES_FIELD_NUMBER = 12;
   private java.util.List memcacheNodes_;
   /**
-   *
-   *
    * 
    * Output only. List of Memcached nodes.
    * Refer to [Node][google.cloud.memcache.v1beta2.Instance.Node] message for more details.
    * 
* - * - * repeated .google.cloud.memcache.v1beta2.Instance.Node memcache_nodes = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.memcache.v1beta2.Instance.Node memcache_nodes = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override public java.util.List getMemcacheNodesList() { return memcacheNodes_; } /** - * - * *
    * Output only. List of Memcached nodes.
    * Refer to [Node][google.cloud.memcache.v1beta2.Instance.Node] message for more details.
    * 
* - * - * repeated .google.cloud.memcache.v1beta2.Instance.Node memcache_nodes = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.memcache.v1beta2.Instance.Node memcache_nodes = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override - public java.util.List + public java.util.List getMemcacheNodesOrBuilderList() { return memcacheNodes_; } /** - * - * *
    * Output only. List of Memcached nodes.
    * Refer to [Node][google.cloud.memcache.v1beta2.Instance.Node] message for more details.
    * 
* - * - * repeated .google.cloud.memcache.v1beta2.Instance.Node memcache_nodes = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.memcache.v1beta2.Instance.Node memcache_nodes = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override public int getMemcacheNodesCount() { return memcacheNodes_.size(); } /** - * - * *
    * Output only. List of Memcached nodes.
    * Refer to [Node][google.cloud.memcache.v1beta2.Instance.Node] message for more details.
    * 
* - * - * repeated .google.cloud.memcache.v1beta2.Instance.Node memcache_nodes = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.memcache.v1beta2.Instance.Node memcache_nodes = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override public com.google.cloud.memcache.v1beta2.Instance.Node getMemcacheNodes(int index) { return memcacheNodes_.get(index); } /** - * - * *
    * Output only. List of Memcached nodes.
    * Refer to [Node][google.cloud.memcache.v1beta2.Instance.Node] message for more details.
    * 
* - * - * repeated .google.cloud.memcache.v1beta2.Instance.Node memcache_nodes = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.memcache.v1beta2.Instance.Node memcache_nodes = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override public com.google.cloud.memcache.v1beta2.Instance.NodeOrBuilder getMemcacheNodesOrBuilder( @@ -4708,15 +4207,11 @@ public com.google.cloud.memcache.v1beta2.Instance.NodeOrBuilder getMemcacheNodes 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 @@ -4724,15 +4219,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 @@ -4740,14 +4231,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() { @@ -4757,15 +4245,11 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { public static final int UPDATE_TIME_FIELD_NUMBER = 14; private com.google.protobuf.Timestamp updateTime_; /** - * - * *
    * Output only. The time the instance was updated.
    * 
* - * .google.protobuf.Timestamp update_time = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp update_time = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the updateTime field is set. */ @java.lang.Override @@ -4773,15 +4257,11 @@ public boolean hasUpdateTime() { return updateTime_ != null; } /** - * - * *
    * Output only. The time the instance was updated.
    * 
* - * .google.protobuf.Timestamp update_time = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp update_time = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The updateTime. */ @java.lang.Override @@ -4789,14 +4269,11 @@ public com.google.protobuf.Timestamp getUpdateTime() { return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; } /** - * - * *
    * Output only. The time the instance was updated.
    * 
* - * .google.protobuf.Timestamp update_time = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp update_time = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { @@ -4806,48 +4283,33 @@ public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { public static final int STATE_FIELD_NUMBER = 15; private int state_; /** - * - * *
    * Output only. The state of this Memcached instance.
    * 
* - * - * .google.cloud.memcache.v1beta2.Instance.State state = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.memcache.v1beta2.Instance.State state = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The enum numeric value on the wire for state. */ - @java.lang.Override - public int getStateValue() { + @java.lang.Override public int getStateValue() { return state_; } /** - * - * *
    * Output only. The state of this Memcached instance.
    * 
* - * - * .google.cloud.memcache.v1beta2.Instance.State state = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.memcache.v1beta2.Instance.State state = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The state. */ - @java.lang.Override - public com.google.cloud.memcache.v1beta2.Instance.State getState() { + @java.lang.Override public com.google.cloud.memcache.v1beta2.Instance.State getState() { @SuppressWarnings("deprecation") - com.google.cloud.memcache.v1beta2.Instance.State result = - com.google.cloud.memcache.v1beta2.Instance.State.valueOf(state_); + com.google.cloud.memcache.v1beta2.Instance.State result = com.google.cloud.memcache.v1beta2.Instance.State.valueOf(state_); return result == null ? com.google.cloud.memcache.v1beta2.Instance.State.UNRECOGNIZED : result; } public static final int MEMCACHE_FULL_VERSION_FIELD_NUMBER = 18; private volatile java.lang.Object memcacheFullVersion_; /** - * - * *
    * Output only. The full version of memcached server running on this instance.
    * System automatically determines the full memcached version for an instance
@@ -4856,7 +4318,6 @@ public com.google.cloud.memcache.v1beta2.Instance.State getState() {
    * 
* * string memcache_full_version = 18 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The memcacheFullVersion. */ @java.lang.Override @@ -4865,15 +4326,14 @@ public java.lang.String getMemcacheFullVersion() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); memcacheFullVersion_ = s; return s; } } /** - * - * *
    * Output only. The full version of memcached server running on this instance.
    * System automatically determines the full memcached version for an instance
@@ -4882,15 +4342,16 @@ public java.lang.String getMemcacheFullVersion() {
    * 
* * string memcache_full_version = 18 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for memcacheFullVersion. */ @java.lang.Override - public com.google.protobuf.ByteString getMemcacheFullVersionBytes() { + public com.google.protobuf.ByteString + getMemcacheFullVersionBytes() { java.lang.Object ref = memcacheFullVersion_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); memcacheFullVersion_ = b; return b; } else { @@ -4899,94 +4360,73 @@ public com.google.protobuf.ByteString getMemcacheFullVersionBytes() { } public static final int INSTANCE_MESSAGES_FIELD_NUMBER = 19; - private java.util.List - instanceMessages_; + private java.util.List instanceMessages_; /** - * - * *
    * List of messages that describe the current state of the Memcached instance.
    * 
* - * repeated .google.cloud.memcache.v1beta2.Instance.InstanceMessage instance_messages = 19; - * + * repeated .google.cloud.memcache.v1beta2.Instance.InstanceMessage instance_messages = 19; */ @java.lang.Override - public java.util.List - getInstanceMessagesList() { + public java.util.List getInstanceMessagesList() { return instanceMessages_; } /** - * - * *
    * List of messages that describe the current state of the Memcached instance.
    * 
* - * repeated .google.cloud.memcache.v1beta2.Instance.InstanceMessage instance_messages = 19; - * + * repeated .google.cloud.memcache.v1beta2.Instance.InstanceMessage instance_messages = 19; */ @java.lang.Override - public java.util.List< - ? extends com.google.cloud.memcache.v1beta2.Instance.InstanceMessageOrBuilder> + public java.util.List getInstanceMessagesOrBuilderList() { return instanceMessages_; } /** - * - * *
    * List of messages that describe the current state of the Memcached instance.
    * 
* - * repeated .google.cloud.memcache.v1beta2.Instance.InstanceMessage instance_messages = 19; - * + * repeated .google.cloud.memcache.v1beta2.Instance.InstanceMessage instance_messages = 19; */ @java.lang.Override public int getInstanceMessagesCount() { return instanceMessages_.size(); } /** - * - * *
    * List of messages that describe the current state of the Memcached instance.
    * 
* - * repeated .google.cloud.memcache.v1beta2.Instance.InstanceMessage instance_messages = 19; - * + * repeated .google.cloud.memcache.v1beta2.Instance.InstanceMessage instance_messages = 19; */ @java.lang.Override public com.google.cloud.memcache.v1beta2.Instance.InstanceMessage getInstanceMessages(int index) { return instanceMessages_.get(index); } /** - * - * *
    * List of messages that describe the current state of the Memcached instance.
    * 
* - * repeated .google.cloud.memcache.v1beta2.Instance.InstanceMessage instance_messages = 19; - * + * repeated .google.cloud.memcache.v1beta2.Instance.InstanceMessage instance_messages = 19; */ @java.lang.Override - public com.google.cloud.memcache.v1beta2.Instance.InstanceMessageOrBuilder - getInstanceMessagesOrBuilder(int index) { + public com.google.cloud.memcache.v1beta2.Instance.InstanceMessageOrBuilder getInstanceMessagesOrBuilder( + int index) { return instanceMessages_.get(index); } public static final int DISCOVERY_ENDPOINT_FIELD_NUMBER = 20; private volatile java.lang.Object discoveryEndpoint_; /** - * - * *
    * Output only. Endpoint for the Discovery API.
    * 
* * string discovery_endpoint = 20 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The discoveryEndpoint. */ @java.lang.Override @@ -4995,29 +4435,29 @@ public java.lang.String getDiscoveryEndpoint() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); discoveryEndpoint_ = s; return s; } } /** - * - * *
    * Output only. Endpoint for the Discovery API.
    * 
* * string discovery_endpoint = 20 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for discoveryEndpoint. */ @java.lang.Override - public com.google.protobuf.ByteString getDiscoveryEndpointBytes() { + public com.google.protobuf.ByteString + getDiscoveryEndpointBytes() { java.lang.Object ref = discoveryEndpoint_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); discoveryEndpoint_ = b; return b; } else { @@ -5028,14 +4468,11 @@ public com.google.protobuf.ByteString getDiscoveryEndpointBytes() { public static final int UPDATE_AVAILABLE_FIELD_NUMBER = 21; private boolean updateAvailable_; /** - * - * *
    * Output only. Returns true if there is an update waiting to be applied
    * 
* * bool update_available = 21 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The updateAvailable. */ @java.lang.Override @@ -5044,7 +4481,6 @@ public boolean getUpdateAvailable() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -5056,15 +4492,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(authorizedNetwork_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 4, authorizedNetwork_); } @@ -5077,9 +4518,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (nodeConfig_ != null) { output.writeMessage(7, getNodeConfig()); } - if (memcacheVersion_ - != com.google.cloud.memcache.v1beta2.MemcacheVersion.MEMCACHE_VERSION_UNSPECIFIED - .getNumber()) { + if (memcacheVersion_ != com.google.cloud.memcache.v1beta2.MemcacheVersion.MEMCACHE_VERSION_UNSPECIFIED.getNumber()) { output.writeEnum(9, memcacheVersion_); } if (parameters_ != null) { @@ -5124,15 +4563,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(authorizedNetwork_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, authorizedNetwork_); @@ -5146,43 +4585,50 @@ public int getSerializedSize() { size += 1 * getZonesList().size(); } if (nodeCount_ != 0) { - size += com.google.protobuf.CodedOutputStream.computeInt32Size(6, nodeCount_); + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(6, nodeCount_); } if (nodeConfig_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(7, getNodeConfig()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(7, getNodeConfig()); } - if (memcacheVersion_ - != com.google.cloud.memcache.v1beta2.MemcacheVersion.MEMCACHE_VERSION_UNSPECIFIED - .getNumber()) { - size += com.google.protobuf.CodedOutputStream.computeEnumSize(9, memcacheVersion_); + if (memcacheVersion_ != com.google.cloud.memcache.v1beta2.MemcacheVersion.MEMCACHE_VERSION_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(9, memcacheVersion_); } if (parameters_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(11, getParameters()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(11, getParameters()); } for (int i = 0; i < memcacheNodes_.size(); i++) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(12, memcacheNodes_.get(i)); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(12, memcacheNodes_.get(i)); } if (createTime_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(13, getCreateTime()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(13, getCreateTime()); } if (updateTime_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(14, getUpdateTime()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(14, getUpdateTime()); } if (state_ != com.google.cloud.memcache.v1beta2.Instance.State.STATE_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream.computeEnumSize(15, state_); + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(15, state_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(memcacheFullVersion_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(18, memcacheFullVersion_); } for (int i = 0; i < instanceMessages_.size(); i++) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize(19, instanceMessages_.get(i)); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(19, instanceMessages_.get(i)); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(discoveryEndpoint_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(20, discoveryEndpoint_); } if (updateAvailable_ != false) { - size += com.google.protobuf.CodedOutputStream.computeBoolSize(21, updateAvailable_); + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(21, updateAvailable_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -5192,43 +4638,57 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.memcache.v1beta2.Instance)) { return super.equals(obj); } - com.google.cloud.memcache.v1beta2.Instance other = - (com.google.cloud.memcache.v1beta2.Instance) obj; - - if (!getName().equals(other.getName())) return false; - if (!getDisplayName().equals(other.getDisplayName())) return false; - if (!internalGetLabels().equals(other.internalGetLabels())) return false; - if (!getAuthorizedNetwork().equals(other.getAuthorizedNetwork())) return false; - if (!getZonesList().equals(other.getZonesList())) return false; - if (getNodeCount() != other.getNodeCount()) return false; + com.google.cloud.memcache.v1beta2.Instance other = (com.google.cloud.memcache.v1beta2.Instance) obj; + + if (!getName() + .equals(other.getName())) return false; + if (!getDisplayName() + .equals(other.getDisplayName())) return false; + if (!internalGetLabels().equals( + other.internalGetLabels())) return false; + if (!getAuthorizedNetwork() + .equals(other.getAuthorizedNetwork())) return false; + if (!getZonesList() + .equals(other.getZonesList())) return false; + if (getNodeCount() + != other.getNodeCount()) return false; if (hasNodeConfig() != other.hasNodeConfig()) return false; if (hasNodeConfig()) { - if (!getNodeConfig().equals(other.getNodeConfig())) return false; + if (!getNodeConfig() + .equals(other.getNodeConfig())) return false; } if (memcacheVersion_ != other.memcacheVersion_) return false; if (hasParameters() != other.hasParameters()) return false; if (hasParameters()) { - if (!getParameters().equals(other.getParameters())) return false; + if (!getParameters() + .equals(other.getParameters())) return false; } - if (!getMemcacheNodesList().equals(other.getMemcacheNodesList())) return false; + if (!getMemcacheNodesList() + .equals(other.getMemcacheNodesList())) return false; if (hasCreateTime() != other.hasCreateTime()) return false; if (hasCreateTime()) { - if (!getCreateTime().equals(other.getCreateTime())) return false; + if (!getCreateTime() + .equals(other.getCreateTime())) return false; } if (hasUpdateTime() != other.hasUpdateTime()) return false; if (hasUpdateTime()) { - if (!getUpdateTime().equals(other.getUpdateTime())) return false; + if (!getUpdateTime() + .equals(other.getUpdateTime())) return false; } if (state_ != other.state_) return false; - if (!getMemcacheFullVersion().equals(other.getMemcacheFullVersion())) return false; - if (!getInstanceMessagesList().equals(other.getInstanceMessagesList())) return false; - if (!getDiscoveryEndpoint().equals(other.getDiscoveryEndpoint())) return false; - if (getUpdateAvailable() != other.getUpdateAvailable()) return false; + if (!getMemcacheFullVersion() + .equals(other.getMemcacheFullVersion())) return false; + if (!getInstanceMessagesList() + .equals(other.getInstanceMessagesList())) return false; + if (!getDiscoveryEndpoint() + .equals(other.getDiscoveryEndpoint())) return false; + if (getUpdateAvailable() + != other.getUpdateAvailable()) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -5289,153 +4749,147 @@ public int hashCode() { hash = (37 * hash) + DISCOVERY_ENDPOINT_FIELD_NUMBER; hash = (53 * hash) + getDiscoveryEndpoint().hashCode(); hash = (37 * hash) + UPDATE_AVAILABLE_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getUpdateAvailable()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getUpdateAvailable()); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } - public static com.google.cloud.memcache.v1beta2.Instance parseFrom(java.nio.ByteBuffer data) + public static com.google.cloud.memcache.v1beta2.Instance parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.memcache.v1beta2.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.memcache.v1beta2.Instance parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.memcache.v1beta2.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.memcache.v1beta2.Instance parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.memcache.v1beta2.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.memcache.v1beta2.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.memcache.v1beta2.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.memcache.v1beta2.Instance parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.memcache.v1beta2.Instance parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.memcache.v1beta2.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.memcache.v1beta2.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.memcache.v1beta2.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.memcache.v1beta2.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 Memcached instance
    * 
* * Protobuf type {@code google.cloud.memcache.v1beta2.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.memcache.v1beta2.Instance) com.google.cloud.memcache.v1beta2.InstanceOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.memcache.v1beta2.CloudMemcacheProto - .internal_static_google_cloud_memcache_v1beta2_Instance_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.memcache.v1beta2.CloudMemcacheProto.internal_static_google_cloud_memcache_v1beta2_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(); 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(); 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.memcache.v1beta2.CloudMemcacheProto - .internal_static_google_cloud_memcache_v1beta2_Instance_fieldAccessorTable + return com.google.cloud.memcache.v1beta2.CloudMemcacheProto.internal_static_google_cloud_memcache_v1beta2_Instance_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.memcache.v1beta2.Instance.class, - com.google.cloud.memcache.v1beta2.Instance.Builder.class); + com.google.cloud.memcache.v1beta2.Instance.class, com.google.cloud.memcache.v1beta2.Instance.Builder.class); } // Construct using com.google.cloud.memcache.v1beta2.Instance.newBuilder() @@ -5443,18 +4897,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) { getMemcacheNodesFieldBuilder(); getInstanceMessagesFieldBuilder(); } } - @java.lang.Override public Builder clear() { super.clear(); @@ -5519,9 +4973,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.memcache.v1beta2.CloudMemcacheProto - .internal_static_google_cloud_memcache_v1beta2_Instance_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.memcache.v1beta2.CloudMemcacheProto.internal_static_google_cloud_memcache_v1beta2_Instance_descriptor; } @java.lang.Override @@ -5540,8 +4994,7 @@ public com.google.cloud.memcache.v1beta2.Instance build() { @java.lang.Override public com.google.cloud.memcache.v1beta2.Instance buildPartial() { - com.google.cloud.memcache.v1beta2.Instance result = - new com.google.cloud.memcache.v1beta2.Instance(this); + com.google.cloud.memcache.v1beta2.Instance result = new com.google.cloud.memcache.v1beta2.Instance(this); int from_bitField0_ = bitField0_; result.name_ = name_; result.displayName_ = displayName_; @@ -5605,39 +5058,38 @@ public com.google.cloud.memcache.v1beta2.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.memcache.v1beta2.Instance) { - return mergeFrom((com.google.cloud.memcache.v1beta2.Instance) other); + return mergeFrom((com.google.cloud.memcache.v1beta2.Instance)other); } else { super.mergeFrom(other); return this; @@ -5654,7 +5106,8 @@ public Builder mergeFrom(com.google.cloud.memcache.v1beta2.Instance other) { displayName_ = other.displayName_; onChanged(); } - internalGetMutableLabels().mergeFrom(other.internalGetLabels()); + internalGetMutableLabels().mergeFrom( + other.internalGetLabels()); if (!other.getAuthorizedNetwork().isEmpty()) { authorizedNetwork_ = other.authorizedNetwork_; onChanged(); @@ -5699,10 +5152,9 @@ public Builder mergeFrom(com.google.cloud.memcache.v1beta2.Instance other) { memcacheNodesBuilder_ = null; memcacheNodes_ = other.memcacheNodes_; bitField0_ = (bitField0_ & ~0x00000004); - memcacheNodesBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getMemcacheNodesFieldBuilder() - : null; + memcacheNodesBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getMemcacheNodesFieldBuilder() : null; } else { memcacheNodesBuilder_.addAllMessages(other.memcacheNodes_); } @@ -5739,10 +5191,9 @@ public Builder mergeFrom(com.google.cloud.memcache.v1beta2.Instance other) { instanceMessagesBuilder_ = null; instanceMessages_ = other.instanceMessages_; bitField0_ = (bitField0_ & ~0x00000008); - instanceMessagesBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getInstanceMessagesFieldBuilder() - : null; + instanceMessagesBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getInstanceMessagesFieldBuilder() : null; } else { instanceMessagesBuilder_.addAllMessages(other.instanceMessages_); } @@ -5783,13 +5234,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:
@@ -5801,13 +5249,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; @@ -5816,8 +5264,6 @@ public java.lang.String getName() { } } /** - * - * *
      * Required. Unique name of the resource in this scope including project and
      * location using the form:
@@ -5829,14 +5275,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 { @@ -5844,8 +5291,6 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
      * Required. Unique name of the resource in this scope including project and
      * location using the form:
@@ -5857,22 +5302,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:
@@ -5884,18 +5327,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:
@@ -5907,16 +5347,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; @@ -5924,21 +5364,19 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { private java.lang.Object displayName_ = ""; /** - * - * *
      * User provided name for the instance, which is only used for display
      * purposes. Cannot be more than 80 characters.
      * 
* * 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; @@ -5947,22 +5385,21 @@ public java.lang.String getDisplayName() { } } /** - * - * *
      * User provided name for the instance, which is only used for display
      * purposes. Cannot be more than 80 characters.
      * 
* * 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 { @@ -5970,84 +5407,78 @@ public com.google.protobuf.ByteString getDisplayNameBytes() { } } /** - * - * *
      * User provided name for the instance, which is only used for display
      * purposes. Cannot be more than 80 characters.
      * 
* * 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; } /** - * - * *
      * User provided name for the instance, which is only used for display
      * purposes. Cannot be more than 80 characters.
      * 
* * string display_name = 2; - * * @return This builder for chaining. */ public Builder clearDisplayName() { - + displayName_ = getDefaultInstance().getDisplayName(); onChanged(); return this; } /** - * - * *
      * User provided name for the instance, which is only used for display
      * purposes. Cannot be more than 80 characters.
      * 
* * 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(); @@ -6059,8 +5490,6 @@ public int getLabelsCount() { return internalGetLabels().getMap().size(); } /** - * - * *
      * Resource labels to represent user-provided metadata.
      * Refer to cloud documentation on labels for more details.
@@ -6069,22 +5498,22 @@ public int getLabelsCount() {
      *
      * 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.
      * Refer to cloud documentation on labels for more details.
@@ -6094,12 +5523,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.
      * Refer to cloud documentation on labels for more details.
@@ -6109,17 +5537,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.
      * Refer to cloud documentation on labels for more details.
@@ -6129,11 +5556,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();
       }
@@ -6141,12 +5569,11 @@ 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.
      * Refer to cloud documentation on labels for more details.
@@ -6155,21 +5582,23 @@ public Builder clearLabels() {
      *
      * 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.
      * Refer to cloud documentation on labels for more details.
@@ -6178,20 +5607,19 @@ public java.util.Map getMutableLabels() {
      *
      * 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.
      * Refer to cloud documentation on labels for more details.
@@ -6200,15 +5628,16 @@ public Builder putLabels(java.lang.String key, java.lang.String value) {
      *
      * 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 authorizedNetwork_ = "";
     /**
-     *
-     *
      * 
      * The full name of the Google Compute Engine
      * [network](https://cloud.google.com/vpc/docs/vpc) to which the
@@ -6217,13 +5646,13 @@ public Builder putAllLabels(java.util.Map va
      * 
* * string authorized_network = 4; - * * @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; @@ -6232,8 +5661,6 @@ public java.lang.String getAuthorizedNetwork() { } } /** - * - * *
      * The full name of the Google Compute Engine
      * [network](https://cloud.google.com/vpc/docs/vpc) to which the
@@ -6242,14 +5669,15 @@ public java.lang.String getAuthorizedNetwork() {
      * 
* * string authorized_network = 4; - * * @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 { @@ -6257,8 +5685,6 @@ public com.google.protobuf.ByteString getAuthorizedNetworkBytes() { } } /** - * - * *
      * The full name of the Google Compute Engine
      * [network](https://cloud.google.com/vpc/docs/vpc) to which the
@@ -6267,22 +5693,20 @@ public com.google.protobuf.ByteString getAuthorizedNetworkBytes() {
      * 
* * string authorized_network = 4; - * * @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; } /** - * - * *
      * The full name of the Google Compute Engine
      * [network](https://cloud.google.com/vpc/docs/vpc) to which the
@@ -6291,18 +5715,15 @@ public Builder setAuthorizedNetwork(java.lang.String value) {
      * 
* * string authorized_network = 4; - * * @return This builder for chaining. */ public Builder clearAuthorizedNetwork() { - + authorizedNetwork_ = getDefaultInstance().getAuthorizedNetwork(); onChanged(); return this; } /** - * - * *
      * The full name of the Google Compute Engine
      * [network](https://cloud.google.com/vpc/docs/vpc) to which the
@@ -6311,33 +5732,29 @@ public Builder clearAuthorizedNetwork() {
      * 
* * string authorized_network = 4; - * * @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; } - private com.google.protobuf.LazyStringList zones_ = - com.google.protobuf.LazyStringArrayList.EMPTY; - + private com.google.protobuf.LazyStringList zones_ = com.google.protobuf.LazyStringArrayList.EMPTY; private void ensureZonesIsMutable() { if (!((bitField0_ & 0x00000002) != 0)) { zones_ = new com.google.protobuf.LazyStringArrayList(zones_); bitField0_ |= 0x00000002; - } + } } /** - * - * *
      * Zones in which Memcached nodes should be provisioned.
      * Memcached nodes will be equally distributed across these zones. If not
@@ -6346,15 +5763,13 @@ private void ensureZonesIsMutable() {
      * 
* * repeated string zones = 5; - * * @return A list containing the zones. */ - public com.google.protobuf.ProtocolStringList getZonesList() { + public com.google.protobuf.ProtocolStringList + getZonesList() { return zones_.getUnmodifiableView(); } /** - * - * *
      * Zones in which Memcached nodes should be provisioned.
      * Memcached nodes will be equally distributed across these zones. If not
@@ -6363,15 +5778,12 @@ public com.google.protobuf.ProtocolStringList getZonesList() {
      * 
* * repeated string zones = 5; - * * @return The count of zones. */ public int getZonesCount() { return zones_.size(); } /** - * - * *
      * Zones in which Memcached nodes should be provisioned.
      * Memcached nodes will be equally distributed across these zones. If not
@@ -6380,7 +5792,6 @@ public int getZonesCount() {
      * 
* * repeated string zones = 5; - * * @param index The index of the element to return. * @return The zones at the given index. */ @@ -6388,8 +5799,6 @@ public java.lang.String getZones(int index) { return zones_.get(index); } /** - * - * *
      * Zones in which Memcached nodes should be provisioned.
      * Memcached nodes will be equally distributed across these zones. If not
@@ -6398,16 +5807,14 @@ public java.lang.String getZones(int index) {
      * 
* * repeated string zones = 5; - * * @param index The index of the value to return. * @return The bytes of the zones at the given index. */ - public com.google.protobuf.ByteString getZonesBytes(int index) { + public com.google.protobuf.ByteString + getZonesBytes(int index) { return zones_.getByteString(index); } /** - * - * *
      * Zones in which Memcached nodes should be provisioned.
      * Memcached nodes will be equally distributed across these zones. If not
@@ -6416,23 +5823,21 @@ public com.google.protobuf.ByteString getZonesBytes(int index) {
      * 
* * repeated string zones = 5; - * * @param index The index to set the value at. * @param value The zones to set. * @return This builder for chaining. */ - public Builder setZones(int index, java.lang.String value) { + public Builder setZones( + int index, java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureZonesIsMutable(); + throw new NullPointerException(); + } + ensureZonesIsMutable(); zones_.set(index, value); onChanged(); return this; } /** - * - * *
      * Zones in which Memcached nodes should be provisioned.
      * Memcached nodes will be equally distributed across these zones. If not
@@ -6441,22 +5846,20 @@ public Builder setZones(int index, java.lang.String value) {
      * 
* * repeated string zones = 5; - * * @param value The zones to add. * @return This builder for chaining. */ - public Builder addZones(java.lang.String value) { + public Builder addZones( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureZonesIsMutable(); + throw new NullPointerException(); + } + ensureZonesIsMutable(); zones_.add(value); onChanged(); return this; } /** - * - * *
      * Zones in which Memcached nodes should be provisioned.
      * Memcached nodes will be equally distributed across these zones. If not
@@ -6465,19 +5868,18 @@ public Builder addZones(java.lang.String value) {
      * 
* * repeated string zones = 5; - * * @param values The zones to add. * @return This builder for chaining. */ - public Builder addAllZones(java.lang.Iterable values) { + public Builder addAllZones( + java.lang.Iterable values) { ensureZonesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, zones_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, zones_); onChanged(); return this; } /** - * - * *
      * Zones in which Memcached nodes should be provisioned.
      * Memcached nodes will be equally distributed across these zones. If not
@@ -6486,7 +5888,6 @@ public Builder addAllZones(java.lang.Iterable values) {
      * 
* * repeated string zones = 5; - * * @return This builder for chaining. */ public Builder clearZones() { @@ -6496,8 +5897,6 @@ public Builder clearZones() { return this; } /** - * - * *
      * Zones in which Memcached nodes should be provisioned.
      * Memcached nodes will be equally distributed across these zones. If not
@@ -6506,31 +5905,28 @@ public Builder clearZones() {
      * 
* * repeated string zones = 5; - * * @param value The bytes of the zones to add. * @return This builder for chaining. */ - public Builder addZonesBytes(com.google.protobuf.ByteString value) { + public Builder addZonesBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); ensureZonesIsMutable(); zones_.add(value); onChanged(); return this; } - private int nodeCount_; + private int nodeCount_ ; /** - * - * *
      * Required. Number of nodes in the Memcached instance.
      * 
* * int32 node_count = 6 [(.google.api.field_behavior) = REQUIRED]; - * * @return The nodeCount. */ @java.lang.Override @@ -6538,36 +5934,30 @@ public int getNodeCount() { return nodeCount_; } /** - * - * *
      * Required. Number of nodes in the Memcached instance.
      * 
* * int32 node_count = 6 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The nodeCount to set. * @return This builder for chaining. */ public Builder setNodeCount(int value) { - + nodeCount_ = value; onChanged(); return this; } /** - * - * *
      * Required. Number of nodes in the Memcached instance.
      * 
* * int32 node_count = 6 [(.google.api.field_behavior) = REQUIRED]; - * * @return This builder for chaining. */ public Builder clearNodeCount() { - + nodeCount_ = 0; onChanged(); return this; @@ -6575,58 +5965,39 @@ public Builder clearNodeCount() { private com.google.cloud.memcache.v1beta2.Instance.NodeConfig nodeConfig_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.memcache.v1beta2.Instance.NodeConfig, - com.google.cloud.memcache.v1beta2.Instance.NodeConfig.Builder, - com.google.cloud.memcache.v1beta2.Instance.NodeConfigOrBuilder> - nodeConfigBuilder_; + com.google.cloud.memcache.v1beta2.Instance.NodeConfig, com.google.cloud.memcache.v1beta2.Instance.NodeConfig.Builder, com.google.cloud.memcache.v1beta2.Instance.NodeConfigOrBuilder> nodeConfigBuilder_; /** - * - * *
      * Required. Configuration for Memcached nodes.
      * 
* - * - * .google.cloud.memcache.v1beta2.Instance.NodeConfig node_config = 7 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.memcache.v1beta2.Instance.NodeConfig node_config = 7 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the nodeConfig field is set. */ public boolean hasNodeConfig() { return nodeConfigBuilder_ != null || nodeConfig_ != null; } /** - * - * *
      * Required. Configuration for Memcached nodes.
      * 
* - * - * .google.cloud.memcache.v1beta2.Instance.NodeConfig node_config = 7 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.memcache.v1beta2.Instance.NodeConfig node_config = 7 [(.google.api.field_behavior) = REQUIRED]; * @return The nodeConfig. */ public com.google.cloud.memcache.v1beta2.Instance.NodeConfig getNodeConfig() { if (nodeConfigBuilder_ == null) { - return nodeConfig_ == null - ? com.google.cloud.memcache.v1beta2.Instance.NodeConfig.getDefaultInstance() - : nodeConfig_; + return nodeConfig_ == null ? com.google.cloud.memcache.v1beta2.Instance.NodeConfig.getDefaultInstance() : nodeConfig_; } else { return nodeConfigBuilder_.getMessage(); } } /** - * - * *
      * Required. Configuration for Memcached nodes.
      * 
* - * - * .google.cloud.memcache.v1beta2.Instance.NodeConfig node_config = 7 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.memcache.v1beta2.Instance.NodeConfig node_config = 7 [(.google.api.field_behavior) = REQUIRED]; */ public Builder setNodeConfig(com.google.cloud.memcache.v1beta2.Instance.NodeConfig value) { if (nodeConfigBuilder_ == null) { @@ -6642,15 +6013,11 @@ public Builder setNodeConfig(com.google.cloud.memcache.v1beta2.Instance.NodeConf return this; } /** - * - * *
      * Required. Configuration for Memcached nodes.
      * 
* - * - * .google.cloud.memcache.v1beta2.Instance.NodeConfig node_config = 7 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.memcache.v1beta2.Instance.NodeConfig node_config = 7 [(.google.api.field_behavior) = REQUIRED]; */ public Builder setNodeConfig( com.google.cloud.memcache.v1beta2.Instance.NodeConfig.Builder builderForValue) { @@ -6664,23 +6031,17 @@ public Builder setNodeConfig( return this; } /** - * - * *
      * Required. Configuration for Memcached nodes.
      * 
* - * - * .google.cloud.memcache.v1beta2.Instance.NodeConfig node_config = 7 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.memcache.v1beta2.Instance.NodeConfig node_config = 7 [(.google.api.field_behavior) = REQUIRED]; */ public Builder mergeNodeConfig(com.google.cloud.memcache.v1beta2.Instance.NodeConfig value) { if (nodeConfigBuilder_ == null) { if (nodeConfig_ != null) { nodeConfig_ = - com.google.cloud.memcache.v1beta2.Instance.NodeConfig.newBuilder(nodeConfig_) - .mergeFrom(value) - .buildPartial(); + com.google.cloud.memcache.v1beta2.Instance.NodeConfig.newBuilder(nodeConfig_).mergeFrom(value).buildPartial(); } else { nodeConfig_ = value; } @@ -6692,15 +6053,11 @@ public Builder mergeNodeConfig(com.google.cloud.memcache.v1beta2.Instance.NodeCo return this; } /** - * - * *
      * Required. Configuration for Memcached nodes.
      * 
* - * - * .google.cloud.memcache.v1beta2.Instance.NodeConfig node_config = 7 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.memcache.v1beta2.Instance.NodeConfig node_config = 7 [(.google.api.field_behavior) = REQUIRED]; */ public Builder clearNodeConfig() { if (nodeConfigBuilder_ == null) { @@ -6714,64 +6071,48 @@ public Builder clearNodeConfig() { return this; } /** - * - * *
      * Required. Configuration for Memcached nodes.
      * 
* - * - * .google.cloud.memcache.v1beta2.Instance.NodeConfig node_config = 7 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.memcache.v1beta2.Instance.NodeConfig node_config = 7 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.cloud.memcache.v1beta2.Instance.NodeConfig.Builder getNodeConfigBuilder() { - + onChanged(); return getNodeConfigFieldBuilder().getBuilder(); } /** - * - * *
      * Required. Configuration for Memcached nodes.
      * 
* - * - * .google.cloud.memcache.v1beta2.Instance.NodeConfig node_config = 7 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.memcache.v1beta2.Instance.NodeConfig node_config = 7 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.cloud.memcache.v1beta2.Instance.NodeConfigOrBuilder getNodeConfigOrBuilder() { if (nodeConfigBuilder_ != null) { return nodeConfigBuilder_.getMessageOrBuilder(); } else { - return nodeConfig_ == null - ? com.google.cloud.memcache.v1beta2.Instance.NodeConfig.getDefaultInstance() - : nodeConfig_; + return nodeConfig_ == null ? + com.google.cloud.memcache.v1beta2.Instance.NodeConfig.getDefaultInstance() : nodeConfig_; } } /** - * - * *
      * Required. Configuration for Memcached nodes.
      * 
* - * - * .google.cloud.memcache.v1beta2.Instance.NodeConfig node_config = 7 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.memcache.v1beta2.Instance.NodeConfig node_config = 7 [(.google.api.field_behavior) = REQUIRED]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.memcache.v1beta2.Instance.NodeConfig, - com.google.cloud.memcache.v1beta2.Instance.NodeConfig.Builder, - com.google.cloud.memcache.v1beta2.Instance.NodeConfigOrBuilder> + com.google.cloud.memcache.v1beta2.Instance.NodeConfig, com.google.cloud.memcache.v1beta2.Instance.NodeConfig.Builder, com.google.cloud.memcache.v1beta2.Instance.NodeConfigOrBuilder> getNodeConfigFieldBuilder() { if (nodeConfigBuilder_ == null) { - nodeConfigBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.memcache.v1beta2.Instance.NodeConfig, - com.google.cloud.memcache.v1beta2.Instance.NodeConfig.Builder, - com.google.cloud.memcache.v1beta2.Instance.NodeConfigOrBuilder>( - getNodeConfig(), getParentForChildren(), isClean()); + nodeConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.memcache.v1beta2.Instance.NodeConfig, com.google.cloud.memcache.v1beta2.Instance.NodeConfig.Builder, com.google.cloud.memcache.v1beta2.Instance.NodeConfigOrBuilder>( + getNodeConfig(), + getParentForChildren(), + isClean()); nodeConfig_ = null; } return nodeConfigBuilder_; @@ -6779,8 +6120,6 @@ public com.google.cloud.memcache.v1beta2.Instance.NodeConfigOrBuilder getNodeCon private int memcacheVersion_ = 0; /** - * - * *
      * The major version of Memcached software.
      * If not provided, latest supported version will be used. Currently the
@@ -6790,16 +6129,12 @@ public com.google.cloud.memcache.v1beta2.Instance.NodeConfigOrBuilder getNodeCon
      * 
* * .google.cloud.memcache.v1beta2.MemcacheVersion memcache_version = 9; - * * @return The enum numeric value on the wire for memcacheVersion. */ - @java.lang.Override - public int getMemcacheVersionValue() { + @java.lang.Override public int getMemcacheVersionValue() { return memcacheVersion_; } /** - * - * *
      * The major version of Memcached software.
      * If not provided, latest supported version will be used. Currently the
@@ -6809,19 +6144,16 @@ public int getMemcacheVersionValue() {
      * 
* * .google.cloud.memcache.v1beta2.MemcacheVersion memcache_version = 9; - * * @param value The enum numeric value on the wire for memcacheVersion to set. * @return This builder for chaining. */ public Builder setMemcacheVersionValue(int value) { - + memcacheVersion_ = value; onChanged(); return this; } /** - * - * *
      * The major version of Memcached software.
      * If not provided, latest supported version will be used. Currently the
@@ -6831,21 +6163,15 @@ public Builder setMemcacheVersionValue(int value) {
      * 
* * .google.cloud.memcache.v1beta2.MemcacheVersion memcache_version = 9; - * * @return The memcacheVersion. */ @java.lang.Override public com.google.cloud.memcache.v1beta2.MemcacheVersion getMemcacheVersion() { @SuppressWarnings("deprecation") - com.google.cloud.memcache.v1beta2.MemcacheVersion result = - com.google.cloud.memcache.v1beta2.MemcacheVersion.valueOf(memcacheVersion_); - return result == null - ? com.google.cloud.memcache.v1beta2.MemcacheVersion.UNRECOGNIZED - : result; + com.google.cloud.memcache.v1beta2.MemcacheVersion result = com.google.cloud.memcache.v1beta2.MemcacheVersion.valueOf(memcacheVersion_); + return result == null ? com.google.cloud.memcache.v1beta2.MemcacheVersion.UNRECOGNIZED : result; } /** - * - * *
      * The major version of Memcached software.
      * If not provided, latest supported version will be used. Currently the
@@ -6855,7 +6181,6 @@ public com.google.cloud.memcache.v1beta2.MemcacheVersion getMemcacheVersion() {
      * 
* * .google.cloud.memcache.v1beta2.MemcacheVersion memcache_version = 9; - * * @param value The memcacheVersion to set. * @return This builder for chaining. */ @@ -6863,14 +6188,12 @@ public Builder setMemcacheVersion(com.google.cloud.memcache.v1beta2.MemcacheVers if (value == null) { throw new NullPointerException(); } - + memcacheVersion_ = value.getNumber(); onChanged(); return this; } /** - * - * *
      * The major version of Memcached software.
      * If not provided, latest supported version will be used. Currently the
@@ -6880,11 +6203,10 @@ public Builder setMemcacheVersion(com.google.cloud.memcache.v1beta2.MemcacheVers
      * 
* * .google.cloud.memcache.v1beta2.MemcacheVersion memcache_version = 9; - * * @return This builder for chaining. */ public Builder clearMemcacheVersion() { - + memcacheVersion_ = 0; onChanged(); return this; @@ -6892,49 +6214,36 @@ public Builder clearMemcacheVersion() { private com.google.cloud.memcache.v1beta2.MemcacheParameters parameters_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.memcache.v1beta2.MemcacheParameters, - com.google.cloud.memcache.v1beta2.MemcacheParameters.Builder, - com.google.cloud.memcache.v1beta2.MemcacheParametersOrBuilder> - parametersBuilder_; + com.google.cloud.memcache.v1beta2.MemcacheParameters, com.google.cloud.memcache.v1beta2.MemcacheParameters.Builder, com.google.cloud.memcache.v1beta2.MemcacheParametersOrBuilder> parametersBuilder_; /** - * - * *
      * Optional: User defined parameters to apply to the memcached process
      * on each node.
      * 
* * .google.cloud.memcache.v1beta2.MemcacheParameters parameters = 11; - * * @return Whether the parameters field is set. */ public boolean hasParameters() { return parametersBuilder_ != null || parameters_ != null; } /** - * - * *
      * Optional: User defined parameters to apply to the memcached process
      * on each node.
      * 
* * .google.cloud.memcache.v1beta2.MemcacheParameters parameters = 11; - * * @return The parameters. */ public com.google.cloud.memcache.v1beta2.MemcacheParameters getParameters() { if (parametersBuilder_ == null) { - return parameters_ == null - ? com.google.cloud.memcache.v1beta2.MemcacheParameters.getDefaultInstance() - : parameters_; + return parameters_ == null ? com.google.cloud.memcache.v1beta2.MemcacheParameters.getDefaultInstance() : parameters_; } else { return parametersBuilder_.getMessage(); } } /** - * - * *
      * Optional: User defined parameters to apply to the memcached process
      * on each node.
@@ -6956,8 +6265,6 @@ public Builder setParameters(com.google.cloud.memcache.v1beta2.MemcacheParameter
       return this;
     }
     /**
-     *
-     *
      * 
      * Optional: User defined parameters to apply to the memcached process
      * on each node.
@@ -6977,8 +6284,6 @@ public Builder setParameters(
       return this;
     }
     /**
-     *
-     *
      * 
      * Optional: User defined parameters to apply to the memcached process
      * on each node.
@@ -6990,9 +6295,7 @@ public Builder mergeParameters(com.google.cloud.memcache.v1beta2.MemcacheParamet
       if (parametersBuilder_ == null) {
         if (parameters_ != null) {
           parameters_ =
-              com.google.cloud.memcache.v1beta2.MemcacheParameters.newBuilder(parameters_)
-                  .mergeFrom(value)
-                  .buildPartial();
+            com.google.cloud.memcache.v1beta2.MemcacheParameters.newBuilder(parameters_).mergeFrom(value).buildPartial();
         } else {
           parameters_ = value;
         }
@@ -7004,8 +6307,6 @@ public Builder mergeParameters(com.google.cloud.memcache.v1beta2.MemcacheParamet
       return this;
     }
     /**
-     *
-     *
      * 
      * Optional: User defined parameters to apply to the memcached process
      * on each node.
@@ -7025,8 +6326,6 @@ public Builder clearParameters() {
       return this;
     }
     /**
-     *
-     *
      * 
      * Optional: User defined parameters to apply to the memcached process
      * on each node.
@@ -7035,13 +6334,11 @@ public Builder clearParameters() {
      * .google.cloud.memcache.v1beta2.MemcacheParameters parameters = 11;
      */
     public com.google.cloud.memcache.v1beta2.MemcacheParameters.Builder getParametersBuilder() {
-
+      
       onChanged();
       return getParametersFieldBuilder().getBuilder();
     }
     /**
-     *
-     *
      * 
      * Optional: User defined parameters to apply to the memcached process
      * on each node.
@@ -7053,14 +6350,11 @@ public com.google.cloud.memcache.v1beta2.MemcacheParametersOrBuilder getParamete
       if (parametersBuilder_ != null) {
         return parametersBuilder_.getMessageOrBuilder();
       } else {
-        return parameters_ == null
-            ? com.google.cloud.memcache.v1beta2.MemcacheParameters.getDefaultInstance()
-            : parameters_;
+        return parameters_ == null ?
+            com.google.cloud.memcache.v1beta2.MemcacheParameters.getDefaultInstance() : parameters_;
       }
     }
     /**
-     *
-     *
      * 
      * Optional: User defined parameters to apply to the memcached process
      * on each node.
@@ -7069,51 +6363,38 @@ public com.google.cloud.memcache.v1beta2.MemcacheParametersOrBuilder getParamete
      * .google.cloud.memcache.v1beta2.MemcacheParameters parameters = 11;
      */
     private com.google.protobuf.SingleFieldBuilderV3<
-            com.google.cloud.memcache.v1beta2.MemcacheParameters,
-            com.google.cloud.memcache.v1beta2.MemcacheParameters.Builder,
-            com.google.cloud.memcache.v1beta2.MemcacheParametersOrBuilder>
+        com.google.cloud.memcache.v1beta2.MemcacheParameters, com.google.cloud.memcache.v1beta2.MemcacheParameters.Builder, com.google.cloud.memcache.v1beta2.MemcacheParametersOrBuilder> 
         getParametersFieldBuilder() {
       if (parametersBuilder_ == null) {
-        parametersBuilder_ =
-            new com.google.protobuf.SingleFieldBuilderV3<
-                com.google.cloud.memcache.v1beta2.MemcacheParameters,
-                com.google.cloud.memcache.v1beta2.MemcacheParameters.Builder,
-                com.google.cloud.memcache.v1beta2.MemcacheParametersOrBuilder>(
-                getParameters(), getParentForChildren(), isClean());
+        parametersBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
+            com.google.cloud.memcache.v1beta2.MemcacheParameters, com.google.cloud.memcache.v1beta2.MemcacheParameters.Builder, com.google.cloud.memcache.v1beta2.MemcacheParametersOrBuilder>(
+                getParameters(),
+                getParentForChildren(),
+                isClean());
         parameters_ = null;
       }
       return parametersBuilder_;
     }
 
     private java.util.List memcacheNodes_ =
-        java.util.Collections.emptyList();
-
+      java.util.Collections.emptyList();
     private void ensureMemcacheNodesIsMutable() {
       if (!((bitField0_ & 0x00000004) != 0)) {
-        memcacheNodes_ =
-            new java.util.ArrayList(
-                memcacheNodes_);
+        memcacheNodes_ = new java.util.ArrayList(memcacheNodes_);
         bitField0_ |= 0x00000004;
-      }
+       }
     }
 
     private com.google.protobuf.RepeatedFieldBuilderV3<
-            com.google.cloud.memcache.v1beta2.Instance.Node,
-            com.google.cloud.memcache.v1beta2.Instance.Node.Builder,
-            com.google.cloud.memcache.v1beta2.Instance.NodeOrBuilder>
-        memcacheNodesBuilder_;
+        com.google.cloud.memcache.v1beta2.Instance.Node, com.google.cloud.memcache.v1beta2.Instance.Node.Builder, com.google.cloud.memcache.v1beta2.Instance.NodeOrBuilder> memcacheNodesBuilder_;
 
     /**
-     *
-     *
      * 
      * Output only. List of Memcached nodes.
      * Refer to [Node][google.cloud.memcache.v1beta2.Instance.Node] message for more details.
      * 
* - * - * repeated .google.cloud.memcache.v1beta2.Instance.Node memcache_nodes = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.memcache.v1beta2.Instance.Node memcache_nodes = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public java.util.List getMemcacheNodesList() { if (memcacheNodesBuilder_ == null) { @@ -7123,16 +6404,12 @@ public java.util.List getMemcac } } /** - * - * *
      * Output only. List of Memcached nodes.
      * Refer to [Node][google.cloud.memcache.v1beta2.Instance.Node] message for more details.
      * 
* - * - * repeated .google.cloud.memcache.v1beta2.Instance.Node memcache_nodes = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.memcache.v1beta2.Instance.Node memcache_nodes = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public int getMemcacheNodesCount() { if (memcacheNodesBuilder_ == null) { @@ -7142,16 +6419,12 @@ public int getMemcacheNodesCount() { } } /** - * - * *
      * Output only. List of Memcached nodes.
      * Refer to [Node][google.cloud.memcache.v1beta2.Instance.Node] message for more details.
      * 
* - * - * repeated .google.cloud.memcache.v1beta2.Instance.Node memcache_nodes = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.memcache.v1beta2.Instance.Node memcache_nodes = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.cloud.memcache.v1beta2.Instance.Node getMemcacheNodes(int index) { if (memcacheNodesBuilder_ == null) { @@ -7161,16 +6434,12 @@ public com.google.cloud.memcache.v1beta2.Instance.Node getMemcacheNodes(int inde } } /** - * - * *
      * Output only. List of Memcached nodes.
      * Refer to [Node][google.cloud.memcache.v1beta2.Instance.Node] message for more details.
      * 
* - * - * repeated .google.cloud.memcache.v1beta2.Instance.Node memcache_nodes = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.memcache.v1beta2.Instance.Node memcache_nodes = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder setMemcacheNodes( int index, com.google.cloud.memcache.v1beta2.Instance.Node value) { @@ -7187,16 +6456,12 @@ public Builder setMemcacheNodes( return this; } /** - * - * *
      * Output only. List of Memcached nodes.
      * Refer to [Node][google.cloud.memcache.v1beta2.Instance.Node] message for more details.
      * 
* - * - * repeated .google.cloud.memcache.v1beta2.Instance.Node memcache_nodes = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.memcache.v1beta2.Instance.Node memcache_nodes = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder setMemcacheNodes( int index, com.google.cloud.memcache.v1beta2.Instance.Node.Builder builderForValue) { @@ -7210,16 +6475,12 @@ public Builder setMemcacheNodes( return this; } /** - * - * *
      * Output only. List of Memcached nodes.
      * Refer to [Node][google.cloud.memcache.v1beta2.Instance.Node] message for more details.
      * 
* - * - * repeated .google.cloud.memcache.v1beta2.Instance.Node memcache_nodes = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.memcache.v1beta2.Instance.Node memcache_nodes = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder addMemcacheNodes(com.google.cloud.memcache.v1beta2.Instance.Node value) { if (memcacheNodesBuilder_ == null) { @@ -7235,16 +6496,12 @@ public Builder addMemcacheNodes(com.google.cloud.memcache.v1beta2.Instance.Node return this; } /** - * - * *
      * Output only. List of Memcached nodes.
      * Refer to [Node][google.cloud.memcache.v1beta2.Instance.Node] message for more details.
      * 
* - * - * repeated .google.cloud.memcache.v1beta2.Instance.Node memcache_nodes = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.memcache.v1beta2.Instance.Node memcache_nodes = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder addMemcacheNodes( int index, com.google.cloud.memcache.v1beta2.Instance.Node value) { @@ -7261,16 +6518,12 @@ public Builder addMemcacheNodes( return this; } /** - * - * *
      * Output only. List of Memcached nodes.
      * Refer to [Node][google.cloud.memcache.v1beta2.Instance.Node] message for more details.
      * 
* - * - * repeated .google.cloud.memcache.v1beta2.Instance.Node memcache_nodes = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.memcache.v1beta2.Instance.Node memcache_nodes = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder addMemcacheNodes( com.google.cloud.memcache.v1beta2.Instance.Node.Builder builderForValue) { @@ -7284,16 +6537,12 @@ public Builder addMemcacheNodes( return this; } /** - * - * *
      * Output only. List of Memcached nodes.
      * Refer to [Node][google.cloud.memcache.v1beta2.Instance.Node] message for more details.
      * 
* - * - * repeated .google.cloud.memcache.v1beta2.Instance.Node memcache_nodes = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.memcache.v1beta2.Instance.Node memcache_nodes = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder addMemcacheNodes( int index, com.google.cloud.memcache.v1beta2.Instance.Node.Builder builderForValue) { @@ -7307,22 +6556,19 @@ public Builder addMemcacheNodes( return this; } /** - * - * *
      * Output only. List of Memcached nodes.
      * Refer to [Node][google.cloud.memcache.v1beta2.Instance.Node] message for more details.
      * 
* - * - * repeated .google.cloud.memcache.v1beta2.Instance.Node memcache_nodes = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.memcache.v1beta2.Instance.Node memcache_nodes = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder addAllMemcacheNodes( java.lang.Iterable values) { if (memcacheNodesBuilder_ == null) { ensureMemcacheNodesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, memcacheNodes_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, memcacheNodes_); onChanged(); } else { memcacheNodesBuilder_.addAllMessages(values); @@ -7330,16 +6576,12 @@ public Builder addAllMemcacheNodes( return this; } /** - * - * *
      * Output only. List of Memcached nodes.
      * Refer to [Node][google.cloud.memcache.v1beta2.Instance.Node] message for more details.
      * 
* - * - * repeated .google.cloud.memcache.v1beta2.Instance.Node memcache_nodes = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.memcache.v1beta2.Instance.Node memcache_nodes = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder clearMemcacheNodes() { if (memcacheNodesBuilder_ == null) { @@ -7352,16 +6594,12 @@ public Builder clearMemcacheNodes() { return this; } /** - * - * *
      * Output only. List of Memcached nodes.
      * Refer to [Node][google.cloud.memcache.v1beta2.Instance.Node] message for more details.
      * 
* - * - * repeated .google.cloud.memcache.v1beta2.Instance.Node memcache_nodes = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.memcache.v1beta2.Instance.Node memcache_nodes = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder removeMemcacheNodes(int index) { if (memcacheNodesBuilder_ == null) { @@ -7374,55 +6612,42 @@ public Builder removeMemcacheNodes(int index) { return this; } /** - * - * *
      * Output only. List of Memcached nodes.
      * Refer to [Node][google.cloud.memcache.v1beta2.Instance.Node] message for more details.
      * 
* - * - * repeated .google.cloud.memcache.v1beta2.Instance.Node memcache_nodes = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.memcache.v1beta2.Instance.Node memcache_nodes = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.cloud.memcache.v1beta2.Instance.Node.Builder getMemcacheNodesBuilder( int index) { return getMemcacheNodesFieldBuilder().getBuilder(index); } /** - * - * *
      * Output only. List of Memcached nodes.
      * Refer to [Node][google.cloud.memcache.v1beta2.Instance.Node] message for more details.
      * 
* - * - * repeated .google.cloud.memcache.v1beta2.Instance.Node memcache_nodes = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.memcache.v1beta2.Instance.Node memcache_nodes = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.cloud.memcache.v1beta2.Instance.NodeOrBuilder getMemcacheNodesOrBuilder( int index) { if (memcacheNodesBuilder_ == null) { - return memcacheNodes_.get(index); - } else { + return memcacheNodes_.get(index); } else { return memcacheNodesBuilder_.getMessageOrBuilder(index); } } /** - * - * *
      * Output only. List of Memcached nodes.
      * Refer to [Node][google.cloud.memcache.v1beta2.Instance.Node] message for more details.
      * 
* - * - * repeated .google.cloud.memcache.v1beta2.Instance.Node memcache_nodes = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.memcache.v1beta2.Instance.Node memcache_nodes = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - public java.util.List - getMemcacheNodesOrBuilderList() { + public java.util.List + getMemcacheNodesOrBuilderList() { if (memcacheNodesBuilder_ != null) { return memcacheNodesBuilder_.getMessageOrBuilderList(); } else { @@ -7430,66 +6655,48 @@ public com.google.cloud.memcache.v1beta2.Instance.NodeOrBuilder getMemcacheNodes } } /** - * - * *
      * Output only. List of Memcached nodes.
      * Refer to [Node][google.cloud.memcache.v1beta2.Instance.Node] message for more details.
      * 
* - * - * repeated .google.cloud.memcache.v1beta2.Instance.Node memcache_nodes = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.memcache.v1beta2.Instance.Node memcache_nodes = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.cloud.memcache.v1beta2.Instance.Node.Builder addMemcacheNodesBuilder() { - return getMemcacheNodesFieldBuilder() - .addBuilder(com.google.cloud.memcache.v1beta2.Instance.Node.getDefaultInstance()); + return getMemcacheNodesFieldBuilder().addBuilder( + com.google.cloud.memcache.v1beta2.Instance.Node.getDefaultInstance()); } /** - * - * *
      * Output only. List of Memcached nodes.
      * Refer to [Node][google.cloud.memcache.v1beta2.Instance.Node] message for more details.
      * 
* - * - * repeated .google.cloud.memcache.v1beta2.Instance.Node memcache_nodes = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.memcache.v1beta2.Instance.Node memcache_nodes = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.cloud.memcache.v1beta2.Instance.Node.Builder addMemcacheNodesBuilder( int index) { - return getMemcacheNodesFieldBuilder() - .addBuilder(index, com.google.cloud.memcache.v1beta2.Instance.Node.getDefaultInstance()); + return getMemcacheNodesFieldBuilder().addBuilder( + index, com.google.cloud.memcache.v1beta2.Instance.Node.getDefaultInstance()); } /** - * - * *
      * Output only. List of Memcached nodes.
      * Refer to [Node][google.cloud.memcache.v1beta2.Instance.Node] message for more details.
      * 
* - * - * repeated .google.cloud.memcache.v1beta2.Instance.Node memcache_nodes = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.memcache.v1beta2.Instance.Node memcache_nodes = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - public java.util.List - getMemcacheNodesBuilderList() { + public java.util.List + getMemcacheNodesBuilderList() { return getMemcacheNodesFieldBuilder().getBuilderList(); } - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.memcache.v1beta2.Instance.Node, - com.google.cloud.memcache.v1beta2.Instance.Node.Builder, - com.google.cloud.memcache.v1beta2.Instance.NodeOrBuilder> + com.google.cloud.memcache.v1beta2.Instance.Node, com.google.cloud.memcache.v1beta2.Instance.Node.Builder, com.google.cloud.memcache.v1beta2.Instance.NodeOrBuilder> getMemcacheNodesFieldBuilder() { if (memcacheNodesBuilder_ == null) { - memcacheNodesBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.memcache.v1beta2.Instance.Node, - com.google.cloud.memcache.v1beta2.Instance.Node.Builder, - com.google.cloud.memcache.v1beta2.Instance.NodeOrBuilder>( + memcacheNodesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.memcache.v1beta2.Instance.Node, com.google.cloud.memcache.v1beta2.Instance.Node.Builder, com.google.cloud.memcache.v1beta2.Instance.NodeOrBuilder>( memcacheNodes_, ((bitField0_ & 0x00000004) != 0), getParentForChildren(), @@ -7501,58 +6708,39 @@ public com.google.cloud.memcache.v1beta2.Instance.Node.Builder addMemcacheNodesB 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) { @@ -7568,17 +6756,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(); @@ -7589,21 +6774,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; } @@ -7615,15 +6796,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) { @@ -7637,64 +6814,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_; @@ -7702,58 +6863,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 the instance was updated.
      * 
* - * - * .google.protobuf.Timestamp update_time = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp update_time = 14 [(.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 the instance was updated.
      * 
* - * - * .google.protobuf.Timestamp update_time = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp update_time = 14 [(.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 the instance was updated.
      * 
* - * - * .google.protobuf.Timestamp update_time = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp update_time = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder setUpdateTime(com.google.protobuf.Timestamp value) { if (updateTimeBuilder_ == null) { @@ -7769,17 +6911,14 @@ public Builder setUpdateTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * Output only. The time the instance was updated.
      * 
* - * - * .google.protobuf.Timestamp update_time = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp update_time = 14 [(.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(); @@ -7790,21 +6929,17 @@ public Builder setUpdateTime(com.google.protobuf.Timestamp.Builder builderForVal return this; } /** - * - * *
      * Output only. The time the instance was updated.
      * 
* - * - * .google.protobuf.Timestamp update_time = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp update_time = 14 [(.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; } @@ -7816,15 +6951,11 @@ public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * Output only. The time the instance was updated.
      * 
* - * - * .google.protobuf.Timestamp update_time = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp update_time = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder clearUpdateTime() { if (updateTimeBuilder_ == null) { @@ -7838,64 +6969,48 @@ public Builder clearUpdateTime() { return this; } /** - * - * *
      * Output only. The time the instance was updated.
      * 
* - * - * .google.protobuf.Timestamp update_time = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp update_time = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.protobuf.Timestamp.Builder getUpdateTimeBuilder() { - + onChanged(); return getUpdateTimeFieldBuilder().getBuilder(); } /** - * - * *
      * Output only. The time the instance was updated.
      * 
* - * - * .google.protobuf.Timestamp update_time = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp update_time = 14 [(.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 the instance was updated.
      * 
* - * - * .google.protobuf.Timestamp update_time = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp update_time = 14 [(.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_; @@ -7903,75 +7018,51 @@ public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { private int state_ = 0; /** - * - * *
      * Output only. The state of this Memcached instance.
      * 
* - * - * .google.cloud.memcache.v1beta2.Instance.State state = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.memcache.v1beta2.Instance.State state = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The enum numeric value on the wire for state. */ - @java.lang.Override - public int getStateValue() { + @java.lang.Override public int getStateValue() { return state_; } /** - * - * *
      * Output only. The state of this Memcached instance.
      * 
* - * - * .google.cloud.memcache.v1beta2.Instance.State state = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.memcache.v1beta2.Instance.State state = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @param value The enum numeric value on the wire for state to set. * @return This builder for chaining. */ public Builder setStateValue(int value) { - + state_ = value; onChanged(); return this; } /** - * - * *
      * Output only. The state of this Memcached instance.
      * 
* - * - * .google.cloud.memcache.v1beta2.Instance.State state = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.memcache.v1beta2.Instance.State state = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The state. */ @java.lang.Override public com.google.cloud.memcache.v1beta2.Instance.State getState() { @SuppressWarnings("deprecation") - com.google.cloud.memcache.v1beta2.Instance.State result = - com.google.cloud.memcache.v1beta2.Instance.State.valueOf(state_); - return result == null - ? com.google.cloud.memcache.v1beta2.Instance.State.UNRECOGNIZED - : result; + com.google.cloud.memcache.v1beta2.Instance.State result = com.google.cloud.memcache.v1beta2.Instance.State.valueOf(state_); + return result == null ? com.google.cloud.memcache.v1beta2.Instance.State.UNRECOGNIZED : result; } /** - * - * *
      * Output only. The state of this Memcached instance.
      * 
* - * - * .google.cloud.memcache.v1beta2.Instance.State state = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.memcache.v1beta2.Instance.State state = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @param value The state to set. * @return This builder for chaining. */ @@ -7979,26 +7070,21 @@ public Builder setState(com.google.cloud.memcache.v1beta2.Instance.State value) if (value == null) { throw new NullPointerException(); } - + state_ = value.getNumber(); onChanged(); return this; } /** - * - * *
      * Output only. The state of this Memcached instance.
      * 
* - * - * .google.cloud.memcache.v1beta2.Instance.State state = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.memcache.v1beta2.Instance.State state = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return This builder for chaining. */ public Builder clearState() { - + state_ = 0; onChanged(); return this; @@ -8006,8 +7092,6 @@ public Builder clearState() { private java.lang.Object memcacheFullVersion_ = ""; /** - * - * *
      * Output only. The full version of memcached server running on this instance.
      * System automatically determines the full memcached version for an instance
@@ -8016,13 +7100,13 @@ public Builder clearState() {
      * 
* * string memcache_full_version = 18 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The memcacheFullVersion. */ public java.lang.String getMemcacheFullVersion() { java.lang.Object ref = memcacheFullVersion_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); memcacheFullVersion_ = s; return s; @@ -8031,8 +7115,6 @@ public java.lang.String getMemcacheFullVersion() { } } /** - * - * *
      * Output only. The full version of memcached server running on this instance.
      * System automatically determines the full memcached version for an instance
@@ -8041,14 +7123,15 @@ public java.lang.String getMemcacheFullVersion() {
      * 
* * string memcache_full_version = 18 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for memcacheFullVersion. */ - public com.google.protobuf.ByteString getMemcacheFullVersionBytes() { + public com.google.protobuf.ByteString + getMemcacheFullVersionBytes() { java.lang.Object ref = memcacheFullVersion_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); memcacheFullVersion_ = b; return b; } else { @@ -8056,8 +7139,6 @@ public com.google.protobuf.ByteString getMemcacheFullVersionBytes() { } } /** - * - * *
      * Output only. The full version of memcached server running on this instance.
      * System automatically determines the full memcached version for an instance
@@ -8066,22 +7147,20 @@ public com.google.protobuf.ByteString getMemcacheFullVersionBytes() {
      * 
* * string memcache_full_version = 18 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @param value The memcacheFullVersion to set. * @return This builder for chaining. */ - public Builder setMemcacheFullVersion(java.lang.String value) { + public Builder setMemcacheFullVersion( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + memcacheFullVersion_ = value; onChanged(); return this; } /** - * - * *
      * Output only. The full version of memcached server running on this instance.
      * System automatically determines the full memcached version for an instance
@@ -8090,18 +7169,15 @@ public Builder setMemcacheFullVersion(java.lang.String value) {
      * 
* * string memcache_full_version = 18 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return This builder for chaining. */ public Builder clearMemcacheFullVersion() { - + memcacheFullVersion_ = getDefaultInstance().getMemcacheFullVersion(); onChanged(); return this; } /** - * - * *
      * Output only. The full version of memcached server running on this instance.
      * System automatically determines the full memcached version for an instance
@@ -8110,52 +7186,41 @@ public Builder clearMemcacheFullVersion() {
      * 
* * string memcache_full_version = 18 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @param value The bytes for memcacheFullVersion to set. * @return This builder for chaining. */ - public Builder setMemcacheFullVersionBytes(com.google.protobuf.ByteString value) { + public Builder setMemcacheFullVersionBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + memcacheFullVersion_ = value; onChanged(); return this; } - private java.util.List - instanceMessages_ = java.util.Collections.emptyList(); - + private java.util.List instanceMessages_ = + java.util.Collections.emptyList(); private void ensureInstanceMessagesIsMutable() { if (!((bitField0_ & 0x00000008) != 0)) { - instanceMessages_ = - new java.util.ArrayList( - instanceMessages_); + instanceMessages_ = new java.util.ArrayList(instanceMessages_); bitField0_ |= 0x00000008; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.memcache.v1beta2.Instance.InstanceMessage, - com.google.cloud.memcache.v1beta2.Instance.InstanceMessage.Builder, - com.google.cloud.memcache.v1beta2.Instance.InstanceMessageOrBuilder> - instanceMessagesBuilder_; + com.google.cloud.memcache.v1beta2.Instance.InstanceMessage, com.google.cloud.memcache.v1beta2.Instance.InstanceMessage.Builder, com.google.cloud.memcache.v1beta2.Instance.InstanceMessageOrBuilder> instanceMessagesBuilder_; /** - * - * *
      * List of messages that describe the current state of the Memcached instance.
      * 
* - * - * repeated .google.cloud.memcache.v1beta2.Instance.InstanceMessage instance_messages = 19; - * + * repeated .google.cloud.memcache.v1beta2.Instance.InstanceMessage instance_messages = 19; */ - public java.util.List - getInstanceMessagesList() { + public java.util.List getInstanceMessagesList() { if (instanceMessagesBuilder_ == null) { return java.util.Collections.unmodifiableList(instanceMessages_); } else { @@ -8163,15 +7228,11 @@ private void ensureInstanceMessagesIsMutable() { } } /** - * - * *
      * List of messages that describe the current state of the Memcached instance.
      * 
* - * - * repeated .google.cloud.memcache.v1beta2.Instance.InstanceMessage instance_messages = 19; - * + * repeated .google.cloud.memcache.v1beta2.Instance.InstanceMessage instance_messages = 19; */ public int getInstanceMessagesCount() { if (instanceMessagesBuilder_ == null) { @@ -8181,18 +7242,13 @@ public int getInstanceMessagesCount() { } } /** - * - * *
      * List of messages that describe the current state of the Memcached instance.
      * 
* - * - * repeated .google.cloud.memcache.v1beta2.Instance.InstanceMessage instance_messages = 19; - * + * repeated .google.cloud.memcache.v1beta2.Instance.InstanceMessage instance_messages = 19; */ - public com.google.cloud.memcache.v1beta2.Instance.InstanceMessage getInstanceMessages( - int index) { + public com.google.cloud.memcache.v1beta2.Instance.InstanceMessage getInstanceMessages(int index) { if (instanceMessagesBuilder_ == null) { return instanceMessages_.get(index); } else { @@ -8200,15 +7256,11 @@ public com.google.cloud.memcache.v1beta2.Instance.InstanceMessage getInstanceMes } } /** - * - * *
      * List of messages that describe the current state of the Memcached instance.
      * 
* - * - * repeated .google.cloud.memcache.v1beta2.Instance.InstanceMessage instance_messages = 19; - * + * repeated .google.cloud.memcache.v1beta2.Instance.InstanceMessage instance_messages = 19; */ public Builder setInstanceMessages( int index, com.google.cloud.memcache.v1beta2.Instance.InstanceMessage value) { @@ -8225,19 +7277,14 @@ public Builder setInstanceMessages( return this; } /** - * - * *
      * List of messages that describe the current state of the Memcached instance.
      * 
* - * - * repeated .google.cloud.memcache.v1beta2.Instance.InstanceMessage instance_messages = 19; - * + * repeated .google.cloud.memcache.v1beta2.Instance.InstanceMessage instance_messages = 19; */ public Builder setInstanceMessages( - int index, - com.google.cloud.memcache.v1beta2.Instance.InstanceMessage.Builder builderForValue) { + int index, com.google.cloud.memcache.v1beta2.Instance.InstanceMessage.Builder builderForValue) { if (instanceMessagesBuilder_ == null) { ensureInstanceMessagesIsMutable(); instanceMessages_.set(index, builderForValue.build()); @@ -8248,18 +7295,13 @@ public Builder setInstanceMessages( return this; } /** - * - * *
      * List of messages that describe the current state of the Memcached instance.
      * 
* - * - * repeated .google.cloud.memcache.v1beta2.Instance.InstanceMessage instance_messages = 19; - * + * repeated .google.cloud.memcache.v1beta2.Instance.InstanceMessage instance_messages = 19; */ - public Builder addInstanceMessages( - com.google.cloud.memcache.v1beta2.Instance.InstanceMessage value) { + public Builder addInstanceMessages(com.google.cloud.memcache.v1beta2.Instance.InstanceMessage value) { if (instanceMessagesBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -8273,15 +7315,11 @@ public Builder addInstanceMessages( return this; } /** - * - * *
      * List of messages that describe the current state of the Memcached instance.
      * 
* - * - * repeated .google.cloud.memcache.v1beta2.Instance.InstanceMessage instance_messages = 19; - * + * repeated .google.cloud.memcache.v1beta2.Instance.InstanceMessage instance_messages = 19; */ public Builder addInstanceMessages( int index, com.google.cloud.memcache.v1beta2.Instance.InstanceMessage value) { @@ -8298,15 +7336,11 @@ public Builder addInstanceMessages( return this; } /** - * - * *
      * List of messages that describe the current state of the Memcached instance.
      * 
* - * - * repeated .google.cloud.memcache.v1beta2.Instance.InstanceMessage instance_messages = 19; - * + * repeated .google.cloud.memcache.v1beta2.Instance.InstanceMessage instance_messages = 19; */ public Builder addInstanceMessages( com.google.cloud.memcache.v1beta2.Instance.InstanceMessage.Builder builderForValue) { @@ -8320,19 +7354,14 @@ public Builder addInstanceMessages( return this; } /** - * - * *
      * List of messages that describe the current state of the Memcached instance.
      * 
* - * - * repeated .google.cloud.memcache.v1beta2.Instance.InstanceMessage instance_messages = 19; - * + * repeated .google.cloud.memcache.v1beta2.Instance.InstanceMessage instance_messages = 19; */ public Builder addInstanceMessages( - int index, - com.google.cloud.memcache.v1beta2.Instance.InstanceMessage.Builder builderForValue) { + int index, com.google.cloud.memcache.v1beta2.Instance.InstanceMessage.Builder builderForValue) { if (instanceMessagesBuilder_ == null) { ensureInstanceMessagesIsMutable(); instanceMessages_.add(index, builderForValue.build()); @@ -8343,22 +7372,18 @@ public Builder addInstanceMessages( return this; } /** - * - * *
      * List of messages that describe the current state of the Memcached instance.
      * 
* - * - * repeated .google.cloud.memcache.v1beta2.Instance.InstanceMessage instance_messages = 19; - * + * repeated .google.cloud.memcache.v1beta2.Instance.InstanceMessage instance_messages = 19; */ public Builder addAllInstanceMessages( - java.lang.Iterable - values) { + java.lang.Iterable values) { if (instanceMessagesBuilder_ == null) { ensureInstanceMessagesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, instanceMessages_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, instanceMessages_); onChanged(); } else { instanceMessagesBuilder_.addAllMessages(values); @@ -8366,15 +7391,11 @@ public Builder addAllInstanceMessages( return this; } /** - * - * *
      * List of messages that describe the current state of the Memcached instance.
      * 
* - * - * repeated .google.cloud.memcache.v1beta2.Instance.InstanceMessage instance_messages = 19; - * + * repeated .google.cloud.memcache.v1beta2.Instance.InstanceMessage instance_messages = 19; */ public Builder clearInstanceMessages() { if (instanceMessagesBuilder_ == null) { @@ -8387,15 +7408,11 @@ public Builder clearInstanceMessages() { return this; } /** - * - * *
      * List of messages that describe the current state of the Memcached instance.
      * 
* - * - * repeated .google.cloud.memcache.v1beta2.Instance.InstanceMessage instance_messages = 19; - * + * repeated .google.cloud.memcache.v1beta2.Instance.InstanceMessage instance_messages = 19; */ public Builder removeInstanceMessages(int index) { if (instanceMessagesBuilder_ == null) { @@ -8408,53 +7425,39 @@ public Builder removeInstanceMessages(int index) { return this; } /** - * - * *
      * List of messages that describe the current state of the Memcached instance.
      * 
* - * - * repeated .google.cloud.memcache.v1beta2.Instance.InstanceMessage instance_messages = 19; - * + * repeated .google.cloud.memcache.v1beta2.Instance.InstanceMessage instance_messages = 19; */ - public com.google.cloud.memcache.v1beta2.Instance.InstanceMessage.Builder - getInstanceMessagesBuilder(int index) { + public com.google.cloud.memcache.v1beta2.Instance.InstanceMessage.Builder getInstanceMessagesBuilder( + int index) { return getInstanceMessagesFieldBuilder().getBuilder(index); } /** - * - * *
      * List of messages that describe the current state of the Memcached instance.
      * 
* - * - * repeated .google.cloud.memcache.v1beta2.Instance.InstanceMessage instance_messages = 19; - * + * repeated .google.cloud.memcache.v1beta2.Instance.InstanceMessage instance_messages = 19; */ - public com.google.cloud.memcache.v1beta2.Instance.InstanceMessageOrBuilder - getInstanceMessagesOrBuilder(int index) { + public com.google.cloud.memcache.v1beta2.Instance.InstanceMessageOrBuilder getInstanceMessagesOrBuilder( + int index) { if (instanceMessagesBuilder_ == null) { - return instanceMessages_.get(index); - } else { + return instanceMessages_.get(index); } else { return instanceMessagesBuilder_.getMessageOrBuilder(index); } } /** - * - * *
      * List of messages that describe the current state of the Memcached instance.
      * 
* - * - * repeated .google.cloud.memcache.v1beta2.Instance.InstanceMessage instance_messages = 19; - * + * repeated .google.cloud.memcache.v1beta2.Instance.InstanceMessage instance_messages = 19; */ - public java.util.List< - ? extends com.google.cloud.memcache.v1beta2.Instance.InstanceMessageOrBuilder> - getInstanceMessagesOrBuilderList() { + public java.util.List + getInstanceMessagesOrBuilderList() { if (instanceMessagesBuilder_ != null) { return instanceMessagesBuilder_.getMessageOrBuilderList(); } else { @@ -8462,67 +7465,45 @@ public Builder removeInstanceMessages(int index) { } } /** - * - * *
      * List of messages that describe the current state of the Memcached instance.
      * 
* - * - * repeated .google.cloud.memcache.v1beta2.Instance.InstanceMessage instance_messages = 19; - * + * repeated .google.cloud.memcache.v1beta2.Instance.InstanceMessage instance_messages = 19; */ - public com.google.cloud.memcache.v1beta2.Instance.InstanceMessage.Builder - addInstanceMessagesBuilder() { - return getInstanceMessagesFieldBuilder() - .addBuilder( - com.google.cloud.memcache.v1beta2.Instance.InstanceMessage.getDefaultInstance()); + public com.google.cloud.memcache.v1beta2.Instance.InstanceMessage.Builder addInstanceMessagesBuilder() { + return getInstanceMessagesFieldBuilder().addBuilder( + com.google.cloud.memcache.v1beta2.Instance.InstanceMessage.getDefaultInstance()); } /** - * - * *
      * List of messages that describe the current state of the Memcached instance.
      * 
* - * - * repeated .google.cloud.memcache.v1beta2.Instance.InstanceMessage instance_messages = 19; - * + * repeated .google.cloud.memcache.v1beta2.Instance.InstanceMessage instance_messages = 19; */ - public com.google.cloud.memcache.v1beta2.Instance.InstanceMessage.Builder - addInstanceMessagesBuilder(int index) { - return getInstanceMessagesFieldBuilder() - .addBuilder( - index, - com.google.cloud.memcache.v1beta2.Instance.InstanceMessage.getDefaultInstance()); + public com.google.cloud.memcache.v1beta2.Instance.InstanceMessage.Builder addInstanceMessagesBuilder( + int index) { + return getInstanceMessagesFieldBuilder().addBuilder( + index, com.google.cloud.memcache.v1beta2.Instance.InstanceMessage.getDefaultInstance()); } /** - * - * *
      * List of messages that describe the current state of the Memcached instance.
      * 
* - * - * repeated .google.cloud.memcache.v1beta2.Instance.InstanceMessage instance_messages = 19; - * + * repeated .google.cloud.memcache.v1beta2.Instance.InstanceMessage instance_messages = 19; */ - public java.util.List - getInstanceMessagesBuilderList() { + public java.util.List + getInstanceMessagesBuilderList() { return getInstanceMessagesFieldBuilder().getBuilderList(); } - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.memcache.v1beta2.Instance.InstanceMessage, - com.google.cloud.memcache.v1beta2.Instance.InstanceMessage.Builder, - com.google.cloud.memcache.v1beta2.Instance.InstanceMessageOrBuilder> + com.google.cloud.memcache.v1beta2.Instance.InstanceMessage, com.google.cloud.memcache.v1beta2.Instance.InstanceMessage.Builder, com.google.cloud.memcache.v1beta2.Instance.InstanceMessageOrBuilder> getInstanceMessagesFieldBuilder() { if (instanceMessagesBuilder_ == null) { - instanceMessagesBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.memcache.v1beta2.Instance.InstanceMessage, - com.google.cloud.memcache.v1beta2.Instance.InstanceMessage.Builder, - com.google.cloud.memcache.v1beta2.Instance.InstanceMessageOrBuilder>( + instanceMessagesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.memcache.v1beta2.Instance.InstanceMessage, com.google.cloud.memcache.v1beta2.Instance.InstanceMessage.Builder, com.google.cloud.memcache.v1beta2.Instance.InstanceMessageOrBuilder>( instanceMessages_, ((bitField0_ & 0x00000008) != 0), getParentForChildren(), @@ -8534,20 +7515,18 @@ public Builder removeInstanceMessages(int index) { private java.lang.Object discoveryEndpoint_ = ""; /** - * - * *
      * Output only. Endpoint for the Discovery API.
      * 
* * string discovery_endpoint = 20 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The discoveryEndpoint. */ public java.lang.String getDiscoveryEndpoint() { java.lang.Object ref = discoveryEndpoint_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); discoveryEndpoint_ = s; return s; @@ -8556,21 +7535,20 @@ public java.lang.String getDiscoveryEndpoint() { } } /** - * - * *
      * Output only. Endpoint for the Discovery API.
      * 
* * string discovery_endpoint = 20 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for discoveryEndpoint. */ - public com.google.protobuf.ByteString getDiscoveryEndpointBytes() { + public com.google.protobuf.ByteString + getDiscoveryEndpointBytes() { java.lang.Object ref = discoveryEndpoint_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); discoveryEndpoint_ = b; return b; } else { @@ -8578,76 +7556,66 @@ public com.google.protobuf.ByteString getDiscoveryEndpointBytes() { } } /** - * - * *
      * Output only. Endpoint for the Discovery API.
      * 
* * string discovery_endpoint = 20 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @param value The discoveryEndpoint to set. * @return This builder for chaining. */ - public Builder setDiscoveryEndpoint(java.lang.String value) { + public Builder setDiscoveryEndpoint( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + discoveryEndpoint_ = value; onChanged(); return this; } /** - * - * *
      * Output only. Endpoint for the Discovery API.
      * 
* * string discovery_endpoint = 20 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return This builder for chaining. */ public Builder clearDiscoveryEndpoint() { - + discoveryEndpoint_ = getDefaultInstance().getDiscoveryEndpoint(); onChanged(); return this; } /** - * - * *
      * Output only. Endpoint for the Discovery API.
      * 
* * string discovery_endpoint = 20 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @param value The bytes for discoveryEndpoint to set. * @return This builder for chaining. */ - public Builder setDiscoveryEndpointBytes(com.google.protobuf.ByteString value) { + public Builder setDiscoveryEndpointBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + discoveryEndpoint_ = value; onChanged(); return this; } - private boolean updateAvailable_; + private boolean updateAvailable_ ; /** - * - * *
      * Output only. Returns true if there is an update waiting to be applied
      * 
* * bool update_available = 21 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The updateAvailable. */ @java.lang.Override @@ -8655,43 +7623,37 @@ public boolean getUpdateAvailable() { return updateAvailable_; } /** - * - * *
      * Output only. Returns true if there is an update waiting to be applied
      * 
* * bool update_available = 21 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @param value The updateAvailable to set. * @return This builder for chaining. */ public Builder setUpdateAvailable(boolean value) { - + updateAvailable_ = value; onChanged(); return this; } /** - * - * *
      * Output only. Returns true if there is an update waiting to be applied
      * 
* * bool update_available = 21 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return This builder for chaining. */ public Builder clearUpdateAvailable() { - + updateAvailable_ = false; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -8701,12 +7663,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.memcache.v1beta2.Instance) } // @@protoc_insertion_point(class_scope:google.cloud.memcache.v1beta2.Instance) private static final com.google.cloud.memcache.v1beta2.Instance DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.memcache.v1beta2.Instance(); } @@ -8715,16 +7677,16 @@ public static com.google.cloud.memcache.v1beta2.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; @@ -8739,4 +7701,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.memcache.v1beta2.Instance getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-memcache-v1beta2/src/main/java/com/google/cloud/memcache/v1beta2/InstanceName.java b/owl-bot-staging/v1beta2/proto-google-cloud-memcache-v1beta2/src/main/java/com/google/cloud/memcache/v1beta2/InstanceName.java similarity index 100% rename from proto-google-cloud-memcache-v1beta2/src/main/java/com/google/cloud/memcache/v1beta2/InstanceName.java rename to owl-bot-staging/v1beta2/proto-google-cloud-memcache-v1beta2/src/main/java/com/google/cloud/memcache/v1beta2/InstanceName.java diff --git a/proto-google-cloud-memcache-v1beta2/src/main/java/com/google/cloud/memcache/v1beta2/InstanceOrBuilder.java b/owl-bot-staging/v1beta2/proto-google-cloud-memcache-v1beta2/src/main/java/com/google/cloud/memcache/v1beta2/InstanceOrBuilder.java similarity index 78% rename from proto-google-cloud-memcache-v1beta2/src/main/java/com/google/cloud/memcache/v1beta2/InstanceOrBuilder.java rename to owl-bot-staging/v1beta2/proto-google-cloud-memcache-v1beta2/src/main/java/com/google/cloud/memcache/v1beta2/InstanceOrBuilder.java index 70d316ce..6703dc22 100644 --- a/proto-google-cloud-memcache-v1beta2/src/main/java/com/google/cloud/memcache/v1beta2/InstanceOrBuilder.java +++ b/owl-bot-staging/v1beta2/proto-google-cloud-memcache-v1beta2/src/main/java/com/google/cloud/memcache/v1beta2/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/memcache/v1beta2/cloud_memcache.proto package com.google.cloud.memcache.v1beta2; -public interface InstanceOrBuilder - extends +public interface InstanceOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.memcache.v1beta2.Instance) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Required. Unique name of the resource in this scope including project and
    * location using the form:
@@ -37,13 +19,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:
@@ -55,41 +34,34 @@ 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(); /** - * - * *
    * User provided name for the instance, which is only used for display
    * purposes. Cannot be more than 80 characters.
    * 
* * string display_name = 2; - * * @return The displayName. */ java.lang.String getDisplayName(); /** - * - * *
    * User provided name for the instance, which is only used for display
    * purposes. Cannot be more than 80 characters.
    * 
* * 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.
    * Refer to cloud documentation on labels for more details.
@@ -100,8 +72,6 @@ public interface InstanceOrBuilder
    */
   int getLabelsCount();
   /**
-   *
-   *
    * 
    * Resource labels to represent user-provided metadata.
    * Refer to cloud documentation on labels for more details.
@@ -110,13 +80,15 @@ public interface InstanceOrBuilder
    *
    * 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.
    * Refer to cloud documentation on labels for more details.
@@ -125,10 +97,9 @@ public interface InstanceOrBuilder
    *
    * map<string, string> labels = 3;
    */
-  java.util.Map getLabelsMap();
+  java.util.Map
+  getLabelsMap();
   /**
-   *
-   *
    * 
    * Resource labels to represent user-provided metadata.
    * Refer to cloud documentation on labels for more details.
@@ -139,13 +110,11 @@ 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.
    * Refer to cloud documentation on labels for more details.
@@ -154,11 +123,11 @@ java.lang.String getLabelsOrDefault(
    *
    * map<string, string> labels = 3;
    */
-  java.lang.String getLabelsOrThrow(java.lang.String key);
+
+  java.lang.String getLabelsOrThrow(
+      java.lang.String key);
 
   /**
-   *
-   *
    * 
    * The full name of the Google Compute Engine
    * [network](https://cloud.google.com/vpc/docs/vpc) to which the
@@ -167,13 +136,10 @@ java.lang.String getLabelsOrDefault(
    * 
* * string authorized_network = 4; - * * @return The authorizedNetwork. */ java.lang.String getAuthorizedNetwork(); /** - * - * *
    * The full name of the Google Compute Engine
    * [network](https://cloud.google.com/vpc/docs/vpc) to which the
@@ -182,14 +148,12 @@ java.lang.String getLabelsOrDefault(
    * 
* * string authorized_network = 4; - * * @return The bytes for authorizedNetwork. */ - com.google.protobuf.ByteString getAuthorizedNetworkBytes(); + com.google.protobuf.ByteString + getAuthorizedNetworkBytes(); /** - * - * *
    * Zones in which Memcached nodes should be provisioned.
    * Memcached nodes will be equally distributed across these zones. If not
@@ -198,13 +162,11 @@ java.lang.String getLabelsOrDefault(
    * 
* * repeated string zones = 5; - * * @return A list containing the zones. */ - java.util.List getZonesList(); + java.util.List + getZonesList(); /** - * - * *
    * Zones in which Memcached nodes should be provisioned.
    * Memcached nodes will be equally distributed across these zones. If not
@@ -213,13 +175,10 @@ java.lang.String getLabelsOrDefault(
    * 
* * repeated string zones = 5; - * * @return The count of zones. */ int getZonesCount(); /** - * - * *
    * Zones in which Memcached nodes should be provisioned.
    * Memcached nodes will be equally distributed across these zones. If not
@@ -228,14 +187,11 @@ java.lang.String getLabelsOrDefault(
    * 
* * repeated string zones = 5; - * * @param index The index of the element to return. * @return The zones at the given index. */ java.lang.String getZones(int index); /** - * - * *
    * Zones in which Memcached nodes should be provisioned.
    * Memcached nodes will be equally distributed across these zones. If not
@@ -244,69 +200,50 @@ java.lang.String getLabelsOrDefault(
    * 
* * repeated string zones = 5; - * * @param index The index of the value to return. * @return The bytes of the zones at the given index. */ - com.google.protobuf.ByteString getZonesBytes(int index); + com.google.protobuf.ByteString + getZonesBytes(int index); /** - * - * *
    * Required. Number of nodes in the Memcached instance.
    * 
* * int32 node_count = 6 [(.google.api.field_behavior) = REQUIRED]; - * * @return The nodeCount. */ int getNodeCount(); /** - * - * *
    * Required. Configuration for Memcached nodes.
    * 
* - * - * .google.cloud.memcache.v1beta2.Instance.NodeConfig node_config = 7 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.memcache.v1beta2.Instance.NodeConfig node_config = 7 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the nodeConfig field is set. */ boolean hasNodeConfig(); /** - * - * *
    * Required. Configuration for Memcached nodes.
    * 
* - * - * .google.cloud.memcache.v1beta2.Instance.NodeConfig node_config = 7 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.memcache.v1beta2.Instance.NodeConfig node_config = 7 [(.google.api.field_behavior) = REQUIRED]; * @return The nodeConfig. */ com.google.cloud.memcache.v1beta2.Instance.NodeConfig getNodeConfig(); /** - * - * *
    * Required. Configuration for Memcached nodes.
    * 
* - * - * .google.cloud.memcache.v1beta2.Instance.NodeConfig node_config = 7 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.memcache.v1beta2.Instance.NodeConfig node_config = 7 [(.google.api.field_behavior) = REQUIRED]; */ com.google.cloud.memcache.v1beta2.Instance.NodeConfigOrBuilder getNodeConfigOrBuilder(); /** - * - * *
    * The major version of Memcached software.
    * If not provided, latest supported version will be used. Currently the
@@ -316,13 +253,10 @@ java.lang.String getLabelsOrDefault(
    * 
* * .google.cloud.memcache.v1beta2.MemcacheVersion memcache_version = 9; - * * @return The enum numeric value on the wire for memcacheVersion. */ int getMemcacheVersionValue(); /** - * - * *
    * The major version of Memcached software.
    * If not provided, latest supported version will be used. Currently the
@@ -332,40 +266,31 @@ java.lang.String getLabelsOrDefault(
    * 
* * .google.cloud.memcache.v1beta2.MemcacheVersion memcache_version = 9; - * * @return The memcacheVersion. */ com.google.cloud.memcache.v1beta2.MemcacheVersion getMemcacheVersion(); /** - * - * *
    * Optional: User defined parameters to apply to the memcached process
    * on each node.
    * 
* * .google.cloud.memcache.v1beta2.MemcacheParameters parameters = 11; - * * @return Whether the parameters field is set. */ boolean hasParameters(); /** - * - * *
    * Optional: User defined parameters to apply to the memcached process
    * on each node.
    * 
* * .google.cloud.memcache.v1beta2.MemcacheParameters parameters = 11; - * * @return The parameters. */ com.google.cloud.memcache.v1beta2.MemcacheParameters getParameters(); /** - * - * *
    * Optional: User defined parameters to apply to the memcached process
    * on each node.
@@ -376,180 +301,128 @@ java.lang.String getLabelsOrDefault(
   com.google.cloud.memcache.v1beta2.MemcacheParametersOrBuilder getParametersOrBuilder();
 
   /**
-   *
-   *
    * 
    * Output only. List of Memcached nodes.
    * Refer to [Node][google.cloud.memcache.v1beta2.Instance.Node] message for more details.
    * 
* - * - * repeated .google.cloud.memcache.v1beta2.Instance.Node memcache_nodes = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.memcache.v1beta2.Instance.Node memcache_nodes = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - java.util.List getMemcacheNodesList(); + java.util.List + getMemcacheNodesList(); /** - * - * *
    * Output only. List of Memcached nodes.
    * Refer to [Node][google.cloud.memcache.v1beta2.Instance.Node] message for more details.
    * 
* - * - * repeated .google.cloud.memcache.v1beta2.Instance.Node memcache_nodes = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.memcache.v1beta2.Instance.Node memcache_nodes = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ com.google.cloud.memcache.v1beta2.Instance.Node getMemcacheNodes(int index); /** - * - * *
    * Output only. List of Memcached nodes.
    * Refer to [Node][google.cloud.memcache.v1beta2.Instance.Node] message for more details.
    * 
* - * - * repeated .google.cloud.memcache.v1beta2.Instance.Node memcache_nodes = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.memcache.v1beta2.Instance.Node memcache_nodes = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ int getMemcacheNodesCount(); /** - * - * *
    * Output only. List of Memcached nodes.
    * Refer to [Node][google.cloud.memcache.v1beta2.Instance.Node] message for more details.
    * 
* - * - * repeated .google.cloud.memcache.v1beta2.Instance.Node memcache_nodes = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.memcache.v1beta2.Instance.Node memcache_nodes = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - java.util.List + java.util.List getMemcacheNodesOrBuilderList(); /** - * - * *
    * Output only. List of Memcached nodes.
    * Refer to [Node][google.cloud.memcache.v1beta2.Instance.Node] message for more details.
    * 
* - * - * repeated .google.cloud.memcache.v1beta2.Instance.Node memcache_nodes = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.memcache.v1beta2.Instance.Node memcache_nodes = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - com.google.cloud.memcache.v1beta2.Instance.NodeOrBuilder getMemcacheNodesOrBuilder(int index); + com.google.cloud.memcache.v1beta2.Instance.NodeOrBuilder getMemcacheNodesOrBuilder( + int index); /** - * - * *
    * 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 time the instance was updated.
    * 
* - * .google.protobuf.Timestamp update_time = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp update_time = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the updateTime field is set. */ boolean hasUpdateTime(); /** - * - * *
    * Output only. The time the instance was updated.
    * 
* - * .google.protobuf.Timestamp update_time = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp update_time = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The updateTime. */ com.google.protobuf.Timestamp getUpdateTime(); /** - * - * *
    * Output only. The time the instance was updated.
    * 
* - * .google.protobuf.Timestamp update_time = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp update_time = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder(); /** - * - * *
    * Output only. The state of this Memcached instance.
    * 
* - * - * .google.cloud.memcache.v1beta2.Instance.State state = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.memcache.v1beta2.Instance.State state = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The enum numeric value on the wire for state. */ int getStateValue(); /** - * - * *
    * Output only. The state of this Memcached instance.
    * 
* - * - * .google.cloud.memcache.v1beta2.Instance.State state = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.memcache.v1beta2.Instance.State state = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The state. */ com.google.cloud.memcache.v1beta2.Instance.State getState(); /** - * - * *
    * Output only. The full version of memcached server running on this instance.
    * System automatically determines the full memcached version for an instance
@@ -558,13 +431,10 @@ java.lang.String getLabelsOrDefault(
    * 
* * string memcache_full_version = 18 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The memcacheFullVersion. */ java.lang.String getMemcacheFullVersion(); /** - * - * *
    * Output only. The full version of memcached server running on this instance.
    * System automatically determines the full memcached version for an instance
@@ -573,104 +443,81 @@ java.lang.String getLabelsOrDefault(
    * 
* * string memcache_full_version = 18 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for memcacheFullVersion. */ - com.google.protobuf.ByteString getMemcacheFullVersionBytes(); + com.google.protobuf.ByteString + getMemcacheFullVersionBytes(); /** - * - * *
    * List of messages that describe the current state of the Memcached instance.
    * 
* - * repeated .google.cloud.memcache.v1beta2.Instance.InstanceMessage instance_messages = 19; - * + * repeated .google.cloud.memcache.v1beta2.Instance.InstanceMessage instance_messages = 19; */ - java.util.List + java.util.List getInstanceMessagesList(); /** - * - * *
    * List of messages that describe the current state of the Memcached instance.
    * 
* - * repeated .google.cloud.memcache.v1beta2.Instance.InstanceMessage instance_messages = 19; - * + * repeated .google.cloud.memcache.v1beta2.Instance.InstanceMessage instance_messages = 19; */ com.google.cloud.memcache.v1beta2.Instance.InstanceMessage getInstanceMessages(int index); /** - * - * *
    * List of messages that describe the current state of the Memcached instance.
    * 
* - * repeated .google.cloud.memcache.v1beta2.Instance.InstanceMessage instance_messages = 19; - * + * repeated .google.cloud.memcache.v1beta2.Instance.InstanceMessage instance_messages = 19; */ int getInstanceMessagesCount(); /** - * - * *
    * List of messages that describe the current state of the Memcached instance.
    * 
* - * repeated .google.cloud.memcache.v1beta2.Instance.InstanceMessage instance_messages = 19; - * + * repeated .google.cloud.memcache.v1beta2.Instance.InstanceMessage instance_messages = 19; */ - java.util.List + java.util.List getInstanceMessagesOrBuilderList(); /** - * - * *
    * List of messages that describe the current state of the Memcached instance.
    * 
* - * repeated .google.cloud.memcache.v1beta2.Instance.InstanceMessage instance_messages = 19; - * + * repeated .google.cloud.memcache.v1beta2.Instance.InstanceMessage instance_messages = 19; */ com.google.cloud.memcache.v1beta2.Instance.InstanceMessageOrBuilder getInstanceMessagesOrBuilder( int index); /** - * - * *
    * Output only. Endpoint for the Discovery API.
    * 
* * string discovery_endpoint = 20 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The discoveryEndpoint. */ java.lang.String getDiscoveryEndpoint(); /** - * - * *
    * Output only. Endpoint for the Discovery API.
    * 
* * string discovery_endpoint = 20 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for discoveryEndpoint. */ - com.google.protobuf.ByteString getDiscoveryEndpointBytes(); + com.google.protobuf.ByteString + getDiscoveryEndpointBytes(); /** - * - * *
    * Output only. Returns true if there is an update waiting to be applied
    * 
* * bool update_available = 21 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The updateAvailable. */ boolean getUpdateAvailable(); diff --git a/proto-google-cloud-memcache-v1beta2/src/main/java/com/google/cloud/memcache/v1beta2/ListInstancesRequest.java b/owl-bot-staging/v1beta2/proto-google-cloud-memcache-v1beta2/src/main/java/com/google/cloud/memcache/v1beta2/ListInstancesRequest.java similarity index 72% rename from proto-google-cloud-memcache-v1beta2/src/main/java/com/google/cloud/memcache/v1beta2/ListInstancesRequest.java rename to owl-bot-staging/v1beta2/proto-google-cloud-memcache-v1beta2/src/main/java/com/google/cloud/memcache/v1beta2/ListInstancesRequest.java index e9447e92..24b21b3b 100644 --- a/proto-google-cloud-memcache-v1beta2/src/main/java/com/google/cloud/memcache/v1beta2/ListInstancesRequest.java +++ b/owl-bot-staging/v1beta2/proto-google-cloud-memcache-v1beta2/src/main/java/com/google/cloud/memcache/v1beta2/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/memcache/v1beta2/cloud_memcache.proto package com.google.cloud.memcache.v1beta2; /** - * - * *
  * Request for [ListInstances][google.cloud.memcache.v1beta2.CloudMemcache.ListInstances].
  * 
* * Protobuf type {@code google.cloud.memcache.v1beta2.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.memcache.v1beta2.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_ = ""; @@ -46,15 +28,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) @@ -73,46 +56,42 @@ 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; - } - case 34: - { - java.lang.String s = input.readStringRequireUtf8(); + pageSize_ = input.readInt32(); + break; + } + case 26: { + java.lang.String s = input.readStringRequireUtf8(); - filter_ = s; - break; - } - case 42: - { - java.lang.String s = input.readStringRequireUtf8(); + pageToken_ = s; + break; + } + case 34: { + java.lang.String s = input.readStringRequireUtf8(); - orderBy_ = s; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + filter_ = s; + break; + } + case 42: { + java.lang.String s = input.readStringRequireUtf8(); + + orderBy_ = s; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -120,43 +99,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.memcache.v1beta2.CloudMemcacheProto - .internal_static_google_cloud_memcache_v1beta2_ListInstancesRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.memcache.v1beta2.CloudMemcacheProto.internal_static_google_cloud_memcache_v1beta2_ListInstancesRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.memcache.v1beta2.CloudMemcacheProto - .internal_static_google_cloud_memcache_v1beta2_ListInstancesRequest_fieldAccessorTable + return com.google.cloud.memcache.v1beta2.CloudMemcacheProto.internal_static_google_cloud_memcache_v1beta2_ListInstancesRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.memcache.v1beta2.ListInstancesRequest.class, - com.google.cloud.memcache.v1beta2.ListInstancesRequest.Builder.class); + com.google.cloud.memcache.v1beta2.ListInstancesRequest.class, com.google.cloud.memcache.v1beta2.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 @@ -165,33 +137,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 { @@ -202,8 +172,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.
@@ -214,7 +182,6 @@ public com.google.protobuf.ByteString getParentBytes() {
    * 
* * int32 page_size = 2; - * * @return The pageSize. */ @java.lang.Override @@ -225,14 +192,11 @@ 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 List request, if any.
    * 
* * string page_token = 3; - * * @return The pageToken. */ @java.lang.Override @@ -241,29 +205,29 @@ 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 List 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 { @@ -274,15 +238,12 @@ public com.google.protobuf.ByteString getPageTokenBytes() { public static final int FILTER_FIELD_NUMBER = 4; private volatile java.lang.Object filter_; /** - * - * *
    * List filter. For example, exclude all Memcached instances with name as
    * my-instance by specifying `"name != my-instance"`.
    * 
* * string filter = 4; - * * @return The filter. */ @java.lang.Override @@ -291,30 +252,30 @@ public java.lang.String getFilter() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); filter_ = s; return s; } } /** - * - * *
    * List filter. For example, exclude all Memcached instances with name as
    * my-instance by specifying `"name != my-instance"`.
    * 
* * string filter = 4; - * * @return The bytes for filter. */ @java.lang.Override - public com.google.protobuf.ByteString getFilterBytes() { + public com.google.protobuf.ByteString + getFilterBytes() { java.lang.Object ref = filter_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); filter_ = b; return b; } else { @@ -325,14 +286,11 @@ public com.google.protobuf.ByteString getFilterBytes() { public static final int ORDER_BY_FIELD_NUMBER = 5; private volatile java.lang.Object orderBy_; /** - * - * *
    * Sort results. Supported values are "name", "name desc" or "" (unsorted).
    * 
* * string order_by = 5; - * * @return The orderBy. */ @java.lang.Override @@ -341,29 +299,29 @@ public java.lang.String getOrderBy() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); orderBy_ = s; return s; } } /** - * - * *
    * Sort results. Supported values are "name", "name desc" or "" (unsorted).
    * 
* * string order_by = 5; - * * @return The bytes for orderBy. */ @java.lang.Override - public com.google.protobuf.ByteString getOrderByBytes() { + public com.google.protobuf.ByteString + getOrderByBytes() { java.lang.Object ref = orderBy_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); orderBy_ = b; return b; } else { @@ -372,7 +330,6 @@ public com.google.protobuf.ByteString getOrderByBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -384,7 +341,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.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_); } @@ -413,7 +371,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_); @@ -432,19 +391,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.memcache.v1beta2.ListInstancesRequest)) { return super.equals(obj); } - com.google.cloud.memcache.v1beta2.ListInstancesRequest other = - (com.google.cloud.memcache.v1beta2.ListInstancesRequest) obj; - - if (!getParent().equals(other.getParent())) return false; - if (getPageSize() != other.getPageSize()) return false; - if (!getPageToken().equals(other.getPageToken())) return false; - if (!getFilter().equals(other.getFilter())) return false; - if (!getOrderBy().equals(other.getOrderBy())) return false; + com.google.cloud.memcache.v1beta2.ListInstancesRequest other = (com.google.cloud.memcache.v1beta2.ListInstancesRequest) obj; + + if (!getParent() + .equals(other.getParent())) return false; + if (getPageSize() + != other.getPageSize()) return false; + if (!getPageToken() + .equals(other.getPageToken())) return false; + if (!getFilter() + .equals(other.getFilter())) return false; + if (!getOrderBy() + .equals(other.getOrderBy())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -472,127 +435,117 @@ public int hashCode() { } public static com.google.cloud.memcache.v1beta2.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.memcache.v1beta2.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.memcache.v1beta2.ListInstancesRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.memcache.v1beta2.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.memcache.v1beta2.ListInstancesRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.memcache.v1beta2.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.memcache.v1beta2.ListInstancesRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.memcache.v1beta2.ListInstancesRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.memcache.v1beta2.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.memcache.v1beta2.ListInstancesRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.memcache.v1beta2.ListInstancesRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.memcache.v1beta2.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.memcache.v1beta2.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.memcache.v1beta2.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.memcache.v1beta2.ListInstancesRequest prototype) { + public static Builder newBuilder(com.google.cloud.memcache.v1beta2.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.memcache.v1beta2.CloudMemcache.ListInstances].
    * 
* * Protobuf type {@code google.cloud.memcache.v1beta2.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.memcache.v1beta2.ListInstancesRequest) com.google.cloud.memcache.v1beta2.ListInstancesRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.memcache.v1beta2.CloudMemcacheProto - .internal_static_google_cloud_memcache_v1beta2_ListInstancesRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.memcache.v1beta2.CloudMemcacheProto.internal_static_google_cloud_memcache_v1beta2_ListInstancesRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.memcache.v1beta2.CloudMemcacheProto - .internal_static_google_cloud_memcache_v1beta2_ListInstancesRequest_fieldAccessorTable + return com.google.cloud.memcache.v1beta2.CloudMemcacheProto.internal_static_google_cloud_memcache_v1beta2_ListInstancesRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.memcache.v1beta2.ListInstancesRequest.class, - com.google.cloud.memcache.v1beta2.ListInstancesRequest.Builder.class); + com.google.cloud.memcache.v1beta2.ListInstancesRequest.class, com.google.cloud.memcache.v1beta2.ListInstancesRequest.Builder.class); } // Construct using com.google.cloud.memcache.v1beta2.ListInstancesRequest.newBuilder() @@ -600,15 +553,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(); @@ -626,9 +580,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.memcache.v1beta2.CloudMemcacheProto - .internal_static_google_cloud_memcache_v1beta2_ListInstancesRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.memcache.v1beta2.CloudMemcacheProto.internal_static_google_cloud_memcache_v1beta2_ListInstancesRequest_descriptor; } @java.lang.Override @@ -647,8 +601,7 @@ public com.google.cloud.memcache.v1beta2.ListInstancesRequest build() { @java.lang.Override public com.google.cloud.memcache.v1beta2.ListInstancesRequest buildPartial() { - com.google.cloud.memcache.v1beta2.ListInstancesRequest result = - new com.google.cloud.memcache.v1beta2.ListInstancesRequest(this); + com.google.cloud.memcache.v1beta2.ListInstancesRequest result = new com.google.cloud.memcache.v1beta2.ListInstancesRequest(this); result.parent_ = parent_; result.pageSize_ = pageSize_; result.pageToken_ = pageToken_; @@ -662,39 +615,38 @@ public com.google.cloud.memcache.v1beta2.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.memcache.v1beta2.ListInstancesRequest) { - return mergeFrom((com.google.cloud.memcache.v1beta2.ListInstancesRequest) other); + return mergeFrom((com.google.cloud.memcache.v1beta2.ListInstancesRequest)other); } else { super.mergeFrom(other); return this; @@ -702,8 +654,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.memcache.v1beta2.ListInstancesRequest other) { - if (other == com.google.cloud.memcache.v1beta2.ListInstancesRequest.getDefaultInstance()) - return this; + if (other == com.google.cloud.memcache.v1beta2.ListInstancesRequest.getDefaultInstance()) return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; onChanged(); @@ -742,8 +693,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.memcache.v1beta2.ListInstancesRequest) e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.memcache.v1beta2.ListInstancesRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -755,24 +705,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; @@ -781,25 +727,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 { @@ -807,82 +750,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.
@@ -893,7 +821,6 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) {
      * 
* * int32 page_size = 2; - * * @return The pageSize. */ @java.lang.Override @@ -901,8 +828,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.
@@ -913,19 +838,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.
@@ -936,11 +858,10 @@ public Builder setPageSize(int value) {
      * 
* * int32 page_size = 2; - * * @return This builder for chaining. */ public Builder clearPageSize() { - + pageSize_ = 0; onChanged(); return this; @@ -948,20 +869,18 @@ public Builder clearPageSize() { private java.lang.Object pageToken_ = ""; /** - * - * *
      * The `next_page_token` value returned from a previous List 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; @@ -970,21 +889,20 @@ public java.lang.String getPageToken() { } } /** - * - * *
      * The `next_page_token` value returned from a previous List 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 { @@ -992,61 +910,54 @@ public com.google.protobuf.ByteString getPageTokenBytes() { } } /** - * - * *
      * The `next_page_token` value returned from a previous List 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 List 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 List 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; @@ -1054,21 +965,19 @@ public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { private java.lang.Object filter_ = ""; /** - * - * *
      * List filter. For example, exclude all Memcached instances with name as
      * my-instance by specifying `"name != my-instance"`.
      * 
* * string filter = 4; - * * @return The filter. */ public java.lang.String getFilter() { java.lang.Object ref = filter_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); filter_ = s; return s; @@ -1077,22 +986,21 @@ public java.lang.String getFilter() { } } /** - * - * *
      * List filter. For example, exclude all Memcached instances with name as
      * my-instance by specifying `"name != my-instance"`.
      * 
* * string filter = 4; - * * @return The bytes for filter. */ - public com.google.protobuf.ByteString getFilterBytes() { + public com.google.protobuf.ByteString + getFilterBytes() { java.lang.Object ref = filter_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); filter_ = b; return b; } else { @@ -1100,64 +1008,57 @@ public com.google.protobuf.ByteString getFilterBytes() { } } /** - * - * *
      * List filter. For example, exclude all Memcached instances with name as
      * my-instance by specifying `"name != my-instance"`.
      * 
* * string filter = 4; - * * @param value The filter to set. * @return This builder for chaining. */ - public Builder setFilter(java.lang.String value) { + public Builder setFilter( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + filter_ = value; onChanged(); return this; } /** - * - * *
      * List filter. For example, exclude all Memcached instances with name as
      * my-instance by specifying `"name != my-instance"`.
      * 
* * string filter = 4; - * * @return This builder for chaining. */ public Builder clearFilter() { - + filter_ = getDefaultInstance().getFilter(); onChanged(); return this; } /** - * - * *
      * List filter. For example, exclude all Memcached instances with name as
      * my-instance by specifying `"name != my-instance"`.
      * 
* * string filter = 4; - * * @param value The bytes for filter to set. * @return This builder for chaining. */ - public Builder setFilterBytes(com.google.protobuf.ByteString value) { + public Builder setFilterBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + filter_ = value; onChanged(); return this; @@ -1165,20 +1066,18 @@ public Builder setFilterBytes(com.google.protobuf.ByteString value) { private java.lang.Object orderBy_ = ""; /** - * - * *
      * Sort results. Supported values are "name", "name desc" or "" (unsorted).
      * 
* * string order_by = 5; - * * @return The orderBy. */ public java.lang.String getOrderBy() { java.lang.Object ref = orderBy_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); orderBy_ = s; return s; @@ -1187,21 +1086,20 @@ public java.lang.String getOrderBy() { } } /** - * - * *
      * Sort results. Supported values are "name", "name desc" or "" (unsorted).
      * 
* * string order_by = 5; - * * @return The bytes for orderBy. */ - public com.google.protobuf.ByteString getOrderByBytes() { + public com.google.protobuf.ByteString + getOrderByBytes() { java.lang.Object ref = orderBy_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); orderBy_ = b; return b; } else { @@ -1209,68 +1107,61 @@ public com.google.protobuf.ByteString getOrderByBytes() { } } /** - * - * *
      * Sort results. Supported values are "name", "name desc" or "" (unsorted).
      * 
* * string order_by = 5; - * * @param value The orderBy to set. * @return This builder for chaining. */ - public Builder setOrderBy(java.lang.String value) { + public Builder setOrderBy( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + orderBy_ = value; onChanged(); return this; } /** - * - * *
      * Sort results. Supported values are "name", "name desc" or "" (unsorted).
      * 
* * string order_by = 5; - * * @return This builder for chaining. */ public Builder clearOrderBy() { - + orderBy_ = getDefaultInstance().getOrderBy(); onChanged(); return this; } /** - * - * *
      * Sort results. Supported values are "name", "name desc" or "" (unsorted).
      * 
* * string order_by = 5; - * * @param value The bytes for orderBy to set. * @return This builder for chaining. */ - public Builder setOrderByBytes(com.google.protobuf.ByteString value) { + public Builder setOrderByBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + orderBy_ = value; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1280,12 +1171,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.memcache.v1beta2.ListInstancesRequest) } // @@protoc_insertion_point(class_scope:google.cloud.memcache.v1beta2.ListInstancesRequest) private static final com.google.cloud.memcache.v1beta2.ListInstancesRequest DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.memcache.v1beta2.ListInstancesRequest(); } @@ -1294,16 +1185,16 @@ public static com.google.cloud.memcache.v1beta2.ListInstancesRequest getDefaultI 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; @@ -1318,4 +1209,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.memcache.v1beta2.ListInstancesRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-memcache-v1beta2/src/main/java/com/google/cloud/memcache/v1beta2/ListInstancesRequestOrBuilder.java b/owl-bot-staging/v1beta2/proto-google-cloud-memcache-v1beta2/src/main/java/com/google/cloud/memcache/v1beta2/ListInstancesRequestOrBuilder.java similarity index 68% rename from proto-google-cloud-memcache-v1beta2/src/main/java/com/google/cloud/memcache/v1beta2/ListInstancesRequestOrBuilder.java rename to owl-bot-staging/v1beta2/proto-google-cloud-memcache-v1beta2/src/main/java/com/google/cloud/memcache/v1beta2/ListInstancesRequestOrBuilder.java index 7c66c9e1..4f8721f9 100644 --- a/proto-google-cloud-memcache-v1beta2/src/main/java/com/google/cloud/memcache/v1beta2/ListInstancesRequestOrBuilder.java +++ b/owl-bot-staging/v1beta2/proto-google-cloud-memcache-v1beta2/src/main/java/com/google/cloud/memcache/v1beta2/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/memcache/v1beta2/cloud_memcache.proto package com.google.cloud.memcache.v1beta2; -public interface ListInstancesRequestOrBuilder - extends +public interface ListInstancesRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.memcache.v1beta2.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,85 +42,69 @@ public interface ListInstancesRequestOrBuilder
    * 
* * int32 page_size = 2; - * * @return The pageSize. */ int getPageSize(); /** - * - * *
    * The `next_page_token` value returned from a previous List request, if any.
    * 
* * string page_token = 3; - * * @return The pageToken. */ java.lang.String getPageToken(); /** - * - * *
    * The `next_page_token` value returned from a previous List request, if any.
    * 
* * string page_token = 3; - * * @return The bytes for pageToken. */ - com.google.protobuf.ByteString getPageTokenBytes(); + com.google.protobuf.ByteString + getPageTokenBytes(); /** - * - * *
    * List filter. For example, exclude all Memcached instances with name as
    * my-instance by specifying `"name != my-instance"`.
    * 
* * string filter = 4; - * * @return The filter. */ java.lang.String getFilter(); /** - * - * *
    * List filter. For example, exclude all Memcached instances with name as
    * my-instance by specifying `"name != my-instance"`.
    * 
* * string filter = 4; - * * @return The bytes for filter. */ - com.google.protobuf.ByteString getFilterBytes(); + com.google.protobuf.ByteString + getFilterBytes(); /** - * - * *
    * Sort results. Supported values are "name", "name desc" or "" (unsorted).
    * 
* * string order_by = 5; - * * @return The orderBy. */ java.lang.String getOrderBy(); /** - * - * *
    * Sort results. Supported values are "name", "name desc" or "" (unsorted).
    * 
* * string order_by = 5; - * * @return The bytes for orderBy. */ - com.google.protobuf.ByteString getOrderByBytes(); + com.google.protobuf.ByteString + getOrderByBytes(); } diff --git a/proto-google-cloud-memcache-v1beta2/src/main/java/com/google/cloud/memcache/v1beta2/ListInstancesResponse.java b/owl-bot-staging/v1beta2/proto-google-cloud-memcache-v1beta2/src/main/java/com/google/cloud/memcache/v1beta2/ListInstancesResponse.java similarity index 77% rename from proto-google-cloud-memcache-v1beta2/src/main/java/com/google/cloud/memcache/v1beta2/ListInstancesResponse.java rename to owl-bot-staging/v1beta2/proto-google-cloud-memcache-v1beta2/src/main/java/com/google/cloud/memcache/v1beta2/ListInstancesResponse.java index 83faa9b9..403aa2c3 100644 --- a/proto-google-cloud-memcache-v1beta2/src/main/java/com/google/cloud/memcache/v1beta2/ListInstancesResponse.java +++ b/owl-bot-staging/v1beta2/proto-google-cloud-memcache-v1beta2/src/main/java/com/google/cloud/memcache/v1beta2/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/memcache/v1beta2/cloud_memcache.proto package com.google.cloud.memcache.v1beta2; /** - * - * *
  * Response for [ListInstances][google.cloud.memcache.v1beta2.CloudMemcache.ListInstances].
  * 
* * Protobuf type {@code google.cloud.memcache.v1beta2.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.memcache.v1beta2.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() { resources_ = 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)) { - resources_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; - } - resources_.add( - input.readMessage( - com.google.cloud.memcache.v1beta2.Instance.parser(), extensionRegistry)); - break; + case 10: { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + resources_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; } - case 18: - { - java.lang.String s = input.readStringRequireUtf8(); + resources_.add( + input.readMessage(com.google.cloud.memcache.v1beta2.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)) { resources_ = java.util.Collections.unmodifiableList(resources_); @@ -127,27 +107,22 @@ private ListInstancesResponse( makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.memcache.v1beta2.CloudMemcacheProto - .internal_static_google_cloud_memcache_v1beta2_ListInstancesResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.memcache.v1beta2.CloudMemcacheProto.internal_static_google_cloud_memcache_v1beta2_ListInstancesResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.memcache.v1beta2.CloudMemcacheProto - .internal_static_google_cloud_memcache_v1beta2_ListInstancesResponse_fieldAccessorTable + return com.google.cloud.memcache.v1beta2.CloudMemcacheProto.internal_static_google_cloud_memcache_v1beta2_ListInstancesResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.memcache.v1beta2.ListInstancesResponse.class, - com.google.cloud.memcache.v1beta2.ListInstancesResponse.Builder.class); + com.google.cloud.memcache.v1beta2.ListInstancesResponse.class, com.google.cloud.memcache.v1beta2.ListInstancesResponse.Builder.class); } public static final int RESOURCES_FIELD_NUMBER = 1; private java.util.List resources_; /** - * - * *
    * A list of Memcached instances in the project in the specified location,
    * or across all locations.
@@ -162,8 +137,6 @@ public java.util.List getResourcesLi
     return resources_;
   }
   /**
-   *
-   *
    * 
    * A list of Memcached instances in the project in the specified location,
    * or across all locations.
@@ -174,13 +147,11 @@ public java.util.List getResourcesLi
    * repeated .google.cloud.memcache.v1beta2.Instance resources = 1;
    */
   @java.lang.Override
-  public java.util.List
+  public java.util.List 
       getResourcesOrBuilderList() {
     return resources_;
   }
   /**
-   *
-   *
    * 
    * A list of Memcached instances in the project in the specified location,
    * or across all locations.
@@ -195,8 +166,6 @@ public int getResourcesCount() {
     return resources_.size();
   }
   /**
-   *
-   *
    * 
    * A list of Memcached instances in the project in the specified location,
    * or across all locations.
@@ -211,8 +180,6 @@ public com.google.cloud.memcache.v1beta2.Instance getResources(int index) {
     return resources_.get(index);
   }
   /**
-   *
-   *
    * 
    * A list of Memcached instances in the project in the specified location,
    * or across all locations.
@@ -223,22 +190,20 @@ public com.google.cloud.memcache.v1beta2.Instance getResources(int index) {
    * repeated .google.cloud.memcache.v1beta2.Instance resources = 1;
    */
   @java.lang.Override
-  public com.google.cloud.memcache.v1beta2.InstanceOrBuilder getResourcesOrBuilder(int index) {
+  public com.google.cloud.memcache.v1beta2.InstanceOrBuilder getResourcesOrBuilder(
+      int index) {
     return resources_.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 @@ -247,30 +212,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 { @@ -281,42 +246,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. */ @@ -324,23 +281,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; @@ -352,7 +306,8 @@ public final boolean isInitialized() { } @java.lang.Override - 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 < resources_.size(); i++) { output.writeMessage(1, resources_.get(i)); } @@ -372,7 +327,8 @@ public int getSerializedSize() { size = 0; for (int i = 0; i < resources_.size(); i++) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, resources_.get(i)); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, resources_.get(i)); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextPageToken_); @@ -393,17 +349,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.memcache.v1beta2.ListInstancesResponse)) { return super.equals(obj); } - com.google.cloud.memcache.v1beta2.ListInstancesResponse other = - (com.google.cloud.memcache.v1beta2.ListInstancesResponse) obj; + com.google.cloud.memcache.v1beta2.ListInstancesResponse other = (com.google.cloud.memcache.v1beta2.ListInstancesResponse) obj; - if (!getResourcesList().equals(other.getResourcesList())) return false; - if (!getNextPageToken().equals(other.getNextPageToken())) return false; - if (!getUnreachableList().equals(other.getUnreachableList())) return false; + if (!getResourcesList() + .equals(other.getResourcesList())) 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; } @@ -431,127 +389,117 @@ public int hashCode() { } public static com.google.cloud.memcache.v1beta2.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.memcache.v1beta2.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.memcache.v1beta2.ListInstancesResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.memcache.v1beta2.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.memcache.v1beta2.ListInstancesResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.memcache.v1beta2.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.memcache.v1beta2.ListInstancesResponse parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.memcache.v1beta2.ListInstancesResponse parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.memcache.v1beta2.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.memcache.v1beta2.ListInstancesResponse parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.memcache.v1beta2.ListInstancesResponse parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.memcache.v1beta2.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.memcache.v1beta2.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.memcache.v1beta2.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.memcache.v1beta2.ListInstancesResponse prototype) { + public static Builder newBuilder(com.google.cloud.memcache.v1beta2.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.memcache.v1beta2.CloudMemcache.ListInstances].
    * 
* * Protobuf type {@code google.cloud.memcache.v1beta2.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.memcache.v1beta2.ListInstancesResponse) com.google.cloud.memcache.v1beta2.ListInstancesResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.memcache.v1beta2.CloudMemcacheProto - .internal_static_google_cloud_memcache_v1beta2_ListInstancesResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.memcache.v1beta2.CloudMemcacheProto.internal_static_google_cloud_memcache_v1beta2_ListInstancesResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.memcache.v1beta2.CloudMemcacheProto - .internal_static_google_cloud_memcache_v1beta2_ListInstancesResponse_fieldAccessorTable + return com.google.cloud.memcache.v1beta2.CloudMemcacheProto.internal_static_google_cloud_memcache_v1beta2_ListInstancesResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.memcache.v1beta2.ListInstancesResponse.class, - com.google.cloud.memcache.v1beta2.ListInstancesResponse.Builder.class); + com.google.cloud.memcache.v1beta2.ListInstancesResponse.class, com.google.cloud.memcache.v1beta2.ListInstancesResponse.Builder.class); } // Construct using com.google.cloud.memcache.v1beta2.ListInstancesResponse.newBuilder() @@ -559,17 +507,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) { getResourcesFieldBuilder(); } } - @java.lang.Override public Builder clear() { super.clear(); @@ -587,9 +535,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.memcache.v1beta2.CloudMemcacheProto - .internal_static_google_cloud_memcache_v1beta2_ListInstancesResponse_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.memcache.v1beta2.CloudMemcacheProto.internal_static_google_cloud_memcache_v1beta2_ListInstancesResponse_descriptor; } @java.lang.Override @@ -608,8 +556,7 @@ public com.google.cloud.memcache.v1beta2.ListInstancesResponse build() { @java.lang.Override public com.google.cloud.memcache.v1beta2.ListInstancesResponse buildPartial() { - com.google.cloud.memcache.v1beta2.ListInstancesResponse result = - new com.google.cloud.memcache.v1beta2.ListInstancesResponse(this); + com.google.cloud.memcache.v1beta2.ListInstancesResponse result = new com.google.cloud.memcache.v1beta2.ListInstancesResponse(this); int from_bitField0_ = bitField0_; if (resourcesBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { @@ -634,39 +581,38 @@ public com.google.cloud.memcache.v1beta2.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.memcache.v1beta2.ListInstancesResponse) { - return mergeFrom((com.google.cloud.memcache.v1beta2.ListInstancesResponse) other); + return mergeFrom((com.google.cloud.memcache.v1beta2.ListInstancesResponse)other); } else { super.mergeFrom(other); return this; @@ -674,8 +620,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.memcache.v1beta2.ListInstancesResponse other) { - if (other == com.google.cloud.memcache.v1beta2.ListInstancesResponse.getDefaultInstance()) - return this; + if (other == com.google.cloud.memcache.v1beta2.ListInstancesResponse.getDefaultInstance()) return this; if (resourcesBuilder_ == null) { if (!other.resources_.isEmpty()) { if (resources_.isEmpty()) { @@ -694,10 +639,9 @@ public Builder mergeFrom(com.google.cloud.memcache.v1beta2.ListInstancesResponse resourcesBuilder_ = null; resources_ = other.resources_; bitField0_ = (bitField0_ & ~0x00000001); - resourcesBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getResourcesFieldBuilder() - : null; + resourcesBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getResourcesFieldBuilder() : null; } else { resourcesBuilder_.addAllMessages(other.resources_); } @@ -736,8 +680,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.memcache.v1beta2.ListInstancesResponse) e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.memcache.v1beta2.ListInstancesResponse) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -746,29 +689,21 @@ public Builder mergeFrom( } return this; } - private int bitField0_; private java.util.List resources_ = - java.util.Collections.emptyList(); - + java.util.Collections.emptyList(); private void ensureResourcesIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { - resources_ = - new java.util.ArrayList(resources_); + resources_ = new java.util.ArrayList(resources_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.memcache.v1beta2.Instance, - com.google.cloud.memcache.v1beta2.Instance.Builder, - com.google.cloud.memcache.v1beta2.InstanceOrBuilder> - resourcesBuilder_; + com.google.cloud.memcache.v1beta2.Instance, com.google.cloud.memcache.v1beta2.Instance.Builder, com.google.cloud.memcache.v1beta2.InstanceOrBuilder> resourcesBuilder_; /** - * - * *
      * A list of Memcached instances in the project in the specified location,
      * or across all locations.
@@ -786,8 +721,6 @@ public java.util.List getResourcesLi
       }
     }
     /**
-     *
-     *
      * 
      * A list of Memcached instances in the project in the specified location,
      * or across all locations.
@@ -805,8 +738,6 @@ public int getResourcesCount() {
       }
     }
     /**
-     *
-     *
      * 
      * A list of Memcached instances in the project in the specified location,
      * or across all locations.
@@ -824,8 +755,6 @@ public com.google.cloud.memcache.v1beta2.Instance getResources(int index) {
       }
     }
     /**
-     *
-     *
      * 
      * A list of Memcached instances in the project in the specified location,
      * or across all locations.
@@ -835,7 +764,8 @@ public com.google.cloud.memcache.v1beta2.Instance getResources(int index) {
      *
      * repeated .google.cloud.memcache.v1beta2.Instance resources = 1;
      */
-    public Builder setResources(int index, com.google.cloud.memcache.v1beta2.Instance value) {
+    public Builder setResources(
+        int index, com.google.cloud.memcache.v1beta2.Instance value) {
       if (resourcesBuilder_ == null) {
         if (value == null) {
           throw new NullPointerException();
@@ -849,8 +779,6 @@ public Builder setResources(int index, com.google.cloud.memcache.v1beta2.Instanc
       return this;
     }
     /**
-     *
-     *
      * 
      * A list of Memcached instances in the project in the specified location,
      * or across all locations.
@@ -872,8 +800,6 @@ public Builder setResources(
       return this;
     }
     /**
-     *
-     *
      * 
      * A list of Memcached instances in the project in the specified location,
      * or across all locations.
@@ -897,8 +823,6 @@ public Builder addResources(com.google.cloud.memcache.v1beta2.Instance value) {
       return this;
     }
     /**
-     *
-     *
      * 
      * A list of Memcached instances in the project in the specified location,
      * or across all locations.
@@ -908,7 +832,8 @@ public Builder addResources(com.google.cloud.memcache.v1beta2.Instance value) {
      *
      * repeated .google.cloud.memcache.v1beta2.Instance resources = 1;
      */
-    public Builder addResources(int index, com.google.cloud.memcache.v1beta2.Instance value) {
+    public Builder addResources(
+        int index, com.google.cloud.memcache.v1beta2.Instance value) {
       if (resourcesBuilder_ == null) {
         if (value == null) {
           throw new NullPointerException();
@@ -922,8 +847,6 @@ public Builder addResources(int index, com.google.cloud.memcache.v1beta2.Instanc
       return this;
     }
     /**
-     *
-     *
      * 
      * A list of Memcached instances in the project in the specified location,
      * or across all locations.
@@ -945,8 +868,6 @@ public Builder addResources(
       return this;
     }
     /**
-     *
-     *
      * 
      * A list of Memcached instances in the project in the specified location,
      * or across all locations.
@@ -968,8 +889,6 @@ public Builder addResources(
       return this;
     }
     /**
-     *
-     *
      * 
      * A list of Memcached instances in the project in the specified location,
      * or across all locations.
@@ -983,7 +902,8 @@ public Builder addAllResources(
         java.lang.Iterable values) {
       if (resourcesBuilder_ == null) {
         ensureResourcesIsMutable();
-        com.google.protobuf.AbstractMessageLite.Builder.addAll(values, resources_);
+        com.google.protobuf.AbstractMessageLite.Builder.addAll(
+            values, resources_);
         onChanged();
       } else {
         resourcesBuilder_.addAllMessages(values);
@@ -991,8 +911,6 @@ public Builder addAllResources(
       return this;
     }
     /**
-     *
-     *
      * 
      * A list of Memcached instances in the project in the specified location,
      * or across all locations.
@@ -1013,8 +931,6 @@ public Builder clearResources() {
       return this;
     }
     /**
-     *
-     *
      * 
      * A list of Memcached instances in the project in the specified location,
      * or across all locations.
@@ -1035,8 +951,6 @@ public Builder removeResources(int index) {
       return this;
     }
     /**
-     *
-     *
      * 
      * A list of Memcached instances in the project in the specified location,
      * or across all locations.
@@ -1046,12 +960,11 @@ public Builder removeResources(int index) {
      *
      * repeated .google.cloud.memcache.v1beta2.Instance resources = 1;
      */
-    public com.google.cloud.memcache.v1beta2.Instance.Builder getResourcesBuilder(int index) {
+    public com.google.cloud.memcache.v1beta2.Instance.Builder getResourcesBuilder(
+        int index) {
       return getResourcesFieldBuilder().getBuilder(index);
     }
     /**
-     *
-     *
      * 
      * A list of Memcached instances in the project in the specified location,
      * or across all locations.
@@ -1061,16 +974,14 @@ public com.google.cloud.memcache.v1beta2.Instance.Builder getResourcesBuilder(in
      *
      * repeated .google.cloud.memcache.v1beta2.Instance resources = 1;
      */
-    public com.google.cloud.memcache.v1beta2.InstanceOrBuilder getResourcesOrBuilder(int index) {
+    public com.google.cloud.memcache.v1beta2.InstanceOrBuilder getResourcesOrBuilder(
+        int index) {
       if (resourcesBuilder_ == null) {
-        return resources_.get(index);
-      } else {
+        return resources_.get(index);  } else {
         return resourcesBuilder_.getMessageOrBuilder(index);
       }
     }
     /**
-     *
-     *
      * 
      * A list of Memcached instances in the project in the specified location,
      * or across all locations.
@@ -1080,8 +991,8 @@ public com.google.cloud.memcache.v1beta2.InstanceOrBuilder getResourcesOrBuilder
      *
      * repeated .google.cloud.memcache.v1beta2.Instance resources = 1;
      */
-    public java.util.List
-        getResourcesOrBuilderList() {
+    public java.util.List 
+         getResourcesOrBuilderList() {
       if (resourcesBuilder_ != null) {
         return resourcesBuilder_.getMessageOrBuilderList();
       } else {
@@ -1089,8 +1000,6 @@ public com.google.cloud.memcache.v1beta2.InstanceOrBuilder getResourcesOrBuilder
       }
     }
     /**
-     *
-     *
      * 
      * A list of Memcached instances in the project in the specified location,
      * or across all locations.
@@ -1101,12 +1010,10 @@ public com.google.cloud.memcache.v1beta2.InstanceOrBuilder getResourcesOrBuilder
      * repeated .google.cloud.memcache.v1beta2.Instance resources = 1;
      */
     public com.google.cloud.memcache.v1beta2.Instance.Builder addResourcesBuilder() {
-      return getResourcesFieldBuilder()
-          .addBuilder(com.google.cloud.memcache.v1beta2.Instance.getDefaultInstance());
+      return getResourcesFieldBuilder().addBuilder(
+          com.google.cloud.memcache.v1beta2.Instance.getDefaultInstance());
     }
     /**
-     *
-     *
      * 
      * A list of Memcached instances in the project in the specified location,
      * or across all locations.
@@ -1116,13 +1023,12 @@ public com.google.cloud.memcache.v1beta2.Instance.Builder addResourcesBuilder()
      *
      * repeated .google.cloud.memcache.v1beta2.Instance resources = 1;
      */
-    public com.google.cloud.memcache.v1beta2.Instance.Builder addResourcesBuilder(int index) {
-      return getResourcesFieldBuilder()
-          .addBuilder(index, com.google.cloud.memcache.v1beta2.Instance.getDefaultInstance());
+    public com.google.cloud.memcache.v1beta2.Instance.Builder addResourcesBuilder(
+        int index) {
+      return getResourcesFieldBuilder().addBuilder(
+          index, com.google.cloud.memcache.v1beta2.Instance.getDefaultInstance());
     }
     /**
-     *
-     *
      * 
      * A list of Memcached instances in the project in the specified location,
      * or across all locations.
@@ -1132,23 +1038,20 @@ public com.google.cloud.memcache.v1beta2.Instance.Builder addResourcesBuilder(in
      *
      * repeated .google.cloud.memcache.v1beta2.Instance resources = 1;
      */
-    public java.util.List
-        getResourcesBuilderList() {
+    public java.util.List 
+         getResourcesBuilderList() {
       return getResourcesFieldBuilder().getBuilderList();
     }
-
     private com.google.protobuf.RepeatedFieldBuilderV3<
-            com.google.cloud.memcache.v1beta2.Instance,
-            com.google.cloud.memcache.v1beta2.Instance.Builder,
-            com.google.cloud.memcache.v1beta2.InstanceOrBuilder>
+        com.google.cloud.memcache.v1beta2.Instance, com.google.cloud.memcache.v1beta2.Instance.Builder, com.google.cloud.memcache.v1beta2.InstanceOrBuilder> 
         getResourcesFieldBuilder() {
       if (resourcesBuilder_ == null) {
-        resourcesBuilder_ =
-            new com.google.protobuf.RepeatedFieldBuilderV3<
-                com.google.cloud.memcache.v1beta2.Instance,
-                com.google.cloud.memcache.v1beta2.Instance.Builder,
-                com.google.cloud.memcache.v1beta2.InstanceOrBuilder>(
-                resources_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean());
+        resourcesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
+            com.google.cloud.memcache.v1beta2.Instance, com.google.cloud.memcache.v1beta2.Instance.Builder, com.google.cloud.memcache.v1beta2.InstanceOrBuilder>(
+                resources_,
+                ((bitField0_ & 0x00000001) != 0),
+                getParentForChildren(),
+                isClean());
         resources_ = null;
       }
       return resourcesBuilder_;
@@ -1156,21 +1059,19 @@ public com.google.cloud.memcache.v1beta2.Instance.Builder addResourcesBuilder(in
 
     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; @@ -1179,22 +1080,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 { @@ -1202,115 +1102,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. */ @@ -1318,90 +1201,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() { @@ -1411,30 +1284,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); } @@ -1444,12 +1315,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.memcache.v1beta2.ListInstancesResponse) } // @@protoc_insertion_point(class_scope:google.cloud.memcache.v1beta2.ListInstancesResponse) private static final com.google.cloud.memcache.v1beta2.ListInstancesResponse DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.memcache.v1beta2.ListInstancesResponse(); } @@ -1458,16 +1329,16 @@ public static com.google.cloud.memcache.v1beta2.ListInstancesResponse getDefault 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; @@ -1482,4 +1353,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.memcache.v1beta2.ListInstancesResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-memcache-v1beta2/src/main/java/com/google/cloud/memcache/v1beta2/ListInstancesResponseOrBuilder.java b/owl-bot-staging/v1beta2/proto-google-cloud-memcache-v1beta2/src/main/java/com/google/cloud/memcache/v1beta2/ListInstancesResponseOrBuilder.java similarity index 78% rename from proto-google-cloud-memcache-v1beta2/src/main/java/com/google/cloud/memcache/v1beta2/ListInstancesResponseOrBuilder.java rename to owl-bot-staging/v1beta2/proto-google-cloud-memcache-v1beta2/src/main/java/com/google/cloud/memcache/v1beta2/ListInstancesResponseOrBuilder.java index 35c4ee5a..21cd4af9 100644 --- a/proto-google-cloud-memcache-v1beta2/src/main/java/com/google/cloud/memcache/v1beta2/ListInstancesResponseOrBuilder.java +++ b/owl-bot-staging/v1beta2/proto-google-cloud-memcache-v1beta2/src/main/java/com/google/cloud/memcache/v1beta2/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/memcache/v1beta2/cloud_memcache.proto package com.google.cloud.memcache.v1beta2; -public interface ListInstancesResponseOrBuilder - extends +public interface ListInstancesResponseOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.memcache.v1beta2.ListInstancesResponse) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * A list of Memcached instances in the project in the specified location,
    * or across all locations.
@@ -35,10 +17,9 @@ public interface ListInstancesResponseOrBuilder
    *
    * repeated .google.cloud.memcache.v1beta2.Instance resources = 1;
    */
-  java.util.List getResourcesList();
+  java.util.List 
+      getResourcesList();
   /**
-   *
-   *
    * 
    * A list of Memcached instances in the project in the specified location,
    * or across all locations.
@@ -50,8 +31,6 @@ public interface ListInstancesResponseOrBuilder
    */
   com.google.cloud.memcache.v1beta2.Instance getResources(int index);
   /**
-   *
-   *
    * 
    * A list of Memcached instances in the project in the specified location,
    * or across all locations.
@@ -63,8 +42,6 @@ public interface ListInstancesResponseOrBuilder
    */
   int getResourcesCount();
   /**
-   *
-   *
    * 
    * A list of Memcached instances in the project in the specified location,
    * or across all locations.
@@ -74,11 +51,9 @@ public interface ListInstancesResponseOrBuilder
    *
    * repeated .google.cloud.memcache.v1beta2.Instance resources = 1;
    */
-  java.util.List
+  java.util.List 
       getResourcesOrBuilderList();
   /**
-   *
-   *
    * 
    * A list of Memcached instances in the project in the specified location,
    * or across all locations.
@@ -88,83 +63,69 @@ public interface ListInstancesResponseOrBuilder
    *
    * repeated .google.cloud.memcache.v1beta2.Instance resources = 1;
    */
-  com.google.cloud.memcache.v1beta2.InstanceOrBuilder getResourcesOrBuilder(int index);
+  com.google.cloud.memcache.v1beta2.InstanceOrBuilder getResourcesOrBuilder(
+      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-memcache-v1beta2/src/main/java/com/google/cloud/memcache/v1beta2/LocationMetadata.java b/owl-bot-staging/v1beta2/proto-google-cloud-memcache-v1beta2/src/main/java/com/google/cloud/memcache/v1beta2/LocationMetadata.java similarity index 60% rename from proto-google-cloud-memcache-v1beta2/src/main/java/com/google/cloud/memcache/v1beta2/LocationMetadata.java rename to owl-bot-staging/v1beta2/proto-google-cloud-memcache-v1beta2/src/main/java/com/google/cloud/memcache/v1beta2/LocationMetadata.java index 775beafc..bcec6d90 100644 --- a/proto-google-cloud-memcache-v1beta2/src/main/java/com/google/cloud/memcache/v1beta2/LocationMetadata.java +++ b/owl-bot-staging/v1beta2/proto-google-cloud-memcache-v1beta2/src/main/java/com/google/cloud/memcache/v1beta2/LocationMetadata.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/memcache/v1beta2/cloud_memcache.proto package com.google.cloud.memcache.v1beta2; /** - * - * *
  * Metadata for the given [google.cloud.location.Location][google.cloud.location.Location].
  * 
* * Protobuf type {@code google.cloud.memcache.v1beta2.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.memcache.v1beta2.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) @@ -69,32 +53,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.memcache.v1beta2.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) { @@ -102,63 +80,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.memcache.v1beta2.CloudMemcacheProto - .internal_static_google_cloud_memcache_v1beta2_LocationMetadata_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.memcache.v1beta2.CloudMemcacheProto.internal_static_google_cloud_memcache_v1beta2_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.memcache.v1beta2.CloudMemcacheProto - .internal_static_google_cloud_memcache_v1beta2_LocationMetadata_fieldAccessorTable + return com.google.cloud.memcache.v1beta2.CloudMemcacheProto.internal_static_google_cloud_memcache_v1beta2_LocationMetadata_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.memcache.v1beta2.LocationMetadata.class, - com.google.cloud.memcache.v1beta2.LocationMetadata.Builder.class); + com.google.cloud.memcache.v1beta2.LocationMetadata.class, com.google.cloud.memcache.v1beta2.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.memcache.v1beta2.ZoneMetadata> - defaultEntry = + java.lang.String, com.google.cloud.memcache.v1beta2.ZoneMetadata> defaultEntry = com.google.protobuf.MapEntry - . - newDefaultInstance( - com.google.cloud.memcache.v1beta2.CloudMemcacheProto - .internal_static_google_cloud_memcache_v1beta2_LocationMetadata_AvailableZonesEntry_descriptor, - com.google.protobuf.WireFormat.FieldType.STRING, - "", - com.google.protobuf.WireFormat.FieldType.MESSAGE, - com.google.cloud.memcache.v1beta2.ZoneMetadata.getDefaultInstance()); + .newDefaultInstance( + com.google.cloud.memcache.v1beta2.CloudMemcacheProto.internal_static_google_cloud_memcache_v1beta2_LocationMetadata_AvailableZonesEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.STRING, + "", + com.google.protobuf.WireFormat.FieldType.MESSAGE, + com.google.cloud.memcache.v1beta2.ZoneMetadata.getDefaultInstance()); } - - private com.google.protobuf.MapField< - java.lang.String, com.google.cloud.memcache.v1beta2.ZoneMetadata> - availableZones_; - private com.google.protobuf.MapField< - java.lang.String, com.google.cloud.memcache.v1beta2.ZoneMetadata> - internalGetAvailableZones() { + java.lang.String, com.google.cloud.memcache.v1beta2.ZoneMetadata> availableZones_; + private com.google.protobuf.MapField + internalGetAvailableZones() { if (availableZones_ == null) { return com.google.protobuf.MapField.emptyMapField( AvailableZonesDefaultEntryHolder.defaultEntry); @@ -170,92 +139,76 @@ 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
    * specified in the `zones` field when creating a Memcached instance.
    * 
* - * - * map<string, .google.cloud.memcache.v1beta2.ZoneMetadata> available_zones = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * map<string, .google.cloud.memcache.v1beta2.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
    * specified in the `zones` field when creating a Memcached instance.
    * 
* - * - * map<string, .google.cloud.memcache.v1beta2.ZoneMetadata> available_zones = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * map<string, .google.cloud.memcache.v1beta2.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
    * specified in the `zones` field when creating a Memcached instance.
    * 
* - * - * map<string, .google.cloud.memcache.v1beta2.ZoneMetadata> available_zones = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * map<string, .google.cloud.memcache.v1beta2.ZoneMetadata> available_zones = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override + public com.google.cloud.memcache.v1beta2.ZoneMetadata getAvailableZonesOrDefault( - java.lang.String key, com.google.cloud.memcache.v1beta2.ZoneMetadata defaultValue) { - if (key == null) { - throw new NullPointerException("map key"); - } + java.lang.String key, + com.google.cloud.memcache.v1beta2.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
    * specified in the `zones` field when creating a Memcached instance.
    * 
* - * - * map<string, .google.cloud.memcache.v1beta2.ZoneMetadata> available_zones = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * map<string, .google.cloud.memcache.v1beta2.ZoneMetadata> available_zones = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override + public com.google.cloud.memcache.v1beta2.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)) { @@ -265,7 +218,6 @@ public com.google.cloud.memcache.v1beta2.ZoneMetadata getAvailableZonesOrThrow( } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -277,9 +229,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); } @@ -289,16 +246,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; @@ -308,15 +264,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.memcache.v1beta2.LocationMetadata)) { return super.equals(obj); } - com.google.cloud.memcache.v1beta2.LocationMetadata other = - (com.google.cloud.memcache.v1beta2.LocationMetadata) obj; + com.google.cloud.memcache.v1beta2.LocationMetadata other = (com.google.cloud.memcache.v1beta2.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; } @@ -338,146 +294,139 @@ public int hashCode() { } public static com.google.cloud.memcache.v1beta2.LocationMetadata parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.memcache.v1beta2.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.memcache.v1beta2.LocationMetadata parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.memcache.v1beta2.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.memcache.v1beta2.LocationMetadata parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.memcache.v1beta2.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.memcache.v1beta2.LocationMetadata parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.memcache.v1beta2.LocationMetadata parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.memcache.v1beta2.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.memcache.v1beta2.LocationMetadata parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.memcache.v1beta2.LocationMetadata parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.memcache.v1beta2.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.memcache.v1beta2.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.memcache.v1beta2.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.memcache.v1beta2.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; } /** - * - * *
    * Metadata for the given [google.cloud.location.Location][google.cloud.location.Location].
    * 
* * Protobuf type {@code google.cloud.memcache.v1beta2.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.memcache.v1beta2.LocationMetadata) com.google.cloud.memcache.v1beta2.LocationMetadataOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.memcache.v1beta2.CloudMemcacheProto - .internal_static_google_cloud_memcache_v1beta2_LocationMetadata_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.memcache.v1beta2.CloudMemcacheProto.internal_static_google_cloud_memcache_v1beta2_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.memcache.v1beta2.CloudMemcacheProto - .internal_static_google_cloud_memcache_v1beta2_LocationMetadata_fieldAccessorTable + return com.google.cloud.memcache.v1beta2.CloudMemcacheProto.internal_static_google_cloud_memcache_v1beta2_LocationMetadata_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.memcache.v1beta2.LocationMetadata.class, - com.google.cloud.memcache.v1beta2.LocationMetadata.Builder.class); + com.google.cloud.memcache.v1beta2.LocationMetadata.class, com.google.cloud.memcache.v1beta2.LocationMetadata.Builder.class); } // Construct using com.google.cloud.memcache.v1beta2.LocationMetadata.newBuilder() @@ -485,15 +434,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(); @@ -502,9 +452,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.memcache.v1beta2.CloudMemcacheProto - .internal_static_google_cloud_memcache_v1beta2_LocationMetadata_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.memcache.v1beta2.CloudMemcacheProto.internal_static_google_cloud_memcache_v1beta2_LocationMetadata_descriptor; } @java.lang.Override @@ -523,8 +473,7 @@ public com.google.cloud.memcache.v1beta2.LocationMetadata build() { @java.lang.Override public com.google.cloud.memcache.v1beta2.LocationMetadata buildPartial() { - com.google.cloud.memcache.v1beta2.LocationMetadata result = - new com.google.cloud.memcache.v1beta2.LocationMetadata(this); + com.google.cloud.memcache.v1beta2.LocationMetadata result = new com.google.cloud.memcache.v1beta2.LocationMetadata(this); int from_bitField0_ = bitField0_; result.availableZones_ = internalGetAvailableZones(); result.availableZones_.makeImmutable(); @@ -536,39 +485,38 @@ public com.google.cloud.memcache.v1beta2.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.memcache.v1beta2.LocationMetadata) { - return mergeFrom((com.google.cloud.memcache.v1beta2.LocationMetadata) other); + return mergeFrom((com.google.cloud.memcache.v1beta2.LocationMetadata)other); } else { super.mergeFrom(other); return this; @@ -576,9 +524,9 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.memcache.v1beta2.LocationMetadata other) { - if (other == com.google.cloud.memcache.v1beta2.LocationMetadata.getDefaultInstance()) - return this; - internalGetMutableAvailableZones().mergeFrom(other.internalGetAvailableZones()); + if (other == com.google.cloud.memcache.v1beta2.LocationMetadata.getDefaultInstance()) return this; + internalGetMutableAvailableZones().mergeFrom( + other.internalGetAvailableZones()); this.mergeUnknownFields(other.unknownFields); onChanged(); return this; @@ -598,8 +546,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.memcache.v1beta2.LocationMetadata) e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.memcache.v1beta2.LocationMetadata) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -608,31 +555,24 @@ public Builder mergeFrom( } return this; } - private int bitField0_; private com.google.protobuf.MapField< - java.lang.String, com.google.cloud.memcache.v1beta2.ZoneMetadata> - availableZones_; - - private com.google.protobuf.MapField< - java.lang.String, com.google.cloud.memcache.v1beta2.ZoneMetadata> - internalGetAvailableZones() { + java.lang.String, com.google.cloud.memcache.v1beta2.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.memcache.v1beta2.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(); @@ -644,92 +584,76 @@ 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
      * specified in the `zones` field when creating a Memcached instance.
      * 
* - * - * map<string, .google.cloud.memcache.v1beta2.ZoneMetadata> available_zones = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * map<string, .google.cloud.memcache.v1beta2.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
      * specified in the `zones` field when creating a Memcached instance.
      * 
* - * - * map<string, .google.cloud.memcache.v1beta2.ZoneMetadata> available_zones = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * map<string, .google.cloud.memcache.v1beta2.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
      * specified in the `zones` field when creating a Memcached instance.
      * 
* - * - * map<string, .google.cloud.memcache.v1beta2.ZoneMetadata> available_zones = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * map<string, .google.cloud.memcache.v1beta2.ZoneMetadata> available_zones = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override + public com.google.cloud.memcache.v1beta2.ZoneMetadata getAvailableZonesOrDefault( - java.lang.String key, com.google.cloud.memcache.v1beta2.ZoneMetadata defaultValue) { - if (key == null) { - throw new NullPointerException("map key"); - } + java.lang.String key, + com.google.cloud.memcache.v1beta2.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
      * specified in the `zones` field when creating a Memcached instance.
      * 
* - * - * map<string, .google.cloud.memcache.v1beta2.ZoneMetadata> available_zones = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * map<string, .google.cloud.memcache.v1beta2.ZoneMetadata> available_zones = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override + public com.google.cloud.memcache.v1beta2.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)) { @@ -739,81 +663,75 @@ public com.google.cloud.memcache.v1beta2.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
      * specified in the `zones` field when creating a Memcached instance.
      * 
* - * - * map<string, .google.cloud.memcache.v1beta2.ZoneMetadata> available_zones = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * map<string, .google.cloud.memcache.v1beta2.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
      * specified in the `zones` field when creating a Memcached instance.
      * 
* - * - * map<string, .google.cloud.memcache.v1beta2.ZoneMetadata> available_zones = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * map<string, .google.cloud.memcache.v1beta2.ZoneMetadata> available_zones = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder putAvailableZones( - java.lang.String key, com.google.cloud.memcache.v1beta2.ZoneMetadata value) { - if (key == null) { - throw new NullPointerException("map key"); - } + java.lang.String key, + com.google.cloud.memcache.v1beta2.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
      * specified in the `zones` field when creating a Memcached instance.
      * 
* - * - * map<string, .google.cloud.memcache.v1beta2.ZoneMetadata> available_zones = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * map<string, .google.cloud.memcache.v1beta2.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); } @@ -823,12 +741,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.memcache.v1beta2.LocationMetadata) } // @@protoc_insertion_point(class_scope:google.cloud.memcache.v1beta2.LocationMetadata) private static final com.google.cloud.memcache.v1beta2.LocationMetadata DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.memcache.v1beta2.LocationMetadata(); } @@ -837,16 +755,16 @@ public static com.google.cloud.memcache.v1beta2.LocationMetadata getDefaultInsta 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; @@ -861,4 +779,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.memcache.v1beta2.LocationMetadata getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-memcache-v1beta2/src/main/java/com/google/cloud/memcache/v1beta2/LocationMetadataOrBuilder.java b/owl-bot-staging/v1beta2/proto-google-cloud-memcache-v1beta2/src/main/java/com/google/cloud/memcache/v1beta2/LocationMetadataOrBuilder.java similarity index 52% rename from proto-google-cloud-memcache-v1beta2/src/main/java/com/google/cloud/memcache/v1beta2/LocationMetadataOrBuilder.java rename to owl-bot-staging/v1beta2/proto-google-cloud-memcache-v1beta2/src/main/java/com/google/cloud/memcache/v1beta2/LocationMetadataOrBuilder.java index abceeea7..53070c05 100644 --- a/proto-google-cloud-memcache-v1beta2/src/main/java/com/google/cloud/memcache/v1beta2/LocationMetadataOrBuilder.java +++ b/owl-bot-staging/v1beta2/proto-google-cloud-memcache-v1beta2/src/main/java/com/google/cloud/memcache/v1beta2/LocationMetadataOrBuilder.java @@ -1,106 +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/memcache/v1beta2/cloud_memcache.proto package com.google.cloud.memcache.v1beta2; -public interface LocationMetadataOrBuilder - extends +public interface LocationMetadataOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.memcache.v1beta2.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
    * specified in the `zones` field when creating a Memcached instance.
    * 
* - * - * map<string, .google.cloud.memcache.v1beta2.ZoneMetadata> available_zones = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * map<string, .google.cloud.memcache.v1beta2.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
    * specified in the `zones` field when creating a Memcached instance.
    * 
* - * - * map<string, .google.cloud.memcache.v1beta2.ZoneMetadata> available_zones = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * map<string, .google.cloud.memcache.v1beta2.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(); + 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
    * specified in the `zones` field when creating a Memcached instance.
    * 
* - * - * map<string, .google.cloud.memcache.v1beta2.ZoneMetadata> available_zones = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * map<string, .google.cloud.memcache.v1beta2.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
    * specified in the `zones` field when creating a Memcached instance.
    * 
* - * - * map<string, .google.cloud.memcache.v1beta2.ZoneMetadata> available_zones = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * map<string, .google.cloud.memcache.v1beta2.ZoneMetadata> available_zones = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ /* nullable */ - com.google.cloud.memcache.v1beta2.ZoneMetadata getAvailableZonesOrDefault( +com.google.cloud.memcache.v1beta2.ZoneMetadata getAvailableZonesOrDefault( java.lang.String key, /* nullable */ - com.google.cloud.memcache.v1beta2.ZoneMetadata defaultValue); +com.google.cloud.memcache.v1beta2.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
    * specified in the `zones` field when creating a Memcached instance.
    * 
* - * - * map<string, .google.cloud.memcache.v1beta2.ZoneMetadata> available_zones = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * map<string, .google.cloud.memcache.v1beta2.ZoneMetadata> available_zones = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - com.google.cloud.memcache.v1beta2.ZoneMetadata getAvailableZonesOrThrow(java.lang.String key); + + com.google.cloud.memcache.v1beta2.ZoneMetadata getAvailableZonesOrThrow( + java.lang.String key); } diff --git a/proto-google-cloud-memcache-v1beta2/src/main/java/com/google/cloud/memcache/v1beta2/LocationName.java b/owl-bot-staging/v1beta2/proto-google-cloud-memcache-v1beta2/src/main/java/com/google/cloud/memcache/v1beta2/LocationName.java similarity index 100% rename from proto-google-cloud-memcache-v1beta2/src/main/java/com/google/cloud/memcache/v1beta2/LocationName.java rename to owl-bot-staging/v1beta2/proto-google-cloud-memcache-v1beta2/src/main/java/com/google/cloud/memcache/v1beta2/LocationName.java diff --git a/proto-google-cloud-memcache-v1beta2/src/main/java/com/google/cloud/memcache/v1beta2/MemcacheParameters.java b/owl-bot-staging/v1beta2/proto-google-cloud-memcache-v1beta2/src/main/java/com/google/cloud/memcache/v1beta2/MemcacheParameters.java similarity index 63% rename from proto-google-cloud-memcache-v1beta2/src/main/java/com/google/cloud/memcache/v1beta2/MemcacheParameters.java rename to owl-bot-staging/v1beta2/proto-google-cloud-memcache-v1beta2/src/main/java/com/google/cloud/memcache/v1beta2/MemcacheParameters.java index f0bfb3c3..12a532e4 100644 --- a/proto-google-cloud-memcache-v1beta2/src/main/java/com/google/cloud/memcache/v1beta2/MemcacheParameters.java +++ b/owl-bot-staging/v1beta2/proto-google-cloud-memcache-v1beta2/src/main/java/com/google/cloud/memcache/v1beta2/MemcacheParameters.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/memcache/v1beta2/cloud_memcache.proto package com.google.cloud.memcache.v1beta2; /** - * - * *
  * The unique ID associated with this set of parameters. Users
  * can use this id to determine if the parameters associated with the instance
@@ -31,31 +14,31 @@
  *
  * Protobuf type {@code google.cloud.memcache.v1beta2.MemcacheParameters}
  */
-public final class MemcacheParameters extends com.google.protobuf.GeneratedMessageV3
-    implements
+public final class MemcacheParameters extends
+    com.google.protobuf.GeneratedMessageV3 implements
     // @@protoc_insertion_point(message_implements:google.cloud.memcache.v1beta2.MemcacheParameters)
     MemcacheParametersOrBuilder {
-  private static final long serialVersionUID = 0L;
+private static final long serialVersionUID = 0L;
   // Use MemcacheParameters.newBuilder() to construct.
   private MemcacheParameters(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
-
   private MemcacheParameters() {
     id_ = "";
   }
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(
+      UnusedPrivateParameter unused) {
     return new MemcacheParameters();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet
+  getUnknownFields() {
     return this.unknownFields;
   }
-
   private MemcacheParameters(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -75,33 +58,32 @@ private MemcacheParameters(
           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 26:
-            {
-              if (!((mutable_bitField0_ & 0x00000001) != 0)) {
-                params_ =
-                    com.google.protobuf.MapField.newMapField(ParamsDefaultEntryHolder.defaultEntry);
-                mutable_bitField0_ |= 0x00000001;
-              }
-              com.google.protobuf.MapEntry params__ =
-                  input.readMessage(
-                      ParamsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry);
-              params_.getMutableMap().put(params__.getKey(), params__.getValue());
-              break;
+            id_ = s;
+            break;
+          }
+          case 26: {
+            if (!((mutable_bitField0_ & 0x00000001) != 0)) {
+              params_ = com.google.protobuf.MapField.newMapField(
+                  ParamsDefaultEntryHolder.defaultEntry);
+              mutable_bitField0_ |= 0x00000001;
             }
-          default:
-            {
-              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
-                done = true;
-              }
-              break;
+            com.google.protobuf.MapEntry
+            params__ = input.readMessage(
+                ParamsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry);
+            params_.getMutableMap().put(
+                params__.getKey(), params__.getValue());
+            break;
+          }
+          default: {
+            if (!parseUnknownField(
+                input, unknownFields, extensionRegistry, tag)) {
+              done = true;
             }
+            break;
+          }
         }
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -109,50 +91,46 @@ private MemcacheParameters(
     } 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.memcache.v1beta2.CloudMemcacheProto
-        .internal_static_google_cloud_memcache_v1beta2_MemcacheParameters_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor
+      getDescriptor() {
+    return com.google.cloud.memcache.v1beta2.CloudMemcacheProto.internal_static_google_cloud_memcache_v1beta2_MemcacheParameters_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 internalGetParams();
       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.memcache.v1beta2.CloudMemcacheProto
-        .internal_static_google_cloud_memcache_v1beta2_MemcacheParameters_fieldAccessorTable
+    return com.google.cloud.memcache.v1beta2.CloudMemcacheProto.internal_static_google_cloud_memcache_v1beta2_MemcacheParameters_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.memcache.v1beta2.MemcacheParameters.class,
-            com.google.cloud.memcache.v1beta2.MemcacheParameters.Builder.class);
+            com.google.cloud.memcache.v1beta2.MemcacheParameters.class, com.google.cloud.memcache.v1beta2.MemcacheParameters.Builder.class);
   }
 
   public static final int ID_FIELD_NUMBER = 1;
   private volatile java.lang.Object id_;
   /**
-   *
-   *
    * 
    * Output only.
    * 
* * string id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The id. */ @java.lang.Override @@ -161,29 +139,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.
    * 
* * 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 { @@ -192,23 +170,24 @@ public com.google.protobuf.ByteString getIdBytes() { } public static final int PARAMS_FIELD_NUMBER = 3; - private static final class ParamsDefaultEntryHolder { - static final com.google.protobuf.MapEntry defaultEntry = - com.google.protobuf.MapEntry.newDefaultInstance( - com.google.cloud.memcache.v1beta2.CloudMemcacheProto - .internal_static_google_cloud_memcache_v1beta2_MemcacheParameters_ParamsEntry_descriptor, - com.google.protobuf.WireFormat.FieldType.STRING, - "", - com.google.protobuf.WireFormat.FieldType.STRING, - ""); - } - - private com.google.protobuf.MapField params_; - - private com.google.protobuf.MapField internalGetParams() { + static final com.google.protobuf.MapEntry< + java.lang.String, java.lang.String> defaultEntry = + com.google.protobuf.MapEntry + .newDefaultInstance( + com.google.cloud.memcache.v1beta2.CloudMemcacheProto.internal_static_google_cloud_memcache_v1beta2_MemcacheParameters_ParamsEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.STRING, + "", + com.google.protobuf.WireFormat.FieldType.STRING, + ""); + } + private com.google.protobuf.MapField< + java.lang.String, java.lang.String> params_; + private com.google.protobuf.MapField + internalGetParams() { if (params_ == null) { - return com.google.protobuf.MapField.emptyMapField(ParamsDefaultEntryHolder.defaultEntry); + return com.google.protobuf.MapField.emptyMapField( + ParamsDefaultEntryHolder.defaultEntry); } return params_; } @@ -217,30 +196,28 @@ public int getParamsCount() { return internalGetParams().getMap().size(); } /** - * - * *
    * User defined set of parameters to use in the memcached process.
    * 
* * map<string, string> params = 3; */ + @java.lang.Override - public boolean containsParams(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } + public boolean containsParams( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } return internalGetParams().getMap().containsKey(key); } - /** Use {@link #getParamsMap()} instead. */ + /** + * Use {@link #getParamsMap()} instead. + */ @java.lang.Override @java.lang.Deprecated public java.util.Map getParams() { return getParamsMap(); } /** - * - * *
    * User defined set of parameters to use in the memcached process.
    * 
@@ -248,12 +225,11 @@ public java.util.Map getParams() { * map<string, string> params = 3; */ @java.lang.Override + public java.util.Map getParamsMap() { return internalGetParams().getMap(); } /** - * - * *
    * User defined set of parameters to use in the memcached process.
    * 
@@ -261,16 +237,16 @@ public java.util.Map getParamsMap() { * map<string, string> params = 3; */ @java.lang.Override - public java.lang.String getParamsOrDefault(java.lang.String key, java.lang.String defaultValue) { - if (key == null) { - throw new NullPointerException("map key"); - } - java.util.Map map = internalGetParams().getMap(); + + public java.lang.String getParamsOrDefault( + java.lang.String key, + java.lang.String defaultValue) { + if (key == null) { throw new NullPointerException("map key"); } + java.util.Map map = + internalGetParams().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** - * - * *
    * User defined set of parameters to use in the memcached process.
    * 
@@ -278,11 +254,12 @@ public java.lang.String getParamsOrDefault(java.lang.String key, java.lang.Strin * map<string, string> params = 3; */ @java.lang.Override - public java.lang.String getParamsOrThrow(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } - java.util.Map map = internalGetParams().getMap(); + + public java.lang.String getParamsOrThrow( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } + java.util.Map map = + internalGetParams().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } @@ -290,7 +267,6 @@ public java.lang.String getParamsOrThrow(java.lang.String key) { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -302,12 +278,17 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(id_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, id_); } - com.google.protobuf.GeneratedMessageV3.serializeStringMapTo( - output, internalGetParams(), ParamsDefaultEntryHolder.defaultEntry, 3); + com.google.protobuf.GeneratedMessageV3 + .serializeStringMapTo( + output, + internalGetParams(), + ParamsDefaultEntryHolder.defaultEntry, + 3); unknownFields.writeTo(output); } @@ -320,15 +301,15 @@ public int getSerializedSize() { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(id_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, id_); } - for (java.util.Map.Entry entry : - internalGetParams().getMap().entrySet()) { - com.google.protobuf.MapEntry params__ = - ParamsDefaultEntryHolder.defaultEntry - .newBuilderForType() - .setKey(entry.getKey()) - .setValue(entry.getValue()) - .build(); - size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, params__); + for (java.util.Map.Entry entry + : internalGetParams().getMap().entrySet()) { + com.google.protobuf.MapEntry + params__ = ParamsDefaultEntryHolder.defaultEntry.newBuilderForType() + .setKey(entry.getKey()) + .setValue(entry.getValue()) + .build(); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(3, params__); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -338,16 +319,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.memcache.v1beta2.MemcacheParameters)) { return super.equals(obj); } - com.google.cloud.memcache.v1beta2.MemcacheParameters other = - (com.google.cloud.memcache.v1beta2.MemcacheParameters) obj; + com.google.cloud.memcache.v1beta2.MemcacheParameters other = (com.google.cloud.memcache.v1beta2.MemcacheParameters) obj; - if (!getId().equals(other.getId())) return false; - if (!internalGetParams().equals(other.internalGetParams())) return false; + if (!getId() + .equals(other.getId())) return false; + if (!internalGetParams().equals( + other.internalGetParams())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -371,103 +353,96 @@ public int hashCode() { } public static com.google.cloud.memcache.v1beta2.MemcacheParameters parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.memcache.v1beta2.MemcacheParameters parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.memcache.v1beta2.MemcacheParameters parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.memcache.v1beta2.MemcacheParameters parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.memcache.v1beta2.MemcacheParameters parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.memcache.v1beta2.MemcacheParameters parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.memcache.v1beta2.MemcacheParameters parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.memcache.v1beta2.MemcacheParameters parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.memcache.v1beta2.MemcacheParameters parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.memcache.v1beta2.MemcacheParameters parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.memcache.v1beta2.MemcacheParameters parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.memcache.v1beta2.MemcacheParameters parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.memcache.v1beta2.MemcacheParameters parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.memcache.v1beta2.MemcacheParameters parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.memcache.v1beta2.MemcacheParameters prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected 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 unique ID associated with this set of parameters. Users
    * can use this id to determine if the parameters associated with the instance
@@ -478,43 +453,43 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
    *
    * Protobuf type {@code google.cloud.memcache.v1beta2.MemcacheParameters}
    */
-  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
-      implements
+  public static final class Builder extends
+      com.google.protobuf.GeneratedMessageV3.Builder implements
       // @@protoc_insertion_point(builder_implements:google.cloud.memcache.v1beta2.MemcacheParameters)
       com.google.cloud.memcache.v1beta2.MemcacheParametersOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-      return com.google.cloud.memcache.v1beta2.CloudMemcacheProto
-          .internal_static_google_cloud_memcache_v1beta2_MemcacheParameters_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor
+        getDescriptor() {
+      return com.google.cloud.memcache.v1beta2.CloudMemcacheProto.internal_static_google_cloud_memcache_v1beta2_MemcacheParameters_descriptor;
     }
 
     @SuppressWarnings({"rawtypes"})
-    protected com.google.protobuf.MapField internalGetMapField(int number) {
+    protected com.google.protobuf.MapField internalGetMapField(
+        int number) {
       switch (number) {
         case 3:
           return internalGetParams();
         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 internalGetMutableParams();
         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.memcache.v1beta2.CloudMemcacheProto
-          .internal_static_google_cloud_memcache_v1beta2_MemcacheParameters_fieldAccessorTable
+      return com.google.cloud.memcache.v1beta2.CloudMemcacheProto.internal_static_google_cloud_memcache_v1beta2_MemcacheParameters_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.memcache.v1beta2.MemcacheParameters.class,
-              com.google.cloud.memcache.v1beta2.MemcacheParameters.Builder.class);
+              com.google.cloud.memcache.v1beta2.MemcacheParameters.class, com.google.cloud.memcache.v1beta2.MemcacheParameters.Builder.class);
     }
 
     // Construct using com.google.cloud.memcache.v1beta2.MemcacheParameters.newBuilder()
@@ -522,15 +497,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();
@@ -541,9 +517,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
-      return com.google.cloud.memcache.v1beta2.CloudMemcacheProto
-          .internal_static_google_cloud_memcache_v1beta2_MemcacheParameters_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor
+        getDescriptorForType() {
+      return com.google.cloud.memcache.v1beta2.CloudMemcacheProto.internal_static_google_cloud_memcache_v1beta2_MemcacheParameters_descriptor;
     }
 
     @java.lang.Override
@@ -562,8 +538,7 @@ public com.google.cloud.memcache.v1beta2.MemcacheParameters build() {
 
     @java.lang.Override
     public com.google.cloud.memcache.v1beta2.MemcacheParameters buildPartial() {
-      com.google.cloud.memcache.v1beta2.MemcacheParameters result =
-          new com.google.cloud.memcache.v1beta2.MemcacheParameters(this);
+      com.google.cloud.memcache.v1beta2.MemcacheParameters result = new com.google.cloud.memcache.v1beta2.MemcacheParameters(this);
       int from_bitField0_ = bitField0_;
       result.id_ = id_;
       result.params_ = internalGetParams();
@@ -576,39 +551,38 @@ public com.google.cloud.memcache.v1beta2.MemcacheParameters buildPartial() {
     public Builder clone() {
       return super.clone();
     }
-
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.lang.Object value) {
       return super.setField(field, value);
     }
-
     @java.lang.Override
-    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(
+        com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
-
     @java.lang.Override
-    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(
+        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
-
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
-
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
-
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
       if (other instanceof com.google.cloud.memcache.v1beta2.MemcacheParameters) {
-        return mergeFrom((com.google.cloud.memcache.v1beta2.MemcacheParameters) other);
+        return mergeFrom((com.google.cloud.memcache.v1beta2.MemcacheParameters)other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -616,13 +590,13 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
     }
 
     public Builder mergeFrom(com.google.cloud.memcache.v1beta2.MemcacheParameters other) {
-      if (other == com.google.cloud.memcache.v1beta2.MemcacheParameters.getDefaultInstance())
-        return this;
+      if (other == com.google.cloud.memcache.v1beta2.MemcacheParameters.getDefaultInstance()) return this;
       if (!other.getId().isEmpty()) {
         id_ = other.id_;
         onChanged();
       }
-      internalGetMutableParams().mergeFrom(other.internalGetParams());
+      internalGetMutableParams().mergeFrom(
+          other.internalGetParams());
       this.mergeUnknownFields(other.unknownFields);
       onChanged();
       return this;
@@ -642,8 +616,7 @@ public Builder mergeFrom(
       try {
         parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-        parsedMessage =
-            (com.google.cloud.memcache.v1beta2.MemcacheParameters) e.getUnfinishedMessage();
+        parsedMessage = (com.google.cloud.memcache.v1beta2.MemcacheParameters) e.getUnfinishedMessage();
         throw e.unwrapIOException();
       } finally {
         if (parsedMessage != null) {
@@ -652,25 +625,22 @@ public Builder mergeFrom(
       }
       return this;
     }
-
     private int bitField0_;
 
     private java.lang.Object id_ = "";
     /**
-     *
-     *
      * 
      * Output only.
      * 
* * 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; @@ -679,21 +649,20 @@ public java.lang.String getId() { } } /** - * - * *
      * Output only.
      * 
* * 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 { @@ -701,81 +670,75 @@ public com.google.protobuf.ByteString getIdBytes() { } } /** - * - * *
      * Output only.
      * 
* * 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.
      * 
* * 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.
      * 
* * 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; } - private com.google.protobuf.MapField params_; - - private com.google.protobuf.MapField internalGetParams() { + private com.google.protobuf.MapField< + java.lang.String, java.lang.String> params_; + private com.google.protobuf.MapField + internalGetParams() { if (params_ == null) { - return com.google.protobuf.MapField.emptyMapField(ParamsDefaultEntryHolder.defaultEntry); + return com.google.protobuf.MapField.emptyMapField( + ParamsDefaultEntryHolder.defaultEntry); } return params_; } - private com.google.protobuf.MapField - internalGetMutableParams() { - onChanged(); - ; + internalGetMutableParams() { + onChanged();; if (params_ == null) { - params_ = com.google.protobuf.MapField.newMapField(ParamsDefaultEntryHolder.defaultEntry); + params_ = com.google.protobuf.MapField.newMapField( + ParamsDefaultEntryHolder.defaultEntry); } if (!params_.isMutable()) { params_ = params_.copy(); @@ -787,30 +750,28 @@ public int getParamsCount() { return internalGetParams().getMap().size(); } /** - * - * *
      * User defined set of parameters to use in the memcached process.
      * 
* * map<string, string> params = 3; */ + @java.lang.Override - public boolean containsParams(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } + public boolean containsParams( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } return internalGetParams().getMap().containsKey(key); } - /** Use {@link #getParamsMap()} instead. */ + /** + * Use {@link #getParamsMap()} instead. + */ @java.lang.Override @java.lang.Deprecated public java.util.Map getParams() { return getParamsMap(); } /** - * - * *
      * User defined set of parameters to use in the memcached process.
      * 
@@ -818,12 +779,11 @@ public java.util.Map getParams() { * map<string, string> params = 3; */ @java.lang.Override + public java.util.Map getParamsMap() { return internalGetParams().getMap(); } /** - * - * *
      * User defined set of parameters to use in the memcached process.
      * 
@@ -831,17 +791,16 @@ public java.util.Map getParamsMap() { * map<string, string> params = 3; */ @java.lang.Override + public java.lang.String getParamsOrDefault( - java.lang.String key, java.lang.String defaultValue) { - if (key == null) { - throw new NullPointerException("map key"); - } - java.util.Map map = internalGetParams().getMap(); + java.lang.String key, + java.lang.String defaultValue) { + if (key == null) { throw new NullPointerException("map key"); } + java.util.Map map = + internalGetParams().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** - * - * *
      * User defined set of parameters to use in the memcached process.
      * 
@@ -849,11 +808,12 @@ public java.lang.String getParamsOrDefault( * map<string, string> params = 3; */ @java.lang.Override - public java.lang.String getParamsOrThrow(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } - java.util.Map map = internalGetParams().getMap(); + + public java.lang.String getParamsOrThrow( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } + java.util.Map map = + internalGetParams().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } @@ -861,66 +821,69 @@ public java.lang.String getParamsOrThrow(java.lang.String key) { } public Builder clearParams() { - internalGetMutableParams().getMutableMap().clear(); + internalGetMutableParams().getMutableMap() + .clear(); return this; } /** - * - * *
      * User defined set of parameters to use in the memcached process.
      * 
* * map<string, string> params = 3; */ - public Builder removeParams(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } - internalGetMutableParams().getMutableMap().remove(key); + + public Builder removeParams( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } + internalGetMutableParams().getMutableMap() + .remove(key); return this; } - /** Use alternate mutation accessors instead. */ + /** + * Use alternate mutation accessors instead. + */ @java.lang.Deprecated - public java.util.Map getMutableParams() { + public java.util.Map + getMutableParams() { return internalGetMutableParams().getMutableMap(); } /** - * - * *
      * User defined set of parameters to use in the memcached process.
      * 
* * map<string, string> params = 3; */ - public Builder putParams(java.lang.String key, java.lang.String value) { - if (key == null) { - throw new NullPointerException("map key"); - } + public Builder putParams( + 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"); +} - internalGetMutableParams().getMutableMap().put(key, value); + internalGetMutableParams().getMutableMap() + .put(key, value); return this; } /** - * - * *
      * User defined set of parameters to use in the memcached process.
      * 
* * map<string, string> params = 3; */ - public Builder putAllParams(java.util.Map values) { - internalGetMutableParams().getMutableMap().putAll(values); + + public Builder putAllParams( + java.util.Map values) { + internalGetMutableParams().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); } @@ -930,12 +893,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.memcache.v1beta2.MemcacheParameters) } // @@protoc_insertion_point(class_scope:google.cloud.memcache.v1beta2.MemcacheParameters) private static final com.google.cloud.memcache.v1beta2.MemcacheParameters DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.memcache.v1beta2.MemcacheParameters(); } @@ -944,16 +907,16 @@ public static com.google.cloud.memcache.v1beta2.MemcacheParameters getDefaultIns return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public MemcacheParameters parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new MemcacheParameters(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public MemcacheParameters parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new MemcacheParameters(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -968,4 +931,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.memcache.v1beta2.MemcacheParameters getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-memcache-v1beta2/src/main/java/com/google/cloud/memcache/v1beta2/MemcacheParametersOrBuilder.java b/owl-bot-staging/v1beta2/proto-google-cloud-memcache-v1beta2/src/main/java/com/google/cloud/memcache/v1beta2/MemcacheParametersOrBuilder.java similarity index 58% rename from proto-google-cloud-memcache-v1beta2/src/main/java/com/google/cloud/memcache/v1beta2/MemcacheParametersOrBuilder.java rename to owl-bot-staging/v1beta2/proto-google-cloud-memcache-v1beta2/src/main/java/com/google/cloud/memcache/v1beta2/MemcacheParametersOrBuilder.java index 91e20f76..1ccba360 100644 --- a/proto-google-cloud-memcache-v1beta2/src/main/java/com/google/cloud/memcache/v1beta2/MemcacheParametersOrBuilder.java +++ b/owl-bot-staging/v1beta2/proto-google-cloud-memcache-v1beta2/src/main/java/com/google/cloud/memcache/v1beta2/MemcacheParametersOrBuilder.java @@ -1,56 +1,33 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/memcache/v1beta2/cloud_memcache.proto package com.google.cloud.memcache.v1beta2; -public interface MemcacheParametersOrBuilder - extends +public interface MemcacheParametersOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.memcache.v1beta2.MemcacheParameters) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Output only.
    * 
* * string id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The id. */ java.lang.String getId(); /** - * - * *
    * Output only.
    * 
* * string id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for id. */ - com.google.protobuf.ByteString getIdBytes(); + com.google.protobuf.ByteString + getIdBytes(); /** - * - * *
    * User defined set of parameters to use in the memcached process.
    * 
@@ -59,31 +36,30 @@ public interface MemcacheParametersOrBuilder */ int getParamsCount(); /** - * - * *
    * User defined set of parameters to use in the memcached process.
    * 
* * map<string, string> params = 3; */ - boolean containsParams(java.lang.String key); - /** Use {@link #getParamsMap()} instead. */ + boolean containsParams( + java.lang.String key); + /** + * Use {@link #getParamsMap()} instead. + */ @java.lang.Deprecated - java.util.Map getParams(); + java.util.Map + getParams(); /** - * - * *
    * User defined set of parameters to use in the memcached process.
    * 
* * map<string, string> params = 3; */ - java.util.Map getParamsMap(); + java.util.Map + getParamsMap(); /** - * - * *
    * User defined set of parameters to use in the memcached process.
    * 
@@ -92,18 +68,18 @@ public interface MemcacheParametersOrBuilder */ /* nullable */ - java.lang.String getParamsOrDefault( +java.lang.String getParamsOrDefault( java.lang.String key, /* nullable */ - java.lang.String defaultValue); +java.lang.String defaultValue); /** - * - * *
    * User defined set of parameters to use in the memcached process.
    * 
* * map<string, string> params = 3; */ - java.lang.String getParamsOrThrow(java.lang.String key); + + java.lang.String getParamsOrThrow( + java.lang.String key); } diff --git a/proto-google-cloud-memcache-v1beta2/src/main/java/com/google/cloud/memcache/v1beta2/MemcacheVersion.java b/owl-bot-staging/v1beta2/proto-google-cloud-memcache-v1beta2/src/main/java/com/google/cloud/memcache/v1beta2/MemcacheVersion.java similarity index 60% rename from proto-google-cloud-memcache-v1beta2/src/main/java/com/google/cloud/memcache/v1beta2/MemcacheVersion.java rename to owl-bot-staging/v1beta2/proto-google-cloud-memcache-v1beta2/src/main/java/com/google/cloud/memcache/v1beta2/MemcacheVersion.java index db5ab22d..71a84a11 100644 --- a/proto-google-cloud-memcache-v1beta2/src/main/java/com/google/cloud/memcache/v1beta2/MemcacheVersion.java +++ b/owl-bot-staging/v1beta2/proto-google-cloud-memcache-v1beta2/src/main/java/com/google/cloud/memcache/v1beta2/MemcacheVersion.java @@ -1,38 +1,22 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/memcache/v1beta2/cloud_memcache.proto package com.google.cloud.memcache.v1beta2; /** - * - * *
  * Memcached versions supported by our service.
  * 
* * Protobuf enum {@code google.cloud.memcache.v1beta2.MemcacheVersion} */ -public enum MemcacheVersion implements com.google.protobuf.ProtocolMessageEnum { - /** MEMCACHE_VERSION_UNSPECIFIED = 0; */ +public enum MemcacheVersion + implements com.google.protobuf.ProtocolMessageEnum { + /** + * MEMCACHE_VERSION_UNSPECIFIED = 0; + */ MEMCACHE_VERSION_UNSPECIFIED(0), /** - * - * *
    * Memcached 1.5 version.
    * 
@@ -43,11 +27,11 @@ public enum MemcacheVersion implements com.google.protobuf.ProtocolMessageEnum { UNRECOGNIZED(-1), ; - /** MEMCACHE_VERSION_UNSPECIFIED = 0; */ + /** + * MEMCACHE_VERSION_UNSPECIFIED = 0; + */ public static final int MEMCACHE_VERSION_UNSPECIFIED_VALUE = 0; /** - * - * *
    * Memcached 1.5 version.
    * 
@@ -56,6 +40,7 @@ public enum MemcacheVersion implements com.google.protobuf.ProtocolMessageEnum { */ public static final int MEMCACHE_1_5_VALUE = 1; + public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( @@ -80,49 +65,48 @@ public static MemcacheVersion valueOf(int value) { */ public static MemcacheVersion forNumber(int value) { switch (value) { - case 0: - return MEMCACHE_VERSION_UNSPECIFIED; - case 1: - return MEMCACHE_1_5; - default: - return null; + case 0: return MEMCACHE_VERSION_UNSPECIFIED; + case 1: return MEMCACHE_1_5; + default: return null; } } - public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { + public static com.google.protobuf.Internal.EnumLiteMap + internalGetValueMap() { return internalValueMap; } - - private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public MemcacheVersion findValueByNumber(int number) { - return MemcacheVersion.forNumber(number); - } - }; - - public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { + private static final com.google.protobuf.Internal.EnumLiteMap< + MemcacheVersion> internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public MemcacheVersion findValueByNumber(int number) { + return MemcacheVersion.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.memcache.v1beta2.CloudMemcacheProto.getDescriptor() - .getEnumTypes() - .get(0); + public static final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptor() { + return com.google.cloud.memcache.v1beta2.CloudMemcacheProto.getDescriptor().getEnumTypes().get(0); } private static final MemcacheVersion[] VALUES = values(); - public static MemcacheVersion valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + public static MemcacheVersion 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; @@ -138,3 +122,4 @@ private MemcacheVersion(int value) { // @@protoc_insertion_point(enum_scope:google.cloud.memcache.v1beta2.MemcacheVersion) } + diff --git a/proto-google-cloud-memcache-v1beta2/src/main/java/com/google/cloud/memcache/v1beta2/OperationMetadata.java b/owl-bot-staging/v1beta2/proto-google-cloud-memcache-v1beta2/src/main/java/com/google/cloud/memcache/v1beta2/OperationMetadata.java similarity index 71% rename from proto-google-cloud-memcache-v1beta2/src/main/java/com/google/cloud/memcache/v1beta2/OperationMetadata.java rename to owl-bot-staging/v1beta2/proto-google-cloud-memcache-v1beta2/src/main/java/com/google/cloud/memcache/v1beta2/OperationMetadata.java index d3d4f3da..f9469c79 100644 --- a/proto-google-cloud-memcache-v1beta2/src/main/java/com/google/cloud/memcache/v1beta2/OperationMetadata.java +++ b/owl-bot-staging/v1beta2/proto-google-cloud-memcache-v1beta2/src/main/java/com/google/cloud/memcache/v1beta2/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/memcache/v1beta2/cloud_memcache.proto package com.google.cloud.memcache.v1beta2; /** - * - * *
  * Represents the metadata of a long-running operation.
  * 
* * Protobuf type {@code google.cloud.memcache.v1beta2.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.memcache.v1beta2.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,40 +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.memcache.v1beta2.CloudMemcacheProto - .internal_static_google_cloud_memcache_v1beta2_OperationMetadata_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.memcache.v1beta2.CloudMemcacheProto.internal_static_google_cloud_memcache_v1beta2_OperationMetadata_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.memcache.v1beta2.CloudMemcacheProto - .internal_static_google_cloud_memcache_v1beta2_OperationMetadata_fieldAccessorTable + return com.google.cloud.memcache.v1beta2.CloudMemcacheProto.internal_static_google_cloud_memcache_v1beta2_OperationMetadata_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.memcache.v1beta2.OperationMetadata.class, - com.google.cloud.memcache.v1beta2.OperationMetadata.Builder.class); + com.google.cloud.memcache.v1beta2.OperationMetadata.class, com.google.cloud.memcache.v1beta2.OperationMetadata.Builder.class); } public static final int CREATE_TIME_FIELD_NUMBER = 1; private com.google.protobuf.Timestamp createTime_; /** - * - * *
    * Output only. Time when the operation was created.
    * 
* - * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the createTime field is set. */ @java.lang.Override @@ -191,15 +160,11 @@ public boolean hasCreateTime() { return createTime_ != null; } /** - * - * *
    * Output only. Time when the operation was created.
    * 
* - * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The createTime. */ @java.lang.Override @@ -207,14 +172,11 @@ public com.google.protobuf.Timestamp getCreateTime() { return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; } /** - * - * *
    * Output only. Time when the operation was created.
    * 
* - * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { @@ -224,15 +186,11 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { public static final int END_TIME_FIELD_NUMBER = 2; private com.google.protobuf.Timestamp endTime_; /** - * - * *
    * Output only. Time when the operation finished running.
    * 
* - * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the endTime field is set. */ @java.lang.Override @@ -240,15 +198,11 @@ public boolean hasEndTime() { return endTime_ != null; } /** - * - * *
    * Output only. Time when the operation finished running.
    * 
* - * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The endTime. */ @java.lang.Override @@ -256,14 +210,11 @@ public com.google.protobuf.Timestamp getEndTime() { return endTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : endTime_; } /** - * - * *
    * Output only. Time when the operation finished running.
    * 
* - * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder() { @@ -273,14 +224,11 @@ public com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder() { public static final int TARGET_FIELD_NUMBER = 3; private volatile java.lang.Object target_; /** - * - * *
    * Output only. Server-defined resource path for the target of the operation.
    * 
* * string target = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The target. */ @java.lang.Override @@ -289,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; } } /** - * - * *
    * Output only. Server-defined resource path for the target of the operation.
    * 
* * string target = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for target. */ @java.lang.Override - public com.google.protobuf.ByteString getTargetBytes() { + public com.google.protobuf.ByteString + getTargetBytes() { java.lang.Object ref = target_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); target_ = b; return b; } else { @@ -322,14 +270,11 @@ public com.google.protobuf.ByteString getTargetBytes() { public static final int VERB_FIELD_NUMBER = 4; private volatile java.lang.Object verb_; /** - * - * *
    * Output only. Name of the verb executed by the operation.
    * 
* * string verb = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The verb. */ @java.lang.Override @@ -338,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; } } /** - * - * *
    * Output only. Name of the verb executed by the operation.
    * 
* * string verb = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for verb. */ @java.lang.Override - public com.google.protobuf.ByteString getVerbBytes() { + public com.google.protobuf.ByteString + getVerbBytes() { java.lang.Object ref = verb_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); verb_ = b; return b; } else { @@ -371,14 +316,11 @@ public com.google.protobuf.ByteString getVerbBytes() { public static final int STATUS_DETAIL_FIELD_NUMBER = 5; private volatile java.lang.Object statusDetail_; /** - * - * *
    * Output only. Human-readable status of the operation, if any.
    * 
* * string status_detail = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The statusDetail. */ @java.lang.Override @@ -387,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; } } /** - * - * *
    * Output only. Human-readable status of the operation, if any.
    * 
* * string status_detail = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @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 { @@ -420,8 +362,6 @@ public com.google.protobuf.ByteString getStatusDetailBytes() { public static final int CANCEL_REQUESTED_FIELD_NUMBER = 6; private boolean cancelRequested_; /** - * - * *
    * Output only. Identifies whether the user has requested cancellation
    * of the operation. Operations that have successfully been cancelled
@@ -430,7 +370,6 @@ public com.google.protobuf.ByteString getStatusDetailBytes() {
    * 
* * bool cancel_requested = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The cancelRequested. */ @java.lang.Override @@ -441,14 +380,11 @@ public boolean getCancelRequested() { public static final int API_VERSION_FIELD_NUMBER = 7; private volatile java.lang.Object apiVersion_; /** - * - * *
    * Output only. API version used to start the operation.
    * 
* * string api_version = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The apiVersion. */ @java.lang.Override @@ -457,29 +393,29 @@ public java.lang.String getApiVersion() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); apiVersion_ = s; return s; } } /** - * - * *
    * Output only. API version used to start the operation.
    * 
* * string api_version = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for apiVersion. */ @java.lang.Override - public com.google.protobuf.ByteString getApiVersionBytes() { + public com.google.protobuf.ByteString + getApiVersionBytes() { java.lang.Object ref = apiVersion_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); apiVersion_ = b; return b; } else { @@ -488,7 +424,6 @@ public com.google.protobuf.ByteString getApiVersionBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -500,7 +435,8 @@ public final boolean isInitialized() { } @java.lang.Override - public 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()); } @@ -532,10 +468,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_); @@ -547,7 +485,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_); @@ -560,27 +499,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.memcache.v1beta2.OperationMetadata)) { return super.equals(obj); } - com.google.cloud.memcache.v1beta2.OperationMetadata other = - (com.google.cloud.memcache.v1beta2.OperationMetadata) obj; + com.google.cloud.memcache.v1beta2.OperationMetadata other = (com.google.cloud.memcache.v1beta2.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; } @@ -607,7 +552,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(); @@ -616,126 +562,117 @@ public int hashCode() { } public static com.google.cloud.memcache.v1beta2.OperationMetadata parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.memcache.v1beta2.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.memcache.v1beta2.OperationMetadata parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.memcache.v1beta2.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.memcache.v1beta2.OperationMetadata parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.memcache.v1beta2.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.memcache.v1beta2.OperationMetadata parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.memcache.v1beta2.OperationMetadata parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.memcache.v1beta2.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.memcache.v1beta2.OperationMetadata parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.memcache.v1beta2.OperationMetadata parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.memcache.v1beta2.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.memcache.v1beta2.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.memcache.v1beta2.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.memcache.v1beta2.OperationMetadata prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Represents the metadata of a long-running operation.
    * 
* * Protobuf type {@code google.cloud.memcache.v1beta2.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.memcache.v1beta2.OperationMetadata) com.google.cloud.memcache.v1beta2.OperationMetadataOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.memcache.v1beta2.CloudMemcacheProto - .internal_static_google_cloud_memcache_v1beta2_OperationMetadata_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.memcache.v1beta2.CloudMemcacheProto.internal_static_google_cloud_memcache_v1beta2_OperationMetadata_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.memcache.v1beta2.CloudMemcacheProto - .internal_static_google_cloud_memcache_v1beta2_OperationMetadata_fieldAccessorTable + return com.google.cloud.memcache.v1beta2.CloudMemcacheProto.internal_static_google_cloud_memcache_v1beta2_OperationMetadata_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.memcache.v1beta2.OperationMetadata.class, - com.google.cloud.memcache.v1beta2.OperationMetadata.Builder.class); + com.google.cloud.memcache.v1beta2.OperationMetadata.class, com.google.cloud.memcache.v1beta2.OperationMetadata.Builder.class); } // Construct using com.google.cloud.memcache.v1beta2.OperationMetadata.newBuilder() @@ -743,15 +680,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(); @@ -781,9 +719,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.memcache.v1beta2.CloudMemcacheProto - .internal_static_google_cloud_memcache_v1beta2_OperationMetadata_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.memcache.v1beta2.CloudMemcacheProto.internal_static_google_cloud_memcache_v1beta2_OperationMetadata_descriptor; } @java.lang.Override @@ -802,8 +740,7 @@ public com.google.cloud.memcache.v1beta2.OperationMetadata build() { @java.lang.Override public com.google.cloud.memcache.v1beta2.OperationMetadata buildPartial() { - com.google.cloud.memcache.v1beta2.OperationMetadata result = - new com.google.cloud.memcache.v1beta2.OperationMetadata(this); + com.google.cloud.memcache.v1beta2.OperationMetadata result = new com.google.cloud.memcache.v1beta2.OperationMetadata(this); if (createTimeBuilder_ == null) { result.createTime_ = createTime_; } else { @@ -827,39 +764,38 @@ public com.google.cloud.memcache.v1beta2.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.memcache.v1beta2.OperationMetadata) { - return mergeFrom((com.google.cloud.memcache.v1beta2.OperationMetadata) other); + return mergeFrom((com.google.cloud.memcache.v1beta2.OperationMetadata)other); } else { super.mergeFrom(other); return this; @@ -867,8 +803,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.memcache.v1beta2.OperationMetadata other) { - if (other == com.google.cloud.memcache.v1beta2.OperationMetadata.getDefaultInstance()) - return this; + if (other == com.google.cloud.memcache.v1beta2.OperationMetadata.getDefaultInstance()) return this; if (other.hasCreateTime()) { mergeCreateTime(other.getCreateTime()); } @@ -913,8 +848,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.memcache.v1beta2.OperationMetadata) e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.memcache.v1beta2.OperationMetadata) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -926,58 +860,39 @@ public Builder mergeFrom( private com.google.protobuf.Timestamp createTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> - createTimeBuilder_; + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> createTimeBuilder_; /** - * - * *
      * Output only. Time when the operation was created.
      * 
* - * - * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the createTime field is set. */ public boolean hasCreateTime() { return createTimeBuilder_ != null || createTime_ != null; } /** - * - * *
      * Output only. Time when the operation was created.
      * 
* - * - * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The createTime. */ public com.google.protobuf.Timestamp getCreateTime() { if (createTimeBuilder_ == null) { - return createTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : createTime_; + return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; } else { return createTimeBuilder_.getMessage(); } } /** - * - * *
      * Output only. Time when the operation was created.
      * 
* - * - * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder setCreateTime(com.google.protobuf.Timestamp value) { if (createTimeBuilder_ == null) { @@ -993,17 +908,14 @@ public Builder setCreateTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * Output only. Time when the operation was created.
      * 
* - * - * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setCreateTime( + com.google.protobuf.Timestamp.Builder builderForValue) { if (createTimeBuilder_ == null) { createTime_ = builderForValue.build(); onChanged(); @@ -1014,21 +926,17 @@ public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForVal return this; } /** - * - * *
      * Output only. Time when the operation was created.
      * 
* - * - * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { if (createTimeBuilder_ == null) { if (createTime_ != null) { createTime_ = - com.google.protobuf.Timestamp.newBuilder(createTime_).mergeFrom(value).buildPartial(); + com.google.protobuf.Timestamp.newBuilder(createTime_).mergeFrom(value).buildPartial(); } else { createTime_ = value; } @@ -1040,15 +948,11 @@ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * Output only. Time when the operation was created.
      * 
* - * - * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder clearCreateTime() { if (createTimeBuilder_ == null) { @@ -1062,64 +966,48 @@ public Builder clearCreateTime() { return this; } /** - * - * *
      * Output only. Time when the operation was created.
      * 
* - * - * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { - + onChanged(); return getCreateTimeFieldBuilder().getBuilder(); } /** - * - * *
      * Output only. Time when the operation was created.
      * 
* - * - * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { if (createTimeBuilder_ != null) { return createTimeBuilder_.getMessageOrBuilder(); } else { - return createTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : createTime_; + return createTime_ == null ? + com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; } } /** - * - * *
      * Output only. Time when the operation was created.
      * 
* - * - * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> getCreateTimeFieldBuilder() { if (createTimeBuilder_ == null) { - createTimeBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder>( - getCreateTime(), getParentForChildren(), isClean()); + createTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( + getCreateTime(), + getParentForChildren(), + isClean()); createTime_ = null; } return createTimeBuilder_; @@ -1127,35 +1015,24 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { private com.google.protobuf.Timestamp endTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> - endTimeBuilder_; + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> endTimeBuilder_; /** - * - * *
      * Output only. Time when the operation finished running.
      * 
* - * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the endTime field is set. */ public boolean hasEndTime() { return endTimeBuilder_ != null || endTime_ != null; } /** - * - * *
      * Output only. Time when the operation finished running.
      * 
* - * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The endTime. */ public com.google.protobuf.Timestamp getEndTime() { @@ -1166,14 +1043,11 @@ public com.google.protobuf.Timestamp getEndTime() { } } /** - * - * *
      * Output only. Time when the operation finished running.
      * 
* - * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder setEndTime(com.google.protobuf.Timestamp value) { if (endTimeBuilder_ == null) { @@ -1189,16 +1063,14 @@ public Builder setEndTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * Output only. Time when the operation finished running.
      * 
* - * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - public Builder setEndTime(com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setEndTime( + com.google.protobuf.Timestamp.Builder builderForValue) { if (endTimeBuilder_ == null) { endTime_ = builderForValue.build(); onChanged(); @@ -1209,20 +1081,17 @@ public Builder setEndTime(com.google.protobuf.Timestamp.Builder builderForValue) return this; } /** - * - * *
      * Output only. Time when the operation finished running.
      * 
* - * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder mergeEndTime(com.google.protobuf.Timestamp value) { if (endTimeBuilder_ == null) { if (endTime_ != null) { endTime_ = - com.google.protobuf.Timestamp.newBuilder(endTime_).mergeFrom(value).buildPartial(); + com.google.protobuf.Timestamp.newBuilder(endTime_).mergeFrom(value).buildPartial(); } else { endTime_ = value; } @@ -1234,14 +1103,11 @@ public Builder mergeEndTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * Output only. Time when the operation finished running.
      * 
* - * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder clearEndTime() { if (endTimeBuilder_ == null) { @@ -1255,59 +1121,48 @@ public Builder clearEndTime() { return this; } /** - * - * *
      * Output only. Time when the operation finished running.
      * 
* - * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.protobuf.Timestamp.Builder getEndTimeBuilder() { - + onChanged(); return getEndTimeFieldBuilder().getBuilder(); } /** - * - * *
      * Output only. Time when the operation finished running.
      * 
* - * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder() { if (endTimeBuilder_ != null) { return endTimeBuilder_.getMessageOrBuilder(); } else { - return endTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : endTime_; + return endTime_ == null ? + com.google.protobuf.Timestamp.getDefaultInstance() : endTime_; } } /** - * - * *
      * Output only. Time when the operation finished running.
      * 
* - * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> getEndTimeFieldBuilder() { if (endTimeBuilder_ == null) { - endTimeBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder>( - getEndTime(), getParentForChildren(), isClean()); + endTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( + getEndTime(), + getParentForChildren(), + isClean()); endTime_ = null; } return endTimeBuilder_; @@ -1315,20 +1170,18 @@ public com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder() { private java.lang.Object target_ = ""; /** - * - * *
      * Output only. Server-defined resource path for the target of the operation.
      * 
* * string target = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The target. */ public java.lang.String getTarget() { java.lang.Object ref = target_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); target_ = s; return s; @@ -1337,21 +1190,20 @@ public java.lang.String getTarget() { } } /** - * - * *
      * Output only. Server-defined resource path for the target of the operation.
      * 
* * string target = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for target. */ - public com.google.protobuf.ByteString getTargetBytes() { + public com.google.protobuf.ByteString + getTargetBytes() { java.lang.Object ref = target_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); target_ = b; return b; } else { @@ -1359,61 +1211,54 @@ public com.google.protobuf.ByteString getTargetBytes() { } } /** - * - * *
      * Output only. Server-defined resource path for the target of the operation.
      * 
* * string target = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @param value The target to set. * @return This builder for chaining. */ - public Builder setTarget(java.lang.String value) { + public Builder setTarget( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + target_ = value; onChanged(); return this; } /** - * - * *
      * Output only. Server-defined resource path for the target of the operation.
      * 
* * string target = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return This builder for chaining. */ public Builder clearTarget() { - + target_ = getDefaultInstance().getTarget(); onChanged(); return this; } /** - * - * *
      * Output only. Server-defined resource path for the target of the operation.
      * 
* * string target = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @param value The bytes for target to set. * @return This builder for chaining. */ - public Builder setTargetBytes(com.google.protobuf.ByteString value) { + public Builder setTargetBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + target_ = value; onChanged(); return this; @@ -1421,20 +1266,18 @@ public Builder setTargetBytes(com.google.protobuf.ByteString value) { private java.lang.Object verb_ = ""; /** - * - * *
      * Output only. Name of the verb executed by the operation.
      * 
* * string verb = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The verb. */ public java.lang.String getVerb() { java.lang.Object ref = verb_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); verb_ = s; return s; @@ -1443,21 +1286,20 @@ public java.lang.String getVerb() { } } /** - * - * *
      * Output only. Name of the verb executed by the operation.
      * 
* * string verb = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for verb. */ - public com.google.protobuf.ByteString getVerbBytes() { + public com.google.protobuf.ByteString + getVerbBytes() { java.lang.Object ref = verb_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); verb_ = b; return b; } else { @@ -1465,61 +1307,54 @@ public com.google.protobuf.ByteString getVerbBytes() { } } /** - * - * *
      * Output only. Name of the verb executed by the operation.
      * 
* * string verb = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @param value The verb to set. * @return This builder for chaining. */ - public Builder setVerb(java.lang.String value) { + public Builder setVerb( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + verb_ = value; onChanged(); return this; } /** - * - * *
      * Output only. Name of the verb executed by the operation.
      * 
* * string verb = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return This builder for chaining. */ public Builder clearVerb() { - + verb_ = getDefaultInstance().getVerb(); onChanged(); return this; } /** - * - * *
      * Output only. Name of the verb executed by the operation.
      * 
* * string verb = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @param value The bytes for verb to set. * @return This builder for chaining. */ - public Builder setVerbBytes(com.google.protobuf.ByteString value) { + public Builder setVerbBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + verb_ = value; onChanged(); return this; @@ -1527,20 +1362,18 @@ public Builder setVerbBytes(com.google.protobuf.ByteString value) { private java.lang.Object statusDetail_ = ""; /** - * - * *
      * Output only. Human-readable status of the operation, if any.
      * 
* * string status_detail = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @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; @@ -1549,21 +1382,20 @@ public java.lang.String getStatusDetail() { } } /** - * - * *
      * Output only. Human-readable status of the operation, if any.
      * 
* * string status_detail = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @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 { @@ -1571,70 +1403,61 @@ public com.google.protobuf.ByteString getStatusDetailBytes() { } } /** - * - * *
      * Output only. Human-readable status of the operation, if any.
      * 
* * string status_detail = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @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; } /** - * - * *
      * Output only. Human-readable status of the operation, if any.
      * 
* * string status_detail = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return This builder for chaining. */ public Builder clearStatusDetail() { - + statusDetail_ = getDefaultInstance().getStatusDetail(); onChanged(); return this; } /** - * - * *
      * Output only. Human-readable status of the operation, if any.
      * 
* * string status_detail = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @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_ ; /** - * - * *
      * Output only. Identifies whether the user has requested cancellation
      * of the operation. Operations that have successfully been cancelled
@@ -1643,7 +1466,6 @@ public Builder setStatusDetailBytes(com.google.protobuf.ByteString value) {
      * 
* * bool cancel_requested = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The cancelRequested. */ @java.lang.Override @@ -1651,8 +1473,6 @@ public boolean getCancelRequested() { return cancelRequested_; } /** - * - * *
      * Output only. Identifies whether the user has requested cancellation
      * of the operation. Operations that have successfully been cancelled
@@ -1661,19 +1481,16 @@ public boolean getCancelRequested() {
      * 
* * bool cancel_requested = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @param value The cancelRequested to set. * @return This builder for chaining. */ public Builder setCancelRequested(boolean value) { - + cancelRequested_ = value; onChanged(); return this; } /** - * - * *
      * Output only. Identifies whether the user has requested cancellation
      * of the operation. Operations that have successfully been cancelled
@@ -1682,11 +1499,10 @@ public Builder setCancelRequested(boolean value) {
      * 
* * bool cancel_requested = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return This builder for chaining. */ public Builder clearCancelRequested() { - + cancelRequested_ = false; onChanged(); return this; @@ -1694,20 +1510,18 @@ public Builder clearCancelRequested() { private java.lang.Object apiVersion_ = ""; /** - * - * *
      * Output only. API version used to start the operation.
      * 
* * string api_version = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The apiVersion. */ public java.lang.String getApiVersion() { java.lang.Object ref = apiVersion_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); apiVersion_ = s; return s; @@ -1716,21 +1530,20 @@ public java.lang.String getApiVersion() { } } /** - * - * *
      * Output only. API version used to start the operation.
      * 
* * string api_version = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for apiVersion. */ - public com.google.protobuf.ByteString getApiVersionBytes() { + public com.google.protobuf.ByteString + getApiVersionBytes() { java.lang.Object ref = apiVersion_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); apiVersion_ = b; return b; } else { @@ -1738,68 +1551,61 @@ public com.google.protobuf.ByteString getApiVersionBytes() { } } /** - * - * *
      * Output only. API version used to start the operation.
      * 
* * string api_version = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @param value The apiVersion to set. * @return This builder for chaining. */ - public Builder setApiVersion(java.lang.String value) { + public Builder setApiVersion( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + apiVersion_ = value; onChanged(); return this; } /** - * - * *
      * Output only. API version used to start the operation.
      * 
* * string api_version = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return This builder for chaining. */ public Builder clearApiVersion() { - + apiVersion_ = getDefaultInstance().getApiVersion(); onChanged(); return this; } /** - * - * *
      * Output only. API version used to start the operation.
      * 
* * string api_version = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @param value The bytes for apiVersion to set. * @return This builder for chaining. */ - public Builder setApiVersionBytes(com.google.protobuf.ByteString value) { + public Builder setApiVersionBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + apiVersion_ = value; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1809,12 +1615,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.memcache.v1beta2.OperationMetadata) } // @@protoc_insertion_point(class_scope:google.cloud.memcache.v1beta2.OperationMetadata) private static final com.google.cloud.memcache.v1beta2.OperationMetadata DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.memcache.v1beta2.OperationMetadata(); } @@ -1823,16 +1629,16 @@ public static com.google.cloud.memcache.v1beta2.OperationMetadata getDefaultInst 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; @@ -1847,4 +1653,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.memcache.v1beta2.OperationMetadata getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-memcache-v1beta2/src/main/java/com/google/cloud/memcache/v1beta2/OperationMetadataOrBuilder.java b/owl-bot-staging/v1beta2/proto-google-cloud-memcache-v1beta2/src/main/java/com/google/cloud/memcache/v1beta2/OperationMetadataOrBuilder.java similarity index 75% rename from proto-google-cloud-memcache-v1beta2/src/main/java/com/google/cloud/memcache/v1beta2/OperationMetadataOrBuilder.java rename to owl-bot-staging/v1beta2/proto-google-cloud-memcache-v1beta2/src/main/java/com/google/cloud/memcache/v1beta2/OperationMetadataOrBuilder.java index fee00a2b..90d3b270 100644 --- a/proto-google-cloud-memcache-v1beta2/src/main/java/com/google/cloud/memcache/v1beta2/OperationMetadataOrBuilder.java +++ b/owl-bot-staging/v1beta2/proto-google-cloud-memcache-v1beta2/src/main/java/com/google/cloud/memcache/v1beta2/OperationMetadataOrBuilder.java @@ -1,182 +1,127 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/memcache/v1beta2/cloud_memcache.proto package com.google.cloud.memcache.v1beta2; -public interface OperationMetadataOrBuilder - extends +public interface OperationMetadataOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.memcache.v1beta2.OperationMetadata) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Output only. Time when the operation was created.
    * 
* - * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the createTime field is set. */ boolean hasCreateTime(); /** - * - * *
    * Output only. Time when the operation was created.
    * 
* - * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The createTime. */ com.google.protobuf.Timestamp getCreateTime(); /** - * - * *
    * Output only. Time when the operation was created.
    * 
* - * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder(); /** - * - * *
    * Output only. Time when the operation finished running.
    * 
* - * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the endTime field is set. */ boolean hasEndTime(); /** - * - * *
    * Output only. Time when the operation finished running.
    * 
* - * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The endTime. */ com.google.protobuf.Timestamp getEndTime(); /** - * - * *
    * Output only. Time when the operation finished running.
    * 
* - * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder(); /** - * - * *
    * Output only. Server-defined resource path for the target of the operation.
    * 
* * string target = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The target. */ java.lang.String getTarget(); /** - * - * *
    * Output only. Server-defined resource path for the target of the operation.
    * 
* * string target = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for target. */ - com.google.protobuf.ByteString getTargetBytes(); + com.google.protobuf.ByteString + getTargetBytes(); /** - * - * *
    * Output only. Name of the verb executed by the operation.
    * 
* * string verb = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The verb. */ java.lang.String getVerb(); /** - * - * *
    * Output only. Name of the verb executed by the operation.
    * 
* * string verb = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for verb. */ - com.google.protobuf.ByteString getVerbBytes(); + com.google.protobuf.ByteString + getVerbBytes(); /** - * - * *
    * Output only. Human-readable status of the operation, if any.
    * 
* * string status_detail = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The statusDetail. */ java.lang.String getStatusDetail(); /** - * - * *
    * Output only. Human-readable status of the operation, if any.
    * 
* * string status_detail = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for statusDetail. */ - com.google.protobuf.ByteString getStatusDetailBytes(); + com.google.protobuf.ByteString + getStatusDetailBytes(); /** - * - * *
    * Output only. Identifies whether the user has requested cancellation
    * of the operation. Operations that have successfully been cancelled
@@ -185,33 +130,27 @@ public interface OperationMetadataOrBuilder
    * 
* * bool cancel_requested = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The cancelRequested. */ boolean getCancelRequested(); /** - * - * *
    * Output only. API version used to start the operation.
    * 
* * string api_version = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The apiVersion. */ java.lang.String getApiVersion(); /** - * - * *
    * Output only. API version used to start the operation.
    * 
* * string api_version = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for apiVersion. */ - com.google.protobuf.ByteString getApiVersionBytes(); + com.google.protobuf.ByteString + getApiVersionBytes(); } diff --git a/proto-google-cloud-memcache-v1beta2/src/main/java/com/google/cloud/memcache/v1beta2/UpdateInstanceRequest.java b/owl-bot-staging/v1beta2/proto-google-cloud-memcache-v1beta2/src/main/java/com/google/cloud/memcache/v1beta2/UpdateInstanceRequest.java similarity index 65% rename from proto-google-cloud-memcache-v1beta2/src/main/java/com/google/cloud/memcache/v1beta2/UpdateInstanceRequest.java rename to owl-bot-staging/v1beta2/proto-google-cloud-memcache-v1beta2/src/main/java/com/google/cloud/memcache/v1beta2/UpdateInstanceRequest.java index a3f8920c..ecf1e017 100644 --- a/proto-google-cloud-memcache-v1beta2/src/main/java/com/google/cloud/memcache/v1beta2/UpdateInstanceRequest.java +++ b/owl-bot-staging/v1beta2/proto-google-cloud-memcache-v1beta2/src/main/java/com/google/cloud/memcache/v1beta2/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/memcache/v1beta2/cloud_memcache.proto package com.google.cloud.memcache.v1beta2; /** - * - * *
  * Request for [UpdateInstance][google.cloud.memcache.v1beta2.CloudMemcache.UpdateInstance].
  * 
* * Protobuf type {@code google.cloud.memcache.v1beta2.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.memcache.v1beta2.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.memcache.v1beta2.Instance.Builder subBuilder = null; - if (resource_ != null) { - subBuilder = resource_.toBuilder(); - } - resource_ = - input.readMessage( - com.google.cloud.memcache.v1beta2.Instance.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(resource_); - resource_ = subBuilder.buildPartial(); - } - break; + break; + } + case 18: { + com.google.cloud.memcache.v1beta2.Instance.Builder subBuilder = null; + if (resource_ != null) { + subBuilder = resource_.toBuilder(); } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + resource_ = input.readMessage(com.google.cloud.memcache.v1beta2.Instance.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(resource_); + resource_ = subBuilder.buildPartial(); } + + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -113,41 +92,35 @@ 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.memcache.v1beta2.CloudMemcacheProto - .internal_static_google_cloud_memcache_v1beta2_UpdateInstanceRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.memcache.v1beta2.CloudMemcacheProto.internal_static_google_cloud_memcache_v1beta2_UpdateInstanceRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.memcache.v1beta2.CloudMemcacheProto - .internal_static_google_cloud_memcache_v1beta2_UpdateInstanceRequest_fieldAccessorTable + return com.google.cloud.memcache.v1beta2.CloudMemcacheProto.internal_static_google_cloud_memcache_v1beta2_UpdateInstanceRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.memcache.v1beta2.UpdateInstanceRequest.class, - com.google.cloud.memcache.v1beta2.UpdateInstanceRequest.Builder.class); + com.google.cloud.memcache.v1beta2.UpdateInstanceRequest.class, com.google.cloud.memcache.v1beta2.UpdateInstanceRequest.Builder.class); } public static final int UPDATE_MASK_FIELD_NUMBER = 1; private com.google.protobuf.FieldMask updateMask_; /** - * - * *
    * Required. Mask of fields to update.
    *  *  `displayName`
    * 
* - * .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 @@ -155,16 +128,12 @@ public boolean hasUpdateMask() { return updateMask_ != null; } /** - * - * *
    * Required. Mask of fields to update.
    *  *  `displayName`
    * 
* - * .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 @@ -172,15 +141,12 @@ public com.google.protobuf.FieldMask getUpdateMask() { return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; } /** - * - * *
    * Required. Mask of fields to update.
    *  *  `displayName`
    * 
* - * .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() { @@ -190,17 +156,12 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { public static final int RESOURCE_FIELD_NUMBER = 2; private com.google.cloud.memcache.v1beta2.Instance resource_; /** - * - * *
    * Required. A Memcached [Instance] resource.
    * Only fields specified in update_mask are updated.
    * 
* - * - * .google.cloud.memcache.v1beta2.Instance resource = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.memcache.v1beta2.Instance resource = 2 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the resource field is set. */ @java.lang.Override @@ -208,36 +169,25 @@ public boolean hasResource() { return resource_ != null; } /** - * - * *
    * Required. A Memcached [Instance] resource.
    * Only fields specified in update_mask are updated.
    * 
* - * - * .google.cloud.memcache.v1beta2.Instance resource = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.memcache.v1beta2.Instance resource = 2 [(.google.api.field_behavior) = REQUIRED]; * @return The resource. */ @java.lang.Override public com.google.cloud.memcache.v1beta2.Instance getResource() { - return resource_ == null - ? com.google.cloud.memcache.v1beta2.Instance.getDefaultInstance() - : resource_; + return resource_ == null ? com.google.cloud.memcache.v1beta2.Instance.getDefaultInstance() : resource_; } /** - * - * *
    * Required. A Memcached [Instance] resource.
    * Only fields specified in update_mask are updated.
    * 
* - * - * .google.cloud.memcache.v1beta2.Instance resource = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.memcache.v1beta2.Instance resource = 2 [(.google.api.field_behavior) = REQUIRED]; */ @java.lang.Override public com.google.cloud.memcache.v1beta2.InstanceOrBuilder getResourceOrBuilder() { @@ -245,7 +195,6 @@ public com.google.cloud.memcache.v1beta2.InstanceOrBuilder getResourceOrBuilder( } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -257,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 (updateMask_ != null) { output.writeMessage(1, getUpdateMask()); } @@ -274,10 +224,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 (resource_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getResource()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getResource()); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -287,21 +239,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.memcache.v1beta2.UpdateInstanceRequest)) { return super.equals(obj); } - com.google.cloud.memcache.v1beta2.UpdateInstanceRequest other = - (com.google.cloud.memcache.v1beta2.UpdateInstanceRequest) obj; + com.google.cloud.memcache.v1beta2.UpdateInstanceRequest other = (com.google.cloud.memcache.v1beta2.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 (hasResource() != other.hasResource()) return false; if (hasResource()) { - if (!getResource().equals(other.getResource())) return false; + if (!getResource() + .equals(other.getResource())) return false; } if (!unknownFields.equals(other.unknownFields)) return false; return true; @@ -328,127 +281,117 @@ public int hashCode() { } public static com.google.cloud.memcache.v1beta2.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.memcache.v1beta2.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.memcache.v1beta2.UpdateInstanceRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.memcache.v1beta2.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.memcache.v1beta2.UpdateInstanceRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.memcache.v1beta2.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.memcache.v1beta2.UpdateInstanceRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.memcache.v1beta2.UpdateInstanceRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.memcache.v1beta2.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.memcache.v1beta2.UpdateInstanceRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.memcache.v1beta2.UpdateInstanceRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.memcache.v1beta2.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.memcache.v1beta2.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.memcache.v1beta2.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.memcache.v1beta2.UpdateInstanceRequest prototype) { + public static Builder newBuilder(com.google.cloud.memcache.v1beta2.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.memcache.v1beta2.CloudMemcache.UpdateInstance].
    * 
* * Protobuf type {@code google.cloud.memcache.v1beta2.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.memcache.v1beta2.UpdateInstanceRequest) com.google.cloud.memcache.v1beta2.UpdateInstanceRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.memcache.v1beta2.CloudMemcacheProto - .internal_static_google_cloud_memcache_v1beta2_UpdateInstanceRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.memcache.v1beta2.CloudMemcacheProto.internal_static_google_cloud_memcache_v1beta2_UpdateInstanceRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.memcache.v1beta2.CloudMemcacheProto - .internal_static_google_cloud_memcache_v1beta2_UpdateInstanceRequest_fieldAccessorTable + return com.google.cloud.memcache.v1beta2.CloudMemcacheProto.internal_static_google_cloud_memcache_v1beta2_UpdateInstanceRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.memcache.v1beta2.UpdateInstanceRequest.class, - com.google.cloud.memcache.v1beta2.UpdateInstanceRequest.Builder.class); + com.google.cloud.memcache.v1beta2.UpdateInstanceRequest.class, com.google.cloud.memcache.v1beta2.UpdateInstanceRequest.Builder.class); } // Construct using com.google.cloud.memcache.v1beta2.UpdateInstanceRequest.newBuilder() @@ -456,15 +399,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(); @@ -484,9 +428,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.memcache.v1beta2.CloudMemcacheProto - .internal_static_google_cloud_memcache_v1beta2_UpdateInstanceRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.memcache.v1beta2.CloudMemcacheProto.internal_static_google_cloud_memcache_v1beta2_UpdateInstanceRequest_descriptor; } @java.lang.Override @@ -505,8 +449,7 @@ public com.google.cloud.memcache.v1beta2.UpdateInstanceRequest build() { @java.lang.Override public com.google.cloud.memcache.v1beta2.UpdateInstanceRequest buildPartial() { - com.google.cloud.memcache.v1beta2.UpdateInstanceRequest result = - new com.google.cloud.memcache.v1beta2.UpdateInstanceRequest(this); + com.google.cloud.memcache.v1beta2.UpdateInstanceRequest result = new com.google.cloud.memcache.v1beta2.UpdateInstanceRequest(this); if (updateMaskBuilder_ == null) { result.updateMask_ = updateMask_; } else { @@ -525,39 +468,38 @@ public com.google.cloud.memcache.v1beta2.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.memcache.v1beta2.UpdateInstanceRequest) { - return mergeFrom((com.google.cloud.memcache.v1beta2.UpdateInstanceRequest) other); + return mergeFrom((com.google.cloud.memcache.v1beta2.UpdateInstanceRequest)other); } else { super.mergeFrom(other); return this; @@ -565,8 +507,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.memcache.v1beta2.UpdateInstanceRequest other) { - if (other == com.google.cloud.memcache.v1beta2.UpdateInstanceRequest.getDefaultInstance()) - return this; + if (other == com.google.cloud.memcache.v1beta2.UpdateInstanceRequest.getDefaultInstance()) return this; if (other.hasUpdateMask()) { mergeUpdateMask(other.getUpdateMask()); } @@ -592,8 +533,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.memcache.v1beta2.UpdateInstanceRequest) e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.memcache.v1beta2.UpdateInstanceRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -605,58 +545,42 @@ 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.
      *  *  `displayName`
      * 
* - * .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.
      *  *  `displayName`
      * 
* - * .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.
      *  *  `displayName`
      * 
* - * .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) { @@ -672,17 +596,15 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask value) { return this; } /** - * - * *
      * Required. Mask of fields to update.
      *  *  `displayName`
      * 
* - * .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(); @@ -693,21 +615,18 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForVal return this; } /** - * - * *
      * Required. Mask of fields to update.
      *  *  `displayName`
      * 
* - * .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; } @@ -719,15 +638,12 @@ public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) { return this; } /** - * - * *
      * Required. Mask of fields to update.
      *  *  `displayName`
      * 
* - * .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) { @@ -741,64 +657,51 @@ public Builder clearUpdateMask() { return this; } /** - * - * *
      * Required. Mask of fields to update.
      *  *  `displayName`
      * 
* - * .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.
      *  *  `displayName`
      * 
* - * .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.
      *  *  `displayName`
      * 
* - * .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_; @@ -806,61 +709,42 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { private com.google.cloud.memcache.v1beta2.Instance resource_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.memcache.v1beta2.Instance, - com.google.cloud.memcache.v1beta2.Instance.Builder, - com.google.cloud.memcache.v1beta2.InstanceOrBuilder> - resourceBuilder_; + com.google.cloud.memcache.v1beta2.Instance, com.google.cloud.memcache.v1beta2.Instance.Builder, com.google.cloud.memcache.v1beta2.InstanceOrBuilder> resourceBuilder_; /** - * - * *
      * Required. A Memcached [Instance] resource.
      * Only fields specified in update_mask are updated.
      * 
* - * - * .google.cloud.memcache.v1beta2.Instance resource = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.memcache.v1beta2.Instance resource = 2 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the resource field is set. */ public boolean hasResource() { return resourceBuilder_ != null || resource_ != null; } /** - * - * *
      * Required. A Memcached [Instance] resource.
      * Only fields specified in update_mask are updated.
      * 
* - * - * .google.cloud.memcache.v1beta2.Instance resource = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.memcache.v1beta2.Instance resource = 2 [(.google.api.field_behavior) = REQUIRED]; * @return The resource. */ public com.google.cloud.memcache.v1beta2.Instance getResource() { if (resourceBuilder_ == null) { - return resource_ == null - ? com.google.cloud.memcache.v1beta2.Instance.getDefaultInstance() - : resource_; + return resource_ == null ? com.google.cloud.memcache.v1beta2.Instance.getDefaultInstance() : resource_; } else { return resourceBuilder_.getMessage(); } } /** - * - * *
      * Required. A Memcached [Instance] resource.
      * Only fields specified in update_mask are updated.
      * 
* - * - * .google.cloud.memcache.v1beta2.Instance resource = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.memcache.v1beta2.Instance resource = 2 [(.google.api.field_behavior) = REQUIRED]; */ public Builder setResource(com.google.cloud.memcache.v1beta2.Instance value) { if (resourceBuilder_ == null) { @@ -876,18 +760,15 @@ public Builder setResource(com.google.cloud.memcache.v1beta2.Instance value) { return this; } /** - * - * *
      * Required. A Memcached [Instance] resource.
      * Only fields specified in update_mask are updated.
      * 
* - * - * .google.cloud.memcache.v1beta2.Instance resource = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.memcache.v1beta2.Instance resource = 2 [(.google.api.field_behavior) = REQUIRED]; */ - public Builder setResource(com.google.cloud.memcache.v1beta2.Instance.Builder builderForValue) { + public Builder setResource( + com.google.cloud.memcache.v1beta2.Instance.Builder builderForValue) { if (resourceBuilder_ == null) { resource_ = builderForValue.build(); onChanged(); @@ -898,24 +779,18 @@ public Builder setResource(com.google.cloud.memcache.v1beta2.Instance.Builder bu return this; } /** - * - * *
      * Required. A Memcached [Instance] resource.
      * Only fields specified in update_mask are updated.
      * 
* - * - * .google.cloud.memcache.v1beta2.Instance resource = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.memcache.v1beta2.Instance resource = 2 [(.google.api.field_behavior) = REQUIRED]; */ public Builder mergeResource(com.google.cloud.memcache.v1beta2.Instance value) { if (resourceBuilder_ == null) { if (resource_ != null) { resource_ = - com.google.cloud.memcache.v1beta2.Instance.newBuilder(resource_) - .mergeFrom(value) - .buildPartial(); + com.google.cloud.memcache.v1beta2.Instance.newBuilder(resource_).mergeFrom(value).buildPartial(); } else { resource_ = value; } @@ -927,16 +802,12 @@ public Builder mergeResource(com.google.cloud.memcache.v1beta2.Instance value) { return this; } /** - * - * *
      * Required. A Memcached [Instance] resource.
      * Only fields specified in update_mask are updated.
      * 
* - * - * .google.cloud.memcache.v1beta2.Instance resource = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.memcache.v1beta2.Instance resource = 2 [(.google.api.field_behavior) = REQUIRED]; */ public Builder clearResource() { if (resourceBuilder_ == null) { @@ -950,74 +821,58 @@ public Builder clearResource() { return this; } /** - * - * *
      * Required. A Memcached [Instance] resource.
      * Only fields specified in update_mask are updated.
      * 
* - * - * .google.cloud.memcache.v1beta2.Instance resource = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.memcache.v1beta2.Instance resource = 2 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.cloud.memcache.v1beta2.Instance.Builder getResourceBuilder() { - + onChanged(); return getResourceFieldBuilder().getBuilder(); } /** - * - * *
      * Required. A Memcached [Instance] resource.
      * Only fields specified in update_mask are updated.
      * 
* - * - * .google.cloud.memcache.v1beta2.Instance resource = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.memcache.v1beta2.Instance resource = 2 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.cloud.memcache.v1beta2.InstanceOrBuilder getResourceOrBuilder() { if (resourceBuilder_ != null) { return resourceBuilder_.getMessageOrBuilder(); } else { - return resource_ == null - ? com.google.cloud.memcache.v1beta2.Instance.getDefaultInstance() - : resource_; + return resource_ == null ? + com.google.cloud.memcache.v1beta2.Instance.getDefaultInstance() : resource_; } } /** - * - * *
      * Required. A Memcached [Instance] resource.
      * Only fields specified in update_mask are updated.
      * 
* - * - * .google.cloud.memcache.v1beta2.Instance resource = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.memcache.v1beta2.Instance resource = 2 [(.google.api.field_behavior) = REQUIRED]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.memcache.v1beta2.Instance, - com.google.cloud.memcache.v1beta2.Instance.Builder, - com.google.cloud.memcache.v1beta2.InstanceOrBuilder> + com.google.cloud.memcache.v1beta2.Instance, com.google.cloud.memcache.v1beta2.Instance.Builder, com.google.cloud.memcache.v1beta2.InstanceOrBuilder> getResourceFieldBuilder() { if (resourceBuilder_ == null) { - resourceBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.memcache.v1beta2.Instance, - com.google.cloud.memcache.v1beta2.Instance.Builder, - com.google.cloud.memcache.v1beta2.InstanceOrBuilder>( - getResource(), getParentForChildren(), isClean()); + resourceBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.memcache.v1beta2.Instance, com.google.cloud.memcache.v1beta2.Instance.Builder, com.google.cloud.memcache.v1beta2.InstanceOrBuilder>( + getResource(), + getParentForChildren(), + isClean()); resource_ = null; } return resourceBuilder_; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1027,12 +882,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.memcache.v1beta2.UpdateInstanceRequest) } // @@protoc_insertion_point(class_scope:google.cloud.memcache.v1beta2.UpdateInstanceRequest) private static final com.google.cloud.memcache.v1beta2.UpdateInstanceRequest DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.memcache.v1beta2.UpdateInstanceRequest(); } @@ -1041,16 +896,16 @@ public static com.google.cloud.memcache.v1beta2.UpdateInstanceRequest getDefault 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; @@ -1065,4 +920,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.memcache.v1beta2.UpdateInstanceRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-memcache-v1beta2/src/main/java/com/google/cloud/memcache/v1beta2/UpdateInstanceRequestOrBuilder.java b/owl-bot-staging/v1beta2/proto-google-cloud-memcache-v1beta2/src/main/java/com/google/cloud/memcache/v1beta2/UpdateInstanceRequestOrBuilder.java similarity index 57% rename from proto-google-cloud-memcache-v1beta2/src/main/java/com/google/cloud/memcache/v1beta2/UpdateInstanceRequestOrBuilder.java rename to owl-bot-staging/v1beta2/proto-google-cloud-memcache-v1beta2/src/main/java/com/google/cloud/memcache/v1beta2/UpdateInstanceRequestOrBuilder.java index 1ba8536e..8bb03699 100644 --- a/proto-google-cloud-memcache-v1beta2/src/main/java/com/google/cloud/memcache/v1beta2/UpdateInstanceRequestOrBuilder.java +++ b/owl-bot-staging/v1beta2/proto-google-cloud-memcache-v1beta2/src/main/java/com/google/cloud/memcache/v1beta2/UpdateInstanceRequestOrBuilder.java @@ -1,110 +1,69 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/memcache/v1beta2/cloud_memcache.proto package com.google.cloud.memcache.v1beta2; -public interface UpdateInstanceRequestOrBuilder - extends +public interface UpdateInstanceRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.memcache.v1beta2.UpdateInstanceRequest) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Required. Mask of fields to update.
    *  *  `displayName`
    * 
* - * .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.
    *  *  `displayName`
    * 
* - * .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.
    *  *  `displayName`
    * 
* - * .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. A Memcached [Instance] resource.
    * Only fields specified in update_mask are updated.
    * 
* - * - * .google.cloud.memcache.v1beta2.Instance resource = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.memcache.v1beta2.Instance resource = 2 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the resource field is set. */ boolean hasResource(); /** - * - * *
    * Required. A Memcached [Instance] resource.
    * Only fields specified in update_mask are updated.
    * 
* - * - * .google.cloud.memcache.v1beta2.Instance resource = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.memcache.v1beta2.Instance resource = 2 [(.google.api.field_behavior) = REQUIRED]; * @return The resource. */ com.google.cloud.memcache.v1beta2.Instance getResource(); /** - * - * *
    * Required. A Memcached [Instance] resource.
    * Only fields specified in update_mask are updated.
    * 
* - * - * .google.cloud.memcache.v1beta2.Instance resource = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.memcache.v1beta2.Instance resource = 2 [(.google.api.field_behavior) = REQUIRED]; */ com.google.cloud.memcache.v1beta2.InstanceOrBuilder getResourceOrBuilder(); } diff --git a/proto-google-cloud-memcache-v1beta2/src/main/java/com/google/cloud/memcache/v1beta2/UpdateParametersRequest.java b/owl-bot-staging/v1beta2/proto-google-cloud-memcache-v1beta2/src/main/java/com/google/cloud/memcache/v1beta2/UpdateParametersRequest.java similarity index 68% rename from proto-google-cloud-memcache-v1beta2/src/main/java/com/google/cloud/memcache/v1beta2/UpdateParametersRequest.java rename to owl-bot-staging/v1beta2/proto-google-cloud-memcache-v1beta2/src/main/java/com/google/cloud/memcache/v1beta2/UpdateParametersRequest.java index 1466051b..23ef2744 100644 --- a/proto-google-cloud-memcache-v1beta2/src/main/java/com/google/cloud/memcache/v1beta2/UpdateParametersRequest.java +++ b/owl-bot-staging/v1beta2/proto-google-cloud-memcache-v1beta2/src/main/java/com/google/cloud/memcache/v1beta2/UpdateParametersRequest.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/memcache/v1beta2/cloud_memcache.proto package com.google.cloud.memcache.v1beta2; /** - * - * *
  * Request for [UpdateParameters][google.cloud.memcache.v1beta2.CloudMemcache.UpdateParameters].
  * 
* * Protobuf type {@code google.cloud.memcache.v1beta2.UpdateParametersRequest} */ -public final class UpdateParametersRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class UpdateParametersRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.memcache.v1beta2.UpdateParametersRequest) UpdateParametersRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use UpdateParametersRequest.newBuilder() to construct. private UpdateParametersRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private UpdateParametersRequest() { name_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new UpdateParametersRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private UpdateParametersRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -70,52 +53,45 @@ private UpdateParametersRequest( case 0: done = true; break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); + case 10: { + java.lang.String s = input.readStringRequireUtf8(); - name_ = s; - break; + name_ = s; + break; + } + case 18: { + com.google.protobuf.FieldMask.Builder subBuilder = null; + if (updateMask_ != null) { + subBuilder = updateMask_.toBuilder(); } - case 18: - { - com.google.protobuf.FieldMask.Builder subBuilder = null; - if (updateMask_ != null) { - subBuilder = updateMask_.toBuilder(); - } - updateMask_ = - input.readMessage(com.google.protobuf.FieldMask.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(updateMask_); - updateMask_ = subBuilder.buildPartial(); - } - - break; + updateMask_ = input.readMessage(com.google.protobuf.FieldMask.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(updateMask_); + updateMask_ = subBuilder.buildPartial(); } - case 26: - { - com.google.cloud.memcache.v1beta2.MemcacheParameters.Builder subBuilder = null; - if (parameters_ != null) { - subBuilder = parameters_.toBuilder(); - } - parameters_ = - input.readMessage( - com.google.cloud.memcache.v1beta2.MemcacheParameters.parser(), - extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(parameters_); - parameters_ = subBuilder.buildPartial(); - } - break; + break; + } + case 26: { + com.google.cloud.memcache.v1beta2.MemcacheParameters.Builder subBuilder = null; + if (parameters_ != null) { + subBuilder = parameters_.toBuilder(); } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + parameters_ = input.readMessage(com.google.cloud.memcache.v1beta2.MemcacheParameters.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(parameters_); + parameters_ = subBuilder.buildPartial(); } + + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -123,42 +99,35 @@ private UpdateParametersRequest( } 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.memcache.v1beta2.CloudMemcacheProto - .internal_static_google_cloud_memcache_v1beta2_UpdateParametersRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.memcache.v1beta2.CloudMemcacheProto.internal_static_google_cloud_memcache_v1beta2_UpdateParametersRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.memcache.v1beta2.CloudMemcacheProto - .internal_static_google_cloud_memcache_v1beta2_UpdateParametersRequest_fieldAccessorTable + return com.google.cloud.memcache.v1beta2.CloudMemcacheProto.internal_static_google_cloud_memcache_v1beta2_UpdateParametersRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.memcache.v1beta2.UpdateParametersRequest.class, - com.google.cloud.memcache.v1beta2.UpdateParametersRequest.Builder.class); + com.google.cloud.memcache.v1beta2.UpdateParametersRequest.class, com.google.cloud.memcache.v1beta2.UpdateParametersRequest.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** - * - * *
    * Required. Resource name of the Memcached instance for which the parameters should be
    * updated.
    * 
* - * - * string name = 1 [(.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 @@ -167,32 +136,30 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** - * - * *
    * Required. Resource name of the Memcached instance for which the parameters should be
    * updated.
    * 
* - * - * string name = 1 [(.google.api.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 { @@ -203,15 +170,11 @@ public com.google.protobuf.ByteString getNameBytes() { public static final int UPDATE_MASK_FIELD_NUMBER = 2; private com.google.protobuf.FieldMask updateMask_; /** - * - * *
    * Required. Mask of fields to update.
    * 
* - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the updateMask field is set. */ @java.lang.Override @@ -219,15 +182,11 @@ public boolean hasUpdateMask() { return updateMask_ != null; } /** - * - * *
    * Required. Mask of fields to update.
    * 
* - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; * @return The updateMask. */ @java.lang.Override @@ -235,14 +194,11 @@ public com.google.protobuf.FieldMask getUpdateMask() { return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; } /** - * - * *
    * Required. Mask of fields to update.
    * 
* - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; */ @java.lang.Override public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { @@ -252,14 +208,11 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { public static final int PARAMETERS_FIELD_NUMBER = 3; private com.google.cloud.memcache.v1beta2.MemcacheParameters parameters_; /** - * - * *
    * The parameters to apply to the instance.
    * 
* * .google.cloud.memcache.v1beta2.MemcacheParameters parameters = 3; - * * @return Whether the parameters field is set. */ @java.lang.Override @@ -267,25 +220,18 @@ public boolean hasParameters() { return parameters_ != null; } /** - * - * *
    * The parameters to apply to the instance.
    * 
* * .google.cloud.memcache.v1beta2.MemcacheParameters parameters = 3; - * * @return The parameters. */ @java.lang.Override public com.google.cloud.memcache.v1beta2.MemcacheParameters getParameters() { - return parameters_ == null - ? com.google.cloud.memcache.v1beta2.MemcacheParameters.getDefaultInstance() - : parameters_; + return parameters_ == null ? com.google.cloud.memcache.v1beta2.MemcacheParameters.getDefaultInstance() : parameters_; } /** - * - * *
    * The parameters to apply to the instance.
    * 
@@ -298,7 +244,6 @@ public com.google.cloud.memcache.v1beta2.MemcacheParametersOrBuilder getParamete } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -310,7 +255,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.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_); } @@ -333,10 +279,12 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); } if (updateMask_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getUpdateMask()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getUpdateMask()); } if (parameters_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getParameters()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(3, getParameters()); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -346,22 +294,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.memcache.v1beta2.UpdateParametersRequest)) { return super.equals(obj); } - com.google.cloud.memcache.v1beta2.UpdateParametersRequest other = - (com.google.cloud.memcache.v1beta2.UpdateParametersRequest) obj; + com.google.cloud.memcache.v1beta2.UpdateParametersRequest other = (com.google.cloud.memcache.v1beta2.UpdateParametersRequest) obj; - if (!getName().equals(other.getName())) return false; + if (!getName() + .equals(other.getName())) return false; if (hasUpdateMask() != other.hasUpdateMask()) return false; if (hasUpdateMask()) { - if (!getUpdateMask().equals(other.getUpdateMask())) return false; + if (!getUpdateMask() + .equals(other.getUpdateMask())) return false; } if (hasParameters() != other.hasParameters()) return false; if (hasParameters()) { - if (!getParameters().equals(other.getParameters())) return false; + if (!getParameters() + .equals(other.getParameters())) return false; } if (!unknownFields.equals(other.unknownFields)) return false; return true; @@ -390,127 +340,117 @@ public int hashCode() { } public static com.google.cloud.memcache.v1beta2.UpdateParametersRequest parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.memcache.v1beta2.UpdateParametersRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.memcache.v1beta2.UpdateParametersRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.memcache.v1beta2.UpdateParametersRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.memcache.v1beta2.UpdateParametersRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.memcache.v1beta2.UpdateParametersRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.memcache.v1beta2.UpdateParametersRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.memcache.v1beta2.UpdateParametersRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.memcache.v1beta2.UpdateParametersRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.memcache.v1beta2.UpdateParametersRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.memcache.v1beta2.UpdateParametersRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.memcache.v1beta2.UpdateParametersRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.memcache.v1beta2.UpdateParametersRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.memcache.v1beta2.UpdateParametersRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.memcache.v1beta2.UpdateParametersRequest prototype) { + public static Builder newBuilder(com.google.cloud.memcache.v1beta2.UpdateParametersRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected 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 [UpdateParameters][google.cloud.memcache.v1beta2.CloudMemcache.UpdateParameters].
    * 
* * Protobuf type {@code google.cloud.memcache.v1beta2.UpdateParametersRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.memcache.v1beta2.UpdateParametersRequest) com.google.cloud.memcache.v1beta2.UpdateParametersRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.memcache.v1beta2.CloudMemcacheProto - .internal_static_google_cloud_memcache_v1beta2_UpdateParametersRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.memcache.v1beta2.CloudMemcacheProto.internal_static_google_cloud_memcache_v1beta2_UpdateParametersRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.memcache.v1beta2.CloudMemcacheProto - .internal_static_google_cloud_memcache_v1beta2_UpdateParametersRequest_fieldAccessorTable + return com.google.cloud.memcache.v1beta2.CloudMemcacheProto.internal_static_google_cloud_memcache_v1beta2_UpdateParametersRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.memcache.v1beta2.UpdateParametersRequest.class, - com.google.cloud.memcache.v1beta2.UpdateParametersRequest.Builder.class); + com.google.cloud.memcache.v1beta2.UpdateParametersRequest.class, com.google.cloud.memcache.v1beta2.UpdateParametersRequest.Builder.class); } // Construct using com.google.cloud.memcache.v1beta2.UpdateParametersRequest.newBuilder() @@ -518,15 +458,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(); @@ -548,9 +489,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.memcache.v1beta2.CloudMemcacheProto - .internal_static_google_cloud_memcache_v1beta2_UpdateParametersRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.memcache.v1beta2.CloudMemcacheProto.internal_static_google_cloud_memcache_v1beta2_UpdateParametersRequest_descriptor; } @java.lang.Override @@ -569,8 +510,7 @@ public com.google.cloud.memcache.v1beta2.UpdateParametersRequest build() { @java.lang.Override public com.google.cloud.memcache.v1beta2.UpdateParametersRequest buildPartial() { - com.google.cloud.memcache.v1beta2.UpdateParametersRequest result = - new com.google.cloud.memcache.v1beta2.UpdateParametersRequest(this); + com.google.cloud.memcache.v1beta2.UpdateParametersRequest result = new com.google.cloud.memcache.v1beta2.UpdateParametersRequest(this); result.name_ = name_; if (updateMaskBuilder_ == null) { result.updateMask_ = updateMask_; @@ -590,39 +530,38 @@ public com.google.cloud.memcache.v1beta2.UpdateParametersRequest buildPartial() public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.memcache.v1beta2.UpdateParametersRequest) { - return mergeFrom((com.google.cloud.memcache.v1beta2.UpdateParametersRequest) other); + return mergeFrom((com.google.cloud.memcache.v1beta2.UpdateParametersRequest)other); } else { super.mergeFrom(other); return this; @@ -630,8 +569,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.memcache.v1beta2.UpdateParametersRequest other) { - if (other == com.google.cloud.memcache.v1beta2.UpdateParametersRequest.getDefaultInstance()) - return this; + if (other == com.google.cloud.memcache.v1beta2.UpdateParametersRequest.getDefaultInstance()) return this; if (!other.getName().isEmpty()) { name_ = other.name_; onChanged(); @@ -661,8 +599,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.memcache.v1beta2.UpdateParametersRequest) e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.memcache.v1beta2.UpdateParametersRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -674,23 +611,19 @@ public Builder mergeFrom( private java.lang.Object name_ = ""; /** - * - * *
      * Required. Resource name of the Memcached instance for which the parameters should be
      * updated.
      * 
* - * - * string name = 1 [(.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; @@ -699,24 +632,21 @@ public java.lang.String getName() { } } /** - * - * *
      * Required. Resource name of the Memcached instance for which the parameters should be
      * updated.
      * 
* - * - * string name = 1 [(.google.api.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 { @@ -724,70 +654,57 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
      * Required. Resource name of the Memcached instance for which the parameters should be
      * updated.
      * 
* - * - * 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. Resource name of the Memcached instance for which the parameters should be
      * updated.
      * 
* - * - * string 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. Resource name of the Memcached instance for which the parameters should be
      * updated.
      * 
* - * - * 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; @@ -795,55 +712,39 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { 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.
      * 
* - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.protobuf.FieldMask update_mask = 2 [(.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.
      * 
* - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.protobuf.FieldMask update_mask = 2 [(.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.
      * 
* - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; */ public Builder setUpdateMask(com.google.protobuf.FieldMask value) { if (updateMaskBuilder_ == null) { @@ -859,16 +760,14 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask value) { return this; } /** - * - * *
      * Required. Mask of fields to update.
      * 
* - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.protobuf.FieldMask update_mask = 2 [(.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(); @@ -879,20 +778,17 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForVal return this; } /** - * - * *
      * Required. Mask of fields to update.
      * 
* - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.protobuf.FieldMask update_mask = 2 [(.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; } @@ -904,14 +800,11 @@ public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) { return this; } /** - * - * *
      * Required. Mask of fields to update.
      * 
* - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; */ public Builder clearUpdateMask() { if (updateMaskBuilder_ == null) { @@ -925,61 +818,48 @@ public Builder clearUpdateMask() { return this; } /** - * - * *
      * Required. Mask of fields to update.
      * 
* - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() { - + onChanged(); return getUpdateMaskFieldBuilder().getBuilder(); } /** - * - * *
      * Required. Mask of fields to update.
      * 
* - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.protobuf.FieldMask update_mask = 2 [(.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.
      * 
* - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.protobuf.FieldMask update_mask = 2 [(.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_; @@ -987,47 +867,34 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { private com.google.cloud.memcache.v1beta2.MemcacheParameters parameters_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.memcache.v1beta2.MemcacheParameters, - com.google.cloud.memcache.v1beta2.MemcacheParameters.Builder, - com.google.cloud.memcache.v1beta2.MemcacheParametersOrBuilder> - parametersBuilder_; + com.google.cloud.memcache.v1beta2.MemcacheParameters, com.google.cloud.memcache.v1beta2.MemcacheParameters.Builder, com.google.cloud.memcache.v1beta2.MemcacheParametersOrBuilder> parametersBuilder_; /** - * - * *
      * The parameters to apply to the instance.
      * 
* * .google.cloud.memcache.v1beta2.MemcacheParameters parameters = 3; - * * @return Whether the parameters field is set. */ public boolean hasParameters() { return parametersBuilder_ != null || parameters_ != null; } /** - * - * *
      * The parameters to apply to the instance.
      * 
* * .google.cloud.memcache.v1beta2.MemcacheParameters parameters = 3; - * * @return The parameters. */ public com.google.cloud.memcache.v1beta2.MemcacheParameters getParameters() { if (parametersBuilder_ == null) { - return parameters_ == null - ? com.google.cloud.memcache.v1beta2.MemcacheParameters.getDefaultInstance() - : parameters_; + return parameters_ == null ? com.google.cloud.memcache.v1beta2.MemcacheParameters.getDefaultInstance() : parameters_; } else { return parametersBuilder_.getMessage(); } } /** - * - * *
      * The parameters to apply to the instance.
      * 
@@ -1048,8 +915,6 @@ public Builder setParameters(com.google.cloud.memcache.v1beta2.MemcacheParameter return this; } /** - * - * *
      * The parameters to apply to the instance.
      * 
@@ -1068,8 +933,6 @@ public Builder setParameters( return this; } /** - * - * *
      * The parameters to apply to the instance.
      * 
@@ -1080,9 +943,7 @@ public Builder mergeParameters(com.google.cloud.memcache.v1beta2.MemcacheParamet if (parametersBuilder_ == null) { if (parameters_ != null) { parameters_ = - com.google.cloud.memcache.v1beta2.MemcacheParameters.newBuilder(parameters_) - .mergeFrom(value) - .buildPartial(); + com.google.cloud.memcache.v1beta2.MemcacheParameters.newBuilder(parameters_).mergeFrom(value).buildPartial(); } else { parameters_ = value; } @@ -1094,8 +955,6 @@ public Builder mergeParameters(com.google.cloud.memcache.v1beta2.MemcacheParamet return this; } /** - * - * *
      * The parameters to apply to the instance.
      * 
@@ -1114,8 +973,6 @@ public Builder clearParameters() { return this; } /** - * - * *
      * The parameters to apply to the instance.
      * 
@@ -1123,13 +980,11 @@ public Builder clearParameters() { * .google.cloud.memcache.v1beta2.MemcacheParameters parameters = 3; */ public com.google.cloud.memcache.v1beta2.MemcacheParameters.Builder getParametersBuilder() { - + onChanged(); return getParametersFieldBuilder().getBuilder(); } /** - * - * *
      * The parameters to apply to the instance.
      * 
@@ -1140,14 +995,11 @@ public com.google.cloud.memcache.v1beta2.MemcacheParametersOrBuilder getParamete if (parametersBuilder_ != null) { return parametersBuilder_.getMessageOrBuilder(); } else { - return parameters_ == null - ? com.google.cloud.memcache.v1beta2.MemcacheParameters.getDefaultInstance() - : parameters_; + return parameters_ == null ? + com.google.cloud.memcache.v1beta2.MemcacheParameters.getDefaultInstance() : parameters_; } } /** - * - * *
      * The parameters to apply to the instance.
      * 
@@ -1155,24 +1007,21 @@ public com.google.cloud.memcache.v1beta2.MemcacheParametersOrBuilder getParamete * .google.cloud.memcache.v1beta2.MemcacheParameters parameters = 3; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.memcache.v1beta2.MemcacheParameters, - com.google.cloud.memcache.v1beta2.MemcacheParameters.Builder, - com.google.cloud.memcache.v1beta2.MemcacheParametersOrBuilder> + com.google.cloud.memcache.v1beta2.MemcacheParameters, com.google.cloud.memcache.v1beta2.MemcacheParameters.Builder, com.google.cloud.memcache.v1beta2.MemcacheParametersOrBuilder> getParametersFieldBuilder() { if (parametersBuilder_ == null) { - parametersBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.memcache.v1beta2.MemcacheParameters, - com.google.cloud.memcache.v1beta2.MemcacheParameters.Builder, - com.google.cloud.memcache.v1beta2.MemcacheParametersOrBuilder>( - getParameters(), getParentForChildren(), isClean()); + parametersBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.memcache.v1beta2.MemcacheParameters, com.google.cloud.memcache.v1beta2.MemcacheParameters.Builder, com.google.cloud.memcache.v1beta2.MemcacheParametersOrBuilder>( + getParameters(), + getParentForChildren(), + isClean()); parameters_ = null; } return parametersBuilder_; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1182,12 +1031,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.memcache.v1beta2.UpdateParametersRequest) } // @@protoc_insertion_point(class_scope:google.cloud.memcache.v1beta2.UpdateParametersRequest) private static final com.google.cloud.memcache.v1beta2.UpdateParametersRequest DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.memcache.v1beta2.UpdateParametersRequest(); } @@ -1196,16 +1045,16 @@ public static com.google.cloud.memcache.v1beta2.UpdateParametersRequest getDefau return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public UpdateParametersRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new UpdateParametersRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public UpdateParametersRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new UpdateParametersRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1220,4 +1069,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.memcache.v1beta2.UpdateParametersRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-memcache-v1beta2/src/main/java/com/google/cloud/memcache/v1beta2/UpdateParametersRequestOrBuilder.java b/owl-bot-staging/v1beta2/proto-google-cloud-memcache-v1beta2/src/main/java/com/google/cloud/memcache/v1beta2/UpdateParametersRequestOrBuilder.java similarity index 63% rename from proto-google-cloud-memcache-v1beta2/src/main/java/com/google/cloud/memcache/v1beta2/UpdateParametersRequestOrBuilder.java rename to owl-bot-staging/v1beta2/proto-google-cloud-memcache-v1beta2/src/main/java/com/google/cloud/memcache/v1beta2/UpdateParametersRequestOrBuilder.java index 2d3b0e37..71c408ee 100644 --- a/proto-google-cloud-memcache-v1beta2/src/main/java/com/google/cloud/memcache/v1beta2/UpdateParametersRequestOrBuilder.java +++ b/owl-bot-staging/v1beta2/proto-google-cloud-memcache-v1beta2/src/main/java/com/google/cloud/memcache/v1beta2/UpdateParametersRequestOrBuilder.java @@ -1,124 +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/memcache/v1beta2/cloud_memcache.proto package com.google.cloud.memcache.v1beta2; -public interface UpdateParametersRequestOrBuilder - extends +public interface UpdateParametersRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.memcache.v1beta2.UpdateParametersRequest) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Required. Resource name of the Memcached instance for which the parameters should be
    * updated.
    * 
* - * - * string name = 1 [(.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. Resource name of the Memcached instance for which the parameters should be
    * updated.
    * 
* - * - * string name = 1 [(.google.api.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. Mask of fields to update.
    * 
* - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the updateMask field is set. */ boolean hasUpdateMask(); /** - * - * *
    * Required. Mask of fields to update.
    * 
* - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; * @return The updateMask. */ com.google.protobuf.FieldMask getUpdateMask(); /** - * - * *
    * Required. Mask of fields to update.
    * 
* - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; */ com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder(); /** - * - * *
    * The parameters to apply to the instance.
    * 
* * .google.cloud.memcache.v1beta2.MemcacheParameters parameters = 3; - * * @return Whether the parameters field is set. */ boolean hasParameters(); /** - * - * *
    * The parameters to apply to the instance.
    * 
* * .google.cloud.memcache.v1beta2.MemcacheParameters parameters = 3; - * * @return The parameters. */ com.google.cloud.memcache.v1beta2.MemcacheParameters getParameters(); /** - * - * *
    * The parameters to apply to the instance.
    * 
diff --git a/proto-google-cloud-memcache-v1beta2/src/main/java/com/google/cloud/memcache/v1beta2/ZoneMetadata.java b/owl-bot-staging/v1beta2/proto-google-cloud-memcache-v1beta2/src/main/java/com/google/cloud/memcache/v1beta2/ZoneMetadata.java similarity index 67% rename from proto-google-cloud-memcache-v1beta2/src/main/java/com/google/cloud/memcache/v1beta2/ZoneMetadata.java rename to owl-bot-staging/v1beta2/proto-google-cloud-memcache-v1beta2/src/main/java/com/google/cloud/memcache/v1beta2/ZoneMetadata.java index dbf6a92a..3068305d 100644 --- a/proto-google-cloud-memcache-v1beta2/src/main/java/com/google/cloud/memcache/v1beta2/ZoneMetadata.java +++ b/owl-bot-staging/v1beta2/proto-google-cloud-memcache-v1beta2/src/main/java/com/google/cloud/memcache/v1beta2/ZoneMetadata.java @@ -1,47 +1,35 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/memcache/v1beta2/cloud_memcache.proto package com.google.cloud.memcache.v1beta2; -/** Protobuf type {@code google.cloud.memcache.v1beta2.ZoneMetadata} */ -public final class ZoneMetadata extends com.google.protobuf.GeneratedMessageV3 - implements +/** + * Protobuf type {@code google.cloud.memcache.v1beta2.ZoneMetadata} + */ +public final class ZoneMetadata extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.memcache.v1beta2.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) @@ -60,13 +48,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) { @@ -74,30 +62,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.memcache.v1beta2.CloudMemcacheProto - .internal_static_google_cloud_memcache_v1beta2_ZoneMetadata_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.memcache.v1beta2.CloudMemcacheProto.internal_static_google_cloud_memcache_v1beta2_ZoneMetadata_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.memcache.v1beta2.CloudMemcacheProto - .internal_static_google_cloud_memcache_v1beta2_ZoneMetadata_fieldAccessorTable + return com.google.cloud.memcache.v1beta2.CloudMemcacheProto.internal_static_google_cloud_memcache_v1beta2_ZoneMetadata_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.memcache.v1beta2.ZoneMetadata.class, - com.google.cloud.memcache.v1beta2.ZoneMetadata.Builder.class); + com.google.cloud.memcache.v1beta2.ZoneMetadata.class, com.google.cloud.memcache.v1beta2.ZoneMetadata.Builder.class); } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -109,7 +94,8 @@ public final boolean isInitialized() { } @java.lang.Override - 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); } @@ -127,13 +113,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.memcache.v1beta2.ZoneMetadata)) { return super.equals(obj); } - com.google.cloud.memcache.v1beta2.ZoneMetadata other = - (com.google.cloud.memcache.v1beta2.ZoneMetadata) obj; + com.google.cloud.memcache.v1beta2.ZoneMetadata other = (com.google.cloud.memcache.v1beta2.ZoneMetadata) obj; if (!unknownFields.equals(other.unknownFields)) return false; return true; @@ -151,119 +136,114 @@ public int hashCode() { return hash; } - public static com.google.cloud.memcache.v1beta2.ZoneMetadata parseFrom(java.nio.ByteBuffer data) + public static com.google.cloud.memcache.v1beta2.ZoneMetadata parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.memcache.v1beta2.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.memcache.v1beta2.ZoneMetadata parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.memcache.v1beta2.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.memcache.v1beta2.ZoneMetadata parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.memcache.v1beta2.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.memcache.v1beta2.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.memcache.v1beta2.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.memcache.v1beta2.ZoneMetadata parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.memcache.v1beta2.ZoneMetadata parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.memcache.v1beta2.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.memcache.v1beta2.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.memcache.v1beta2.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.memcache.v1beta2.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; } - /** Protobuf type {@code google.cloud.memcache.v1beta2.ZoneMetadata} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + /** + * Protobuf type {@code google.cloud.memcache.v1beta2.ZoneMetadata} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.memcache.v1beta2.ZoneMetadata) com.google.cloud.memcache.v1beta2.ZoneMetadataOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.memcache.v1beta2.CloudMemcacheProto - .internal_static_google_cloud_memcache_v1beta2_ZoneMetadata_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.memcache.v1beta2.CloudMemcacheProto.internal_static_google_cloud_memcache_v1beta2_ZoneMetadata_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.memcache.v1beta2.CloudMemcacheProto - .internal_static_google_cloud_memcache_v1beta2_ZoneMetadata_fieldAccessorTable + return com.google.cloud.memcache.v1beta2.CloudMemcacheProto.internal_static_google_cloud_memcache_v1beta2_ZoneMetadata_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.memcache.v1beta2.ZoneMetadata.class, - com.google.cloud.memcache.v1beta2.ZoneMetadata.Builder.class); + com.google.cloud.memcache.v1beta2.ZoneMetadata.class, com.google.cloud.memcache.v1beta2.ZoneMetadata.Builder.class); } // Construct using com.google.cloud.memcache.v1beta2.ZoneMetadata.newBuilder() @@ -271,15 +251,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(); @@ -287,9 +268,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.memcache.v1beta2.CloudMemcacheProto - .internal_static_google_cloud_memcache_v1beta2_ZoneMetadata_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.memcache.v1beta2.CloudMemcacheProto.internal_static_google_cloud_memcache_v1beta2_ZoneMetadata_descriptor; } @java.lang.Override @@ -308,8 +289,7 @@ public com.google.cloud.memcache.v1beta2.ZoneMetadata build() { @java.lang.Override public com.google.cloud.memcache.v1beta2.ZoneMetadata buildPartial() { - com.google.cloud.memcache.v1beta2.ZoneMetadata result = - new com.google.cloud.memcache.v1beta2.ZoneMetadata(this); + com.google.cloud.memcache.v1beta2.ZoneMetadata result = new com.google.cloud.memcache.v1beta2.ZoneMetadata(this); onBuilt(); return result; } @@ -318,39 +298,38 @@ public com.google.cloud.memcache.v1beta2.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.memcache.v1beta2.ZoneMetadata) { - return mergeFrom((com.google.cloud.memcache.v1beta2.ZoneMetadata) other); + return mergeFrom((com.google.cloud.memcache.v1beta2.ZoneMetadata)other); } else { super.mergeFrom(other); return this; @@ -387,9 +366,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); } @@ -399,12 +378,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.memcache.v1beta2.ZoneMetadata) } // @@protoc_insertion_point(class_scope:google.cloud.memcache.v1beta2.ZoneMetadata) private static final com.google.cloud.memcache.v1beta2.ZoneMetadata DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.memcache.v1beta2.ZoneMetadata(); } @@ -413,16 +392,16 @@ public static com.google.cloud.memcache.v1beta2.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; @@ -437,4 +416,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.memcache.v1beta2.ZoneMetadata getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/owl-bot-staging/v1beta2/proto-google-cloud-memcache-v1beta2/src/main/java/com/google/cloud/memcache/v1beta2/ZoneMetadataOrBuilder.java b/owl-bot-staging/v1beta2/proto-google-cloud-memcache-v1beta2/src/main/java/com/google/cloud/memcache/v1beta2/ZoneMetadataOrBuilder.java new file mode 100644 index 00000000..e27439b0 --- /dev/null +++ b/owl-bot-staging/v1beta2/proto-google-cloud-memcache-v1beta2/src/main/java/com/google/cloud/memcache/v1beta2/ZoneMetadataOrBuilder.java @@ -0,0 +1,9 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/memcache/v1beta2/cloud_memcache.proto + +package com.google.cloud.memcache.v1beta2; + +public interface ZoneMetadataOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.cloud.memcache.v1beta2.ZoneMetadata) + com.google.protobuf.MessageOrBuilder { +} diff --git a/proto-google-cloud-memcache-v1beta2/src/main/proto/google/cloud/memcache/v1beta2/cloud_memcache.proto b/owl-bot-staging/v1beta2/proto-google-cloud-memcache-v1beta2/src/main/proto/google/cloud/memcache/v1beta2/cloud_memcache.proto similarity index 100% rename from proto-google-cloud-memcache-v1beta2/src/main/proto/google/cloud/memcache/v1beta2/cloud_memcache.proto rename to owl-bot-staging/v1beta2/proto-google-cloud-memcache-v1beta2/src/main/proto/google/cloud/memcache/v1beta2/cloud_memcache.proto diff --git a/samples/snippets/generated/com/google/cloud/memcache/v1beta2/cloudmemcacheclient/applyparameters/AsyncApplyParameters.java b/owl-bot-staging/v1beta2/samples/snippets/generated/com/google/cloud/memcache/v1beta2/cloudmemcacheclient/applyparameters/AsyncApplyParameters.java similarity index 100% rename from samples/snippets/generated/com/google/cloud/memcache/v1beta2/cloudmemcacheclient/applyparameters/AsyncApplyParameters.java rename to owl-bot-staging/v1beta2/samples/snippets/generated/com/google/cloud/memcache/v1beta2/cloudmemcacheclient/applyparameters/AsyncApplyParameters.java diff --git a/samples/snippets/generated/com/google/cloud/memcache/v1beta2/cloudmemcacheclient/applyparameters/AsyncApplyParametersLRO.java b/owl-bot-staging/v1beta2/samples/snippets/generated/com/google/cloud/memcache/v1beta2/cloudmemcacheclient/applyparameters/AsyncApplyParametersLRO.java similarity index 100% rename from samples/snippets/generated/com/google/cloud/memcache/v1beta2/cloudmemcacheclient/applyparameters/AsyncApplyParametersLRO.java rename to owl-bot-staging/v1beta2/samples/snippets/generated/com/google/cloud/memcache/v1beta2/cloudmemcacheclient/applyparameters/AsyncApplyParametersLRO.java diff --git a/samples/snippets/generated/com/google/cloud/memcache/v1beta2/cloudmemcacheclient/applyparameters/SyncApplyParameters.java b/owl-bot-staging/v1beta2/samples/snippets/generated/com/google/cloud/memcache/v1beta2/cloudmemcacheclient/applyparameters/SyncApplyParameters.java similarity index 100% rename from samples/snippets/generated/com/google/cloud/memcache/v1beta2/cloudmemcacheclient/applyparameters/SyncApplyParameters.java rename to owl-bot-staging/v1beta2/samples/snippets/generated/com/google/cloud/memcache/v1beta2/cloudmemcacheclient/applyparameters/SyncApplyParameters.java diff --git a/samples/snippets/generated/com/google/cloud/memcache/v1beta2/cloudmemcacheclient/applyparameters/SyncApplyParametersInstancenameListstringBoolean.java b/owl-bot-staging/v1beta2/samples/snippets/generated/com/google/cloud/memcache/v1beta2/cloudmemcacheclient/applyparameters/SyncApplyParametersInstancenameListstringBoolean.java similarity index 88% rename from samples/snippets/generated/com/google/cloud/memcache/v1beta2/cloudmemcacheclient/applyparameters/SyncApplyParametersInstancenameListstringBoolean.java rename to owl-bot-staging/v1beta2/samples/snippets/generated/com/google/cloud/memcache/v1beta2/cloudmemcacheclient/applyparameters/SyncApplyParametersInstancenameListstringBoolean.java index 542070ab..537ad967 100644 --- a/samples/snippets/generated/com/google/cloud/memcache/v1beta2/cloudmemcacheclient/applyparameters/SyncApplyParametersInstancenameListstringBoolean.java +++ b/owl-bot-staging/v1beta2/samples/snippets/generated/com/google/cloud/memcache/v1beta2/cloudmemcacheclient/applyparameters/SyncApplyParametersInstancenameListstringBoolean.java @@ -16,8 +16,7 @@ package com.google.cloud.memcache.v1beta2.samples; -// [START -// memcache_v1beta2_generated_cloudmemcacheclient_applyparameters_instancenameliststringboolean_sync] +// [START memcache_v1beta2_generated_cloudmemcacheclient_applyparameters_instancenameliststringboolean_sync] import com.google.cloud.memcache.v1beta2.CloudMemcacheClient; import com.google.cloud.memcache.v1beta2.Instance; import com.google.cloud.memcache.v1beta2.InstanceName; @@ -41,5 +40,4 @@ public static void syncApplyParametersInstancenameListstringBoolean() throws Exc } } } -// [END -// memcache_v1beta2_generated_cloudmemcacheclient_applyparameters_instancenameliststringboolean_sync] +// [END memcache_v1beta2_generated_cloudmemcacheclient_applyparameters_instancenameliststringboolean_sync] diff --git a/samples/snippets/generated/com/google/cloud/memcache/v1beta2/cloudmemcacheclient/applyparameters/SyncApplyParametersStringListstringBoolean.java b/owl-bot-staging/v1beta2/samples/snippets/generated/com/google/cloud/memcache/v1beta2/cloudmemcacheclient/applyparameters/SyncApplyParametersStringListstringBoolean.java similarity index 94% rename from samples/snippets/generated/com/google/cloud/memcache/v1beta2/cloudmemcacheclient/applyparameters/SyncApplyParametersStringListstringBoolean.java rename to owl-bot-staging/v1beta2/samples/snippets/generated/com/google/cloud/memcache/v1beta2/cloudmemcacheclient/applyparameters/SyncApplyParametersStringListstringBoolean.java index aae5dc5b..fbb00555 100644 --- a/samples/snippets/generated/com/google/cloud/memcache/v1beta2/cloudmemcacheclient/applyparameters/SyncApplyParametersStringListstringBoolean.java +++ b/owl-bot-staging/v1beta2/samples/snippets/generated/com/google/cloud/memcache/v1beta2/cloudmemcacheclient/applyparameters/SyncApplyParametersStringListstringBoolean.java @@ -16,8 +16,7 @@ package com.google.cloud.memcache.v1beta2.samples; -// [START -// memcache_v1beta2_generated_cloudmemcacheclient_applyparameters_stringliststringboolean_sync] +// [START memcache_v1beta2_generated_cloudmemcacheclient_applyparameters_stringliststringboolean_sync] import com.google.cloud.memcache.v1beta2.CloudMemcacheClient; import com.google.cloud.memcache.v1beta2.Instance; import com.google.cloud.memcache.v1beta2.InstanceName; diff --git a/samples/snippets/generated/com/google/cloud/memcache/v1beta2/cloudmemcacheclient/applysoftwareupdate/AsyncApplySoftwareUpdate.java b/owl-bot-staging/v1beta2/samples/snippets/generated/com/google/cloud/memcache/v1beta2/cloudmemcacheclient/applysoftwareupdate/AsyncApplySoftwareUpdate.java similarity index 100% rename from samples/snippets/generated/com/google/cloud/memcache/v1beta2/cloudmemcacheclient/applysoftwareupdate/AsyncApplySoftwareUpdate.java rename to owl-bot-staging/v1beta2/samples/snippets/generated/com/google/cloud/memcache/v1beta2/cloudmemcacheclient/applysoftwareupdate/AsyncApplySoftwareUpdate.java diff --git a/samples/snippets/generated/com/google/cloud/memcache/v1beta2/cloudmemcacheclient/applysoftwareupdate/AsyncApplySoftwareUpdateLRO.java b/owl-bot-staging/v1beta2/samples/snippets/generated/com/google/cloud/memcache/v1beta2/cloudmemcacheclient/applysoftwareupdate/AsyncApplySoftwareUpdateLRO.java similarity index 100% rename from samples/snippets/generated/com/google/cloud/memcache/v1beta2/cloudmemcacheclient/applysoftwareupdate/AsyncApplySoftwareUpdateLRO.java rename to owl-bot-staging/v1beta2/samples/snippets/generated/com/google/cloud/memcache/v1beta2/cloudmemcacheclient/applysoftwareupdate/AsyncApplySoftwareUpdateLRO.java diff --git a/samples/snippets/generated/com/google/cloud/memcache/v1beta2/cloudmemcacheclient/applysoftwareupdate/SyncApplySoftwareUpdate.java b/owl-bot-staging/v1beta2/samples/snippets/generated/com/google/cloud/memcache/v1beta2/cloudmemcacheclient/applysoftwareupdate/SyncApplySoftwareUpdate.java similarity index 100% rename from samples/snippets/generated/com/google/cloud/memcache/v1beta2/cloudmemcacheclient/applysoftwareupdate/SyncApplySoftwareUpdate.java rename to owl-bot-staging/v1beta2/samples/snippets/generated/com/google/cloud/memcache/v1beta2/cloudmemcacheclient/applysoftwareupdate/SyncApplySoftwareUpdate.java diff --git a/samples/snippets/generated/com/google/cloud/memcache/v1beta2/cloudmemcacheclient/applysoftwareupdate/SyncApplySoftwareUpdateInstancenameListstringBoolean.java b/owl-bot-staging/v1beta2/samples/snippets/generated/com/google/cloud/memcache/v1beta2/cloudmemcacheclient/applysoftwareupdate/SyncApplySoftwareUpdateInstancenameListstringBoolean.java similarity index 88% rename from samples/snippets/generated/com/google/cloud/memcache/v1beta2/cloudmemcacheclient/applysoftwareupdate/SyncApplySoftwareUpdateInstancenameListstringBoolean.java rename to owl-bot-staging/v1beta2/samples/snippets/generated/com/google/cloud/memcache/v1beta2/cloudmemcacheclient/applysoftwareupdate/SyncApplySoftwareUpdateInstancenameListstringBoolean.java index 384da479..ab806555 100644 --- a/samples/snippets/generated/com/google/cloud/memcache/v1beta2/cloudmemcacheclient/applysoftwareupdate/SyncApplySoftwareUpdateInstancenameListstringBoolean.java +++ b/owl-bot-staging/v1beta2/samples/snippets/generated/com/google/cloud/memcache/v1beta2/cloudmemcacheclient/applysoftwareupdate/SyncApplySoftwareUpdateInstancenameListstringBoolean.java @@ -16,8 +16,7 @@ package com.google.cloud.memcache.v1beta2.samples; -// [START -// memcache_v1beta2_generated_cloudmemcacheclient_applysoftwareupdate_instancenameliststringboolean_sync] +// [START memcache_v1beta2_generated_cloudmemcacheclient_applysoftwareupdate_instancenameliststringboolean_sync] import com.google.cloud.memcache.v1beta2.CloudMemcacheClient; import com.google.cloud.memcache.v1beta2.Instance; import com.google.cloud.memcache.v1beta2.InstanceName; @@ -42,5 +41,4 @@ public static void syncApplySoftwareUpdateInstancenameListstringBoolean() throws } } } -// [END -// memcache_v1beta2_generated_cloudmemcacheclient_applysoftwareupdate_instancenameliststringboolean_sync] +// [END memcache_v1beta2_generated_cloudmemcacheclient_applysoftwareupdate_instancenameliststringboolean_sync] diff --git a/samples/snippets/generated/com/google/cloud/memcache/v1beta2/cloudmemcacheclient/applysoftwareupdate/SyncApplySoftwareUpdateStringListstringBoolean.java b/owl-bot-staging/v1beta2/samples/snippets/generated/com/google/cloud/memcache/v1beta2/cloudmemcacheclient/applysoftwareupdate/SyncApplySoftwareUpdateStringListstringBoolean.java similarity index 88% rename from samples/snippets/generated/com/google/cloud/memcache/v1beta2/cloudmemcacheclient/applysoftwareupdate/SyncApplySoftwareUpdateStringListstringBoolean.java rename to owl-bot-staging/v1beta2/samples/snippets/generated/com/google/cloud/memcache/v1beta2/cloudmemcacheclient/applysoftwareupdate/SyncApplySoftwareUpdateStringListstringBoolean.java index 1c6ccb8f..e387d095 100644 --- a/samples/snippets/generated/com/google/cloud/memcache/v1beta2/cloudmemcacheclient/applysoftwareupdate/SyncApplySoftwareUpdateStringListstringBoolean.java +++ b/owl-bot-staging/v1beta2/samples/snippets/generated/com/google/cloud/memcache/v1beta2/cloudmemcacheclient/applysoftwareupdate/SyncApplySoftwareUpdateStringListstringBoolean.java @@ -16,8 +16,7 @@ package com.google.cloud.memcache.v1beta2.samples; -// [START -// memcache_v1beta2_generated_cloudmemcacheclient_applysoftwareupdate_stringliststringboolean_sync] +// [START memcache_v1beta2_generated_cloudmemcacheclient_applysoftwareupdate_stringliststringboolean_sync] import com.google.cloud.memcache.v1beta2.CloudMemcacheClient; import com.google.cloud.memcache.v1beta2.Instance; import com.google.cloud.memcache.v1beta2.InstanceName; @@ -42,5 +41,4 @@ public static void syncApplySoftwareUpdateStringListstringBoolean() throws Excep } } } -// [END -// memcache_v1beta2_generated_cloudmemcacheclient_applysoftwareupdate_stringliststringboolean_sync] +// [END memcache_v1beta2_generated_cloudmemcacheclient_applysoftwareupdate_stringliststringboolean_sync] diff --git a/samples/snippets/generated/com/google/cloud/memcache/v1beta2/cloudmemcacheclient/create/SyncCreateSetCredentialsProvider.java b/owl-bot-staging/v1beta2/samples/snippets/generated/com/google/cloud/memcache/v1beta2/cloudmemcacheclient/create/SyncCreateSetCredentialsProvider.java similarity index 100% rename from samples/snippets/generated/com/google/cloud/memcache/v1beta2/cloudmemcacheclient/create/SyncCreateSetCredentialsProvider.java rename to owl-bot-staging/v1beta2/samples/snippets/generated/com/google/cloud/memcache/v1beta2/cloudmemcacheclient/create/SyncCreateSetCredentialsProvider.java diff --git a/samples/snippets/generated/com/google/cloud/memcache/v1beta2/cloudmemcacheclient/create/SyncCreateSetCredentialsProvider1.java b/owl-bot-staging/v1beta2/samples/snippets/generated/com/google/cloud/memcache/v1beta2/cloudmemcacheclient/create/SyncCreateSetCredentialsProvider1.java similarity index 100% rename from samples/snippets/generated/com/google/cloud/memcache/v1beta2/cloudmemcacheclient/create/SyncCreateSetCredentialsProvider1.java rename to owl-bot-staging/v1beta2/samples/snippets/generated/com/google/cloud/memcache/v1beta2/cloudmemcacheclient/create/SyncCreateSetCredentialsProvider1.java diff --git a/samples/snippets/generated/com/google/cloud/memcache/v1beta2/cloudmemcacheclient/create/SyncCreateSetEndpoint.java b/owl-bot-staging/v1beta2/samples/snippets/generated/com/google/cloud/memcache/v1beta2/cloudmemcacheclient/create/SyncCreateSetEndpoint.java similarity index 100% rename from samples/snippets/generated/com/google/cloud/memcache/v1beta2/cloudmemcacheclient/create/SyncCreateSetEndpoint.java rename to owl-bot-staging/v1beta2/samples/snippets/generated/com/google/cloud/memcache/v1beta2/cloudmemcacheclient/create/SyncCreateSetEndpoint.java diff --git a/samples/snippets/generated/com/google/cloud/memcache/v1beta2/cloudmemcacheclient/createinstance/AsyncCreateInstance.java b/owl-bot-staging/v1beta2/samples/snippets/generated/com/google/cloud/memcache/v1beta2/cloudmemcacheclient/createinstance/AsyncCreateInstance.java similarity index 100% rename from samples/snippets/generated/com/google/cloud/memcache/v1beta2/cloudmemcacheclient/createinstance/AsyncCreateInstance.java rename to owl-bot-staging/v1beta2/samples/snippets/generated/com/google/cloud/memcache/v1beta2/cloudmemcacheclient/createinstance/AsyncCreateInstance.java diff --git a/samples/snippets/generated/com/google/cloud/memcache/v1beta2/cloudmemcacheclient/createinstance/AsyncCreateInstanceLRO.java b/owl-bot-staging/v1beta2/samples/snippets/generated/com/google/cloud/memcache/v1beta2/cloudmemcacheclient/createinstance/AsyncCreateInstanceLRO.java similarity index 100% rename from samples/snippets/generated/com/google/cloud/memcache/v1beta2/cloudmemcacheclient/createinstance/AsyncCreateInstanceLRO.java rename to owl-bot-staging/v1beta2/samples/snippets/generated/com/google/cloud/memcache/v1beta2/cloudmemcacheclient/createinstance/AsyncCreateInstanceLRO.java diff --git a/samples/snippets/generated/com/google/cloud/memcache/v1beta2/cloudmemcacheclient/createinstance/SyncCreateInstance.java b/owl-bot-staging/v1beta2/samples/snippets/generated/com/google/cloud/memcache/v1beta2/cloudmemcacheclient/createinstance/SyncCreateInstance.java similarity index 100% rename from samples/snippets/generated/com/google/cloud/memcache/v1beta2/cloudmemcacheclient/createinstance/SyncCreateInstance.java rename to owl-bot-staging/v1beta2/samples/snippets/generated/com/google/cloud/memcache/v1beta2/cloudmemcacheclient/createinstance/SyncCreateInstance.java diff --git a/samples/snippets/generated/com/google/cloud/memcache/v1beta2/cloudmemcacheclient/createinstance/SyncCreateInstanceLocationnameStringInstance.java b/owl-bot-staging/v1beta2/samples/snippets/generated/com/google/cloud/memcache/v1beta2/cloudmemcacheclient/createinstance/SyncCreateInstanceLocationnameStringInstance.java similarity index 88% rename from samples/snippets/generated/com/google/cloud/memcache/v1beta2/cloudmemcacheclient/createinstance/SyncCreateInstanceLocationnameStringInstance.java rename to owl-bot-staging/v1beta2/samples/snippets/generated/com/google/cloud/memcache/v1beta2/cloudmemcacheclient/createinstance/SyncCreateInstanceLocationnameStringInstance.java index d8c8789a..773cb7bc 100644 --- a/samples/snippets/generated/com/google/cloud/memcache/v1beta2/cloudmemcacheclient/createinstance/SyncCreateInstanceLocationnameStringInstance.java +++ b/owl-bot-staging/v1beta2/samples/snippets/generated/com/google/cloud/memcache/v1beta2/cloudmemcacheclient/createinstance/SyncCreateInstanceLocationnameStringInstance.java @@ -16,8 +16,7 @@ package com.google.cloud.memcache.v1beta2.samples; -// [START -// memcache_v1beta2_generated_cloudmemcacheclient_createinstance_locationnamestringinstance_sync] +// [START memcache_v1beta2_generated_cloudmemcacheclient_createinstance_locationnamestringinstance_sync] import com.google.cloud.memcache.v1beta2.CloudMemcacheClient; import com.google.cloud.memcache.v1beta2.Instance; import com.google.cloud.memcache.v1beta2.LocationName; @@ -40,5 +39,4 @@ public static void syncCreateInstanceLocationnameStringInstance() throws Excepti } } } -// [END -// memcache_v1beta2_generated_cloudmemcacheclient_createinstance_locationnamestringinstance_sync] +// [END memcache_v1beta2_generated_cloudmemcacheclient_createinstance_locationnamestringinstance_sync] diff --git a/samples/snippets/generated/com/google/cloud/memcache/v1beta2/cloudmemcacheclient/createinstance/SyncCreateInstanceStringStringInstance.java b/owl-bot-staging/v1beta2/samples/snippets/generated/com/google/cloud/memcache/v1beta2/cloudmemcacheclient/createinstance/SyncCreateInstanceStringStringInstance.java similarity index 100% rename from samples/snippets/generated/com/google/cloud/memcache/v1beta2/cloudmemcacheclient/createinstance/SyncCreateInstanceStringStringInstance.java rename to owl-bot-staging/v1beta2/samples/snippets/generated/com/google/cloud/memcache/v1beta2/cloudmemcacheclient/createinstance/SyncCreateInstanceStringStringInstance.java diff --git a/samples/snippets/generated/com/google/cloud/memcache/v1beta2/cloudmemcacheclient/deleteinstance/AsyncDeleteInstance.java b/owl-bot-staging/v1beta2/samples/snippets/generated/com/google/cloud/memcache/v1beta2/cloudmemcacheclient/deleteinstance/AsyncDeleteInstance.java similarity index 100% rename from samples/snippets/generated/com/google/cloud/memcache/v1beta2/cloudmemcacheclient/deleteinstance/AsyncDeleteInstance.java rename to owl-bot-staging/v1beta2/samples/snippets/generated/com/google/cloud/memcache/v1beta2/cloudmemcacheclient/deleteinstance/AsyncDeleteInstance.java diff --git a/samples/snippets/generated/com/google/cloud/memcache/v1beta2/cloudmemcacheclient/deleteinstance/AsyncDeleteInstanceLRO.java b/owl-bot-staging/v1beta2/samples/snippets/generated/com/google/cloud/memcache/v1beta2/cloudmemcacheclient/deleteinstance/AsyncDeleteInstanceLRO.java similarity index 100% rename from samples/snippets/generated/com/google/cloud/memcache/v1beta2/cloudmemcacheclient/deleteinstance/AsyncDeleteInstanceLRO.java rename to owl-bot-staging/v1beta2/samples/snippets/generated/com/google/cloud/memcache/v1beta2/cloudmemcacheclient/deleteinstance/AsyncDeleteInstanceLRO.java diff --git a/samples/snippets/generated/com/google/cloud/memcache/v1beta2/cloudmemcacheclient/deleteinstance/SyncDeleteInstance.java b/owl-bot-staging/v1beta2/samples/snippets/generated/com/google/cloud/memcache/v1beta2/cloudmemcacheclient/deleteinstance/SyncDeleteInstance.java similarity index 98% rename from samples/snippets/generated/com/google/cloud/memcache/v1beta2/cloudmemcacheclient/deleteinstance/SyncDeleteInstance.java rename to owl-bot-staging/v1beta2/samples/snippets/generated/com/google/cloud/memcache/v1beta2/cloudmemcacheclient/deleteinstance/SyncDeleteInstance.java index 5455736f..ce70006f 100644 --- a/samples/snippets/generated/com/google/cloud/memcache/v1beta2/cloudmemcacheclient/deleteinstance/SyncDeleteInstance.java +++ b/owl-bot-staging/v1beta2/samples/snippets/generated/com/google/cloud/memcache/v1beta2/cloudmemcacheclient/deleteinstance/SyncDeleteInstance.java @@ -20,6 +20,7 @@ import com.google.cloud.memcache.v1beta2.CloudMemcacheClient; import com.google.cloud.memcache.v1beta2.DeleteInstanceRequest; import com.google.cloud.memcache.v1beta2.InstanceName; +import com.google.protobuf.Empty; public class SyncDeleteInstance { diff --git a/samples/snippets/generated/com/google/cloud/memcache/v1beta2/cloudmemcacheclient/deleteinstance/SyncDeleteInstanceInstancename.java b/owl-bot-staging/v1beta2/samples/snippets/generated/com/google/cloud/memcache/v1beta2/cloudmemcacheclient/deleteinstance/SyncDeleteInstanceInstancename.java similarity index 97% rename from samples/snippets/generated/com/google/cloud/memcache/v1beta2/cloudmemcacheclient/deleteinstance/SyncDeleteInstanceInstancename.java rename to owl-bot-staging/v1beta2/samples/snippets/generated/com/google/cloud/memcache/v1beta2/cloudmemcacheclient/deleteinstance/SyncDeleteInstanceInstancename.java index 973d2cc2..cd820a0d 100644 --- a/samples/snippets/generated/com/google/cloud/memcache/v1beta2/cloudmemcacheclient/deleteinstance/SyncDeleteInstanceInstancename.java +++ b/owl-bot-staging/v1beta2/samples/snippets/generated/com/google/cloud/memcache/v1beta2/cloudmemcacheclient/deleteinstance/SyncDeleteInstanceInstancename.java @@ -19,6 +19,7 @@ // [START memcache_v1beta2_generated_cloudmemcacheclient_deleteinstance_instancename_sync] import com.google.cloud.memcache.v1beta2.CloudMemcacheClient; import com.google.cloud.memcache.v1beta2.InstanceName; +import com.google.protobuf.Empty; public class SyncDeleteInstanceInstancename { diff --git a/samples/snippets/generated/com/google/cloud/memcache/v1beta2/cloudmemcacheclient/deleteinstance/SyncDeleteInstanceString.java b/owl-bot-staging/v1beta2/samples/snippets/generated/com/google/cloud/memcache/v1beta2/cloudmemcacheclient/deleteinstance/SyncDeleteInstanceString.java similarity index 97% rename from samples/snippets/generated/com/google/cloud/memcache/v1beta2/cloudmemcacheclient/deleteinstance/SyncDeleteInstanceString.java rename to owl-bot-staging/v1beta2/samples/snippets/generated/com/google/cloud/memcache/v1beta2/cloudmemcacheclient/deleteinstance/SyncDeleteInstanceString.java index e1992d61..76037fc7 100644 --- a/samples/snippets/generated/com/google/cloud/memcache/v1beta2/cloudmemcacheclient/deleteinstance/SyncDeleteInstanceString.java +++ b/owl-bot-staging/v1beta2/samples/snippets/generated/com/google/cloud/memcache/v1beta2/cloudmemcacheclient/deleteinstance/SyncDeleteInstanceString.java @@ -19,6 +19,7 @@ // [START memcache_v1beta2_generated_cloudmemcacheclient_deleteinstance_string_sync] import com.google.cloud.memcache.v1beta2.CloudMemcacheClient; import com.google.cloud.memcache.v1beta2.InstanceName; +import com.google.protobuf.Empty; public class SyncDeleteInstanceString { diff --git a/samples/snippets/generated/com/google/cloud/memcache/v1beta2/cloudmemcacheclient/getinstance/AsyncGetInstance.java b/owl-bot-staging/v1beta2/samples/snippets/generated/com/google/cloud/memcache/v1beta2/cloudmemcacheclient/getinstance/AsyncGetInstance.java similarity index 100% rename from samples/snippets/generated/com/google/cloud/memcache/v1beta2/cloudmemcacheclient/getinstance/AsyncGetInstance.java rename to owl-bot-staging/v1beta2/samples/snippets/generated/com/google/cloud/memcache/v1beta2/cloudmemcacheclient/getinstance/AsyncGetInstance.java diff --git a/samples/snippets/generated/com/google/cloud/memcache/v1beta2/cloudmemcacheclient/getinstance/SyncGetInstance.java b/owl-bot-staging/v1beta2/samples/snippets/generated/com/google/cloud/memcache/v1beta2/cloudmemcacheclient/getinstance/SyncGetInstance.java similarity index 100% rename from samples/snippets/generated/com/google/cloud/memcache/v1beta2/cloudmemcacheclient/getinstance/SyncGetInstance.java rename to owl-bot-staging/v1beta2/samples/snippets/generated/com/google/cloud/memcache/v1beta2/cloudmemcacheclient/getinstance/SyncGetInstance.java diff --git a/samples/snippets/generated/com/google/cloud/memcache/v1beta2/cloudmemcacheclient/getinstance/SyncGetInstanceInstancename.java b/owl-bot-staging/v1beta2/samples/snippets/generated/com/google/cloud/memcache/v1beta2/cloudmemcacheclient/getinstance/SyncGetInstanceInstancename.java similarity index 100% rename from samples/snippets/generated/com/google/cloud/memcache/v1beta2/cloudmemcacheclient/getinstance/SyncGetInstanceInstancename.java rename to owl-bot-staging/v1beta2/samples/snippets/generated/com/google/cloud/memcache/v1beta2/cloudmemcacheclient/getinstance/SyncGetInstanceInstancename.java diff --git a/samples/snippets/generated/com/google/cloud/memcache/v1beta2/cloudmemcacheclient/getinstance/SyncGetInstanceString.java b/owl-bot-staging/v1beta2/samples/snippets/generated/com/google/cloud/memcache/v1beta2/cloudmemcacheclient/getinstance/SyncGetInstanceString.java similarity index 100% rename from samples/snippets/generated/com/google/cloud/memcache/v1beta2/cloudmemcacheclient/getinstance/SyncGetInstanceString.java rename to owl-bot-staging/v1beta2/samples/snippets/generated/com/google/cloud/memcache/v1beta2/cloudmemcacheclient/getinstance/SyncGetInstanceString.java diff --git a/samples/snippets/generated/com/google/cloud/memcache/v1beta2/cloudmemcacheclient/listinstances/AsyncListInstances.java b/owl-bot-staging/v1beta2/samples/snippets/generated/com/google/cloud/memcache/v1beta2/cloudmemcacheclient/listinstances/AsyncListInstances.java similarity index 100% rename from samples/snippets/generated/com/google/cloud/memcache/v1beta2/cloudmemcacheclient/listinstances/AsyncListInstances.java rename to owl-bot-staging/v1beta2/samples/snippets/generated/com/google/cloud/memcache/v1beta2/cloudmemcacheclient/listinstances/AsyncListInstances.java diff --git a/samples/snippets/generated/com/google/cloud/memcache/v1beta2/cloudmemcacheclient/listinstances/AsyncListInstancesPaged.java b/owl-bot-staging/v1beta2/samples/snippets/generated/com/google/cloud/memcache/v1beta2/cloudmemcacheclient/listinstances/AsyncListInstancesPaged.java similarity index 100% rename from samples/snippets/generated/com/google/cloud/memcache/v1beta2/cloudmemcacheclient/listinstances/AsyncListInstancesPaged.java rename to owl-bot-staging/v1beta2/samples/snippets/generated/com/google/cloud/memcache/v1beta2/cloudmemcacheclient/listinstances/AsyncListInstancesPaged.java diff --git a/samples/snippets/generated/com/google/cloud/memcache/v1beta2/cloudmemcacheclient/listinstances/SyncListInstances.java b/owl-bot-staging/v1beta2/samples/snippets/generated/com/google/cloud/memcache/v1beta2/cloudmemcacheclient/listinstances/SyncListInstances.java similarity index 100% rename from samples/snippets/generated/com/google/cloud/memcache/v1beta2/cloudmemcacheclient/listinstances/SyncListInstances.java rename to owl-bot-staging/v1beta2/samples/snippets/generated/com/google/cloud/memcache/v1beta2/cloudmemcacheclient/listinstances/SyncListInstances.java diff --git a/samples/snippets/generated/com/google/cloud/memcache/v1beta2/cloudmemcacheclient/listinstances/SyncListInstancesLocationname.java b/owl-bot-staging/v1beta2/samples/snippets/generated/com/google/cloud/memcache/v1beta2/cloudmemcacheclient/listinstances/SyncListInstancesLocationname.java similarity index 100% rename from samples/snippets/generated/com/google/cloud/memcache/v1beta2/cloudmemcacheclient/listinstances/SyncListInstancesLocationname.java rename to owl-bot-staging/v1beta2/samples/snippets/generated/com/google/cloud/memcache/v1beta2/cloudmemcacheclient/listinstances/SyncListInstancesLocationname.java diff --git a/samples/snippets/generated/com/google/cloud/memcache/v1beta2/cloudmemcacheclient/listinstances/SyncListInstancesString.java b/owl-bot-staging/v1beta2/samples/snippets/generated/com/google/cloud/memcache/v1beta2/cloudmemcacheclient/listinstances/SyncListInstancesString.java similarity index 100% rename from samples/snippets/generated/com/google/cloud/memcache/v1beta2/cloudmemcacheclient/listinstances/SyncListInstancesString.java rename to owl-bot-staging/v1beta2/samples/snippets/generated/com/google/cloud/memcache/v1beta2/cloudmemcacheclient/listinstances/SyncListInstancesString.java diff --git a/samples/snippets/generated/com/google/cloud/memcache/v1beta2/cloudmemcacheclient/updateinstance/AsyncUpdateInstance.java b/owl-bot-staging/v1beta2/samples/snippets/generated/com/google/cloud/memcache/v1beta2/cloudmemcacheclient/updateinstance/AsyncUpdateInstance.java similarity index 100% rename from samples/snippets/generated/com/google/cloud/memcache/v1beta2/cloudmemcacheclient/updateinstance/AsyncUpdateInstance.java rename to owl-bot-staging/v1beta2/samples/snippets/generated/com/google/cloud/memcache/v1beta2/cloudmemcacheclient/updateinstance/AsyncUpdateInstance.java diff --git a/samples/snippets/generated/com/google/cloud/memcache/v1beta2/cloudmemcacheclient/updateinstance/AsyncUpdateInstanceLRO.java b/owl-bot-staging/v1beta2/samples/snippets/generated/com/google/cloud/memcache/v1beta2/cloudmemcacheclient/updateinstance/AsyncUpdateInstanceLRO.java similarity index 100% rename from samples/snippets/generated/com/google/cloud/memcache/v1beta2/cloudmemcacheclient/updateinstance/AsyncUpdateInstanceLRO.java rename to owl-bot-staging/v1beta2/samples/snippets/generated/com/google/cloud/memcache/v1beta2/cloudmemcacheclient/updateinstance/AsyncUpdateInstanceLRO.java diff --git a/samples/snippets/generated/com/google/cloud/memcache/v1beta2/cloudmemcacheclient/updateinstance/SyncUpdateInstance.java b/owl-bot-staging/v1beta2/samples/snippets/generated/com/google/cloud/memcache/v1beta2/cloudmemcacheclient/updateinstance/SyncUpdateInstance.java similarity index 100% rename from samples/snippets/generated/com/google/cloud/memcache/v1beta2/cloudmemcacheclient/updateinstance/SyncUpdateInstance.java rename to owl-bot-staging/v1beta2/samples/snippets/generated/com/google/cloud/memcache/v1beta2/cloudmemcacheclient/updateinstance/SyncUpdateInstance.java diff --git a/samples/snippets/generated/com/google/cloud/memcache/v1beta2/cloudmemcacheclient/updateinstance/SyncUpdateInstanceFieldmaskInstance.java b/owl-bot-staging/v1beta2/samples/snippets/generated/com/google/cloud/memcache/v1beta2/cloudmemcacheclient/updateinstance/SyncUpdateInstanceFieldmaskInstance.java similarity index 100% rename from samples/snippets/generated/com/google/cloud/memcache/v1beta2/cloudmemcacheclient/updateinstance/SyncUpdateInstanceFieldmaskInstance.java rename to owl-bot-staging/v1beta2/samples/snippets/generated/com/google/cloud/memcache/v1beta2/cloudmemcacheclient/updateinstance/SyncUpdateInstanceFieldmaskInstance.java diff --git a/samples/snippets/generated/com/google/cloud/memcache/v1beta2/cloudmemcacheclient/updateparameters/AsyncUpdateParameters.java b/owl-bot-staging/v1beta2/samples/snippets/generated/com/google/cloud/memcache/v1beta2/cloudmemcacheclient/updateparameters/AsyncUpdateParameters.java similarity index 100% rename from samples/snippets/generated/com/google/cloud/memcache/v1beta2/cloudmemcacheclient/updateparameters/AsyncUpdateParameters.java rename to owl-bot-staging/v1beta2/samples/snippets/generated/com/google/cloud/memcache/v1beta2/cloudmemcacheclient/updateparameters/AsyncUpdateParameters.java diff --git a/samples/snippets/generated/com/google/cloud/memcache/v1beta2/cloudmemcacheclient/updateparameters/AsyncUpdateParametersLRO.java b/owl-bot-staging/v1beta2/samples/snippets/generated/com/google/cloud/memcache/v1beta2/cloudmemcacheclient/updateparameters/AsyncUpdateParametersLRO.java similarity index 100% rename from samples/snippets/generated/com/google/cloud/memcache/v1beta2/cloudmemcacheclient/updateparameters/AsyncUpdateParametersLRO.java rename to owl-bot-staging/v1beta2/samples/snippets/generated/com/google/cloud/memcache/v1beta2/cloudmemcacheclient/updateparameters/AsyncUpdateParametersLRO.java diff --git a/samples/snippets/generated/com/google/cloud/memcache/v1beta2/cloudmemcacheclient/updateparameters/SyncUpdateParameters.java b/owl-bot-staging/v1beta2/samples/snippets/generated/com/google/cloud/memcache/v1beta2/cloudmemcacheclient/updateparameters/SyncUpdateParameters.java similarity index 100% rename from samples/snippets/generated/com/google/cloud/memcache/v1beta2/cloudmemcacheclient/updateparameters/SyncUpdateParameters.java rename to owl-bot-staging/v1beta2/samples/snippets/generated/com/google/cloud/memcache/v1beta2/cloudmemcacheclient/updateparameters/SyncUpdateParameters.java diff --git a/samples/snippets/generated/com/google/cloud/memcache/v1beta2/cloudmemcacheclient/updateparameters/SyncUpdateParametersInstancenameFieldmaskMemcacheparameters.java b/owl-bot-staging/v1beta2/samples/snippets/generated/com/google/cloud/memcache/v1beta2/cloudmemcacheclient/updateparameters/SyncUpdateParametersInstancenameFieldmaskMemcacheparameters.java similarity index 88% rename from samples/snippets/generated/com/google/cloud/memcache/v1beta2/cloudmemcacheclient/updateparameters/SyncUpdateParametersInstancenameFieldmaskMemcacheparameters.java rename to owl-bot-staging/v1beta2/samples/snippets/generated/com/google/cloud/memcache/v1beta2/cloudmemcacheclient/updateparameters/SyncUpdateParametersInstancenameFieldmaskMemcacheparameters.java index 53498889..3a824240 100644 --- a/samples/snippets/generated/com/google/cloud/memcache/v1beta2/cloudmemcacheclient/updateparameters/SyncUpdateParametersInstancenameFieldmaskMemcacheparameters.java +++ b/owl-bot-staging/v1beta2/samples/snippets/generated/com/google/cloud/memcache/v1beta2/cloudmemcacheclient/updateparameters/SyncUpdateParametersInstancenameFieldmaskMemcacheparameters.java @@ -16,8 +16,7 @@ package com.google.cloud.memcache.v1beta2.samples; -// [START -// memcache_v1beta2_generated_cloudmemcacheclient_updateparameters_instancenamefieldmaskmemcacheparameters_sync] +// [START memcache_v1beta2_generated_cloudmemcacheclient_updateparameters_instancenamefieldmaskmemcacheparameters_sync] import com.google.cloud.memcache.v1beta2.CloudMemcacheClient; import com.google.cloud.memcache.v1beta2.Instance; import com.google.cloud.memcache.v1beta2.InstanceName; @@ -43,5 +42,4 @@ public static void syncUpdateParametersInstancenameFieldmaskMemcacheparameters() } } } -// [END -// memcache_v1beta2_generated_cloudmemcacheclient_updateparameters_instancenamefieldmaskmemcacheparameters_sync] +// [END memcache_v1beta2_generated_cloudmemcacheclient_updateparameters_instancenamefieldmaskmemcacheparameters_sync] diff --git a/samples/snippets/generated/com/google/cloud/memcache/v1beta2/cloudmemcacheclient/updateparameters/SyncUpdateParametersStringFieldmaskMemcacheparameters.java b/owl-bot-staging/v1beta2/samples/snippets/generated/com/google/cloud/memcache/v1beta2/cloudmemcacheclient/updateparameters/SyncUpdateParametersStringFieldmaskMemcacheparameters.java similarity index 88% rename from samples/snippets/generated/com/google/cloud/memcache/v1beta2/cloudmemcacheclient/updateparameters/SyncUpdateParametersStringFieldmaskMemcacheparameters.java rename to owl-bot-staging/v1beta2/samples/snippets/generated/com/google/cloud/memcache/v1beta2/cloudmemcacheclient/updateparameters/SyncUpdateParametersStringFieldmaskMemcacheparameters.java index f41210e7..03b3efaa 100644 --- a/samples/snippets/generated/com/google/cloud/memcache/v1beta2/cloudmemcacheclient/updateparameters/SyncUpdateParametersStringFieldmaskMemcacheparameters.java +++ b/owl-bot-staging/v1beta2/samples/snippets/generated/com/google/cloud/memcache/v1beta2/cloudmemcacheclient/updateparameters/SyncUpdateParametersStringFieldmaskMemcacheparameters.java @@ -16,8 +16,7 @@ package com.google.cloud.memcache.v1beta2.samples; -// [START -// memcache_v1beta2_generated_cloudmemcacheclient_updateparameters_stringfieldmaskmemcacheparameters_sync] +// [START memcache_v1beta2_generated_cloudmemcacheclient_updateparameters_stringfieldmaskmemcacheparameters_sync] import com.google.cloud.memcache.v1beta2.CloudMemcacheClient; import com.google.cloud.memcache.v1beta2.Instance; import com.google.cloud.memcache.v1beta2.InstanceName; @@ -42,5 +41,4 @@ public static void syncUpdateParametersStringFieldmaskMemcacheparameters() throw } } } -// [END -// memcache_v1beta2_generated_cloudmemcacheclient_updateparameters_stringfieldmaskmemcacheparameters_sync] +// [END memcache_v1beta2_generated_cloudmemcacheclient_updateparameters_stringfieldmaskmemcacheparameters_sync] diff --git a/samples/snippets/generated/com/google/cloud/memcache/v1beta2/cloudmemcachesettings/getinstance/SyncGetInstance.java b/owl-bot-staging/v1beta2/samples/snippets/generated/com/google/cloud/memcache/v1beta2/cloudmemcachesettings/getinstance/SyncGetInstance.java similarity index 100% rename from samples/snippets/generated/com/google/cloud/memcache/v1beta2/cloudmemcachesettings/getinstance/SyncGetInstance.java rename to owl-bot-staging/v1beta2/samples/snippets/generated/com/google/cloud/memcache/v1beta2/cloudmemcachesettings/getinstance/SyncGetInstance.java diff --git a/samples/snippets/generated/com/google/cloud/memcache/v1beta2/stub/cloudmemcachestubsettings/getinstance/SyncGetInstance.java b/owl-bot-staging/v1beta2/samples/snippets/generated/com/google/cloud/memcache/v1beta2/stub/cloudmemcachestubsettings/getinstance/SyncGetInstance.java similarity index 100% rename from samples/snippets/generated/com/google/cloud/memcache/v1beta2/stub/cloudmemcachestubsettings/getinstance/SyncGetInstance.java rename to owl-bot-staging/v1beta2/samples/snippets/generated/com/google/cloud/memcache/v1beta2/stub/cloudmemcachestubsettings/getinstance/SyncGetInstance.java diff --git a/proto-google-cloud-memcache-v1/src/main/java/com/google/cloud/memcache/v1/CloudMemcacheProto.java b/proto-google-cloud-memcache-v1/src/main/java/com/google/cloud/memcache/v1/CloudMemcacheProto.java deleted file mode 100644 index 791750c8..00000000 --- a/proto-google-cloud-memcache-v1/src/main/java/com/google/cloud/memcache/v1/CloudMemcacheProto.java +++ /dev/null @@ -1,423 +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/memcache/v1/cloud_memcache.proto - -package com.google.cloud.memcache.v1; - -public final class CloudMemcacheProto { - private CloudMemcacheProto() {} - - 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_memcache_v1_Instance_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_memcache_v1_Instance_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_memcache_v1_Instance_NodeConfig_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_memcache_v1_Instance_NodeConfig_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_memcache_v1_Instance_Node_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_memcache_v1_Instance_Node_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_memcache_v1_Instance_InstanceMessage_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_memcache_v1_Instance_InstanceMessage_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_memcache_v1_Instance_LabelsEntry_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_memcache_v1_Instance_LabelsEntry_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_memcache_v1_ListInstancesRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_memcache_v1_ListInstancesRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_memcache_v1_ListInstancesResponse_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_memcache_v1_ListInstancesResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_memcache_v1_GetInstanceRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_memcache_v1_GetInstanceRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_memcache_v1_CreateInstanceRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_memcache_v1_CreateInstanceRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_memcache_v1_UpdateInstanceRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_memcache_v1_UpdateInstanceRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_memcache_v1_DeleteInstanceRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_memcache_v1_DeleteInstanceRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_memcache_v1_ApplyParametersRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_memcache_v1_ApplyParametersRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_memcache_v1_UpdateParametersRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_memcache_v1_UpdateParametersRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_memcache_v1_MemcacheParameters_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_memcache_v1_MemcacheParameters_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_memcache_v1_MemcacheParameters_ParamsEntry_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_memcache_v1_MemcacheParameters_ParamsEntry_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_memcache_v1_OperationMetadata_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_memcache_v1_OperationMetadata_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/memcache/v1/cloud_memcach" - + "e.proto\022\030google.cloud.memcache.v1\032\034googl" - + "e/api/annotations.proto\032\027google/api/clie" - + "nt.proto\032\037google/api/field_behavior.prot" - + "o\032\031google/api/resource.proto\032#google/lon" - + "grunning/operations.proto\032 google/protob" - + "uf/field_mask.proto\032\037google/protobuf/tim" - + "estamp.proto\"\243\014\n\010Instance\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" - + "(\0132..google.cloud.memcache.v1.Instance.L" - + "abelsEntry\022\032\n\022authorized_network\030\004 \001(\t\022\r" - + "\n\005zones\030\005 \003(\t\022\027\n\nnode_count\030\006 \001(\005B\003\340A\002\022G" - + "\n\013node_config\030\007 \001(\0132-.google.cloud.memca" - + "che.v1.Instance.NodeConfigB\003\340A\002\022C\n\020memca" - + "che_version\030\t \001(\0162).google.cloud.memcach" - + "e.v1.MemcacheVersion\022@\n\nparameters\030\013 \001(\013" - + "2,.google.cloud.memcache.v1.MemcachePara" - + "meters\022D\n\016memcache_nodes\030\014 \003(\0132\'.google." - + "cloud.memcache.v1.Instance.NodeB\003\340A\003\0224\n\013" - + "create_time\030\r \001(\0132\032.google.protobuf.Time" - + "stampB\003\340A\003\0224\n\013update_time\030\016 \001(\0132\032.google" - + ".protobuf.TimestampB\003\340A\003\022<\n\005state\030\017 \001(\0162" - + "(.google.cloud.memcache.v1.Instance.Stat" - + "eB\003\340A\003\022\"\n\025memcache_full_version\030\022 \001(\tB\003\340" - + "A\003\022M\n\021instance_messages\030\023 \003(\01322.google.c" - + "loud.memcache.v1.Instance.InstanceMessag" - + "e\022\037\n\022discovery_endpoint\030\024 \001(\tB\003\340A\003\032A\n\nNo" - + "deConfig\022\026\n\tcpu_count\030\001 \001(\005B\003\340A\002\022\033\n\016memo" - + "ry_size_mb\030\002 \001(\005B\003\340A\002\032\257\002\n\004Node\022\024\n\007node_i" - + "d\030\001 \001(\tB\003\340A\003\022\021\n\004zone\030\002 \001(\tB\003\340A\003\022A\n\005state" - + "\030\003 \001(\0162-.google.cloud.memcache.v1.Instan" - + "ce.Node.StateB\003\340A\003\022\021\n\004host\030\004 \001(\tB\003\340A\003\022\021\n" - + "\004port\030\005 \001(\005B\003\340A\003\022@\n\nparameters\030\006 \001(\0132,.g" - + "oogle.cloud.memcache.v1.MemcacheParamete" - + "rs\"S\n\005State\022\025\n\021STATE_UNSPECIFIED\020\000\022\014\n\010CR" - + "EATING\020\001\022\t\n\005READY\020\002\022\014\n\010DELETING\020\003\022\014\n\010UPD" - + "ATING\020\004\032\251\001\n\017InstanceMessage\022E\n\004code\030\001 \001(" - + "\01627.google.cloud.memcache.v1.Instance.In" - + "stanceMessage.Code\022\017\n\007message\030\002 \001(\t\">\n\004C" - + "ode\022\024\n\020CODE_UNSPECIFIED\020\000\022 \n\034ZONE_DISTRI" - + "BUTION_UNBALANCED\020\001\032-\n\013LabelsEntry\022\013\n\003ke" - + "y\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\"a\n\005State\022\025\n\021S" - + "TATE_UNSPECIFIED\020\000\022\014\n\010CREATING\020\001\022\t\n\005READ" - + "Y\020\002\022\014\n\010DELETING\020\004\022\032\n\026PERFORMING_MAINTENA" - + "NCE\020\005:c\352A`\n memcache.googleapis.com/Inst" - + "ance\022\202" - + "\323\344\223\002/\022-/v1/{parent=projects/*/locations/" - + "*}/instances\332A\006parent\022\235\001\n\013GetInstance\022,." - + "google.cloud.memcache.v1.GetInstanceRequ" - + "est\032\".google.cloud.memcache.v1.Instance\"" - + "<\202\323\344\223\002/\022-/v1/{name=projects/*/locations/" - + "*/instances/*}\332A\004name\022\222\002\n\016CreateInstance" - + "\022/.google.cloud.memcache.v1.CreateInstan" - + "ceRequest\032\035.google.longrunning.Operation" - + "\"\257\001\202\323\344\223\0029\"-/v1/{parent=projects/*/locati" - + "ons/*}/instances:\010instance\332A\033parent,inst" - + "ance,instance_id\312AO\n!google.cloud.memcac" - + "he.v1.Instance\022*google.cloud.memcache.v1" - + ".OperationMetadata\022\224\002\n\016UpdateInstance\022/." - + "google.cloud.memcache.v1.UpdateInstanceR" - + "equest\032\035.google.longrunning.Operation\"\261\001" - + "\202\323\344\223\002B26/v1/{instance.name=projects/*/lo" - + "cations/*/instances/*}:\010instance\332A\024insta" - + "nce,update_mask\312AO\n!google.cloud.memcach" - + "e.v1.Instance\022*google.cloud.memcache.v1." - + "OperationMetadata\022\240\002\n\020UpdateParameters\0221" - + ".google.cloud.memcache.v1.UpdateParamete" - + "rsRequest\032\035.google.longrunning.Operation" - + "\"\271\001\202\323\344\223\002C2>/v1/{name=projects/*/location" - + "s/*/instances/*}:updateParameters:\001*\332A\033n" - + "ame,update_mask,parameters\312AO\n!google.cl" - + "oud.memcache.v1.Instance\022*google.cloud.m" - + "emcache.v1.OperationMetadata\022\345\001\n\016DeleteI" - + "nstance\022/.google.cloud.memcache.v1.Delet" - + "eInstanceRequest\032\035.google.longrunning.Op" - + "eration\"\202\001\202\323\344\223\002/*-/v1/{name=projects/*/l" - + "ocations/*/instances/*}\332A\004name\312AC\n\025googl" - + "e.protobuf.Empty\022*google.cloud.memcache." - + "v1.OperationMetadata\022\231\002\n\017ApplyParameters" - + "\0220.google.cloud.memcache.v1.ApplyParamet" - + "ersRequest\032\035.google.longrunning.Operatio" - + "n\"\264\001\202\323\344\223\002B\"=/v1/{name=projects/*/locatio" - + "ns/*/instances/*}:applyParameters:\001*\332A\027n" - + "ame,node_ids,apply_all\312AO\n!google.cloud." - + "memcache.v1.Instance\022*google.cloud.memca" - + "che.v1.OperationMetadata\032K\312A\027memcache.go" - + "ogleapis.com\322A.https://www.googleapis.co" - + "m/auth/cloud-platformBv\n\034com.google.clou" - + "d.memcache.v1B\022CloudMemcacheProtoP\001Z@goo" - + "gle.golang.org/genproto/googleapis/cloud" - + "/memcache/v1;memcacheb\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.FieldMaskProto.getDescriptor(), - com.google.protobuf.TimestampProto.getDescriptor(), - }); - internal_static_google_cloud_memcache_v1_Instance_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_google_cloud_memcache_v1_Instance_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_memcache_v1_Instance_descriptor, - new java.lang.String[] { - "Name", - "DisplayName", - "Labels", - "AuthorizedNetwork", - "Zones", - "NodeCount", - "NodeConfig", - "MemcacheVersion", - "Parameters", - "MemcacheNodes", - "CreateTime", - "UpdateTime", - "State", - "MemcacheFullVersion", - "InstanceMessages", - "DiscoveryEndpoint", - }); - internal_static_google_cloud_memcache_v1_Instance_NodeConfig_descriptor = - internal_static_google_cloud_memcache_v1_Instance_descriptor.getNestedTypes().get(0); - internal_static_google_cloud_memcache_v1_Instance_NodeConfig_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_memcache_v1_Instance_NodeConfig_descriptor, - new java.lang.String[] { - "CpuCount", "MemorySizeMb", - }); - internal_static_google_cloud_memcache_v1_Instance_Node_descriptor = - internal_static_google_cloud_memcache_v1_Instance_descriptor.getNestedTypes().get(1); - internal_static_google_cloud_memcache_v1_Instance_Node_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_memcache_v1_Instance_Node_descriptor, - new java.lang.String[] { - "NodeId", "Zone", "State", "Host", "Port", "Parameters", - }); - internal_static_google_cloud_memcache_v1_Instance_InstanceMessage_descriptor = - internal_static_google_cloud_memcache_v1_Instance_descriptor.getNestedTypes().get(2); - internal_static_google_cloud_memcache_v1_Instance_InstanceMessage_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_memcache_v1_Instance_InstanceMessage_descriptor, - new java.lang.String[] { - "Code", "Message", - }); - internal_static_google_cloud_memcache_v1_Instance_LabelsEntry_descriptor = - internal_static_google_cloud_memcache_v1_Instance_descriptor.getNestedTypes().get(3); - internal_static_google_cloud_memcache_v1_Instance_LabelsEntry_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_memcache_v1_Instance_LabelsEntry_descriptor, - new java.lang.String[] { - "Key", "Value", - }); - internal_static_google_cloud_memcache_v1_ListInstancesRequest_descriptor = - getDescriptor().getMessageTypes().get(1); - internal_static_google_cloud_memcache_v1_ListInstancesRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_memcache_v1_ListInstancesRequest_descriptor, - new java.lang.String[] { - "Parent", "PageSize", "PageToken", "Filter", "OrderBy", - }); - internal_static_google_cloud_memcache_v1_ListInstancesResponse_descriptor = - getDescriptor().getMessageTypes().get(2); - internal_static_google_cloud_memcache_v1_ListInstancesResponse_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_memcache_v1_ListInstancesResponse_descriptor, - new java.lang.String[] { - "Instances", "NextPageToken", "Unreachable", - }); - internal_static_google_cloud_memcache_v1_GetInstanceRequest_descriptor = - getDescriptor().getMessageTypes().get(3); - internal_static_google_cloud_memcache_v1_GetInstanceRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_memcache_v1_GetInstanceRequest_descriptor, - new java.lang.String[] { - "Name", - }); - internal_static_google_cloud_memcache_v1_CreateInstanceRequest_descriptor = - getDescriptor().getMessageTypes().get(4); - internal_static_google_cloud_memcache_v1_CreateInstanceRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_memcache_v1_CreateInstanceRequest_descriptor, - new java.lang.String[] { - "Parent", "InstanceId", "Instance", - }); - internal_static_google_cloud_memcache_v1_UpdateInstanceRequest_descriptor = - getDescriptor().getMessageTypes().get(5); - internal_static_google_cloud_memcache_v1_UpdateInstanceRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_memcache_v1_UpdateInstanceRequest_descriptor, - new java.lang.String[] { - "UpdateMask", "Instance", - }); - internal_static_google_cloud_memcache_v1_DeleteInstanceRequest_descriptor = - getDescriptor().getMessageTypes().get(6); - internal_static_google_cloud_memcache_v1_DeleteInstanceRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_memcache_v1_DeleteInstanceRequest_descriptor, - new java.lang.String[] { - "Name", - }); - internal_static_google_cloud_memcache_v1_ApplyParametersRequest_descriptor = - getDescriptor().getMessageTypes().get(7); - internal_static_google_cloud_memcache_v1_ApplyParametersRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_memcache_v1_ApplyParametersRequest_descriptor, - new java.lang.String[] { - "Name", "NodeIds", "ApplyAll", - }); - internal_static_google_cloud_memcache_v1_UpdateParametersRequest_descriptor = - getDescriptor().getMessageTypes().get(8); - internal_static_google_cloud_memcache_v1_UpdateParametersRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_memcache_v1_UpdateParametersRequest_descriptor, - new java.lang.String[] { - "Name", "UpdateMask", "Parameters", - }); - internal_static_google_cloud_memcache_v1_MemcacheParameters_descriptor = - getDescriptor().getMessageTypes().get(9); - internal_static_google_cloud_memcache_v1_MemcacheParameters_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_memcache_v1_MemcacheParameters_descriptor, - new java.lang.String[] { - "Id", "Params", - }); - internal_static_google_cloud_memcache_v1_MemcacheParameters_ParamsEntry_descriptor = - internal_static_google_cloud_memcache_v1_MemcacheParameters_descriptor - .getNestedTypes() - .get(0); - internal_static_google_cloud_memcache_v1_MemcacheParameters_ParamsEntry_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_memcache_v1_MemcacheParameters_ParamsEntry_descriptor, - new java.lang.String[] { - "Key", "Value", - }); - internal_static_google_cloud_memcache_v1_OperationMetadata_descriptor = - getDescriptor().getMessageTypes().get(10); - internal_static_google_cloud_memcache_v1_OperationMetadata_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_memcache_v1_OperationMetadata_descriptor, - new java.lang.String[] { - "CreateTime", - "EndTime", - "Target", - "Verb", - "StatusDetail", - "CancelRequested", - "ApiVersion", - }); - 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.FieldMaskProto.getDescriptor(); - com.google.protobuf.TimestampProto.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/proto-google-cloud-memcache-v1/src/main/java/com/google/cloud/memcache/v1/DeleteInstanceRequestOrBuilder.java b/proto-google-cloud-memcache-v1/src/main/java/com/google/cloud/memcache/v1/DeleteInstanceRequestOrBuilder.java deleted file mode 100644 index 17614ad9..00000000 --- a/proto-google-cloud-memcache-v1/src/main/java/com/google/cloud/memcache/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/memcache/v1/cloud_memcache.proto - -package com.google.cloud.memcache.v1; - -public interface DeleteInstanceRequestOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.memcache.v1.DeleteInstanceRequest) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Required. Memcached instance resource name in the format:
-   *     `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. Memcached instance resource name in the format:
-   *     `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-memcache-v1/src/main/java/com/google/cloud/memcache/v1/GetInstanceRequestOrBuilder.java b/proto-google-cloud-memcache-v1/src/main/java/com/google/cloud/memcache/v1/GetInstanceRequestOrBuilder.java deleted file mode 100644 index 58720641..00000000 --- a/proto-google-cloud-memcache-v1/src/main/java/com/google/cloud/memcache/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/memcache/v1/cloud_memcache.proto - -package com.google.cloud.memcache.v1; - -public interface GetInstanceRequestOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.memcache.v1.GetInstanceRequest) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Required. Memcached instance resource name in the format:
-   *     `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. Memcached instance resource name in the format:
-   *     `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-memcache-v1beta2/src/main/java/com/google/cloud/memcache/v1beta2/CloudMemcacheProto.java b/proto-google-cloud-memcache-v1beta2/src/main/java/com/google/cloud/memcache/v1beta2/CloudMemcacheProto.java deleted file mode 100644 index 883c38b5..00000000 --- a/proto-google-cloud-memcache-v1beta2/src/main/java/com/google/cloud/memcache/v1beta2/CloudMemcacheProto.java +++ /dev/null @@ -1,496 +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/memcache/v1beta2/cloud_memcache.proto - -package com.google.cloud.memcache.v1beta2; - -public final class CloudMemcacheProto { - private CloudMemcacheProto() {} - - 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_memcache_v1beta2_Instance_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_memcache_v1beta2_Instance_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_memcache_v1beta2_Instance_NodeConfig_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_memcache_v1beta2_Instance_NodeConfig_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_memcache_v1beta2_Instance_Node_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_memcache_v1beta2_Instance_Node_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_memcache_v1beta2_Instance_InstanceMessage_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_memcache_v1beta2_Instance_InstanceMessage_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_memcache_v1beta2_Instance_LabelsEntry_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_memcache_v1beta2_Instance_LabelsEntry_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_memcache_v1beta2_ListInstancesRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_memcache_v1beta2_ListInstancesRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_memcache_v1beta2_ListInstancesResponse_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_memcache_v1beta2_ListInstancesResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_memcache_v1beta2_GetInstanceRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_memcache_v1beta2_GetInstanceRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_memcache_v1beta2_CreateInstanceRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_memcache_v1beta2_CreateInstanceRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_memcache_v1beta2_UpdateInstanceRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_memcache_v1beta2_UpdateInstanceRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_memcache_v1beta2_DeleteInstanceRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_memcache_v1beta2_DeleteInstanceRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_memcache_v1beta2_ApplyParametersRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_memcache_v1beta2_ApplyParametersRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_memcache_v1beta2_UpdateParametersRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_memcache_v1beta2_UpdateParametersRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_memcache_v1beta2_ApplySoftwareUpdateRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_memcache_v1beta2_ApplySoftwareUpdateRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_memcache_v1beta2_MemcacheParameters_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_memcache_v1beta2_MemcacheParameters_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_memcache_v1beta2_MemcacheParameters_ParamsEntry_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_memcache_v1beta2_MemcacheParameters_ParamsEntry_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_memcache_v1beta2_OperationMetadata_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_memcache_v1beta2_OperationMetadata_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_memcache_v1beta2_LocationMetadata_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_memcache_v1beta2_LocationMetadata_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_memcache_v1beta2_LocationMetadata_AvailableZonesEntry_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_memcache_v1beta2_LocationMetadata_AvailableZonesEntry_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_memcache_v1beta2_ZoneMetadata_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_memcache_v1beta2_ZoneMetadata_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { - return descriptor; - } - - private static com.google.protobuf.Descriptors.FileDescriptor descriptor; - - static { - java.lang.String[] descriptorData = { - "\n2google/cloud/memcache/v1beta2/cloud_me" - + "mcache.proto\022\035google.cloud.memcache.v1be" - + "ta2\032\034google/api/annotations.proto\032\027googl" - + "e/api/client.proto\032\037google/api/field_beh" - + "avior.proto\032\031google/api/resource.proto\032#" - + "google/longrunning/operations.proto\032 goo" - + "gle/protobuf/field_mask.proto\032\037google/pr" - + "otobuf/timestamp.proto\"\223\r\n\010Instance\022\021\n\004n" - + "ame\030\001 \001(\tB\003\340A\002\022\024\n\014display_name\030\002 \001(\t\022C\n\006" - + "labels\030\003 \003(\01323.google.cloud.memcache.v1b" - + "eta2.Instance.LabelsEntry\022\032\n\022authorized_" - + "network\030\004 \001(\t\022\r\n\005zones\030\005 \003(\t\022\027\n\nnode_cou" - + "nt\030\006 \001(\005B\003\340A\002\022L\n\013node_config\030\007 \001(\01322.goo" - + "gle.cloud.memcache.v1beta2.Instance.Node" - + "ConfigB\003\340A\002\022H\n\020memcache_version\030\t \001(\0162.." - + "google.cloud.memcache.v1beta2.MemcacheVe" - + "rsion\022E\n\nparameters\030\013 \001(\01321.google.cloud" - + ".memcache.v1beta2.MemcacheParameters\022I\n\016" - + "memcache_nodes\030\014 \003(\0132,.google.cloud.memc" - + "ache.v1beta2.Instance.NodeB\003\340A\003\0224\n\013creat" - + "e_time\030\r \001(\0132\032.google.protobuf.Timestamp" - + "B\003\340A\003\0224\n\013update_time\030\016 \001(\0132\032.google.prot" - + "obuf.TimestampB\003\340A\003\022A\n\005state\030\017 \001(\0162-.goo" - + "gle.cloud.memcache.v1beta2.Instance.Stat" - + "eB\003\340A\003\022\"\n\025memcache_full_version\030\022 \001(\tB\003\340" - + "A\003\022R\n\021instance_messages\030\023 \003(\01327.google.c" - + "loud.memcache.v1beta2.Instance.InstanceM" - + "essage\022\037\n\022discovery_endpoint\030\024 \001(\tB\003\340A\003\022" - + "\035\n\020update_available\030\025 \001(\010B\003\340A\003\032A\n\nNodeCo" - + "nfig\022\026\n\tcpu_count\030\001 \001(\005B\003\340A\002\022\033\n\016memory_s" - + "ize_mb\030\002 \001(\005B\003\340A\002\032\330\002\n\004Node\022\024\n\007node_id\030\001 " - + "\001(\tB\003\340A\003\022\021\n\004zone\030\002 \001(\tB\003\340A\003\022F\n\005state\030\003 \001" - + "(\01622.google.cloud.memcache.v1beta2.Insta" - + "nce.Node.StateB\003\340A\003\022\021\n\004host\030\004 \001(\tB\003\340A\003\022\021" - + "\n\004port\030\005 \001(\005B\003\340A\003\022E\n\nparameters\030\006 \001(\01321." - + "google.cloud.memcache.v1beta2.MemcachePa" - + "rameters\022\035\n\020update_available\030\007 \001(\010B\003\340A\003\"" - + "S\n\005State\022\025\n\021STATE_UNSPECIFIED\020\000\022\014\n\010CREAT" - + "ING\020\001\022\t\n\005READY\020\002\022\014\n\010DELETING\020\003\022\014\n\010UPDATI" - + "NG\020\004\032\256\001\n\017InstanceMessage\022J\n\004code\030\001 \001(\0162<" - + ".google.cloud.memcache.v1beta2.Instance." - + "InstanceMessage.Code\022\017\n\007message\030\002 \001(\t\">\n" - + "\004Code\022\024\n\020CODE_UNSPECIFIED\020\000\022 \n\034ZONE_DIST" - + "RIBUTION_UNBALANCED\020\001\032-\n\013LabelsEntry\022\013\n\003" - + "key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\"a\n\005State\022\025\n" - + "\021STATE_UNSPECIFIED\020\000\022\014\n\010CREATING\020\001\022\t\n\005RE" - + "ADY\020\002\022\014\n\010DELETING\020\004\022\032\n\026PERFORMING_MAINTE" - + "NANCE\020\005:c\352A`\n memcache.googleapis.com/In" - + "stance\022\n\010resource\030\003" - + " \001(\0132\'.google.cloud.memcache.v1beta2.Ins" - + "tanceB\003\340A\002\"\215\001\n\025UpdateInstanceRequest\0224\n\013" - + "update_mask\030\001 \001(\0132\032.google.protobuf.Fiel" - + "dMaskB\003\340A\002\022>\n\010resource\030\002 \001(\0132\'.google.cl" - + "oud.memcache.v1beta2.InstanceB\003\340A\002\"O\n\025De" - + "leteInstanceRequest\0226\n\004name\030\001 \001(\tB(\340A\002\372A" - + "\"\n memcache.googleapis.com/Instance\"u\n\026A" - + "pplyParametersRequest\0226\n\004name\030\001 \001(\tB(\340A\002" - + "\372A\"\n memcache.googleapis.com/Instance\022\020\n" - + "\010node_ids\030\002 \003(\t\022\021\n\tapply_all\030\003 \001(\010\"\316\001\n\027U" - + "pdateParametersRequest\0226\n\004name\030\001 \001(\tB(\340A" - + "\002\372A\"\n memcache.googleapis.com/Instance\0224" - + "\n\013update_mask\030\002 \001(\0132\032.google.protobuf.Fi" - + "eldMaskB\003\340A\002\022E\n\nparameters\030\003 \001(\01321.googl" - + "e.cloud.memcache.v1beta2.MemcacheParamet" - + "ers\"}\n\032ApplySoftwareUpdateRequest\022:\n\010ins" - + "tance\030\001 \001(\tB(\340A\002\372A\"\n memcache.googleapis" - + ".com/Instance\022\020\n\010node_ids\030\002 \003(\t\022\021\n\tapply" - + "_all\030\003 \001(\010\"\243\001\n\022MemcacheParameters\022\017\n\002id\030" - + "\001 \001(\tB\003\340A\003\022M\n\006params\030\003 \003(\0132=.google.clou" - + "d.memcache.v1beta2.MemcacheParameters.Pa" - + "ramsEntry\032-\n\013ParamsEntry\022\013\n\003key\030\001 \001(\t\022\r\n" - + "\005value\030\002 \001(\t:\0028\001\"\371\001\n\021OperationMetadata\0224" - + "\n\013create_time\030\001 \001(\0132\032.google.protobuf.Ti" - + "mestampB\003\340A\003\0221\n\010end_time\030\002 \001(\0132\032.google." - + "protobuf.TimestampB\003\340A\003\022\023\n\006target\030\003 \001(\tB" - + "\003\340A\003\022\021\n\004verb\030\004 \001(\tB\003\340A\003\022\032\n\rstatus_detail" - + "\030\005 \001(\tB\003\340A\003\022\035\n\020cancel_requested\030\006 \001(\010B\003\340" - + "A\003\022\030\n\013api_version\030\007 \001(\tB\003\340A\003\"\331\001\n\020Locatio" - + "nMetadata\022a\n\017available_zones\030\001 \003(\0132C.goo" - + "gle.cloud.memcache.v1beta2.LocationMetad" - + "ata.AvailableZonesEntryB\003\340A\003\032b\n\023Availabl" - + "eZonesEntry\022\013\n\003key\030\001 \001(\t\022:\n\005value\030\002 \001(\0132" - + "+.google.cloud.memcache.v1beta2.ZoneMeta" - + "data:\0028\001\"\016\n\014ZoneMetadata*E\n\017MemcacheVers" - + "ion\022 \n\034MEMCACHE_VERSION_UNSPECIFIED\020\000\022\020\n" - + "\014MEMCACHE_1_5\020\0012\303\021\n\rCloudMemcache\022\277\001\n\rLi" - + "stInstances\0223.google.cloud.memcache.v1be" - + "ta2.ListInstancesRequest\0324.google.cloud." - + "memcache.v1beta2.ListInstancesResponse\"C" - + "\202\323\344\223\0024\0222/v1beta2/{parent=projects/*/loca" - + "tions/*}/instances\332A\006parent\022\254\001\n\013GetInsta" - + "nce\0221.google.cloud.memcache.v1beta2.GetI" - + "nstanceRequest\032\'.google.cloud.memcache.v" - + "1beta2.Instance\"A\202\323\344\223\0024\0222/v1beta2/{name=" - + "projects/*/locations/*/instances/*}\332A\004na" - + "me\022\246\002\n\016CreateInstance\0224.google.cloud.mem" - + "cache.v1beta2.CreateInstanceRequest\032\035.go" - + "ogle.longrunning.Operation\"\276\001\202\323\344\223\002>\"2/v1" - + "beta2/{parent=projects/*/locations/*}/in" - + "stances:\010resource\332A\033parent,instance_id,r" - + "esource\312AY\n&google.cloud.memcache.v1beta" - + "2.Instance\022/google.cloud.memcache.v1beta" - + "2.OperationMetadata\022\250\002\n\016UpdateInstance\0224" - + ".google.cloud.memcache.v1beta2.UpdateIns" - + "tanceRequest\032\035.google.longrunning.Operat" - + "ion\"\300\001\202\323\344\223\002G2;/v1beta2/{resource.name=pr" - + "ojects/*/locations/*/instances/*}:\010resou" - + "rce\332A\024update_mask,resource\312AY\n&google.cl" - + "oud.memcache.v1beta2.Instance\022/google.cl" - + "oud.memcache.v1beta2.OperationMetadata\022\264" - + "\002\n\020UpdateParameters\0226.google.cloud.memca" - + "che.v1beta2.UpdateParametersRequest\032\035.go" - + "ogle.longrunning.Operation\"\310\001\202\323\344\223\002H2C/v1" - + "beta2/{name=projects/*/locations/*/insta" - + "nces/*}:updateParameters:\001*\332A\033name,updat" - + "e_mask,parameters\312AY\n&google.cloud.memca" - + "che.v1beta2.Instance\022/google.cloud.memca" - + "che.v1beta2.OperationMetadata\022\364\001\n\016Delete" - + "Instance\0224.google.cloud.memcache.v1beta2" - + ".DeleteInstanceRequest\032\035.google.longrunn" - + "ing.Operation\"\214\001\202\323\344\223\0024*2/v1beta2/{name=p" - + "rojects/*/locations/*/instances/*}\332A\004nam" - + "e\312AH\n\025google.protobuf.Empty\022/google.clou" - + "d.memcache.v1beta2.OperationMetadata\022\255\002\n" - + "\017ApplyParameters\0225.google.cloud.memcache" - + ".v1beta2.ApplyParametersRequest\032\035.google" - + ".longrunning.Operation\"\303\001\202\323\344\223\002G\"B/v1beta" - + "2/{name=projects/*/locations/*/instances" - + "/*}:applyParameters:\001*\332A\027name,node_ids,a" - + "pply_all\312AY\n&google.cloud.memcache.v1bet" - + "a2.Instance\022/google.cloud.memcache.v1bet" - + "a2.OperationMetadata\022\301\002\n\023ApplySoftwareUp" - + "date\0229.google.cloud.memcache.v1beta2.App" - + "lySoftwareUpdateRequest\032\035.google.longrun" - + "ning.Operation\"\317\001\202\323\344\223\002O\"J/v1beta2/{insta" - + "nce=projects/*/locations/*/instances/*}:" - + "applySoftwareUpdate:\001*\332A\033instance,node_i" - + "ds,apply_all\312AY\n&google.cloud.memcache.v" - + "1beta2.Instance\022/google.cloud.memcache.v" - + "1beta2.OperationMetadata\032K\312A\027memcache.go" - + "ogleapis.com\322A.https://www.googleapis.co" - + "m/auth/cloud-platformB\200\001\n!com.google.clo" - + "ud.memcache.v1beta2B\022CloudMemcacheProtoP" - + "\001ZEgoogle.golang.org/genproto/googleapis" - + "/cloud/memcache/v1beta2;memcacheb\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.FieldMaskProto.getDescriptor(), - com.google.protobuf.TimestampProto.getDescriptor(), - }); - internal_static_google_cloud_memcache_v1beta2_Instance_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_google_cloud_memcache_v1beta2_Instance_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_memcache_v1beta2_Instance_descriptor, - new java.lang.String[] { - "Name", - "DisplayName", - "Labels", - "AuthorizedNetwork", - "Zones", - "NodeCount", - "NodeConfig", - "MemcacheVersion", - "Parameters", - "MemcacheNodes", - "CreateTime", - "UpdateTime", - "State", - "MemcacheFullVersion", - "InstanceMessages", - "DiscoveryEndpoint", - "UpdateAvailable", - }); - internal_static_google_cloud_memcache_v1beta2_Instance_NodeConfig_descriptor = - internal_static_google_cloud_memcache_v1beta2_Instance_descriptor.getNestedTypes().get(0); - internal_static_google_cloud_memcache_v1beta2_Instance_NodeConfig_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_memcache_v1beta2_Instance_NodeConfig_descriptor, - new java.lang.String[] { - "CpuCount", "MemorySizeMb", - }); - internal_static_google_cloud_memcache_v1beta2_Instance_Node_descriptor = - internal_static_google_cloud_memcache_v1beta2_Instance_descriptor.getNestedTypes().get(1); - internal_static_google_cloud_memcache_v1beta2_Instance_Node_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_memcache_v1beta2_Instance_Node_descriptor, - new java.lang.String[] { - "NodeId", "Zone", "State", "Host", "Port", "Parameters", "UpdateAvailable", - }); - internal_static_google_cloud_memcache_v1beta2_Instance_InstanceMessage_descriptor = - internal_static_google_cloud_memcache_v1beta2_Instance_descriptor.getNestedTypes().get(2); - internal_static_google_cloud_memcache_v1beta2_Instance_InstanceMessage_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_memcache_v1beta2_Instance_InstanceMessage_descriptor, - new java.lang.String[] { - "Code", "Message", - }); - internal_static_google_cloud_memcache_v1beta2_Instance_LabelsEntry_descriptor = - internal_static_google_cloud_memcache_v1beta2_Instance_descriptor.getNestedTypes().get(3); - internal_static_google_cloud_memcache_v1beta2_Instance_LabelsEntry_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_memcache_v1beta2_Instance_LabelsEntry_descriptor, - new java.lang.String[] { - "Key", "Value", - }); - internal_static_google_cloud_memcache_v1beta2_ListInstancesRequest_descriptor = - getDescriptor().getMessageTypes().get(1); - internal_static_google_cloud_memcache_v1beta2_ListInstancesRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_memcache_v1beta2_ListInstancesRequest_descriptor, - new java.lang.String[] { - "Parent", "PageSize", "PageToken", "Filter", "OrderBy", - }); - internal_static_google_cloud_memcache_v1beta2_ListInstancesResponse_descriptor = - getDescriptor().getMessageTypes().get(2); - internal_static_google_cloud_memcache_v1beta2_ListInstancesResponse_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_memcache_v1beta2_ListInstancesResponse_descriptor, - new java.lang.String[] { - "Resources", "NextPageToken", "Unreachable", - }); - internal_static_google_cloud_memcache_v1beta2_GetInstanceRequest_descriptor = - getDescriptor().getMessageTypes().get(3); - internal_static_google_cloud_memcache_v1beta2_GetInstanceRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_memcache_v1beta2_GetInstanceRequest_descriptor, - new java.lang.String[] { - "Name", - }); - internal_static_google_cloud_memcache_v1beta2_CreateInstanceRequest_descriptor = - getDescriptor().getMessageTypes().get(4); - internal_static_google_cloud_memcache_v1beta2_CreateInstanceRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_memcache_v1beta2_CreateInstanceRequest_descriptor, - new java.lang.String[] { - "Parent", "InstanceId", "Resource", - }); - internal_static_google_cloud_memcache_v1beta2_UpdateInstanceRequest_descriptor = - getDescriptor().getMessageTypes().get(5); - internal_static_google_cloud_memcache_v1beta2_UpdateInstanceRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_memcache_v1beta2_UpdateInstanceRequest_descriptor, - new java.lang.String[] { - "UpdateMask", "Resource", - }); - internal_static_google_cloud_memcache_v1beta2_DeleteInstanceRequest_descriptor = - getDescriptor().getMessageTypes().get(6); - internal_static_google_cloud_memcache_v1beta2_DeleteInstanceRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_memcache_v1beta2_DeleteInstanceRequest_descriptor, - new java.lang.String[] { - "Name", - }); - internal_static_google_cloud_memcache_v1beta2_ApplyParametersRequest_descriptor = - getDescriptor().getMessageTypes().get(7); - internal_static_google_cloud_memcache_v1beta2_ApplyParametersRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_memcache_v1beta2_ApplyParametersRequest_descriptor, - new java.lang.String[] { - "Name", "NodeIds", "ApplyAll", - }); - internal_static_google_cloud_memcache_v1beta2_UpdateParametersRequest_descriptor = - getDescriptor().getMessageTypes().get(8); - internal_static_google_cloud_memcache_v1beta2_UpdateParametersRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_memcache_v1beta2_UpdateParametersRequest_descriptor, - new java.lang.String[] { - "Name", "UpdateMask", "Parameters", - }); - internal_static_google_cloud_memcache_v1beta2_ApplySoftwareUpdateRequest_descriptor = - getDescriptor().getMessageTypes().get(9); - internal_static_google_cloud_memcache_v1beta2_ApplySoftwareUpdateRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_memcache_v1beta2_ApplySoftwareUpdateRequest_descriptor, - new java.lang.String[] { - "Instance", "NodeIds", "ApplyAll", - }); - internal_static_google_cloud_memcache_v1beta2_MemcacheParameters_descriptor = - getDescriptor().getMessageTypes().get(10); - internal_static_google_cloud_memcache_v1beta2_MemcacheParameters_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_memcache_v1beta2_MemcacheParameters_descriptor, - new java.lang.String[] { - "Id", "Params", - }); - internal_static_google_cloud_memcache_v1beta2_MemcacheParameters_ParamsEntry_descriptor = - internal_static_google_cloud_memcache_v1beta2_MemcacheParameters_descriptor - .getNestedTypes() - .get(0); - internal_static_google_cloud_memcache_v1beta2_MemcacheParameters_ParamsEntry_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_memcache_v1beta2_MemcacheParameters_ParamsEntry_descriptor, - new java.lang.String[] { - "Key", "Value", - }); - internal_static_google_cloud_memcache_v1beta2_OperationMetadata_descriptor = - getDescriptor().getMessageTypes().get(11); - internal_static_google_cloud_memcache_v1beta2_OperationMetadata_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_memcache_v1beta2_OperationMetadata_descriptor, - new java.lang.String[] { - "CreateTime", - "EndTime", - "Target", - "Verb", - "StatusDetail", - "CancelRequested", - "ApiVersion", - }); - internal_static_google_cloud_memcache_v1beta2_LocationMetadata_descriptor = - getDescriptor().getMessageTypes().get(12); - internal_static_google_cloud_memcache_v1beta2_LocationMetadata_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_memcache_v1beta2_LocationMetadata_descriptor, - new java.lang.String[] { - "AvailableZones", - }); - internal_static_google_cloud_memcache_v1beta2_LocationMetadata_AvailableZonesEntry_descriptor = - internal_static_google_cloud_memcache_v1beta2_LocationMetadata_descriptor - .getNestedTypes() - .get(0); - internal_static_google_cloud_memcache_v1beta2_LocationMetadata_AvailableZonesEntry_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_memcache_v1beta2_LocationMetadata_AvailableZonesEntry_descriptor, - new java.lang.String[] { - "Key", "Value", - }); - internal_static_google_cloud_memcache_v1beta2_ZoneMetadata_descriptor = - getDescriptor().getMessageTypes().get(13); - internal_static_google_cloud_memcache_v1beta2_ZoneMetadata_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_memcache_v1beta2_ZoneMetadata_descriptor, - new java.lang.String[] {}); - 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.FieldMaskProto.getDescriptor(); - com.google.protobuf.TimestampProto.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/proto-google-cloud-memcache-v1beta2/src/main/java/com/google/cloud/memcache/v1beta2/DeleteInstanceRequestOrBuilder.java b/proto-google-cloud-memcache-v1beta2/src/main/java/com/google/cloud/memcache/v1beta2/DeleteInstanceRequestOrBuilder.java deleted file mode 100644 index 5837eb48..00000000 --- a/proto-google-cloud-memcache-v1beta2/src/main/java/com/google/cloud/memcache/v1beta2/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/memcache/v1beta2/cloud_memcache.proto - -package com.google.cloud.memcache.v1beta2; - -public interface DeleteInstanceRequestOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.memcache.v1beta2.DeleteInstanceRequest) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Required. Memcached instance resource name in the format:
-   *     `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. Memcached instance resource name in the format:
-   *     `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-memcache-v1beta2/src/main/java/com/google/cloud/memcache/v1beta2/GetInstanceRequestOrBuilder.java b/proto-google-cloud-memcache-v1beta2/src/main/java/com/google/cloud/memcache/v1beta2/GetInstanceRequestOrBuilder.java deleted file mode 100644 index b584fede..00000000 --- a/proto-google-cloud-memcache-v1beta2/src/main/java/com/google/cloud/memcache/v1beta2/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/memcache/v1beta2/cloud_memcache.proto - -package com.google.cloud.memcache.v1beta2; - -public interface GetInstanceRequestOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.memcache.v1beta2.GetInstanceRequest) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Required. Memcached instance resource name in the format:
-   *     `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. Memcached instance resource name in the format:
-   *     `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-memcache-v1beta2/src/main/java/com/google/cloud/memcache/v1beta2/ZoneMetadataOrBuilder.java b/proto-google-cloud-memcache-v1beta2/src/main/java/com/google/cloud/memcache/v1beta2/ZoneMetadataOrBuilder.java deleted file mode 100644 index 3334a89d..00000000 --- a/proto-google-cloud-memcache-v1beta2/src/main/java/com/google/cloud/memcache/v1beta2/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/memcache/v1beta2/cloud_memcache.proto - -package com.google.cloud.memcache.v1beta2; - -public interface ZoneMetadataOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.memcache.v1beta2.ZoneMetadata) - com.google.protobuf.MessageOrBuilder {} From e83d7a63f11348eb307870f5d068e16c8b31f15b Mon Sep 17 00:00:00 2001 From: Owl Bot Date: Mon, 27 Jun 2022 21:12:23 +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 --- .../memcache/v1/CloudMemcacheClient.java | 46 +- .../memcache/v1/CloudMemcacheSettings.java | 7 +- .../cloud/memcache/v1/gapic_metadata.json | 0 .../cloud/memcache/v1/package-info.java | 10 +- .../memcache/v1/stub/CloudMemcacheStub.java | 0 .../v1/stub/CloudMemcacheStubSettings.java | 6 +- .../GrpcCloudMemcacheCallableFactory.java | 0 .../v1/stub/GrpcCloudMemcacheStub.java | 1 - .../HttpJsonCloudMemcacheCallableFactory.java | 0 .../v1/stub/HttpJsonCloudMemcacheStub.java | 1 - .../memcache/v1beta2/CloudMemcacheClient.java | 46 +- .../v1beta2/CloudMemcacheSettings.java | 7 +- .../memcache/v1beta2/gapic_metadata.json | 0 .../cloud/memcache/v1beta2/package-info.java | 10 +- .../v1beta2/stub/CloudMemcacheStub.java | 0 .../stub/CloudMemcacheStubSettings.java | 6 +- .../GrpcCloudMemcacheCallableFactory.java | 0 .../v1beta2/stub/GrpcCloudMemcacheStub.java | 1 - .../HttpJsonCloudMemcacheCallableFactory.java | 0 .../stub/HttpJsonCloudMemcacheStub.java | 1 - .../v1/CloudMemcacheClientHttpJsonTest.java | 0 .../memcache/v1/CloudMemcacheClientTest.java | 0 .../cloud/memcache/v1/MockCloudMemcache.java | 0 .../memcache/v1/MockCloudMemcacheImpl.java | 0 .../CloudMemcacheClientHttpJsonTest.java | 0 .../v1beta2/CloudMemcacheClientTest.java | 0 .../memcache/v1beta2/MockCloudMemcache.java | 0 .../v1beta2/MockCloudMemcacheImpl.java | 0 .../cloud/memcache/v1/CloudMemcacheGrpc.java | 1101 +++++ .../memcache/v1beta2/CloudMemcacheGrpc.java | 1236 ++++++ .../cloud/memcache/v1/CloudMemcacheGrpc.java | 886 ---- .../cloud/memcache/v1/CloudMemcacheProto.java | 370 -- .../v1/DeleteInstanceRequestOrBuilder.java | 33 - .../v1/GetInstanceRequestOrBuilder.java | 33 - .../memcache/v1beta2/CloudMemcacheGrpc.java | 976 ---- .../memcache/v1beta2/CloudMemcacheProto.java | 438 -- .../DeleteInstanceRequestOrBuilder.java | 33 - .../v1beta2/GetInstanceRequestOrBuilder.java | 33 - .../v1beta2/ZoneMetadataOrBuilder.java | 9 - .../memcache/v1/ApplyParametersRequest.java | 487 +- .../v1/ApplyParametersRequestOrBuilder.java | 56 +- .../cloud/memcache/v1/CloudMemcacheProto.java | 423 ++ .../memcache/v1/CreateInstanceRequest.java | 567 ++- .../v1/CreateInstanceRequestOrBuilder.java | 64 +- .../memcache/v1/DeleteInstanceRequest.java | 339 +- .../v1/DeleteInstanceRequestOrBuilder.java | 58 + .../cloud/memcache/v1/GetInstanceRequest.java | 332 +- .../v1/GetInstanceRequestOrBuilder.java | 58 + .../google/cloud/memcache/v1/Instance.java | 3775 ++++++++++------ .../cloud/memcache/v1/InstanceName.java | 0 .../cloud/memcache/v1/InstanceOrBuilder.java | 265 +- .../memcache/v1/ListInstancesRequest.java | 612 +-- .../v1/ListInstancesRequestOrBuilder.java | 65 +- .../memcache/v1/ListInstancesResponse.java | 569 ++- .../v1/ListInstancesResponseOrBuilder.java | 63 +- .../cloud/memcache/v1/LocationName.java | 0 .../cloud/memcache/v1/MemcacheParameters.java | 572 +-- .../v1/MemcacheParametersOrBuilder.java | 58 +- .../cloud/memcache/v1/MemcacheVersion.java | 79 +- .../cloud/memcache/v1/OperationMetadata.java | 842 ++-- .../v1/OperationMetadataOrBuilder.java | 91 +- .../memcache/v1/UpdateInstanceRequest.java | 516 ++- .../v1/UpdateInstanceRequestOrBuilder.java | 55 +- .../memcache/v1/UpdateParametersRequest.java | 567 ++- .../v1/UpdateParametersRequestOrBuilder.java | 60 +- .../cloud/memcache/v1/cloud_memcache.proto | 0 .../v1beta2/ApplyParametersRequest.java | 490 +- .../ApplyParametersRequestOrBuilder.java | 56 +- .../v1beta2/ApplySoftwareUpdateRequest.java | 497 ++- .../ApplySoftwareUpdateRequestOrBuilder.java | 56 +- .../memcache/v1beta2/CloudMemcacheProto.java | 496 +++ .../v1beta2/CreateInstanceRequest.java | 570 ++- .../CreateInstanceRequestOrBuilder.java | 64 +- .../v1beta2/DeleteInstanceRequest.java | 342 +- .../DeleteInstanceRequestOrBuilder.java | 58 + .../memcache/v1beta2/GetInstanceRequest.java | 339 +- .../v1beta2/GetInstanceRequestOrBuilder.java | 58 + .../cloud/memcache/v1beta2/Instance.java | 3924 +++++++++++------ .../cloud/memcache/v1beta2/InstanceName.java | 0 .../memcache/v1beta2/InstanceOrBuilder.java | 267 +- .../v1beta2/ListInstancesRequest.java | 615 +-- .../ListInstancesRequestOrBuilder.java | 65 +- .../v1beta2/ListInstancesResponse.java | 573 ++- .../ListInstancesResponseOrBuilder.java | 63 +- .../memcache/v1beta2/LocationMetadata.java | 536 ++- .../v1beta2/LocationMetadataOrBuilder.java | 67 +- .../cloud/memcache/v1beta2/LocationName.java | 0 .../memcache/v1beta2/MemcacheParameters.java | 575 +-- .../v1beta2/MemcacheParametersOrBuilder.java | 58 +- .../memcache/v1beta2/MemcacheVersion.java | 83 +- .../memcache/v1beta2/OperationMetadata.java | 852 ++-- .../v1beta2/OperationMetadataOrBuilder.java | 91 +- .../v1beta2/UpdateInstanceRequest.java | 519 ++- .../UpdateInstanceRequestOrBuilder.java | 55 +- .../v1beta2/UpdateParametersRequest.java | 571 ++- .../UpdateParametersRequestOrBuilder.java | 60 +- .../cloud/memcache/v1beta2/ZoneMetadata.java | 229 +- .../v1beta2/ZoneMetadataOrBuilder.java | 24 + .../memcache/v1beta2/cloud_memcache.proto | 0 .../applyparameters/AsyncApplyParameters.java | 0 .../AsyncApplyParametersLRO.java | 0 .../applyparameters/SyncApplyParameters.java | 0 ...rametersInstancenameListstringBoolean.java | 0 ...pplyParametersStringListstringBoolean.java | 0 .../SyncCreateSetCredentialsProvider.java | 0 .../SyncCreateSetCredentialsProvider1.java | 0 .../create/SyncCreateSetEndpoint.java | 0 .../createinstance/AsyncCreateInstance.java | 0 .../AsyncCreateInstanceLRO.java | 0 .../createinstance/SyncCreateInstance.java | 0 ...ateInstanceLocationnameInstanceString.java | 0 ...yncCreateInstanceStringInstanceString.java | 0 .../deleteinstance/AsyncDeleteInstance.java | 0 .../AsyncDeleteInstanceLRO.java | 0 .../deleteinstance/SyncDeleteInstance.java | 0 .../SyncDeleteInstanceInstancename.java | 0 .../SyncDeleteInstanceString.java | 0 .../getinstance/AsyncGetInstance.java | 0 .../getinstance/SyncGetInstance.java | 0 .../SyncGetInstanceInstancename.java | 0 .../getinstance/SyncGetInstanceString.java | 0 .../listinstances/AsyncListInstances.java | 0 .../AsyncListInstancesPaged.java | 0 .../listinstances/SyncListInstances.java | 0 .../SyncListInstancesLocationname.java | 0 .../SyncListInstancesString.java | 0 .../updateinstance/AsyncUpdateInstance.java | 0 .../AsyncUpdateInstanceLRO.java | 0 .../updateinstance/SyncUpdateInstance.java | 0 .../SyncUpdateInstanceInstanceFieldmask.java | 0 .../AsyncUpdateParameters.java | 0 .../AsyncUpdateParametersLRO.java | 0 .../SyncUpdateParameters.java | 0 ...stancenameFieldmaskMemcacheparameters.java | 0 ...tersStringFieldmaskMemcacheparameters.java | 0 .../getinstance/SyncGetInstance.java | 0 .../getinstance/SyncGetInstance.java | 0 .../applyparameters/AsyncApplyParameters.java | 0 .../AsyncApplyParametersLRO.java | 0 .../applyparameters/SyncApplyParameters.java | 0 ...rametersInstancenameListstringBoolean.java | 0 ...pplyParametersStringListstringBoolean.java | 0 .../AsyncApplySoftwareUpdate.java | 0 .../AsyncApplySoftwareUpdateLRO.java | 0 .../SyncApplySoftwareUpdate.java | 0 ...reUpdateInstancenameListstringBoolean.java | 0 ...SoftwareUpdateStringListstringBoolean.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 .../getinstance/AsyncGetInstance.java | 0 .../getinstance/SyncGetInstance.java | 0 .../SyncGetInstanceInstancename.java | 0 .../getinstance/SyncGetInstanceString.java | 0 .../listinstances/AsyncListInstances.java | 0 .../AsyncListInstancesPaged.java | 0 .../listinstances/SyncListInstances.java | 0 .../SyncListInstancesLocationname.java | 0 .../SyncListInstancesString.java | 0 .../updateinstance/AsyncUpdateInstance.java | 0 .../AsyncUpdateInstanceLRO.java | 0 .../updateinstance/SyncUpdateInstance.java | 0 .../SyncUpdateInstanceFieldmaskInstance.java | 0 .../AsyncUpdateParameters.java | 0 .../AsyncUpdateParametersLRO.java | 0 .../SyncUpdateParameters.java | 0 ...stancenameFieldmaskMemcacheparameters.java | 0 ...tersStringFieldmaskMemcacheparameters.java | 0 .../getinstance/SyncGetInstance.java | 0 .../getinstance/SyncGetInstance.java | 0 180 files changed, 17134 insertions(+), 10982 deletions(-) rename {owl-bot-staging/v1/google-cloud-memcache => google-cloud-memcache}/src/main/java/com/google/cloud/memcache/v1/CloudMemcacheClient.java (97%) rename {owl-bot-staging/v1/google-cloud-memcache => google-cloud-memcache}/src/main/java/com/google/cloud/memcache/v1/CloudMemcacheSettings.java (97%) rename {owl-bot-staging/v1/google-cloud-memcache => google-cloud-memcache}/src/main/java/com/google/cloud/memcache/v1/gapic_metadata.json (100%) rename {owl-bot-staging/v1/google-cloud-memcache => google-cloud-memcache}/src/main/java/com/google/cloud/memcache/v1/package-info.java (81%) rename {owl-bot-staging/v1/google-cloud-memcache => google-cloud-memcache}/src/main/java/com/google/cloud/memcache/v1/stub/CloudMemcacheStub.java (100%) rename {owl-bot-staging/v1/google-cloud-memcache => google-cloud-memcache}/src/main/java/com/google/cloud/memcache/v1/stub/CloudMemcacheStubSettings.java (99%) rename {owl-bot-staging/v1/google-cloud-memcache => google-cloud-memcache}/src/main/java/com/google/cloud/memcache/v1/stub/GrpcCloudMemcacheCallableFactory.java (100%) rename {owl-bot-staging/v1/google-cloud-memcache => google-cloud-memcache}/src/main/java/com/google/cloud/memcache/v1/stub/GrpcCloudMemcacheStub.java (99%) rename {owl-bot-staging/v1/google-cloud-memcache => google-cloud-memcache}/src/main/java/com/google/cloud/memcache/v1/stub/HttpJsonCloudMemcacheCallableFactory.java (100%) rename {owl-bot-staging/v1/google-cloud-memcache => google-cloud-memcache}/src/main/java/com/google/cloud/memcache/v1/stub/HttpJsonCloudMemcacheStub.java (99%) rename {owl-bot-staging/v1beta2/google-cloud-memcache => google-cloud-memcache}/src/main/java/com/google/cloud/memcache/v1beta2/CloudMemcacheClient.java (97%) rename {owl-bot-staging/v1beta2/google-cloud-memcache => google-cloud-memcache}/src/main/java/com/google/cloud/memcache/v1beta2/CloudMemcacheSettings.java (97%) rename {owl-bot-staging/v1beta2/google-cloud-memcache => google-cloud-memcache}/src/main/java/com/google/cloud/memcache/v1beta2/gapic_metadata.json (100%) rename {owl-bot-staging/v1beta2/google-cloud-memcache => google-cloud-memcache}/src/main/java/com/google/cloud/memcache/v1beta2/package-info.java (81%) rename {owl-bot-staging/v1beta2/google-cloud-memcache => google-cloud-memcache}/src/main/java/com/google/cloud/memcache/v1beta2/stub/CloudMemcacheStub.java (100%) rename {owl-bot-staging/v1beta2/google-cloud-memcache => google-cloud-memcache}/src/main/java/com/google/cloud/memcache/v1beta2/stub/CloudMemcacheStubSettings.java (99%) rename {owl-bot-staging/v1beta2/google-cloud-memcache => google-cloud-memcache}/src/main/java/com/google/cloud/memcache/v1beta2/stub/GrpcCloudMemcacheCallableFactory.java (100%) rename {owl-bot-staging/v1beta2/google-cloud-memcache => google-cloud-memcache}/src/main/java/com/google/cloud/memcache/v1beta2/stub/GrpcCloudMemcacheStub.java (99%) rename {owl-bot-staging/v1beta2/google-cloud-memcache => google-cloud-memcache}/src/main/java/com/google/cloud/memcache/v1beta2/stub/HttpJsonCloudMemcacheCallableFactory.java (100%) rename {owl-bot-staging/v1beta2/google-cloud-memcache => google-cloud-memcache}/src/main/java/com/google/cloud/memcache/v1beta2/stub/HttpJsonCloudMemcacheStub.java (99%) rename {owl-bot-staging/v1/google-cloud-memcache => google-cloud-memcache}/src/test/java/com/google/cloud/memcache/v1/CloudMemcacheClientHttpJsonTest.java (100%) rename {owl-bot-staging/v1/google-cloud-memcache => google-cloud-memcache}/src/test/java/com/google/cloud/memcache/v1/CloudMemcacheClientTest.java (100%) rename {owl-bot-staging/v1/google-cloud-memcache => google-cloud-memcache}/src/test/java/com/google/cloud/memcache/v1/MockCloudMemcache.java (100%) rename {owl-bot-staging/v1/google-cloud-memcache => google-cloud-memcache}/src/test/java/com/google/cloud/memcache/v1/MockCloudMemcacheImpl.java (100%) rename {owl-bot-staging/v1beta2/google-cloud-memcache => google-cloud-memcache}/src/test/java/com/google/cloud/memcache/v1beta2/CloudMemcacheClientHttpJsonTest.java (100%) rename {owl-bot-staging/v1beta2/google-cloud-memcache => google-cloud-memcache}/src/test/java/com/google/cloud/memcache/v1beta2/CloudMemcacheClientTest.java (100%) rename {owl-bot-staging/v1beta2/google-cloud-memcache => google-cloud-memcache}/src/test/java/com/google/cloud/memcache/v1beta2/MockCloudMemcache.java (100%) rename {owl-bot-staging/v1beta2/google-cloud-memcache => google-cloud-memcache}/src/test/java/com/google/cloud/memcache/v1beta2/MockCloudMemcacheImpl.java (100%) create mode 100644 grpc-google-cloud-memcache-v1/src/main/java/com/google/cloud/memcache/v1/CloudMemcacheGrpc.java create mode 100644 grpc-google-cloud-memcache-v1beta2/src/main/java/com/google/cloud/memcache/v1beta2/CloudMemcacheGrpc.java delete mode 100644 owl-bot-staging/v1/grpc-google-cloud-memcache-v1/src/main/java/com/google/cloud/memcache/v1/CloudMemcacheGrpc.java delete mode 100644 owl-bot-staging/v1/proto-google-cloud-memcache-v1/src/main/java/com/google/cloud/memcache/v1/CloudMemcacheProto.java delete mode 100644 owl-bot-staging/v1/proto-google-cloud-memcache-v1/src/main/java/com/google/cloud/memcache/v1/DeleteInstanceRequestOrBuilder.java delete mode 100644 owl-bot-staging/v1/proto-google-cloud-memcache-v1/src/main/java/com/google/cloud/memcache/v1/GetInstanceRequestOrBuilder.java delete mode 100644 owl-bot-staging/v1beta2/grpc-google-cloud-memcache-v1beta2/src/main/java/com/google/cloud/memcache/v1beta2/CloudMemcacheGrpc.java delete mode 100644 owl-bot-staging/v1beta2/proto-google-cloud-memcache-v1beta2/src/main/java/com/google/cloud/memcache/v1beta2/CloudMemcacheProto.java delete mode 100644 owl-bot-staging/v1beta2/proto-google-cloud-memcache-v1beta2/src/main/java/com/google/cloud/memcache/v1beta2/DeleteInstanceRequestOrBuilder.java delete mode 100644 owl-bot-staging/v1beta2/proto-google-cloud-memcache-v1beta2/src/main/java/com/google/cloud/memcache/v1beta2/GetInstanceRequestOrBuilder.java delete mode 100644 owl-bot-staging/v1beta2/proto-google-cloud-memcache-v1beta2/src/main/java/com/google/cloud/memcache/v1beta2/ZoneMetadataOrBuilder.java rename {owl-bot-staging/v1/proto-google-cloud-memcache-v1 => proto-google-cloud-memcache-v1}/src/main/java/com/google/cloud/memcache/v1/ApplyParametersRequest.java (70%) rename {owl-bot-staging/v1/proto-google-cloud-memcache-v1 => proto-google-cloud-memcache-v1}/src/main/java/com/google/cloud/memcache/v1/ApplyParametersRequestOrBuilder.java (63%) create mode 100644 proto-google-cloud-memcache-v1/src/main/java/com/google/cloud/memcache/v1/CloudMemcacheProto.java rename {owl-bot-staging/v1/proto-google-cloud-memcache-v1 => proto-google-cloud-memcache-v1}/src/main/java/com/google/cloud/memcache/v1/CreateInstanceRequest.java (67%) rename {owl-bot-staging/v1/proto-google-cloud-memcache-v1 => proto-google-cloud-memcache-v1}/src/main/java/com/google/cloud/memcache/v1/CreateInstanceRequestOrBuilder.java (62%) rename {owl-bot-staging/v1/proto-google-cloud-memcache-v1 => proto-google-cloud-memcache-v1}/src/main/java/com/google/cloud/memcache/v1/DeleteInstanceRequest.java (66%) create mode 100644 proto-google-cloud-memcache-v1/src/main/java/com/google/cloud/memcache/v1/DeleteInstanceRequestOrBuilder.java rename {owl-bot-staging/v1/proto-google-cloud-memcache-v1 => proto-google-cloud-memcache-v1}/src/main/java/com/google/cloud/memcache/v1/GetInstanceRequest.java (67%) create mode 100644 proto-google-cloud-memcache-v1/src/main/java/com/google/cloud/memcache/v1/GetInstanceRequestOrBuilder.java rename {owl-bot-staging/v1/proto-google-cloud-memcache-v1 => proto-google-cloud-memcache-v1}/src/main/java/com/google/cloud/memcache/v1/Instance.java (72%) rename {owl-bot-staging/v1/proto-google-cloud-memcache-v1 => proto-google-cloud-memcache-v1}/src/main/java/com/google/cloud/memcache/v1/InstanceName.java (100%) rename {owl-bot-staging/v1/proto-google-cloud-memcache-v1 => proto-google-cloud-memcache-v1}/src/main/java/com/google/cloud/memcache/v1/InstanceOrBuilder.java (77%) rename {owl-bot-staging/v1/proto-google-cloud-memcache-v1 => proto-google-cloud-memcache-v1}/src/main/java/com/google/cloud/memcache/v1/ListInstancesRequest.java (71%) rename {owl-bot-staging/v1/proto-google-cloud-memcache-v1 => proto-google-cloud-memcache-v1}/src/main/java/com/google/cloud/memcache/v1/ListInstancesRequestOrBuilder.java (68%) rename {owl-bot-staging/v1/proto-google-cloud-memcache-v1 => proto-google-cloud-memcache-v1}/src/main/java/com/google/cloud/memcache/v1/ListInstancesResponse.java (76%) rename {owl-bot-staging/v1/proto-google-cloud-memcache-v1 => proto-google-cloud-memcache-v1}/src/main/java/com/google/cloud/memcache/v1/ListInstancesResponseOrBuilder.java (78%) rename {owl-bot-staging/v1/proto-google-cloud-memcache-v1 => proto-google-cloud-memcache-v1}/src/main/java/com/google/cloud/memcache/v1/LocationName.java (100%) rename {owl-bot-staging/v1/proto-google-cloud-memcache-v1 => proto-google-cloud-memcache-v1}/src/main/java/com/google/cloud/memcache/v1/MemcacheParameters.java (64%) rename {owl-bot-staging/v1/proto-google-cloud-memcache-v1 => proto-google-cloud-memcache-v1}/src/main/java/com/google/cloud/memcache/v1/MemcacheParametersOrBuilder.java (65%) rename {owl-bot-staging/v1/proto-google-cloud-memcache-v1 => proto-google-cloud-memcache-v1}/src/main/java/com/google/cloud/memcache/v1/MemcacheVersion.java (61%) rename {owl-bot-staging/v1/proto-google-cloud-memcache-v1 => proto-google-cloud-memcache-v1}/src/main/java/com/google/cloud/memcache/v1/OperationMetadata.java (71%) rename {owl-bot-staging/v1/proto-google-cloud-memcache-v1 => proto-google-cloud-memcache-v1}/src/main/java/com/google/cloud/memcache/v1/OperationMetadataOrBuilder.java (75%) rename {owl-bot-staging/v1/proto-google-cloud-memcache-v1 => proto-google-cloud-memcache-v1}/src/main/java/com/google/cloud/memcache/v1/UpdateInstanceRequest.java (64%) rename {owl-bot-staging/v1/proto-google-cloud-memcache-v1 => proto-google-cloud-memcache-v1}/src/main/java/com/google/cloud/memcache/v1/UpdateInstanceRequestOrBuilder.java (57%) rename {owl-bot-staging/v1/proto-google-cloud-memcache-v1 => proto-google-cloud-memcache-v1}/src/main/java/com/google/cloud/memcache/v1/UpdateParametersRequest.java (67%) rename {owl-bot-staging/v1/proto-google-cloud-memcache-v1 => proto-google-cloud-memcache-v1}/src/main/java/com/google/cloud/memcache/v1/UpdateParametersRequestOrBuilder.java (63%) rename {owl-bot-staging/v1/proto-google-cloud-memcache-v1 => proto-google-cloud-memcache-v1}/src/main/proto/google/cloud/memcache/v1/cloud_memcache.proto (100%) rename {owl-bot-staging/v1beta2/proto-google-cloud-memcache-v1beta2 => proto-google-cloud-memcache-v1beta2}/src/main/java/com/google/cloud/memcache/v1beta2/ApplyParametersRequest.java (70%) rename {owl-bot-staging/v1beta2/proto-google-cloud-memcache-v1beta2 => proto-google-cloud-memcache-v1beta2}/src/main/java/com/google/cloud/memcache/v1beta2/ApplyParametersRequestOrBuilder.java (63%) rename {owl-bot-staging/v1beta2/proto-google-cloud-memcache-v1beta2 => proto-google-cloud-memcache-v1beta2}/src/main/java/com/google/cloud/memcache/v1beta2/ApplySoftwareUpdateRequest.java (70%) rename {owl-bot-staging/v1beta2/proto-google-cloud-memcache-v1beta2 => proto-google-cloud-memcache-v1beta2}/src/main/java/com/google/cloud/memcache/v1beta2/ApplySoftwareUpdateRequestOrBuilder.java (64%) create mode 100644 proto-google-cloud-memcache-v1beta2/src/main/java/com/google/cloud/memcache/v1beta2/CloudMemcacheProto.java rename {owl-bot-staging/v1beta2/proto-google-cloud-memcache-v1beta2 => proto-google-cloud-memcache-v1beta2}/src/main/java/com/google/cloud/memcache/v1beta2/CreateInstanceRequest.java (67%) rename {owl-bot-staging/v1beta2/proto-google-cloud-memcache-v1beta2 => proto-google-cloud-memcache-v1beta2}/src/main/java/com/google/cloud/memcache/v1beta2/CreateInstanceRequestOrBuilder.java (63%) rename {owl-bot-staging/v1beta2/proto-google-cloud-memcache-v1beta2 => proto-google-cloud-memcache-v1beta2}/src/main/java/com/google/cloud/memcache/v1beta2/DeleteInstanceRequest.java (66%) create mode 100644 proto-google-cloud-memcache-v1beta2/src/main/java/com/google/cloud/memcache/v1beta2/DeleteInstanceRequestOrBuilder.java rename {owl-bot-staging/v1beta2/proto-google-cloud-memcache-v1beta2 => proto-google-cloud-memcache-v1beta2}/src/main/java/com/google/cloud/memcache/v1beta2/GetInstanceRequest.java (67%) create mode 100644 proto-google-cloud-memcache-v1beta2/src/main/java/com/google/cloud/memcache/v1beta2/GetInstanceRequestOrBuilder.java rename {owl-bot-staging/v1beta2/proto-google-cloud-memcache-v1beta2 => proto-google-cloud-memcache-v1beta2}/src/main/java/com/google/cloud/memcache/v1beta2/Instance.java (72%) rename {owl-bot-staging/v1beta2/proto-google-cloud-memcache-v1beta2 => proto-google-cloud-memcache-v1beta2}/src/main/java/com/google/cloud/memcache/v1beta2/InstanceName.java (100%) rename {owl-bot-staging/v1beta2/proto-google-cloud-memcache-v1beta2 => proto-google-cloud-memcache-v1beta2}/src/main/java/com/google/cloud/memcache/v1beta2/InstanceOrBuilder.java (78%) rename {owl-bot-staging/v1beta2/proto-google-cloud-memcache-v1beta2 => proto-google-cloud-memcache-v1beta2}/src/main/java/com/google/cloud/memcache/v1beta2/ListInstancesRequest.java (72%) rename {owl-bot-staging/v1beta2/proto-google-cloud-memcache-v1beta2 => proto-google-cloud-memcache-v1beta2}/src/main/java/com/google/cloud/memcache/v1beta2/ListInstancesRequestOrBuilder.java (68%) rename {owl-bot-staging/v1beta2/proto-google-cloud-memcache-v1beta2 => proto-google-cloud-memcache-v1beta2}/src/main/java/com/google/cloud/memcache/v1beta2/ListInstancesResponse.java (77%) rename {owl-bot-staging/v1beta2/proto-google-cloud-memcache-v1beta2 => proto-google-cloud-memcache-v1beta2}/src/main/java/com/google/cloud/memcache/v1beta2/ListInstancesResponseOrBuilder.java (78%) rename {owl-bot-staging/v1beta2/proto-google-cloud-memcache-v1beta2 => proto-google-cloud-memcache-v1beta2}/src/main/java/com/google/cloud/memcache/v1beta2/LocationMetadata.java (60%) rename {owl-bot-staging/v1beta2/proto-google-cloud-memcache-v1beta2 => proto-google-cloud-memcache-v1beta2}/src/main/java/com/google/cloud/memcache/v1beta2/LocationMetadataOrBuilder.java (52%) rename {owl-bot-staging/v1beta2/proto-google-cloud-memcache-v1beta2 => proto-google-cloud-memcache-v1beta2}/src/main/java/com/google/cloud/memcache/v1beta2/LocationName.java (100%) rename {owl-bot-staging/v1beta2/proto-google-cloud-memcache-v1beta2 => proto-google-cloud-memcache-v1beta2}/src/main/java/com/google/cloud/memcache/v1beta2/MemcacheParameters.java (63%) rename {owl-bot-staging/v1beta2/proto-google-cloud-memcache-v1beta2 => proto-google-cloud-memcache-v1beta2}/src/main/java/com/google/cloud/memcache/v1beta2/MemcacheParametersOrBuilder.java (58%) rename {owl-bot-staging/v1beta2/proto-google-cloud-memcache-v1beta2 => proto-google-cloud-memcache-v1beta2}/src/main/java/com/google/cloud/memcache/v1beta2/MemcacheVersion.java (60%) rename {owl-bot-staging/v1beta2/proto-google-cloud-memcache-v1beta2 => proto-google-cloud-memcache-v1beta2}/src/main/java/com/google/cloud/memcache/v1beta2/OperationMetadata.java (71%) rename {owl-bot-staging/v1beta2/proto-google-cloud-memcache-v1beta2 => proto-google-cloud-memcache-v1beta2}/src/main/java/com/google/cloud/memcache/v1beta2/OperationMetadataOrBuilder.java (75%) rename {owl-bot-staging/v1beta2/proto-google-cloud-memcache-v1beta2 => proto-google-cloud-memcache-v1beta2}/src/main/java/com/google/cloud/memcache/v1beta2/UpdateInstanceRequest.java (65%) rename {owl-bot-staging/v1beta2/proto-google-cloud-memcache-v1beta2 => proto-google-cloud-memcache-v1beta2}/src/main/java/com/google/cloud/memcache/v1beta2/UpdateInstanceRequestOrBuilder.java (57%) rename {owl-bot-staging/v1beta2/proto-google-cloud-memcache-v1beta2 => proto-google-cloud-memcache-v1beta2}/src/main/java/com/google/cloud/memcache/v1beta2/UpdateParametersRequest.java (68%) rename {owl-bot-staging/v1beta2/proto-google-cloud-memcache-v1beta2 => proto-google-cloud-memcache-v1beta2}/src/main/java/com/google/cloud/memcache/v1beta2/UpdateParametersRequestOrBuilder.java (63%) rename {owl-bot-staging/v1beta2/proto-google-cloud-memcache-v1beta2 => proto-google-cloud-memcache-v1beta2}/src/main/java/com/google/cloud/memcache/v1beta2/ZoneMetadata.java (67%) create mode 100644 proto-google-cloud-memcache-v1beta2/src/main/java/com/google/cloud/memcache/v1beta2/ZoneMetadataOrBuilder.java rename {owl-bot-staging/v1beta2/proto-google-cloud-memcache-v1beta2 => proto-google-cloud-memcache-v1beta2}/src/main/proto/google/cloud/memcache/v1beta2/cloud_memcache.proto (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/memcache/v1/cloudmemcacheclient/applyparameters/AsyncApplyParameters.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/memcache/v1/cloudmemcacheclient/applyparameters/AsyncApplyParametersLRO.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/memcache/v1/cloudmemcacheclient/applyparameters/SyncApplyParameters.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/memcache/v1/cloudmemcacheclient/applyparameters/SyncApplyParametersInstancenameListstringBoolean.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/memcache/v1/cloudmemcacheclient/applyparameters/SyncApplyParametersStringListstringBoolean.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/memcache/v1/cloudmemcacheclient/create/SyncCreateSetCredentialsProvider.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/memcache/v1/cloudmemcacheclient/create/SyncCreateSetCredentialsProvider1.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/memcache/v1/cloudmemcacheclient/create/SyncCreateSetEndpoint.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/memcache/v1/cloudmemcacheclient/createinstance/AsyncCreateInstance.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/memcache/v1/cloudmemcacheclient/createinstance/AsyncCreateInstanceLRO.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/memcache/v1/cloudmemcacheclient/createinstance/SyncCreateInstance.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/memcache/v1/cloudmemcacheclient/createinstance/SyncCreateInstanceLocationnameInstanceString.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/memcache/v1/cloudmemcacheclient/createinstance/SyncCreateInstanceStringInstanceString.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/memcache/v1/cloudmemcacheclient/deleteinstance/AsyncDeleteInstance.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/memcache/v1/cloudmemcacheclient/deleteinstance/AsyncDeleteInstanceLRO.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/memcache/v1/cloudmemcacheclient/deleteinstance/SyncDeleteInstance.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/memcache/v1/cloudmemcacheclient/deleteinstance/SyncDeleteInstanceInstancename.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/memcache/v1/cloudmemcacheclient/deleteinstance/SyncDeleteInstanceString.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/memcache/v1/cloudmemcacheclient/getinstance/AsyncGetInstance.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/memcache/v1/cloudmemcacheclient/getinstance/SyncGetInstance.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/memcache/v1/cloudmemcacheclient/getinstance/SyncGetInstanceInstancename.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/memcache/v1/cloudmemcacheclient/getinstance/SyncGetInstanceString.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/memcache/v1/cloudmemcacheclient/listinstances/AsyncListInstances.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/memcache/v1/cloudmemcacheclient/listinstances/AsyncListInstancesPaged.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/memcache/v1/cloudmemcacheclient/listinstances/SyncListInstances.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/memcache/v1/cloudmemcacheclient/listinstances/SyncListInstancesLocationname.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/memcache/v1/cloudmemcacheclient/listinstances/SyncListInstancesString.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/memcache/v1/cloudmemcacheclient/updateinstance/AsyncUpdateInstance.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/memcache/v1/cloudmemcacheclient/updateinstance/AsyncUpdateInstanceLRO.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/memcache/v1/cloudmemcacheclient/updateinstance/SyncUpdateInstance.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/memcache/v1/cloudmemcacheclient/updateinstance/SyncUpdateInstanceInstanceFieldmask.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/memcache/v1/cloudmemcacheclient/updateparameters/AsyncUpdateParameters.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/memcache/v1/cloudmemcacheclient/updateparameters/AsyncUpdateParametersLRO.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/memcache/v1/cloudmemcacheclient/updateparameters/SyncUpdateParameters.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/memcache/v1/cloudmemcacheclient/updateparameters/SyncUpdateParametersInstancenameFieldmaskMemcacheparameters.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/memcache/v1/cloudmemcacheclient/updateparameters/SyncUpdateParametersStringFieldmaskMemcacheparameters.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/memcache/v1/cloudmemcachesettings/getinstance/SyncGetInstance.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/memcache/v1/stub/cloudmemcachestubsettings/getinstance/SyncGetInstance.java (100%) rename {owl-bot-staging/v1beta2/samples => samples}/snippets/generated/com/google/cloud/memcache/v1beta2/cloudmemcacheclient/applyparameters/AsyncApplyParameters.java (100%) rename {owl-bot-staging/v1beta2/samples => samples}/snippets/generated/com/google/cloud/memcache/v1beta2/cloudmemcacheclient/applyparameters/AsyncApplyParametersLRO.java (100%) rename {owl-bot-staging/v1beta2/samples => samples}/snippets/generated/com/google/cloud/memcache/v1beta2/cloudmemcacheclient/applyparameters/SyncApplyParameters.java (100%) rename {owl-bot-staging/v1beta2/samples => samples}/snippets/generated/com/google/cloud/memcache/v1beta2/cloudmemcacheclient/applyparameters/SyncApplyParametersInstancenameListstringBoolean.java (100%) rename {owl-bot-staging/v1beta2/samples => samples}/snippets/generated/com/google/cloud/memcache/v1beta2/cloudmemcacheclient/applyparameters/SyncApplyParametersStringListstringBoolean.java (100%) rename {owl-bot-staging/v1beta2/samples => samples}/snippets/generated/com/google/cloud/memcache/v1beta2/cloudmemcacheclient/applysoftwareupdate/AsyncApplySoftwareUpdate.java (100%) rename {owl-bot-staging/v1beta2/samples => samples}/snippets/generated/com/google/cloud/memcache/v1beta2/cloudmemcacheclient/applysoftwareupdate/AsyncApplySoftwareUpdateLRO.java (100%) rename {owl-bot-staging/v1beta2/samples => samples}/snippets/generated/com/google/cloud/memcache/v1beta2/cloudmemcacheclient/applysoftwareupdate/SyncApplySoftwareUpdate.java (100%) rename {owl-bot-staging/v1beta2/samples => samples}/snippets/generated/com/google/cloud/memcache/v1beta2/cloudmemcacheclient/applysoftwareupdate/SyncApplySoftwareUpdateInstancenameListstringBoolean.java (100%) rename {owl-bot-staging/v1beta2/samples => samples}/snippets/generated/com/google/cloud/memcache/v1beta2/cloudmemcacheclient/applysoftwareupdate/SyncApplySoftwareUpdateStringListstringBoolean.java (100%) rename {owl-bot-staging/v1beta2/samples => samples}/snippets/generated/com/google/cloud/memcache/v1beta2/cloudmemcacheclient/create/SyncCreateSetCredentialsProvider.java (100%) rename {owl-bot-staging/v1beta2/samples => samples}/snippets/generated/com/google/cloud/memcache/v1beta2/cloudmemcacheclient/create/SyncCreateSetCredentialsProvider1.java (100%) rename {owl-bot-staging/v1beta2/samples => samples}/snippets/generated/com/google/cloud/memcache/v1beta2/cloudmemcacheclient/create/SyncCreateSetEndpoint.java (100%) rename {owl-bot-staging/v1beta2/samples => samples}/snippets/generated/com/google/cloud/memcache/v1beta2/cloudmemcacheclient/createinstance/AsyncCreateInstance.java (100%) rename {owl-bot-staging/v1beta2/samples => samples}/snippets/generated/com/google/cloud/memcache/v1beta2/cloudmemcacheclient/createinstance/AsyncCreateInstanceLRO.java (100%) rename {owl-bot-staging/v1beta2/samples => samples}/snippets/generated/com/google/cloud/memcache/v1beta2/cloudmemcacheclient/createinstance/SyncCreateInstance.java (100%) rename {owl-bot-staging/v1beta2/samples => samples}/snippets/generated/com/google/cloud/memcache/v1beta2/cloudmemcacheclient/createinstance/SyncCreateInstanceLocationnameStringInstance.java (100%) rename {owl-bot-staging/v1beta2/samples => samples}/snippets/generated/com/google/cloud/memcache/v1beta2/cloudmemcacheclient/createinstance/SyncCreateInstanceStringStringInstance.java (100%) rename {owl-bot-staging/v1beta2/samples => samples}/snippets/generated/com/google/cloud/memcache/v1beta2/cloudmemcacheclient/deleteinstance/AsyncDeleteInstance.java (100%) rename {owl-bot-staging/v1beta2/samples => samples}/snippets/generated/com/google/cloud/memcache/v1beta2/cloudmemcacheclient/deleteinstance/AsyncDeleteInstanceLRO.java (100%) rename {owl-bot-staging/v1beta2/samples => samples}/snippets/generated/com/google/cloud/memcache/v1beta2/cloudmemcacheclient/deleteinstance/SyncDeleteInstance.java (100%) rename {owl-bot-staging/v1beta2/samples => samples}/snippets/generated/com/google/cloud/memcache/v1beta2/cloudmemcacheclient/deleteinstance/SyncDeleteInstanceInstancename.java (100%) rename {owl-bot-staging/v1beta2/samples => samples}/snippets/generated/com/google/cloud/memcache/v1beta2/cloudmemcacheclient/deleteinstance/SyncDeleteInstanceString.java (100%) rename {owl-bot-staging/v1beta2/samples => samples}/snippets/generated/com/google/cloud/memcache/v1beta2/cloudmemcacheclient/getinstance/AsyncGetInstance.java (100%) rename {owl-bot-staging/v1beta2/samples => samples}/snippets/generated/com/google/cloud/memcache/v1beta2/cloudmemcacheclient/getinstance/SyncGetInstance.java (100%) rename {owl-bot-staging/v1beta2/samples => samples}/snippets/generated/com/google/cloud/memcache/v1beta2/cloudmemcacheclient/getinstance/SyncGetInstanceInstancename.java (100%) rename {owl-bot-staging/v1beta2/samples => samples}/snippets/generated/com/google/cloud/memcache/v1beta2/cloudmemcacheclient/getinstance/SyncGetInstanceString.java (100%) rename {owl-bot-staging/v1beta2/samples => samples}/snippets/generated/com/google/cloud/memcache/v1beta2/cloudmemcacheclient/listinstances/AsyncListInstances.java (100%) rename {owl-bot-staging/v1beta2/samples => samples}/snippets/generated/com/google/cloud/memcache/v1beta2/cloudmemcacheclient/listinstances/AsyncListInstancesPaged.java (100%) rename {owl-bot-staging/v1beta2/samples => samples}/snippets/generated/com/google/cloud/memcache/v1beta2/cloudmemcacheclient/listinstances/SyncListInstances.java (100%) rename {owl-bot-staging/v1beta2/samples => samples}/snippets/generated/com/google/cloud/memcache/v1beta2/cloudmemcacheclient/listinstances/SyncListInstancesLocationname.java (100%) rename {owl-bot-staging/v1beta2/samples => samples}/snippets/generated/com/google/cloud/memcache/v1beta2/cloudmemcacheclient/listinstances/SyncListInstancesString.java (100%) rename {owl-bot-staging/v1beta2/samples => samples}/snippets/generated/com/google/cloud/memcache/v1beta2/cloudmemcacheclient/updateinstance/AsyncUpdateInstance.java (100%) rename {owl-bot-staging/v1beta2/samples => samples}/snippets/generated/com/google/cloud/memcache/v1beta2/cloudmemcacheclient/updateinstance/AsyncUpdateInstanceLRO.java (100%) rename {owl-bot-staging/v1beta2/samples => samples}/snippets/generated/com/google/cloud/memcache/v1beta2/cloudmemcacheclient/updateinstance/SyncUpdateInstance.java (100%) rename {owl-bot-staging/v1beta2/samples => samples}/snippets/generated/com/google/cloud/memcache/v1beta2/cloudmemcacheclient/updateinstance/SyncUpdateInstanceFieldmaskInstance.java (100%) rename {owl-bot-staging/v1beta2/samples => samples}/snippets/generated/com/google/cloud/memcache/v1beta2/cloudmemcacheclient/updateparameters/AsyncUpdateParameters.java (100%) rename {owl-bot-staging/v1beta2/samples => samples}/snippets/generated/com/google/cloud/memcache/v1beta2/cloudmemcacheclient/updateparameters/AsyncUpdateParametersLRO.java (100%) rename {owl-bot-staging/v1beta2/samples => samples}/snippets/generated/com/google/cloud/memcache/v1beta2/cloudmemcacheclient/updateparameters/SyncUpdateParameters.java (100%) rename {owl-bot-staging/v1beta2/samples => samples}/snippets/generated/com/google/cloud/memcache/v1beta2/cloudmemcacheclient/updateparameters/SyncUpdateParametersInstancenameFieldmaskMemcacheparameters.java (100%) rename {owl-bot-staging/v1beta2/samples => samples}/snippets/generated/com/google/cloud/memcache/v1beta2/cloudmemcacheclient/updateparameters/SyncUpdateParametersStringFieldmaskMemcacheparameters.java (100%) rename {owl-bot-staging/v1beta2/samples => samples}/snippets/generated/com/google/cloud/memcache/v1beta2/cloudmemcachesettings/getinstance/SyncGetInstance.java (100%) rename {owl-bot-staging/v1beta2/samples => samples}/snippets/generated/com/google/cloud/memcache/v1beta2/stub/cloudmemcachestubsettings/getinstance/SyncGetInstance.java (100%) diff --git a/owl-bot-staging/v1/google-cloud-memcache/src/main/java/com/google/cloud/memcache/v1/CloudMemcacheClient.java b/google-cloud-memcache/src/main/java/com/google/cloud/memcache/v1/CloudMemcacheClient.java similarity index 97% rename from owl-bot-staging/v1/google-cloud-memcache/src/main/java/com/google/cloud/memcache/v1/CloudMemcacheClient.java rename to google-cloud-memcache/src/main/java/com/google/cloud/memcache/v1/CloudMemcacheClient.java index f4a0eb87..5738f74e 100644 --- a/owl-bot-staging/v1/google-cloud-memcache/src/main/java/com/google/cloud/memcache/v1/CloudMemcacheClient.java +++ b/google-cloud-memcache/src/main/java/com/google/cloud/memcache/v1/CloudMemcacheClient.java @@ -48,17 +48,17 @@ * Memcached below) 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 Memcached instances, named: `/instances/*` - *
  • As such, Memcached 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 Memcached instances, named: `/instances/*` + *
  • As such, Memcached instances are resources of the form: * `/projects/{project_id}/locations/{location_id}/instances/{instance_id}` *
* *

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

    - *
  • `projects/my-memcached-project/locations/us-central1/instances/my-memcached` + *
  • `projects/my-memcached-project/locations/us-central1/instances/my-memcached` *
* *

This class provides the ability to make remote calls to the backing service through method @@ -80,13 +80,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. *
* @@ -491,11 +491,11 @@ public final UnaryCallable getInstanceCallable() { * @param instanceId Required. The logical name of the Memcached instance in the user 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 user 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 user project / location *
*

If any of the above are not met, will raise an invalid argument error. * @throws com.google.api.gax.rpc.ApiException if the remote call fails @@ -535,11 +535,11 @@ public final OperationFuture createInstanceAsync( * @param instanceId Required. The logical name of the Memcached instance in the user 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 user 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 user project / location *
*

If any of the above are not met, will raise an invalid argument error. * @throws com.google.api.gax.rpc.ApiException if the remote call fails @@ -1229,7 +1229,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( @@ -1279,7 +1282,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-memcache/src/main/java/com/google/cloud/memcache/v1/CloudMemcacheSettings.java b/google-cloud-memcache/src/main/java/com/google/cloud/memcache/v1/CloudMemcacheSettings.java similarity index 97% rename from owl-bot-staging/v1/google-cloud-memcache/src/main/java/com/google/cloud/memcache/v1/CloudMemcacheSettings.java rename to google-cloud-memcache/src/main/java/com/google/cloud/memcache/v1/CloudMemcacheSettings.java index 383dfa53..528ec1c1 100644 --- a/owl-bot-staging/v1/google-cloud-memcache/src/main/java/com/google/cloud/memcache/v1/CloudMemcacheSettings.java +++ b/google-cloud-memcache/src/main/java/com/google/cloud/memcache/v1/CloudMemcacheSettings.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.memcache.v1.stub.CloudMemcacheStubSettings; @@ -46,9 +45,9 @@ *

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

    - *
  • The default service address (memcache.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 (memcache.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-memcache/src/main/java/com/google/cloud/memcache/v1/gapic_metadata.json b/google-cloud-memcache/src/main/java/com/google/cloud/memcache/v1/gapic_metadata.json similarity index 100% rename from owl-bot-staging/v1/google-cloud-memcache/src/main/java/com/google/cloud/memcache/v1/gapic_metadata.json rename to google-cloud-memcache/src/main/java/com/google/cloud/memcache/v1/gapic_metadata.json diff --git a/owl-bot-staging/v1/google-cloud-memcache/src/main/java/com/google/cloud/memcache/v1/package-info.java b/google-cloud-memcache/src/main/java/com/google/cloud/memcache/v1/package-info.java similarity index 81% rename from owl-bot-staging/v1/google-cloud-memcache/src/main/java/com/google/cloud/memcache/v1/package-info.java rename to google-cloud-memcache/src/main/java/com/google/cloud/memcache/v1/package-info.java index 28c44216..6b4ab8e5 100644 --- a/owl-bot-staging/v1/google-cloud-memcache/src/main/java/com/google/cloud/memcache/v1/package-info.java +++ b/google-cloud-memcache/src/main/java/com/google/cloud/memcache/v1/package-info.java @@ -26,17 +26,17 @@ * Memcached below) 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 Memcached instances, named: `/instances/*` - *
  • As such, Memcached 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 Memcached instances, named: `/instances/*` + *
  • As such, Memcached instances are resources of the form: * `/projects/{project_id}/locations/{location_id}/instances/{instance_id}` *
* *

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

    - *
  • `projects/my-memcached-project/locations/us-central1/instances/my-memcached` + *
  • `projects/my-memcached-project/locations/us-central1/instances/my-memcached` *
* *

Sample for CloudMemcacheClient: diff --git a/owl-bot-staging/v1/google-cloud-memcache/src/main/java/com/google/cloud/memcache/v1/stub/CloudMemcacheStub.java b/google-cloud-memcache/src/main/java/com/google/cloud/memcache/v1/stub/CloudMemcacheStub.java similarity index 100% rename from owl-bot-staging/v1/google-cloud-memcache/src/main/java/com/google/cloud/memcache/v1/stub/CloudMemcacheStub.java rename to google-cloud-memcache/src/main/java/com/google/cloud/memcache/v1/stub/CloudMemcacheStub.java diff --git a/owl-bot-staging/v1/google-cloud-memcache/src/main/java/com/google/cloud/memcache/v1/stub/CloudMemcacheStubSettings.java b/google-cloud-memcache/src/main/java/com/google/cloud/memcache/v1/stub/CloudMemcacheStubSettings.java similarity index 99% rename from owl-bot-staging/v1/google-cloud-memcache/src/main/java/com/google/cloud/memcache/v1/stub/CloudMemcacheStubSettings.java rename to google-cloud-memcache/src/main/java/com/google/cloud/memcache/v1/stub/CloudMemcacheStubSettings.java index 684ea627..b9fbff87 100644 --- a/owl-bot-staging/v1/google-cloud-memcache/src/main/java/com/google/cloud/memcache/v1/stub/CloudMemcacheStubSettings.java +++ b/google-cloud-memcache/src/main/java/com/google/cloud/memcache/v1/stub/CloudMemcacheStubSettings.java @@ -75,9 +75,9 @@ *

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

    - *
  • The default service address (memcache.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 (memcache.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-memcache/src/main/java/com/google/cloud/memcache/v1/stub/GrpcCloudMemcacheCallableFactory.java b/google-cloud-memcache/src/main/java/com/google/cloud/memcache/v1/stub/GrpcCloudMemcacheCallableFactory.java similarity index 100% rename from owl-bot-staging/v1/google-cloud-memcache/src/main/java/com/google/cloud/memcache/v1/stub/GrpcCloudMemcacheCallableFactory.java rename to google-cloud-memcache/src/main/java/com/google/cloud/memcache/v1/stub/GrpcCloudMemcacheCallableFactory.java diff --git a/owl-bot-staging/v1/google-cloud-memcache/src/main/java/com/google/cloud/memcache/v1/stub/GrpcCloudMemcacheStub.java b/google-cloud-memcache/src/main/java/com/google/cloud/memcache/v1/stub/GrpcCloudMemcacheStub.java similarity index 99% rename from owl-bot-staging/v1/google-cloud-memcache/src/main/java/com/google/cloud/memcache/v1/stub/GrpcCloudMemcacheStub.java rename to google-cloud-memcache/src/main/java/com/google/cloud/memcache/v1/stub/GrpcCloudMemcacheStub.java index 104006f2..ad20db98 100644 --- a/owl-bot-staging/v1/google-cloud-memcache/src/main/java/com/google/cloud/memcache/v1/stub/GrpcCloudMemcacheStub.java +++ b/google-cloud-memcache/src/main/java/com/google/cloud/memcache/v1/stub/GrpcCloudMemcacheStub.java @@ -42,7 +42,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-memcache/src/main/java/com/google/cloud/memcache/v1/stub/HttpJsonCloudMemcacheCallableFactory.java b/google-cloud-memcache/src/main/java/com/google/cloud/memcache/v1/stub/HttpJsonCloudMemcacheCallableFactory.java similarity index 100% rename from owl-bot-staging/v1/google-cloud-memcache/src/main/java/com/google/cloud/memcache/v1/stub/HttpJsonCloudMemcacheCallableFactory.java rename to google-cloud-memcache/src/main/java/com/google/cloud/memcache/v1/stub/HttpJsonCloudMemcacheCallableFactory.java diff --git a/owl-bot-staging/v1/google-cloud-memcache/src/main/java/com/google/cloud/memcache/v1/stub/HttpJsonCloudMemcacheStub.java b/google-cloud-memcache/src/main/java/com/google/cloud/memcache/v1/stub/HttpJsonCloudMemcacheStub.java similarity index 99% rename from owl-bot-staging/v1/google-cloud-memcache/src/main/java/com/google/cloud/memcache/v1/stub/HttpJsonCloudMemcacheStub.java rename to google-cloud-memcache/src/main/java/com/google/cloud/memcache/v1/stub/HttpJsonCloudMemcacheStub.java index 3faf1526..08ebd97e 100644 --- a/owl-bot-staging/v1/google-cloud-memcache/src/main/java/com/google/cloud/memcache/v1/stub/HttpJsonCloudMemcacheStub.java +++ b/google-cloud-memcache/src/main/java/com/google/cloud/memcache/v1/stub/HttpJsonCloudMemcacheStub.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/v1beta2/google-cloud-memcache/src/main/java/com/google/cloud/memcache/v1beta2/CloudMemcacheClient.java b/google-cloud-memcache/src/main/java/com/google/cloud/memcache/v1beta2/CloudMemcacheClient.java similarity index 97% rename from owl-bot-staging/v1beta2/google-cloud-memcache/src/main/java/com/google/cloud/memcache/v1beta2/CloudMemcacheClient.java rename to google-cloud-memcache/src/main/java/com/google/cloud/memcache/v1beta2/CloudMemcacheClient.java index 71fd7427..0e8b39fa 100644 --- a/owl-bot-staging/v1beta2/google-cloud-memcache/src/main/java/com/google/cloud/memcache/v1beta2/CloudMemcacheClient.java +++ b/google-cloud-memcache/src/main/java/com/google/cloud/memcache/v1beta2/CloudMemcacheClient.java @@ -48,17 +48,17 @@ * Memcached below) 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 Memcached instances, named: `/instances/*` - *
  • As such, Memcached 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 Memcached instances, named: `/instances/*` + *
  • As such, Memcached instances are resources of the form: * `/projects/{project_id}/locations/{location_id}/instances/{instance_id}` *
* *

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

    - *
  • `projects/my-memcached-project/locations/us-central1/instances/my-memcached` + *
  • `projects/my-memcached-project/locations/us-central1/instances/my-memcached` *
* *

This class provides the ability to make remote calls to the backing service through method @@ -80,13 +80,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. *
* @@ -491,11 +491,11 @@ public final UnaryCallable getInstanceCallable() { * @param instanceId Required. The logical name of the Memcached instance in the user 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 user 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 user project / location. *
*

If any of the above are not met, the API raises an invalid argument error. * @param resource Required. A Memcached [Instance] resource @@ -535,11 +535,11 @@ public final OperationFuture createInstanceAsync( * @param instanceId Required. The logical name of the Memcached instance in the user 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 user 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 user project / location. *
*

If any of the above are not met, the API raises an invalid argument error. * @param resource Required. A Memcached [Instance] resource @@ -1389,7 +1389,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( @@ -1439,7 +1442,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/v1beta2/google-cloud-memcache/src/main/java/com/google/cloud/memcache/v1beta2/CloudMemcacheSettings.java b/google-cloud-memcache/src/main/java/com/google/cloud/memcache/v1beta2/CloudMemcacheSettings.java similarity index 97% rename from owl-bot-staging/v1beta2/google-cloud-memcache/src/main/java/com/google/cloud/memcache/v1beta2/CloudMemcacheSettings.java rename to google-cloud-memcache/src/main/java/com/google/cloud/memcache/v1beta2/CloudMemcacheSettings.java index c76826d3..51da4ed8 100644 --- a/owl-bot-staging/v1beta2/google-cloud-memcache/src/main/java/com/google/cloud/memcache/v1beta2/CloudMemcacheSettings.java +++ b/google-cloud-memcache/src/main/java/com/google/cloud/memcache/v1beta2/CloudMemcacheSettings.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.memcache.v1beta2.stub.CloudMemcacheStubSettings; @@ -46,9 +45,9 @@ *

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

    - *
  • The default service address (memcache.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 (memcache.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/v1beta2/google-cloud-memcache/src/main/java/com/google/cloud/memcache/v1beta2/gapic_metadata.json b/google-cloud-memcache/src/main/java/com/google/cloud/memcache/v1beta2/gapic_metadata.json similarity index 100% rename from owl-bot-staging/v1beta2/google-cloud-memcache/src/main/java/com/google/cloud/memcache/v1beta2/gapic_metadata.json rename to google-cloud-memcache/src/main/java/com/google/cloud/memcache/v1beta2/gapic_metadata.json diff --git a/owl-bot-staging/v1beta2/google-cloud-memcache/src/main/java/com/google/cloud/memcache/v1beta2/package-info.java b/google-cloud-memcache/src/main/java/com/google/cloud/memcache/v1beta2/package-info.java similarity index 81% rename from owl-bot-staging/v1beta2/google-cloud-memcache/src/main/java/com/google/cloud/memcache/v1beta2/package-info.java rename to google-cloud-memcache/src/main/java/com/google/cloud/memcache/v1beta2/package-info.java index 886fa704..96cda576 100644 --- a/owl-bot-staging/v1beta2/google-cloud-memcache/src/main/java/com/google/cloud/memcache/v1beta2/package-info.java +++ b/google-cloud-memcache/src/main/java/com/google/cloud/memcache/v1beta2/package-info.java @@ -26,17 +26,17 @@ * Memcached below) 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 Memcached instances, named: `/instances/*` - *
  • As such, Memcached 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 Memcached instances, named: `/instances/*` + *
  • As such, Memcached instances are resources of the form: * `/projects/{project_id}/locations/{location_id}/instances/{instance_id}` *
* *

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

    - *
  • `projects/my-memcached-project/locations/us-central1/instances/my-memcached` + *
  • `projects/my-memcached-project/locations/us-central1/instances/my-memcached` *
* *

Sample for CloudMemcacheClient: diff --git a/owl-bot-staging/v1beta2/google-cloud-memcache/src/main/java/com/google/cloud/memcache/v1beta2/stub/CloudMemcacheStub.java b/google-cloud-memcache/src/main/java/com/google/cloud/memcache/v1beta2/stub/CloudMemcacheStub.java similarity index 100% rename from owl-bot-staging/v1beta2/google-cloud-memcache/src/main/java/com/google/cloud/memcache/v1beta2/stub/CloudMemcacheStub.java rename to google-cloud-memcache/src/main/java/com/google/cloud/memcache/v1beta2/stub/CloudMemcacheStub.java diff --git a/owl-bot-staging/v1beta2/google-cloud-memcache/src/main/java/com/google/cloud/memcache/v1beta2/stub/CloudMemcacheStubSettings.java b/google-cloud-memcache/src/main/java/com/google/cloud/memcache/v1beta2/stub/CloudMemcacheStubSettings.java similarity index 99% rename from owl-bot-staging/v1beta2/google-cloud-memcache/src/main/java/com/google/cloud/memcache/v1beta2/stub/CloudMemcacheStubSettings.java rename to google-cloud-memcache/src/main/java/com/google/cloud/memcache/v1beta2/stub/CloudMemcacheStubSettings.java index d9b2ac0a..90fb09a6 100644 --- a/owl-bot-staging/v1beta2/google-cloud-memcache/src/main/java/com/google/cloud/memcache/v1beta2/stub/CloudMemcacheStubSettings.java +++ b/google-cloud-memcache/src/main/java/com/google/cloud/memcache/v1beta2/stub/CloudMemcacheStubSettings.java @@ -76,9 +76,9 @@ *

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

    - *
  • The default service address (memcache.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 (memcache.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/v1beta2/google-cloud-memcache/src/main/java/com/google/cloud/memcache/v1beta2/stub/GrpcCloudMemcacheCallableFactory.java b/google-cloud-memcache/src/main/java/com/google/cloud/memcache/v1beta2/stub/GrpcCloudMemcacheCallableFactory.java similarity index 100% rename from owl-bot-staging/v1beta2/google-cloud-memcache/src/main/java/com/google/cloud/memcache/v1beta2/stub/GrpcCloudMemcacheCallableFactory.java rename to google-cloud-memcache/src/main/java/com/google/cloud/memcache/v1beta2/stub/GrpcCloudMemcacheCallableFactory.java diff --git a/owl-bot-staging/v1beta2/google-cloud-memcache/src/main/java/com/google/cloud/memcache/v1beta2/stub/GrpcCloudMemcacheStub.java b/google-cloud-memcache/src/main/java/com/google/cloud/memcache/v1beta2/stub/GrpcCloudMemcacheStub.java similarity index 99% rename from owl-bot-staging/v1beta2/google-cloud-memcache/src/main/java/com/google/cloud/memcache/v1beta2/stub/GrpcCloudMemcacheStub.java rename to google-cloud-memcache/src/main/java/com/google/cloud/memcache/v1beta2/stub/GrpcCloudMemcacheStub.java index 37275a64..65e359bb 100644 --- a/owl-bot-staging/v1beta2/google-cloud-memcache/src/main/java/com/google/cloud/memcache/v1beta2/stub/GrpcCloudMemcacheStub.java +++ b/google-cloud-memcache/src/main/java/com/google/cloud/memcache/v1beta2/stub/GrpcCloudMemcacheStub.java @@ -44,7 +44,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/v1beta2/google-cloud-memcache/src/main/java/com/google/cloud/memcache/v1beta2/stub/HttpJsonCloudMemcacheCallableFactory.java b/google-cloud-memcache/src/main/java/com/google/cloud/memcache/v1beta2/stub/HttpJsonCloudMemcacheCallableFactory.java similarity index 100% rename from owl-bot-staging/v1beta2/google-cloud-memcache/src/main/java/com/google/cloud/memcache/v1beta2/stub/HttpJsonCloudMemcacheCallableFactory.java rename to google-cloud-memcache/src/main/java/com/google/cloud/memcache/v1beta2/stub/HttpJsonCloudMemcacheCallableFactory.java diff --git a/owl-bot-staging/v1beta2/google-cloud-memcache/src/main/java/com/google/cloud/memcache/v1beta2/stub/HttpJsonCloudMemcacheStub.java b/google-cloud-memcache/src/main/java/com/google/cloud/memcache/v1beta2/stub/HttpJsonCloudMemcacheStub.java similarity index 99% rename from owl-bot-staging/v1beta2/google-cloud-memcache/src/main/java/com/google/cloud/memcache/v1beta2/stub/HttpJsonCloudMemcacheStub.java rename to google-cloud-memcache/src/main/java/com/google/cloud/memcache/v1beta2/stub/HttpJsonCloudMemcacheStub.java index c5319b7f..f034b57b 100644 --- a/owl-bot-staging/v1beta2/google-cloud-memcache/src/main/java/com/google/cloud/memcache/v1beta2/stub/HttpJsonCloudMemcacheStub.java +++ b/google-cloud-memcache/src/main/java/com/google/cloud/memcache/v1beta2/stub/HttpJsonCloudMemcacheStub.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-memcache/src/test/java/com/google/cloud/memcache/v1/CloudMemcacheClientHttpJsonTest.java b/google-cloud-memcache/src/test/java/com/google/cloud/memcache/v1/CloudMemcacheClientHttpJsonTest.java similarity index 100% rename from owl-bot-staging/v1/google-cloud-memcache/src/test/java/com/google/cloud/memcache/v1/CloudMemcacheClientHttpJsonTest.java rename to google-cloud-memcache/src/test/java/com/google/cloud/memcache/v1/CloudMemcacheClientHttpJsonTest.java diff --git a/owl-bot-staging/v1/google-cloud-memcache/src/test/java/com/google/cloud/memcache/v1/CloudMemcacheClientTest.java b/google-cloud-memcache/src/test/java/com/google/cloud/memcache/v1/CloudMemcacheClientTest.java similarity index 100% rename from owl-bot-staging/v1/google-cloud-memcache/src/test/java/com/google/cloud/memcache/v1/CloudMemcacheClientTest.java rename to google-cloud-memcache/src/test/java/com/google/cloud/memcache/v1/CloudMemcacheClientTest.java diff --git a/owl-bot-staging/v1/google-cloud-memcache/src/test/java/com/google/cloud/memcache/v1/MockCloudMemcache.java b/google-cloud-memcache/src/test/java/com/google/cloud/memcache/v1/MockCloudMemcache.java similarity index 100% rename from owl-bot-staging/v1/google-cloud-memcache/src/test/java/com/google/cloud/memcache/v1/MockCloudMemcache.java rename to google-cloud-memcache/src/test/java/com/google/cloud/memcache/v1/MockCloudMemcache.java diff --git a/owl-bot-staging/v1/google-cloud-memcache/src/test/java/com/google/cloud/memcache/v1/MockCloudMemcacheImpl.java b/google-cloud-memcache/src/test/java/com/google/cloud/memcache/v1/MockCloudMemcacheImpl.java similarity index 100% rename from owl-bot-staging/v1/google-cloud-memcache/src/test/java/com/google/cloud/memcache/v1/MockCloudMemcacheImpl.java rename to google-cloud-memcache/src/test/java/com/google/cloud/memcache/v1/MockCloudMemcacheImpl.java diff --git a/owl-bot-staging/v1beta2/google-cloud-memcache/src/test/java/com/google/cloud/memcache/v1beta2/CloudMemcacheClientHttpJsonTest.java b/google-cloud-memcache/src/test/java/com/google/cloud/memcache/v1beta2/CloudMemcacheClientHttpJsonTest.java similarity index 100% rename from owl-bot-staging/v1beta2/google-cloud-memcache/src/test/java/com/google/cloud/memcache/v1beta2/CloudMemcacheClientHttpJsonTest.java rename to google-cloud-memcache/src/test/java/com/google/cloud/memcache/v1beta2/CloudMemcacheClientHttpJsonTest.java diff --git a/owl-bot-staging/v1beta2/google-cloud-memcache/src/test/java/com/google/cloud/memcache/v1beta2/CloudMemcacheClientTest.java b/google-cloud-memcache/src/test/java/com/google/cloud/memcache/v1beta2/CloudMemcacheClientTest.java similarity index 100% rename from owl-bot-staging/v1beta2/google-cloud-memcache/src/test/java/com/google/cloud/memcache/v1beta2/CloudMemcacheClientTest.java rename to google-cloud-memcache/src/test/java/com/google/cloud/memcache/v1beta2/CloudMemcacheClientTest.java diff --git a/owl-bot-staging/v1beta2/google-cloud-memcache/src/test/java/com/google/cloud/memcache/v1beta2/MockCloudMemcache.java b/google-cloud-memcache/src/test/java/com/google/cloud/memcache/v1beta2/MockCloudMemcache.java similarity index 100% rename from owl-bot-staging/v1beta2/google-cloud-memcache/src/test/java/com/google/cloud/memcache/v1beta2/MockCloudMemcache.java rename to google-cloud-memcache/src/test/java/com/google/cloud/memcache/v1beta2/MockCloudMemcache.java diff --git a/owl-bot-staging/v1beta2/google-cloud-memcache/src/test/java/com/google/cloud/memcache/v1beta2/MockCloudMemcacheImpl.java b/google-cloud-memcache/src/test/java/com/google/cloud/memcache/v1beta2/MockCloudMemcacheImpl.java similarity index 100% rename from owl-bot-staging/v1beta2/google-cloud-memcache/src/test/java/com/google/cloud/memcache/v1beta2/MockCloudMemcacheImpl.java rename to google-cloud-memcache/src/test/java/com/google/cloud/memcache/v1beta2/MockCloudMemcacheImpl.java diff --git a/grpc-google-cloud-memcache-v1/src/main/java/com/google/cloud/memcache/v1/CloudMemcacheGrpc.java b/grpc-google-cloud-memcache-v1/src/main/java/com/google/cloud/memcache/v1/CloudMemcacheGrpc.java new file mode 100644 index 00000000..47c03cc1 --- /dev/null +++ b/grpc-google-cloud-memcache-v1/src/main/java/com/google/cloud/memcache/v1/CloudMemcacheGrpc.java @@ -0,0 +1,1101 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.memcache.v1; + +import static io.grpc.MethodDescriptor.generateFullMethodName; + +/** + * + * + *

+ * Configures and manages Cloud Memorystore for Memcached instances.
+ * The `memcache.googleapis.com` service implements the Google Cloud Memorystore
+ * for Memcached API and defines the following resource model for managing
+ * Memorystore Memcached (also called Memcached below) 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 Memcached instances, named:
+ * `/instances/*`
+ * * As such, Memcached instances are resources of the form:
+ *   `/projects/{project_id}/locations/{location_id}/instances/{instance_id}`
+ * Note that location_id must be a GCP `region`; for example:
+ * * `projects/my-memcached-project/locations/us-central1/instances/my-memcached`
+ * 
+ */ +@javax.annotation.Generated( + value = "by gRPC proto compiler", + comments = "Source: google/cloud/memcache/v1/cloud_memcache.proto") +@io.grpc.stub.annotations.GrpcGenerated +public final class CloudMemcacheGrpc { + + private CloudMemcacheGrpc() {} + + public static final String SERVICE_NAME = "google.cloud.memcache.v1.CloudMemcache"; + + // Static method descriptors that strictly reflect the proto. + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.memcache.v1.ListInstancesRequest, + com.google.cloud.memcache.v1.ListInstancesResponse> + getListInstancesMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "ListInstances", + requestType = com.google.cloud.memcache.v1.ListInstancesRequest.class, + responseType = com.google.cloud.memcache.v1.ListInstancesResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.memcache.v1.ListInstancesRequest, + com.google.cloud.memcache.v1.ListInstancesResponse> + getListInstancesMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.memcache.v1.ListInstancesRequest, + com.google.cloud.memcache.v1.ListInstancesResponse> + getListInstancesMethod; + if ((getListInstancesMethod = CloudMemcacheGrpc.getListInstancesMethod) == null) { + synchronized (CloudMemcacheGrpc.class) { + if ((getListInstancesMethod = CloudMemcacheGrpc.getListInstancesMethod) == null) { + CloudMemcacheGrpc.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.memcache.v1.ListInstancesRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.memcache.v1.ListInstancesResponse + .getDefaultInstance())) + .setSchemaDescriptor( + new CloudMemcacheMethodDescriptorSupplier("ListInstances")) + .build(); + } + } + } + return getListInstancesMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.memcache.v1.GetInstanceRequest, com.google.cloud.memcache.v1.Instance> + getGetInstanceMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "GetInstance", + requestType = com.google.cloud.memcache.v1.GetInstanceRequest.class, + responseType = com.google.cloud.memcache.v1.Instance.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.memcache.v1.GetInstanceRequest, com.google.cloud.memcache.v1.Instance> + getGetInstanceMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.memcache.v1.GetInstanceRequest, com.google.cloud.memcache.v1.Instance> + getGetInstanceMethod; + if ((getGetInstanceMethod = CloudMemcacheGrpc.getGetInstanceMethod) == null) { + synchronized (CloudMemcacheGrpc.class) { + if ((getGetInstanceMethod = CloudMemcacheGrpc.getGetInstanceMethod) == null) { + CloudMemcacheGrpc.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.memcache.v1.GetInstanceRequest.getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.memcache.v1.Instance.getDefaultInstance())) + .setSchemaDescriptor(new CloudMemcacheMethodDescriptorSupplier("GetInstance")) + .build(); + } + } + } + return getGetInstanceMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.memcache.v1.CreateInstanceRequest, com.google.longrunning.Operation> + getCreateInstanceMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "CreateInstance", + requestType = com.google.cloud.memcache.v1.CreateInstanceRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.memcache.v1.CreateInstanceRequest, com.google.longrunning.Operation> + getCreateInstanceMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.memcache.v1.CreateInstanceRequest, com.google.longrunning.Operation> + getCreateInstanceMethod; + if ((getCreateInstanceMethod = CloudMemcacheGrpc.getCreateInstanceMethod) == null) { + synchronized (CloudMemcacheGrpc.class) { + if ((getCreateInstanceMethod = CloudMemcacheGrpc.getCreateInstanceMethod) == null) { + CloudMemcacheGrpc.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.memcache.v1.CreateInstanceRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor( + new CloudMemcacheMethodDescriptorSupplier("CreateInstance")) + .build(); + } + } + } + return getCreateInstanceMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.memcache.v1.UpdateInstanceRequest, com.google.longrunning.Operation> + getUpdateInstanceMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "UpdateInstance", + requestType = com.google.cloud.memcache.v1.UpdateInstanceRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.memcache.v1.UpdateInstanceRequest, com.google.longrunning.Operation> + getUpdateInstanceMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.memcache.v1.UpdateInstanceRequest, com.google.longrunning.Operation> + getUpdateInstanceMethod; + if ((getUpdateInstanceMethod = CloudMemcacheGrpc.getUpdateInstanceMethod) == null) { + synchronized (CloudMemcacheGrpc.class) { + if ((getUpdateInstanceMethod = CloudMemcacheGrpc.getUpdateInstanceMethod) == null) { + CloudMemcacheGrpc.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.memcache.v1.UpdateInstanceRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor( + new CloudMemcacheMethodDescriptorSupplier("UpdateInstance")) + .build(); + } + } + } + return getUpdateInstanceMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.memcache.v1.UpdateParametersRequest, com.google.longrunning.Operation> + getUpdateParametersMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "UpdateParameters", + requestType = com.google.cloud.memcache.v1.UpdateParametersRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.memcache.v1.UpdateParametersRequest, com.google.longrunning.Operation> + getUpdateParametersMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.memcache.v1.UpdateParametersRequest, com.google.longrunning.Operation> + getUpdateParametersMethod; + if ((getUpdateParametersMethod = CloudMemcacheGrpc.getUpdateParametersMethod) == null) { + synchronized (CloudMemcacheGrpc.class) { + if ((getUpdateParametersMethod = CloudMemcacheGrpc.getUpdateParametersMethod) == null) { + CloudMemcacheGrpc.getUpdateParametersMethod = + getUpdateParametersMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "UpdateParameters")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.memcache.v1.UpdateParametersRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor( + new CloudMemcacheMethodDescriptorSupplier("UpdateParameters")) + .build(); + } + } + } + return getUpdateParametersMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.memcache.v1.DeleteInstanceRequest, com.google.longrunning.Operation> + getDeleteInstanceMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "DeleteInstance", + requestType = com.google.cloud.memcache.v1.DeleteInstanceRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.memcache.v1.DeleteInstanceRequest, com.google.longrunning.Operation> + getDeleteInstanceMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.memcache.v1.DeleteInstanceRequest, com.google.longrunning.Operation> + getDeleteInstanceMethod; + if ((getDeleteInstanceMethod = CloudMemcacheGrpc.getDeleteInstanceMethod) == null) { + synchronized (CloudMemcacheGrpc.class) { + if ((getDeleteInstanceMethod = CloudMemcacheGrpc.getDeleteInstanceMethod) == null) { + CloudMemcacheGrpc.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.memcache.v1.DeleteInstanceRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor( + new CloudMemcacheMethodDescriptorSupplier("DeleteInstance")) + .build(); + } + } + } + return getDeleteInstanceMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.memcache.v1.ApplyParametersRequest, com.google.longrunning.Operation> + getApplyParametersMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "ApplyParameters", + requestType = com.google.cloud.memcache.v1.ApplyParametersRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.memcache.v1.ApplyParametersRequest, com.google.longrunning.Operation> + getApplyParametersMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.memcache.v1.ApplyParametersRequest, com.google.longrunning.Operation> + getApplyParametersMethod; + if ((getApplyParametersMethod = CloudMemcacheGrpc.getApplyParametersMethod) == null) { + synchronized (CloudMemcacheGrpc.class) { + if ((getApplyParametersMethod = CloudMemcacheGrpc.getApplyParametersMethod) == null) { + CloudMemcacheGrpc.getApplyParametersMethod = + getApplyParametersMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ApplyParameters")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.memcache.v1.ApplyParametersRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor( + new CloudMemcacheMethodDescriptorSupplier("ApplyParameters")) + .build(); + } + } + } + return getApplyParametersMethod; + } + + /** Creates a new async stub that supports all call types for the service */ + public static CloudMemcacheStub newStub(io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public CloudMemcacheStub newStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new CloudMemcacheStub(channel, callOptions); + } + }; + return CloudMemcacheStub.newStub(factory, channel); + } + + /** + * Creates a new blocking-style stub that supports unary and streaming output calls on the service + */ + public static CloudMemcacheBlockingStub newBlockingStub(io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public CloudMemcacheBlockingStub newStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new CloudMemcacheBlockingStub(channel, callOptions); + } + }; + return CloudMemcacheBlockingStub.newStub(factory, channel); + } + + /** Creates a new ListenableFuture-style stub that supports unary calls on the service */ + public static CloudMemcacheFutureStub newFutureStub(io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public CloudMemcacheFutureStub newStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new CloudMemcacheFutureStub(channel, callOptions); + } + }; + return CloudMemcacheFutureStub.newStub(factory, channel); + } + + /** + * + * + *
+   * Configures and manages Cloud Memorystore for Memcached instances.
+   * The `memcache.googleapis.com` service implements the Google Cloud Memorystore
+   * for Memcached API and defines the following resource model for managing
+   * Memorystore Memcached (also called Memcached below) 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 Memcached instances, named:
+   * `/instances/*`
+   * * As such, Memcached instances are resources of the form:
+   *   `/projects/{project_id}/locations/{location_id}/instances/{instance_id}`
+   * Note that location_id must be a GCP `region`; for example:
+   * * `projects/my-memcached-project/locations/us-central1/instances/my-memcached`
+   * 
+ */ + public abstract static class CloudMemcacheImplBase implements io.grpc.BindableService { + + /** + * + * + *
+     * Lists Instances in a given location.
+     * 
+ */ + public void listInstances( + com.google.cloud.memcache.v1.ListInstancesRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getListInstancesMethod(), responseObserver); + } + + /** + * + * + *
+     * Gets details of a single Instance.
+     * 
+ */ + public void getInstance( + com.google.cloud.memcache.v1.GetInstanceRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getGetInstanceMethod(), responseObserver); + } + + /** + * + * + *
+     * Creates a new Instance in a given location.
+     * 
+ */ + public void createInstance( + com.google.cloud.memcache.v1.CreateInstanceRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getCreateInstanceMethod(), responseObserver); + } + + /** + * + * + *
+     * Updates an existing Instance in a given project and location.
+     * 
+ */ + public void updateInstance( + com.google.cloud.memcache.v1.UpdateInstanceRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getUpdateInstanceMethod(), responseObserver); + } + + /** + * + * + *
+     * Updates the defined Memcached Parameters for an existing Instance.
+     * This method only stages the parameters, it must be followed by
+     * ApplyParameters to apply the parameters to nodes of the Memcached Instance.
+     * 
+ */ + public void updateParameters( + com.google.cloud.memcache.v1.UpdateParametersRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getUpdateParametersMethod(), responseObserver); + } + + /** + * + * + *
+     * Deletes a single Instance.
+     * 
+ */ + public void deleteInstance( + com.google.cloud.memcache.v1.DeleteInstanceRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getDeleteInstanceMethod(), responseObserver); + } + + /** + * + * + *
+     * ApplyParameters will restart the set of specified nodes in order to update
+     * them to the current set of parameters for the Memcached Instance.
+     * 
+ */ + public void applyParameters( + com.google.cloud.memcache.v1.ApplyParametersRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getApplyParametersMethod(), responseObserver); + } + + @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.memcache.v1.ListInstancesRequest, + com.google.cloud.memcache.v1.ListInstancesResponse>( + this, METHODID_LIST_INSTANCES))) + .addMethod( + getGetInstanceMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.memcache.v1.GetInstanceRequest, + com.google.cloud.memcache.v1.Instance>(this, METHODID_GET_INSTANCE))) + .addMethod( + getCreateInstanceMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.memcache.v1.CreateInstanceRequest, + com.google.longrunning.Operation>(this, METHODID_CREATE_INSTANCE))) + .addMethod( + getUpdateInstanceMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.memcache.v1.UpdateInstanceRequest, + com.google.longrunning.Operation>(this, METHODID_UPDATE_INSTANCE))) + .addMethod( + getUpdateParametersMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.memcache.v1.UpdateParametersRequest, + com.google.longrunning.Operation>(this, METHODID_UPDATE_PARAMETERS))) + .addMethod( + getDeleteInstanceMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.memcache.v1.DeleteInstanceRequest, + com.google.longrunning.Operation>(this, METHODID_DELETE_INSTANCE))) + .addMethod( + getApplyParametersMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.memcache.v1.ApplyParametersRequest, + com.google.longrunning.Operation>(this, METHODID_APPLY_PARAMETERS))) + .build(); + } + } + + /** + * + * + *
+   * Configures and manages Cloud Memorystore for Memcached instances.
+   * The `memcache.googleapis.com` service implements the Google Cloud Memorystore
+   * for Memcached API and defines the following resource model for managing
+   * Memorystore Memcached (also called Memcached below) 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 Memcached instances, named:
+   * `/instances/*`
+   * * As such, Memcached instances are resources of the form:
+   *   `/projects/{project_id}/locations/{location_id}/instances/{instance_id}`
+   * Note that location_id must be a GCP `region`; for example:
+   * * `projects/my-memcached-project/locations/us-central1/instances/my-memcached`
+   * 
+ */ + public static final class CloudMemcacheStub + extends io.grpc.stub.AbstractAsyncStub { + private CloudMemcacheStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected CloudMemcacheStub build(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new CloudMemcacheStub(channel, callOptions); + } + + /** + * + * + *
+     * Lists Instances in a given location.
+     * 
+ */ + public void listInstances( + com.google.cloud.memcache.v1.ListInstancesRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getListInstancesMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Gets details of a single Instance.
+     * 
+ */ + public void getInstance( + com.google.cloud.memcache.v1.GetInstanceRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getGetInstanceMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Creates a new Instance in a given location.
+     * 
+ */ + public void createInstance( + com.google.cloud.memcache.v1.CreateInstanceRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getCreateInstanceMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Updates an existing Instance in a given project and location.
+     * 
+ */ + public void updateInstance( + com.google.cloud.memcache.v1.UpdateInstanceRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getUpdateInstanceMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Updates the defined Memcached Parameters for an existing Instance.
+     * This method only stages the parameters, it must be followed by
+     * ApplyParameters to apply the parameters to nodes of the Memcached Instance.
+     * 
+ */ + public void updateParameters( + com.google.cloud.memcache.v1.UpdateParametersRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getUpdateParametersMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Deletes a single Instance.
+     * 
+ */ + public void deleteInstance( + com.google.cloud.memcache.v1.DeleteInstanceRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getDeleteInstanceMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * ApplyParameters will restart the set of specified nodes in order to update
+     * them to the current set of parameters for the Memcached Instance.
+     * 
+ */ + public void applyParameters( + com.google.cloud.memcache.v1.ApplyParametersRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getApplyParametersMethod(), getCallOptions()), + request, + responseObserver); + } + } + + /** + * + * + *
+   * Configures and manages Cloud Memorystore for Memcached instances.
+   * The `memcache.googleapis.com` service implements the Google Cloud Memorystore
+   * for Memcached API and defines the following resource model for managing
+   * Memorystore Memcached (also called Memcached below) 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 Memcached instances, named:
+   * `/instances/*`
+   * * As such, Memcached instances are resources of the form:
+   *   `/projects/{project_id}/locations/{location_id}/instances/{instance_id}`
+   * Note that location_id must be a GCP `region`; for example:
+   * * `projects/my-memcached-project/locations/us-central1/instances/my-memcached`
+   * 
+ */ + public static final class CloudMemcacheBlockingStub + extends io.grpc.stub.AbstractBlockingStub { + private CloudMemcacheBlockingStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected CloudMemcacheBlockingStub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new CloudMemcacheBlockingStub(channel, callOptions); + } + + /** + * + * + *
+     * Lists Instances in a given location.
+     * 
+ */ + public com.google.cloud.memcache.v1.ListInstancesResponse listInstances( + com.google.cloud.memcache.v1.ListInstancesRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getListInstancesMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Gets details of a single Instance.
+     * 
+ */ + public com.google.cloud.memcache.v1.Instance getInstance( + com.google.cloud.memcache.v1.GetInstanceRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getGetInstanceMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Creates a new Instance in a given location.
+     * 
+ */ + public com.google.longrunning.Operation createInstance( + com.google.cloud.memcache.v1.CreateInstanceRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getCreateInstanceMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Updates an existing Instance in a given project and location.
+     * 
+ */ + public com.google.longrunning.Operation updateInstance( + com.google.cloud.memcache.v1.UpdateInstanceRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getUpdateInstanceMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Updates the defined Memcached Parameters for an existing Instance.
+     * This method only stages the parameters, it must be followed by
+     * ApplyParameters to apply the parameters to nodes of the Memcached Instance.
+     * 
+ */ + public com.google.longrunning.Operation updateParameters( + com.google.cloud.memcache.v1.UpdateParametersRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getUpdateParametersMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Deletes a single Instance.
+     * 
+ */ + public com.google.longrunning.Operation deleteInstance( + com.google.cloud.memcache.v1.DeleteInstanceRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getDeleteInstanceMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * ApplyParameters will restart the set of specified nodes in order to update
+     * them to the current set of parameters for the Memcached Instance.
+     * 
+ */ + public com.google.longrunning.Operation applyParameters( + com.google.cloud.memcache.v1.ApplyParametersRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getApplyParametersMethod(), getCallOptions(), request); + } + } + + /** + * + * + *
+   * Configures and manages Cloud Memorystore for Memcached instances.
+   * The `memcache.googleapis.com` service implements the Google Cloud Memorystore
+   * for Memcached API and defines the following resource model for managing
+   * Memorystore Memcached (also called Memcached below) 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 Memcached instances, named:
+   * `/instances/*`
+   * * As such, Memcached instances are resources of the form:
+   *   `/projects/{project_id}/locations/{location_id}/instances/{instance_id}`
+   * Note that location_id must be a GCP `region`; for example:
+   * * `projects/my-memcached-project/locations/us-central1/instances/my-memcached`
+   * 
+ */ + public static final class CloudMemcacheFutureStub + extends io.grpc.stub.AbstractFutureStub { + private CloudMemcacheFutureStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected CloudMemcacheFutureStub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new CloudMemcacheFutureStub(channel, callOptions); + } + + /** + * + * + *
+     * Lists Instances in a given location.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.memcache.v1.ListInstancesResponse> + listInstances(com.google.cloud.memcache.v1.ListInstancesRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getListInstancesMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Gets details of a single Instance.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture + getInstance(com.google.cloud.memcache.v1.GetInstanceRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getGetInstanceMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Creates a new Instance in a given location.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture + createInstance(com.google.cloud.memcache.v1.CreateInstanceRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getCreateInstanceMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Updates an existing Instance in a given project and location.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture + updateInstance(com.google.cloud.memcache.v1.UpdateInstanceRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getUpdateInstanceMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Updates the defined Memcached Parameters for an existing Instance.
+     * This method only stages the parameters, it must be followed by
+     * ApplyParameters to apply the parameters to nodes of the Memcached Instance.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture + updateParameters(com.google.cloud.memcache.v1.UpdateParametersRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getUpdateParametersMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Deletes a single Instance.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture + deleteInstance(com.google.cloud.memcache.v1.DeleteInstanceRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getDeleteInstanceMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * ApplyParameters will restart the set of specified nodes in order to update
+     * them to the current set of parameters for the Memcached Instance.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture + applyParameters(com.google.cloud.memcache.v1.ApplyParametersRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getApplyParametersMethod(), getCallOptions()), request); + } + } + + private static final int METHODID_LIST_INSTANCES = 0; + private static final int METHODID_GET_INSTANCE = 1; + private static final int METHODID_CREATE_INSTANCE = 2; + private static final int METHODID_UPDATE_INSTANCE = 3; + private static final int METHODID_UPDATE_PARAMETERS = 4; + private static final int METHODID_DELETE_INSTANCE = 5; + private static final int METHODID_APPLY_PARAMETERS = 6; + + 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 CloudMemcacheImplBase serviceImpl; + private final int methodId; + + MethodHandlers(CloudMemcacheImplBase serviceImpl, int methodId) { + this.serviceImpl = serviceImpl; + this.methodId = methodId; + } + + @java.lang.Override + @java.lang.SuppressWarnings("unchecked") + public void invoke(Req request, io.grpc.stub.StreamObserver responseObserver) { + switch (methodId) { + case METHODID_LIST_INSTANCES: + serviceImpl.listInstances( + (com.google.cloud.memcache.v1.ListInstancesRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); + break; + case METHODID_GET_INSTANCE: + serviceImpl.getInstance( + (com.google.cloud.memcache.v1.GetInstanceRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); + break; + case METHODID_CREATE_INSTANCE: + serviceImpl.createInstance( + (com.google.cloud.memcache.v1.CreateInstanceRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_UPDATE_INSTANCE: + serviceImpl.updateInstance( + (com.google.cloud.memcache.v1.UpdateInstanceRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_UPDATE_PARAMETERS: + serviceImpl.updateParameters( + (com.google.cloud.memcache.v1.UpdateParametersRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_DELETE_INSTANCE: + serviceImpl.deleteInstance( + (com.google.cloud.memcache.v1.DeleteInstanceRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_APPLY_PARAMETERS: + serviceImpl.applyParameters( + (com.google.cloud.memcache.v1.ApplyParametersRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + default: + throw new AssertionError(); + } + } + + @java.lang.Override + @java.lang.SuppressWarnings("unchecked") + public io.grpc.stub.StreamObserver invoke( + io.grpc.stub.StreamObserver responseObserver) { + switch (methodId) { + default: + throw new AssertionError(); + } + } + } + + private abstract static class CloudMemcacheBaseDescriptorSupplier + implements io.grpc.protobuf.ProtoFileDescriptorSupplier, + io.grpc.protobuf.ProtoServiceDescriptorSupplier { + CloudMemcacheBaseDescriptorSupplier() {} + + @java.lang.Override + public com.google.protobuf.Descriptors.FileDescriptor getFileDescriptor() { + return com.google.cloud.memcache.v1.CloudMemcacheProto.getDescriptor(); + } + + @java.lang.Override + public com.google.protobuf.Descriptors.ServiceDescriptor getServiceDescriptor() { + return getFileDescriptor().findServiceByName("CloudMemcache"); + } + } + + private static final class CloudMemcacheFileDescriptorSupplier + extends CloudMemcacheBaseDescriptorSupplier { + CloudMemcacheFileDescriptorSupplier() {} + } + + private static final class CloudMemcacheMethodDescriptorSupplier + extends CloudMemcacheBaseDescriptorSupplier + implements io.grpc.protobuf.ProtoMethodDescriptorSupplier { + private final String methodName; + + CloudMemcacheMethodDescriptorSupplier(String methodName) { + this.methodName = methodName; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.MethodDescriptor getMethodDescriptor() { + return getServiceDescriptor().findMethodByName(methodName); + } + } + + private static volatile io.grpc.ServiceDescriptor serviceDescriptor; + + public static io.grpc.ServiceDescriptor getServiceDescriptor() { + io.grpc.ServiceDescriptor result = serviceDescriptor; + if (result == null) { + synchronized (CloudMemcacheGrpc.class) { + result = serviceDescriptor; + if (result == null) { + serviceDescriptor = + result = + io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) + .setSchemaDescriptor(new CloudMemcacheFileDescriptorSupplier()) + .addMethod(getListInstancesMethod()) + .addMethod(getGetInstanceMethod()) + .addMethod(getCreateInstanceMethod()) + .addMethod(getUpdateInstanceMethod()) + .addMethod(getUpdateParametersMethod()) + .addMethod(getDeleteInstanceMethod()) + .addMethod(getApplyParametersMethod()) + .build(); + } + } + } + return result; + } +} diff --git a/grpc-google-cloud-memcache-v1beta2/src/main/java/com/google/cloud/memcache/v1beta2/CloudMemcacheGrpc.java b/grpc-google-cloud-memcache-v1beta2/src/main/java/com/google/cloud/memcache/v1beta2/CloudMemcacheGrpc.java new file mode 100644 index 00000000..f9c44215 --- /dev/null +++ b/grpc-google-cloud-memcache-v1beta2/src/main/java/com/google/cloud/memcache/v1beta2/CloudMemcacheGrpc.java @@ -0,0 +1,1236 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.memcache.v1beta2; + +import static io.grpc.MethodDescriptor.generateFullMethodName; + +/** + * + * + *
+ * Configures and manages Cloud Memorystore for Memcached instances.
+ * The `memcache.googleapis.com` service implements the Google Cloud Memorystore
+ * for Memcached API and defines the following resource model for managing
+ * Memorystore Memcached (also called Memcached below) 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 Memcached instances, named:
+ * `/instances/*`
+ * * As such, Memcached instances are resources of the form:
+ *   `/projects/{project_id}/locations/{location_id}/instances/{instance_id}`
+ * Note that location_id must be a GCP `region`; for example:
+ * * `projects/my-memcached-project/locations/us-central1/instances/my-memcached`
+ * 
+ */ +@javax.annotation.Generated( + value = "by gRPC proto compiler", + comments = "Source: google/cloud/memcache/v1beta2/cloud_memcache.proto") +@io.grpc.stub.annotations.GrpcGenerated +public final class CloudMemcacheGrpc { + + private CloudMemcacheGrpc() {} + + public static final String SERVICE_NAME = "google.cloud.memcache.v1beta2.CloudMemcache"; + + // Static method descriptors that strictly reflect the proto. + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.memcache.v1beta2.ListInstancesRequest, + com.google.cloud.memcache.v1beta2.ListInstancesResponse> + getListInstancesMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "ListInstances", + requestType = com.google.cloud.memcache.v1beta2.ListInstancesRequest.class, + responseType = com.google.cloud.memcache.v1beta2.ListInstancesResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.memcache.v1beta2.ListInstancesRequest, + com.google.cloud.memcache.v1beta2.ListInstancesResponse> + getListInstancesMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.memcache.v1beta2.ListInstancesRequest, + com.google.cloud.memcache.v1beta2.ListInstancesResponse> + getListInstancesMethod; + if ((getListInstancesMethod = CloudMemcacheGrpc.getListInstancesMethod) == null) { + synchronized (CloudMemcacheGrpc.class) { + if ((getListInstancesMethod = CloudMemcacheGrpc.getListInstancesMethod) == null) { + CloudMemcacheGrpc.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.memcache.v1beta2.ListInstancesRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.memcache.v1beta2.ListInstancesResponse + .getDefaultInstance())) + .setSchemaDescriptor( + new CloudMemcacheMethodDescriptorSupplier("ListInstances")) + .build(); + } + } + } + return getListInstancesMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.memcache.v1beta2.GetInstanceRequest, + com.google.cloud.memcache.v1beta2.Instance> + getGetInstanceMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "GetInstance", + requestType = com.google.cloud.memcache.v1beta2.GetInstanceRequest.class, + responseType = com.google.cloud.memcache.v1beta2.Instance.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.memcache.v1beta2.GetInstanceRequest, + com.google.cloud.memcache.v1beta2.Instance> + getGetInstanceMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.memcache.v1beta2.GetInstanceRequest, + com.google.cloud.memcache.v1beta2.Instance> + getGetInstanceMethod; + if ((getGetInstanceMethod = CloudMemcacheGrpc.getGetInstanceMethod) == null) { + synchronized (CloudMemcacheGrpc.class) { + if ((getGetInstanceMethod = CloudMemcacheGrpc.getGetInstanceMethod) == null) { + CloudMemcacheGrpc.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.memcache.v1beta2.GetInstanceRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.memcache.v1beta2.Instance.getDefaultInstance())) + .setSchemaDescriptor(new CloudMemcacheMethodDescriptorSupplier("GetInstance")) + .build(); + } + } + } + return getGetInstanceMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.memcache.v1beta2.CreateInstanceRequest, com.google.longrunning.Operation> + getCreateInstanceMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "CreateInstance", + requestType = com.google.cloud.memcache.v1beta2.CreateInstanceRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.memcache.v1beta2.CreateInstanceRequest, com.google.longrunning.Operation> + getCreateInstanceMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.memcache.v1beta2.CreateInstanceRequest, + com.google.longrunning.Operation> + getCreateInstanceMethod; + if ((getCreateInstanceMethod = CloudMemcacheGrpc.getCreateInstanceMethod) == null) { + synchronized (CloudMemcacheGrpc.class) { + if ((getCreateInstanceMethod = CloudMemcacheGrpc.getCreateInstanceMethod) == null) { + CloudMemcacheGrpc.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.memcache.v1beta2.CreateInstanceRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor( + new CloudMemcacheMethodDescriptorSupplier("CreateInstance")) + .build(); + } + } + } + return getCreateInstanceMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.memcache.v1beta2.UpdateInstanceRequest, com.google.longrunning.Operation> + getUpdateInstanceMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "UpdateInstance", + requestType = com.google.cloud.memcache.v1beta2.UpdateInstanceRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.memcache.v1beta2.UpdateInstanceRequest, com.google.longrunning.Operation> + getUpdateInstanceMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.memcache.v1beta2.UpdateInstanceRequest, + com.google.longrunning.Operation> + getUpdateInstanceMethod; + if ((getUpdateInstanceMethod = CloudMemcacheGrpc.getUpdateInstanceMethod) == null) { + synchronized (CloudMemcacheGrpc.class) { + if ((getUpdateInstanceMethod = CloudMemcacheGrpc.getUpdateInstanceMethod) == null) { + CloudMemcacheGrpc.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.memcache.v1beta2.UpdateInstanceRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor( + new CloudMemcacheMethodDescriptorSupplier("UpdateInstance")) + .build(); + } + } + } + return getUpdateInstanceMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.memcache.v1beta2.UpdateParametersRequest, + com.google.longrunning.Operation> + getUpdateParametersMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "UpdateParameters", + requestType = com.google.cloud.memcache.v1beta2.UpdateParametersRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.memcache.v1beta2.UpdateParametersRequest, + com.google.longrunning.Operation> + getUpdateParametersMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.memcache.v1beta2.UpdateParametersRequest, + com.google.longrunning.Operation> + getUpdateParametersMethod; + if ((getUpdateParametersMethod = CloudMemcacheGrpc.getUpdateParametersMethod) == null) { + synchronized (CloudMemcacheGrpc.class) { + if ((getUpdateParametersMethod = CloudMemcacheGrpc.getUpdateParametersMethod) == null) { + CloudMemcacheGrpc.getUpdateParametersMethod = + getUpdateParametersMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "UpdateParameters")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.memcache.v1beta2.UpdateParametersRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor( + new CloudMemcacheMethodDescriptorSupplier("UpdateParameters")) + .build(); + } + } + } + return getUpdateParametersMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.memcache.v1beta2.DeleteInstanceRequest, com.google.longrunning.Operation> + getDeleteInstanceMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "DeleteInstance", + requestType = com.google.cloud.memcache.v1beta2.DeleteInstanceRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.memcache.v1beta2.DeleteInstanceRequest, com.google.longrunning.Operation> + getDeleteInstanceMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.memcache.v1beta2.DeleteInstanceRequest, + com.google.longrunning.Operation> + getDeleteInstanceMethod; + if ((getDeleteInstanceMethod = CloudMemcacheGrpc.getDeleteInstanceMethod) == null) { + synchronized (CloudMemcacheGrpc.class) { + if ((getDeleteInstanceMethod = CloudMemcacheGrpc.getDeleteInstanceMethod) == null) { + CloudMemcacheGrpc.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.memcache.v1beta2.DeleteInstanceRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor( + new CloudMemcacheMethodDescriptorSupplier("DeleteInstance")) + .build(); + } + } + } + return getDeleteInstanceMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.memcache.v1beta2.ApplyParametersRequest, + com.google.longrunning.Operation> + getApplyParametersMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "ApplyParameters", + requestType = com.google.cloud.memcache.v1beta2.ApplyParametersRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.memcache.v1beta2.ApplyParametersRequest, + com.google.longrunning.Operation> + getApplyParametersMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.memcache.v1beta2.ApplyParametersRequest, + com.google.longrunning.Operation> + getApplyParametersMethod; + if ((getApplyParametersMethod = CloudMemcacheGrpc.getApplyParametersMethod) == null) { + synchronized (CloudMemcacheGrpc.class) { + if ((getApplyParametersMethod = CloudMemcacheGrpc.getApplyParametersMethod) == null) { + CloudMemcacheGrpc.getApplyParametersMethod = + getApplyParametersMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ApplyParameters")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.memcache.v1beta2.ApplyParametersRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor( + new CloudMemcacheMethodDescriptorSupplier("ApplyParameters")) + .build(); + } + } + } + return getApplyParametersMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.memcache.v1beta2.ApplySoftwareUpdateRequest, + com.google.longrunning.Operation> + getApplySoftwareUpdateMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "ApplySoftwareUpdate", + requestType = com.google.cloud.memcache.v1beta2.ApplySoftwareUpdateRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.memcache.v1beta2.ApplySoftwareUpdateRequest, + com.google.longrunning.Operation> + getApplySoftwareUpdateMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.memcache.v1beta2.ApplySoftwareUpdateRequest, + com.google.longrunning.Operation> + getApplySoftwareUpdateMethod; + if ((getApplySoftwareUpdateMethod = CloudMemcacheGrpc.getApplySoftwareUpdateMethod) == null) { + synchronized (CloudMemcacheGrpc.class) { + if ((getApplySoftwareUpdateMethod = CloudMemcacheGrpc.getApplySoftwareUpdateMethod) + == null) { + CloudMemcacheGrpc.getApplySoftwareUpdateMethod = + getApplySoftwareUpdateMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName(SERVICE_NAME, "ApplySoftwareUpdate")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.memcache.v1beta2.ApplySoftwareUpdateRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor( + new CloudMemcacheMethodDescriptorSupplier("ApplySoftwareUpdate")) + .build(); + } + } + } + return getApplySoftwareUpdateMethod; + } + + /** Creates a new async stub that supports all call types for the service */ + public static CloudMemcacheStub newStub(io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public CloudMemcacheStub newStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new CloudMemcacheStub(channel, callOptions); + } + }; + return CloudMemcacheStub.newStub(factory, channel); + } + + /** + * Creates a new blocking-style stub that supports unary and streaming output calls on the service + */ + public static CloudMemcacheBlockingStub newBlockingStub(io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public CloudMemcacheBlockingStub newStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new CloudMemcacheBlockingStub(channel, callOptions); + } + }; + return CloudMemcacheBlockingStub.newStub(factory, channel); + } + + /** Creates a new ListenableFuture-style stub that supports unary calls on the service */ + public static CloudMemcacheFutureStub newFutureStub(io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public CloudMemcacheFutureStub newStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new CloudMemcacheFutureStub(channel, callOptions); + } + }; + return CloudMemcacheFutureStub.newStub(factory, channel); + } + + /** + * + * + *
+   * Configures and manages Cloud Memorystore for Memcached instances.
+   * The `memcache.googleapis.com` service implements the Google Cloud Memorystore
+   * for Memcached API and defines the following resource model for managing
+   * Memorystore Memcached (also called Memcached below) 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 Memcached instances, named:
+   * `/instances/*`
+   * * As such, Memcached instances are resources of the form:
+   *   `/projects/{project_id}/locations/{location_id}/instances/{instance_id}`
+   * Note that location_id must be a GCP `region`; for example:
+   * * `projects/my-memcached-project/locations/us-central1/instances/my-memcached`
+   * 
+ */ + public abstract static class CloudMemcacheImplBase implements io.grpc.BindableService { + + /** + * + * + *
+     * Lists Instances in a given location.
+     * 
+ */ + public void listInstances( + com.google.cloud.memcache.v1beta2.ListInstancesRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getListInstancesMethod(), responseObserver); + } + + /** + * + * + *
+     * Gets details of a single Instance.
+     * 
+ */ + public void getInstance( + com.google.cloud.memcache.v1beta2.GetInstanceRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getGetInstanceMethod(), responseObserver); + } + + /** + * + * + *
+     * Creates a new Instance in a given location.
+     * 
+ */ + public void createInstance( + com.google.cloud.memcache.v1beta2.CreateInstanceRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getCreateInstanceMethod(), responseObserver); + } + + /** + * + * + *
+     * Updates an existing Instance in a given project and location.
+     * 
+ */ + public void updateInstance( + com.google.cloud.memcache.v1beta2.UpdateInstanceRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getUpdateInstanceMethod(), responseObserver); + } + + /** + * + * + *
+     * Updates the defined Memcached parameters for an existing instance.
+     * This method only stages the parameters, it must be followed by
+     * `ApplyParameters` to apply the parameters to nodes of the Memcached
+     * instance.
+     * 
+ */ + public void updateParameters( + com.google.cloud.memcache.v1beta2.UpdateParametersRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getUpdateParametersMethod(), responseObserver); + } + + /** + * + * + *
+     * Deletes a single Instance.
+     * 
+ */ + public void deleteInstance( + com.google.cloud.memcache.v1beta2.DeleteInstanceRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getDeleteInstanceMethod(), responseObserver); + } + + /** + * + * + *
+     * `ApplyParameters` restarts the set of specified nodes in order to update
+     * them to the current set of parameters for the Memcached Instance.
+     * 
+ */ + public void applyParameters( + com.google.cloud.memcache.v1beta2.ApplyParametersRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getApplyParametersMethod(), responseObserver); + } + + /** + * + * + *
+     * Updates software on the selected nodes of the Instance.
+     * 
+ */ + public void applySoftwareUpdate( + com.google.cloud.memcache.v1beta2.ApplySoftwareUpdateRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getApplySoftwareUpdateMethod(), responseObserver); + } + + @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.memcache.v1beta2.ListInstancesRequest, + com.google.cloud.memcache.v1beta2.ListInstancesResponse>( + this, METHODID_LIST_INSTANCES))) + .addMethod( + getGetInstanceMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.memcache.v1beta2.GetInstanceRequest, + com.google.cloud.memcache.v1beta2.Instance>(this, METHODID_GET_INSTANCE))) + .addMethod( + getCreateInstanceMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.memcache.v1beta2.CreateInstanceRequest, + com.google.longrunning.Operation>(this, METHODID_CREATE_INSTANCE))) + .addMethod( + getUpdateInstanceMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.memcache.v1beta2.UpdateInstanceRequest, + com.google.longrunning.Operation>(this, METHODID_UPDATE_INSTANCE))) + .addMethod( + getUpdateParametersMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.memcache.v1beta2.UpdateParametersRequest, + com.google.longrunning.Operation>(this, METHODID_UPDATE_PARAMETERS))) + .addMethod( + getDeleteInstanceMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.memcache.v1beta2.DeleteInstanceRequest, + com.google.longrunning.Operation>(this, METHODID_DELETE_INSTANCE))) + .addMethod( + getApplyParametersMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.memcache.v1beta2.ApplyParametersRequest, + com.google.longrunning.Operation>(this, METHODID_APPLY_PARAMETERS))) + .addMethod( + getApplySoftwareUpdateMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.memcache.v1beta2.ApplySoftwareUpdateRequest, + com.google.longrunning.Operation>(this, METHODID_APPLY_SOFTWARE_UPDATE))) + .build(); + } + } + + /** + * + * + *
+   * Configures and manages Cloud Memorystore for Memcached instances.
+   * The `memcache.googleapis.com` service implements the Google Cloud Memorystore
+   * for Memcached API and defines the following resource model for managing
+   * Memorystore Memcached (also called Memcached below) 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 Memcached instances, named:
+   * `/instances/*`
+   * * As such, Memcached instances are resources of the form:
+   *   `/projects/{project_id}/locations/{location_id}/instances/{instance_id}`
+   * Note that location_id must be a GCP `region`; for example:
+   * * `projects/my-memcached-project/locations/us-central1/instances/my-memcached`
+   * 
+ */ + public static final class CloudMemcacheStub + extends io.grpc.stub.AbstractAsyncStub { + private CloudMemcacheStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected CloudMemcacheStub build(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new CloudMemcacheStub(channel, callOptions); + } + + /** + * + * + *
+     * Lists Instances in a given location.
+     * 
+ */ + public void listInstances( + com.google.cloud.memcache.v1beta2.ListInstancesRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getListInstancesMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Gets details of a single Instance.
+     * 
+ */ + public void getInstance( + com.google.cloud.memcache.v1beta2.GetInstanceRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getGetInstanceMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Creates a new Instance in a given location.
+     * 
+ */ + public void createInstance( + com.google.cloud.memcache.v1beta2.CreateInstanceRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getCreateInstanceMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Updates an existing Instance in a given project and location.
+     * 
+ */ + public void updateInstance( + com.google.cloud.memcache.v1beta2.UpdateInstanceRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getUpdateInstanceMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Updates the defined Memcached parameters for an existing instance.
+     * This method only stages the parameters, it must be followed by
+     * `ApplyParameters` to apply the parameters to nodes of the Memcached
+     * instance.
+     * 
+ */ + public void updateParameters( + com.google.cloud.memcache.v1beta2.UpdateParametersRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getUpdateParametersMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Deletes a single Instance.
+     * 
+ */ + public void deleteInstance( + com.google.cloud.memcache.v1beta2.DeleteInstanceRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getDeleteInstanceMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * `ApplyParameters` restarts the set of specified nodes in order to update
+     * them to the current set of parameters for the Memcached Instance.
+     * 
+ */ + public void applyParameters( + com.google.cloud.memcache.v1beta2.ApplyParametersRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getApplyParametersMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Updates software on the selected nodes of the Instance.
+     * 
+ */ + public void applySoftwareUpdate( + com.google.cloud.memcache.v1beta2.ApplySoftwareUpdateRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getApplySoftwareUpdateMethod(), getCallOptions()), + request, + responseObserver); + } + } + + /** + * + * + *
+   * Configures and manages Cloud Memorystore for Memcached instances.
+   * The `memcache.googleapis.com` service implements the Google Cloud Memorystore
+   * for Memcached API and defines the following resource model for managing
+   * Memorystore Memcached (also called Memcached below) 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 Memcached instances, named:
+   * `/instances/*`
+   * * As such, Memcached instances are resources of the form:
+   *   `/projects/{project_id}/locations/{location_id}/instances/{instance_id}`
+   * Note that location_id must be a GCP `region`; for example:
+   * * `projects/my-memcached-project/locations/us-central1/instances/my-memcached`
+   * 
+ */ + public static final class CloudMemcacheBlockingStub + extends io.grpc.stub.AbstractBlockingStub { + private CloudMemcacheBlockingStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected CloudMemcacheBlockingStub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new CloudMemcacheBlockingStub(channel, callOptions); + } + + /** + * + * + *
+     * Lists Instances in a given location.
+     * 
+ */ + public com.google.cloud.memcache.v1beta2.ListInstancesResponse listInstances( + com.google.cloud.memcache.v1beta2.ListInstancesRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getListInstancesMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Gets details of a single Instance.
+     * 
+ */ + public com.google.cloud.memcache.v1beta2.Instance getInstance( + com.google.cloud.memcache.v1beta2.GetInstanceRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getGetInstanceMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Creates a new Instance in a given location.
+     * 
+ */ + public com.google.longrunning.Operation createInstance( + com.google.cloud.memcache.v1beta2.CreateInstanceRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getCreateInstanceMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Updates an existing Instance in a given project and location.
+     * 
+ */ + public com.google.longrunning.Operation updateInstance( + com.google.cloud.memcache.v1beta2.UpdateInstanceRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getUpdateInstanceMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Updates the defined Memcached parameters for an existing instance.
+     * This method only stages the parameters, it must be followed by
+     * `ApplyParameters` to apply the parameters to nodes of the Memcached
+     * instance.
+     * 
+ */ + public com.google.longrunning.Operation updateParameters( + com.google.cloud.memcache.v1beta2.UpdateParametersRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getUpdateParametersMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Deletes a single Instance.
+     * 
+ */ + public com.google.longrunning.Operation deleteInstance( + com.google.cloud.memcache.v1beta2.DeleteInstanceRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getDeleteInstanceMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * `ApplyParameters` restarts the set of specified nodes in order to update
+     * them to the current set of parameters for the Memcached Instance.
+     * 
+ */ + public com.google.longrunning.Operation applyParameters( + com.google.cloud.memcache.v1beta2.ApplyParametersRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getApplyParametersMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Updates software on the selected nodes of the Instance.
+     * 
+ */ + public com.google.longrunning.Operation applySoftwareUpdate( + com.google.cloud.memcache.v1beta2.ApplySoftwareUpdateRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getApplySoftwareUpdateMethod(), getCallOptions(), request); + } + } + + /** + * + * + *
+   * Configures and manages Cloud Memorystore for Memcached instances.
+   * The `memcache.googleapis.com` service implements the Google Cloud Memorystore
+   * for Memcached API and defines the following resource model for managing
+   * Memorystore Memcached (also called Memcached below) 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 Memcached instances, named:
+   * `/instances/*`
+   * * As such, Memcached instances are resources of the form:
+   *   `/projects/{project_id}/locations/{location_id}/instances/{instance_id}`
+   * Note that location_id must be a GCP `region`; for example:
+   * * `projects/my-memcached-project/locations/us-central1/instances/my-memcached`
+   * 
+ */ + public static final class CloudMemcacheFutureStub + extends io.grpc.stub.AbstractFutureStub { + private CloudMemcacheFutureStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected CloudMemcacheFutureStub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new CloudMemcacheFutureStub(channel, callOptions); + } + + /** + * + * + *
+     * Lists Instances in a given location.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.memcache.v1beta2.ListInstancesResponse> + listInstances(com.google.cloud.memcache.v1beta2.ListInstancesRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getListInstancesMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Gets details of a single Instance.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.memcache.v1beta2.Instance> + getInstance(com.google.cloud.memcache.v1beta2.GetInstanceRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getGetInstanceMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Creates a new Instance in a given location.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture + createInstance(com.google.cloud.memcache.v1beta2.CreateInstanceRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getCreateInstanceMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Updates an existing Instance in a given project and location.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture + updateInstance(com.google.cloud.memcache.v1beta2.UpdateInstanceRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getUpdateInstanceMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Updates the defined Memcached parameters for an existing instance.
+     * This method only stages the parameters, it must be followed by
+     * `ApplyParameters` to apply the parameters to nodes of the Memcached
+     * instance.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture + updateParameters(com.google.cloud.memcache.v1beta2.UpdateParametersRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getUpdateParametersMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Deletes a single Instance.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture + deleteInstance(com.google.cloud.memcache.v1beta2.DeleteInstanceRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getDeleteInstanceMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * `ApplyParameters` restarts the set of specified nodes in order to update
+     * them to the current set of parameters for the Memcached Instance.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture + applyParameters(com.google.cloud.memcache.v1beta2.ApplyParametersRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getApplyParametersMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Updates software on the selected nodes of the Instance.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture + applySoftwareUpdate(com.google.cloud.memcache.v1beta2.ApplySoftwareUpdateRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getApplySoftwareUpdateMethod(), getCallOptions()), request); + } + } + + private static final int METHODID_LIST_INSTANCES = 0; + private static final int METHODID_GET_INSTANCE = 1; + private static final int METHODID_CREATE_INSTANCE = 2; + private static final int METHODID_UPDATE_INSTANCE = 3; + private static final int METHODID_UPDATE_PARAMETERS = 4; + private static final int METHODID_DELETE_INSTANCE = 5; + private static final int METHODID_APPLY_PARAMETERS = 6; + private static final int METHODID_APPLY_SOFTWARE_UPDATE = 7; + + 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 CloudMemcacheImplBase serviceImpl; + private final int methodId; + + MethodHandlers(CloudMemcacheImplBase serviceImpl, int methodId) { + this.serviceImpl = serviceImpl; + this.methodId = methodId; + } + + @java.lang.Override + @java.lang.SuppressWarnings("unchecked") + public void invoke(Req request, io.grpc.stub.StreamObserver responseObserver) { + switch (methodId) { + case METHODID_LIST_INSTANCES: + serviceImpl.listInstances( + (com.google.cloud.memcache.v1beta2.ListInstancesRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); + break; + case METHODID_GET_INSTANCE: + serviceImpl.getInstance( + (com.google.cloud.memcache.v1beta2.GetInstanceRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); + break; + case METHODID_CREATE_INSTANCE: + serviceImpl.createInstance( + (com.google.cloud.memcache.v1beta2.CreateInstanceRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_UPDATE_INSTANCE: + serviceImpl.updateInstance( + (com.google.cloud.memcache.v1beta2.UpdateInstanceRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_UPDATE_PARAMETERS: + serviceImpl.updateParameters( + (com.google.cloud.memcache.v1beta2.UpdateParametersRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_DELETE_INSTANCE: + serviceImpl.deleteInstance( + (com.google.cloud.memcache.v1beta2.DeleteInstanceRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_APPLY_PARAMETERS: + serviceImpl.applyParameters( + (com.google.cloud.memcache.v1beta2.ApplyParametersRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_APPLY_SOFTWARE_UPDATE: + serviceImpl.applySoftwareUpdate( + (com.google.cloud.memcache.v1beta2.ApplySoftwareUpdateRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + default: + throw new AssertionError(); + } + } + + @java.lang.Override + @java.lang.SuppressWarnings("unchecked") + public io.grpc.stub.StreamObserver invoke( + io.grpc.stub.StreamObserver responseObserver) { + switch (methodId) { + default: + throw new AssertionError(); + } + } + } + + private abstract static class CloudMemcacheBaseDescriptorSupplier + implements io.grpc.protobuf.ProtoFileDescriptorSupplier, + io.grpc.protobuf.ProtoServiceDescriptorSupplier { + CloudMemcacheBaseDescriptorSupplier() {} + + @java.lang.Override + public com.google.protobuf.Descriptors.FileDescriptor getFileDescriptor() { + return com.google.cloud.memcache.v1beta2.CloudMemcacheProto.getDescriptor(); + } + + @java.lang.Override + public com.google.protobuf.Descriptors.ServiceDescriptor getServiceDescriptor() { + return getFileDescriptor().findServiceByName("CloudMemcache"); + } + } + + private static final class CloudMemcacheFileDescriptorSupplier + extends CloudMemcacheBaseDescriptorSupplier { + CloudMemcacheFileDescriptorSupplier() {} + } + + private static final class CloudMemcacheMethodDescriptorSupplier + extends CloudMemcacheBaseDescriptorSupplier + implements io.grpc.protobuf.ProtoMethodDescriptorSupplier { + private final String methodName; + + CloudMemcacheMethodDescriptorSupplier(String methodName) { + this.methodName = methodName; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.MethodDescriptor getMethodDescriptor() { + return getServiceDescriptor().findMethodByName(methodName); + } + } + + private static volatile io.grpc.ServiceDescriptor serviceDescriptor; + + public static io.grpc.ServiceDescriptor getServiceDescriptor() { + io.grpc.ServiceDescriptor result = serviceDescriptor; + if (result == null) { + synchronized (CloudMemcacheGrpc.class) { + result = serviceDescriptor; + if (result == null) { + serviceDescriptor = + result = + io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) + .setSchemaDescriptor(new CloudMemcacheFileDescriptorSupplier()) + .addMethod(getListInstancesMethod()) + .addMethod(getGetInstanceMethod()) + .addMethod(getCreateInstanceMethod()) + .addMethod(getUpdateInstanceMethod()) + .addMethod(getUpdateParametersMethod()) + .addMethod(getDeleteInstanceMethod()) + .addMethod(getApplyParametersMethod()) + .addMethod(getApplySoftwareUpdateMethod()) + .build(); + } + } + } + return result; + } +} diff --git a/owl-bot-staging/v1/grpc-google-cloud-memcache-v1/src/main/java/com/google/cloud/memcache/v1/CloudMemcacheGrpc.java b/owl-bot-staging/v1/grpc-google-cloud-memcache-v1/src/main/java/com/google/cloud/memcache/v1/CloudMemcacheGrpc.java deleted file mode 100644 index 02a99629..00000000 --- a/owl-bot-staging/v1/grpc-google-cloud-memcache-v1/src/main/java/com/google/cloud/memcache/v1/CloudMemcacheGrpc.java +++ /dev/null @@ -1,886 +0,0 @@ -package com.google.cloud.memcache.v1; - -import static io.grpc.MethodDescriptor.generateFullMethodName; - -/** - *
- * Configures and manages Cloud Memorystore for Memcached instances.
- * The `memcache.googleapis.com` service implements the Google Cloud Memorystore
- * for Memcached API and defines the following resource model for managing
- * Memorystore Memcached (also called Memcached below) 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 Memcached instances, named:
- * `/instances/*`
- * * As such, Memcached instances are resources of the form:
- *   `/projects/{project_id}/locations/{location_id}/instances/{instance_id}`
- * Note that location_id must be a GCP `region`; for example:
- * * `projects/my-memcached-project/locations/us-central1/instances/my-memcached`
- * 
- */ -@javax.annotation.Generated( - value = "by gRPC proto compiler", - comments = "Source: google/cloud/memcache/v1/cloud_memcache.proto") -@io.grpc.stub.annotations.GrpcGenerated -public final class CloudMemcacheGrpc { - - private CloudMemcacheGrpc() {} - - public static final String SERVICE_NAME = "google.cloud.memcache.v1.CloudMemcache"; - - // Static method descriptors that strictly reflect the proto. - private static volatile io.grpc.MethodDescriptor getListInstancesMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "ListInstances", - requestType = com.google.cloud.memcache.v1.ListInstancesRequest.class, - responseType = com.google.cloud.memcache.v1.ListInstancesResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getListInstancesMethod() { - io.grpc.MethodDescriptor getListInstancesMethod; - if ((getListInstancesMethod = CloudMemcacheGrpc.getListInstancesMethod) == null) { - synchronized (CloudMemcacheGrpc.class) { - if ((getListInstancesMethod = CloudMemcacheGrpc.getListInstancesMethod) == null) { - CloudMemcacheGrpc.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.memcache.v1.ListInstancesRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.memcache.v1.ListInstancesResponse.getDefaultInstance())) - .setSchemaDescriptor(new CloudMemcacheMethodDescriptorSupplier("ListInstances")) - .build(); - } - } - } - return getListInstancesMethod; - } - - private static volatile io.grpc.MethodDescriptor getGetInstanceMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "GetInstance", - requestType = com.google.cloud.memcache.v1.GetInstanceRequest.class, - responseType = com.google.cloud.memcache.v1.Instance.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getGetInstanceMethod() { - io.grpc.MethodDescriptor getGetInstanceMethod; - if ((getGetInstanceMethod = CloudMemcacheGrpc.getGetInstanceMethod) == null) { - synchronized (CloudMemcacheGrpc.class) { - if ((getGetInstanceMethod = CloudMemcacheGrpc.getGetInstanceMethod) == null) { - CloudMemcacheGrpc.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.memcache.v1.GetInstanceRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.memcache.v1.Instance.getDefaultInstance())) - .setSchemaDescriptor(new CloudMemcacheMethodDescriptorSupplier("GetInstance")) - .build(); - } - } - } - return getGetInstanceMethod; - } - - private static volatile io.grpc.MethodDescriptor getCreateInstanceMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "CreateInstance", - requestType = com.google.cloud.memcache.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; - if ((getCreateInstanceMethod = CloudMemcacheGrpc.getCreateInstanceMethod) == null) { - synchronized (CloudMemcacheGrpc.class) { - if ((getCreateInstanceMethod = CloudMemcacheGrpc.getCreateInstanceMethod) == null) { - CloudMemcacheGrpc.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.memcache.v1.CreateInstanceRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.longrunning.Operation.getDefaultInstance())) - .setSchemaDescriptor(new CloudMemcacheMethodDescriptorSupplier("CreateInstance")) - .build(); - } - } - } - return getCreateInstanceMethod; - } - - private static volatile io.grpc.MethodDescriptor getUpdateInstanceMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "UpdateInstance", - requestType = com.google.cloud.memcache.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; - if ((getUpdateInstanceMethod = CloudMemcacheGrpc.getUpdateInstanceMethod) == null) { - synchronized (CloudMemcacheGrpc.class) { - if ((getUpdateInstanceMethod = CloudMemcacheGrpc.getUpdateInstanceMethod) == null) { - CloudMemcacheGrpc.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.memcache.v1.UpdateInstanceRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.longrunning.Operation.getDefaultInstance())) - .setSchemaDescriptor(new CloudMemcacheMethodDescriptorSupplier("UpdateInstance")) - .build(); - } - } - } - return getUpdateInstanceMethod; - } - - private static volatile io.grpc.MethodDescriptor getUpdateParametersMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "UpdateParameters", - requestType = com.google.cloud.memcache.v1.UpdateParametersRequest.class, - responseType = com.google.longrunning.Operation.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getUpdateParametersMethod() { - io.grpc.MethodDescriptor getUpdateParametersMethod; - if ((getUpdateParametersMethod = CloudMemcacheGrpc.getUpdateParametersMethod) == null) { - synchronized (CloudMemcacheGrpc.class) { - if ((getUpdateParametersMethod = CloudMemcacheGrpc.getUpdateParametersMethod) == null) { - CloudMemcacheGrpc.getUpdateParametersMethod = getUpdateParametersMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "UpdateParameters")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.memcache.v1.UpdateParametersRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.longrunning.Operation.getDefaultInstance())) - .setSchemaDescriptor(new CloudMemcacheMethodDescriptorSupplier("UpdateParameters")) - .build(); - } - } - } - return getUpdateParametersMethod; - } - - private static volatile io.grpc.MethodDescriptor getDeleteInstanceMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "DeleteInstance", - requestType = com.google.cloud.memcache.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; - if ((getDeleteInstanceMethod = CloudMemcacheGrpc.getDeleteInstanceMethod) == null) { - synchronized (CloudMemcacheGrpc.class) { - if ((getDeleteInstanceMethod = CloudMemcacheGrpc.getDeleteInstanceMethod) == null) { - CloudMemcacheGrpc.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.memcache.v1.DeleteInstanceRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.longrunning.Operation.getDefaultInstance())) - .setSchemaDescriptor(new CloudMemcacheMethodDescriptorSupplier("DeleteInstance")) - .build(); - } - } - } - return getDeleteInstanceMethod; - } - - private static volatile io.grpc.MethodDescriptor getApplyParametersMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "ApplyParameters", - requestType = com.google.cloud.memcache.v1.ApplyParametersRequest.class, - responseType = com.google.longrunning.Operation.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getApplyParametersMethod() { - io.grpc.MethodDescriptor getApplyParametersMethod; - if ((getApplyParametersMethod = CloudMemcacheGrpc.getApplyParametersMethod) == null) { - synchronized (CloudMemcacheGrpc.class) { - if ((getApplyParametersMethod = CloudMemcacheGrpc.getApplyParametersMethod) == null) { - CloudMemcacheGrpc.getApplyParametersMethod = getApplyParametersMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ApplyParameters")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.memcache.v1.ApplyParametersRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.longrunning.Operation.getDefaultInstance())) - .setSchemaDescriptor(new CloudMemcacheMethodDescriptorSupplier("ApplyParameters")) - .build(); - } - } - } - return getApplyParametersMethod; - } - - /** - * Creates a new async stub that supports all call types for the service - */ - public static CloudMemcacheStub newStub(io.grpc.Channel channel) { - io.grpc.stub.AbstractStub.StubFactory factory = - new io.grpc.stub.AbstractStub.StubFactory() { - @java.lang.Override - public CloudMemcacheStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new CloudMemcacheStub(channel, callOptions); - } - }; - return CloudMemcacheStub.newStub(factory, channel); - } - - /** - * Creates a new blocking-style stub that supports unary and streaming output calls on the service - */ - public static CloudMemcacheBlockingStub newBlockingStub( - io.grpc.Channel channel) { - io.grpc.stub.AbstractStub.StubFactory factory = - new io.grpc.stub.AbstractStub.StubFactory() { - @java.lang.Override - public CloudMemcacheBlockingStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new CloudMemcacheBlockingStub(channel, callOptions); - } - }; - return CloudMemcacheBlockingStub.newStub(factory, channel); - } - - /** - * Creates a new ListenableFuture-style stub that supports unary calls on the service - */ - public static CloudMemcacheFutureStub newFutureStub( - io.grpc.Channel channel) { - io.grpc.stub.AbstractStub.StubFactory factory = - new io.grpc.stub.AbstractStub.StubFactory() { - @java.lang.Override - public CloudMemcacheFutureStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new CloudMemcacheFutureStub(channel, callOptions); - } - }; - return CloudMemcacheFutureStub.newStub(factory, channel); - } - - /** - *
-   * Configures and manages Cloud Memorystore for Memcached instances.
-   * The `memcache.googleapis.com` service implements the Google Cloud Memorystore
-   * for Memcached API and defines the following resource model for managing
-   * Memorystore Memcached (also called Memcached below) 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 Memcached instances, named:
-   * `/instances/*`
-   * * As such, Memcached instances are resources of the form:
-   *   `/projects/{project_id}/locations/{location_id}/instances/{instance_id}`
-   * Note that location_id must be a GCP `region`; for example:
-   * * `projects/my-memcached-project/locations/us-central1/instances/my-memcached`
-   * 
- */ - public static abstract class CloudMemcacheImplBase implements io.grpc.BindableService { - - /** - *
-     * Lists Instances in a given location.
-     * 
- */ - public void listInstances(com.google.cloud.memcache.v1.ListInstancesRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getListInstancesMethod(), responseObserver); - } - - /** - *
-     * Gets details of a single Instance.
-     * 
- */ - public void getInstance(com.google.cloud.memcache.v1.GetInstanceRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetInstanceMethod(), responseObserver); - } - - /** - *
-     * Creates a new Instance in a given location.
-     * 
- */ - public void createInstance(com.google.cloud.memcache.v1.CreateInstanceRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getCreateInstanceMethod(), responseObserver); - } - - /** - *
-     * Updates an existing Instance in a given project and location.
-     * 
- */ - public void updateInstance(com.google.cloud.memcache.v1.UpdateInstanceRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getUpdateInstanceMethod(), responseObserver); - } - - /** - *
-     * Updates the defined Memcached Parameters for an existing Instance.
-     * This method only stages the parameters, it must be followed by
-     * ApplyParameters to apply the parameters to nodes of the Memcached Instance.
-     * 
- */ - public void updateParameters(com.google.cloud.memcache.v1.UpdateParametersRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getUpdateParametersMethod(), responseObserver); - } - - /** - *
-     * Deletes a single Instance.
-     * 
- */ - public void deleteInstance(com.google.cloud.memcache.v1.DeleteInstanceRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getDeleteInstanceMethod(), responseObserver); - } - - /** - *
-     * ApplyParameters will restart the set of specified nodes in order to update
-     * them to the current set of parameters for the Memcached Instance.
-     * 
- */ - public void applyParameters(com.google.cloud.memcache.v1.ApplyParametersRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getApplyParametersMethod(), responseObserver); - } - - @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.memcache.v1.ListInstancesRequest, - com.google.cloud.memcache.v1.ListInstancesResponse>( - this, METHODID_LIST_INSTANCES))) - .addMethod( - getGetInstanceMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.memcache.v1.GetInstanceRequest, - com.google.cloud.memcache.v1.Instance>( - this, METHODID_GET_INSTANCE))) - .addMethod( - getCreateInstanceMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.memcache.v1.CreateInstanceRequest, - com.google.longrunning.Operation>( - this, METHODID_CREATE_INSTANCE))) - .addMethod( - getUpdateInstanceMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.memcache.v1.UpdateInstanceRequest, - com.google.longrunning.Operation>( - this, METHODID_UPDATE_INSTANCE))) - .addMethod( - getUpdateParametersMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.memcache.v1.UpdateParametersRequest, - com.google.longrunning.Operation>( - this, METHODID_UPDATE_PARAMETERS))) - .addMethod( - getDeleteInstanceMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.memcache.v1.DeleteInstanceRequest, - com.google.longrunning.Operation>( - this, METHODID_DELETE_INSTANCE))) - .addMethod( - getApplyParametersMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.memcache.v1.ApplyParametersRequest, - com.google.longrunning.Operation>( - this, METHODID_APPLY_PARAMETERS))) - .build(); - } - } - - /** - *
-   * Configures and manages Cloud Memorystore for Memcached instances.
-   * The `memcache.googleapis.com` service implements the Google Cloud Memorystore
-   * for Memcached API and defines the following resource model for managing
-   * Memorystore Memcached (also called Memcached below) 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 Memcached instances, named:
-   * `/instances/*`
-   * * As such, Memcached instances are resources of the form:
-   *   `/projects/{project_id}/locations/{location_id}/instances/{instance_id}`
-   * Note that location_id must be a GCP `region`; for example:
-   * * `projects/my-memcached-project/locations/us-central1/instances/my-memcached`
-   * 
- */ - public static final class CloudMemcacheStub extends io.grpc.stub.AbstractAsyncStub { - private CloudMemcacheStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - super(channel, callOptions); - } - - @java.lang.Override - protected CloudMemcacheStub build( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new CloudMemcacheStub(channel, callOptions); - } - - /** - *
-     * Lists Instances in a given location.
-     * 
- */ - public void listInstances(com.google.cloud.memcache.v1.ListInstancesRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getListInstancesMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Gets details of a single Instance.
-     * 
- */ - public void getInstance(com.google.cloud.memcache.v1.GetInstanceRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getGetInstanceMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Creates a new Instance in a given location.
-     * 
- */ - public void createInstance(com.google.cloud.memcache.v1.CreateInstanceRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getCreateInstanceMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Updates an existing Instance in a given project and location.
-     * 
- */ - public void updateInstance(com.google.cloud.memcache.v1.UpdateInstanceRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getUpdateInstanceMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Updates the defined Memcached Parameters for an existing Instance.
-     * This method only stages the parameters, it must be followed by
-     * ApplyParameters to apply the parameters to nodes of the Memcached Instance.
-     * 
- */ - public void updateParameters(com.google.cloud.memcache.v1.UpdateParametersRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getUpdateParametersMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Deletes a single Instance.
-     * 
- */ - public void deleteInstance(com.google.cloud.memcache.v1.DeleteInstanceRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getDeleteInstanceMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * ApplyParameters will restart the set of specified nodes in order to update
-     * them to the current set of parameters for the Memcached Instance.
-     * 
- */ - public void applyParameters(com.google.cloud.memcache.v1.ApplyParametersRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getApplyParametersMethod(), getCallOptions()), request, responseObserver); - } - } - - /** - *
-   * Configures and manages Cloud Memorystore for Memcached instances.
-   * The `memcache.googleapis.com` service implements the Google Cloud Memorystore
-   * for Memcached API and defines the following resource model for managing
-   * Memorystore Memcached (also called Memcached below) 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 Memcached instances, named:
-   * `/instances/*`
-   * * As such, Memcached instances are resources of the form:
-   *   `/projects/{project_id}/locations/{location_id}/instances/{instance_id}`
-   * Note that location_id must be a GCP `region`; for example:
-   * * `projects/my-memcached-project/locations/us-central1/instances/my-memcached`
-   * 
- */ - public static final class CloudMemcacheBlockingStub extends io.grpc.stub.AbstractBlockingStub { - private CloudMemcacheBlockingStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - super(channel, callOptions); - } - - @java.lang.Override - protected CloudMemcacheBlockingStub build( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new CloudMemcacheBlockingStub(channel, callOptions); - } - - /** - *
-     * Lists Instances in a given location.
-     * 
- */ - public com.google.cloud.memcache.v1.ListInstancesResponse listInstances(com.google.cloud.memcache.v1.ListInstancesRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getListInstancesMethod(), getCallOptions(), request); - } - - /** - *
-     * Gets details of a single Instance.
-     * 
- */ - public com.google.cloud.memcache.v1.Instance getInstance(com.google.cloud.memcache.v1.GetInstanceRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getGetInstanceMethod(), getCallOptions(), request); - } - - /** - *
-     * Creates a new Instance in a given location.
-     * 
- */ - public com.google.longrunning.Operation createInstance(com.google.cloud.memcache.v1.CreateInstanceRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getCreateInstanceMethod(), getCallOptions(), request); - } - - /** - *
-     * Updates an existing Instance in a given project and location.
-     * 
- */ - public com.google.longrunning.Operation updateInstance(com.google.cloud.memcache.v1.UpdateInstanceRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getUpdateInstanceMethod(), getCallOptions(), request); - } - - /** - *
-     * Updates the defined Memcached Parameters for an existing Instance.
-     * This method only stages the parameters, it must be followed by
-     * ApplyParameters to apply the parameters to nodes of the Memcached Instance.
-     * 
- */ - public com.google.longrunning.Operation updateParameters(com.google.cloud.memcache.v1.UpdateParametersRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getUpdateParametersMethod(), getCallOptions(), request); - } - - /** - *
-     * Deletes a single Instance.
-     * 
- */ - public com.google.longrunning.Operation deleteInstance(com.google.cloud.memcache.v1.DeleteInstanceRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getDeleteInstanceMethod(), getCallOptions(), request); - } - - /** - *
-     * ApplyParameters will restart the set of specified nodes in order to update
-     * them to the current set of parameters for the Memcached Instance.
-     * 
- */ - public com.google.longrunning.Operation applyParameters(com.google.cloud.memcache.v1.ApplyParametersRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getApplyParametersMethod(), getCallOptions(), request); - } - } - - /** - *
-   * Configures and manages Cloud Memorystore for Memcached instances.
-   * The `memcache.googleapis.com` service implements the Google Cloud Memorystore
-   * for Memcached API and defines the following resource model for managing
-   * Memorystore Memcached (also called Memcached below) 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 Memcached instances, named:
-   * `/instances/*`
-   * * As such, Memcached instances are resources of the form:
-   *   `/projects/{project_id}/locations/{location_id}/instances/{instance_id}`
-   * Note that location_id must be a GCP `region`; for example:
-   * * `projects/my-memcached-project/locations/us-central1/instances/my-memcached`
-   * 
- */ - public static final class CloudMemcacheFutureStub extends io.grpc.stub.AbstractFutureStub { - private CloudMemcacheFutureStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - super(channel, callOptions); - } - - @java.lang.Override - protected CloudMemcacheFutureStub build( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new CloudMemcacheFutureStub(channel, callOptions); - } - - /** - *
-     * Lists Instances in a given location.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture listInstances( - com.google.cloud.memcache.v1.ListInstancesRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getListInstancesMethod(), getCallOptions()), request); - } - - /** - *
-     * Gets details of a single Instance.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture getInstance( - com.google.cloud.memcache.v1.GetInstanceRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getGetInstanceMethod(), getCallOptions()), request); - } - - /** - *
-     * Creates a new Instance in a given location.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture createInstance( - com.google.cloud.memcache.v1.CreateInstanceRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getCreateInstanceMethod(), getCallOptions()), request); - } - - /** - *
-     * Updates an existing Instance in a given project and location.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture updateInstance( - com.google.cloud.memcache.v1.UpdateInstanceRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getUpdateInstanceMethod(), getCallOptions()), request); - } - - /** - *
-     * Updates the defined Memcached Parameters for an existing Instance.
-     * This method only stages the parameters, it must be followed by
-     * ApplyParameters to apply the parameters to nodes of the Memcached Instance.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture updateParameters( - com.google.cloud.memcache.v1.UpdateParametersRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getUpdateParametersMethod(), getCallOptions()), request); - } - - /** - *
-     * Deletes a single Instance.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture deleteInstance( - com.google.cloud.memcache.v1.DeleteInstanceRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getDeleteInstanceMethod(), getCallOptions()), request); - } - - /** - *
-     * ApplyParameters will restart the set of specified nodes in order to update
-     * them to the current set of parameters for the Memcached Instance.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture applyParameters( - com.google.cloud.memcache.v1.ApplyParametersRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getApplyParametersMethod(), getCallOptions()), request); - } - } - - private static final int METHODID_LIST_INSTANCES = 0; - private static final int METHODID_GET_INSTANCE = 1; - private static final int METHODID_CREATE_INSTANCE = 2; - private static final int METHODID_UPDATE_INSTANCE = 3; - private static final int METHODID_UPDATE_PARAMETERS = 4; - private static final int METHODID_DELETE_INSTANCE = 5; - private static final int METHODID_APPLY_PARAMETERS = 6; - - 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 CloudMemcacheImplBase serviceImpl; - private final int methodId; - - MethodHandlers(CloudMemcacheImplBase serviceImpl, int methodId) { - this.serviceImpl = serviceImpl; - this.methodId = methodId; - } - - @java.lang.Override - @java.lang.SuppressWarnings("unchecked") - public void invoke(Req request, io.grpc.stub.StreamObserver responseObserver) { - switch (methodId) { - case METHODID_LIST_INSTANCES: - serviceImpl.listInstances((com.google.cloud.memcache.v1.ListInstancesRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_GET_INSTANCE: - serviceImpl.getInstance((com.google.cloud.memcache.v1.GetInstanceRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_CREATE_INSTANCE: - serviceImpl.createInstance((com.google.cloud.memcache.v1.CreateInstanceRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_UPDATE_INSTANCE: - serviceImpl.updateInstance((com.google.cloud.memcache.v1.UpdateInstanceRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_UPDATE_PARAMETERS: - serviceImpl.updateParameters((com.google.cloud.memcache.v1.UpdateParametersRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_DELETE_INSTANCE: - serviceImpl.deleteInstance((com.google.cloud.memcache.v1.DeleteInstanceRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_APPLY_PARAMETERS: - serviceImpl.applyParameters((com.google.cloud.memcache.v1.ApplyParametersRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - default: - throw new AssertionError(); - } - } - - @java.lang.Override - @java.lang.SuppressWarnings("unchecked") - public io.grpc.stub.StreamObserver invoke( - io.grpc.stub.StreamObserver responseObserver) { - switch (methodId) { - default: - throw new AssertionError(); - } - } - } - - private static abstract class CloudMemcacheBaseDescriptorSupplier - implements io.grpc.protobuf.ProtoFileDescriptorSupplier, io.grpc.protobuf.ProtoServiceDescriptorSupplier { - CloudMemcacheBaseDescriptorSupplier() {} - - @java.lang.Override - public com.google.protobuf.Descriptors.FileDescriptor getFileDescriptor() { - return com.google.cloud.memcache.v1.CloudMemcacheProto.getDescriptor(); - } - - @java.lang.Override - public com.google.protobuf.Descriptors.ServiceDescriptor getServiceDescriptor() { - return getFileDescriptor().findServiceByName("CloudMemcache"); - } - } - - private static final class CloudMemcacheFileDescriptorSupplier - extends CloudMemcacheBaseDescriptorSupplier { - CloudMemcacheFileDescriptorSupplier() {} - } - - private static final class CloudMemcacheMethodDescriptorSupplier - extends CloudMemcacheBaseDescriptorSupplier - implements io.grpc.protobuf.ProtoMethodDescriptorSupplier { - private final String methodName; - - CloudMemcacheMethodDescriptorSupplier(String methodName) { - this.methodName = methodName; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.MethodDescriptor getMethodDescriptor() { - return getServiceDescriptor().findMethodByName(methodName); - } - } - - private static volatile io.grpc.ServiceDescriptor serviceDescriptor; - - public static io.grpc.ServiceDescriptor getServiceDescriptor() { - io.grpc.ServiceDescriptor result = serviceDescriptor; - if (result == null) { - synchronized (CloudMemcacheGrpc.class) { - result = serviceDescriptor; - if (result == null) { - serviceDescriptor = result = io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) - .setSchemaDescriptor(new CloudMemcacheFileDescriptorSupplier()) - .addMethod(getListInstancesMethod()) - .addMethod(getGetInstanceMethod()) - .addMethod(getCreateInstanceMethod()) - .addMethod(getUpdateInstanceMethod()) - .addMethod(getUpdateParametersMethod()) - .addMethod(getDeleteInstanceMethod()) - .addMethod(getApplyParametersMethod()) - .build(); - } - } - } - return result; - } -} diff --git a/owl-bot-staging/v1/proto-google-cloud-memcache-v1/src/main/java/com/google/cloud/memcache/v1/CloudMemcacheProto.java b/owl-bot-staging/v1/proto-google-cloud-memcache-v1/src/main/java/com/google/cloud/memcache/v1/CloudMemcacheProto.java deleted file mode 100644 index 7abf103d..00000000 --- a/owl-bot-staging/v1/proto-google-cloud-memcache-v1/src/main/java/com/google/cloud/memcache/v1/CloudMemcacheProto.java +++ /dev/null @@ -1,370 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/memcache/v1/cloud_memcache.proto - -package com.google.cloud.memcache.v1; - -public final class CloudMemcacheProto { - private CloudMemcacheProto() {} - 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_memcache_v1_Instance_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_memcache_v1_Instance_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_memcache_v1_Instance_NodeConfig_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_memcache_v1_Instance_NodeConfig_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_memcache_v1_Instance_Node_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_memcache_v1_Instance_Node_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_memcache_v1_Instance_InstanceMessage_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_memcache_v1_Instance_InstanceMessage_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_memcache_v1_Instance_LabelsEntry_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_memcache_v1_Instance_LabelsEntry_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_memcache_v1_ListInstancesRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_memcache_v1_ListInstancesRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_memcache_v1_ListInstancesResponse_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_memcache_v1_ListInstancesResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_memcache_v1_GetInstanceRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_memcache_v1_GetInstanceRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_memcache_v1_CreateInstanceRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_memcache_v1_CreateInstanceRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_memcache_v1_UpdateInstanceRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_memcache_v1_UpdateInstanceRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_memcache_v1_DeleteInstanceRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_memcache_v1_DeleteInstanceRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_memcache_v1_ApplyParametersRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_memcache_v1_ApplyParametersRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_memcache_v1_UpdateParametersRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_memcache_v1_UpdateParametersRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_memcache_v1_MemcacheParameters_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_memcache_v1_MemcacheParameters_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_memcache_v1_MemcacheParameters_ParamsEntry_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_memcache_v1_MemcacheParameters_ParamsEntry_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_memcache_v1_OperationMetadata_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_memcache_v1_OperationMetadata_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/memcache/v1/cloud_memcach" + - "e.proto\022\030google.cloud.memcache.v1\032\034googl" + - "e/api/annotations.proto\032\027google/api/clie" + - "nt.proto\032\037google/api/field_behavior.prot" + - "o\032\031google/api/resource.proto\032#google/lon" + - "grunning/operations.proto\032 google/protob" + - "uf/field_mask.proto\032\037google/protobuf/tim" + - "estamp.proto\"\243\014\n\010Instance\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" + - "(\0132..google.cloud.memcache.v1.Instance.L" + - "abelsEntry\022\032\n\022authorized_network\030\004 \001(\t\022\r" + - "\n\005zones\030\005 \003(\t\022\027\n\nnode_count\030\006 \001(\005B\003\340A\002\022G" + - "\n\013node_config\030\007 \001(\0132-.google.cloud.memca" + - "che.v1.Instance.NodeConfigB\003\340A\002\022C\n\020memca" + - "che_version\030\t \001(\0162).google.cloud.memcach" + - "e.v1.MemcacheVersion\022@\n\nparameters\030\013 \001(\013" + - "2,.google.cloud.memcache.v1.MemcachePara" + - "meters\022D\n\016memcache_nodes\030\014 \003(\0132\'.google." + - "cloud.memcache.v1.Instance.NodeB\003\340A\003\0224\n\013" + - "create_time\030\r \001(\0132\032.google.protobuf.Time" + - "stampB\003\340A\003\0224\n\013update_time\030\016 \001(\0132\032.google" + - ".protobuf.TimestampB\003\340A\003\022<\n\005state\030\017 \001(\0162" + - "(.google.cloud.memcache.v1.Instance.Stat" + - "eB\003\340A\003\022\"\n\025memcache_full_version\030\022 \001(\tB\003\340" + - "A\003\022M\n\021instance_messages\030\023 \003(\01322.google.c" + - "loud.memcache.v1.Instance.InstanceMessag" + - "e\022\037\n\022discovery_endpoint\030\024 \001(\tB\003\340A\003\032A\n\nNo" + - "deConfig\022\026\n\tcpu_count\030\001 \001(\005B\003\340A\002\022\033\n\016memo" + - "ry_size_mb\030\002 \001(\005B\003\340A\002\032\257\002\n\004Node\022\024\n\007node_i" + - "d\030\001 \001(\tB\003\340A\003\022\021\n\004zone\030\002 \001(\tB\003\340A\003\022A\n\005state" + - "\030\003 \001(\0162-.google.cloud.memcache.v1.Instan" + - "ce.Node.StateB\003\340A\003\022\021\n\004host\030\004 \001(\tB\003\340A\003\022\021\n" + - "\004port\030\005 \001(\005B\003\340A\003\022@\n\nparameters\030\006 \001(\0132,.g" + - "oogle.cloud.memcache.v1.MemcacheParamete" + - "rs\"S\n\005State\022\025\n\021STATE_UNSPECIFIED\020\000\022\014\n\010CR" + - "EATING\020\001\022\t\n\005READY\020\002\022\014\n\010DELETING\020\003\022\014\n\010UPD" + - "ATING\020\004\032\251\001\n\017InstanceMessage\022E\n\004code\030\001 \001(" + - "\01627.google.cloud.memcache.v1.Instance.In" + - "stanceMessage.Code\022\017\n\007message\030\002 \001(\t\">\n\004C" + - "ode\022\024\n\020CODE_UNSPECIFIED\020\000\022 \n\034ZONE_DISTRI" + - "BUTION_UNBALANCED\020\001\032-\n\013LabelsEntry\022\013\n\003ke" + - "y\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\"a\n\005State\022\025\n\021S" + - "TATE_UNSPECIFIED\020\000\022\014\n\010CREATING\020\001\022\t\n\005READ" + - "Y\020\002\022\014\n\010DELETING\020\004\022\032\n\026PERFORMING_MAINTENA" + - "NCE\020\005:c\352A`\n memcache.googleapis.com/Inst" + - "ance\022\202" + - "\323\344\223\002/\022-/v1/{parent=projects/*/locations/" + - "*}/instances\332A\006parent\022\235\001\n\013GetInstance\022,." + - "google.cloud.memcache.v1.GetInstanceRequ" + - "est\032\".google.cloud.memcache.v1.Instance\"" + - "<\202\323\344\223\002/\022-/v1/{name=projects/*/locations/" + - "*/instances/*}\332A\004name\022\222\002\n\016CreateInstance" + - "\022/.google.cloud.memcache.v1.CreateInstan" + - "ceRequest\032\035.google.longrunning.Operation" + - "\"\257\001\202\323\344\223\0029\"-/v1/{parent=projects/*/locati" + - "ons/*}/instances:\010instance\332A\033parent,inst" + - "ance,instance_id\312AO\n!google.cloud.memcac" + - "he.v1.Instance\022*google.cloud.memcache.v1" + - ".OperationMetadata\022\224\002\n\016UpdateInstance\022/." + - "google.cloud.memcache.v1.UpdateInstanceR" + - "equest\032\035.google.longrunning.Operation\"\261\001" + - "\202\323\344\223\002B26/v1/{instance.name=projects/*/lo" + - "cations/*/instances/*}:\010instance\332A\024insta" + - "nce,update_mask\312AO\n!google.cloud.memcach" + - "e.v1.Instance\022*google.cloud.memcache.v1." + - "OperationMetadata\022\240\002\n\020UpdateParameters\0221" + - ".google.cloud.memcache.v1.UpdateParamete" + - "rsRequest\032\035.google.longrunning.Operation" + - "\"\271\001\202\323\344\223\002C2>/v1/{name=projects/*/location" + - "s/*/instances/*}:updateParameters:\001*\332A\033n" + - "ame,update_mask,parameters\312AO\n!google.cl" + - "oud.memcache.v1.Instance\022*google.cloud.m" + - "emcache.v1.OperationMetadata\022\345\001\n\016DeleteI" + - "nstance\022/.google.cloud.memcache.v1.Delet" + - "eInstanceRequest\032\035.google.longrunning.Op" + - "eration\"\202\001\202\323\344\223\002/*-/v1/{name=projects/*/l" + - "ocations/*/instances/*}\332A\004name\312AC\n\025googl" + - "e.protobuf.Empty\022*google.cloud.memcache." + - "v1.OperationMetadata\022\231\002\n\017ApplyParameters" + - "\0220.google.cloud.memcache.v1.ApplyParamet" + - "ersRequest\032\035.google.longrunning.Operatio" + - "n\"\264\001\202\323\344\223\002B\"=/v1/{name=projects/*/locatio" + - "ns/*/instances/*}:applyParameters:\001*\332A\027n" + - "ame,node_ids,apply_all\312AO\n!google.cloud." + - "memcache.v1.Instance\022*google.cloud.memca" + - "che.v1.OperationMetadata\032K\312A\027memcache.go" + - "ogleapis.com\322A.https://www.googleapis.co" + - "m/auth/cloud-platformBv\n\034com.google.clou" + - "d.memcache.v1B\022CloudMemcacheProtoP\001Z@goo" + - "gle.golang.org/genproto/googleapis/cloud" + - "/memcache/v1;memcacheb\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.FieldMaskProto.getDescriptor(), - com.google.protobuf.TimestampProto.getDescriptor(), - }); - internal_static_google_cloud_memcache_v1_Instance_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_google_cloud_memcache_v1_Instance_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_memcache_v1_Instance_descriptor, - new java.lang.String[] { "Name", "DisplayName", "Labels", "AuthorizedNetwork", "Zones", "NodeCount", "NodeConfig", "MemcacheVersion", "Parameters", "MemcacheNodes", "CreateTime", "UpdateTime", "State", "MemcacheFullVersion", "InstanceMessages", "DiscoveryEndpoint", }); - internal_static_google_cloud_memcache_v1_Instance_NodeConfig_descriptor = - internal_static_google_cloud_memcache_v1_Instance_descriptor.getNestedTypes().get(0); - internal_static_google_cloud_memcache_v1_Instance_NodeConfig_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_memcache_v1_Instance_NodeConfig_descriptor, - new java.lang.String[] { "CpuCount", "MemorySizeMb", }); - internal_static_google_cloud_memcache_v1_Instance_Node_descriptor = - internal_static_google_cloud_memcache_v1_Instance_descriptor.getNestedTypes().get(1); - internal_static_google_cloud_memcache_v1_Instance_Node_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_memcache_v1_Instance_Node_descriptor, - new java.lang.String[] { "NodeId", "Zone", "State", "Host", "Port", "Parameters", }); - internal_static_google_cloud_memcache_v1_Instance_InstanceMessage_descriptor = - internal_static_google_cloud_memcache_v1_Instance_descriptor.getNestedTypes().get(2); - internal_static_google_cloud_memcache_v1_Instance_InstanceMessage_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_memcache_v1_Instance_InstanceMessage_descriptor, - new java.lang.String[] { "Code", "Message", }); - internal_static_google_cloud_memcache_v1_Instance_LabelsEntry_descriptor = - internal_static_google_cloud_memcache_v1_Instance_descriptor.getNestedTypes().get(3); - internal_static_google_cloud_memcache_v1_Instance_LabelsEntry_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_memcache_v1_Instance_LabelsEntry_descriptor, - new java.lang.String[] { "Key", "Value", }); - internal_static_google_cloud_memcache_v1_ListInstancesRequest_descriptor = - getDescriptor().getMessageTypes().get(1); - internal_static_google_cloud_memcache_v1_ListInstancesRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_memcache_v1_ListInstancesRequest_descriptor, - new java.lang.String[] { "Parent", "PageSize", "PageToken", "Filter", "OrderBy", }); - internal_static_google_cloud_memcache_v1_ListInstancesResponse_descriptor = - getDescriptor().getMessageTypes().get(2); - internal_static_google_cloud_memcache_v1_ListInstancesResponse_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_memcache_v1_ListInstancesResponse_descriptor, - new java.lang.String[] { "Instances", "NextPageToken", "Unreachable", }); - internal_static_google_cloud_memcache_v1_GetInstanceRequest_descriptor = - getDescriptor().getMessageTypes().get(3); - internal_static_google_cloud_memcache_v1_GetInstanceRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_memcache_v1_GetInstanceRequest_descriptor, - new java.lang.String[] { "Name", }); - internal_static_google_cloud_memcache_v1_CreateInstanceRequest_descriptor = - getDescriptor().getMessageTypes().get(4); - internal_static_google_cloud_memcache_v1_CreateInstanceRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_memcache_v1_CreateInstanceRequest_descriptor, - new java.lang.String[] { "Parent", "InstanceId", "Instance", }); - internal_static_google_cloud_memcache_v1_UpdateInstanceRequest_descriptor = - getDescriptor().getMessageTypes().get(5); - internal_static_google_cloud_memcache_v1_UpdateInstanceRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_memcache_v1_UpdateInstanceRequest_descriptor, - new java.lang.String[] { "UpdateMask", "Instance", }); - internal_static_google_cloud_memcache_v1_DeleteInstanceRequest_descriptor = - getDescriptor().getMessageTypes().get(6); - internal_static_google_cloud_memcache_v1_DeleteInstanceRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_memcache_v1_DeleteInstanceRequest_descriptor, - new java.lang.String[] { "Name", }); - internal_static_google_cloud_memcache_v1_ApplyParametersRequest_descriptor = - getDescriptor().getMessageTypes().get(7); - internal_static_google_cloud_memcache_v1_ApplyParametersRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_memcache_v1_ApplyParametersRequest_descriptor, - new java.lang.String[] { "Name", "NodeIds", "ApplyAll", }); - internal_static_google_cloud_memcache_v1_UpdateParametersRequest_descriptor = - getDescriptor().getMessageTypes().get(8); - internal_static_google_cloud_memcache_v1_UpdateParametersRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_memcache_v1_UpdateParametersRequest_descriptor, - new java.lang.String[] { "Name", "UpdateMask", "Parameters", }); - internal_static_google_cloud_memcache_v1_MemcacheParameters_descriptor = - getDescriptor().getMessageTypes().get(9); - internal_static_google_cloud_memcache_v1_MemcacheParameters_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_memcache_v1_MemcacheParameters_descriptor, - new java.lang.String[] { "Id", "Params", }); - internal_static_google_cloud_memcache_v1_MemcacheParameters_ParamsEntry_descriptor = - internal_static_google_cloud_memcache_v1_MemcacheParameters_descriptor.getNestedTypes().get(0); - internal_static_google_cloud_memcache_v1_MemcacheParameters_ParamsEntry_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_memcache_v1_MemcacheParameters_ParamsEntry_descriptor, - new java.lang.String[] { "Key", "Value", }); - internal_static_google_cloud_memcache_v1_OperationMetadata_descriptor = - getDescriptor().getMessageTypes().get(10); - internal_static_google_cloud_memcache_v1_OperationMetadata_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_memcache_v1_OperationMetadata_descriptor, - new java.lang.String[] { "CreateTime", "EndTime", "Target", "Verb", "StatusDetail", "CancelRequested", "ApiVersion", }); - 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.FieldMaskProto.getDescriptor(); - com.google.protobuf.TimestampProto.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/owl-bot-staging/v1/proto-google-cloud-memcache-v1/src/main/java/com/google/cloud/memcache/v1/DeleteInstanceRequestOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-memcache-v1/src/main/java/com/google/cloud/memcache/v1/DeleteInstanceRequestOrBuilder.java deleted file mode 100644 index fb62fb45..00000000 --- a/owl-bot-staging/v1/proto-google-cloud-memcache-v1/src/main/java/com/google/cloud/memcache/v1/DeleteInstanceRequestOrBuilder.java +++ /dev/null @@ -1,33 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/memcache/v1/cloud_memcache.proto - -package com.google.cloud.memcache.v1; - -public interface DeleteInstanceRequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.cloud.memcache.v1.DeleteInstanceRequest) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * Required. Memcached instance resource name in the format:
-   *     `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. Memcached instance resource name in the format:
-   *     `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-memcache-v1/src/main/java/com/google/cloud/memcache/v1/GetInstanceRequestOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-memcache-v1/src/main/java/com/google/cloud/memcache/v1/GetInstanceRequestOrBuilder.java deleted file mode 100644 index 7d11b235..00000000 --- a/owl-bot-staging/v1/proto-google-cloud-memcache-v1/src/main/java/com/google/cloud/memcache/v1/GetInstanceRequestOrBuilder.java +++ /dev/null @@ -1,33 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/memcache/v1/cloud_memcache.proto - -package com.google.cloud.memcache.v1; - -public interface GetInstanceRequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.cloud.memcache.v1.GetInstanceRequest) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * Required. Memcached instance resource name in the format:
-   *     `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. Memcached instance resource name in the format:
-   *     `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/v1beta2/grpc-google-cloud-memcache-v1beta2/src/main/java/com/google/cloud/memcache/v1beta2/CloudMemcacheGrpc.java b/owl-bot-staging/v1beta2/grpc-google-cloud-memcache-v1beta2/src/main/java/com/google/cloud/memcache/v1beta2/CloudMemcacheGrpc.java deleted file mode 100644 index 186e9cf9..00000000 --- a/owl-bot-staging/v1beta2/grpc-google-cloud-memcache-v1beta2/src/main/java/com/google/cloud/memcache/v1beta2/CloudMemcacheGrpc.java +++ /dev/null @@ -1,976 +0,0 @@ -package com.google.cloud.memcache.v1beta2; - -import static io.grpc.MethodDescriptor.generateFullMethodName; - -/** - *
- * Configures and manages Cloud Memorystore for Memcached instances.
- * The `memcache.googleapis.com` service implements the Google Cloud Memorystore
- * for Memcached API and defines the following resource model for managing
- * Memorystore Memcached (also called Memcached below) 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 Memcached instances, named:
- * `/instances/*`
- * * As such, Memcached instances are resources of the form:
- *   `/projects/{project_id}/locations/{location_id}/instances/{instance_id}`
- * Note that location_id must be a GCP `region`; for example:
- * * `projects/my-memcached-project/locations/us-central1/instances/my-memcached`
- * 
- */ -@javax.annotation.Generated( - value = "by gRPC proto compiler", - comments = "Source: google/cloud/memcache/v1beta2/cloud_memcache.proto") -@io.grpc.stub.annotations.GrpcGenerated -public final class CloudMemcacheGrpc { - - private CloudMemcacheGrpc() {} - - public static final String SERVICE_NAME = "google.cloud.memcache.v1beta2.CloudMemcache"; - - // Static method descriptors that strictly reflect the proto. - private static volatile io.grpc.MethodDescriptor getListInstancesMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "ListInstances", - requestType = com.google.cloud.memcache.v1beta2.ListInstancesRequest.class, - responseType = com.google.cloud.memcache.v1beta2.ListInstancesResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getListInstancesMethod() { - io.grpc.MethodDescriptor getListInstancesMethod; - if ((getListInstancesMethod = CloudMemcacheGrpc.getListInstancesMethod) == null) { - synchronized (CloudMemcacheGrpc.class) { - if ((getListInstancesMethod = CloudMemcacheGrpc.getListInstancesMethod) == null) { - CloudMemcacheGrpc.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.memcache.v1beta2.ListInstancesRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.memcache.v1beta2.ListInstancesResponse.getDefaultInstance())) - .setSchemaDescriptor(new CloudMemcacheMethodDescriptorSupplier("ListInstances")) - .build(); - } - } - } - return getListInstancesMethod; - } - - private static volatile io.grpc.MethodDescriptor getGetInstanceMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "GetInstance", - requestType = com.google.cloud.memcache.v1beta2.GetInstanceRequest.class, - responseType = com.google.cloud.memcache.v1beta2.Instance.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getGetInstanceMethod() { - io.grpc.MethodDescriptor getGetInstanceMethod; - if ((getGetInstanceMethod = CloudMemcacheGrpc.getGetInstanceMethod) == null) { - synchronized (CloudMemcacheGrpc.class) { - if ((getGetInstanceMethod = CloudMemcacheGrpc.getGetInstanceMethod) == null) { - CloudMemcacheGrpc.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.memcache.v1beta2.GetInstanceRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.memcache.v1beta2.Instance.getDefaultInstance())) - .setSchemaDescriptor(new CloudMemcacheMethodDescriptorSupplier("GetInstance")) - .build(); - } - } - } - return getGetInstanceMethod; - } - - private static volatile io.grpc.MethodDescriptor getCreateInstanceMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "CreateInstance", - requestType = com.google.cloud.memcache.v1beta2.CreateInstanceRequest.class, - responseType = com.google.longrunning.Operation.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getCreateInstanceMethod() { - io.grpc.MethodDescriptor getCreateInstanceMethod; - if ((getCreateInstanceMethod = CloudMemcacheGrpc.getCreateInstanceMethod) == null) { - synchronized (CloudMemcacheGrpc.class) { - if ((getCreateInstanceMethod = CloudMemcacheGrpc.getCreateInstanceMethod) == null) { - CloudMemcacheGrpc.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.memcache.v1beta2.CreateInstanceRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.longrunning.Operation.getDefaultInstance())) - .setSchemaDescriptor(new CloudMemcacheMethodDescriptorSupplier("CreateInstance")) - .build(); - } - } - } - return getCreateInstanceMethod; - } - - private static volatile io.grpc.MethodDescriptor getUpdateInstanceMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "UpdateInstance", - requestType = com.google.cloud.memcache.v1beta2.UpdateInstanceRequest.class, - responseType = com.google.longrunning.Operation.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getUpdateInstanceMethod() { - io.grpc.MethodDescriptor getUpdateInstanceMethod; - if ((getUpdateInstanceMethod = CloudMemcacheGrpc.getUpdateInstanceMethod) == null) { - synchronized (CloudMemcacheGrpc.class) { - if ((getUpdateInstanceMethod = CloudMemcacheGrpc.getUpdateInstanceMethod) == null) { - CloudMemcacheGrpc.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.memcache.v1beta2.UpdateInstanceRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.longrunning.Operation.getDefaultInstance())) - .setSchemaDescriptor(new CloudMemcacheMethodDescriptorSupplier("UpdateInstance")) - .build(); - } - } - } - return getUpdateInstanceMethod; - } - - private static volatile io.grpc.MethodDescriptor getUpdateParametersMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "UpdateParameters", - requestType = com.google.cloud.memcache.v1beta2.UpdateParametersRequest.class, - responseType = com.google.longrunning.Operation.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getUpdateParametersMethod() { - io.grpc.MethodDescriptor getUpdateParametersMethod; - if ((getUpdateParametersMethod = CloudMemcacheGrpc.getUpdateParametersMethod) == null) { - synchronized (CloudMemcacheGrpc.class) { - if ((getUpdateParametersMethod = CloudMemcacheGrpc.getUpdateParametersMethod) == null) { - CloudMemcacheGrpc.getUpdateParametersMethod = getUpdateParametersMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "UpdateParameters")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.memcache.v1beta2.UpdateParametersRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.longrunning.Operation.getDefaultInstance())) - .setSchemaDescriptor(new CloudMemcacheMethodDescriptorSupplier("UpdateParameters")) - .build(); - } - } - } - return getUpdateParametersMethod; - } - - private static volatile io.grpc.MethodDescriptor getDeleteInstanceMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "DeleteInstance", - requestType = com.google.cloud.memcache.v1beta2.DeleteInstanceRequest.class, - responseType = com.google.longrunning.Operation.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getDeleteInstanceMethod() { - io.grpc.MethodDescriptor getDeleteInstanceMethod; - if ((getDeleteInstanceMethod = CloudMemcacheGrpc.getDeleteInstanceMethod) == null) { - synchronized (CloudMemcacheGrpc.class) { - if ((getDeleteInstanceMethod = CloudMemcacheGrpc.getDeleteInstanceMethod) == null) { - CloudMemcacheGrpc.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.memcache.v1beta2.DeleteInstanceRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.longrunning.Operation.getDefaultInstance())) - .setSchemaDescriptor(new CloudMemcacheMethodDescriptorSupplier("DeleteInstance")) - .build(); - } - } - } - return getDeleteInstanceMethod; - } - - private static volatile io.grpc.MethodDescriptor getApplyParametersMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "ApplyParameters", - requestType = com.google.cloud.memcache.v1beta2.ApplyParametersRequest.class, - responseType = com.google.longrunning.Operation.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getApplyParametersMethod() { - io.grpc.MethodDescriptor getApplyParametersMethod; - if ((getApplyParametersMethod = CloudMemcacheGrpc.getApplyParametersMethod) == null) { - synchronized (CloudMemcacheGrpc.class) { - if ((getApplyParametersMethod = CloudMemcacheGrpc.getApplyParametersMethod) == null) { - CloudMemcacheGrpc.getApplyParametersMethod = getApplyParametersMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ApplyParameters")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.memcache.v1beta2.ApplyParametersRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.longrunning.Operation.getDefaultInstance())) - .setSchemaDescriptor(new CloudMemcacheMethodDescriptorSupplier("ApplyParameters")) - .build(); - } - } - } - return getApplyParametersMethod; - } - - private static volatile io.grpc.MethodDescriptor getApplySoftwareUpdateMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "ApplySoftwareUpdate", - requestType = com.google.cloud.memcache.v1beta2.ApplySoftwareUpdateRequest.class, - responseType = com.google.longrunning.Operation.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getApplySoftwareUpdateMethod() { - io.grpc.MethodDescriptor getApplySoftwareUpdateMethod; - if ((getApplySoftwareUpdateMethod = CloudMemcacheGrpc.getApplySoftwareUpdateMethod) == null) { - synchronized (CloudMemcacheGrpc.class) { - if ((getApplySoftwareUpdateMethod = CloudMemcacheGrpc.getApplySoftwareUpdateMethod) == null) { - CloudMemcacheGrpc.getApplySoftwareUpdateMethod = getApplySoftwareUpdateMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ApplySoftwareUpdate")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.memcache.v1beta2.ApplySoftwareUpdateRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.longrunning.Operation.getDefaultInstance())) - .setSchemaDescriptor(new CloudMemcacheMethodDescriptorSupplier("ApplySoftwareUpdate")) - .build(); - } - } - } - return getApplySoftwareUpdateMethod; - } - - /** - * Creates a new async stub that supports all call types for the service - */ - public static CloudMemcacheStub newStub(io.grpc.Channel channel) { - io.grpc.stub.AbstractStub.StubFactory factory = - new io.grpc.stub.AbstractStub.StubFactory() { - @java.lang.Override - public CloudMemcacheStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new CloudMemcacheStub(channel, callOptions); - } - }; - return CloudMemcacheStub.newStub(factory, channel); - } - - /** - * Creates a new blocking-style stub that supports unary and streaming output calls on the service - */ - public static CloudMemcacheBlockingStub newBlockingStub( - io.grpc.Channel channel) { - io.grpc.stub.AbstractStub.StubFactory factory = - new io.grpc.stub.AbstractStub.StubFactory() { - @java.lang.Override - public CloudMemcacheBlockingStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new CloudMemcacheBlockingStub(channel, callOptions); - } - }; - return CloudMemcacheBlockingStub.newStub(factory, channel); - } - - /** - * Creates a new ListenableFuture-style stub that supports unary calls on the service - */ - public static CloudMemcacheFutureStub newFutureStub( - io.grpc.Channel channel) { - io.grpc.stub.AbstractStub.StubFactory factory = - new io.grpc.stub.AbstractStub.StubFactory() { - @java.lang.Override - public CloudMemcacheFutureStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new CloudMemcacheFutureStub(channel, callOptions); - } - }; - return CloudMemcacheFutureStub.newStub(factory, channel); - } - - /** - *
-   * Configures and manages Cloud Memorystore for Memcached instances.
-   * The `memcache.googleapis.com` service implements the Google Cloud Memorystore
-   * for Memcached API and defines the following resource model for managing
-   * Memorystore Memcached (also called Memcached below) 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 Memcached instances, named:
-   * `/instances/*`
-   * * As such, Memcached instances are resources of the form:
-   *   `/projects/{project_id}/locations/{location_id}/instances/{instance_id}`
-   * Note that location_id must be a GCP `region`; for example:
-   * * `projects/my-memcached-project/locations/us-central1/instances/my-memcached`
-   * 
- */ - public static abstract class CloudMemcacheImplBase implements io.grpc.BindableService { - - /** - *
-     * Lists Instances in a given location.
-     * 
- */ - public void listInstances(com.google.cloud.memcache.v1beta2.ListInstancesRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getListInstancesMethod(), responseObserver); - } - - /** - *
-     * Gets details of a single Instance.
-     * 
- */ - public void getInstance(com.google.cloud.memcache.v1beta2.GetInstanceRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetInstanceMethod(), responseObserver); - } - - /** - *
-     * Creates a new Instance in a given location.
-     * 
- */ - public void createInstance(com.google.cloud.memcache.v1beta2.CreateInstanceRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getCreateInstanceMethod(), responseObserver); - } - - /** - *
-     * Updates an existing Instance in a given project and location.
-     * 
- */ - public void updateInstance(com.google.cloud.memcache.v1beta2.UpdateInstanceRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getUpdateInstanceMethod(), responseObserver); - } - - /** - *
-     * Updates the defined Memcached parameters for an existing instance.
-     * This method only stages the parameters, it must be followed by
-     * `ApplyParameters` to apply the parameters to nodes of the Memcached
-     * instance.
-     * 
- */ - public void updateParameters(com.google.cloud.memcache.v1beta2.UpdateParametersRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getUpdateParametersMethod(), responseObserver); - } - - /** - *
-     * Deletes a single Instance.
-     * 
- */ - public void deleteInstance(com.google.cloud.memcache.v1beta2.DeleteInstanceRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getDeleteInstanceMethod(), responseObserver); - } - - /** - *
-     * `ApplyParameters` restarts the set of specified nodes in order to update
-     * them to the current set of parameters for the Memcached Instance.
-     * 
- */ - public void applyParameters(com.google.cloud.memcache.v1beta2.ApplyParametersRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getApplyParametersMethod(), responseObserver); - } - - /** - *
-     * Updates software on the selected nodes of the Instance.
-     * 
- */ - public void applySoftwareUpdate(com.google.cloud.memcache.v1beta2.ApplySoftwareUpdateRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getApplySoftwareUpdateMethod(), responseObserver); - } - - @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.memcache.v1beta2.ListInstancesRequest, - com.google.cloud.memcache.v1beta2.ListInstancesResponse>( - this, METHODID_LIST_INSTANCES))) - .addMethod( - getGetInstanceMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.memcache.v1beta2.GetInstanceRequest, - com.google.cloud.memcache.v1beta2.Instance>( - this, METHODID_GET_INSTANCE))) - .addMethod( - getCreateInstanceMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.memcache.v1beta2.CreateInstanceRequest, - com.google.longrunning.Operation>( - this, METHODID_CREATE_INSTANCE))) - .addMethod( - getUpdateInstanceMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.memcache.v1beta2.UpdateInstanceRequest, - com.google.longrunning.Operation>( - this, METHODID_UPDATE_INSTANCE))) - .addMethod( - getUpdateParametersMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.memcache.v1beta2.UpdateParametersRequest, - com.google.longrunning.Operation>( - this, METHODID_UPDATE_PARAMETERS))) - .addMethod( - getDeleteInstanceMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.memcache.v1beta2.DeleteInstanceRequest, - com.google.longrunning.Operation>( - this, METHODID_DELETE_INSTANCE))) - .addMethod( - getApplyParametersMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.memcache.v1beta2.ApplyParametersRequest, - com.google.longrunning.Operation>( - this, METHODID_APPLY_PARAMETERS))) - .addMethod( - getApplySoftwareUpdateMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.memcache.v1beta2.ApplySoftwareUpdateRequest, - com.google.longrunning.Operation>( - this, METHODID_APPLY_SOFTWARE_UPDATE))) - .build(); - } - } - - /** - *
-   * Configures and manages Cloud Memorystore for Memcached instances.
-   * The `memcache.googleapis.com` service implements the Google Cloud Memorystore
-   * for Memcached API and defines the following resource model for managing
-   * Memorystore Memcached (also called Memcached below) 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 Memcached instances, named:
-   * `/instances/*`
-   * * As such, Memcached instances are resources of the form:
-   *   `/projects/{project_id}/locations/{location_id}/instances/{instance_id}`
-   * Note that location_id must be a GCP `region`; for example:
-   * * `projects/my-memcached-project/locations/us-central1/instances/my-memcached`
-   * 
- */ - public static final class CloudMemcacheStub extends io.grpc.stub.AbstractAsyncStub { - private CloudMemcacheStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - super(channel, callOptions); - } - - @java.lang.Override - protected CloudMemcacheStub build( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new CloudMemcacheStub(channel, callOptions); - } - - /** - *
-     * Lists Instances in a given location.
-     * 
- */ - public void listInstances(com.google.cloud.memcache.v1beta2.ListInstancesRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getListInstancesMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Gets details of a single Instance.
-     * 
- */ - public void getInstance(com.google.cloud.memcache.v1beta2.GetInstanceRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getGetInstanceMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Creates a new Instance in a given location.
-     * 
- */ - public void createInstance(com.google.cloud.memcache.v1beta2.CreateInstanceRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getCreateInstanceMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Updates an existing Instance in a given project and location.
-     * 
- */ - public void updateInstance(com.google.cloud.memcache.v1beta2.UpdateInstanceRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getUpdateInstanceMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Updates the defined Memcached parameters for an existing instance.
-     * This method only stages the parameters, it must be followed by
-     * `ApplyParameters` to apply the parameters to nodes of the Memcached
-     * instance.
-     * 
- */ - public void updateParameters(com.google.cloud.memcache.v1beta2.UpdateParametersRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getUpdateParametersMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Deletes a single Instance.
-     * 
- */ - public void deleteInstance(com.google.cloud.memcache.v1beta2.DeleteInstanceRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getDeleteInstanceMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * `ApplyParameters` restarts the set of specified nodes in order to update
-     * them to the current set of parameters for the Memcached Instance.
-     * 
- */ - public void applyParameters(com.google.cloud.memcache.v1beta2.ApplyParametersRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getApplyParametersMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Updates software on the selected nodes of the Instance.
-     * 
- */ - public void applySoftwareUpdate(com.google.cloud.memcache.v1beta2.ApplySoftwareUpdateRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getApplySoftwareUpdateMethod(), getCallOptions()), request, responseObserver); - } - } - - /** - *
-   * Configures and manages Cloud Memorystore for Memcached instances.
-   * The `memcache.googleapis.com` service implements the Google Cloud Memorystore
-   * for Memcached API and defines the following resource model for managing
-   * Memorystore Memcached (also called Memcached below) 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 Memcached instances, named:
-   * `/instances/*`
-   * * As such, Memcached instances are resources of the form:
-   *   `/projects/{project_id}/locations/{location_id}/instances/{instance_id}`
-   * Note that location_id must be a GCP `region`; for example:
-   * * `projects/my-memcached-project/locations/us-central1/instances/my-memcached`
-   * 
- */ - public static final class CloudMemcacheBlockingStub extends io.grpc.stub.AbstractBlockingStub { - private CloudMemcacheBlockingStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - super(channel, callOptions); - } - - @java.lang.Override - protected CloudMemcacheBlockingStub build( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new CloudMemcacheBlockingStub(channel, callOptions); - } - - /** - *
-     * Lists Instances in a given location.
-     * 
- */ - public com.google.cloud.memcache.v1beta2.ListInstancesResponse listInstances(com.google.cloud.memcache.v1beta2.ListInstancesRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getListInstancesMethod(), getCallOptions(), request); - } - - /** - *
-     * Gets details of a single Instance.
-     * 
- */ - public com.google.cloud.memcache.v1beta2.Instance getInstance(com.google.cloud.memcache.v1beta2.GetInstanceRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getGetInstanceMethod(), getCallOptions(), request); - } - - /** - *
-     * Creates a new Instance in a given location.
-     * 
- */ - public com.google.longrunning.Operation createInstance(com.google.cloud.memcache.v1beta2.CreateInstanceRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getCreateInstanceMethod(), getCallOptions(), request); - } - - /** - *
-     * Updates an existing Instance in a given project and location.
-     * 
- */ - public com.google.longrunning.Operation updateInstance(com.google.cloud.memcache.v1beta2.UpdateInstanceRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getUpdateInstanceMethod(), getCallOptions(), request); - } - - /** - *
-     * Updates the defined Memcached parameters for an existing instance.
-     * This method only stages the parameters, it must be followed by
-     * `ApplyParameters` to apply the parameters to nodes of the Memcached
-     * instance.
-     * 
- */ - public com.google.longrunning.Operation updateParameters(com.google.cloud.memcache.v1beta2.UpdateParametersRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getUpdateParametersMethod(), getCallOptions(), request); - } - - /** - *
-     * Deletes a single Instance.
-     * 
- */ - public com.google.longrunning.Operation deleteInstance(com.google.cloud.memcache.v1beta2.DeleteInstanceRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getDeleteInstanceMethod(), getCallOptions(), request); - } - - /** - *
-     * `ApplyParameters` restarts the set of specified nodes in order to update
-     * them to the current set of parameters for the Memcached Instance.
-     * 
- */ - public com.google.longrunning.Operation applyParameters(com.google.cloud.memcache.v1beta2.ApplyParametersRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getApplyParametersMethod(), getCallOptions(), request); - } - - /** - *
-     * Updates software on the selected nodes of the Instance.
-     * 
- */ - public com.google.longrunning.Operation applySoftwareUpdate(com.google.cloud.memcache.v1beta2.ApplySoftwareUpdateRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getApplySoftwareUpdateMethod(), getCallOptions(), request); - } - } - - /** - *
-   * Configures and manages Cloud Memorystore for Memcached instances.
-   * The `memcache.googleapis.com` service implements the Google Cloud Memorystore
-   * for Memcached API and defines the following resource model for managing
-   * Memorystore Memcached (also called Memcached below) 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 Memcached instances, named:
-   * `/instances/*`
-   * * As such, Memcached instances are resources of the form:
-   *   `/projects/{project_id}/locations/{location_id}/instances/{instance_id}`
-   * Note that location_id must be a GCP `region`; for example:
-   * * `projects/my-memcached-project/locations/us-central1/instances/my-memcached`
-   * 
- */ - public static final class CloudMemcacheFutureStub extends io.grpc.stub.AbstractFutureStub { - private CloudMemcacheFutureStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - super(channel, callOptions); - } - - @java.lang.Override - protected CloudMemcacheFutureStub build( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new CloudMemcacheFutureStub(channel, callOptions); - } - - /** - *
-     * Lists Instances in a given location.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture listInstances( - com.google.cloud.memcache.v1beta2.ListInstancesRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getListInstancesMethod(), getCallOptions()), request); - } - - /** - *
-     * Gets details of a single Instance.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture getInstance( - com.google.cloud.memcache.v1beta2.GetInstanceRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getGetInstanceMethod(), getCallOptions()), request); - } - - /** - *
-     * Creates a new Instance in a given location.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture createInstance( - com.google.cloud.memcache.v1beta2.CreateInstanceRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getCreateInstanceMethod(), getCallOptions()), request); - } - - /** - *
-     * Updates an existing Instance in a given project and location.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture updateInstance( - com.google.cloud.memcache.v1beta2.UpdateInstanceRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getUpdateInstanceMethod(), getCallOptions()), request); - } - - /** - *
-     * Updates the defined Memcached parameters for an existing instance.
-     * This method only stages the parameters, it must be followed by
-     * `ApplyParameters` to apply the parameters to nodes of the Memcached
-     * instance.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture updateParameters( - com.google.cloud.memcache.v1beta2.UpdateParametersRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getUpdateParametersMethod(), getCallOptions()), request); - } - - /** - *
-     * Deletes a single Instance.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture deleteInstance( - com.google.cloud.memcache.v1beta2.DeleteInstanceRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getDeleteInstanceMethod(), getCallOptions()), request); - } - - /** - *
-     * `ApplyParameters` restarts the set of specified nodes in order to update
-     * them to the current set of parameters for the Memcached Instance.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture applyParameters( - com.google.cloud.memcache.v1beta2.ApplyParametersRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getApplyParametersMethod(), getCallOptions()), request); - } - - /** - *
-     * Updates software on the selected nodes of the Instance.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture applySoftwareUpdate( - com.google.cloud.memcache.v1beta2.ApplySoftwareUpdateRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getApplySoftwareUpdateMethod(), getCallOptions()), request); - } - } - - private static final int METHODID_LIST_INSTANCES = 0; - private static final int METHODID_GET_INSTANCE = 1; - private static final int METHODID_CREATE_INSTANCE = 2; - private static final int METHODID_UPDATE_INSTANCE = 3; - private static final int METHODID_UPDATE_PARAMETERS = 4; - private static final int METHODID_DELETE_INSTANCE = 5; - private static final int METHODID_APPLY_PARAMETERS = 6; - private static final int METHODID_APPLY_SOFTWARE_UPDATE = 7; - - 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 CloudMemcacheImplBase serviceImpl; - private final int methodId; - - MethodHandlers(CloudMemcacheImplBase serviceImpl, int methodId) { - this.serviceImpl = serviceImpl; - this.methodId = methodId; - } - - @java.lang.Override - @java.lang.SuppressWarnings("unchecked") - public void invoke(Req request, io.grpc.stub.StreamObserver responseObserver) { - switch (methodId) { - case METHODID_LIST_INSTANCES: - serviceImpl.listInstances((com.google.cloud.memcache.v1beta2.ListInstancesRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_GET_INSTANCE: - serviceImpl.getInstance((com.google.cloud.memcache.v1beta2.GetInstanceRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_CREATE_INSTANCE: - serviceImpl.createInstance((com.google.cloud.memcache.v1beta2.CreateInstanceRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_UPDATE_INSTANCE: - serviceImpl.updateInstance((com.google.cloud.memcache.v1beta2.UpdateInstanceRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_UPDATE_PARAMETERS: - serviceImpl.updateParameters((com.google.cloud.memcache.v1beta2.UpdateParametersRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_DELETE_INSTANCE: - serviceImpl.deleteInstance((com.google.cloud.memcache.v1beta2.DeleteInstanceRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_APPLY_PARAMETERS: - serviceImpl.applyParameters((com.google.cloud.memcache.v1beta2.ApplyParametersRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_APPLY_SOFTWARE_UPDATE: - serviceImpl.applySoftwareUpdate((com.google.cloud.memcache.v1beta2.ApplySoftwareUpdateRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - default: - throw new AssertionError(); - } - } - - @java.lang.Override - @java.lang.SuppressWarnings("unchecked") - public io.grpc.stub.StreamObserver invoke( - io.grpc.stub.StreamObserver responseObserver) { - switch (methodId) { - default: - throw new AssertionError(); - } - } - } - - private static abstract class CloudMemcacheBaseDescriptorSupplier - implements io.grpc.protobuf.ProtoFileDescriptorSupplier, io.grpc.protobuf.ProtoServiceDescriptorSupplier { - CloudMemcacheBaseDescriptorSupplier() {} - - @java.lang.Override - public com.google.protobuf.Descriptors.FileDescriptor getFileDescriptor() { - return com.google.cloud.memcache.v1beta2.CloudMemcacheProto.getDescriptor(); - } - - @java.lang.Override - public com.google.protobuf.Descriptors.ServiceDescriptor getServiceDescriptor() { - return getFileDescriptor().findServiceByName("CloudMemcache"); - } - } - - private static final class CloudMemcacheFileDescriptorSupplier - extends CloudMemcacheBaseDescriptorSupplier { - CloudMemcacheFileDescriptorSupplier() {} - } - - private static final class CloudMemcacheMethodDescriptorSupplier - extends CloudMemcacheBaseDescriptorSupplier - implements io.grpc.protobuf.ProtoMethodDescriptorSupplier { - private final String methodName; - - CloudMemcacheMethodDescriptorSupplier(String methodName) { - this.methodName = methodName; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.MethodDescriptor getMethodDescriptor() { - return getServiceDescriptor().findMethodByName(methodName); - } - } - - private static volatile io.grpc.ServiceDescriptor serviceDescriptor; - - public static io.grpc.ServiceDescriptor getServiceDescriptor() { - io.grpc.ServiceDescriptor result = serviceDescriptor; - if (result == null) { - synchronized (CloudMemcacheGrpc.class) { - result = serviceDescriptor; - if (result == null) { - serviceDescriptor = result = io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) - .setSchemaDescriptor(new CloudMemcacheFileDescriptorSupplier()) - .addMethod(getListInstancesMethod()) - .addMethod(getGetInstanceMethod()) - .addMethod(getCreateInstanceMethod()) - .addMethod(getUpdateInstanceMethod()) - .addMethod(getUpdateParametersMethod()) - .addMethod(getDeleteInstanceMethod()) - .addMethod(getApplyParametersMethod()) - .addMethod(getApplySoftwareUpdateMethod()) - .build(); - } - } - } - return result; - } -} diff --git a/owl-bot-staging/v1beta2/proto-google-cloud-memcache-v1beta2/src/main/java/com/google/cloud/memcache/v1beta2/CloudMemcacheProto.java b/owl-bot-staging/v1beta2/proto-google-cloud-memcache-v1beta2/src/main/java/com/google/cloud/memcache/v1beta2/CloudMemcacheProto.java deleted file mode 100644 index 0be727f3..00000000 --- a/owl-bot-staging/v1beta2/proto-google-cloud-memcache-v1beta2/src/main/java/com/google/cloud/memcache/v1beta2/CloudMemcacheProto.java +++ /dev/null @@ -1,438 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/memcache/v1beta2/cloud_memcache.proto - -package com.google.cloud.memcache.v1beta2; - -public final class CloudMemcacheProto { - private CloudMemcacheProto() {} - 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_memcache_v1beta2_Instance_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_memcache_v1beta2_Instance_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_memcache_v1beta2_Instance_NodeConfig_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_memcache_v1beta2_Instance_NodeConfig_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_memcache_v1beta2_Instance_Node_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_memcache_v1beta2_Instance_Node_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_memcache_v1beta2_Instance_InstanceMessage_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_memcache_v1beta2_Instance_InstanceMessage_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_memcache_v1beta2_Instance_LabelsEntry_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_memcache_v1beta2_Instance_LabelsEntry_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_memcache_v1beta2_ListInstancesRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_memcache_v1beta2_ListInstancesRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_memcache_v1beta2_ListInstancesResponse_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_memcache_v1beta2_ListInstancesResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_memcache_v1beta2_GetInstanceRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_memcache_v1beta2_GetInstanceRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_memcache_v1beta2_CreateInstanceRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_memcache_v1beta2_CreateInstanceRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_memcache_v1beta2_UpdateInstanceRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_memcache_v1beta2_UpdateInstanceRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_memcache_v1beta2_DeleteInstanceRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_memcache_v1beta2_DeleteInstanceRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_memcache_v1beta2_ApplyParametersRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_memcache_v1beta2_ApplyParametersRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_memcache_v1beta2_UpdateParametersRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_memcache_v1beta2_UpdateParametersRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_memcache_v1beta2_ApplySoftwareUpdateRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_memcache_v1beta2_ApplySoftwareUpdateRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_memcache_v1beta2_MemcacheParameters_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_memcache_v1beta2_MemcacheParameters_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_memcache_v1beta2_MemcacheParameters_ParamsEntry_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_memcache_v1beta2_MemcacheParameters_ParamsEntry_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_memcache_v1beta2_OperationMetadata_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_memcache_v1beta2_OperationMetadata_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_memcache_v1beta2_LocationMetadata_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_memcache_v1beta2_LocationMetadata_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_memcache_v1beta2_LocationMetadata_AvailableZonesEntry_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_memcache_v1beta2_LocationMetadata_AvailableZonesEntry_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_memcache_v1beta2_ZoneMetadata_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_memcache_v1beta2_ZoneMetadata_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { - return descriptor; - } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; - static { - java.lang.String[] descriptorData = { - "\n2google/cloud/memcache/v1beta2/cloud_me" + - "mcache.proto\022\035google.cloud.memcache.v1be" + - "ta2\032\034google/api/annotations.proto\032\027googl" + - "e/api/client.proto\032\037google/api/field_beh" + - "avior.proto\032\031google/api/resource.proto\032#" + - "google/longrunning/operations.proto\032 goo" + - "gle/protobuf/field_mask.proto\032\037google/pr" + - "otobuf/timestamp.proto\"\223\r\n\010Instance\022\021\n\004n" + - "ame\030\001 \001(\tB\003\340A\002\022\024\n\014display_name\030\002 \001(\t\022C\n\006" + - "labels\030\003 \003(\01323.google.cloud.memcache.v1b" + - "eta2.Instance.LabelsEntry\022\032\n\022authorized_" + - "network\030\004 \001(\t\022\r\n\005zones\030\005 \003(\t\022\027\n\nnode_cou" + - "nt\030\006 \001(\005B\003\340A\002\022L\n\013node_config\030\007 \001(\01322.goo" + - "gle.cloud.memcache.v1beta2.Instance.Node" + - "ConfigB\003\340A\002\022H\n\020memcache_version\030\t \001(\0162.." + - "google.cloud.memcache.v1beta2.MemcacheVe" + - "rsion\022E\n\nparameters\030\013 \001(\01321.google.cloud" + - ".memcache.v1beta2.MemcacheParameters\022I\n\016" + - "memcache_nodes\030\014 \003(\0132,.google.cloud.memc" + - "ache.v1beta2.Instance.NodeB\003\340A\003\0224\n\013creat" + - "e_time\030\r \001(\0132\032.google.protobuf.Timestamp" + - "B\003\340A\003\0224\n\013update_time\030\016 \001(\0132\032.google.prot" + - "obuf.TimestampB\003\340A\003\022A\n\005state\030\017 \001(\0162-.goo" + - "gle.cloud.memcache.v1beta2.Instance.Stat" + - "eB\003\340A\003\022\"\n\025memcache_full_version\030\022 \001(\tB\003\340" + - "A\003\022R\n\021instance_messages\030\023 \003(\01327.google.c" + - "loud.memcache.v1beta2.Instance.InstanceM" + - "essage\022\037\n\022discovery_endpoint\030\024 \001(\tB\003\340A\003\022" + - "\035\n\020update_available\030\025 \001(\010B\003\340A\003\032A\n\nNodeCo" + - "nfig\022\026\n\tcpu_count\030\001 \001(\005B\003\340A\002\022\033\n\016memory_s" + - "ize_mb\030\002 \001(\005B\003\340A\002\032\330\002\n\004Node\022\024\n\007node_id\030\001 " + - "\001(\tB\003\340A\003\022\021\n\004zone\030\002 \001(\tB\003\340A\003\022F\n\005state\030\003 \001" + - "(\01622.google.cloud.memcache.v1beta2.Insta" + - "nce.Node.StateB\003\340A\003\022\021\n\004host\030\004 \001(\tB\003\340A\003\022\021" + - "\n\004port\030\005 \001(\005B\003\340A\003\022E\n\nparameters\030\006 \001(\01321." + - "google.cloud.memcache.v1beta2.MemcachePa" + - "rameters\022\035\n\020update_available\030\007 \001(\010B\003\340A\003\"" + - "S\n\005State\022\025\n\021STATE_UNSPECIFIED\020\000\022\014\n\010CREAT" + - "ING\020\001\022\t\n\005READY\020\002\022\014\n\010DELETING\020\003\022\014\n\010UPDATI" + - "NG\020\004\032\256\001\n\017InstanceMessage\022J\n\004code\030\001 \001(\0162<" + - ".google.cloud.memcache.v1beta2.Instance." + - "InstanceMessage.Code\022\017\n\007message\030\002 \001(\t\">\n" + - "\004Code\022\024\n\020CODE_UNSPECIFIED\020\000\022 \n\034ZONE_DIST" + - "RIBUTION_UNBALANCED\020\001\032-\n\013LabelsEntry\022\013\n\003" + - "key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\"a\n\005State\022\025\n" + - "\021STATE_UNSPECIFIED\020\000\022\014\n\010CREATING\020\001\022\t\n\005RE" + - "ADY\020\002\022\014\n\010DELETING\020\004\022\032\n\026PERFORMING_MAINTE" + - "NANCE\020\005:c\352A`\n memcache.googleapis.com/In" + - "stance\022\n\010resource\030\003" + - " \001(\0132\'.google.cloud.memcache.v1beta2.Ins" + - "tanceB\003\340A\002\"\215\001\n\025UpdateInstanceRequest\0224\n\013" + - "update_mask\030\001 \001(\0132\032.google.protobuf.Fiel" + - "dMaskB\003\340A\002\022>\n\010resource\030\002 \001(\0132\'.google.cl" + - "oud.memcache.v1beta2.InstanceB\003\340A\002\"O\n\025De" + - "leteInstanceRequest\0226\n\004name\030\001 \001(\tB(\340A\002\372A" + - "\"\n memcache.googleapis.com/Instance\"u\n\026A" + - "pplyParametersRequest\0226\n\004name\030\001 \001(\tB(\340A\002" + - "\372A\"\n memcache.googleapis.com/Instance\022\020\n" + - "\010node_ids\030\002 \003(\t\022\021\n\tapply_all\030\003 \001(\010\"\316\001\n\027U" + - "pdateParametersRequest\0226\n\004name\030\001 \001(\tB(\340A" + - "\002\372A\"\n memcache.googleapis.com/Instance\0224" + - "\n\013update_mask\030\002 \001(\0132\032.google.protobuf.Fi" + - "eldMaskB\003\340A\002\022E\n\nparameters\030\003 \001(\01321.googl" + - "e.cloud.memcache.v1beta2.MemcacheParamet" + - "ers\"}\n\032ApplySoftwareUpdateRequest\022:\n\010ins" + - "tance\030\001 \001(\tB(\340A\002\372A\"\n memcache.googleapis" + - ".com/Instance\022\020\n\010node_ids\030\002 \003(\t\022\021\n\tapply" + - "_all\030\003 \001(\010\"\243\001\n\022MemcacheParameters\022\017\n\002id\030" + - "\001 \001(\tB\003\340A\003\022M\n\006params\030\003 \003(\0132=.google.clou" + - "d.memcache.v1beta2.MemcacheParameters.Pa" + - "ramsEntry\032-\n\013ParamsEntry\022\013\n\003key\030\001 \001(\t\022\r\n" + - "\005value\030\002 \001(\t:\0028\001\"\371\001\n\021OperationMetadata\0224" + - "\n\013create_time\030\001 \001(\0132\032.google.protobuf.Ti" + - "mestampB\003\340A\003\0221\n\010end_time\030\002 \001(\0132\032.google." + - "protobuf.TimestampB\003\340A\003\022\023\n\006target\030\003 \001(\tB" + - "\003\340A\003\022\021\n\004verb\030\004 \001(\tB\003\340A\003\022\032\n\rstatus_detail" + - "\030\005 \001(\tB\003\340A\003\022\035\n\020cancel_requested\030\006 \001(\010B\003\340" + - "A\003\022\030\n\013api_version\030\007 \001(\tB\003\340A\003\"\331\001\n\020Locatio" + - "nMetadata\022a\n\017available_zones\030\001 \003(\0132C.goo" + - "gle.cloud.memcache.v1beta2.LocationMetad" + - "ata.AvailableZonesEntryB\003\340A\003\032b\n\023Availabl" + - "eZonesEntry\022\013\n\003key\030\001 \001(\t\022:\n\005value\030\002 \001(\0132" + - "+.google.cloud.memcache.v1beta2.ZoneMeta" + - "data:\0028\001\"\016\n\014ZoneMetadata*E\n\017MemcacheVers" + - "ion\022 \n\034MEMCACHE_VERSION_UNSPECIFIED\020\000\022\020\n" + - "\014MEMCACHE_1_5\020\0012\303\021\n\rCloudMemcache\022\277\001\n\rLi" + - "stInstances\0223.google.cloud.memcache.v1be" + - "ta2.ListInstancesRequest\0324.google.cloud." + - "memcache.v1beta2.ListInstancesResponse\"C" + - "\202\323\344\223\0024\0222/v1beta2/{parent=projects/*/loca" + - "tions/*}/instances\332A\006parent\022\254\001\n\013GetInsta" + - "nce\0221.google.cloud.memcache.v1beta2.GetI" + - "nstanceRequest\032\'.google.cloud.memcache.v" + - "1beta2.Instance\"A\202\323\344\223\0024\0222/v1beta2/{name=" + - "projects/*/locations/*/instances/*}\332A\004na" + - "me\022\246\002\n\016CreateInstance\0224.google.cloud.mem" + - "cache.v1beta2.CreateInstanceRequest\032\035.go" + - "ogle.longrunning.Operation\"\276\001\202\323\344\223\002>\"2/v1" + - "beta2/{parent=projects/*/locations/*}/in" + - "stances:\010resource\332A\033parent,instance_id,r" + - "esource\312AY\n&google.cloud.memcache.v1beta" + - "2.Instance\022/google.cloud.memcache.v1beta" + - "2.OperationMetadata\022\250\002\n\016UpdateInstance\0224" + - ".google.cloud.memcache.v1beta2.UpdateIns" + - "tanceRequest\032\035.google.longrunning.Operat" + - "ion\"\300\001\202\323\344\223\002G2;/v1beta2/{resource.name=pr" + - "ojects/*/locations/*/instances/*}:\010resou" + - "rce\332A\024update_mask,resource\312AY\n&google.cl" + - "oud.memcache.v1beta2.Instance\022/google.cl" + - "oud.memcache.v1beta2.OperationMetadata\022\264" + - "\002\n\020UpdateParameters\0226.google.cloud.memca" + - "che.v1beta2.UpdateParametersRequest\032\035.go" + - "ogle.longrunning.Operation\"\310\001\202\323\344\223\002H2C/v1" + - "beta2/{name=projects/*/locations/*/insta" + - "nces/*}:updateParameters:\001*\332A\033name,updat" + - "e_mask,parameters\312AY\n&google.cloud.memca" + - "che.v1beta2.Instance\022/google.cloud.memca" + - "che.v1beta2.OperationMetadata\022\364\001\n\016Delete" + - "Instance\0224.google.cloud.memcache.v1beta2" + - ".DeleteInstanceRequest\032\035.google.longrunn" + - "ing.Operation\"\214\001\202\323\344\223\0024*2/v1beta2/{name=p" + - "rojects/*/locations/*/instances/*}\332A\004nam" + - "e\312AH\n\025google.protobuf.Empty\022/google.clou" + - "d.memcache.v1beta2.OperationMetadata\022\255\002\n" + - "\017ApplyParameters\0225.google.cloud.memcache" + - ".v1beta2.ApplyParametersRequest\032\035.google" + - ".longrunning.Operation\"\303\001\202\323\344\223\002G\"B/v1beta" + - "2/{name=projects/*/locations/*/instances" + - "/*}:applyParameters:\001*\332A\027name,node_ids,a" + - "pply_all\312AY\n&google.cloud.memcache.v1bet" + - "a2.Instance\022/google.cloud.memcache.v1bet" + - "a2.OperationMetadata\022\301\002\n\023ApplySoftwareUp" + - "date\0229.google.cloud.memcache.v1beta2.App" + - "lySoftwareUpdateRequest\032\035.google.longrun" + - "ning.Operation\"\317\001\202\323\344\223\002O\"J/v1beta2/{insta" + - "nce=projects/*/locations/*/instances/*}:" + - "applySoftwareUpdate:\001*\332A\033instance,node_i" + - "ds,apply_all\312AY\n&google.cloud.memcache.v" + - "1beta2.Instance\022/google.cloud.memcache.v" + - "1beta2.OperationMetadata\032K\312A\027memcache.go" + - "ogleapis.com\322A.https://www.googleapis.co" + - "m/auth/cloud-platformB\200\001\n!com.google.clo" + - "ud.memcache.v1beta2B\022CloudMemcacheProtoP" + - "\001ZEgoogle.golang.org/genproto/googleapis" + - "/cloud/memcache/v1beta2;memcacheb\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.FieldMaskProto.getDescriptor(), - com.google.protobuf.TimestampProto.getDescriptor(), - }); - internal_static_google_cloud_memcache_v1beta2_Instance_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_google_cloud_memcache_v1beta2_Instance_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_memcache_v1beta2_Instance_descriptor, - new java.lang.String[] { "Name", "DisplayName", "Labels", "AuthorizedNetwork", "Zones", "NodeCount", "NodeConfig", "MemcacheVersion", "Parameters", "MemcacheNodes", "CreateTime", "UpdateTime", "State", "MemcacheFullVersion", "InstanceMessages", "DiscoveryEndpoint", "UpdateAvailable", }); - internal_static_google_cloud_memcache_v1beta2_Instance_NodeConfig_descriptor = - internal_static_google_cloud_memcache_v1beta2_Instance_descriptor.getNestedTypes().get(0); - internal_static_google_cloud_memcache_v1beta2_Instance_NodeConfig_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_memcache_v1beta2_Instance_NodeConfig_descriptor, - new java.lang.String[] { "CpuCount", "MemorySizeMb", }); - internal_static_google_cloud_memcache_v1beta2_Instance_Node_descriptor = - internal_static_google_cloud_memcache_v1beta2_Instance_descriptor.getNestedTypes().get(1); - internal_static_google_cloud_memcache_v1beta2_Instance_Node_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_memcache_v1beta2_Instance_Node_descriptor, - new java.lang.String[] { "NodeId", "Zone", "State", "Host", "Port", "Parameters", "UpdateAvailable", }); - internal_static_google_cloud_memcache_v1beta2_Instance_InstanceMessage_descriptor = - internal_static_google_cloud_memcache_v1beta2_Instance_descriptor.getNestedTypes().get(2); - internal_static_google_cloud_memcache_v1beta2_Instance_InstanceMessage_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_memcache_v1beta2_Instance_InstanceMessage_descriptor, - new java.lang.String[] { "Code", "Message", }); - internal_static_google_cloud_memcache_v1beta2_Instance_LabelsEntry_descriptor = - internal_static_google_cloud_memcache_v1beta2_Instance_descriptor.getNestedTypes().get(3); - internal_static_google_cloud_memcache_v1beta2_Instance_LabelsEntry_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_memcache_v1beta2_Instance_LabelsEntry_descriptor, - new java.lang.String[] { "Key", "Value", }); - internal_static_google_cloud_memcache_v1beta2_ListInstancesRequest_descriptor = - getDescriptor().getMessageTypes().get(1); - internal_static_google_cloud_memcache_v1beta2_ListInstancesRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_memcache_v1beta2_ListInstancesRequest_descriptor, - new java.lang.String[] { "Parent", "PageSize", "PageToken", "Filter", "OrderBy", }); - internal_static_google_cloud_memcache_v1beta2_ListInstancesResponse_descriptor = - getDescriptor().getMessageTypes().get(2); - internal_static_google_cloud_memcache_v1beta2_ListInstancesResponse_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_memcache_v1beta2_ListInstancesResponse_descriptor, - new java.lang.String[] { "Resources", "NextPageToken", "Unreachable", }); - internal_static_google_cloud_memcache_v1beta2_GetInstanceRequest_descriptor = - getDescriptor().getMessageTypes().get(3); - internal_static_google_cloud_memcache_v1beta2_GetInstanceRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_memcache_v1beta2_GetInstanceRequest_descriptor, - new java.lang.String[] { "Name", }); - internal_static_google_cloud_memcache_v1beta2_CreateInstanceRequest_descriptor = - getDescriptor().getMessageTypes().get(4); - internal_static_google_cloud_memcache_v1beta2_CreateInstanceRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_memcache_v1beta2_CreateInstanceRequest_descriptor, - new java.lang.String[] { "Parent", "InstanceId", "Resource", }); - internal_static_google_cloud_memcache_v1beta2_UpdateInstanceRequest_descriptor = - getDescriptor().getMessageTypes().get(5); - internal_static_google_cloud_memcache_v1beta2_UpdateInstanceRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_memcache_v1beta2_UpdateInstanceRequest_descriptor, - new java.lang.String[] { "UpdateMask", "Resource", }); - internal_static_google_cloud_memcache_v1beta2_DeleteInstanceRequest_descriptor = - getDescriptor().getMessageTypes().get(6); - internal_static_google_cloud_memcache_v1beta2_DeleteInstanceRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_memcache_v1beta2_DeleteInstanceRequest_descriptor, - new java.lang.String[] { "Name", }); - internal_static_google_cloud_memcache_v1beta2_ApplyParametersRequest_descriptor = - getDescriptor().getMessageTypes().get(7); - internal_static_google_cloud_memcache_v1beta2_ApplyParametersRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_memcache_v1beta2_ApplyParametersRequest_descriptor, - new java.lang.String[] { "Name", "NodeIds", "ApplyAll", }); - internal_static_google_cloud_memcache_v1beta2_UpdateParametersRequest_descriptor = - getDescriptor().getMessageTypes().get(8); - internal_static_google_cloud_memcache_v1beta2_UpdateParametersRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_memcache_v1beta2_UpdateParametersRequest_descriptor, - new java.lang.String[] { "Name", "UpdateMask", "Parameters", }); - internal_static_google_cloud_memcache_v1beta2_ApplySoftwareUpdateRequest_descriptor = - getDescriptor().getMessageTypes().get(9); - internal_static_google_cloud_memcache_v1beta2_ApplySoftwareUpdateRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_memcache_v1beta2_ApplySoftwareUpdateRequest_descriptor, - new java.lang.String[] { "Instance", "NodeIds", "ApplyAll", }); - internal_static_google_cloud_memcache_v1beta2_MemcacheParameters_descriptor = - getDescriptor().getMessageTypes().get(10); - internal_static_google_cloud_memcache_v1beta2_MemcacheParameters_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_memcache_v1beta2_MemcacheParameters_descriptor, - new java.lang.String[] { "Id", "Params", }); - internal_static_google_cloud_memcache_v1beta2_MemcacheParameters_ParamsEntry_descriptor = - internal_static_google_cloud_memcache_v1beta2_MemcacheParameters_descriptor.getNestedTypes().get(0); - internal_static_google_cloud_memcache_v1beta2_MemcacheParameters_ParamsEntry_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_memcache_v1beta2_MemcacheParameters_ParamsEntry_descriptor, - new java.lang.String[] { "Key", "Value", }); - internal_static_google_cloud_memcache_v1beta2_OperationMetadata_descriptor = - getDescriptor().getMessageTypes().get(11); - internal_static_google_cloud_memcache_v1beta2_OperationMetadata_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_memcache_v1beta2_OperationMetadata_descriptor, - new java.lang.String[] { "CreateTime", "EndTime", "Target", "Verb", "StatusDetail", "CancelRequested", "ApiVersion", }); - internal_static_google_cloud_memcache_v1beta2_LocationMetadata_descriptor = - getDescriptor().getMessageTypes().get(12); - internal_static_google_cloud_memcache_v1beta2_LocationMetadata_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_memcache_v1beta2_LocationMetadata_descriptor, - new java.lang.String[] { "AvailableZones", }); - internal_static_google_cloud_memcache_v1beta2_LocationMetadata_AvailableZonesEntry_descriptor = - internal_static_google_cloud_memcache_v1beta2_LocationMetadata_descriptor.getNestedTypes().get(0); - internal_static_google_cloud_memcache_v1beta2_LocationMetadata_AvailableZonesEntry_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_memcache_v1beta2_LocationMetadata_AvailableZonesEntry_descriptor, - new java.lang.String[] { "Key", "Value", }); - internal_static_google_cloud_memcache_v1beta2_ZoneMetadata_descriptor = - getDescriptor().getMessageTypes().get(13); - internal_static_google_cloud_memcache_v1beta2_ZoneMetadata_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_memcache_v1beta2_ZoneMetadata_descriptor, - new java.lang.String[] { }); - 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.FieldMaskProto.getDescriptor(); - com.google.protobuf.TimestampProto.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/owl-bot-staging/v1beta2/proto-google-cloud-memcache-v1beta2/src/main/java/com/google/cloud/memcache/v1beta2/DeleteInstanceRequestOrBuilder.java b/owl-bot-staging/v1beta2/proto-google-cloud-memcache-v1beta2/src/main/java/com/google/cloud/memcache/v1beta2/DeleteInstanceRequestOrBuilder.java deleted file mode 100644 index 69747a4f..00000000 --- a/owl-bot-staging/v1beta2/proto-google-cloud-memcache-v1beta2/src/main/java/com/google/cloud/memcache/v1beta2/DeleteInstanceRequestOrBuilder.java +++ /dev/null @@ -1,33 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/memcache/v1beta2/cloud_memcache.proto - -package com.google.cloud.memcache.v1beta2; - -public interface DeleteInstanceRequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.cloud.memcache.v1beta2.DeleteInstanceRequest) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * Required. Memcached instance resource name in the format:
-   *     `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. Memcached instance resource name in the format:
-   *     `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/v1beta2/proto-google-cloud-memcache-v1beta2/src/main/java/com/google/cloud/memcache/v1beta2/GetInstanceRequestOrBuilder.java b/owl-bot-staging/v1beta2/proto-google-cloud-memcache-v1beta2/src/main/java/com/google/cloud/memcache/v1beta2/GetInstanceRequestOrBuilder.java deleted file mode 100644 index 5ddfb6c5..00000000 --- a/owl-bot-staging/v1beta2/proto-google-cloud-memcache-v1beta2/src/main/java/com/google/cloud/memcache/v1beta2/GetInstanceRequestOrBuilder.java +++ /dev/null @@ -1,33 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/memcache/v1beta2/cloud_memcache.proto - -package com.google.cloud.memcache.v1beta2; - -public interface GetInstanceRequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.cloud.memcache.v1beta2.GetInstanceRequest) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * Required. Memcached instance resource name in the format:
-   *     `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. Memcached instance resource name in the format:
-   *     `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/v1beta2/proto-google-cloud-memcache-v1beta2/src/main/java/com/google/cloud/memcache/v1beta2/ZoneMetadataOrBuilder.java b/owl-bot-staging/v1beta2/proto-google-cloud-memcache-v1beta2/src/main/java/com/google/cloud/memcache/v1beta2/ZoneMetadataOrBuilder.java deleted file mode 100644 index e27439b0..00000000 --- a/owl-bot-staging/v1beta2/proto-google-cloud-memcache-v1beta2/src/main/java/com/google/cloud/memcache/v1beta2/ZoneMetadataOrBuilder.java +++ /dev/null @@ -1,9 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/memcache/v1beta2/cloud_memcache.proto - -package com.google.cloud.memcache.v1beta2; - -public interface ZoneMetadataOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.cloud.memcache.v1beta2.ZoneMetadata) - com.google.protobuf.MessageOrBuilder { -} diff --git a/owl-bot-staging/v1/proto-google-cloud-memcache-v1/src/main/java/com/google/cloud/memcache/v1/ApplyParametersRequest.java b/proto-google-cloud-memcache-v1/src/main/java/com/google/cloud/memcache/v1/ApplyParametersRequest.java similarity index 70% rename from owl-bot-staging/v1/proto-google-cloud-memcache-v1/src/main/java/com/google/cloud/memcache/v1/ApplyParametersRequest.java rename to proto-google-cloud-memcache-v1/src/main/java/com/google/cloud/memcache/v1/ApplyParametersRequest.java index 2c836c8e..ae4a50c1 100644 --- a/owl-bot-staging/v1/proto-google-cloud-memcache-v1/src/main/java/com/google/cloud/memcache/v1/ApplyParametersRequest.java +++ b/proto-google-cloud-memcache-v1/src/main/java/com/google/cloud/memcache/v1/ApplyParametersRequest.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/memcache/v1/cloud_memcache.proto package com.google.cloud.memcache.v1; /** + * + * *
  * Request for [ApplyParameters][google.cloud.memcache.v1.CloudMemcache.ApplyParameters].
  * 
* * Protobuf type {@code google.cloud.memcache.v1.ApplyParametersRequest} */ -public final class ApplyParametersRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class ApplyParametersRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.memcache.v1.ApplyParametersRequest) ApplyParametersRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use ApplyParametersRequest.newBuilder() to construct. private ApplyParametersRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private ApplyParametersRequest() { name_ = ""; nodeIds_ = com.google.protobuf.LazyStringArrayList.EMPTY; @@ -26,16 +44,15 @@ private ApplyParametersRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new ApplyParametersRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private ApplyParametersRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -55,33 +72,35 @@ private ApplyParametersRequest( 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(); - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - nodeIds_ = new com.google.protobuf.LazyStringArrayList(); - mutable_bitField0_ |= 0x00000001; + name_ = s; + break; } - nodeIds_.add(s); - break; - } - case 24: { - - applyAll_ = input.readBool(); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + nodeIds_ = new com.google.protobuf.LazyStringArrayList(); + mutable_bitField0_ |= 0x00000001; + } + nodeIds_.add(s); + break; + } + case 24: + { + applyAll_ = input.readBool(); + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -89,8 +108,7 @@ private ApplyParametersRequest( } 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)) { nodeIds_ = nodeIds_.getUnmodifiableView(); @@ -99,28 +117,36 @@ private ApplyParametersRequest( makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.memcache.v1.CloudMemcacheProto.internal_static_google_cloud_memcache_v1_ApplyParametersRequest_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.memcache.v1.CloudMemcacheProto + .internal_static_google_cloud_memcache_v1_ApplyParametersRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.memcache.v1.CloudMemcacheProto.internal_static_google_cloud_memcache_v1_ApplyParametersRequest_fieldAccessorTable + return com.google.cloud.memcache.v1.CloudMemcacheProto + .internal_static_google_cloud_memcache_v1_ApplyParametersRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.memcache.v1.ApplyParametersRequest.class, com.google.cloud.memcache.v1.ApplyParametersRequest.Builder.class); + com.google.cloud.memcache.v1.ApplyParametersRequest.class, + com.google.cloud.memcache.v1.ApplyParametersRequest.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** + * + * *
    * Required. Resource name of the Memcached instance for which parameter group updates
    * should be applied.
    * 
* - * string name = 1 [(.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 @@ -129,30 +155,32 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** + * + * *
    * Required. Resource name of the Memcached instance for which parameter group updates
    * should be applied.
    * 
* - * string name = 1 [(.google.api.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 { @@ -163,34 +191,42 @@ public java.lang.String getName() { public static final int NODE_IDS_FIELD_NUMBER = 2; private com.google.protobuf.LazyStringList nodeIds_; /** + * + * *
    * Nodes to which we should apply the instance-level parameter group.
    * 
* * repeated string node_ids = 2; + * * @return A list containing the nodeIds. */ - public com.google.protobuf.ProtocolStringList - getNodeIdsList() { + public com.google.protobuf.ProtocolStringList getNodeIdsList() { return nodeIds_; } /** + * + * *
    * Nodes to which we should apply the instance-level parameter group.
    * 
* * repeated string node_ids = 2; + * * @return The count of nodeIds. */ public int getNodeIdsCount() { return nodeIds_.size(); } /** + * + * *
    * Nodes to which we should apply the instance-level parameter group.
    * 
* * repeated string node_ids = 2; + * * @param index The index of the element to return. * @return The nodeIds at the given index. */ @@ -198,22 +234,26 @@ public java.lang.String getNodeIds(int index) { return nodeIds_.get(index); } /** + * + * *
    * Nodes to which we should apply the instance-level parameter group.
    * 
* * repeated string node_ids = 2; + * * @param index The index of the value to return. * @return The bytes of the nodeIds at the given index. */ - public com.google.protobuf.ByteString - getNodeIdsBytes(int index) { + public com.google.protobuf.ByteString getNodeIdsBytes(int index) { return nodeIds_.getByteString(index); } public static final int APPLY_ALL_FIELD_NUMBER = 3; private boolean applyAll_; /** + * + * *
    * Whether to apply instance-level parameter group to all nodes. If set to
    * true, will explicitly restrict users from specifying any nodes, and apply
@@ -221,6 +261,7 @@ public java.lang.String getNodeIds(int index) {
    * 
* * bool apply_all = 3; + * * @return The applyAll. */ @java.lang.Override @@ -229,6 +270,7 @@ public boolean getApplyAll() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -240,8 +282,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -272,8 +313,7 @@ public int getSerializedSize() { size += 1 * getNodeIdsList().size(); } if (applyAll_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(3, applyAll_); + size += com.google.protobuf.CodedOutputStream.computeBoolSize(3, applyAll_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -283,19 +323,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.memcache.v1.ApplyParametersRequest)) { return super.equals(obj); } - com.google.cloud.memcache.v1.ApplyParametersRequest other = (com.google.cloud.memcache.v1.ApplyParametersRequest) obj; + com.google.cloud.memcache.v1.ApplyParametersRequest other = + (com.google.cloud.memcache.v1.ApplyParametersRequest) obj; - if (!getName() - .equals(other.getName())) return false; - if (!getNodeIdsList() - .equals(other.getNodeIdsList())) return false; - if (getApplyAll() - != other.getApplyAll()) return false; + if (!getName().equals(other.getName())) return false; + if (!getNodeIdsList().equals(other.getNodeIdsList())) return false; + if (getApplyAll() != other.getApplyAll()) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -314,125 +352,133 @@ public int hashCode() { hash = (53 * hash) + getNodeIdsList().hashCode(); } hash = (37 * hash) + APPLY_ALL_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getApplyAll()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getApplyAll()); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static com.google.cloud.memcache.v1.ApplyParametersRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.memcache.v1.ApplyParametersRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.memcache.v1.ApplyParametersRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.memcache.v1.ApplyParametersRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.memcache.v1.ApplyParametersRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.memcache.v1.ApplyParametersRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.memcache.v1.ApplyParametersRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.memcache.v1.ApplyParametersRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.memcache.v1.ApplyParametersRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.memcache.v1.ApplyParametersRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.memcache.v1.ApplyParametersRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.memcache.v1.ApplyParametersRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.memcache.v1.ApplyParametersRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.memcache.v1.ApplyParametersRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.cloud.memcache.v1.ApplyParametersRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected 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 [ApplyParameters][google.cloud.memcache.v1.CloudMemcache.ApplyParameters].
    * 
* * Protobuf type {@code google.cloud.memcache.v1.ApplyParametersRequest} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.memcache.v1.ApplyParametersRequest) com.google.cloud.memcache.v1.ApplyParametersRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.memcache.v1.CloudMemcacheProto.internal_static_google_cloud_memcache_v1_ApplyParametersRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.memcache.v1.CloudMemcacheProto + .internal_static_google_cloud_memcache_v1_ApplyParametersRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.memcache.v1.CloudMemcacheProto.internal_static_google_cloud_memcache_v1_ApplyParametersRequest_fieldAccessorTable + return com.google.cloud.memcache.v1.CloudMemcacheProto + .internal_static_google_cloud_memcache_v1_ApplyParametersRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.memcache.v1.ApplyParametersRequest.class, com.google.cloud.memcache.v1.ApplyParametersRequest.Builder.class); + com.google.cloud.memcache.v1.ApplyParametersRequest.class, + com.google.cloud.memcache.v1.ApplyParametersRequest.Builder.class); } // Construct using com.google.cloud.memcache.v1.ApplyParametersRequest.newBuilder() @@ -440,16 +486,15 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -463,9 +508,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.memcache.v1.CloudMemcacheProto.internal_static_google_cloud_memcache_v1_ApplyParametersRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.memcache.v1.CloudMemcacheProto + .internal_static_google_cloud_memcache_v1_ApplyParametersRequest_descriptor; } @java.lang.Override @@ -484,7 +529,8 @@ public com.google.cloud.memcache.v1.ApplyParametersRequest build() { @java.lang.Override public com.google.cloud.memcache.v1.ApplyParametersRequest buildPartial() { - com.google.cloud.memcache.v1.ApplyParametersRequest result = new com.google.cloud.memcache.v1.ApplyParametersRequest(this); + com.google.cloud.memcache.v1.ApplyParametersRequest result = + new com.google.cloud.memcache.v1.ApplyParametersRequest(this); int from_bitField0_ = bitField0_; result.name_ = name_; if (((bitField0_ & 0x00000001) != 0)) { @@ -501,38 +547,39 @@ public com.google.cloud.memcache.v1.ApplyParametersRequest buildPartial() { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.memcache.v1.ApplyParametersRequest) { - return mergeFrom((com.google.cloud.memcache.v1.ApplyParametersRequest)other); + return mergeFrom((com.google.cloud.memcache.v1.ApplyParametersRequest) other); } else { super.mergeFrom(other); return this; @@ -540,7 +587,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.memcache.v1.ApplyParametersRequest other) { - if (other == com.google.cloud.memcache.v1.ApplyParametersRequest.getDefaultInstance()) return this; + if (other == com.google.cloud.memcache.v1.ApplyParametersRequest.getDefaultInstance()) + return this; if (!other.getName().isEmpty()) { name_ = other.name_; onChanged(); @@ -577,7 +625,8 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.memcache.v1.ApplyParametersRequest) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.memcache.v1.ApplyParametersRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -586,23 +635,28 @@ public Builder mergeFrom( } return this; } + private int bitField0_; private java.lang.Object name_ = ""; /** + * + * *
      * Required. Resource name of the Memcached instance for which parameter group updates
      * should be applied.
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -611,21 +665,24 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. Resource name of the Memcached instance for which parameter group updates
      * should be applied.
      * 
* - * string name = 1 [(.google.api.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 { @@ -633,98 +690,121 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. Resource name of the Memcached instance for which parameter group updates
      * should be applied.
      * 
* - * 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. Resource name of the Memcached instance for which parameter group updates
      * should be applied.
      * 
* - * string 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. Resource name of the Memcached instance for which parameter group updates
      * should be applied.
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes( - com.google.protobuf.ByteString value) { + public Builder setNameBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; onChanged(); return this; } - private com.google.protobuf.LazyStringList nodeIds_ = com.google.protobuf.LazyStringArrayList.EMPTY; + private com.google.protobuf.LazyStringList nodeIds_ = + com.google.protobuf.LazyStringArrayList.EMPTY; + private void ensureNodeIdsIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { nodeIds_ = new com.google.protobuf.LazyStringArrayList(nodeIds_); bitField0_ |= 0x00000001; - } + } } /** + * + * *
      * Nodes to which we should apply the instance-level parameter group.
      * 
* * repeated string node_ids = 2; + * * @return A list containing the nodeIds. */ - public com.google.protobuf.ProtocolStringList - getNodeIdsList() { + public com.google.protobuf.ProtocolStringList getNodeIdsList() { return nodeIds_.getUnmodifiableView(); } /** + * + * *
      * Nodes to which we should apply the instance-level parameter group.
      * 
* * repeated string node_ids = 2; + * * @return The count of nodeIds. */ public int getNodeIdsCount() { return nodeIds_.size(); } /** + * + * *
      * Nodes to which we should apply the instance-level parameter group.
      * 
* * repeated string node_ids = 2; + * * @param index The index of the element to return. * @return The nodeIds at the given index. */ @@ -732,80 +812,90 @@ public java.lang.String getNodeIds(int index) { return nodeIds_.get(index); } /** + * + * *
      * Nodes to which we should apply the instance-level parameter group.
      * 
* * repeated string node_ids = 2; + * * @param index The index of the value to return. * @return The bytes of the nodeIds at the given index. */ - public com.google.protobuf.ByteString - getNodeIdsBytes(int index) { + public com.google.protobuf.ByteString getNodeIdsBytes(int index) { return nodeIds_.getByteString(index); } /** + * + * *
      * Nodes to which we should apply the instance-level parameter group.
      * 
* * repeated string node_ids = 2; + * * @param index The index to set the value at. * @param value The nodeIds to set. * @return This builder for chaining. */ - public Builder setNodeIds( - int index, java.lang.String value) { + public Builder setNodeIds(int index, java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureNodeIdsIsMutable(); + throw new NullPointerException(); + } + ensureNodeIdsIsMutable(); nodeIds_.set(index, value); onChanged(); return this; } /** + * + * *
      * Nodes to which we should apply the instance-level parameter group.
      * 
* * repeated string node_ids = 2; + * * @param value The nodeIds to add. * @return This builder for chaining. */ - public Builder addNodeIds( - java.lang.String value) { + public Builder addNodeIds(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureNodeIdsIsMutable(); + throw new NullPointerException(); + } + ensureNodeIdsIsMutable(); nodeIds_.add(value); onChanged(); return this; } /** + * + * *
      * Nodes to which we should apply the instance-level parameter group.
      * 
* * repeated string node_ids = 2; + * * @param values The nodeIds to add. * @return This builder for chaining. */ - public Builder addAllNodeIds( - java.lang.Iterable values) { + public Builder addAllNodeIds(java.lang.Iterable values) { ensureNodeIdsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, nodeIds_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, nodeIds_); onChanged(); return this; } /** + * + * *
      * Nodes to which we should apply the instance-level parameter group.
      * 
* * repeated string node_ids = 2; + * * @return This builder for chaining. */ public Builder clearNodeIds() { @@ -815,28 +905,32 @@ public Builder clearNodeIds() { return this; } /** + * + * *
      * Nodes to which we should apply the instance-level parameter group.
      * 
* * repeated string node_ids = 2; + * * @param value The bytes of the nodeIds to add. * @return This builder for chaining. */ - public Builder addNodeIdsBytes( - com.google.protobuf.ByteString value) { + public Builder addNodeIdsBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); ensureNodeIdsIsMutable(); nodeIds_.add(value); onChanged(); return this; } - private boolean applyAll_ ; + private boolean applyAll_; /** + * + * *
      * Whether to apply instance-level parameter group to all nodes. If set to
      * true, will explicitly restrict users from specifying any nodes, and apply
@@ -844,6 +938,7 @@ public Builder addNodeIdsBytes(
      * 
* * bool apply_all = 3; + * * @return The applyAll. */ @java.lang.Override @@ -851,6 +946,8 @@ public boolean getApplyAll() { return applyAll_; } /** + * + * *
      * Whether to apply instance-level parameter group to all nodes. If set to
      * true, will explicitly restrict users from specifying any nodes, and apply
@@ -858,16 +955,19 @@ public boolean getApplyAll() {
      * 
* * bool apply_all = 3; + * * @param value The applyAll to set. * @return This builder for chaining. */ public Builder setApplyAll(boolean value) { - + applyAll_ = value; onChanged(); return this; } /** + * + * *
      * Whether to apply instance-level parameter group to all nodes. If set to
      * true, will explicitly restrict users from specifying any nodes, and apply
@@ -875,17 +975,18 @@ public Builder setApplyAll(boolean value) {
      * 
* * bool apply_all = 3; + * * @return This builder for chaining. */ public Builder clearApplyAll() { - + applyAll_ = false; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -895,12 +996,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.memcache.v1.ApplyParametersRequest) } // @@protoc_insertion_point(class_scope:google.cloud.memcache.v1.ApplyParametersRequest) private static final com.google.cloud.memcache.v1.ApplyParametersRequest DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.memcache.v1.ApplyParametersRequest(); } @@ -909,16 +1010,16 @@ public static com.google.cloud.memcache.v1.ApplyParametersRequest getDefaultInst return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ApplyParametersRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ApplyParametersRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ApplyParametersRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ApplyParametersRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -933,6 +1034,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.memcache.v1.ApplyParametersRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1/proto-google-cloud-memcache-v1/src/main/java/com/google/cloud/memcache/v1/ApplyParametersRequestOrBuilder.java b/proto-google-cloud-memcache-v1/src/main/java/com/google/cloud/memcache/v1/ApplyParametersRequestOrBuilder.java similarity index 63% rename from owl-bot-staging/v1/proto-google-cloud-memcache-v1/src/main/java/com/google/cloud/memcache/v1/ApplyParametersRequestOrBuilder.java rename to proto-google-cloud-memcache-v1/src/main/java/com/google/cloud/memcache/v1/ApplyParametersRequestOrBuilder.java index 943077cc..c6799590 100644 --- a/owl-bot-staging/v1/proto-google-cloud-memcache-v1/src/main/java/com/google/cloud/memcache/v1/ApplyParametersRequestOrBuilder.java +++ b/proto-google-cloud-memcache-v1/src/main/java/com/google/cloud/memcache/v1/ApplyParametersRequestOrBuilder.java @@ -1,76 +1,113 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/memcache/v1/cloud_memcache.proto package com.google.cloud.memcache.v1; -public interface ApplyParametersRequestOrBuilder extends +public interface ApplyParametersRequestOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.memcache.v1.ApplyParametersRequest) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Required. Resource name of the Memcached instance for which parameter group updates
    * should be applied.
    * 
* - * string name = 1 [(.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. Resource name of the Memcached instance for which parameter group updates
    * should be applied.
    * 
* - * string name = 1 [(.google.api.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(); /** + * + * *
    * Nodes to which we should apply the instance-level parameter group.
    * 
* * repeated string node_ids = 2; + * * @return A list containing the nodeIds. */ - java.util.List - getNodeIdsList(); + java.util.List getNodeIdsList(); /** + * + * *
    * Nodes to which we should apply the instance-level parameter group.
    * 
* * repeated string node_ids = 2; + * * @return The count of nodeIds. */ int getNodeIdsCount(); /** + * + * *
    * Nodes to which we should apply the instance-level parameter group.
    * 
* * repeated string node_ids = 2; + * * @param index The index of the element to return. * @return The nodeIds at the given index. */ java.lang.String getNodeIds(int index); /** + * + * *
    * Nodes to which we should apply the instance-level parameter group.
    * 
* * repeated string node_ids = 2; + * * @param index The index of the value to return. * @return The bytes of the nodeIds at the given index. */ - com.google.protobuf.ByteString - getNodeIdsBytes(int index); + com.google.protobuf.ByteString getNodeIdsBytes(int index); /** + * + * *
    * Whether to apply instance-level parameter group to all nodes. If set to
    * true, will explicitly restrict users from specifying any nodes, and apply
@@ -78,6 +115,7 @@ public interface ApplyParametersRequestOrBuilder extends
    * 
* * bool apply_all = 3; + * * @return The applyAll. */ boolean getApplyAll(); diff --git a/proto-google-cloud-memcache-v1/src/main/java/com/google/cloud/memcache/v1/CloudMemcacheProto.java b/proto-google-cloud-memcache-v1/src/main/java/com/google/cloud/memcache/v1/CloudMemcacheProto.java new file mode 100644 index 00000000..791750c8 --- /dev/null +++ b/proto-google-cloud-memcache-v1/src/main/java/com/google/cloud/memcache/v1/CloudMemcacheProto.java @@ -0,0 +1,423 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/memcache/v1/cloud_memcache.proto + +package com.google.cloud.memcache.v1; + +public final class CloudMemcacheProto { + private CloudMemcacheProto() {} + + 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_memcache_v1_Instance_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_memcache_v1_Instance_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_memcache_v1_Instance_NodeConfig_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_memcache_v1_Instance_NodeConfig_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_memcache_v1_Instance_Node_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_memcache_v1_Instance_Node_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_memcache_v1_Instance_InstanceMessage_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_memcache_v1_Instance_InstanceMessage_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_memcache_v1_Instance_LabelsEntry_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_memcache_v1_Instance_LabelsEntry_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_memcache_v1_ListInstancesRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_memcache_v1_ListInstancesRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_memcache_v1_ListInstancesResponse_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_memcache_v1_ListInstancesResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_memcache_v1_GetInstanceRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_memcache_v1_GetInstanceRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_memcache_v1_CreateInstanceRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_memcache_v1_CreateInstanceRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_memcache_v1_UpdateInstanceRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_memcache_v1_UpdateInstanceRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_memcache_v1_DeleteInstanceRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_memcache_v1_DeleteInstanceRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_memcache_v1_ApplyParametersRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_memcache_v1_ApplyParametersRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_memcache_v1_UpdateParametersRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_memcache_v1_UpdateParametersRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_memcache_v1_MemcacheParameters_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_memcache_v1_MemcacheParameters_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_memcache_v1_MemcacheParameters_ParamsEntry_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_memcache_v1_MemcacheParameters_ParamsEntry_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_memcache_v1_OperationMetadata_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_memcache_v1_OperationMetadata_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/memcache/v1/cloud_memcach" + + "e.proto\022\030google.cloud.memcache.v1\032\034googl" + + "e/api/annotations.proto\032\027google/api/clie" + + "nt.proto\032\037google/api/field_behavior.prot" + + "o\032\031google/api/resource.proto\032#google/lon" + + "grunning/operations.proto\032 google/protob" + + "uf/field_mask.proto\032\037google/protobuf/tim" + + "estamp.proto\"\243\014\n\010Instance\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" + + "(\0132..google.cloud.memcache.v1.Instance.L" + + "abelsEntry\022\032\n\022authorized_network\030\004 \001(\t\022\r" + + "\n\005zones\030\005 \003(\t\022\027\n\nnode_count\030\006 \001(\005B\003\340A\002\022G" + + "\n\013node_config\030\007 \001(\0132-.google.cloud.memca" + + "che.v1.Instance.NodeConfigB\003\340A\002\022C\n\020memca" + + "che_version\030\t \001(\0162).google.cloud.memcach" + + "e.v1.MemcacheVersion\022@\n\nparameters\030\013 \001(\013" + + "2,.google.cloud.memcache.v1.MemcachePara" + + "meters\022D\n\016memcache_nodes\030\014 \003(\0132\'.google." + + "cloud.memcache.v1.Instance.NodeB\003\340A\003\0224\n\013" + + "create_time\030\r \001(\0132\032.google.protobuf.Time" + + "stampB\003\340A\003\0224\n\013update_time\030\016 \001(\0132\032.google" + + ".protobuf.TimestampB\003\340A\003\022<\n\005state\030\017 \001(\0162" + + "(.google.cloud.memcache.v1.Instance.Stat" + + "eB\003\340A\003\022\"\n\025memcache_full_version\030\022 \001(\tB\003\340" + + "A\003\022M\n\021instance_messages\030\023 \003(\01322.google.c" + + "loud.memcache.v1.Instance.InstanceMessag" + + "e\022\037\n\022discovery_endpoint\030\024 \001(\tB\003\340A\003\032A\n\nNo" + + "deConfig\022\026\n\tcpu_count\030\001 \001(\005B\003\340A\002\022\033\n\016memo" + + "ry_size_mb\030\002 \001(\005B\003\340A\002\032\257\002\n\004Node\022\024\n\007node_i" + + "d\030\001 \001(\tB\003\340A\003\022\021\n\004zone\030\002 \001(\tB\003\340A\003\022A\n\005state" + + "\030\003 \001(\0162-.google.cloud.memcache.v1.Instan" + + "ce.Node.StateB\003\340A\003\022\021\n\004host\030\004 \001(\tB\003\340A\003\022\021\n" + + "\004port\030\005 \001(\005B\003\340A\003\022@\n\nparameters\030\006 \001(\0132,.g" + + "oogle.cloud.memcache.v1.MemcacheParamete" + + "rs\"S\n\005State\022\025\n\021STATE_UNSPECIFIED\020\000\022\014\n\010CR" + + "EATING\020\001\022\t\n\005READY\020\002\022\014\n\010DELETING\020\003\022\014\n\010UPD" + + "ATING\020\004\032\251\001\n\017InstanceMessage\022E\n\004code\030\001 \001(" + + "\01627.google.cloud.memcache.v1.Instance.In" + + "stanceMessage.Code\022\017\n\007message\030\002 \001(\t\">\n\004C" + + "ode\022\024\n\020CODE_UNSPECIFIED\020\000\022 \n\034ZONE_DISTRI" + + "BUTION_UNBALANCED\020\001\032-\n\013LabelsEntry\022\013\n\003ke" + + "y\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\"a\n\005State\022\025\n\021S" + + "TATE_UNSPECIFIED\020\000\022\014\n\010CREATING\020\001\022\t\n\005READ" + + "Y\020\002\022\014\n\010DELETING\020\004\022\032\n\026PERFORMING_MAINTENA" + + "NCE\020\005:c\352A`\n memcache.googleapis.com/Inst" + + "ance\022\202" + + "\323\344\223\002/\022-/v1/{parent=projects/*/locations/" + + "*}/instances\332A\006parent\022\235\001\n\013GetInstance\022,." + + "google.cloud.memcache.v1.GetInstanceRequ" + + "est\032\".google.cloud.memcache.v1.Instance\"" + + "<\202\323\344\223\002/\022-/v1/{name=projects/*/locations/" + + "*/instances/*}\332A\004name\022\222\002\n\016CreateInstance" + + "\022/.google.cloud.memcache.v1.CreateInstan" + + "ceRequest\032\035.google.longrunning.Operation" + + "\"\257\001\202\323\344\223\0029\"-/v1/{parent=projects/*/locati" + + "ons/*}/instances:\010instance\332A\033parent,inst" + + "ance,instance_id\312AO\n!google.cloud.memcac" + + "he.v1.Instance\022*google.cloud.memcache.v1" + + ".OperationMetadata\022\224\002\n\016UpdateInstance\022/." + + "google.cloud.memcache.v1.UpdateInstanceR" + + "equest\032\035.google.longrunning.Operation\"\261\001" + + "\202\323\344\223\002B26/v1/{instance.name=projects/*/lo" + + "cations/*/instances/*}:\010instance\332A\024insta" + + "nce,update_mask\312AO\n!google.cloud.memcach" + + "e.v1.Instance\022*google.cloud.memcache.v1." + + "OperationMetadata\022\240\002\n\020UpdateParameters\0221" + + ".google.cloud.memcache.v1.UpdateParamete" + + "rsRequest\032\035.google.longrunning.Operation" + + "\"\271\001\202\323\344\223\002C2>/v1/{name=projects/*/location" + + "s/*/instances/*}:updateParameters:\001*\332A\033n" + + "ame,update_mask,parameters\312AO\n!google.cl" + + "oud.memcache.v1.Instance\022*google.cloud.m" + + "emcache.v1.OperationMetadata\022\345\001\n\016DeleteI" + + "nstance\022/.google.cloud.memcache.v1.Delet" + + "eInstanceRequest\032\035.google.longrunning.Op" + + "eration\"\202\001\202\323\344\223\002/*-/v1/{name=projects/*/l" + + "ocations/*/instances/*}\332A\004name\312AC\n\025googl" + + "e.protobuf.Empty\022*google.cloud.memcache." + + "v1.OperationMetadata\022\231\002\n\017ApplyParameters" + + "\0220.google.cloud.memcache.v1.ApplyParamet" + + "ersRequest\032\035.google.longrunning.Operatio" + + "n\"\264\001\202\323\344\223\002B\"=/v1/{name=projects/*/locatio" + + "ns/*/instances/*}:applyParameters:\001*\332A\027n" + + "ame,node_ids,apply_all\312AO\n!google.cloud." + + "memcache.v1.Instance\022*google.cloud.memca" + + "che.v1.OperationMetadata\032K\312A\027memcache.go" + + "ogleapis.com\322A.https://www.googleapis.co" + + "m/auth/cloud-platformBv\n\034com.google.clou" + + "d.memcache.v1B\022CloudMemcacheProtoP\001Z@goo" + + "gle.golang.org/genproto/googleapis/cloud" + + "/memcache/v1;memcacheb\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.FieldMaskProto.getDescriptor(), + com.google.protobuf.TimestampProto.getDescriptor(), + }); + internal_static_google_cloud_memcache_v1_Instance_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_cloud_memcache_v1_Instance_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_memcache_v1_Instance_descriptor, + new java.lang.String[] { + "Name", + "DisplayName", + "Labels", + "AuthorizedNetwork", + "Zones", + "NodeCount", + "NodeConfig", + "MemcacheVersion", + "Parameters", + "MemcacheNodes", + "CreateTime", + "UpdateTime", + "State", + "MemcacheFullVersion", + "InstanceMessages", + "DiscoveryEndpoint", + }); + internal_static_google_cloud_memcache_v1_Instance_NodeConfig_descriptor = + internal_static_google_cloud_memcache_v1_Instance_descriptor.getNestedTypes().get(0); + internal_static_google_cloud_memcache_v1_Instance_NodeConfig_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_memcache_v1_Instance_NodeConfig_descriptor, + new java.lang.String[] { + "CpuCount", "MemorySizeMb", + }); + internal_static_google_cloud_memcache_v1_Instance_Node_descriptor = + internal_static_google_cloud_memcache_v1_Instance_descriptor.getNestedTypes().get(1); + internal_static_google_cloud_memcache_v1_Instance_Node_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_memcache_v1_Instance_Node_descriptor, + new java.lang.String[] { + "NodeId", "Zone", "State", "Host", "Port", "Parameters", + }); + internal_static_google_cloud_memcache_v1_Instance_InstanceMessage_descriptor = + internal_static_google_cloud_memcache_v1_Instance_descriptor.getNestedTypes().get(2); + internal_static_google_cloud_memcache_v1_Instance_InstanceMessage_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_memcache_v1_Instance_InstanceMessage_descriptor, + new java.lang.String[] { + "Code", "Message", + }); + internal_static_google_cloud_memcache_v1_Instance_LabelsEntry_descriptor = + internal_static_google_cloud_memcache_v1_Instance_descriptor.getNestedTypes().get(3); + internal_static_google_cloud_memcache_v1_Instance_LabelsEntry_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_memcache_v1_Instance_LabelsEntry_descriptor, + new java.lang.String[] { + "Key", "Value", + }); + internal_static_google_cloud_memcache_v1_ListInstancesRequest_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_google_cloud_memcache_v1_ListInstancesRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_memcache_v1_ListInstancesRequest_descriptor, + new java.lang.String[] { + "Parent", "PageSize", "PageToken", "Filter", "OrderBy", + }); + internal_static_google_cloud_memcache_v1_ListInstancesResponse_descriptor = + getDescriptor().getMessageTypes().get(2); + internal_static_google_cloud_memcache_v1_ListInstancesResponse_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_memcache_v1_ListInstancesResponse_descriptor, + new java.lang.String[] { + "Instances", "NextPageToken", "Unreachable", + }); + internal_static_google_cloud_memcache_v1_GetInstanceRequest_descriptor = + getDescriptor().getMessageTypes().get(3); + internal_static_google_cloud_memcache_v1_GetInstanceRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_memcache_v1_GetInstanceRequest_descriptor, + new java.lang.String[] { + "Name", + }); + internal_static_google_cloud_memcache_v1_CreateInstanceRequest_descriptor = + getDescriptor().getMessageTypes().get(4); + internal_static_google_cloud_memcache_v1_CreateInstanceRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_memcache_v1_CreateInstanceRequest_descriptor, + new java.lang.String[] { + "Parent", "InstanceId", "Instance", + }); + internal_static_google_cloud_memcache_v1_UpdateInstanceRequest_descriptor = + getDescriptor().getMessageTypes().get(5); + internal_static_google_cloud_memcache_v1_UpdateInstanceRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_memcache_v1_UpdateInstanceRequest_descriptor, + new java.lang.String[] { + "UpdateMask", "Instance", + }); + internal_static_google_cloud_memcache_v1_DeleteInstanceRequest_descriptor = + getDescriptor().getMessageTypes().get(6); + internal_static_google_cloud_memcache_v1_DeleteInstanceRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_memcache_v1_DeleteInstanceRequest_descriptor, + new java.lang.String[] { + "Name", + }); + internal_static_google_cloud_memcache_v1_ApplyParametersRequest_descriptor = + getDescriptor().getMessageTypes().get(7); + internal_static_google_cloud_memcache_v1_ApplyParametersRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_memcache_v1_ApplyParametersRequest_descriptor, + new java.lang.String[] { + "Name", "NodeIds", "ApplyAll", + }); + internal_static_google_cloud_memcache_v1_UpdateParametersRequest_descriptor = + getDescriptor().getMessageTypes().get(8); + internal_static_google_cloud_memcache_v1_UpdateParametersRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_memcache_v1_UpdateParametersRequest_descriptor, + new java.lang.String[] { + "Name", "UpdateMask", "Parameters", + }); + internal_static_google_cloud_memcache_v1_MemcacheParameters_descriptor = + getDescriptor().getMessageTypes().get(9); + internal_static_google_cloud_memcache_v1_MemcacheParameters_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_memcache_v1_MemcacheParameters_descriptor, + new java.lang.String[] { + "Id", "Params", + }); + internal_static_google_cloud_memcache_v1_MemcacheParameters_ParamsEntry_descriptor = + internal_static_google_cloud_memcache_v1_MemcacheParameters_descriptor + .getNestedTypes() + .get(0); + internal_static_google_cloud_memcache_v1_MemcacheParameters_ParamsEntry_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_memcache_v1_MemcacheParameters_ParamsEntry_descriptor, + new java.lang.String[] { + "Key", "Value", + }); + internal_static_google_cloud_memcache_v1_OperationMetadata_descriptor = + getDescriptor().getMessageTypes().get(10); + internal_static_google_cloud_memcache_v1_OperationMetadata_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_memcache_v1_OperationMetadata_descriptor, + new java.lang.String[] { + "CreateTime", + "EndTime", + "Target", + "Verb", + "StatusDetail", + "CancelRequested", + "ApiVersion", + }); + 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.FieldMaskProto.getDescriptor(); + com.google.protobuf.TimestampProto.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/owl-bot-staging/v1/proto-google-cloud-memcache-v1/src/main/java/com/google/cloud/memcache/v1/CreateInstanceRequest.java b/proto-google-cloud-memcache-v1/src/main/java/com/google/cloud/memcache/v1/CreateInstanceRequest.java similarity index 67% rename from owl-bot-staging/v1/proto-google-cloud-memcache-v1/src/main/java/com/google/cloud/memcache/v1/CreateInstanceRequest.java rename to proto-google-cloud-memcache-v1/src/main/java/com/google/cloud/memcache/v1/CreateInstanceRequest.java index 55e6da06..9f0c7d4c 100644 --- a/owl-bot-staging/v1/proto-google-cloud-memcache-v1/src/main/java/com/google/cloud/memcache/v1/CreateInstanceRequest.java +++ b/proto-google-cloud-memcache-v1/src/main/java/com/google/cloud/memcache/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/memcache/v1/cloud_memcache.proto package com.google.cloud.memcache.v1; /** + * + * *
  * Request for [CreateInstance][google.cloud.memcache.v1.CloudMemcache.CreateInstance].
  * 
* * Protobuf type {@code google.cloud.memcache.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.memcache.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,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.memcache.v1.Instance.Builder subBuilder = null; - if (instance_ != null) { - subBuilder = instance_.toBuilder(); + parent_ = s; + break; } - instance_ = input.readMessage(com.google.cloud.memcache.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.memcache.v1.Instance.Builder subBuilder = null; + if (instance_ != null) { + subBuilder = instance_.toBuilder(); + } + instance_ = + input.readMessage( + com.google.cloud.memcache.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 +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.memcache.v1.CloudMemcacheProto.internal_static_google_cloud_memcache_v1_CreateInstanceRequest_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.memcache.v1.CloudMemcacheProto + .internal_static_google_cloud_memcache_v1_CreateInstanceRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.memcache.v1.CloudMemcacheProto.internal_static_google_cloud_memcache_v1_CreateInstanceRequest_fieldAccessorTable + return com.google.cloud.memcache.v1.CloudMemcacheProto + .internal_static_google_cloud_memcache_v1_CreateInstanceRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.memcache.v1.CreateInstanceRequest.class, com.google.cloud.memcache.v1.CreateInstanceRequest.Builder.class); + com.google.cloud.memcache.v1.CreateInstanceRequest.class, + com.google.cloud.memcache.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 +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 Memcached instance in the user
    * project with the following restrictions:
@@ -178,6 +211,7 @@ public java.lang.String getParent() {
    * 
* * string instance_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The instanceId. */ @java.lang.Override @@ -186,14 +220,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 Memcached instance in the user
    * project with the following restrictions:
@@ -206,16 +241,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 { @@ -226,11 +260,16 @@ public java.lang.String getInstanceId() { public static final int INSTANCE_FIELD_NUMBER = 3; private com.google.cloud.memcache.v1.Instance instance_; /** + * + * *
    * Required. A Memcached Instance
    * 
* - * .google.cloud.memcache.v1.Instance instance = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.memcache.v1.Instance instance = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the instance field is set. */ @java.lang.Override @@ -238,23 +277,34 @@ public boolean hasInstance() { return instance_ != null; } /** + * + * *
    * Required. A Memcached Instance
    * 
* - * .google.cloud.memcache.v1.Instance instance = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.memcache.v1.Instance instance = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The instance. */ @java.lang.Override public com.google.cloud.memcache.v1.Instance getInstance() { - return instance_ == null ? com.google.cloud.memcache.v1.Instance.getDefaultInstance() : instance_; + return instance_ == null + ? com.google.cloud.memcache.v1.Instance.getDefaultInstance() + : instance_; } /** + * + * *
    * Required. A Memcached Instance
    * 
* - * .google.cloud.memcache.v1.Instance instance = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.memcache.v1.Instance instance = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ @java.lang.Override public com.google.cloud.memcache.v1.InstanceOrBuilder getInstanceOrBuilder() { @@ -262,6 +312,7 @@ public com.google.cloud.memcache.v1.InstanceOrBuilder getInstanceOrBuilder() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -273,8 +324,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); } @@ -300,8 +350,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; @@ -311,21 +360,19 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.memcache.v1.CreateInstanceRequest)) { return super.equals(obj); } - com.google.cloud.memcache.v1.CreateInstanceRequest other = (com.google.cloud.memcache.v1.CreateInstanceRequest) obj; + com.google.cloud.memcache.v1.CreateInstanceRequest other = + (com.google.cloud.memcache.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; @@ -352,117 +399,126 @@ public int hashCode() { } public static com.google.cloud.memcache.v1.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.memcache.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.memcache.v1.CreateInstanceRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.memcache.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.memcache.v1.CreateInstanceRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.memcache.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.memcache.v1.CreateInstanceRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.memcache.v1.CreateInstanceRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.memcache.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.memcache.v1.CreateInstanceRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.memcache.v1.CreateInstanceRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.memcache.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.memcache.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.memcache.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.memcache.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.memcache.v1.CloudMemcache.CreateInstance].
    * 
* * Protobuf type {@code google.cloud.memcache.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.memcache.v1.CreateInstanceRequest) com.google.cloud.memcache.v1.CreateInstanceRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.memcache.v1.CloudMemcacheProto.internal_static_google_cloud_memcache_v1_CreateInstanceRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.memcache.v1.CloudMemcacheProto + .internal_static_google_cloud_memcache_v1_CreateInstanceRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.memcache.v1.CloudMemcacheProto.internal_static_google_cloud_memcache_v1_CreateInstanceRequest_fieldAccessorTable + return com.google.cloud.memcache.v1.CloudMemcacheProto + .internal_static_google_cloud_memcache_v1_CreateInstanceRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.memcache.v1.CreateInstanceRequest.class, com.google.cloud.memcache.v1.CreateInstanceRequest.Builder.class); + com.google.cloud.memcache.v1.CreateInstanceRequest.class, + com.google.cloud.memcache.v1.CreateInstanceRequest.Builder.class); } // Construct using com.google.cloud.memcache.v1.CreateInstanceRequest.newBuilder() @@ -470,16 +526,15 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -497,9 +552,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.memcache.v1.CloudMemcacheProto.internal_static_google_cloud_memcache_v1_CreateInstanceRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.memcache.v1.CloudMemcacheProto + .internal_static_google_cloud_memcache_v1_CreateInstanceRequest_descriptor; } @java.lang.Override @@ -518,7 +573,8 @@ public com.google.cloud.memcache.v1.CreateInstanceRequest build() { @java.lang.Override public com.google.cloud.memcache.v1.CreateInstanceRequest buildPartial() { - com.google.cloud.memcache.v1.CreateInstanceRequest result = new com.google.cloud.memcache.v1.CreateInstanceRequest(this); + com.google.cloud.memcache.v1.CreateInstanceRequest result = + new com.google.cloud.memcache.v1.CreateInstanceRequest(this); result.parent_ = parent_; result.instanceId_ = instanceId_; if (instanceBuilder_ == null) { @@ -534,38 +590,39 @@ public com.google.cloud.memcache.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.memcache.v1.CreateInstanceRequest) { - return mergeFrom((com.google.cloud.memcache.v1.CreateInstanceRequest)other); + return mergeFrom((com.google.cloud.memcache.v1.CreateInstanceRequest) other); } else { super.mergeFrom(other); return this; @@ -573,7 +630,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.memcache.v1.CreateInstanceRequest other) { - if (other == com.google.cloud.memcache.v1.CreateInstanceRequest.getDefaultInstance()) return this; + if (other == com.google.cloud.memcache.v1.CreateInstanceRequest.getDefaultInstance()) + return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; onChanged(); @@ -604,7 +662,8 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.memcache.v1.CreateInstanceRequest) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.memcache.v1.CreateInstanceRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -616,20 +675,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; @@ -638,22 +701,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 { @@ -661,60 +727,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; @@ -722,6 +801,8 @@ public Builder setParentBytes( private java.lang.Object instanceId_ = ""; /** + * + * *
      * Required. The logical name of the Memcached instance in the user
      * project with the following restrictions:
@@ -734,13 +815,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; @@ -749,6 +830,8 @@ public java.lang.String getInstanceId() { } } /** + * + * *
      * Required. The logical name of the Memcached instance in the user
      * project with the following restrictions:
@@ -761,15 +844,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 { @@ -777,6 +859,8 @@ public java.lang.String getInstanceId() { } } /** + * + * *
      * Required. The logical name of the Memcached instance in the user
      * project with the following restrictions:
@@ -789,20 +873,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 Memcached instance in the user
      * project with the following restrictions:
@@ -815,15 +901,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 Memcached instance in the user
      * project with the following restrictions:
@@ -836,16 +925,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; @@ -853,39 +942,58 @@ public Builder setInstanceIdBytes( private com.google.cloud.memcache.v1.Instance instance_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.memcache.v1.Instance, com.google.cloud.memcache.v1.Instance.Builder, com.google.cloud.memcache.v1.InstanceOrBuilder> instanceBuilder_; + com.google.cloud.memcache.v1.Instance, + com.google.cloud.memcache.v1.Instance.Builder, + com.google.cloud.memcache.v1.InstanceOrBuilder> + instanceBuilder_; /** + * + * *
      * Required. A Memcached Instance
      * 
* - * .google.cloud.memcache.v1.Instance instance = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.memcache.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 Memcached Instance
      * 
* - * .google.cloud.memcache.v1.Instance instance = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.memcache.v1.Instance instance = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The instance. */ public com.google.cloud.memcache.v1.Instance getInstance() { if (instanceBuilder_ == null) { - return instance_ == null ? com.google.cloud.memcache.v1.Instance.getDefaultInstance() : instance_; + return instance_ == null + ? com.google.cloud.memcache.v1.Instance.getDefaultInstance() + : instance_; } else { return instanceBuilder_.getMessage(); } } /** + * + * *
      * Required. A Memcached Instance
      * 
* - * .google.cloud.memcache.v1.Instance instance = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.memcache.v1.Instance instance = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder setInstance(com.google.cloud.memcache.v1.Instance value) { if (instanceBuilder_ == null) { @@ -901,14 +1009,17 @@ public Builder setInstance(com.google.cloud.memcache.v1.Instance value) { return this; } /** + * + * *
      * Required. A Memcached Instance
      * 
* - * .google.cloud.memcache.v1.Instance instance = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.memcache.v1.Instance instance = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ - public Builder setInstance( - com.google.cloud.memcache.v1.Instance.Builder builderForValue) { + public Builder setInstance(com.google.cloud.memcache.v1.Instance.Builder builderForValue) { if (instanceBuilder_ == null) { instance_ = builderForValue.build(); onChanged(); @@ -919,17 +1030,23 @@ public Builder setInstance( return this; } /** + * + * *
      * Required. A Memcached Instance
      * 
* - * .google.cloud.memcache.v1.Instance instance = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.memcache.v1.Instance instance = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder mergeInstance(com.google.cloud.memcache.v1.Instance value) { if (instanceBuilder_ == null) { if (instance_ != null) { instance_ = - com.google.cloud.memcache.v1.Instance.newBuilder(instance_).mergeFrom(value).buildPartial(); + com.google.cloud.memcache.v1.Instance.newBuilder(instance_) + .mergeFrom(value) + .buildPartial(); } else { instance_ = value; } @@ -941,11 +1058,15 @@ public Builder mergeInstance(com.google.cloud.memcache.v1.Instance value) { return this; } /** + * + * *
      * Required. A Memcached Instance
      * 
* - * .google.cloud.memcache.v1.Instance instance = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.memcache.v1.Instance instance = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder clearInstance() { if (instanceBuilder_ == null) { @@ -959,55 +1080,71 @@ public Builder clearInstance() { return this; } /** + * + * *
      * Required. A Memcached Instance
      * 
* - * .google.cloud.memcache.v1.Instance instance = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.memcache.v1.Instance instance = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.cloud.memcache.v1.Instance.Builder getInstanceBuilder() { - + onChanged(); return getInstanceFieldBuilder().getBuilder(); } /** + * + * *
      * Required. A Memcached Instance
      * 
* - * .google.cloud.memcache.v1.Instance instance = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.memcache.v1.Instance instance = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.cloud.memcache.v1.InstanceOrBuilder getInstanceOrBuilder() { if (instanceBuilder_ != null) { return instanceBuilder_.getMessageOrBuilder(); } else { - return instance_ == null ? - com.google.cloud.memcache.v1.Instance.getDefaultInstance() : instance_; + return instance_ == null + ? com.google.cloud.memcache.v1.Instance.getDefaultInstance() + : instance_; } } /** + * + * *
      * Required. A Memcached Instance
      * 
* - * .google.cloud.memcache.v1.Instance instance = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.memcache.v1.Instance instance = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.memcache.v1.Instance, com.google.cloud.memcache.v1.Instance.Builder, com.google.cloud.memcache.v1.InstanceOrBuilder> + com.google.cloud.memcache.v1.Instance, + com.google.cloud.memcache.v1.Instance.Builder, + com.google.cloud.memcache.v1.InstanceOrBuilder> getInstanceFieldBuilder() { if (instanceBuilder_ == null) { - instanceBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.memcache.v1.Instance, com.google.cloud.memcache.v1.Instance.Builder, com.google.cloud.memcache.v1.InstanceOrBuilder>( - getInstance(), - getParentForChildren(), - isClean()); + instanceBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.memcache.v1.Instance, + com.google.cloud.memcache.v1.Instance.Builder, + com.google.cloud.memcache.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); } @@ -1017,12 +1154,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.memcache.v1.CreateInstanceRequest) } // @@protoc_insertion_point(class_scope:google.cloud.memcache.v1.CreateInstanceRequest) private static final com.google.cloud.memcache.v1.CreateInstanceRequest DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.memcache.v1.CreateInstanceRequest(); } @@ -1031,16 +1168,16 @@ public static com.google.cloud.memcache.v1.CreateInstanceRequest getDefaultInsta 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; @@ -1055,6 +1192,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.memcache.v1.CreateInstanceRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1/proto-google-cloud-memcache-v1/src/main/java/com/google/cloud/memcache/v1/CreateInstanceRequestOrBuilder.java b/proto-google-cloud-memcache-v1/src/main/java/com/google/cloud/memcache/v1/CreateInstanceRequestOrBuilder.java similarity index 62% rename from owl-bot-staging/v1/proto-google-cloud-memcache-v1/src/main/java/com/google/cloud/memcache/v1/CreateInstanceRequestOrBuilder.java rename to proto-google-cloud-memcache-v1/src/main/java/com/google/cloud/memcache/v1/CreateInstanceRequestOrBuilder.java index bf74fe64..53b7c388 100644 --- a/owl-bot-staging/v1/proto-google-cloud-memcache-v1/src/main/java/com/google/cloud/memcache/v1/CreateInstanceRequestOrBuilder.java +++ b/proto-google-cloud-memcache-v1/src/main/java/com/google/cloud/memcache/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/memcache/v1/cloud_memcache.proto package com.google.cloud.memcache.v1; -public interface CreateInstanceRequestOrBuilder extends +public interface CreateInstanceRequestOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.memcache.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 Memcached instance in the user
    * project with the following restrictions:
@@ -44,10 +71,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 Memcached instance in the user
    * project with the following restrictions:
@@ -60,35 +90,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 Memcached Instance
    * 
* - * .google.cloud.memcache.v1.Instance instance = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.memcache.v1.Instance instance = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the instance field is set. */ boolean hasInstance(); /** + * + * *
    * Required. A Memcached Instance
    * 
* - * .google.cloud.memcache.v1.Instance instance = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.memcache.v1.Instance instance = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The instance. */ com.google.cloud.memcache.v1.Instance getInstance(); /** + * + * *
    * Required. A Memcached Instance
    * 
* - * .google.cloud.memcache.v1.Instance instance = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.memcache.v1.Instance instance = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ com.google.cloud.memcache.v1.InstanceOrBuilder getInstanceOrBuilder(); } diff --git a/owl-bot-staging/v1/proto-google-cloud-memcache-v1/src/main/java/com/google/cloud/memcache/v1/DeleteInstanceRequest.java b/proto-google-cloud-memcache-v1/src/main/java/com/google/cloud/memcache/v1/DeleteInstanceRequest.java similarity index 66% rename from owl-bot-staging/v1/proto-google-cloud-memcache-v1/src/main/java/com/google/cloud/memcache/v1/DeleteInstanceRequest.java rename to proto-google-cloud-memcache-v1/src/main/java/com/google/cloud/memcache/v1/DeleteInstanceRequest.java index 4b19fa37..6574a6a1 100644 --- a/owl-bot-staging/v1/proto-google-cloud-memcache-v1/src/main/java/com/google/cloud/memcache/v1/DeleteInstanceRequest.java +++ b/proto-google-cloud-memcache-v1/src/main/java/com/google/cloud/memcache/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/memcache/v1/cloud_memcache.proto package com.google.cloud.memcache.v1; /** + * + * *
  * Request for [DeleteInstance][google.cloud.memcache.v1.CloudMemcache.DeleteInstance].
  * 
* * Protobuf type {@code google.cloud.memcache.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.memcache.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.memcache.v1.CloudMemcacheProto.internal_static_google_cloud_memcache_v1_DeleteInstanceRequest_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.memcache.v1.CloudMemcacheProto + .internal_static_google_cloud_memcache_v1_DeleteInstanceRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.memcache.v1.CloudMemcacheProto.internal_static_google_cloud_memcache_v1_DeleteInstanceRequest_fieldAccessorTable + return com.google.cloud.memcache.v1.CloudMemcacheProto + .internal_static_google_cloud_memcache_v1_DeleteInstanceRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.memcache.v1.DeleteInstanceRequest.class, com.google.cloud.memcache.v1.DeleteInstanceRequest.Builder.class); + com.google.cloud.memcache.v1.DeleteInstanceRequest.class, + com.google.cloud.memcache.v1.DeleteInstanceRequest.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** + * + * *
    * Required. Memcached instance resource name in the format:
    *     `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. Memcached instance resource name in the format:
    *     `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.memcache.v1.DeleteInstanceRequest)) { return super.equals(obj); } - com.google.cloud.memcache.v1.DeleteInstanceRequest other = (com.google.cloud.memcache.v1.DeleteInstanceRequest) obj; + com.google.cloud.memcache.v1.DeleteInstanceRequest other = + (com.google.cloud.memcache.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; } @@ -208,117 +235,126 @@ public int hashCode() { } public static com.google.cloud.memcache.v1.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.memcache.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.memcache.v1.DeleteInstanceRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.memcache.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.memcache.v1.DeleteInstanceRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.memcache.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.memcache.v1.DeleteInstanceRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.memcache.v1.DeleteInstanceRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.memcache.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.memcache.v1.DeleteInstanceRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.memcache.v1.DeleteInstanceRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.memcache.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.memcache.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.memcache.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.memcache.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.memcache.v1.CloudMemcache.DeleteInstance].
    * 
* * Protobuf type {@code google.cloud.memcache.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.memcache.v1.DeleteInstanceRequest) com.google.cloud.memcache.v1.DeleteInstanceRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.memcache.v1.CloudMemcacheProto.internal_static_google_cloud_memcache_v1_DeleteInstanceRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.memcache.v1.CloudMemcacheProto + .internal_static_google_cloud_memcache_v1_DeleteInstanceRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.memcache.v1.CloudMemcacheProto.internal_static_google_cloud_memcache_v1_DeleteInstanceRequest_fieldAccessorTable + return com.google.cloud.memcache.v1.CloudMemcacheProto + .internal_static_google_cloud_memcache_v1_DeleteInstanceRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.memcache.v1.DeleteInstanceRequest.class, com.google.cloud.memcache.v1.DeleteInstanceRequest.Builder.class); + com.google.cloud.memcache.v1.DeleteInstanceRequest.class, + com.google.cloud.memcache.v1.DeleteInstanceRequest.Builder.class); } // Construct using com.google.cloud.memcache.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.memcache.v1.CloudMemcacheProto.internal_static_google_cloud_memcache_v1_DeleteInstanceRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.memcache.v1.CloudMemcacheProto + .internal_static_google_cloud_memcache_v1_DeleteInstanceRequest_descriptor; } @java.lang.Override @@ -366,7 +401,8 @@ public com.google.cloud.memcache.v1.DeleteInstanceRequest build() { @java.lang.Override public com.google.cloud.memcache.v1.DeleteInstanceRequest buildPartial() { - com.google.cloud.memcache.v1.DeleteInstanceRequest result = new com.google.cloud.memcache.v1.DeleteInstanceRequest(this); + com.google.cloud.memcache.v1.DeleteInstanceRequest result = + new com.google.cloud.memcache.v1.DeleteInstanceRequest(this); result.name_ = name_; onBuilt(); return result; @@ -376,38 +412,39 @@ public com.google.cloud.memcache.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.memcache.v1.DeleteInstanceRequest) { - return mergeFrom((com.google.cloud.memcache.v1.DeleteInstanceRequest)other); + return mergeFrom((com.google.cloud.memcache.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.memcache.v1.DeleteInstanceRequest other) { - if (other == com.google.cloud.memcache.v1.DeleteInstanceRequest.getDefaultInstance()) return this; + if (other == com.google.cloud.memcache.v1.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.memcache.v1.DeleteInstanceRequest) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.memcache.v1.DeleteInstanceRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -451,20 +490,24 @@ public Builder mergeFrom( private java.lang.Object name_ = ""; /** + * + * *
      * Required. Memcached instance resource name in the format:
      *     `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. Memcached instance resource name in the format:
      *     `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. Memcached instance resource name in the format:
      *     `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. Memcached instance resource name in the format:
      *     `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. Memcached instance resource name in the format:
      *     `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.memcache.v1.DeleteInstanceRequest) } // @@protoc_insertion_point(class_scope:google.cloud.memcache.v1.DeleteInstanceRequest) private static final com.google.cloud.memcache.v1.DeleteInstanceRequest DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.memcache.v1.DeleteInstanceRequest(); } @@ -580,16 +639,16 @@ public static com.google.cloud.memcache.v1.DeleteInstanceRequest getDefaultInsta 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.memcache.v1.DeleteInstanceRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/proto-google-cloud-memcache-v1/src/main/java/com/google/cloud/memcache/v1/DeleteInstanceRequestOrBuilder.java b/proto-google-cloud-memcache-v1/src/main/java/com/google/cloud/memcache/v1/DeleteInstanceRequestOrBuilder.java new file mode 100644 index 00000000..17614ad9 --- /dev/null +++ b/proto-google-cloud-memcache-v1/src/main/java/com/google/cloud/memcache/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/memcache/v1/cloud_memcache.proto + +package com.google.cloud.memcache.v1; + +public interface DeleteInstanceRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.memcache.v1.DeleteInstanceRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. Memcached instance resource name in the format:
+   *     `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. Memcached instance resource name in the format:
+   *     `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-memcache-v1/src/main/java/com/google/cloud/memcache/v1/GetInstanceRequest.java b/proto-google-cloud-memcache-v1/src/main/java/com/google/cloud/memcache/v1/GetInstanceRequest.java similarity index 67% rename from owl-bot-staging/v1/proto-google-cloud-memcache-v1/src/main/java/com/google/cloud/memcache/v1/GetInstanceRequest.java rename to proto-google-cloud-memcache-v1/src/main/java/com/google/cloud/memcache/v1/GetInstanceRequest.java index 7ff115d3..decfa8ba 100644 --- a/owl-bot-staging/v1/proto-google-cloud-memcache-v1/src/main/java/com/google/cloud/memcache/v1/GetInstanceRequest.java +++ b/proto-google-cloud-memcache-v1/src/main/java/com/google/cloud/memcache/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/memcache/v1/cloud_memcache.proto package com.google.cloud.memcache.v1; /** + * + * *
  * Request for [GetInstance][google.cloud.memcache.v1.CloudMemcache.GetInstance].
  * 
* * Protobuf type {@code google.cloud.memcache.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.memcache.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.memcache.v1.CloudMemcacheProto.internal_static_google_cloud_memcache_v1_GetInstanceRequest_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.memcache.v1.CloudMemcacheProto + .internal_static_google_cloud_memcache_v1_GetInstanceRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.memcache.v1.CloudMemcacheProto.internal_static_google_cloud_memcache_v1_GetInstanceRequest_fieldAccessorTable + return com.google.cloud.memcache.v1.CloudMemcacheProto + .internal_static_google_cloud_memcache_v1_GetInstanceRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.memcache.v1.GetInstanceRequest.class, com.google.cloud.memcache.v1.GetInstanceRequest.Builder.class); + com.google.cloud.memcache.v1.GetInstanceRequest.class, + com.google.cloud.memcache.v1.GetInstanceRequest.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** + * + * *
    * Required. Memcached instance resource name in the format:
    *     `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. Memcached instance resource name in the format:
    *     `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.memcache.v1.GetInstanceRequest)) { return super.equals(obj); } - com.google.cloud.memcache.v1.GetInstanceRequest other = (com.google.cloud.memcache.v1.GetInstanceRequest) obj; + com.google.cloud.memcache.v1.GetInstanceRequest other = + (com.google.cloud.memcache.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.memcache.v1.GetInstanceRequest parseFrom( - java.nio.ByteBuffer data) + public static com.google.cloud.memcache.v1.GetInstanceRequest parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.memcache.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.memcache.v1.GetInstanceRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.memcache.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.memcache.v1.GetInstanceRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.memcache.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.memcache.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.memcache.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.memcache.v1.GetInstanceRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.memcache.v1.GetInstanceRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.memcache.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.memcache.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.memcache.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.memcache.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.memcache.v1.CloudMemcache.GetInstance].
    * 
* * Protobuf type {@code google.cloud.memcache.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.memcache.v1.GetInstanceRequest) com.google.cloud.memcache.v1.GetInstanceRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.memcache.v1.CloudMemcacheProto.internal_static_google_cloud_memcache_v1_GetInstanceRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.memcache.v1.CloudMemcacheProto + .internal_static_google_cloud_memcache_v1_GetInstanceRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.memcache.v1.CloudMemcacheProto.internal_static_google_cloud_memcache_v1_GetInstanceRequest_fieldAccessorTable + return com.google.cloud.memcache.v1.CloudMemcacheProto + .internal_static_google_cloud_memcache_v1_GetInstanceRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.memcache.v1.GetInstanceRequest.class, com.google.cloud.memcache.v1.GetInstanceRequest.Builder.class); + com.google.cloud.memcache.v1.GetInstanceRequest.class, + com.google.cloud.memcache.v1.GetInstanceRequest.Builder.class); } // Construct using com.google.cloud.memcache.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.memcache.v1.CloudMemcacheProto.internal_static_google_cloud_memcache_v1_GetInstanceRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.memcache.v1.CloudMemcacheProto + .internal_static_google_cloud_memcache_v1_GetInstanceRequest_descriptor; } @java.lang.Override @@ -366,7 +401,8 @@ public com.google.cloud.memcache.v1.GetInstanceRequest build() { @java.lang.Override public com.google.cloud.memcache.v1.GetInstanceRequest buildPartial() { - com.google.cloud.memcache.v1.GetInstanceRequest result = new com.google.cloud.memcache.v1.GetInstanceRequest(this); + com.google.cloud.memcache.v1.GetInstanceRequest result = + new com.google.cloud.memcache.v1.GetInstanceRequest(this); result.name_ = name_; onBuilt(); return result; @@ -376,38 +412,39 @@ public com.google.cloud.memcache.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.memcache.v1.GetInstanceRequest) { - return mergeFrom((com.google.cloud.memcache.v1.GetInstanceRequest)other); + return mergeFrom((com.google.cloud.memcache.v1.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.memcache.v1.GetInstanceRequest other) { - if (other == com.google.cloud.memcache.v1.GetInstanceRequest.getDefaultInstance()) return this; + if (other == com.google.cloud.memcache.v1.GetInstanceRequest.getDefaultInstance()) + return this; if (!other.getName().isEmpty()) { name_ = other.name_; onChanged(); @@ -451,20 +489,24 @@ public Builder mergeFrom( private java.lang.Object name_ = ""; /** + * + * *
      * Required. Memcached instance resource name in the format:
      *     `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. Memcached instance resource name in the format:
      *     `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. Memcached instance resource name in the format:
      *     `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. Memcached instance resource name in the format:
      *     `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. Memcached instance resource name in the format:
      *     `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.memcache.v1.GetInstanceRequest) } // @@protoc_insertion_point(class_scope:google.cloud.memcache.v1.GetInstanceRequest) private static final com.google.cloud.memcache.v1.GetInstanceRequest DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.memcache.v1.GetInstanceRequest(); } @@ -580,16 +638,16 @@ public static com.google.cloud.memcache.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 +662,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.memcache.v1.GetInstanceRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/proto-google-cloud-memcache-v1/src/main/java/com/google/cloud/memcache/v1/GetInstanceRequestOrBuilder.java b/proto-google-cloud-memcache-v1/src/main/java/com/google/cloud/memcache/v1/GetInstanceRequestOrBuilder.java new file mode 100644 index 00000000..58720641 --- /dev/null +++ b/proto-google-cloud-memcache-v1/src/main/java/com/google/cloud/memcache/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/memcache/v1/cloud_memcache.proto + +package com.google.cloud.memcache.v1; + +public interface GetInstanceRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.memcache.v1.GetInstanceRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. Memcached instance resource name in the format:
+   *     `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. Memcached instance resource name in the format:
+   *     `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-memcache-v1/src/main/java/com/google/cloud/memcache/v1/Instance.java b/proto-google-cloud-memcache-v1/src/main/java/com/google/cloud/memcache/v1/Instance.java similarity index 72% rename from owl-bot-staging/v1/proto-google-cloud-memcache-v1/src/main/java/com/google/cloud/memcache/v1/Instance.java rename to proto-google-cloud-memcache-v1/src/main/java/com/google/cloud/memcache/v1/Instance.java index e225c35e..969bb6ac 100644 --- a/owl-bot-staging/v1/proto-google-cloud-memcache-v1/src/main/java/com/google/cloud/memcache/v1/Instance.java +++ b/proto-google-cloud-memcache-v1/src/main/java/com/google/cloud/memcache/v1/Instance.java @@ -1,20 +1,34 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/memcache/v1/cloud_memcache.proto package com.google.cloud.memcache.v1; -/** - * Protobuf type {@code google.cloud.memcache.v1.Instance} - */ -public final class Instance extends - com.google.protobuf.GeneratedMessageV3 implements +/** Protobuf type {@code google.cloud.memcache.v1.Instance} */ +public final class Instance extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.memcache.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_ = ""; @@ -30,16 +44,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) @@ -59,152 +72,178 @@ 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(); + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); - authorizedNetwork_ = s; - break; - } - case 42: { - java.lang.String s = input.readStringRequireUtf8(); - if (!((mutable_bitField0_ & 0x00000002) != 0)) { - zones_ = new com.google.protobuf.LazyStringArrayList(); - mutable_bitField0_ |= 0x00000002; + displayName_ = s; + break; } - zones_.add(s); - break; - } - case 48: { + 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(); - nodeCount_ = input.readInt32(); - break; - } - case 58: { - com.google.cloud.memcache.v1.Instance.NodeConfig.Builder subBuilder = null; - if (nodeConfig_ != null) { - subBuilder = nodeConfig_.toBuilder(); + authorizedNetwork_ = s; + break; } - nodeConfig_ = input.readMessage(com.google.cloud.memcache.v1.Instance.NodeConfig.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(nodeConfig_); - nodeConfig_ = subBuilder.buildPartial(); + case 42: + { + java.lang.String s = input.readStringRequireUtf8(); + if (!((mutable_bitField0_ & 0x00000002) != 0)) { + zones_ = new com.google.protobuf.LazyStringArrayList(); + mutable_bitField0_ |= 0x00000002; + } + zones_.add(s); + break; } - - break; - } - case 72: { - int rawValue = input.readEnum(); - - memcacheVersion_ = rawValue; - break; - } - case 90: { - com.google.cloud.memcache.v1.MemcacheParameters.Builder subBuilder = null; - if (parameters_ != null) { - subBuilder = parameters_.toBuilder(); + case 48: + { + nodeCount_ = input.readInt32(); + break; } - parameters_ = input.readMessage(com.google.cloud.memcache.v1.MemcacheParameters.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(parameters_); - parameters_ = subBuilder.buildPartial(); + case 58: + { + com.google.cloud.memcache.v1.Instance.NodeConfig.Builder subBuilder = null; + if (nodeConfig_ != null) { + subBuilder = nodeConfig_.toBuilder(); + } + nodeConfig_ = + input.readMessage( + com.google.cloud.memcache.v1.Instance.NodeConfig.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(nodeConfig_); + nodeConfig_ = subBuilder.buildPartial(); + } + + break; } + case 72: + { + int rawValue = input.readEnum(); - break; - } - case 98: { - if (!((mutable_bitField0_ & 0x00000004) != 0)) { - memcacheNodes_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000004; + memcacheVersion_ = rawValue; + break; } - memcacheNodes_.add( - input.readMessage(com.google.cloud.memcache.v1.Instance.Node.parser(), extensionRegistry)); - break; - } - case 106: { - com.google.protobuf.Timestamp.Builder subBuilder = null; - if (createTime_ != null) { - subBuilder = createTime_.toBuilder(); + case 90: + { + com.google.cloud.memcache.v1.MemcacheParameters.Builder subBuilder = null; + if (parameters_ != null) { + subBuilder = parameters_.toBuilder(); + } + parameters_ = + input.readMessage( + com.google.cloud.memcache.v1.MemcacheParameters.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(parameters_); + parameters_ = subBuilder.buildPartial(); + } + + break; } - createTime_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(createTime_); - createTime_ = subBuilder.buildPartial(); + case 98: + { + if (!((mutable_bitField0_ & 0x00000004) != 0)) { + memcacheNodes_ = + new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000004; + } + memcacheNodes_.add( + input.readMessage( + com.google.cloud.memcache.v1.Instance.Node.parser(), extensionRegistry)); + 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 114: { - 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 114: + { + 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 120: { - int rawValue = input.readEnum(); + break; + } + case 120: + { + int rawValue = input.readEnum(); - state_ = rawValue; - break; - } - case 146: { - java.lang.String s = input.readStringRequireUtf8(); + state_ = rawValue; + break; + } + case 146: + { + java.lang.String s = input.readStringRequireUtf8(); - memcacheFullVersion_ = s; - break; - } - case 154: { - if (!((mutable_bitField0_ & 0x00000008) != 0)) { - instanceMessages_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000008; + memcacheFullVersion_ = s; + break; } - instanceMessages_.add( - input.readMessage(com.google.cloud.memcache.v1.Instance.InstanceMessage.parser(), extensionRegistry)); - break; - } - case 162: { - java.lang.String s = input.readStringRequireUtf8(); + case 154: + { + if (!((mutable_bitField0_ & 0x00000008) != 0)) { + instanceMessages_ = + new java.util.ArrayList< + com.google.cloud.memcache.v1.Instance.InstanceMessage>(); + mutable_bitField0_ |= 0x00000008; + } + instanceMessages_.add( + input.readMessage( + com.google.cloud.memcache.v1.Instance.InstanceMessage.parser(), + extensionRegistry)); + break; + } + case 162: + { + java.lang.String s = input.readStringRequireUtf8(); - discoveryEndpoint_ = s; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + discoveryEndpoint_ = s; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -212,8 +251,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_ & 0x00000002) != 0)) { zones_ = zones_.getUnmodifiableView(); @@ -228,41 +266,46 @@ private Instance( makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.memcache.v1.CloudMemcacheProto.internal_static_google_cloud_memcache_v1_Instance_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.memcache.v1.CloudMemcacheProto + .internal_static_google_cloud_memcache_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(); 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.memcache.v1.CloudMemcacheProto.internal_static_google_cloud_memcache_v1_Instance_fieldAccessorTable + return com.google.cloud.memcache.v1.CloudMemcacheProto + .internal_static_google_cloud_memcache_v1_Instance_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.memcache.v1.Instance.class, com.google.cloud.memcache.v1.Instance.Builder.class); + com.google.cloud.memcache.v1.Instance.class, + com.google.cloud.memcache.v1.Instance.Builder.class); } /** + * + * *
    * Different states of a Memcached instance.
    * 
* * Protobuf enum {@code google.cloud.memcache.v1.Instance.State} */ - public enum State - implements com.google.protobuf.ProtocolMessageEnum { + public enum State implements com.google.protobuf.ProtocolMessageEnum { /** + * + * *
      * State not set.
      * 
@@ -271,6 +314,8 @@ public enum State */ STATE_UNSPECIFIED(0), /** + * + * *
      * Memcached instance is being created.
      * 
@@ -279,6 +324,8 @@ public enum State */ CREATING(1), /** + * + * *
      * Memcached instance has been created and ready to be used.
      * 
@@ -287,6 +334,8 @@ public enum State */ READY(2), /** + * + * *
      * Memcached instance is being deleted.
      * 
@@ -295,6 +344,8 @@ public enum State */ DELETING(4), /** + * + * *
      * Memcached instance is going through maintenance, e.g. data plane rollout.
      * 
@@ -306,6 +357,8 @@ public enum State ; /** + * + * *
      * State not set.
      * 
@@ -314,6 +367,8 @@ public enum State */ public static final int STATE_UNSPECIFIED_VALUE = 0; /** + * + * *
      * Memcached instance is being created.
      * 
@@ -322,6 +377,8 @@ public enum State */ public static final int CREATING_VALUE = 1; /** + * + * *
      * Memcached instance has been created and ready to be used.
      * 
@@ -330,6 +387,8 @@ public enum State */ public static final int READY_VALUE = 2; /** + * + * *
      * Memcached instance is being deleted.
      * 
@@ -338,6 +397,8 @@ public enum State */ public static final int DELETING_VALUE = 4; /** + * + * *
      * Memcached instance is going through maintenance, e.g. data plane rollout.
      * 
@@ -346,7 +407,6 @@ public enum State */ public static final int PERFORMING_MAINTENANCE_VALUE = 5; - public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( @@ -371,51 +431,53 @@ public static State valueOf(int value) { */ public static State forNumber(int value) { switch (value) { - case 0: return STATE_UNSPECIFIED; - case 1: return CREATING; - case 2: return READY; - case 4: return DELETING; - case 5: return PERFORMING_MAINTENANCE; - default: return null; + case 0: + return STATE_UNSPECIFIED; + case 1: + return CREATING; + case 2: + return READY; + case 4: + return DELETING; + case 5: + return PERFORMING_MAINTENANCE; + 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.memcache.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; @@ -432,61 +494,69 @@ private State(int value) { // @@protoc_insertion_point(enum_scope:google.cloud.memcache.v1.Instance.State) } - public interface NodeConfigOrBuilder extends + public interface NodeConfigOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.memcache.v1.Instance.NodeConfig) com.google.protobuf.MessageOrBuilder { /** + * + * *
      * Required. Number of cpus per Memcached node.
      * 
* * int32 cpu_count = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The cpuCount. */ int getCpuCount(); /** + * + * *
      * Required. Memory size in MiB for each Memcached node.
      * 
* * int32 memory_size_mb = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The memorySizeMb. */ int getMemorySizeMb(); } /** + * + * *
    * Configuration for a Memcached Node.
    * 
* * Protobuf type {@code google.cloud.memcache.v1.Instance.NodeConfig} */ - public static final class NodeConfig extends - com.google.protobuf.GeneratedMessageV3 implements + public static final class NodeConfig extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.memcache.v1.Instance.NodeConfig) NodeConfigOrBuilder { - private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use NodeConfig.newBuilder() to construct. private NodeConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private NodeConfig() { - } + + private NodeConfig() {} @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new NodeConfig(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private NodeConfig( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -505,23 +575,23 @@ private NodeConfig( case 0: done = true; break; - case 8: { - - cpuCount_ = input.readInt32(); - break; - } - case 16: { - - memorySizeMb_ = input.readInt32(); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + case 8: + { + cpuCount_ = input.readInt32(); + break; + } + case 16: + { + memorySizeMb_ = input.readInt32(); + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -529,34 +599,39 @@ private NodeConfig( } 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.memcache.v1.CloudMemcacheProto.internal_static_google_cloud_memcache_v1_Instance_NodeConfig_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.memcache.v1.CloudMemcacheProto + .internal_static_google_cloud_memcache_v1_Instance_NodeConfig_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.memcache.v1.CloudMemcacheProto.internal_static_google_cloud_memcache_v1_Instance_NodeConfig_fieldAccessorTable + return com.google.cloud.memcache.v1.CloudMemcacheProto + .internal_static_google_cloud_memcache_v1_Instance_NodeConfig_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.memcache.v1.Instance.NodeConfig.class, com.google.cloud.memcache.v1.Instance.NodeConfig.Builder.class); + com.google.cloud.memcache.v1.Instance.NodeConfig.class, + com.google.cloud.memcache.v1.Instance.NodeConfig.Builder.class); } public static final int CPU_COUNT_FIELD_NUMBER = 1; private int cpuCount_; /** + * + * *
      * Required. Number of cpus per Memcached node.
      * 
* * int32 cpu_count = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The cpuCount. */ @java.lang.Override @@ -567,11 +642,14 @@ public int getCpuCount() { public static final int MEMORY_SIZE_MB_FIELD_NUMBER = 2; private int memorySizeMb_; /** + * + * *
      * Required. Memory size in MiB for each Memcached node.
      * 
* * int32 memory_size_mb = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The memorySizeMb. */ @java.lang.Override @@ -580,6 +658,7 @@ public int getMemorySizeMb() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -591,8 +670,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (cpuCount_ != 0) { output.writeInt32(1, cpuCount_); } @@ -609,12 +687,10 @@ public int getSerializedSize() { size = 0; if (cpuCount_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(1, cpuCount_); + size += com.google.protobuf.CodedOutputStream.computeInt32Size(1, cpuCount_); } if (memorySizeMb_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(2, memorySizeMb_); + size += com.google.protobuf.CodedOutputStream.computeInt32Size(2, memorySizeMb_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -624,17 +700,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.memcache.v1.Instance.NodeConfig)) { return super.equals(obj); } - com.google.cloud.memcache.v1.Instance.NodeConfig other = (com.google.cloud.memcache.v1.Instance.NodeConfig) obj; + com.google.cloud.memcache.v1.Instance.NodeConfig other = + (com.google.cloud.memcache.v1.Instance.NodeConfig) obj; - if (getCpuCount() - != other.getCpuCount()) return false; - if (getMemorySizeMb() - != other.getMemorySizeMb()) return false; + if (getCpuCount() != other.getCpuCount()) return false; + if (getMemorySizeMb() != other.getMemorySizeMb()) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -656,87 +731,93 @@ public int hashCode() { } public static com.google.cloud.memcache.v1.Instance.NodeConfig parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.memcache.v1.Instance.NodeConfig parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.memcache.v1.Instance.NodeConfig parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.memcache.v1.Instance.NodeConfig parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.memcache.v1.Instance.NodeConfig parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.memcache.v1.Instance.NodeConfig parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.memcache.v1.Instance.NodeConfig parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.memcache.v1.Instance.NodeConfig parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.memcache.v1.Instance.NodeConfig parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.memcache.v1.Instance.NodeConfig parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.memcache.v1.Instance.NodeConfig parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.memcache.v1.Instance.NodeConfig parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.memcache.v1.Instance.NodeConfig parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.memcache.v1.Instance.NodeConfig parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.cloud.memcache.v1.Instance.NodeConfig prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override @@ -746,27 +827,32 @@ protected Builder newBuilderForType( return builder; } /** + * + * *
      * Configuration for a Memcached Node.
      * 
* * Protobuf type {@code google.cloud.memcache.v1.Instance.NodeConfig} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.memcache.v1.Instance.NodeConfig) com.google.cloud.memcache.v1.Instance.NodeConfigOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.memcache.v1.CloudMemcacheProto.internal_static_google_cloud_memcache_v1_Instance_NodeConfig_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.memcache.v1.CloudMemcacheProto + .internal_static_google_cloud_memcache_v1_Instance_NodeConfig_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.memcache.v1.CloudMemcacheProto.internal_static_google_cloud_memcache_v1_Instance_NodeConfig_fieldAccessorTable + return com.google.cloud.memcache.v1.CloudMemcacheProto + .internal_static_google_cloud_memcache_v1_Instance_NodeConfig_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.memcache.v1.Instance.NodeConfig.class, com.google.cloud.memcache.v1.Instance.NodeConfig.Builder.class); + com.google.cloud.memcache.v1.Instance.NodeConfig.class, + com.google.cloud.memcache.v1.Instance.NodeConfig.Builder.class); } // Construct using com.google.cloud.memcache.v1.Instance.NodeConfig.newBuilder() @@ -774,16 +860,15 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -795,9 +880,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.memcache.v1.CloudMemcacheProto.internal_static_google_cloud_memcache_v1_Instance_NodeConfig_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.memcache.v1.CloudMemcacheProto + .internal_static_google_cloud_memcache_v1_Instance_NodeConfig_descriptor; } @java.lang.Override @@ -816,7 +901,8 @@ public com.google.cloud.memcache.v1.Instance.NodeConfig build() { @java.lang.Override public com.google.cloud.memcache.v1.Instance.NodeConfig buildPartial() { - com.google.cloud.memcache.v1.Instance.NodeConfig result = new com.google.cloud.memcache.v1.Instance.NodeConfig(this); + com.google.cloud.memcache.v1.Instance.NodeConfig result = + new com.google.cloud.memcache.v1.Instance.NodeConfig(this); result.cpuCount_ = cpuCount_; result.memorySizeMb_ = memorySizeMb_; onBuilt(); @@ -827,38 +913,41 @@ public com.google.cloud.memcache.v1.Instance.NodeConfig buildPartial() { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + int index, + java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.memcache.v1.Instance.NodeConfig) { - return mergeFrom((com.google.cloud.memcache.v1.Instance.NodeConfig)other); + return mergeFrom((com.google.cloud.memcache.v1.Instance.NodeConfig) other); } else { super.mergeFrom(other); return this; @@ -866,7 +955,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.memcache.v1.Instance.NodeConfig other) { - if (other == com.google.cloud.memcache.v1.Instance.NodeConfig.getDefaultInstance()) return this; + if (other == com.google.cloud.memcache.v1.Instance.NodeConfig.getDefaultInstance()) + return this; if (other.getCpuCount() != 0) { setCpuCount(other.getCpuCount()); } @@ -892,7 +982,8 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.memcache.v1.Instance.NodeConfig) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.memcache.v1.Instance.NodeConfig) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -902,13 +993,16 @@ public Builder mergeFrom( return this; } - private int cpuCount_ ; + private int cpuCount_; /** + * + * *
        * Required. Number of cpus per Memcached node.
        * 
* * int32 cpu_count = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The cpuCount. */ @java.lang.Override @@ -916,42 +1010,51 @@ public int getCpuCount() { return cpuCount_; } /** + * + * *
        * Required. Number of cpus per Memcached node.
        * 
* * int32 cpu_count = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @param value The cpuCount to set. * @return This builder for chaining. */ public Builder setCpuCount(int value) { - + cpuCount_ = value; onChanged(); return this; } /** + * + * *
        * Required. Number of cpus per Memcached node.
        * 
* * int32 cpu_count = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return This builder for chaining. */ public Builder clearCpuCount() { - + cpuCount_ = 0; onChanged(); return this; } - private int memorySizeMb_ ; + private int memorySizeMb_; /** + * + * *
        * Required. Memory size in MiB for each Memcached node.
        * 
* * int32 memory_size_mb = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The memorySizeMb. */ @java.lang.Override @@ -959,34 +1062,41 @@ public int getMemorySizeMb() { return memorySizeMb_; } /** + * + * *
        * Required. Memory size in MiB for each Memcached node.
        * 
* * int32 memory_size_mb = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @param value The memorySizeMb to set. * @return This builder for chaining. */ public Builder setMemorySizeMb(int value) { - + memorySizeMb_ = value; onChanged(); return this; } /** + * + * *
        * Required. Memory size in MiB for each Memcached node.
        * 
* * int32 memory_size_mb = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return This builder for chaining. */ public Builder clearMemorySizeMb() { - + memorySizeMb_ = 0; onChanged(); return this; } + @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -999,12 +1109,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.memcache.v1.Instance.NodeConfig) } // @@protoc_insertion_point(class_scope:google.cloud.memcache.v1.Instance.NodeConfig) private static final com.google.cloud.memcache.v1.Instance.NodeConfig DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.memcache.v1.Instance.NodeConfig(); } @@ -1013,16 +1123,16 @@ public static com.google.cloud.memcache.v1.Instance.NodeConfig getDefaultInstanc return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public NodeConfig parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new NodeConfig(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public NodeConfig parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new NodeConfig(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1037,125 +1147,161 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.memcache.v1.Instance.NodeConfig getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - public interface NodeOrBuilder extends + public interface NodeOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.memcache.v1.Instance.Node) com.google.protobuf.MessageOrBuilder { /** + * + * *
      * Output only. Identifier of the Memcached node. The node id does not
      * include project or location like the Memcached instance name.
      * 
* * string node_id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The nodeId. */ java.lang.String getNodeId(); /** + * + * *
      * Output only. Identifier of the Memcached node. The node id does not
      * include project or location like the Memcached instance name.
      * 
* * string node_id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for nodeId. */ - com.google.protobuf.ByteString - getNodeIdBytes(); + com.google.protobuf.ByteString getNodeIdBytes(); /** + * + * *
      * Output only. Location (GCP Zone) for the Memcached node.
      * 
* * string zone = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The zone. */ java.lang.String getZone(); /** + * + * *
      * Output only. Location (GCP Zone) for the Memcached 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(); /** + * + * *
      * Output only. Current state of the Memcached node.
      * 
* - * .google.cloud.memcache.v1.Instance.Node.State state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.memcache.v1.Instance.Node.State state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The enum numeric value on the wire for state. */ int getStateValue(); /** + * + * *
      * Output only. Current state of the Memcached node.
      * 
* - * .google.cloud.memcache.v1.Instance.Node.State state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.memcache.v1.Instance.Node.State state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The state. */ com.google.cloud.memcache.v1.Instance.Node.State getState(); /** + * + * *
      * Output only. Hostname or IP address of the Memcached node used by the
      * clients to connect to the Memcached server on this node.
      * 
* * string host = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The host. */ java.lang.String getHost(); /** + * + * *
      * Output only. Hostname or IP address of the Memcached node used by the
      * clients to connect to the Memcached server on this node.
      * 
* * string host = 4 [(.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 Memcached server on this node.
      * 
* * int32 port = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The port. */ int getPort(); /** + * + * *
      * User defined parameters currently applied to the node.
      * 
* * .google.cloud.memcache.v1.MemcacheParameters parameters = 6; + * * @return Whether the parameters field is set. */ boolean hasParameters(); /** + * + * *
      * User defined parameters currently applied to the node.
      * 
* * .google.cloud.memcache.v1.MemcacheParameters parameters = 6; + * * @return The parameters. */ com.google.cloud.memcache.v1.MemcacheParameters getParameters(); /** + * + * *
      * User defined parameters currently applied to the node.
      * 
@@ -1164,18 +1310,17 @@ public interface NodeOrBuilder extends */ com.google.cloud.memcache.v1.MemcacheParametersOrBuilder getParametersOrBuilder(); } - /** - * Protobuf type {@code google.cloud.memcache.v1.Instance.Node} - */ - public static final class Node extends - com.google.protobuf.GeneratedMessageV3 implements + /** Protobuf type {@code google.cloud.memcache.v1.Instance.Node} */ + public static final class Node extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.memcache.v1.Instance.Node) NodeOrBuilder { - private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use Node.newBuilder() to construct. private Node(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private Node() { nodeId_ = ""; zone_ = ""; @@ -1185,16 +1330,15 @@ private Node() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new Node(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private Node( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -1213,55 +1357,63 @@ private Node( case 0: done = true; break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); - nodeId_ = s; - break; - } - case 18: { - java.lang.String s = input.readStringRequireUtf8(); - - zone_ = s; - break; - } - case 24: { - int rawValue = input.readEnum(); - - state_ = rawValue; - break; - } - case 34: { - java.lang.String s = input.readStringRequireUtf8(); - - host_ = s; - break; - } - case 40: { + nodeId_ = s; + break; + } + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); - port_ = input.readInt32(); - break; - } - case 50: { - com.google.cloud.memcache.v1.MemcacheParameters.Builder subBuilder = null; - if (parameters_ != null) { - subBuilder = parameters_.toBuilder(); + zone_ = s; + break; } - parameters_ = input.readMessage(com.google.cloud.memcache.v1.MemcacheParameters.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(parameters_); - parameters_ = subBuilder.buildPartial(); + case 24: + { + int rawValue = input.readEnum(); + + state_ = rawValue; + break; } + case 34: + { + java.lang.String s = input.readStringRequireUtf8(); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + host_ = s; + break; + } + case 40: + { + port_ = input.readInt32(); + break; + } + case 50: + { + com.google.cloud.memcache.v1.MemcacheParameters.Builder subBuilder = null; + if (parameters_ != null) { + subBuilder = parameters_.toBuilder(); + } + parameters_ = + input.readMessage( + com.google.cloud.memcache.v1.MemcacheParameters.parser(), + extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(parameters_); + parameters_ = subBuilder.buildPartial(); + } + + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -1269,36 +1421,41 @@ private Node( } 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.memcache.v1.CloudMemcacheProto.internal_static_google_cloud_memcache_v1_Instance_Node_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.memcache.v1.CloudMemcacheProto + .internal_static_google_cloud_memcache_v1_Instance_Node_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.memcache.v1.CloudMemcacheProto.internal_static_google_cloud_memcache_v1_Instance_Node_fieldAccessorTable + return com.google.cloud.memcache.v1.CloudMemcacheProto + .internal_static_google_cloud_memcache_v1_Instance_Node_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.memcache.v1.Instance.Node.class, com.google.cloud.memcache.v1.Instance.Node.Builder.class); + com.google.cloud.memcache.v1.Instance.Node.class, + com.google.cloud.memcache.v1.Instance.Node.Builder.class); } /** + * + * *
      * Different states of a Memcached node.
      * 
* * Protobuf enum {@code google.cloud.memcache.v1.Instance.Node.State} */ - public enum State - implements com.google.protobuf.ProtocolMessageEnum { + public enum State implements com.google.protobuf.ProtocolMessageEnum { /** + * + * *
        * Node state is not set.
        * 
@@ -1307,6 +1464,8 @@ public enum State */ STATE_UNSPECIFIED(0), /** + * + * *
        * Node is being created.
        * 
@@ -1315,6 +1474,8 @@ public enum State */ CREATING(1), /** + * + * *
        * Node has been created and ready to be used.
        * 
@@ -1323,6 +1484,8 @@ public enum State */ READY(2), /** + * + * *
        * Node is being deleted.
        * 
@@ -1331,6 +1494,8 @@ public enum State */ DELETING(3), /** + * + * *
        * Node is being updated.
        * 
@@ -1342,6 +1507,8 @@ public enum State ; /** + * + * *
        * Node state is not set.
        * 
@@ -1350,6 +1517,8 @@ public enum State */ public static final int STATE_UNSPECIFIED_VALUE = 0; /** + * + * *
        * Node is being created.
        * 
@@ -1358,6 +1527,8 @@ public enum State */ public static final int CREATING_VALUE = 1; /** + * + * *
        * Node has been created and ready to be used.
        * 
@@ -1366,6 +1537,8 @@ public enum State */ public static final int READY_VALUE = 2; /** + * + * *
        * Node is being deleted.
        * 
@@ -1374,6 +1547,8 @@ public enum State */ public static final int DELETING_VALUE = 3; /** + * + * *
        * Node is being updated.
        * 
@@ -1382,7 +1557,6 @@ public enum State */ public static final int UPDATING_VALUE = 4; - public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( @@ -1407,51 +1581,53 @@ public static State valueOf(int value) { */ public static State forNumber(int value) { switch (value) { - case 0: return STATE_UNSPECIFIED; - case 1: return CREATING; - case 2: return READY; - case 3: return DELETING; - case 4: return UPDATING; - default: return null; + case 0: + return STATE_UNSPECIFIED; + case 1: + return CREATING; + case 2: + return READY; + case 3: + return DELETING; + case 4: + return UPDATING; + 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.memcache.v1.Instance.Node.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; @@ -1471,12 +1647,15 @@ private State(int value) { public static final int NODE_ID_FIELD_NUMBER = 1; private volatile java.lang.Object nodeId_; /** + * + * *
      * Output only. Identifier of the Memcached node. The node id does not
      * include project or location like the Memcached instance name.
      * 
* * string node_id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The nodeId. */ @java.lang.Override @@ -1485,30 +1664,30 @@ public java.lang.String getNodeId() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); nodeId_ = s; return s; } } /** + * + * *
      * Output only. Identifier of the Memcached node. The node id does not
      * include project or location like the Memcached instance name.
      * 
* * string node_id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for nodeId. */ @java.lang.Override - public com.google.protobuf.ByteString - getNodeIdBytes() { + public com.google.protobuf.ByteString getNodeIdBytes() { java.lang.Object ref = nodeId_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); nodeId_ = b; return b; } else { @@ -1519,11 +1698,14 @@ public java.lang.String getNodeId() { public static final int ZONE_FIELD_NUMBER = 2; private volatile java.lang.Object zone_; /** + * + * *
      * Output only. Location (GCP Zone) for the Memcached node.
      * 
* * string zone = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The zone. */ @java.lang.Override @@ -1532,29 +1714,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 (GCP Zone) for the Memcached 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 { @@ -1565,39 +1747,57 @@ public java.lang.String getZone() { public static final int STATE_FIELD_NUMBER = 3; private int state_; /** + * + * *
      * Output only. Current state of the Memcached node.
      * 
* - * .google.cloud.memcache.v1.Instance.Node.State state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.memcache.v1.Instance.Node.State state = 3 [(.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. Current state of the Memcached node.
      * 
* - * .google.cloud.memcache.v1.Instance.Node.State state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.memcache.v1.Instance.Node.State state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The state. */ - @java.lang.Override public com.google.cloud.memcache.v1.Instance.Node.State getState() { + @java.lang.Override + public com.google.cloud.memcache.v1.Instance.Node.State getState() { @SuppressWarnings("deprecation") - com.google.cloud.memcache.v1.Instance.Node.State result = com.google.cloud.memcache.v1.Instance.Node.State.valueOf(state_); - return result == null ? com.google.cloud.memcache.v1.Instance.Node.State.UNRECOGNIZED : result; + com.google.cloud.memcache.v1.Instance.Node.State result = + com.google.cloud.memcache.v1.Instance.Node.State.valueOf(state_); + return result == null + ? com.google.cloud.memcache.v1.Instance.Node.State.UNRECOGNIZED + : result; } public static final int HOST_FIELD_NUMBER = 4; private volatile java.lang.Object host_; /** + * + * *
      * Output only. Hostname or IP address of the Memcached node used by the
      * clients to connect to the Memcached server on this node.
      * 
* * string host = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The host. */ @java.lang.Override @@ -1606,30 +1806,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 Memcached node used by the
      * clients to connect to the Memcached server on this node.
      * 
* * string host = 4 [(.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 { @@ -1640,11 +1840,14 @@ public java.lang.String getHost() { public static final int PORT_FIELD_NUMBER = 5; private int port_; /** + * + * *
      * Output only. The port number of the Memcached server on this node.
      * 
* * int32 port = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The port. */ @java.lang.Override @@ -1655,11 +1858,14 @@ public int getPort() { public static final int PARAMETERS_FIELD_NUMBER = 6; private com.google.cloud.memcache.v1.MemcacheParameters parameters_; /** + * + * *
      * User defined parameters currently applied to the node.
      * 
* * .google.cloud.memcache.v1.MemcacheParameters parameters = 6; + * * @return Whether the parameters field is set. */ @java.lang.Override @@ -1667,18 +1873,25 @@ public boolean hasParameters() { return parameters_ != null; } /** + * + * *
      * User defined parameters currently applied to the node.
      * 
* * .google.cloud.memcache.v1.MemcacheParameters parameters = 6; + * * @return The parameters. */ @java.lang.Override public com.google.cloud.memcache.v1.MemcacheParameters getParameters() { - return parameters_ == null ? com.google.cloud.memcache.v1.MemcacheParameters.getDefaultInstance() : parameters_; + return parameters_ == null + ? com.google.cloud.memcache.v1.MemcacheParameters.getDefaultInstance() + : parameters_; } /** + * + * *
      * User defined parameters currently applied to the node.
      * 
@@ -1691,6 +1904,7 @@ public com.google.cloud.memcache.v1.MemcacheParametersOrBuilder getParametersOrB } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -1702,15 +1916,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(nodeId_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, nodeId_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(zone_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, zone_); } - if (state_ != com.google.cloud.memcache.v1.Instance.Node.State.STATE_UNSPECIFIED.getNumber()) { + if (state_ + != com.google.cloud.memcache.v1.Instance.Node.State.STATE_UNSPECIFIED.getNumber()) { output.writeEnum(3, state_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(host_)) { @@ -1737,20 +1951,18 @@ public int getSerializedSize() { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(zone_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, zone_); } - if (state_ != com.google.cloud.memcache.v1.Instance.Node.State.STATE_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(3, state_); + if (state_ + != com.google.cloud.memcache.v1.Instance.Node.State.STATE_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(3, state_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(host_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, host_); } if (port_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(5, port_); + size += com.google.protobuf.CodedOutputStream.computeInt32Size(5, port_); } if (parameters_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(6, getParameters()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(6, getParameters()); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -1760,26 +1972,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.memcache.v1.Instance.Node)) { return super.equals(obj); } - com.google.cloud.memcache.v1.Instance.Node other = (com.google.cloud.memcache.v1.Instance.Node) obj; + com.google.cloud.memcache.v1.Instance.Node other = + (com.google.cloud.memcache.v1.Instance.Node) obj; - if (!getNodeId() - .equals(other.getNodeId())) return false; - if (!getZone() - .equals(other.getZone())) return false; + if (!getNodeId().equals(other.getNodeId())) return false; + if (!getZone().equals(other.getZone())) return false; if (state_ != other.state_) return false; - if (!getHost() - .equals(other.getHost())) return false; - if (getPort() - != other.getPort()) return false; + if (!getHost().equals(other.getHost())) return false; + if (getPort() != other.getPort()) return false; if (hasParameters() != other.hasParameters()) return false; if (hasParameters()) { - if (!getParameters() - .equals(other.getParameters())) return false; + if (!getParameters().equals(other.getParameters())) return false; } if (!unknownFields.equals(other.unknownFields)) return false; return true; @@ -1811,88 +2019,94 @@ public int hashCode() { return hash; } - public static com.google.cloud.memcache.v1.Instance.Node parseFrom( - java.nio.ByteBuffer data) + public static com.google.cloud.memcache.v1.Instance.Node parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.memcache.v1.Instance.Node parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.memcache.v1.Instance.Node parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.memcache.v1.Instance.Node parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.memcache.v1.Instance.Node parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.memcache.v1.Instance.Node parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.memcache.v1.Instance.Node 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.memcache.v1.Instance.Node parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.memcache.v1.Instance.Node parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.memcache.v1.Instance.Node parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.memcache.v1.Instance.Node parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.memcache.v1.Instance.Node parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.memcache.v1.Instance.Node parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.cloud.memcache.v1.Instance.Node prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override @@ -1901,24 +2115,25 @@ protected Builder newBuilderForType( Builder builder = new Builder(parent); return builder; } - /** - * Protobuf type {@code google.cloud.memcache.v1.Instance.Node} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + /** Protobuf type {@code google.cloud.memcache.v1.Instance.Node} */ + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.memcache.v1.Instance.Node) com.google.cloud.memcache.v1.Instance.NodeOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.memcache.v1.CloudMemcacheProto.internal_static_google_cloud_memcache_v1_Instance_Node_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.memcache.v1.CloudMemcacheProto + .internal_static_google_cloud_memcache_v1_Instance_Node_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.memcache.v1.CloudMemcacheProto.internal_static_google_cloud_memcache_v1_Instance_Node_fieldAccessorTable + return com.google.cloud.memcache.v1.CloudMemcacheProto + .internal_static_google_cloud_memcache_v1_Instance_Node_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.memcache.v1.Instance.Node.class, com.google.cloud.memcache.v1.Instance.Node.Builder.class); + com.google.cloud.memcache.v1.Instance.Node.class, + com.google.cloud.memcache.v1.Instance.Node.Builder.class); } // Construct using com.google.cloud.memcache.v1.Instance.Node.newBuilder() @@ -1926,16 +2141,15 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -1959,9 +2173,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.memcache.v1.CloudMemcacheProto.internal_static_google_cloud_memcache_v1_Instance_Node_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.memcache.v1.CloudMemcacheProto + .internal_static_google_cloud_memcache_v1_Instance_Node_descriptor; } @java.lang.Override @@ -1980,7 +2194,8 @@ public com.google.cloud.memcache.v1.Instance.Node build() { @java.lang.Override public com.google.cloud.memcache.v1.Instance.Node buildPartial() { - com.google.cloud.memcache.v1.Instance.Node result = new com.google.cloud.memcache.v1.Instance.Node(this); + com.google.cloud.memcache.v1.Instance.Node result = + new com.google.cloud.memcache.v1.Instance.Node(this); result.nodeId_ = nodeId_; result.zone_ = zone_; result.state_ = state_; @@ -1999,38 +2214,41 @@ public com.google.cloud.memcache.v1.Instance.Node buildPartial() { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + int index, + java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.memcache.v1.Instance.Node) { - return mergeFrom((com.google.cloud.memcache.v1.Instance.Node)other); + return mergeFrom((com.google.cloud.memcache.v1.Instance.Node) other); } else { super.mergeFrom(other); return this; @@ -2091,19 +2309,21 @@ public Builder mergeFrom( private java.lang.Object nodeId_ = ""; /** + * + * *
        * Output only. Identifier of the Memcached node. The node id does not
        * include project or location like the Memcached instance name.
        * 
* * string node_id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The nodeId. */ public java.lang.String getNodeId() { java.lang.Object ref = nodeId_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); nodeId_ = s; return s; @@ -2112,21 +2332,22 @@ public java.lang.String getNodeId() { } } /** + * + * *
        * Output only. Identifier of the Memcached node. The node id does not
        * include project or location like the Memcached instance name.
        * 
* * string node_id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for nodeId. */ - public com.google.protobuf.ByteString - getNodeIdBytes() { + public com.google.protobuf.ByteString getNodeIdBytes() { java.lang.Object ref = nodeId_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); nodeId_ = b; return b; } else { @@ -2134,57 +2355,64 @@ public java.lang.String getNodeId() { } } /** + * + * *
        * Output only. Identifier of the Memcached node. The node id does not
        * include project or location like the Memcached instance name.
        * 
* * string node_id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @param value The nodeId to set. * @return This builder for chaining. */ - public Builder setNodeId( - java.lang.String value) { + public Builder setNodeId(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + nodeId_ = value; onChanged(); return this; } /** + * + * *
        * Output only. Identifier of the Memcached node. The node id does not
        * include project or location like the Memcached instance name.
        * 
* * string node_id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return This builder for chaining. */ public Builder clearNodeId() { - + nodeId_ = getDefaultInstance().getNodeId(); onChanged(); return this; } /** + * + * *
        * Output only. Identifier of the Memcached node. The node id does not
        * include project or location like the Memcached instance name.
        * 
* * string node_id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @param value The bytes for nodeId to set. * @return This builder for chaining. */ - public Builder setNodeIdBytes( - com.google.protobuf.ByteString value) { + public Builder setNodeIdBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + nodeId_ = value; onChanged(); return this; @@ -2192,18 +2420,20 @@ public Builder setNodeIdBytes( private java.lang.Object zone_ = ""; /** + * + * *
        * Output only. Location (GCP Zone) for the Memcached 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; @@ -2212,20 +2442,21 @@ public java.lang.String getZone() { } } /** + * + * *
        * Output only. Location (GCP Zone) for the Memcached 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 { @@ -2233,54 +2464,61 @@ public java.lang.String getZone() { } } /** + * + * *
        * Output only. Location (GCP Zone) for the Memcached 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 (GCP Zone) for the Memcached 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 (GCP Zone) for the Memcached 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; @@ -2288,51 +2526,75 @@ public Builder setZoneBytes( private int state_ = 0; /** + * + * *
        * Output only. Current state of the Memcached node.
        * 
* - * .google.cloud.memcache.v1.Instance.Node.State state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.memcache.v1.Instance.Node.State state = 3 [(.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. Current state of the Memcached node.
        * 
* - * .google.cloud.memcache.v1.Instance.Node.State state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.memcache.v1.Instance.Node.State state = 3 [(.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. Current state of the Memcached node.
        * 
* - * .google.cloud.memcache.v1.Instance.Node.State state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.memcache.v1.Instance.Node.State state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The state. */ @java.lang.Override public com.google.cloud.memcache.v1.Instance.Node.State getState() { @SuppressWarnings("deprecation") - com.google.cloud.memcache.v1.Instance.Node.State result = com.google.cloud.memcache.v1.Instance.Node.State.valueOf(state_); - return result == null ? com.google.cloud.memcache.v1.Instance.Node.State.UNRECOGNIZED : result; + com.google.cloud.memcache.v1.Instance.Node.State result = + com.google.cloud.memcache.v1.Instance.Node.State.valueOf(state_); + return result == null + ? com.google.cloud.memcache.v1.Instance.Node.State.UNRECOGNIZED + : result; } /** + * + * *
        * Output only. Current state of the Memcached node.
        * 
* - * .google.cloud.memcache.v1.Instance.Node.State state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.memcache.v1.Instance.Node.State state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @param value The state to set. * @return This builder for chaining. */ @@ -2340,21 +2602,26 @@ public Builder setState(com.google.cloud.memcache.v1.Instance.Node.State value) if (value == null) { throw new NullPointerException(); } - + state_ = value.getNumber(); onChanged(); return this; } /** + * + * *
        * Output only. Current state of the Memcached node.
        * 
* - * .google.cloud.memcache.v1.Instance.Node.State state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.memcache.v1.Instance.Node.State state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return This builder for chaining. */ public Builder clearState() { - + state_ = 0; onChanged(); return this; @@ -2362,19 +2629,21 @@ public Builder clearState() { private java.lang.Object host_ = ""; /** + * + * *
        * Output only. Hostname or IP address of the Memcached node used by the
        * clients to connect to the Memcached server on this node.
        * 
* * string host = 4 [(.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; @@ -2383,21 +2652,22 @@ public java.lang.String getHost() { } } /** + * + * *
        * Output only. Hostname or IP address of the Memcached node used by the
        * clients to connect to the Memcached server on this node.
        * 
* * string host = 4 [(.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 { @@ -2405,69 +2675,79 @@ public java.lang.String getHost() { } } /** + * + * *
        * Output only. Hostname or IP address of the Memcached node used by the
        * clients to connect to the Memcached server on this node.
        * 
* * string host = 4 [(.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 Memcached node used by the
        * clients to connect to the Memcached server on this node.
        * 
* * string host = 4 [(.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 Memcached node used by the
        * clients to connect to the Memcached server on this node.
        * 
* * string host = 4 [(.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 Memcached server on this node.
        * 
* * int32 port = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The port. */ @java.lang.Override @@ -2475,30 +2755,36 @@ public int getPort() { return port_; } /** + * + * *
        * Output only. The port number of the Memcached server on this node.
        * 
* * int32 port = 5 [(.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 Memcached server on this node.
        * 
* * int32 port = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return This builder for chaining. */ public Builder clearPort() { - + port_ = 0; onChanged(); return this; @@ -2506,34 +2792,47 @@ public Builder clearPort() { private com.google.cloud.memcache.v1.MemcacheParameters parameters_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.memcache.v1.MemcacheParameters, com.google.cloud.memcache.v1.MemcacheParameters.Builder, com.google.cloud.memcache.v1.MemcacheParametersOrBuilder> parametersBuilder_; + com.google.cloud.memcache.v1.MemcacheParameters, + com.google.cloud.memcache.v1.MemcacheParameters.Builder, + com.google.cloud.memcache.v1.MemcacheParametersOrBuilder> + parametersBuilder_; /** + * + * *
        * User defined parameters currently applied to the node.
        * 
* * .google.cloud.memcache.v1.MemcacheParameters parameters = 6; + * * @return Whether the parameters field is set. */ public boolean hasParameters() { return parametersBuilder_ != null || parameters_ != null; } /** + * + * *
        * User defined parameters currently applied to the node.
        * 
* * .google.cloud.memcache.v1.MemcacheParameters parameters = 6; + * * @return The parameters. */ public com.google.cloud.memcache.v1.MemcacheParameters getParameters() { if (parametersBuilder_ == null) { - return parameters_ == null ? com.google.cloud.memcache.v1.MemcacheParameters.getDefaultInstance() : parameters_; + return parameters_ == null + ? com.google.cloud.memcache.v1.MemcacheParameters.getDefaultInstance() + : parameters_; } else { return parametersBuilder_.getMessage(); } } /** + * + * *
        * User defined parameters currently applied to the node.
        * 
@@ -2554,6 +2853,8 @@ public Builder setParameters(com.google.cloud.memcache.v1.MemcacheParameters val return this; } /** + * + * *
        * User defined parameters currently applied to the node.
        * 
@@ -2572,6 +2873,8 @@ public Builder setParameters( return this; } /** + * + * *
        * User defined parameters currently applied to the node.
        * 
@@ -2582,7 +2885,9 @@ public Builder mergeParameters(com.google.cloud.memcache.v1.MemcacheParameters v if (parametersBuilder_ == null) { if (parameters_ != null) { parameters_ = - com.google.cloud.memcache.v1.MemcacheParameters.newBuilder(parameters_).mergeFrom(value).buildPartial(); + com.google.cloud.memcache.v1.MemcacheParameters.newBuilder(parameters_) + .mergeFrom(value) + .buildPartial(); } else { parameters_ = value; } @@ -2594,6 +2899,8 @@ public Builder mergeParameters(com.google.cloud.memcache.v1.MemcacheParameters v return this; } /** + * + * *
        * User defined parameters currently applied to the node.
        * 
@@ -2612,6 +2919,8 @@ public Builder clearParameters() { return this; } /** + * + * *
        * User defined parameters currently applied to the node.
        * 
@@ -2619,11 +2928,13 @@ public Builder clearParameters() { * .google.cloud.memcache.v1.MemcacheParameters parameters = 6; */ public com.google.cloud.memcache.v1.MemcacheParameters.Builder getParametersBuilder() { - + onChanged(); return getParametersFieldBuilder().getBuilder(); } /** + * + * *
        * User defined parameters currently applied to the node.
        * 
@@ -2634,11 +2945,14 @@ public com.google.cloud.memcache.v1.MemcacheParametersOrBuilder getParametersOrB if (parametersBuilder_ != null) { return parametersBuilder_.getMessageOrBuilder(); } else { - return parameters_ == null ? - com.google.cloud.memcache.v1.MemcacheParameters.getDefaultInstance() : parameters_; + return parameters_ == null + ? com.google.cloud.memcache.v1.MemcacheParameters.getDefaultInstance() + : parameters_; } } /** + * + * *
        * User defined parameters currently applied to the node.
        * 
@@ -2646,18 +2960,22 @@ public com.google.cloud.memcache.v1.MemcacheParametersOrBuilder getParametersOrB * .google.cloud.memcache.v1.MemcacheParameters parameters = 6; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.memcache.v1.MemcacheParameters, com.google.cloud.memcache.v1.MemcacheParameters.Builder, com.google.cloud.memcache.v1.MemcacheParametersOrBuilder> + com.google.cloud.memcache.v1.MemcacheParameters, + com.google.cloud.memcache.v1.MemcacheParameters.Builder, + com.google.cloud.memcache.v1.MemcacheParametersOrBuilder> getParametersFieldBuilder() { if (parametersBuilder_ == null) { - parametersBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.memcache.v1.MemcacheParameters, com.google.cloud.memcache.v1.MemcacheParameters.Builder, com.google.cloud.memcache.v1.MemcacheParametersOrBuilder>( - getParameters(), - getParentForChildren(), - isClean()); + parametersBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.memcache.v1.MemcacheParameters, + com.google.cloud.memcache.v1.MemcacheParameters.Builder, + com.google.cloud.memcache.v1.MemcacheParametersOrBuilder>( + getParameters(), getParentForChildren(), isClean()); parameters_ = null; } return parametersBuilder_; } + @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -2670,12 +2988,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.memcache.v1.Instance.Node) } // @@protoc_insertion_point(class_scope:google.cloud.memcache.v1.Instance.Node) private static final com.google.cloud.memcache.v1.Instance.Node DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.memcache.v1.Instance.Node(); } @@ -2684,16 +3002,16 @@ public static com.google.cloud.memcache.v1.Instance.Node getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Node parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new Node(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Node parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new Node(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -2708,64 +3026,74 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.memcache.v1.Instance.Node getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - public interface InstanceMessageOrBuilder extends + public interface InstanceMessageOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.memcache.v1.Instance.InstanceMessage) com.google.protobuf.MessageOrBuilder { /** + * + * *
      * A code that correspond to one type of user-facing message.
      * 
* * .google.cloud.memcache.v1.Instance.InstanceMessage.Code code = 1; + * * @return The enum numeric value on the wire for code. */ int getCodeValue(); /** + * + * *
      * A code that correspond to one type of user-facing message.
      * 
* * .google.cloud.memcache.v1.Instance.InstanceMessage.Code code = 1; + * * @return The code. */ com.google.cloud.memcache.v1.Instance.InstanceMessage.Code getCode(); /** + * + * *
      * Message on memcached instance which will be exposed to users.
      * 
* * string message = 2; + * * @return The message. */ java.lang.String getMessage(); /** + * + * *
      * Message on memcached instance which will be exposed to users.
      * 
* * string message = 2; + * * @return The bytes for message. */ - com.google.protobuf.ByteString - getMessageBytes(); + com.google.protobuf.ByteString getMessageBytes(); } - /** - * Protobuf type {@code google.cloud.memcache.v1.Instance.InstanceMessage} - */ - public static final class InstanceMessage extends - com.google.protobuf.GeneratedMessageV3 implements + /** Protobuf type {@code google.cloud.memcache.v1.Instance.InstanceMessage} */ + public static final class InstanceMessage extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.memcache.v1.Instance.InstanceMessage) InstanceMessageOrBuilder { - private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use InstanceMessage.newBuilder() to construct. private InstanceMessage(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private InstanceMessage() { code_ = 0; message_ = ""; @@ -2773,16 +3101,15 @@ private InstanceMessage() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new InstanceMessage(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private InstanceMessage( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -2801,25 +3128,27 @@ private InstanceMessage( case 0: done = true; break; - case 8: { - int rawValue = input.readEnum(); + case 8: + { + int rawValue = input.readEnum(); - code_ = rawValue; - break; - } - case 18: { - java.lang.String s = input.readStringRequireUtf8(); + code_ = rawValue; + break; + } + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); - message_ = s; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + message_ = s; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -2827,32 +3156,33 @@ private InstanceMessage( } 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.memcache.v1.CloudMemcacheProto.internal_static_google_cloud_memcache_v1_Instance_InstanceMessage_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.memcache.v1.CloudMemcacheProto + .internal_static_google_cloud_memcache_v1_Instance_InstanceMessage_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.memcache.v1.CloudMemcacheProto.internal_static_google_cloud_memcache_v1_Instance_InstanceMessage_fieldAccessorTable + return com.google.cloud.memcache.v1.CloudMemcacheProto + .internal_static_google_cloud_memcache_v1_Instance_InstanceMessage_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.memcache.v1.Instance.InstanceMessage.class, com.google.cloud.memcache.v1.Instance.InstanceMessage.Builder.class); + com.google.cloud.memcache.v1.Instance.InstanceMessage.class, + com.google.cloud.memcache.v1.Instance.InstanceMessage.Builder.class); } - /** - * Protobuf enum {@code google.cloud.memcache.v1.Instance.InstanceMessage.Code} - */ - public enum Code - implements com.google.protobuf.ProtocolMessageEnum { + /** Protobuf enum {@code google.cloud.memcache.v1.Instance.InstanceMessage.Code} */ + public enum Code implements com.google.protobuf.ProtocolMessageEnum { /** + * + * *
        * Message Code not set.
        * 
@@ -2861,6 +3191,8 @@ public enum Code */ CODE_UNSPECIFIED(0), /** + * + * *
        * Memcached nodes are distributed unevenly.
        * 
@@ -2872,6 +3204,8 @@ public enum Code ; /** + * + * *
        * Message Code not set.
        * 
@@ -2880,6 +3214,8 @@ public enum Code */ public static final int CODE_UNSPECIFIED_VALUE = 0; /** + * + * *
        * Memcached nodes are distributed unevenly.
        * 
@@ -2888,7 +3224,6 @@ public enum Code */ public static final int ZONE_DISTRIBUTION_UNBALANCED_VALUE = 1; - public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( @@ -2913,48 +3248,49 @@ public static Code valueOf(int value) { */ public static Code forNumber(int value) { switch (value) { - case 0: return CODE_UNSPECIFIED; - case 1: return ZONE_DISTRIBUTION_UNBALANCED; - default: return null; + case 0: + return CODE_UNSPECIFIED; + case 1: + return ZONE_DISTRIBUTION_UNBALANCED; + 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< - Code> internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public Code findValueByNumber(int number) { - return Code.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 Code findValueByNumber(int number) { + return Code.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.memcache.v1.Instance.InstanceMessage.getDescriptor().getEnumTypes().get(0); + + public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.cloud.memcache.v1.Instance.InstanceMessage.getDescriptor() + .getEnumTypes() + .get(0); } private static final Code[] VALUES = values(); - public static Code valueOf( - com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + public static Code 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; @@ -2974,38 +3310,52 @@ private Code(int value) { public static final int CODE_FIELD_NUMBER = 1; private int code_; /** + * + * *
      * A code that correspond to one type of user-facing message.
      * 
* * .google.cloud.memcache.v1.Instance.InstanceMessage.Code code = 1; + * * @return The enum numeric value on the wire for code. */ - @java.lang.Override public int getCodeValue() { + @java.lang.Override + public int getCodeValue() { return code_; } /** + * + * *
      * A code that correspond to one type of user-facing message.
      * 
* * .google.cloud.memcache.v1.Instance.InstanceMessage.Code code = 1; + * * @return The code. */ - @java.lang.Override public com.google.cloud.memcache.v1.Instance.InstanceMessage.Code getCode() { + @java.lang.Override + public com.google.cloud.memcache.v1.Instance.InstanceMessage.Code getCode() { @SuppressWarnings("deprecation") - com.google.cloud.memcache.v1.Instance.InstanceMessage.Code result = com.google.cloud.memcache.v1.Instance.InstanceMessage.Code.valueOf(code_); - return result == null ? com.google.cloud.memcache.v1.Instance.InstanceMessage.Code.UNRECOGNIZED : result; + com.google.cloud.memcache.v1.Instance.InstanceMessage.Code result = + com.google.cloud.memcache.v1.Instance.InstanceMessage.Code.valueOf(code_); + return result == null + ? com.google.cloud.memcache.v1.Instance.InstanceMessage.Code.UNRECOGNIZED + : result; } public static final int MESSAGE_FIELD_NUMBER = 2; private volatile java.lang.Object message_; /** + * + * *
      * Message on memcached instance which will be exposed to users.
      * 
* * string message = 2; + * * @return The message. */ @java.lang.Override @@ -3014,29 +3364,29 @@ public java.lang.String getMessage() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); message_ = s; return s; } } /** + * + * *
      * Message on memcached instance which will be exposed to users.
      * 
* * string message = 2; + * * @return The bytes for message. */ @java.lang.Override - public com.google.protobuf.ByteString - getMessageBytes() { + public com.google.protobuf.ByteString getMessageBytes() { java.lang.Object ref = message_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); message_ = b; return b; } else { @@ -3045,6 +3395,7 @@ public java.lang.String getMessage() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -3056,9 +3407,10 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (code_ != com.google.cloud.memcache.v1.Instance.InstanceMessage.Code.CODE_UNSPECIFIED.getNumber()) { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (code_ + != com.google.cloud.memcache.v1.Instance.InstanceMessage.Code.CODE_UNSPECIFIED + .getNumber()) { output.writeEnum(1, code_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(message_)) { @@ -3073,9 +3425,10 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (code_ != com.google.cloud.memcache.v1.Instance.InstanceMessage.Code.CODE_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(1, code_); + if (code_ + != com.google.cloud.memcache.v1.Instance.InstanceMessage.Code.CODE_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(1, code_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(message_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, message_); @@ -3088,16 +3441,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.memcache.v1.Instance.InstanceMessage)) { return super.equals(obj); } - com.google.cloud.memcache.v1.Instance.InstanceMessage other = (com.google.cloud.memcache.v1.Instance.InstanceMessage) obj; + com.google.cloud.memcache.v1.Instance.InstanceMessage other = + (com.google.cloud.memcache.v1.Instance.InstanceMessage) obj; if (code_ != other.code_) return false; - if (!getMessage() - .equals(other.getMessage())) return false; + if (!getMessage().equals(other.getMessage())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -3119,87 +3472,94 @@ public int hashCode() { } public static com.google.cloud.memcache.v1.Instance.InstanceMessage parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.memcache.v1.Instance.InstanceMessage parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.memcache.v1.Instance.InstanceMessage parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.memcache.v1.Instance.InstanceMessage parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.memcache.v1.Instance.InstanceMessage parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.memcache.v1.Instance.InstanceMessage parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.memcache.v1.Instance.InstanceMessage parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.memcache.v1.Instance.InstanceMessage parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.memcache.v1.Instance.InstanceMessage parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.memcache.v1.Instance.InstanceMessage parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.memcache.v1.Instance.InstanceMessage parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.memcache.v1.Instance.InstanceMessage parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.memcache.v1.Instance.InstanceMessage parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.memcache.v1.Instance.InstanceMessage parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.memcache.v1.Instance.InstanceMessage prototype) { + + public static Builder newBuilder( + com.google.cloud.memcache.v1.Instance.InstanceMessage prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override @@ -3208,24 +3568,25 @@ protected Builder newBuilderForType( Builder builder = new Builder(parent); return builder; } - /** - * Protobuf type {@code google.cloud.memcache.v1.Instance.InstanceMessage} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + /** Protobuf type {@code google.cloud.memcache.v1.Instance.InstanceMessage} */ + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.memcache.v1.Instance.InstanceMessage) com.google.cloud.memcache.v1.Instance.InstanceMessageOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.memcache.v1.CloudMemcacheProto.internal_static_google_cloud_memcache_v1_Instance_InstanceMessage_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.memcache.v1.CloudMemcacheProto + .internal_static_google_cloud_memcache_v1_Instance_InstanceMessage_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.memcache.v1.CloudMemcacheProto.internal_static_google_cloud_memcache_v1_Instance_InstanceMessage_fieldAccessorTable + return com.google.cloud.memcache.v1.CloudMemcacheProto + .internal_static_google_cloud_memcache_v1_Instance_InstanceMessage_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.memcache.v1.Instance.InstanceMessage.class, com.google.cloud.memcache.v1.Instance.InstanceMessage.Builder.class); + com.google.cloud.memcache.v1.Instance.InstanceMessage.class, + com.google.cloud.memcache.v1.Instance.InstanceMessage.Builder.class); } // Construct using com.google.cloud.memcache.v1.Instance.InstanceMessage.newBuilder() @@ -3233,16 +3594,15 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -3254,9 +3614,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.memcache.v1.CloudMemcacheProto.internal_static_google_cloud_memcache_v1_Instance_InstanceMessage_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.memcache.v1.CloudMemcacheProto + .internal_static_google_cloud_memcache_v1_Instance_InstanceMessage_descriptor; } @java.lang.Override @@ -3275,7 +3635,8 @@ public com.google.cloud.memcache.v1.Instance.InstanceMessage build() { @java.lang.Override public com.google.cloud.memcache.v1.Instance.InstanceMessage buildPartial() { - com.google.cloud.memcache.v1.Instance.InstanceMessage result = new com.google.cloud.memcache.v1.Instance.InstanceMessage(this); + com.google.cloud.memcache.v1.Instance.InstanceMessage result = + new com.google.cloud.memcache.v1.Instance.InstanceMessage(this); result.code_ = code_; result.message_ = message_; onBuilt(); @@ -3286,38 +3647,41 @@ public com.google.cloud.memcache.v1.Instance.InstanceMessage buildPartial() { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + int index, + java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.memcache.v1.Instance.InstanceMessage) { - return mergeFrom((com.google.cloud.memcache.v1.Instance.InstanceMessage)other); + return mergeFrom((com.google.cloud.memcache.v1.Instance.InstanceMessage) other); } else { super.mergeFrom(other); return this; @@ -3325,7 +3689,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.memcache.v1.Instance.InstanceMessage other) { - if (other == com.google.cloud.memcache.v1.Instance.InstanceMessage.getDefaultInstance()) return this; + if (other == com.google.cloud.memcache.v1.Instance.InstanceMessage.getDefaultInstance()) + return this; if (other.code_ != 0) { setCodeValue(other.getCodeValue()); } @@ -3352,7 +3717,8 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.memcache.v1.Instance.InstanceMessage) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.memcache.v1.Instance.InstanceMessage) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -3364,51 +3730,67 @@ public Builder mergeFrom( private int code_ = 0; /** + * + * *
        * A code that correspond to one type of user-facing message.
        * 
* * .google.cloud.memcache.v1.Instance.InstanceMessage.Code code = 1; + * * @return The enum numeric value on the wire for code. */ - @java.lang.Override public int getCodeValue() { + @java.lang.Override + public int getCodeValue() { return code_; } /** + * + * *
        * A code that correspond to one type of user-facing message.
        * 
* * .google.cloud.memcache.v1.Instance.InstanceMessage.Code code = 1; + * * @param value The enum numeric value on the wire for code to set. * @return This builder for chaining. */ public Builder setCodeValue(int value) { - + code_ = value; onChanged(); return this; } /** + * + * *
        * A code that correspond to one type of user-facing message.
        * 
* * .google.cloud.memcache.v1.Instance.InstanceMessage.Code code = 1; + * * @return The code. */ @java.lang.Override public com.google.cloud.memcache.v1.Instance.InstanceMessage.Code getCode() { @SuppressWarnings("deprecation") - com.google.cloud.memcache.v1.Instance.InstanceMessage.Code result = com.google.cloud.memcache.v1.Instance.InstanceMessage.Code.valueOf(code_); - return result == null ? com.google.cloud.memcache.v1.Instance.InstanceMessage.Code.UNRECOGNIZED : result; + com.google.cloud.memcache.v1.Instance.InstanceMessage.Code result = + com.google.cloud.memcache.v1.Instance.InstanceMessage.Code.valueOf(code_); + return result == null + ? com.google.cloud.memcache.v1.Instance.InstanceMessage.Code.UNRECOGNIZED + : result; } /** + * + * *
        * A code that correspond to one type of user-facing message.
        * 
* * .google.cloud.memcache.v1.Instance.InstanceMessage.Code code = 1; + * * @param value The code to set. * @return This builder for chaining. */ @@ -3416,21 +3798,24 @@ public Builder setCode(com.google.cloud.memcache.v1.Instance.InstanceMessage.Cod if (value == null) { throw new NullPointerException(); } - + code_ = value.getNumber(); onChanged(); return this; } /** + * + * *
        * A code that correspond to one type of user-facing message.
        * 
* * .google.cloud.memcache.v1.Instance.InstanceMessage.Code code = 1; + * * @return This builder for chaining. */ public Builder clearCode() { - + code_ = 0; onChanged(); return this; @@ -3438,18 +3823,20 @@ public Builder clearCode() { private java.lang.Object message_ = ""; /** + * + * *
        * Message on memcached instance which will be exposed to users.
        * 
* * string message = 2; + * * @return The message. */ public java.lang.String getMessage() { java.lang.Object ref = message_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); message_ = s; return s; @@ -3458,20 +3845,21 @@ public java.lang.String getMessage() { } } /** + * + * *
        * Message on memcached instance which will be exposed to users.
        * 
* * string message = 2; + * * @return The bytes for message. */ - public com.google.protobuf.ByteString - getMessageBytes() { + public com.google.protobuf.ByteString getMessageBytes() { java.lang.Object ref = message_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); message_ = b; return b; } else { @@ -3479,58 +3867,66 @@ public java.lang.String getMessage() { } } /** + * + * *
        * Message on memcached instance which will be exposed to users.
        * 
* * string message = 2; + * * @param value The message to set. * @return This builder for chaining. */ - public Builder setMessage( - java.lang.String value) { + public Builder setMessage(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + message_ = value; onChanged(); return this; } /** + * + * *
        * Message on memcached instance which will be exposed to users.
        * 
* * string message = 2; + * * @return This builder for chaining. */ public Builder clearMessage() { - + message_ = getDefaultInstance().getMessage(); onChanged(); return this; } /** + * + * *
        * Message on memcached instance which will be exposed to users.
        * 
* * string message = 2; + * * @param value The bytes for message to set. * @return This builder for chaining. */ - public Builder setMessageBytes( - com.google.protobuf.ByteString value) { + public Builder setMessageBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + message_ = value; onChanged(); return this; } + @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -3543,12 +3939,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.memcache.v1.Instance.InstanceMessage) } // @@protoc_insertion_point(class_scope:google.cloud.memcache.v1.Instance.InstanceMessage) private static final com.google.cloud.memcache.v1.Instance.InstanceMessage DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.memcache.v1.Instance.InstanceMessage(); } @@ -3557,16 +3953,16 @@ public static com.google.cloud.memcache.v1.Instance.InstanceMessage getDefaultIn return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public InstanceMessage parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new InstanceMessage(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public InstanceMessage parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new InstanceMessage(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -3581,12 +3977,13 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.memcache.v1.Instance.InstanceMessage getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } 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:
@@ -3598,6 +3995,7 @@ public com.google.cloud.memcache.v1.Instance.InstanceMessage getDefaultInstanceF
    * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The name. */ @java.lang.Override @@ -3606,14 +4004,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:
@@ -3625,16 +4024,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 { @@ -3645,12 +4043,15 @@ public java.lang.String getName() { public static final int DISPLAY_NAME_FIELD_NUMBER = 2; private volatile java.lang.Object displayName_; /** + * + * *
    * User provided name for the instance only used for display
    * purposes. Cannot be more than 80 characters.
    * 
* * string display_name = 2; + * * @return The displayName. */ @java.lang.Override @@ -3659,30 +4060,30 @@ 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; } } /** + * + * *
    * User provided name for the instance only used for display
    * purposes. Cannot be more than 80 characters.
    * 
* * 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 { @@ -3691,24 +4092,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.memcache.v1.CloudMemcacheProto.internal_static_google_cloud_memcache_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.memcache.v1.CloudMemcacheProto + .internal_static_google_cloud_memcache_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_; } @@ -3717,6 +4117,8 @@ public int getLabelsCount() { return internalGetLabels().getMap().size(); } /** + * + * *
    * Resource labels to represent user-provided metadata.
    * Refer to cloud documentation on labels for more details.
@@ -3725,22 +4127,22 @@ public int getLabelsCount() {
    *
    * 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.
    * Refer to cloud documentation on labels for more details.
@@ -3750,11 +4152,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.
    * Refer to cloud documentation on labels for more details.
@@ -3764,16 +4167,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.
    * Refer to cloud documentation on labels for more details.
@@ -3783,12 +4186,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();
     }
@@ -3798,6 +4200,8 @@ public java.lang.String getLabelsOrThrow(
   public static final int AUTHORIZED_NETWORK_FIELD_NUMBER = 4;
   private volatile java.lang.Object authorizedNetwork_;
   /**
+   *
+   *
    * 
    * The full name of the Google Compute Engine
    * [network](/compute/docs/networks-and-firewalls#networks) to which the
@@ -3806,6 +4210,7 @@ public java.lang.String getLabelsOrThrow(
    * 
* * string authorized_network = 4; + * * @return The authorizedNetwork. */ @java.lang.Override @@ -3814,14 +4219,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; } } /** + * + * *
    * The full name of the Google Compute Engine
    * [network](/compute/docs/networks-and-firewalls#networks) to which the
@@ -3830,16 +4236,15 @@ public java.lang.String getAuthorizedNetwork() {
    * 
* * string authorized_network = 4; + * * @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 { @@ -3850,6 +4255,8 @@ public java.lang.String getAuthorizedNetwork() { public static final int ZONES_FIELD_NUMBER = 5; private com.google.protobuf.LazyStringList zones_; /** + * + * *
    * Zones where Memcached nodes should be provisioned in.
    * Memcached nodes will be equally distributed across these zones. If not
@@ -3858,13 +4265,15 @@ public java.lang.String getAuthorizedNetwork() {
    * 
* * repeated string zones = 5; + * * @return A list containing the zones. */ - public com.google.protobuf.ProtocolStringList - getZonesList() { + public com.google.protobuf.ProtocolStringList getZonesList() { return zones_; } /** + * + * *
    * Zones where Memcached nodes should be provisioned in.
    * Memcached nodes will be equally distributed across these zones. If not
@@ -3873,12 +4282,15 @@ public java.lang.String getAuthorizedNetwork() {
    * 
* * repeated string zones = 5; + * * @return The count of zones. */ public int getZonesCount() { return zones_.size(); } /** + * + * *
    * Zones where Memcached nodes should be provisioned in.
    * Memcached nodes will be equally distributed across these zones. If not
@@ -3887,6 +4299,7 @@ public int getZonesCount() {
    * 
* * repeated string zones = 5; + * * @param index The index of the element to return. * @return The zones at the given index. */ @@ -3894,6 +4307,8 @@ public java.lang.String getZones(int index) { return zones_.get(index); } /** + * + * *
    * Zones where Memcached nodes should be provisioned in.
    * Memcached nodes will be equally distributed across these zones. If not
@@ -3902,22 +4317,25 @@ public java.lang.String getZones(int index) {
    * 
* * repeated string zones = 5; + * * @param index The index of the value to return. * @return The bytes of the zones at the given index. */ - public com.google.protobuf.ByteString - getZonesBytes(int index) { + public com.google.protobuf.ByteString getZonesBytes(int index) { return zones_.getByteString(index); } public static final int NODE_COUNT_FIELD_NUMBER = 6; private int nodeCount_; /** + * + * *
    * Required. Number of nodes in the Memcached instance.
    * 
* * int32 node_count = 6 [(.google.api.field_behavior) = REQUIRED]; + * * @return The nodeCount. */ @java.lang.Override @@ -3928,11 +4346,16 @@ public int getNodeCount() { public static final int NODE_CONFIG_FIELD_NUMBER = 7; private com.google.cloud.memcache.v1.Instance.NodeConfig nodeConfig_; /** + * + * *
    * Required. Configuration for Memcached nodes.
    * 
* - * .google.cloud.memcache.v1.Instance.NodeConfig node_config = 7 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.memcache.v1.Instance.NodeConfig node_config = 7 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the nodeConfig field is set. */ @java.lang.Override @@ -3940,23 +4363,34 @@ public boolean hasNodeConfig() { return nodeConfig_ != null; } /** + * + * *
    * Required. Configuration for Memcached nodes.
    * 
* - * .google.cloud.memcache.v1.Instance.NodeConfig node_config = 7 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.memcache.v1.Instance.NodeConfig node_config = 7 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The nodeConfig. */ @java.lang.Override public com.google.cloud.memcache.v1.Instance.NodeConfig getNodeConfig() { - return nodeConfig_ == null ? com.google.cloud.memcache.v1.Instance.NodeConfig.getDefaultInstance() : nodeConfig_; + return nodeConfig_ == null + ? com.google.cloud.memcache.v1.Instance.NodeConfig.getDefaultInstance() + : nodeConfig_; } /** + * + * *
    * Required. Configuration for Memcached nodes.
    * 
* - * .google.cloud.memcache.v1.Instance.NodeConfig node_config = 7 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.memcache.v1.Instance.NodeConfig node_config = 7 [(.google.api.field_behavior) = REQUIRED]; + * */ @java.lang.Override public com.google.cloud.memcache.v1.Instance.NodeConfigOrBuilder getNodeConfigOrBuilder() { @@ -3966,6 +4400,8 @@ public com.google.cloud.memcache.v1.Instance.NodeConfigOrBuilder getNodeConfigOr public static final int MEMCACHE_VERSION_FIELD_NUMBER = 9; private int memcacheVersion_; /** + * + * *
    * The major version of Memcached software.
    * If not provided, latest supported version will be used. Currently the
@@ -3975,12 +4411,16 @@ public com.google.cloud.memcache.v1.Instance.NodeConfigOrBuilder getNodeConfigOr
    * 
* * .google.cloud.memcache.v1.MemcacheVersion memcache_version = 9; + * * @return The enum numeric value on the wire for memcacheVersion. */ - @java.lang.Override public int getMemcacheVersionValue() { + @java.lang.Override + public int getMemcacheVersionValue() { return memcacheVersion_; } /** + * + * *
    * The major version of Memcached software.
    * If not provided, latest supported version will be used. Currently the
@@ -3990,23 +4430,29 @@ public com.google.cloud.memcache.v1.Instance.NodeConfigOrBuilder getNodeConfigOr
    * 
* * .google.cloud.memcache.v1.MemcacheVersion memcache_version = 9; + * * @return The memcacheVersion. */ - @java.lang.Override public com.google.cloud.memcache.v1.MemcacheVersion getMemcacheVersion() { + @java.lang.Override + public com.google.cloud.memcache.v1.MemcacheVersion getMemcacheVersion() { @SuppressWarnings("deprecation") - com.google.cloud.memcache.v1.MemcacheVersion result = com.google.cloud.memcache.v1.MemcacheVersion.valueOf(memcacheVersion_); + com.google.cloud.memcache.v1.MemcacheVersion result = + com.google.cloud.memcache.v1.MemcacheVersion.valueOf(memcacheVersion_); return result == null ? com.google.cloud.memcache.v1.MemcacheVersion.UNRECOGNIZED : result; } public static final int PARAMETERS_FIELD_NUMBER = 11; private com.google.cloud.memcache.v1.MemcacheParameters parameters_; /** + * + * *
    * Optional: User defined parameters to apply to the memcached process
    * on each node.
    * 
* * .google.cloud.memcache.v1.MemcacheParameters parameters = 11; + * * @return Whether the parameters field is set. */ @java.lang.Override @@ -4014,19 +4460,26 @@ public boolean hasParameters() { return parameters_ != null; } /** + * + * *
    * Optional: User defined parameters to apply to the memcached process
    * on each node.
    * 
* * .google.cloud.memcache.v1.MemcacheParameters parameters = 11; + * * @return The parameters. */ @java.lang.Override public com.google.cloud.memcache.v1.MemcacheParameters getParameters() { - return parameters_ == null ? com.google.cloud.memcache.v1.MemcacheParameters.getDefaultInstance() : parameters_; + return parameters_ == null + ? com.google.cloud.memcache.v1.MemcacheParameters.getDefaultInstance() + : parameters_; } /** + * + * *
    * Optional: User defined parameters to apply to the memcached process
    * on each node.
@@ -4042,76 +4495,99 @@ public com.google.cloud.memcache.v1.MemcacheParametersOrBuilder getParametersOrB
   public static final int MEMCACHE_NODES_FIELD_NUMBER = 12;
   private java.util.List memcacheNodes_;
   /**
+   *
+   *
    * 
    * Output only. List of Memcached nodes.
    * Refer to [Node] message for more details.
    * 
* - * repeated .google.cloud.memcache.v1.Instance.Node memcache_nodes = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.memcache.v1.Instance.Node memcache_nodes = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ @java.lang.Override public java.util.List getMemcacheNodesList() { return memcacheNodes_; } /** + * + * *
    * Output only. List of Memcached nodes.
    * Refer to [Node] message for more details.
    * 
* - * repeated .google.cloud.memcache.v1.Instance.Node memcache_nodes = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.memcache.v1.Instance.Node memcache_nodes = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ @java.lang.Override - public java.util.List + public java.util.List getMemcacheNodesOrBuilderList() { return memcacheNodes_; } /** + * + * *
    * Output only. List of Memcached nodes.
    * Refer to [Node] message for more details.
    * 
* - * repeated .google.cloud.memcache.v1.Instance.Node memcache_nodes = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.memcache.v1.Instance.Node memcache_nodes = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ @java.lang.Override public int getMemcacheNodesCount() { return memcacheNodes_.size(); } /** + * + * *
    * Output only. List of Memcached nodes.
    * Refer to [Node] message for more details.
    * 
* - * repeated .google.cloud.memcache.v1.Instance.Node memcache_nodes = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.memcache.v1.Instance.Node memcache_nodes = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ @java.lang.Override public com.google.cloud.memcache.v1.Instance.Node getMemcacheNodes(int index) { return memcacheNodes_.get(index); } /** + * + * *
    * Output only. List of Memcached nodes.
    * Refer to [Node] message for more details.
    * 
* - * repeated .google.cloud.memcache.v1.Instance.Node memcache_nodes = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.memcache.v1.Instance.Node memcache_nodes = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ @java.lang.Override - public com.google.cloud.memcache.v1.Instance.NodeOrBuilder getMemcacheNodesOrBuilder( - int index) { + public com.google.cloud.memcache.v1.Instance.NodeOrBuilder getMemcacheNodesOrBuilder(int index) { return memcacheNodes_.get(index); } 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 @@ -4119,11 +4595,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 @@ -4131,11 +4611,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() { @@ -4145,11 +4628,15 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { public static final int UPDATE_TIME_FIELD_NUMBER = 14; private com.google.protobuf.Timestamp updateTime_; /** + * + * *
    * Output only. The time the instance was updated.
    * 
* - * .google.protobuf.Timestamp update_time = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp update_time = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the updateTime field is set. */ @java.lang.Override @@ -4157,11 +4644,15 @@ public boolean hasUpdateTime() { return updateTime_ != null; } /** + * + * *
    * Output only. The time the instance was updated.
    * 
* - * .google.protobuf.Timestamp update_time = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp update_time = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The updateTime. */ @java.lang.Override @@ -4169,11 +4660,14 @@ public com.google.protobuf.Timestamp getUpdateTime() { return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; } /** + * + * *
    * Output only. The time the instance was updated.
    * 
* - * .google.protobuf.Timestamp update_time = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp update_time = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { @@ -4183,33 +4677,48 @@ public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { public static final int STATE_FIELD_NUMBER = 15; private int state_; /** + * + * *
    * Output only. The state of this Memcached instance.
    * 
* - * .google.cloud.memcache.v1.Instance.State state = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.memcache.v1.Instance.State state = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The enum numeric value on the wire for state. */ - @java.lang.Override public int getStateValue() { + @java.lang.Override + public int getStateValue() { return state_; } /** + * + * *
    * Output only. The state of this Memcached instance.
    * 
* - * .google.cloud.memcache.v1.Instance.State state = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.memcache.v1.Instance.State state = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The state. */ - @java.lang.Override public com.google.cloud.memcache.v1.Instance.State getState() { + @java.lang.Override + public com.google.cloud.memcache.v1.Instance.State getState() { @SuppressWarnings("deprecation") - com.google.cloud.memcache.v1.Instance.State result = com.google.cloud.memcache.v1.Instance.State.valueOf(state_); + com.google.cloud.memcache.v1.Instance.State result = + com.google.cloud.memcache.v1.Instance.State.valueOf(state_); return result == null ? com.google.cloud.memcache.v1.Instance.State.UNRECOGNIZED : result; } public static final int MEMCACHE_FULL_VERSION_FIELD_NUMBER = 18; private volatile java.lang.Object memcacheFullVersion_; /** + * + * *
    * Output only. The full version of memcached server running on this instance.
    * System automatically determines the full memcached version for an instance
@@ -4218,6 +4727,7 @@ public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() {
    * 
* * string memcache_full_version = 18 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The memcacheFullVersion. */ @java.lang.Override @@ -4226,14 +4736,15 @@ public java.lang.String getMemcacheFullVersion() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); memcacheFullVersion_ = s; return s; } } /** + * + * *
    * Output only. The full version of memcached server running on this instance.
    * System automatically determines the full memcached version for an instance
@@ -4242,16 +4753,15 @@ public java.lang.String getMemcacheFullVersion() {
    * 
* * string memcache_full_version = 18 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for memcacheFullVersion. */ @java.lang.Override - public com.google.protobuf.ByteString - getMemcacheFullVersionBytes() { + public com.google.protobuf.ByteString getMemcacheFullVersionBytes() { java.lang.Object ref = memcacheFullVersion_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); memcacheFullVersion_ = b; return b; } else { @@ -4262,71 +4772,90 @@ public java.lang.String getMemcacheFullVersion() { public static final int INSTANCE_MESSAGES_FIELD_NUMBER = 19; private java.util.List instanceMessages_; /** + * + * *
    * List of messages that describe current statuses of memcached instance.
    * 
* - * repeated .google.cloud.memcache.v1.Instance.InstanceMessage instance_messages = 19; + * repeated .google.cloud.memcache.v1.Instance.InstanceMessage instance_messages = 19; + * */ @java.lang.Override - public java.util.List getInstanceMessagesList() { + public java.util.List + getInstanceMessagesList() { return instanceMessages_; } /** + * + * *
    * List of messages that describe current statuses of memcached instance.
    * 
* - * repeated .google.cloud.memcache.v1.Instance.InstanceMessage instance_messages = 19; + * repeated .google.cloud.memcache.v1.Instance.InstanceMessage instance_messages = 19; + * */ @java.lang.Override - public java.util.List + public java.util.List getInstanceMessagesOrBuilderList() { return instanceMessages_; } /** + * + * *
    * List of messages that describe current statuses of memcached instance.
    * 
* - * repeated .google.cloud.memcache.v1.Instance.InstanceMessage instance_messages = 19; + * repeated .google.cloud.memcache.v1.Instance.InstanceMessage instance_messages = 19; + * */ @java.lang.Override public int getInstanceMessagesCount() { return instanceMessages_.size(); } /** + * + * *
    * List of messages that describe current statuses of memcached instance.
    * 
* - * repeated .google.cloud.memcache.v1.Instance.InstanceMessage instance_messages = 19; + * repeated .google.cloud.memcache.v1.Instance.InstanceMessage instance_messages = 19; + * */ @java.lang.Override public com.google.cloud.memcache.v1.Instance.InstanceMessage getInstanceMessages(int index) { return instanceMessages_.get(index); } /** + * + * *
    * List of messages that describe current statuses of memcached instance.
    * 
* - * repeated .google.cloud.memcache.v1.Instance.InstanceMessage instance_messages = 19; + * repeated .google.cloud.memcache.v1.Instance.InstanceMessage instance_messages = 19; + * */ @java.lang.Override - public com.google.cloud.memcache.v1.Instance.InstanceMessageOrBuilder getInstanceMessagesOrBuilder( - int index) { + public com.google.cloud.memcache.v1.Instance.InstanceMessageOrBuilder + getInstanceMessagesOrBuilder(int index) { return instanceMessages_.get(index); } public static final int DISCOVERY_ENDPOINT_FIELD_NUMBER = 20; private volatile java.lang.Object discoveryEndpoint_; /** + * + * *
    * Output only. Endpoint for Discovery API
    * 
* * string discovery_endpoint = 20 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The discoveryEndpoint. */ @java.lang.Override @@ -4335,29 +4864,29 @@ public java.lang.String getDiscoveryEndpoint() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); discoveryEndpoint_ = s; return s; } } /** + * + * *
    * Output only. Endpoint for Discovery API
    * 
* * string discovery_endpoint = 20 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for discoveryEndpoint. */ @java.lang.Override - public com.google.protobuf.ByteString - getDiscoveryEndpointBytes() { + public com.google.protobuf.ByteString getDiscoveryEndpointBytes() { java.lang.Object ref = discoveryEndpoint_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); discoveryEndpoint_ = b; return b; } else { @@ -4366,6 +4895,7 @@ public java.lang.String getDiscoveryEndpoint() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -4377,20 +4907,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(authorizedNetwork_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 4, authorizedNetwork_); } @@ -4403,7 +4928,8 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) if (nodeConfig_ != null) { output.writeMessage(7, getNodeConfig()); } - if (memcacheVersion_ != com.google.cloud.memcache.v1.MemcacheVersion.MEMCACHE_VERSION_UNSPECIFIED.getNumber()) { + if (memcacheVersion_ + != com.google.cloud.memcache.v1.MemcacheVersion.MEMCACHE_VERSION_UNSPECIFIED.getNumber()) { output.writeEnum(9, memcacheVersion_); } if (parameters_ != null) { @@ -4445,15 +4971,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(authorizedNetwork_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, authorizedNetwork_); @@ -4467,43 +4993,36 @@ public int getSerializedSize() { size += 1 * getZonesList().size(); } if (nodeCount_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(6, nodeCount_); + size += com.google.protobuf.CodedOutputStream.computeInt32Size(6, nodeCount_); } if (nodeConfig_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(7, getNodeConfig()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(7, getNodeConfig()); } - if (memcacheVersion_ != com.google.cloud.memcache.v1.MemcacheVersion.MEMCACHE_VERSION_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(9, memcacheVersion_); + if (memcacheVersion_ + != com.google.cloud.memcache.v1.MemcacheVersion.MEMCACHE_VERSION_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(9, memcacheVersion_); } if (parameters_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(11, getParameters()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(11, getParameters()); } for (int i = 0; i < memcacheNodes_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(12, memcacheNodes_.get(i)); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(12, memcacheNodes_.get(i)); } if (createTime_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(13, getCreateTime()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(13, getCreateTime()); } if (updateTime_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(14, getUpdateTime()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(14, getUpdateTime()); } if (state_ != com.google.cloud.memcache.v1.Instance.State.STATE_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(15, state_); + size += com.google.protobuf.CodedOutputStream.computeEnumSize(15, state_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(memcacheFullVersion_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(18, memcacheFullVersion_); } for (int i = 0; i < instanceMessages_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(19, instanceMessages_.get(i)); + size += + com.google.protobuf.CodedOutputStream.computeMessageSize(19, instanceMessages_.get(i)); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(discoveryEndpoint_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(20, discoveryEndpoint_); @@ -4516,55 +5035,41 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.memcache.v1.Instance)) { return super.equals(obj); } com.google.cloud.memcache.v1.Instance other = (com.google.cloud.memcache.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 (!getAuthorizedNetwork() - .equals(other.getAuthorizedNetwork())) return false; - if (!getZonesList() - .equals(other.getZonesList())) return false; - if (getNodeCount() - != other.getNodeCount()) return false; + if (!getName().equals(other.getName())) return false; + if (!getDisplayName().equals(other.getDisplayName())) return false; + if (!internalGetLabels().equals(other.internalGetLabels())) return false; + if (!getAuthorizedNetwork().equals(other.getAuthorizedNetwork())) return false; + if (!getZonesList().equals(other.getZonesList())) return false; + if (getNodeCount() != other.getNodeCount()) return false; if (hasNodeConfig() != other.hasNodeConfig()) return false; if (hasNodeConfig()) { - if (!getNodeConfig() - .equals(other.getNodeConfig())) return false; + if (!getNodeConfig().equals(other.getNodeConfig())) return false; } if (memcacheVersion_ != other.memcacheVersion_) return false; if (hasParameters() != other.hasParameters()) return false; if (hasParameters()) { - if (!getParameters() - .equals(other.getParameters())) return false; + if (!getParameters().equals(other.getParameters())) return false; } - if (!getMemcacheNodesList() - .equals(other.getMemcacheNodesList())) return false; + if (!getMemcacheNodesList().equals(other.getMemcacheNodesList())) return false; if (hasCreateTime() != other.hasCreateTime()) return false; if (hasCreateTime()) { - if (!getCreateTime() - .equals(other.getCreateTime())) return false; + if (!getCreateTime().equals(other.getCreateTime())) return false; } if (hasUpdateTime() != other.hasUpdateTime()) return false; if (hasUpdateTime()) { - if (!getUpdateTime() - .equals(other.getUpdateTime())) return false; + if (!getUpdateTime().equals(other.getUpdateTime())) return false; } if (state_ != other.state_) return false; - if (!getMemcacheFullVersion() - .equals(other.getMemcacheFullVersion())) return false; - if (!getInstanceMessagesList() - .equals(other.getInstanceMessagesList())) return false; - if (!getDiscoveryEndpoint() - .equals(other.getDiscoveryEndpoint())) return false; + if (!getMemcacheFullVersion().equals(other.getMemcacheFullVersion())) return false; + if (!getInstanceMessagesList().equals(other.getInstanceMessagesList())) return false; + if (!getDiscoveryEndpoint().equals(other.getDiscoveryEndpoint())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -4629,136 +5134,138 @@ public int hashCode() { return hash; } - public static com.google.cloud.memcache.v1.Instance parseFrom( - java.nio.ByteBuffer data) + public static com.google.cloud.memcache.v1.Instance parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.memcache.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.memcache.v1.Instance parseFrom( - com.google.protobuf.ByteString data) + + public static com.google.cloud.memcache.v1.Instance parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.memcache.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.memcache.v1.Instance parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.memcache.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.memcache.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.memcache.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.memcache.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.memcache.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.memcache.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.memcache.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.memcache.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; } - /** - * Protobuf type {@code google.cloud.memcache.v1.Instance} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + /** Protobuf type {@code google.cloud.memcache.v1.Instance} */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.memcache.v1.Instance) com.google.cloud.memcache.v1.InstanceOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.memcache.v1.CloudMemcacheProto.internal_static_google_cloud_memcache_v1_Instance_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.memcache.v1.CloudMemcacheProto + .internal_static_google_cloud_memcache_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(); 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(); 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.memcache.v1.CloudMemcacheProto.internal_static_google_cloud_memcache_v1_Instance_fieldAccessorTable + return com.google.cloud.memcache.v1.CloudMemcacheProto + .internal_static_google_cloud_memcache_v1_Instance_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.memcache.v1.Instance.class, com.google.cloud.memcache.v1.Instance.Builder.class); + com.google.cloud.memcache.v1.Instance.class, + com.google.cloud.memcache.v1.Instance.Builder.class); } // Construct using com.google.cloud.memcache.v1.Instance.newBuilder() @@ -4766,18 +5273,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) { getMemcacheNodesFieldBuilder(); getInstanceMessagesFieldBuilder(); } } + @java.lang.Override public Builder clear() { super.clear(); @@ -4840,9 +5347,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.memcache.v1.CloudMemcacheProto.internal_static_google_cloud_memcache_v1_Instance_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.memcache.v1.CloudMemcacheProto + .internal_static_google_cloud_memcache_v1_Instance_descriptor; } @java.lang.Override @@ -4861,7 +5368,8 @@ public com.google.cloud.memcache.v1.Instance build() { @java.lang.Override public com.google.cloud.memcache.v1.Instance buildPartial() { - com.google.cloud.memcache.v1.Instance result = new com.google.cloud.memcache.v1.Instance(this); + com.google.cloud.memcache.v1.Instance result = + new com.google.cloud.memcache.v1.Instance(this); int from_bitField0_ = bitField0_; result.name_ = name_; result.displayName_ = displayName_; @@ -4924,38 +5432,39 @@ public com.google.cloud.memcache.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.memcache.v1.Instance) { - return mergeFrom((com.google.cloud.memcache.v1.Instance)other); + return mergeFrom((com.google.cloud.memcache.v1.Instance) other); } else { super.mergeFrom(other); return this; @@ -4972,8 +5481,7 @@ public Builder mergeFrom(com.google.cloud.memcache.v1.Instance other) { displayName_ = other.displayName_; onChanged(); } - internalGetMutableLabels().mergeFrom( - other.internalGetLabels()); + internalGetMutableLabels().mergeFrom(other.internalGetLabels()); if (!other.getAuthorizedNetwork().isEmpty()) { authorizedNetwork_ = other.authorizedNetwork_; onChanged(); @@ -5018,9 +5526,10 @@ public Builder mergeFrom(com.google.cloud.memcache.v1.Instance other) { memcacheNodesBuilder_ = null; memcacheNodes_ = other.memcacheNodes_; bitField0_ = (bitField0_ & ~0x00000004); - memcacheNodesBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getMemcacheNodesFieldBuilder() : null; + memcacheNodesBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getMemcacheNodesFieldBuilder() + : null; } else { memcacheNodesBuilder_.addAllMessages(other.memcacheNodes_); } @@ -5057,9 +5566,10 @@ public Builder mergeFrom(com.google.cloud.memcache.v1.Instance other) { instanceMessagesBuilder_ = null; instanceMessages_ = other.instanceMessages_; bitField0_ = (bitField0_ & ~0x00000008); - instanceMessagesBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getInstanceMessagesFieldBuilder() : null; + instanceMessagesBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getInstanceMessagesFieldBuilder() + : null; } else { instanceMessagesBuilder_.addAllMessages(other.instanceMessages_); } @@ -5097,10 +5607,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:
@@ -5112,13 +5625,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; @@ -5127,6 +5640,8 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. Unique name of the resource in this scope including project and
      * location using the form:
@@ -5138,15 +5653,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 { @@ -5154,6 +5668,8 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. Unique name of the resource in this scope including project and
      * location using the form:
@@ -5165,20 +5681,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:
@@ -5190,15 +5708,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:
@@ -5210,16 +5731,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; @@ -5227,19 +5748,21 @@ public Builder setNameBytes( private java.lang.Object displayName_ = ""; /** + * + * *
      * User provided name for the instance only used for display
      * purposes. Cannot be more than 80 characters.
      * 
* * 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; @@ -5248,21 +5771,22 @@ public java.lang.String getDisplayName() { } } /** + * + * *
      * User provided name for the instance only used for display
      * purposes. Cannot be more than 80 characters.
      * 
* * 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 { @@ -5270,78 +5794,84 @@ public java.lang.String getDisplayName() { } } /** + * + * *
      * User provided name for the instance only used for display
      * purposes. Cannot be more than 80 characters.
      * 
* * 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; } /** + * + * *
      * User provided name for the instance only used for display
      * purposes. Cannot be more than 80 characters.
      * 
* * string display_name = 2; + * * @return This builder for chaining. */ public Builder clearDisplayName() { - + displayName_ = getDefaultInstance().getDisplayName(); onChanged(); return this; } /** + * + * *
      * User provided name for the instance only used for display
      * purposes. Cannot be more than 80 characters.
      * 
* * 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(); @@ -5353,6 +5883,8 @@ public int getLabelsCount() { return internalGetLabels().getMap().size(); } /** + * + * *
      * Resource labels to represent user-provided metadata.
      * Refer to cloud documentation on labels for more details.
@@ -5361,22 +5893,22 @@ public int getLabelsCount() {
      *
      * 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.
      * Refer to cloud documentation on labels for more details.
@@ -5386,11 +5918,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.
      * Refer to cloud documentation on labels for more details.
@@ -5400,16 +5933,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.
      * Refer to cloud documentation on labels for more details.
@@ -5419,12 +5953,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();
       }
@@ -5432,11 +5965,12 @@ public java.lang.String getLabelsOrThrow(
     }
 
     public Builder clearLabels() {
-      internalGetMutableLabels().getMutableMap()
-          .clear();
+      internalGetMutableLabels().getMutableMap().clear();
       return this;
     }
     /**
+     *
+     *
      * 
      * Resource labels to represent user-provided metadata.
      * Refer to cloud documentation on labels for more details.
@@ -5445,23 +5979,21 @@ public Builder clearLabels() {
      *
      * 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.
      * Refer to cloud documentation on labels for more details.
@@ -5470,19 +6002,20 @@ public Builder removeLabels(
      *
      * 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.
      * Refer to cloud documentation on labels for more details.
@@ -5491,16 +6024,15 @@ public Builder putLabels(
      *
      * 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 authorizedNetwork_ = "";
     /**
+     *
+     *
      * 
      * The full name of the Google Compute Engine
      * [network](/compute/docs/networks-and-firewalls#networks) to which the
@@ -5509,13 +6041,13 @@ public Builder putAllLabels(
      * 
* * string authorized_network = 4; + * * @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; @@ -5524,6 +6056,8 @@ public java.lang.String getAuthorizedNetwork() { } } /** + * + * *
      * The full name of the Google Compute Engine
      * [network](/compute/docs/networks-and-firewalls#networks) to which the
@@ -5532,15 +6066,14 @@ public java.lang.String getAuthorizedNetwork() {
      * 
* * string authorized_network = 4; + * * @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 { @@ -5548,6 +6081,8 @@ public java.lang.String getAuthorizedNetwork() { } } /** + * + * *
      * The full name of the Google Compute Engine
      * [network](/compute/docs/networks-and-firewalls#networks) to which the
@@ -5556,20 +6091,22 @@ public java.lang.String getAuthorizedNetwork() {
      * 
* * string authorized_network = 4; + * * @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; } /** + * + * *
      * The full name of the Google Compute Engine
      * [network](/compute/docs/networks-and-firewalls#networks) to which the
@@ -5578,15 +6115,18 @@ public Builder setAuthorizedNetwork(
      * 
* * string authorized_network = 4; + * * @return This builder for chaining. */ public Builder clearAuthorizedNetwork() { - + authorizedNetwork_ = getDefaultInstance().getAuthorizedNetwork(); onChanged(); return this; } /** + * + * *
      * The full name of the Google Compute Engine
      * [network](/compute/docs/networks-and-firewalls#networks) to which the
@@ -5595,29 +6135,33 @@ public Builder clearAuthorizedNetwork() {
      * 
* * string authorized_network = 4; + * * @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; } - private com.google.protobuf.LazyStringList zones_ = com.google.protobuf.LazyStringArrayList.EMPTY; + private com.google.protobuf.LazyStringList zones_ = + com.google.protobuf.LazyStringArrayList.EMPTY; + private void ensureZonesIsMutable() { if (!((bitField0_ & 0x00000002) != 0)) { zones_ = new com.google.protobuf.LazyStringArrayList(zones_); bitField0_ |= 0x00000002; - } + } } /** + * + * *
      * Zones where Memcached nodes should be provisioned in.
      * Memcached nodes will be equally distributed across these zones. If not
@@ -5626,13 +6170,15 @@ private void ensureZonesIsMutable() {
      * 
* * repeated string zones = 5; + * * @return A list containing the zones. */ - public com.google.protobuf.ProtocolStringList - getZonesList() { + public com.google.protobuf.ProtocolStringList getZonesList() { return zones_.getUnmodifiableView(); } /** + * + * *
      * Zones where Memcached nodes should be provisioned in.
      * Memcached nodes will be equally distributed across these zones. If not
@@ -5641,12 +6187,15 @@ private void ensureZonesIsMutable() {
      * 
* * repeated string zones = 5; + * * @return The count of zones. */ public int getZonesCount() { return zones_.size(); } /** + * + * *
      * Zones where Memcached nodes should be provisioned in.
      * Memcached nodes will be equally distributed across these zones. If not
@@ -5655,6 +6204,7 @@ public int getZonesCount() {
      * 
* * repeated string zones = 5; + * * @param index The index of the element to return. * @return The zones at the given index. */ @@ -5662,6 +6212,8 @@ public java.lang.String getZones(int index) { return zones_.get(index); } /** + * + * *
      * Zones where Memcached nodes should be provisioned in.
      * Memcached nodes will be equally distributed across these zones. If not
@@ -5670,14 +6222,16 @@ public java.lang.String getZones(int index) {
      * 
* * repeated string zones = 5; + * * @param index The index of the value to return. * @return The bytes of the zones at the given index. */ - public com.google.protobuf.ByteString - getZonesBytes(int index) { + public com.google.protobuf.ByteString getZonesBytes(int index) { return zones_.getByteString(index); } /** + * + * *
      * Zones where Memcached nodes should be provisioned in.
      * Memcached nodes will be equally distributed across these zones. If not
@@ -5686,21 +6240,23 @@ public java.lang.String getZones(int index) {
      * 
* * repeated string zones = 5; + * * @param index The index to set the value at. * @param value The zones to set. * @return This builder for chaining. */ - public Builder setZones( - int index, java.lang.String value) { + public Builder setZones(int index, java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureZonesIsMutable(); + throw new NullPointerException(); + } + ensureZonesIsMutable(); zones_.set(index, value); onChanged(); return this; } /** + * + * *
      * Zones where Memcached nodes should be provisioned in.
      * Memcached nodes will be equally distributed across these zones. If not
@@ -5709,20 +6265,22 @@ public Builder setZones(
      * 
* * repeated string zones = 5; + * * @param value The zones to add. * @return This builder for chaining. */ - public Builder addZones( - java.lang.String value) { + public Builder addZones(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureZonesIsMutable(); + throw new NullPointerException(); + } + ensureZonesIsMutable(); zones_.add(value); onChanged(); return this; } /** + * + * *
      * Zones where Memcached nodes should be provisioned in.
      * Memcached nodes will be equally distributed across these zones. If not
@@ -5731,18 +6289,19 @@ public Builder addZones(
      * 
* * repeated string zones = 5; + * * @param values The zones to add. * @return This builder for chaining. */ - public Builder addAllZones( - java.lang.Iterable values) { + public Builder addAllZones(java.lang.Iterable values) { ensureZonesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, zones_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, zones_); onChanged(); return this; } /** + * + * *
      * Zones where Memcached nodes should be provisioned in.
      * Memcached nodes will be equally distributed across these zones. If not
@@ -5751,6 +6310,7 @@ public Builder addAllZones(
      * 
* * repeated string zones = 5; + * * @return This builder for chaining. */ public Builder clearZones() { @@ -5760,6 +6320,8 @@ public Builder clearZones() { return this; } /** + * + * *
      * Zones where Memcached nodes should be provisioned in.
      * Memcached nodes will be equally distributed across these zones. If not
@@ -5768,28 +6330,31 @@ public Builder clearZones() {
      * 
* * repeated string zones = 5; + * * @param value The bytes of the zones to add. * @return This builder for chaining. */ - public Builder addZonesBytes( - com.google.protobuf.ByteString value) { + public Builder addZonesBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); ensureZonesIsMutable(); zones_.add(value); onChanged(); return this; } - private int nodeCount_ ; + private int nodeCount_; /** + * + * *
      * Required. Number of nodes in the Memcached instance.
      * 
* * int32 node_count = 6 [(.google.api.field_behavior) = REQUIRED]; + * * @return The nodeCount. */ @java.lang.Override @@ -5797,30 +6362,36 @@ public int getNodeCount() { return nodeCount_; } /** + * + * *
      * Required. Number of nodes in the Memcached instance.
      * 
* * int32 node_count = 6 [(.google.api.field_behavior) = REQUIRED]; + * * @param value The nodeCount to set. * @return This builder for chaining. */ public Builder setNodeCount(int value) { - + nodeCount_ = value; onChanged(); return this; } /** + * + * *
      * Required. Number of nodes in the Memcached instance.
      * 
* * int32 node_count = 6 [(.google.api.field_behavior) = REQUIRED]; + * * @return This builder for chaining. */ public Builder clearNodeCount() { - + nodeCount_ = 0; onChanged(); return this; @@ -5828,39 +6399,58 @@ public Builder clearNodeCount() { private com.google.cloud.memcache.v1.Instance.NodeConfig nodeConfig_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.memcache.v1.Instance.NodeConfig, com.google.cloud.memcache.v1.Instance.NodeConfig.Builder, com.google.cloud.memcache.v1.Instance.NodeConfigOrBuilder> nodeConfigBuilder_; + com.google.cloud.memcache.v1.Instance.NodeConfig, + com.google.cloud.memcache.v1.Instance.NodeConfig.Builder, + com.google.cloud.memcache.v1.Instance.NodeConfigOrBuilder> + nodeConfigBuilder_; /** + * + * *
      * Required. Configuration for Memcached nodes.
      * 
* - * .google.cloud.memcache.v1.Instance.NodeConfig node_config = 7 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.memcache.v1.Instance.NodeConfig node_config = 7 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the nodeConfig field is set. */ public boolean hasNodeConfig() { return nodeConfigBuilder_ != null || nodeConfig_ != null; } /** + * + * *
      * Required. Configuration for Memcached nodes.
      * 
* - * .google.cloud.memcache.v1.Instance.NodeConfig node_config = 7 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.memcache.v1.Instance.NodeConfig node_config = 7 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The nodeConfig. */ public com.google.cloud.memcache.v1.Instance.NodeConfig getNodeConfig() { if (nodeConfigBuilder_ == null) { - return nodeConfig_ == null ? com.google.cloud.memcache.v1.Instance.NodeConfig.getDefaultInstance() : nodeConfig_; + return nodeConfig_ == null + ? com.google.cloud.memcache.v1.Instance.NodeConfig.getDefaultInstance() + : nodeConfig_; } else { return nodeConfigBuilder_.getMessage(); } } /** + * + * *
      * Required. Configuration for Memcached nodes.
      * 
* - * .google.cloud.memcache.v1.Instance.NodeConfig node_config = 7 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.memcache.v1.Instance.NodeConfig node_config = 7 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder setNodeConfig(com.google.cloud.memcache.v1.Instance.NodeConfig value) { if (nodeConfigBuilder_ == null) { @@ -5876,11 +6466,15 @@ public Builder setNodeConfig(com.google.cloud.memcache.v1.Instance.NodeConfig va return this; } /** + * + * *
      * Required. Configuration for Memcached nodes.
      * 
* - * .google.cloud.memcache.v1.Instance.NodeConfig node_config = 7 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.memcache.v1.Instance.NodeConfig node_config = 7 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder setNodeConfig( com.google.cloud.memcache.v1.Instance.NodeConfig.Builder builderForValue) { @@ -5894,17 +6488,23 @@ public Builder setNodeConfig( return this; } /** + * + * *
      * Required. Configuration for Memcached nodes.
      * 
* - * .google.cloud.memcache.v1.Instance.NodeConfig node_config = 7 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.memcache.v1.Instance.NodeConfig node_config = 7 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder mergeNodeConfig(com.google.cloud.memcache.v1.Instance.NodeConfig value) { if (nodeConfigBuilder_ == null) { if (nodeConfig_ != null) { nodeConfig_ = - com.google.cloud.memcache.v1.Instance.NodeConfig.newBuilder(nodeConfig_).mergeFrom(value).buildPartial(); + com.google.cloud.memcache.v1.Instance.NodeConfig.newBuilder(nodeConfig_) + .mergeFrom(value) + .buildPartial(); } else { nodeConfig_ = value; } @@ -5916,11 +6516,15 @@ public Builder mergeNodeConfig(com.google.cloud.memcache.v1.Instance.NodeConfig return this; } /** + * + * *
      * Required. Configuration for Memcached nodes.
      * 
* - * .google.cloud.memcache.v1.Instance.NodeConfig node_config = 7 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.memcache.v1.Instance.NodeConfig node_config = 7 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder clearNodeConfig() { if (nodeConfigBuilder_ == null) { @@ -5934,48 +6538,64 @@ public Builder clearNodeConfig() { return this; } /** + * + * *
      * Required. Configuration for Memcached nodes.
      * 
* - * .google.cloud.memcache.v1.Instance.NodeConfig node_config = 7 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.memcache.v1.Instance.NodeConfig node_config = 7 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.cloud.memcache.v1.Instance.NodeConfig.Builder getNodeConfigBuilder() { - + onChanged(); return getNodeConfigFieldBuilder().getBuilder(); } /** + * + * *
      * Required. Configuration for Memcached nodes.
      * 
* - * .google.cloud.memcache.v1.Instance.NodeConfig node_config = 7 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.memcache.v1.Instance.NodeConfig node_config = 7 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.cloud.memcache.v1.Instance.NodeConfigOrBuilder getNodeConfigOrBuilder() { if (nodeConfigBuilder_ != null) { return nodeConfigBuilder_.getMessageOrBuilder(); } else { - return nodeConfig_ == null ? - com.google.cloud.memcache.v1.Instance.NodeConfig.getDefaultInstance() : nodeConfig_; + return nodeConfig_ == null + ? com.google.cloud.memcache.v1.Instance.NodeConfig.getDefaultInstance() + : nodeConfig_; } } /** + * + * *
      * Required. Configuration for Memcached nodes.
      * 
* - * .google.cloud.memcache.v1.Instance.NodeConfig node_config = 7 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.memcache.v1.Instance.NodeConfig node_config = 7 [(.google.api.field_behavior) = REQUIRED]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.memcache.v1.Instance.NodeConfig, com.google.cloud.memcache.v1.Instance.NodeConfig.Builder, com.google.cloud.memcache.v1.Instance.NodeConfigOrBuilder> + com.google.cloud.memcache.v1.Instance.NodeConfig, + com.google.cloud.memcache.v1.Instance.NodeConfig.Builder, + com.google.cloud.memcache.v1.Instance.NodeConfigOrBuilder> getNodeConfigFieldBuilder() { if (nodeConfigBuilder_ == null) { - nodeConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.memcache.v1.Instance.NodeConfig, com.google.cloud.memcache.v1.Instance.NodeConfig.Builder, com.google.cloud.memcache.v1.Instance.NodeConfigOrBuilder>( - getNodeConfig(), - getParentForChildren(), - isClean()); + nodeConfigBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.memcache.v1.Instance.NodeConfig, + com.google.cloud.memcache.v1.Instance.NodeConfig.Builder, + com.google.cloud.memcache.v1.Instance.NodeConfigOrBuilder>( + getNodeConfig(), getParentForChildren(), isClean()); nodeConfig_ = null; } return nodeConfigBuilder_; @@ -5983,6 +6603,8 @@ public com.google.cloud.memcache.v1.Instance.NodeConfigOrBuilder getNodeConfigOr private int memcacheVersion_ = 0; /** + * + * *
      * The major version of Memcached software.
      * If not provided, latest supported version will be used. Currently the
@@ -5992,12 +6614,16 @@ public com.google.cloud.memcache.v1.Instance.NodeConfigOrBuilder getNodeConfigOr
      * 
* * .google.cloud.memcache.v1.MemcacheVersion memcache_version = 9; + * * @return The enum numeric value on the wire for memcacheVersion. */ - @java.lang.Override public int getMemcacheVersionValue() { + @java.lang.Override + public int getMemcacheVersionValue() { return memcacheVersion_; } /** + * + * *
      * The major version of Memcached software.
      * If not provided, latest supported version will be used. Currently the
@@ -6007,16 +6633,19 @@ public com.google.cloud.memcache.v1.Instance.NodeConfigOrBuilder getNodeConfigOr
      * 
* * .google.cloud.memcache.v1.MemcacheVersion memcache_version = 9; + * * @param value The enum numeric value on the wire for memcacheVersion to set. * @return This builder for chaining. */ public Builder setMemcacheVersionValue(int value) { - + memcacheVersion_ = value; onChanged(); return this; } /** + * + * *
      * The major version of Memcached software.
      * If not provided, latest supported version will be used. Currently the
@@ -6026,15 +6655,19 @@ public Builder setMemcacheVersionValue(int value) {
      * 
* * .google.cloud.memcache.v1.MemcacheVersion memcache_version = 9; + * * @return The memcacheVersion. */ @java.lang.Override public com.google.cloud.memcache.v1.MemcacheVersion getMemcacheVersion() { @SuppressWarnings("deprecation") - com.google.cloud.memcache.v1.MemcacheVersion result = com.google.cloud.memcache.v1.MemcacheVersion.valueOf(memcacheVersion_); + com.google.cloud.memcache.v1.MemcacheVersion result = + com.google.cloud.memcache.v1.MemcacheVersion.valueOf(memcacheVersion_); return result == null ? com.google.cloud.memcache.v1.MemcacheVersion.UNRECOGNIZED : result; } /** + * + * *
      * The major version of Memcached software.
      * If not provided, latest supported version will be used. Currently the
@@ -6044,6 +6677,7 @@ public com.google.cloud.memcache.v1.MemcacheVersion getMemcacheVersion() {
      * 
* * .google.cloud.memcache.v1.MemcacheVersion memcache_version = 9; + * * @param value The memcacheVersion to set. * @return This builder for chaining. */ @@ -6051,12 +6685,14 @@ public Builder setMemcacheVersion(com.google.cloud.memcache.v1.MemcacheVersion v if (value == null) { throw new NullPointerException(); } - + memcacheVersion_ = value.getNumber(); onChanged(); return this; } /** + * + * *
      * The major version of Memcached software.
      * If not provided, latest supported version will be used. Currently the
@@ -6066,10 +6702,11 @@ public Builder setMemcacheVersion(com.google.cloud.memcache.v1.MemcacheVersion v
      * 
* * .google.cloud.memcache.v1.MemcacheVersion memcache_version = 9; + * * @return This builder for chaining. */ public Builder clearMemcacheVersion() { - + memcacheVersion_ = 0; onChanged(); return this; @@ -6077,36 +6714,49 @@ public Builder clearMemcacheVersion() { private com.google.cloud.memcache.v1.MemcacheParameters parameters_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.memcache.v1.MemcacheParameters, com.google.cloud.memcache.v1.MemcacheParameters.Builder, com.google.cloud.memcache.v1.MemcacheParametersOrBuilder> parametersBuilder_; + com.google.cloud.memcache.v1.MemcacheParameters, + com.google.cloud.memcache.v1.MemcacheParameters.Builder, + com.google.cloud.memcache.v1.MemcacheParametersOrBuilder> + parametersBuilder_; /** + * + * *
      * Optional: User defined parameters to apply to the memcached process
      * on each node.
      * 
* * .google.cloud.memcache.v1.MemcacheParameters parameters = 11; + * * @return Whether the parameters field is set. */ public boolean hasParameters() { return parametersBuilder_ != null || parameters_ != null; } /** + * + * *
      * Optional: User defined parameters to apply to the memcached process
      * on each node.
      * 
* * .google.cloud.memcache.v1.MemcacheParameters parameters = 11; + * * @return The parameters. */ public com.google.cloud.memcache.v1.MemcacheParameters getParameters() { if (parametersBuilder_ == null) { - return parameters_ == null ? com.google.cloud.memcache.v1.MemcacheParameters.getDefaultInstance() : parameters_; + return parameters_ == null + ? com.google.cloud.memcache.v1.MemcacheParameters.getDefaultInstance() + : parameters_; } else { return parametersBuilder_.getMessage(); } } /** + * + * *
      * Optional: User defined parameters to apply to the memcached process
      * on each node.
@@ -6128,6 +6778,8 @@ public Builder setParameters(com.google.cloud.memcache.v1.MemcacheParameters val
       return this;
     }
     /**
+     *
+     *
      * 
      * Optional: User defined parameters to apply to the memcached process
      * on each node.
@@ -6147,6 +6799,8 @@ public Builder setParameters(
       return this;
     }
     /**
+     *
+     *
      * 
      * Optional: User defined parameters to apply to the memcached process
      * on each node.
@@ -6158,7 +6812,9 @@ public Builder mergeParameters(com.google.cloud.memcache.v1.MemcacheParameters v
       if (parametersBuilder_ == null) {
         if (parameters_ != null) {
           parameters_ =
-            com.google.cloud.memcache.v1.MemcacheParameters.newBuilder(parameters_).mergeFrom(value).buildPartial();
+              com.google.cloud.memcache.v1.MemcacheParameters.newBuilder(parameters_)
+                  .mergeFrom(value)
+                  .buildPartial();
         } else {
           parameters_ = value;
         }
@@ -6170,6 +6826,8 @@ public Builder mergeParameters(com.google.cloud.memcache.v1.MemcacheParameters v
       return this;
     }
     /**
+     *
+     *
      * 
      * Optional: User defined parameters to apply to the memcached process
      * on each node.
@@ -6189,6 +6847,8 @@ public Builder clearParameters() {
       return this;
     }
     /**
+     *
+     *
      * 
      * Optional: User defined parameters to apply to the memcached process
      * on each node.
@@ -6197,11 +6857,13 @@ public Builder clearParameters() {
      * .google.cloud.memcache.v1.MemcacheParameters parameters = 11;
      */
     public com.google.cloud.memcache.v1.MemcacheParameters.Builder getParametersBuilder() {
-      
+
       onChanged();
       return getParametersFieldBuilder().getBuilder();
     }
     /**
+     *
+     *
      * 
      * Optional: User defined parameters to apply to the memcached process
      * on each node.
@@ -6213,11 +6875,14 @@ public com.google.cloud.memcache.v1.MemcacheParametersOrBuilder getParametersOrB
       if (parametersBuilder_ != null) {
         return parametersBuilder_.getMessageOrBuilder();
       } else {
-        return parameters_ == null ?
-            com.google.cloud.memcache.v1.MemcacheParameters.getDefaultInstance() : parameters_;
+        return parameters_ == null
+            ? com.google.cloud.memcache.v1.MemcacheParameters.getDefaultInstance()
+            : parameters_;
       }
     }
     /**
+     *
+     *
      * 
      * Optional: User defined parameters to apply to the memcached process
      * on each node.
@@ -6226,38 +6891,50 @@ public com.google.cloud.memcache.v1.MemcacheParametersOrBuilder getParametersOrB
      * .google.cloud.memcache.v1.MemcacheParameters parameters = 11;
      */
     private com.google.protobuf.SingleFieldBuilderV3<
-        com.google.cloud.memcache.v1.MemcacheParameters, com.google.cloud.memcache.v1.MemcacheParameters.Builder, com.google.cloud.memcache.v1.MemcacheParametersOrBuilder> 
+            com.google.cloud.memcache.v1.MemcacheParameters,
+            com.google.cloud.memcache.v1.MemcacheParameters.Builder,
+            com.google.cloud.memcache.v1.MemcacheParametersOrBuilder>
         getParametersFieldBuilder() {
       if (parametersBuilder_ == null) {
-        parametersBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
-            com.google.cloud.memcache.v1.MemcacheParameters, com.google.cloud.memcache.v1.MemcacheParameters.Builder, com.google.cloud.memcache.v1.MemcacheParametersOrBuilder>(
-                getParameters(),
-                getParentForChildren(),
-                isClean());
+        parametersBuilder_ =
+            new com.google.protobuf.SingleFieldBuilderV3<
+                com.google.cloud.memcache.v1.MemcacheParameters,
+                com.google.cloud.memcache.v1.MemcacheParameters.Builder,
+                com.google.cloud.memcache.v1.MemcacheParametersOrBuilder>(
+                getParameters(), getParentForChildren(), isClean());
         parameters_ = null;
       }
       return parametersBuilder_;
     }
 
     private java.util.List memcacheNodes_ =
-      java.util.Collections.emptyList();
+        java.util.Collections.emptyList();
+
     private void ensureMemcacheNodesIsMutable() {
       if (!((bitField0_ & 0x00000004) != 0)) {
-        memcacheNodes_ = new java.util.ArrayList(memcacheNodes_);
+        memcacheNodes_ =
+            new java.util.ArrayList(memcacheNodes_);
         bitField0_ |= 0x00000004;
-       }
+      }
     }
 
     private com.google.protobuf.RepeatedFieldBuilderV3<
-        com.google.cloud.memcache.v1.Instance.Node, com.google.cloud.memcache.v1.Instance.Node.Builder, com.google.cloud.memcache.v1.Instance.NodeOrBuilder> memcacheNodesBuilder_;
+            com.google.cloud.memcache.v1.Instance.Node,
+            com.google.cloud.memcache.v1.Instance.Node.Builder,
+            com.google.cloud.memcache.v1.Instance.NodeOrBuilder>
+        memcacheNodesBuilder_;
 
     /**
+     *
+     *
      * 
      * Output only. List of Memcached nodes.
      * Refer to [Node] message for more details.
      * 
* - * repeated .google.cloud.memcache.v1.Instance.Node memcache_nodes = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.memcache.v1.Instance.Node memcache_nodes = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public java.util.List getMemcacheNodesList() { if (memcacheNodesBuilder_ == null) { @@ -6267,12 +6944,16 @@ public java.util.List getMemcacheNod } } /** + * + * *
      * Output only. List of Memcached nodes.
      * Refer to [Node] message for more details.
      * 
* - * repeated .google.cloud.memcache.v1.Instance.Node memcache_nodes = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.memcache.v1.Instance.Node memcache_nodes = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public int getMemcacheNodesCount() { if (memcacheNodesBuilder_ == null) { @@ -6282,12 +6963,16 @@ public int getMemcacheNodesCount() { } } /** + * + * *
      * Output only. List of Memcached nodes.
      * Refer to [Node] message for more details.
      * 
* - * repeated .google.cloud.memcache.v1.Instance.Node memcache_nodes = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.memcache.v1.Instance.Node memcache_nodes = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public com.google.cloud.memcache.v1.Instance.Node getMemcacheNodes(int index) { if (memcacheNodesBuilder_ == null) { @@ -6297,15 +6982,18 @@ public com.google.cloud.memcache.v1.Instance.Node getMemcacheNodes(int index) { } } /** + * + * *
      * Output only. List of Memcached nodes.
      * Refer to [Node] message for more details.
      * 
* - * repeated .google.cloud.memcache.v1.Instance.Node memcache_nodes = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.memcache.v1.Instance.Node memcache_nodes = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public Builder setMemcacheNodes( - int index, com.google.cloud.memcache.v1.Instance.Node value) { + public Builder setMemcacheNodes(int index, com.google.cloud.memcache.v1.Instance.Node value) { if (memcacheNodesBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -6319,12 +7007,16 @@ public Builder setMemcacheNodes( return this; } /** + * + * *
      * Output only. List of Memcached nodes.
      * Refer to [Node] message for more details.
      * 
* - * repeated .google.cloud.memcache.v1.Instance.Node memcache_nodes = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.memcache.v1.Instance.Node memcache_nodes = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder setMemcacheNodes( int index, com.google.cloud.memcache.v1.Instance.Node.Builder builderForValue) { @@ -6338,12 +7030,16 @@ public Builder setMemcacheNodes( return this; } /** + * + * *
      * Output only. List of Memcached nodes.
      * Refer to [Node] message for more details.
      * 
* - * repeated .google.cloud.memcache.v1.Instance.Node memcache_nodes = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.memcache.v1.Instance.Node memcache_nodes = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder addMemcacheNodes(com.google.cloud.memcache.v1.Instance.Node value) { if (memcacheNodesBuilder_ == null) { @@ -6359,15 +7055,18 @@ public Builder addMemcacheNodes(com.google.cloud.memcache.v1.Instance.Node value return this; } /** + * + * *
      * Output only. List of Memcached nodes.
      * Refer to [Node] message for more details.
      * 
* - * repeated .google.cloud.memcache.v1.Instance.Node memcache_nodes = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.memcache.v1.Instance.Node memcache_nodes = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public Builder addMemcacheNodes( - int index, com.google.cloud.memcache.v1.Instance.Node value) { + public Builder addMemcacheNodes(int index, com.google.cloud.memcache.v1.Instance.Node value) { if (memcacheNodesBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -6381,12 +7080,16 @@ public Builder addMemcacheNodes( return this; } /** + * + * *
      * Output only. List of Memcached nodes.
      * Refer to [Node] message for more details.
      * 
* - * repeated .google.cloud.memcache.v1.Instance.Node memcache_nodes = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.memcache.v1.Instance.Node memcache_nodes = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder addMemcacheNodes( com.google.cloud.memcache.v1.Instance.Node.Builder builderForValue) { @@ -6400,12 +7103,16 @@ public Builder addMemcacheNodes( return this; } /** + * + * *
      * Output only. List of Memcached nodes.
      * Refer to [Node] message for more details.
      * 
* - * repeated .google.cloud.memcache.v1.Instance.Node memcache_nodes = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.memcache.v1.Instance.Node memcache_nodes = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder addMemcacheNodes( int index, com.google.cloud.memcache.v1.Instance.Node.Builder builderForValue) { @@ -6419,19 +7126,22 @@ public Builder addMemcacheNodes( return this; } /** + * + * *
      * Output only. List of Memcached nodes.
      * Refer to [Node] message for more details.
      * 
* - * repeated .google.cloud.memcache.v1.Instance.Node memcache_nodes = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.memcache.v1.Instance.Node memcache_nodes = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder addAllMemcacheNodes( java.lang.Iterable values) { if (memcacheNodesBuilder_ == null) { ensureMemcacheNodesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, memcacheNodes_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, memcacheNodes_); onChanged(); } else { memcacheNodesBuilder_.addAllMessages(values); @@ -6439,12 +7149,16 @@ public Builder addAllMemcacheNodes( return this; } /** + * + * *
      * Output only. List of Memcached nodes.
      * Refer to [Node] message for more details.
      * 
* - * repeated .google.cloud.memcache.v1.Instance.Node memcache_nodes = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.memcache.v1.Instance.Node memcache_nodes = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder clearMemcacheNodes() { if (memcacheNodesBuilder_ == null) { @@ -6457,12 +7171,16 @@ public Builder clearMemcacheNodes() { return this; } /** + * + * *
      * Output only. List of Memcached nodes.
      * Refer to [Node] message for more details.
      * 
* - * repeated .google.cloud.memcache.v1.Instance.Node memcache_nodes = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.memcache.v1.Instance.Node memcache_nodes = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder removeMemcacheNodes(int index) { if (memcacheNodesBuilder_ == null) { @@ -6475,42 +7193,54 @@ public Builder removeMemcacheNodes(int index) { return this; } /** + * + * *
      * Output only. List of Memcached nodes.
      * Refer to [Node] message for more details.
      * 
* - * repeated .google.cloud.memcache.v1.Instance.Node memcache_nodes = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.memcache.v1.Instance.Node memcache_nodes = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public com.google.cloud.memcache.v1.Instance.Node.Builder getMemcacheNodesBuilder( - int index) { + public com.google.cloud.memcache.v1.Instance.Node.Builder getMemcacheNodesBuilder(int index) { return getMemcacheNodesFieldBuilder().getBuilder(index); } /** + * + * *
      * Output only. List of Memcached nodes.
      * Refer to [Node] message for more details.
      * 
* - * repeated .google.cloud.memcache.v1.Instance.Node memcache_nodes = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.memcache.v1.Instance.Node memcache_nodes = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public com.google.cloud.memcache.v1.Instance.NodeOrBuilder getMemcacheNodesOrBuilder( int index) { if (memcacheNodesBuilder_ == null) { - return memcacheNodes_.get(index); } else { + return memcacheNodes_.get(index); + } else { return memcacheNodesBuilder_.getMessageOrBuilder(index); } } /** + * + * *
      * Output only. List of Memcached nodes.
      * Refer to [Node] message for more details.
      * 
* - * repeated .google.cloud.memcache.v1.Instance.Node memcache_nodes = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.memcache.v1.Instance.Node memcache_nodes = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public java.util.List - getMemcacheNodesOrBuilderList() { + public java.util.List + getMemcacheNodesOrBuilderList() { if (memcacheNodesBuilder_ != null) { return memcacheNodesBuilder_.getMessageOrBuilderList(); } else { @@ -6518,48 +7248,65 @@ public com.google.cloud.memcache.v1.Instance.NodeOrBuilder getMemcacheNodesOrBui } } /** + * + * *
      * Output only. List of Memcached nodes.
      * Refer to [Node] message for more details.
      * 
* - * repeated .google.cloud.memcache.v1.Instance.Node memcache_nodes = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.memcache.v1.Instance.Node memcache_nodes = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public com.google.cloud.memcache.v1.Instance.Node.Builder addMemcacheNodesBuilder() { - return getMemcacheNodesFieldBuilder().addBuilder( - com.google.cloud.memcache.v1.Instance.Node.getDefaultInstance()); + return getMemcacheNodesFieldBuilder() + .addBuilder(com.google.cloud.memcache.v1.Instance.Node.getDefaultInstance()); } /** + * + * *
      * Output only. List of Memcached nodes.
      * Refer to [Node] message for more details.
      * 
* - * repeated .google.cloud.memcache.v1.Instance.Node memcache_nodes = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.memcache.v1.Instance.Node memcache_nodes = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public com.google.cloud.memcache.v1.Instance.Node.Builder addMemcacheNodesBuilder( - int index) { - return getMemcacheNodesFieldBuilder().addBuilder( - index, com.google.cloud.memcache.v1.Instance.Node.getDefaultInstance()); + public com.google.cloud.memcache.v1.Instance.Node.Builder addMemcacheNodesBuilder(int index) { + return getMemcacheNodesFieldBuilder() + .addBuilder(index, com.google.cloud.memcache.v1.Instance.Node.getDefaultInstance()); } /** + * + * *
      * Output only. List of Memcached nodes.
      * Refer to [Node] message for more details.
      * 
* - * repeated .google.cloud.memcache.v1.Instance.Node memcache_nodes = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.memcache.v1.Instance.Node memcache_nodes = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public java.util.List - getMemcacheNodesBuilderList() { + public java.util.List + getMemcacheNodesBuilderList() { return getMemcacheNodesFieldBuilder().getBuilderList(); } + private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.memcache.v1.Instance.Node, com.google.cloud.memcache.v1.Instance.Node.Builder, com.google.cloud.memcache.v1.Instance.NodeOrBuilder> + com.google.cloud.memcache.v1.Instance.Node, + com.google.cloud.memcache.v1.Instance.Node.Builder, + com.google.cloud.memcache.v1.Instance.NodeOrBuilder> getMemcacheNodesFieldBuilder() { if (memcacheNodesBuilder_ == null) { - memcacheNodesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.memcache.v1.Instance.Node, com.google.cloud.memcache.v1.Instance.Node.Builder, com.google.cloud.memcache.v1.Instance.NodeOrBuilder>( + memcacheNodesBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.memcache.v1.Instance.Node, + com.google.cloud.memcache.v1.Instance.Node.Builder, + com.google.cloud.memcache.v1.Instance.NodeOrBuilder>( memcacheNodes_, ((bitField0_ & 0x00000004) != 0), getParentForChildren(), @@ -6571,39 +7318,58 @@ public com.google.cloud.memcache.v1.Instance.Node.Builder addMemcacheNodesBuilde 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) { @@ -6619,14 +7385,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(); @@ -6637,17 +7406,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; } @@ -6659,11 +7432,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) { @@ -6677,48 +7454,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_; @@ -6726,39 +7519,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 the instance was updated.
      * 
* - * .google.protobuf.Timestamp update_time = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp update_time = 14 [(.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 the instance was updated.
      * 
* - * .google.protobuf.Timestamp update_time = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp update_time = 14 [(.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 the instance was updated.
      * 
* - * .google.protobuf.Timestamp update_time = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp update_time = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder setUpdateTime(com.google.protobuf.Timestamp value) { if (updateTimeBuilder_ == null) { @@ -6774,14 +7586,17 @@ public Builder setUpdateTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * Output only. The time the instance was updated.
      * 
* - * .google.protobuf.Timestamp update_time = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp update_time = 14 [(.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(); @@ -6792,17 +7607,21 @@ public Builder setUpdateTime( return this; } /** + * + * *
      * Output only. The time the instance was updated.
      * 
* - * .google.protobuf.Timestamp update_time = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp update_time = 14 [(.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; } @@ -6814,11 +7633,15 @@ public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * Output only. The time the instance was updated.
      * 
* - * .google.protobuf.Timestamp update_time = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp update_time = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder clearUpdateTime() { if (updateTimeBuilder_ == null) { @@ -6832,48 +7655,64 @@ public Builder clearUpdateTime() { return this; } /** + * + * *
      * Output only. The time the instance was updated.
      * 
* - * .google.protobuf.Timestamp update_time = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp update_time = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public com.google.protobuf.Timestamp.Builder getUpdateTimeBuilder() { - + onChanged(); return getUpdateTimeFieldBuilder().getBuilder(); } /** + * + * *
      * Output only. The time the instance was updated.
      * 
* - * .google.protobuf.Timestamp update_time = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp update_time = 14 [(.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 the instance was updated.
      * 
* - * .google.protobuf.Timestamp update_time = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp update_time = 14 [(.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_; @@ -6881,51 +7720,73 @@ public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { private int state_ = 0; /** + * + * *
      * Output only. The state of this Memcached instance.
      * 
* - * .google.cloud.memcache.v1.Instance.State state = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.memcache.v1.Instance.State state = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The enum numeric value on the wire for state. */ - @java.lang.Override public int getStateValue() { + @java.lang.Override + public int getStateValue() { return state_; } /** + * + * *
      * Output only. The state of this Memcached instance.
      * 
* - * .google.cloud.memcache.v1.Instance.State state = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.memcache.v1.Instance.State state = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @param value The enum numeric value on the wire for state to set. * @return This builder for chaining. */ public Builder setStateValue(int value) { - + state_ = value; onChanged(); return this; } /** + * + * *
      * Output only. The state of this Memcached instance.
      * 
* - * .google.cloud.memcache.v1.Instance.State state = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.memcache.v1.Instance.State state = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The state. */ @java.lang.Override public com.google.cloud.memcache.v1.Instance.State getState() { @SuppressWarnings("deprecation") - com.google.cloud.memcache.v1.Instance.State result = com.google.cloud.memcache.v1.Instance.State.valueOf(state_); + com.google.cloud.memcache.v1.Instance.State result = + com.google.cloud.memcache.v1.Instance.State.valueOf(state_); return result == null ? com.google.cloud.memcache.v1.Instance.State.UNRECOGNIZED : result; } /** + * + * *
      * Output only. The state of this Memcached instance.
      * 
* - * .google.cloud.memcache.v1.Instance.State state = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.memcache.v1.Instance.State state = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @param value The state to set. * @return This builder for chaining. */ @@ -6933,21 +7794,26 @@ public Builder setState(com.google.cloud.memcache.v1.Instance.State value) { if (value == null) { throw new NullPointerException(); } - + state_ = value.getNumber(); onChanged(); return this; } /** + * + * *
      * Output only. The state of this Memcached instance.
      * 
* - * .google.cloud.memcache.v1.Instance.State state = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.memcache.v1.Instance.State state = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return This builder for chaining. */ public Builder clearState() { - + state_ = 0; onChanged(); return this; @@ -6955,6 +7821,8 @@ public Builder clearState() { private java.lang.Object memcacheFullVersion_ = ""; /** + * + * *
      * Output only. The full version of memcached server running on this instance.
      * System automatically determines the full memcached version for an instance
@@ -6963,13 +7831,13 @@ public Builder clearState() {
      * 
* * string memcache_full_version = 18 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The memcacheFullVersion. */ public java.lang.String getMemcacheFullVersion() { java.lang.Object ref = memcacheFullVersion_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); memcacheFullVersion_ = s; return s; @@ -6978,6 +7846,8 @@ public java.lang.String getMemcacheFullVersion() { } } /** + * + * *
      * Output only. The full version of memcached server running on this instance.
      * System automatically determines the full memcached version for an instance
@@ -6986,15 +7856,14 @@ public java.lang.String getMemcacheFullVersion() {
      * 
* * string memcache_full_version = 18 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for memcacheFullVersion. */ - public com.google.protobuf.ByteString - getMemcacheFullVersionBytes() { + public com.google.protobuf.ByteString getMemcacheFullVersionBytes() { java.lang.Object ref = memcacheFullVersion_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); memcacheFullVersion_ = b; return b; } else { @@ -7002,6 +7871,8 @@ public java.lang.String getMemcacheFullVersion() { } } /** + * + * *
      * Output only. The full version of memcached server running on this instance.
      * System automatically determines the full memcached version for an instance
@@ -7010,20 +7881,22 @@ public java.lang.String getMemcacheFullVersion() {
      * 
* * string memcache_full_version = 18 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @param value The memcacheFullVersion to set. * @return This builder for chaining. */ - public Builder setMemcacheFullVersion( - java.lang.String value) { + public Builder setMemcacheFullVersion(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + memcacheFullVersion_ = value; onChanged(); return this; } /** + * + * *
      * Output only. The full version of memcached server running on this instance.
      * System automatically determines the full memcached version for an instance
@@ -7032,15 +7905,18 @@ public Builder setMemcacheFullVersion(
      * 
* * string memcache_full_version = 18 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return This builder for chaining. */ public Builder clearMemcacheFullVersion() { - + memcacheFullVersion_ = getDefaultInstance().getMemcacheFullVersion(); onChanged(); return this; } /** + * + * *
      * Output only. The full version of memcached server running on this instance.
      * System automatically determines the full memcached version for an instance
@@ -7049,41 +7925,51 @@ public Builder clearMemcacheFullVersion() {
      * 
* * string memcache_full_version = 18 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @param value The bytes for memcacheFullVersion to set. * @return This builder for chaining. */ - public Builder setMemcacheFullVersionBytes( - com.google.protobuf.ByteString value) { + public Builder setMemcacheFullVersionBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + memcacheFullVersion_ = value; onChanged(); return this; } - private java.util.List instanceMessages_ = - java.util.Collections.emptyList(); + private java.util.List + instanceMessages_ = java.util.Collections.emptyList(); + private void ensureInstanceMessagesIsMutable() { if (!((bitField0_ & 0x00000008) != 0)) { - instanceMessages_ = new java.util.ArrayList(instanceMessages_); + instanceMessages_ = + new java.util.ArrayList( + instanceMessages_); bitField0_ |= 0x00000008; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.memcache.v1.Instance.InstanceMessage, com.google.cloud.memcache.v1.Instance.InstanceMessage.Builder, com.google.cloud.memcache.v1.Instance.InstanceMessageOrBuilder> instanceMessagesBuilder_; + com.google.cloud.memcache.v1.Instance.InstanceMessage, + com.google.cloud.memcache.v1.Instance.InstanceMessage.Builder, + com.google.cloud.memcache.v1.Instance.InstanceMessageOrBuilder> + instanceMessagesBuilder_; /** + * + * *
      * List of messages that describe current statuses of memcached instance.
      * 
* - * repeated .google.cloud.memcache.v1.Instance.InstanceMessage instance_messages = 19; + * repeated .google.cloud.memcache.v1.Instance.InstanceMessage instance_messages = 19; + * */ - public java.util.List getInstanceMessagesList() { + public java.util.List + getInstanceMessagesList() { if (instanceMessagesBuilder_ == null) { return java.util.Collections.unmodifiableList(instanceMessages_); } else { @@ -7091,11 +7977,14 @@ public java.util.List get } } /** + * + * *
      * List of messages that describe current statuses of memcached instance.
      * 
* - * repeated .google.cloud.memcache.v1.Instance.InstanceMessage instance_messages = 19; + * repeated .google.cloud.memcache.v1.Instance.InstanceMessage instance_messages = 19; + * */ public int getInstanceMessagesCount() { if (instanceMessagesBuilder_ == null) { @@ -7105,11 +7994,14 @@ public int getInstanceMessagesCount() { } } /** + * + * *
      * List of messages that describe current statuses of memcached instance.
      * 
* - * repeated .google.cloud.memcache.v1.Instance.InstanceMessage instance_messages = 19; + * repeated .google.cloud.memcache.v1.Instance.InstanceMessage instance_messages = 19; + * */ public com.google.cloud.memcache.v1.Instance.InstanceMessage getInstanceMessages(int index) { if (instanceMessagesBuilder_ == null) { @@ -7119,11 +8011,14 @@ public com.google.cloud.memcache.v1.Instance.InstanceMessage getInstanceMessages } } /** + * + * *
      * List of messages that describe current statuses of memcached instance.
      * 
* - * repeated .google.cloud.memcache.v1.Instance.InstanceMessage instance_messages = 19; + * repeated .google.cloud.memcache.v1.Instance.InstanceMessage instance_messages = 19; + * */ public Builder setInstanceMessages( int index, com.google.cloud.memcache.v1.Instance.InstanceMessage value) { @@ -7140,11 +8035,14 @@ public Builder setInstanceMessages( return this; } /** + * + * *
      * List of messages that describe current statuses of memcached instance.
      * 
* - * repeated .google.cloud.memcache.v1.Instance.InstanceMessage instance_messages = 19; + * repeated .google.cloud.memcache.v1.Instance.InstanceMessage instance_messages = 19; + * */ public Builder setInstanceMessages( int index, com.google.cloud.memcache.v1.Instance.InstanceMessage.Builder builderForValue) { @@ -7158,13 +8056,17 @@ public Builder setInstanceMessages( return this; } /** + * + * *
      * List of messages that describe current statuses of memcached instance.
      * 
* - * repeated .google.cloud.memcache.v1.Instance.InstanceMessage instance_messages = 19; + * repeated .google.cloud.memcache.v1.Instance.InstanceMessage instance_messages = 19; + * */ - public Builder addInstanceMessages(com.google.cloud.memcache.v1.Instance.InstanceMessage value) { + public Builder addInstanceMessages( + com.google.cloud.memcache.v1.Instance.InstanceMessage value) { if (instanceMessagesBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -7178,11 +8080,14 @@ public Builder addInstanceMessages(com.google.cloud.memcache.v1.Instance.Instanc return this; } /** + * + * *
      * List of messages that describe current statuses of memcached instance.
      * 
* - * repeated .google.cloud.memcache.v1.Instance.InstanceMessage instance_messages = 19; + * repeated .google.cloud.memcache.v1.Instance.InstanceMessage instance_messages = 19; + * */ public Builder addInstanceMessages( int index, com.google.cloud.memcache.v1.Instance.InstanceMessage value) { @@ -7199,11 +8104,14 @@ public Builder addInstanceMessages( return this; } /** + * + * *
      * List of messages that describe current statuses of memcached instance.
      * 
* - * repeated .google.cloud.memcache.v1.Instance.InstanceMessage instance_messages = 19; + * repeated .google.cloud.memcache.v1.Instance.InstanceMessage instance_messages = 19; + * */ public Builder addInstanceMessages( com.google.cloud.memcache.v1.Instance.InstanceMessage.Builder builderForValue) { @@ -7217,11 +8125,14 @@ public Builder addInstanceMessages( return this; } /** + * + * *
      * List of messages that describe current statuses of memcached instance.
      * 
* - * repeated .google.cloud.memcache.v1.Instance.InstanceMessage instance_messages = 19; + * repeated .google.cloud.memcache.v1.Instance.InstanceMessage instance_messages = 19; + * */ public Builder addInstanceMessages( int index, com.google.cloud.memcache.v1.Instance.InstanceMessage.Builder builderForValue) { @@ -7235,18 +8146,21 @@ public Builder addInstanceMessages( return this; } /** + * + * *
      * List of messages that describe current statuses of memcached instance.
      * 
* - * repeated .google.cloud.memcache.v1.Instance.InstanceMessage instance_messages = 19; + * repeated .google.cloud.memcache.v1.Instance.InstanceMessage instance_messages = 19; + * */ public Builder addAllInstanceMessages( - java.lang.Iterable values) { + java.lang.Iterable + values) { if (instanceMessagesBuilder_ == null) { ensureInstanceMessagesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, instanceMessages_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, instanceMessages_); onChanged(); } else { instanceMessagesBuilder_.addAllMessages(values); @@ -7254,11 +8168,14 @@ public Builder addAllInstanceMessages( return this; } /** + * + * *
      * List of messages that describe current statuses of memcached instance.
      * 
* - * repeated .google.cloud.memcache.v1.Instance.InstanceMessage instance_messages = 19; + * repeated .google.cloud.memcache.v1.Instance.InstanceMessage instance_messages = 19; + * */ public Builder clearInstanceMessages() { if (instanceMessagesBuilder_ == null) { @@ -7271,11 +8188,14 @@ public Builder clearInstanceMessages() { return this; } /** + * + * *
      * List of messages that describe current statuses of memcached instance.
      * 
* - * repeated .google.cloud.memcache.v1.Instance.InstanceMessage instance_messages = 19; + * repeated .google.cloud.memcache.v1.Instance.InstanceMessage instance_messages = 19; + * */ public Builder removeInstanceMessages(int index) { if (instanceMessagesBuilder_ == null) { @@ -7288,39 +8208,49 @@ public Builder removeInstanceMessages(int index) { return this; } /** + * + * *
      * List of messages that describe current statuses of memcached instance.
      * 
* - * repeated .google.cloud.memcache.v1.Instance.InstanceMessage instance_messages = 19; + * repeated .google.cloud.memcache.v1.Instance.InstanceMessage instance_messages = 19; + * */ public com.google.cloud.memcache.v1.Instance.InstanceMessage.Builder getInstanceMessagesBuilder( int index) { return getInstanceMessagesFieldBuilder().getBuilder(index); } /** + * + * *
      * List of messages that describe current statuses of memcached instance.
      * 
* - * repeated .google.cloud.memcache.v1.Instance.InstanceMessage instance_messages = 19; + * repeated .google.cloud.memcache.v1.Instance.InstanceMessage instance_messages = 19; + * */ - public com.google.cloud.memcache.v1.Instance.InstanceMessageOrBuilder getInstanceMessagesOrBuilder( - int index) { + public com.google.cloud.memcache.v1.Instance.InstanceMessageOrBuilder + getInstanceMessagesOrBuilder(int index) { if (instanceMessagesBuilder_ == null) { - return instanceMessages_.get(index); } else { + return instanceMessages_.get(index); + } else { return instanceMessagesBuilder_.getMessageOrBuilder(index); } } /** + * + * *
      * List of messages that describe current statuses of memcached instance.
      * 
* - * repeated .google.cloud.memcache.v1.Instance.InstanceMessage instance_messages = 19; + * repeated .google.cloud.memcache.v1.Instance.InstanceMessage instance_messages = 19; + * */ - public java.util.List - getInstanceMessagesOrBuilderList() { + public java.util.List + getInstanceMessagesOrBuilderList() { if (instanceMessagesBuilder_ != null) { return instanceMessagesBuilder_.getMessageOrBuilderList(); } else { @@ -7328,45 +8258,62 @@ public com.google.cloud.memcache.v1.Instance.InstanceMessageOrBuilder getInstanc } } /** + * + * *
      * List of messages that describe current statuses of memcached instance.
      * 
* - * repeated .google.cloud.memcache.v1.Instance.InstanceMessage instance_messages = 19; + * repeated .google.cloud.memcache.v1.Instance.InstanceMessage instance_messages = 19; + * */ - public com.google.cloud.memcache.v1.Instance.InstanceMessage.Builder addInstanceMessagesBuilder() { - return getInstanceMessagesFieldBuilder().addBuilder( - com.google.cloud.memcache.v1.Instance.InstanceMessage.getDefaultInstance()); + public com.google.cloud.memcache.v1.Instance.InstanceMessage.Builder + addInstanceMessagesBuilder() { + return getInstanceMessagesFieldBuilder() + .addBuilder(com.google.cloud.memcache.v1.Instance.InstanceMessage.getDefaultInstance()); } /** + * + * *
      * List of messages that describe current statuses of memcached instance.
      * 
* - * repeated .google.cloud.memcache.v1.Instance.InstanceMessage instance_messages = 19; + * repeated .google.cloud.memcache.v1.Instance.InstanceMessage instance_messages = 19; + * */ public com.google.cloud.memcache.v1.Instance.InstanceMessage.Builder addInstanceMessagesBuilder( int index) { - return getInstanceMessagesFieldBuilder().addBuilder( - index, com.google.cloud.memcache.v1.Instance.InstanceMessage.getDefaultInstance()); + return getInstanceMessagesFieldBuilder() + .addBuilder( + index, com.google.cloud.memcache.v1.Instance.InstanceMessage.getDefaultInstance()); } /** + * + * *
      * List of messages that describe current statuses of memcached instance.
      * 
* - * repeated .google.cloud.memcache.v1.Instance.InstanceMessage instance_messages = 19; + * repeated .google.cloud.memcache.v1.Instance.InstanceMessage instance_messages = 19; + * */ - public java.util.List - getInstanceMessagesBuilderList() { + public java.util.List + getInstanceMessagesBuilderList() { return getInstanceMessagesFieldBuilder().getBuilderList(); } + private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.memcache.v1.Instance.InstanceMessage, com.google.cloud.memcache.v1.Instance.InstanceMessage.Builder, com.google.cloud.memcache.v1.Instance.InstanceMessageOrBuilder> + com.google.cloud.memcache.v1.Instance.InstanceMessage, + com.google.cloud.memcache.v1.Instance.InstanceMessage.Builder, + com.google.cloud.memcache.v1.Instance.InstanceMessageOrBuilder> getInstanceMessagesFieldBuilder() { if (instanceMessagesBuilder_ == null) { - instanceMessagesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.memcache.v1.Instance.InstanceMessage, com.google.cloud.memcache.v1.Instance.InstanceMessage.Builder, com.google.cloud.memcache.v1.Instance.InstanceMessageOrBuilder>( + instanceMessagesBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.memcache.v1.Instance.InstanceMessage, + com.google.cloud.memcache.v1.Instance.InstanceMessage.Builder, + com.google.cloud.memcache.v1.Instance.InstanceMessageOrBuilder>( instanceMessages_, ((bitField0_ & 0x00000008) != 0), getParentForChildren(), @@ -7378,18 +8325,20 @@ public com.google.cloud.memcache.v1.Instance.InstanceMessage.Builder addInstance private java.lang.Object discoveryEndpoint_ = ""; /** + * + * *
      * Output only. Endpoint for Discovery API
      * 
* * string discovery_endpoint = 20 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The discoveryEndpoint. */ public java.lang.String getDiscoveryEndpoint() { java.lang.Object ref = discoveryEndpoint_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); discoveryEndpoint_ = s; return s; @@ -7398,20 +8347,21 @@ public java.lang.String getDiscoveryEndpoint() { } } /** + * + * *
      * Output only. Endpoint for Discovery API
      * 
* * string discovery_endpoint = 20 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for discoveryEndpoint. */ - public com.google.protobuf.ByteString - getDiscoveryEndpointBytes() { + public com.google.protobuf.ByteString getDiscoveryEndpointBytes() { java.lang.Object ref = discoveryEndpoint_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); discoveryEndpoint_ = b; return b; } else { @@ -7419,61 +8369,68 @@ public java.lang.String getDiscoveryEndpoint() { } } /** + * + * *
      * Output only. Endpoint for Discovery API
      * 
* * string discovery_endpoint = 20 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @param value The discoveryEndpoint to set. * @return This builder for chaining. */ - public Builder setDiscoveryEndpoint( - java.lang.String value) { + public Builder setDiscoveryEndpoint(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + discoveryEndpoint_ = value; onChanged(); return this; } /** + * + * *
      * Output only. Endpoint for Discovery API
      * 
* * string discovery_endpoint = 20 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return This builder for chaining. */ public Builder clearDiscoveryEndpoint() { - + discoveryEndpoint_ = getDefaultInstance().getDiscoveryEndpoint(); onChanged(); return this; } /** + * + * *
      * Output only. Endpoint for Discovery API
      * 
* * string discovery_endpoint = 20 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @param value The bytes for discoveryEndpoint to set. * @return This builder for chaining. */ - public Builder setDiscoveryEndpointBytes( - com.google.protobuf.ByteString value) { + public Builder setDiscoveryEndpointBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + discoveryEndpoint_ = value; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -7483,12 +8440,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.memcache.v1.Instance) } // @@protoc_insertion_point(class_scope:google.cloud.memcache.v1.Instance) private static final com.google.cloud.memcache.v1.Instance DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.memcache.v1.Instance(); } @@ -7497,16 +8454,16 @@ public static com.google.cloud.memcache.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; @@ -7521,6 +8478,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.memcache.v1.Instance getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1/proto-google-cloud-memcache-v1/src/main/java/com/google/cloud/memcache/v1/InstanceName.java b/proto-google-cloud-memcache-v1/src/main/java/com/google/cloud/memcache/v1/InstanceName.java similarity index 100% rename from owl-bot-staging/v1/proto-google-cloud-memcache-v1/src/main/java/com/google/cloud/memcache/v1/InstanceName.java rename to proto-google-cloud-memcache-v1/src/main/java/com/google/cloud/memcache/v1/InstanceName.java diff --git a/owl-bot-staging/v1/proto-google-cloud-memcache-v1/src/main/java/com/google/cloud/memcache/v1/InstanceOrBuilder.java b/proto-google-cloud-memcache-v1/src/main/java/com/google/cloud/memcache/v1/InstanceOrBuilder.java similarity index 77% rename from owl-bot-staging/v1/proto-google-cloud-memcache-v1/src/main/java/com/google/cloud/memcache/v1/InstanceOrBuilder.java rename to proto-google-cloud-memcache-v1/src/main/java/com/google/cloud/memcache/v1/InstanceOrBuilder.java index 41dae566..928feb0a 100644 --- a/owl-bot-staging/v1/proto-google-cloud-memcache-v1/src/main/java/com/google/cloud/memcache/v1/InstanceOrBuilder.java +++ b/proto-google-cloud-memcache-v1/src/main/java/com/google/cloud/memcache/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/memcache/v1/cloud_memcache.proto package com.google.cloud.memcache.v1; -public interface InstanceOrBuilder extends +public interface InstanceOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.memcache.v1.Instance) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Required. Unique name of the resource in this scope including project and
    * location using the form:
@@ -19,10 +37,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:
@@ -34,34 +55,41 @@ 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(); /** + * + * *
    * User provided name for the instance only used for display
    * purposes. Cannot be more than 80 characters.
    * 
* * string display_name = 2; + * * @return The displayName. */ java.lang.String getDisplayName(); /** + * + * *
    * User provided name for the instance only used for display
    * purposes. Cannot be more than 80 characters.
    * 
* * 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.
    * Refer to cloud documentation on labels for more details.
@@ -72,6 +100,8 @@ public interface InstanceOrBuilder extends
    */
   int getLabelsCount();
   /**
+   *
+   *
    * 
    * Resource labels to represent user-provided metadata.
    * Refer to cloud documentation on labels for more details.
@@ -80,15 +110,13 @@ public interface InstanceOrBuilder extends
    *
    * 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.
    * Refer to cloud documentation on labels for more details.
@@ -97,9 +125,10 @@ boolean containsLabels(
    *
    * map<string, string> labels = 3;
    */
-  java.util.Map
-  getLabelsMap();
+  java.util.Map getLabelsMap();
   /**
+   *
+   *
    * 
    * Resource labels to represent user-provided metadata.
    * Refer to cloud documentation on labels for more details.
@@ -110,11 +139,13 @@ 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.
    * Refer to cloud documentation on labels for more details.
@@ -123,11 +154,11 @@ java.lang.String getLabelsOrDefault(
    *
    * map<string, string> labels = 3;
    */
-
-  java.lang.String getLabelsOrThrow(
-      java.lang.String key);
+  java.lang.String getLabelsOrThrow(java.lang.String key);
 
   /**
+   *
+   *
    * 
    * The full name of the Google Compute Engine
    * [network](/compute/docs/networks-and-firewalls#networks) to which the
@@ -136,10 +167,13 @@ java.lang.String getLabelsOrThrow(
    * 
* * string authorized_network = 4; + * * @return The authorizedNetwork. */ java.lang.String getAuthorizedNetwork(); /** + * + * *
    * The full name of the Google Compute Engine
    * [network](/compute/docs/networks-and-firewalls#networks) to which the
@@ -148,12 +182,14 @@ java.lang.String getLabelsOrThrow(
    * 
* * string authorized_network = 4; + * * @return The bytes for authorizedNetwork. */ - com.google.protobuf.ByteString - getAuthorizedNetworkBytes(); + com.google.protobuf.ByteString getAuthorizedNetworkBytes(); /** + * + * *
    * Zones where Memcached nodes should be provisioned in.
    * Memcached nodes will be equally distributed across these zones. If not
@@ -162,11 +198,13 @@ java.lang.String getLabelsOrThrow(
    * 
* * repeated string zones = 5; + * * @return A list containing the zones. */ - java.util.List - getZonesList(); + java.util.List getZonesList(); /** + * + * *
    * Zones where Memcached nodes should be provisioned in.
    * Memcached nodes will be equally distributed across these zones. If not
@@ -175,10 +213,13 @@ java.lang.String getLabelsOrThrow(
    * 
* * repeated string zones = 5; + * * @return The count of zones. */ int getZonesCount(); /** + * + * *
    * Zones where Memcached nodes should be provisioned in.
    * Memcached nodes will be equally distributed across these zones. If not
@@ -187,11 +228,14 @@ java.lang.String getLabelsOrThrow(
    * 
* * repeated string zones = 5; + * * @param index The index of the element to return. * @return The zones at the given index. */ java.lang.String getZones(int index); /** + * + * *
    * Zones where Memcached nodes should be provisioned in.
    * Memcached nodes will be equally distributed across these zones. If not
@@ -200,50 +244,69 @@ java.lang.String getLabelsOrThrow(
    * 
* * repeated string zones = 5; + * * @param index The index of the value to return. * @return The bytes of the zones at the given index. */ - com.google.protobuf.ByteString - getZonesBytes(int index); + com.google.protobuf.ByteString getZonesBytes(int index); /** + * + * *
    * Required. Number of nodes in the Memcached instance.
    * 
* * int32 node_count = 6 [(.google.api.field_behavior) = REQUIRED]; + * * @return The nodeCount. */ int getNodeCount(); /** + * + * *
    * Required. Configuration for Memcached nodes.
    * 
* - * .google.cloud.memcache.v1.Instance.NodeConfig node_config = 7 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.memcache.v1.Instance.NodeConfig node_config = 7 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the nodeConfig field is set. */ boolean hasNodeConfig(); /** + * + * *
    * Required. Configuration for Memcached nodes.
    * 
* - * .google.cloud.memcache.v1.Instance.NodeConfig node_config = 7 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.memcache.v1.Instance.NodeConfig node_config = 7 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The nodeConfig. */ com.google.cloud.memcache.v1.Instance.NodeConfig getNodeConfig(); /** + * + * *
    * Required. Configuration for Memcached nodes.
    * 
* - * .google.cloud.memcache.v1.Instance.NodeConfig node_config = 7 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.memcache.v1.Instance.NodeConfig node_config = 7 [(.google.api.field_behavior) = REQUIRED]; + * */ com.google.cloud.memcache.v1.Instance.NodeConfigOrBuilder getNodeConfigOrBuilder(); /** + * + * *
    * The major version of Memcached software.
    * If not provided, latest supported version will be used. Currently the
@@ -253,10 +316,13 @@ java.lang.String getLabelsOrThrow(
    * 
* * .google.cloud.memcache.v1.MemcacheVersion memcache_version = 9; + * * @return The enum numeric value on the wire for memcacheVersion. */ int getMemcacheVersionValue(); /** + * + * *
    * The major version of Memcached software.
    * If not provided, latest supported version will be used. Currently the
@@ -266,31 +332,40 @@ java.lang.String getLabelsOrThrow(
    * 
* * .google.cloud.memcache.v1.MemcacheVersion memcache_version = 9; + * * @return The memcacheVersion. */ com.google.cloud.memcache.v1.MemcacheVersion getMemcacheVersion(); /** + * + * *
    * Optional: User defined parameters to apply to the memcached process
    * on each node.
    * 
* * .google.cloud.memcache.v1.MemcacheParameters parameters = 11; + * * @return Whether the parameters field is set. */ boolean hasParameters(); /** + * + * *
    * Optional: User defined parameters to apply to the memcached process
    * on each node.
    * 
* * .google.cloud.memcache.v1.MemcacheParameters parameters = 11; + * * @return The parameters. */ com.google.cloud.memcache.v1.MemcacheParameters getParameters(); /** + * + * *
    * Optional: User defined parameters to apply to the memcached process
    * on each node.
@@ -301,128 +376,180 @@ java.lang.String getLabelsOrThrow(
   com.google.cloud.memcache.v1.MemcacheParametersOrBuilder getParametersOrBuilder();
 
   /**
+   *
+   *
    * 
    * Output only. List of Memcached nodes.
    * Refer to [Node] message for more details.
    * 
* - * repeated .google.cloud.memcache.v1.Instance.Node memcache_nodes = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.memcache.v1.Instance.Node memcache_nodes = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - java.util.List - getMemcacheNodesList(); + java.util.List getMemcacheNodesList(); /** + * + * *
    * Output only. List of Memcached nodes.
    * Refer to [Node] message for more details.
    * 
* - * repeated .google.cloud.memcache.v1.Instance.Node memcache_nodes = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.memcache.v1.Instance.Node memcache_nodes = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ com.google.cloud.memcache.v1.Instance.Node getMemcacheNodes(int index); /** + * + * *
    * Output only. List of Memcached nodes.
    * Refer to [Node] message for more details.
    * 
* - * repeated .google.cloud.memcache.v1.Instance.Node memcache_nodes = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.memcache.v1.Instance.Node memcache_nodes = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ int getMemcacheNodesCount(); /** + * + * *
    * Output only. List of Memcached nodes.
    * Refer to [Node] message for more details.
    * 
* - * repeated .google.cloud.memcache.v1.Instance.Node memcache_nodes = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.memcache.v1.Instance.Node memcache_nodes = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - java.util.List + java.util.List getMemcacheNodesOrBuilderList(); /** + * + * *
    * Output only. List of Memcached nodes.
    * Refer to [Node] message for more details.
    * 
* - * repeated .google.cloud.memcache.v1.Instance.Node memcache_nodes = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.memcache.v1.Instance.Node memcache_nodes = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - com.google.cloud.memcache.v1.Instance.NodeOrBuilder getMemcacheNodesOrBuilder( - int index); + com.google.cloud.memcache.v1.Instance.NodeOrBuilder getMemcacheNodesOrBuilder(int index); /** + * + * *
    * 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 time the instance was updated.
    * 
* - * .google.protobuf.Timestamp update_time = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp update_time = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the updateTime field is set. */ boolean hasUpdateTime(); /** + * + * *
    * Output only. The time the instance was updated.
    * 
* - * .google.protobuf.Timestamp update_time = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp update_time = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The updateTime. */ com.google.protobuf.Timestamp getUpdateTime(); /** + * + * *
    * Output only. The time the instance was updated.
    * 
* - * .google.protobuf.Timestamp update_time = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp update_time = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder(); /** + * + * *
    * Output only. The state of this Memcached instance.
    * 
* - * .google.cloud.memcache.v1.Instance.State state = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.memcache.v1.Instance.State state = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The enum numeric value on the wire for state. */ int getStateValue(); /** + * + * *
    * Output only. The state of this Memcached instance.
    * 
* - * .google.cloud.memcache.v1.Instance.State state = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.memcache.v1.Instance.State state = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The state. */ com.google.cloud.memcache.v1.Instance.State getState(); /** + * + * *
    * Output only. The full version of memcached server running on this instance.
    * System automatically determines the full memcached version for an instance
@@ -431,10 +558,13 @@ com.google.cloud.memcache.v1.Instance.NodeOrBuilder getMemcacheNodesOrBuilder(
    * 
* * string memcache_full_version = 18 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The memcacheFullVersion. */ java.lang.String getMemcacheFullVersion(); /** + * + * *
    * Output only. The full version of memcached server running on this instance.
    * System automatically determines the full memcached version for an instance
@@ -443,72 +573,91 @@ com.google.cloud.memcache.v1.Instance.NodeOrBuilder getMemcacheNodesOrBuilder(
    * 
* * string memcache_full_version = 18 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for memcacheFullVersion. */ - com.google.protobuf.ByteString - getMemcacheFullVersionBytes(); + com.google.protobuf.ByteString getMemcacheFullVersionBytes(); /** + * + * *
    * List of messages that describe current statuses of memcached instance.
    * 
* - * repeated .google.cloud.memcache.v1.Instance.InstanceMessage instance_messages = 19; + * repeated .google.cloud.memcache.v1.Instance.InstanceMessage instance_messages = 19; + * */ - java.util.List - getInstanceMessagesList(); + java.util.List getInstanceMessagesList(); /** + * + * *
    * List of messages that describe current statuses of memcached instance.
    * 
* - * repeated .google.cloud.memcache.v1.Instance.InstanceMessage instance_messages = 19; + * repeated .google.cloud.memcache.v1.Instance.InstanceMessage instance_messages = 19; + * */ com.google.cloud.memcache.v1.Instance.InstanceMessage getInstanceMessages(int index); /** + * + * *
    * List of messages that describe current statuses of memcached instance.
    * 
* - * repeated .google.cloud.memcache.v1.Instance.InstanceMessage instance_messages = 19; + * repeated .google.cloud.memcache.v1.Instance.InstanceMessage instance_messages = 19; + * */ int getInstanceMessagesCount(); /** + * + * *
    * List of messages that describe current statuses of memcached instance.
    * 
* - * repeated .google.cloud.memcache.v1.Instance.InstanceMessage instance_messages = 19; + * repeated .google.cloud.memcache.v1.Instance.InstanceMessage instance_messages = 19; + * */ - java.util.List + java.util.List getInstanceMessagesOrBuilderList(); /** + * + * *
    * List of messages that describe current statuses of memcached instance.
    * 
* - * repeated .google.cloud.memcache.v1.Instance.InstanceMessage instance_messages = 19; + * repeated .google.cloud.memcache.v1.Instance.InstanceMessage instance_messages = 19; + * */ com.google.cloud.memcache.v1.Instance.InstanceMessageOrBuilder getInstanceMessagesOrBuilder( int index); /** + * + * *
    * Output only. Endpoint for Discovery API
    * 
* * string discovery_endpoint = 20 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The discoveryEndpoint. */ java.lang.String getDiscoveryEndpoint(); /** + * + * *
    * Output only. Endpoint for Discovery API
    * 
* * string discovery_endpoint = 20 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for discoveryEndpoint. */ - com.google.protobuf.ByteString - getDiscoveryEndpointBytes(); + com.google.protobuf.ByteString getDiscoveryEndpointBytes(); } diff --git a/owl-bot-staging/v1/proto-google-cloud-memcache-v1/src/main/java/com/google/cloud/memcache/v1/ListInstancesRequest.java b/proto-google-cloud-memcache-v1/src/main/java/com/google/cloud/memcache/v1/ListInstancesRequest.java similarity index 71% rename from owl-bot-staging/v1/proto-google-cloud-memcache-v1/src/main/java/com/google/cloud/memcache/v1/ListInstancesRequest.java rename to proto-google-cloud-memcache-v1/src/main/java/com/google/cloud/memcache/v1/ListInstancesRequest.java index b86942d9..172a608b 100644 --- a/owl-bot-staging/v1/proto-google-cloud-memcache-v1/src/main/java/com/google/cloud/memcache/v1/ListInstancesRequest.java +++ b/proto-google-cloud-memcache-v1/src/main/java/com/google/cloud/memcache/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/memcache/v1/cloud_memcache.proto package com.google.cloud.memcache.v1; /** + * + * *
  * Request for [ListInstances][google.cloud.memcache.v1.CloudMemcache.ListInstances].
  * 
* * Protobuf type {@code google.cloud.memcache.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.memcache.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_ = ""; @@ -28,16 +46,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) @@ -56,42 +73,46 @@ 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; - } - case 34: { - java.lang.String s = input.readStringRequireUtf8(); + pageToken_ = s; + break; + } + case 34: + { + java.lang.String s = input.readStringRequireUtf8(); - filter_ = s; - break; - } - case 42: { - java.lang.String s = input.readStringRequireUtf8(); + filter_ = s; + break; + } + case 42: + { + java.lang.String s = input.readStringRequireUtf8(); - orderBy_ = s; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + orderBy_ = s; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -99,36 +120,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.memcache.v1.CloudMemcacheProto.internal_static_google_cloud_memcache_v1_ListInstancesRequest_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.memcache.v1.CloudMemcacheProto + .internal_static_google_cloud_memcache_v1_ListInstancesRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.memcache.v1.CloudMemcacheProto.internal_static_google_cloud_memcache_v1_ListInstancesRequest_fieldAccessorTable + return com.google.cloud.memcache.v1.CloudMemcacheProto + .internal_static_google_cloud_memcache_v1_ListInstancesRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.memcache.v1.ListInstancesRequest.class, com.google.cloud.memcache.v1.ListInstancesRequest.Builder.class); + com.google.cloud.memcache.v1.ListInstancesRequest.class, + com.google.cloud.memcache.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 @@ -137,31 +165,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 { @@ -172,6 +202,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.
@@ -182,6 +214,7 @@ public java.lang.String getParent() {
    * 
* * int32 page_size = 2; + * * @return The pageSize. */ @java.lang.Override @@ -192,12 +225,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 List request,
    * if any.
    * 
* * string page_token = 3; + * * @return The pageToken. */ @java.lang.Override @@ -206,30 +242,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 List 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 { @@ -240,12 +276,15 @@ public java.lang.String getPageToken() { public static final int FILTER_FIELD_NUMBER = 4; private volatile java.lang.Object filter_; /** + * + * *
    * List filter. For example, exclude all Memcached instances with name as
    * my-instance by specifying "name != my-instance".
    * 
* * string filter = 4; + * * @return The filter. */ @java.lang.Override @@ -254,30 +293,30 @@ public java.lang.String getFilter() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); filter_ = s; return s; } } /** + * + * *
    * List filter. For example, exclude all Memcached instances with name as
    * my-instance by specifying "name != my-instance".
    * 
* * string filter = 4; + * * @return The bytes for filter. */ @java.lang.Override - public com.google.protobuf.ByteString - getFilterBytes() { + public com.google.protobuf.ByteString getFilterBytes() { java.lang.Object ref = filter_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); filter_ = b; return b; } else { @@ -288,11 +327,14 @@ public java.lang.String getFilter() { public static final int ORDER_BY_FIELD_NUMBER = 5; private volatile java.lang.Object orderBy_; /** + * + * *
    * Sort results. Supported values are "name", "name desc" or "" (unsorted).
    * 
* * string order_by = 5; + * * @return The orderBy. */ @java.lang.Override @@ -301,29 +343,29 @@ public java.lang.String getOrderBy() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); orderBy_ = s; return s; } } /** + * + * *
    * Sort results. Supported values are "name", "name desc" or "" (unsorted).
    * 
* * string order_by = 5; + * * @return The bytes for orderBy. */ @java.lang.Override - public com.google.protobuf.ByteString - getOrderByBytes() { + public com.google.protobuf.ByteString getOrderByBytes() { java.lang.Object ref = orderBy_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); orderBy_ = b; return b; } else { @@ -332,6 +374,7 @@ public java.lang.String getOrderBy() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -343,8 +386,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.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_); } @@ -373,8 +415,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_); @@ -393,23 +434,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.memcache.v1.ListInstancesRequest)) { return super.equals(obj); } - com.google.cloud.memcache.v1.ListInstancesRequest other = (com.google.cloud.memcache.v1.ListInstancesRequest) obj; - - if (!getParent() - .equals(other.getParent())) return false; - if (getPageSize() - != other.getPageSize()) return false; - if (!getPageToken() - .equals(other.getPageToken())) return false; - if (!getFilter() - .equals(other.getFilter())) return false; - if (!getOrderBy() - .equals(other.getOrderBy())) return false; + com.google.cloud.memcache.v1.ListInstancesRequest other = + (com.google.cloud.memcache.v1.ListInstancesRequest) obj; + + if (!getParent().equals(other.getParent())) return false; + if (getPageSize() != other.getPageSize()) return false; + if (!getPageToken().equals(other.getPageToken())) return false; + if (!getFilter().equals(other.getFilter())) return false; + if (!getOrderBy().equals(other.getOrderBy())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -437,117 +474,126 @@ public int hashCode() { } public static com.google.cloud.memcache.v1.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.memcache.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.memcache.v1.ListInstancesRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.memcache.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.memcache.v1.ListInstancesRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.memcache.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.memcache.v1.ListInstancesRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.memcache.v1.ListInstancesRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.memcache.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.memcache.v1.ListInstancesRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.memcache.v1.ListInstancesRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.memcache.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.memcache.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.memcache.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.memcache.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.memcache.v1.CloudMemcache.ListInstances].
    * 
* * Protobuf type {@code google.cloud.memcache.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.memcache.v1.ListInstancesRequest) com.google.cloud.memcache.v1.ListInstancesRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.memcache.v1.CloudMemcacheProto.internal_static_google_cloud_memcache_v1_ListInstancesRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.memcache.v1.CloudMemcacheProto + .internal_static_google_cloud_memcache_v1_ListInstancesRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.memcache.v1.CloudMemcacheProto.internal_static_google_cloud_memcache_v1_ListInstancesRequest_fieldAccessorTable + return com.google.cloud.memcache.v1.CloudMemcacheProto + .internal_static_google_cloud_memcache_v1_ListInstancesRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.memcache.v1.ListInstancesRequest.class, com.google.cloud.memcache.v1.ListInstancesRequest.Builder.class); + com.google.cloud.memcache.v1.ListInstancesRequest.class, + com.google.cloud.memcache.v1.ListInstancesRequest.Builder.class); } // Construct using com.google.cloud.memcache.v1.ListInstancesRequest.newBuilder() @@ -555,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(); @@ -582,9 +627,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.memcache.v1.CloudMemcacheProto.internal_static_google_cloud_memcache_v1_ListInstancesRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.memcache.v1.CloudMemcacheProto + .internal_static_google_cloud_memcache_v1_ListInstancesRequest_descriptor; } @java.lang.Override @@ -603,7 +648,8 @@ public com.google.cloud.memcache.v1.ListInstancesRequest build() { @java.lang.Override public com.google.cloud.memcache.v1.ListInstancesRequest buildPartial() { - com.google.cloud.memcache.v1.ListInstancesRequest result = new com.google.cloud.memcache.v1.ListInstancesRequest(this); + com.google.cloud.memcache.v1.ListInstancesRequest result = + new com.google.cloud.memcache.v1.ListInstancesRequest(this); result.parent_ = parent_; result.pageSize_ = pageSize_; result.pageToken_ = pageToken_; @@ -617,38 +663,39 @@ public com.google.cloud.memcache.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.memcache.v1.ListInstancesRequest) { - return mergeFrom((com.google.cloud.memcache.v1.ListInstancesRequest)other); + return mergeFrom((com.google.cloud.memcache.v1.ListInstancesRequest) other); } else { super.mergeFrom(other); return this; @@ -656,7 +703,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.memcache.v1.ListInstancesRequest other) { - if (other == com.google.cloud.memcache.v1.ListInstancesRequest.getDefaultInstance()) return this; + if (other == com.google.cloud.memcache.v1.ListInstancesRequest.getDefaultInstance()) + return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; onChanged(); @@ -695,7 +743,8 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.memcache.v1.ListInstancesRequest) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.memcache.v1.ListInstancesRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -707,20 +756,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; @@ -729,22 +782,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 { @@ -752,67 +808,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.
@@ -823,6 +894,7 @@ public Builder setParentBytes(
      * 
* * int32 page_size = 2; + * * @return The pageSize. */ @java.lang.Override @@ -830,6 +902,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.
@@ -840,16 +914,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.
@@ -860,10 +937,11 @@ public Builder setPageSize(int value) {
      * 
* * int32 page_size = 2; + * * @return This builder for chaining. */ public Builder clearPageSize() { - + pageSize_ = 0; onChanged(); return this; @@ -871,19 +949,21 @@ public Builder clearPageSize() { private java.lang.Object pageToken_ = ""; /** + * + * *
      * The next_page_token value returned from a previous List 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; @@ -892,21 +972,22 @@ public java.lang.String getPageToken() { } } /** + * + * *
      * The next_page_token value returned from a previous List 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 { @@ -914,57 +995,64 @@ public java.lang.String getPageToken() { } } /** + * + * *
      * The next_page_token value returned from a previous List 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 List 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 List 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; @@ -972,19 +1060,21 @@ public Builder setPageTokenBytes( private java.lang.Object filter_ = ""; /** + * + * *
      * List filter. For example, exclude all Memcached instances with name as
      * my-instance by specifying "name != my-instance".
      * 
* * string filter = 4; + * * @return The filter. */ public java.lang.String getFilter() { java.lang.Object ref = filter_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); filter_ = s; return s; @@ -993,21 +1083,22 @@ public java.lang.String getFilter() { } } /** + * + * *
      * List filter. For example, exclude all Memcached instances with name as
      * my-instance by specifying "name != my-instance".
      * 
* * string filter = 4; + * * @return The bytes for filter. */ - public com.google.protobuf.ByteString - getFilterBytes() { + public com.google.protobuf.ByteString getFilterBytes() { java.lang.Object ref = filter_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); filter_ = b; return b; } else { @@ -1015,57 +1106,64 @@ public java.lang.String getFilter() { } } /** + * + * *
      * List filter. For example, exclude all Memcached instances with name as
      * my-instance by specifying "name != my-instance".
      * 
* * string filter = 4; + * * @param value The filter to set. * @return This builder for chaining. */ - public Builder setFilter( - java.lang.String value) { + public Builder setFilter(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + filter_ = value; onChanged(); return this; } /** + * + * *
      * List filter. For example, exclude all Memcached instances with name as
      * my-instance by specifying "name != my-instance".
      * 
* * string filter = 4; + * * @return This builder for chaining. */ public Builder clearFilter() { - + filter_ = getDefaultInstance().getFilter(); onChanged(); return this; } /** + * + * *
      * List filter. For example, exclude all Memcached instances with name as
      * my-instance by specifying "name != my-instance".
      * 
* * string filter = 4; + * * @param value The bytes for filter to set. * @return This builder for chaining. */ - public Builder setFilterBytes( - com.google.protobuf.ByteString value) { + public Builder setFilterBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + filter_ = value; onChanged(); return this; @@ -1073,18 +1171,20 @@ public Builder setFilterBytes( private java.lang.Object orderBy_ = ""; /** + * + * *
      * Sort results. Supported values are "name", "name desc" or "" (unsorted).
      * 
* * string order_by = 5; + * * @return The orderBy. */ public java.lang.String getOrderBy() { java.lang.Object ref = orderBy_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); orderBy_ = s; return s; @@ -1093,20 +1193,21 @@ public java.lang.String getOrderBy() { } } /** + * + * *
      * Sort results. Supported values are "name", "name desc" or "" (unsorted).
      * 
* * string order_by = 5; + * * @return The bytes for orderBy. */ - public com.google.protobuf.ByteString - getOrderByBytes() { + public com.google.protobuf.ByteString getOrderByBytes() { java.lang.Object ref = orderBy_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); orderBy_ = b; return b; } else { @@ -1114,61 +1215,68 @@ public java.lang.String getOrderBy() { } } /** + * + * *
      * Sort results. Supported values are "name", "name desc" or "" (unsorted).
      * 
* * string order_by = 5; + * * @param value The orderBy to set. * @return This builder for chaining. */ - public Builder setOrderBy( - java.lang.String value) { + public Builder setOrderBy(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + orderBy_ = value; onChanged(); return this; } /** + * + * *
      * Sort results. Supported values are "name", "name desc" or "" (unsorted).
      * 
* * string order_by = 5; + * * @return This builder for chaining. */ public Builder clearOrderBy() { - + orderBy_ = getDefaultInstance().getOrderBy(); onChanged(); return this; } /** + * + * *
      * Sort results. Supported values are "name", "name desc" or "" (unsorted).
      * 
* * string order_by = 5; + * * @param value The bytes for orderBy to set. * @return This builder for chaining. */ - public Builder setOrderByBytes( - com.google.protobuf.ByteString value) { + public Builder setOrderByBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + orderBy_ = value; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1178,12 +1286,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.memcache.v1.ListInstancesRequest) } // @@protoc_insertion_point(class_scope:google.cloud.memcache.v1.ListInstancesRequest) private static final com.google.cloud.memcache.v1.ListInstancesRequest DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.memcache.v1.ListInstancesRequest(); } @@ -1192,16 +1300,16 @@ public static com.google.cloud.memcache.v1.ListInstancesRequest getDefaultInstan 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; @@ -1216,6 +1324,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.memcache.v1.ListInstancesRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1/proto-google-cloud-memcache-v1/src/main/java/com/google/cloud/memcache/v1/ListInstancesRequestOrBuilder.java b/proto-google-cloud-memcache-v1/src/main/java/com/google/cloud/memcache/v1/ListInstancesRequestOrBuilder.java similarity index 68% rename from owl-bot-staging/v1/proto-google-cloud-memcache-v1/src/main/java/com/google/cloud/memcache/v1/ListInstancesRequestOrBuilder.java rename to proto-google-cloud-memcache-v1/src/main/java/com/google/cloud/memcache/v1/ListInstancesRequestOrBuilder.java index 211fc2dd..0b1bf027 100644 --- a/owl-bot-staging/v1/proto-google-cloud-memcache-v1/src/main/java/com/google/cloud/memcache/v1/ListInstancesRequestOrBuilder.java +++ b/proto-google-cloud-memcache-v1/src/main/java/com/google/cloud/memcache/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/memcache/v1/cloud_memcache.proto package com.google.cloud.memcache.v1; -public interface ListInstancesRequestOrBuilder extends +public interface ListInstancesRequestOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.memcache.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,71 +69,87 @@ public interface ListInstancesRequestOrBuilder extends
    * 
* * int32 page_size = 2; + * * @return The pageSize. */ int getPageSize(); /** + * + * *
    * The next_page_token value returned from a previous List request,
    * if any.
    * 
* * string page_token = 3; + * * @return The pageToken. */ java.lang.String getPageToken(); /** + * + * *
    * The next_page_token value returned from a previous List request,
    * if any.
    * 
* * string page_token = 3; + * * @return The bytes for pageToken. */ - com.google.protobuf.ByteString - getPageTokenBytes(); + com.google.protobuf.ByteString getPageTokenBytes(); /** + * + * *
    * List filter. For example, exclude all Memcached instances with name as
    * my-instance by specifying "name != my-instance".
    * 
* * string filter = 4; + * * @return The filter. */ java.lang.String getFilter(); /** + * + * *
    * List filter. For example, exclude all Memcached instances with name as
    * my-instance by specifying "name != my-instance".
    * 
* * string filter = 4; + * * @return The bytes for filter. */ - com.google.protobuf.ByteString - getFilterBytes(); + com.google.protobuf.ByteString getFilterBytes(); /** + * + * *
    * Sort results. Supported values are "name", "name desc" or "" (unsorted).
    * 
* * string order_by = 5; + * * @return The orderBy. */ java.lang.String getOrderBy(); /** + * + * *
    * Sort results. Supported values are "name", "name desc" or "" (unsorted).
    * 
* * string order_by = 5; + * * @return The bytes for orderBy. */ - com.google.protobuf.ByteString - getOrderByBytes(); + com.google.protobuf.ByteString getOrderByBytes(); } diff --git a/owl-bot-staging/v1/proto-google-cloud-memcache-v1/src/main/java/com/google/cloud/memcache/v1/ListInstancesResponse.java b/proto-google-cloud-memcache-v1/src/main/java/com/google/cloud/memcache/v1/ListInstancesResponse.java similarity index 76% rename from owl-bot-staging/v1/proto-google-cloud-memcache-v1/src/main/java/com/google/cloud/memcache/v1/ListInstancesResponse.java rename to proto-google-cloud-memcache-v1/src/main/java/com/google/cloud/memcache/v1/ListInstancesResponse.java index 3ae9d178..442d8f04 100644 --- a/owl-bot-staging/v1/proto-google-cloud-memcache-v1/src/main/java/com/google/cloud/memcache/v1/ListInstancesResponse.java +++ b/proto-google-cloud-memcache-v1/src/main/java/com/google/cloud/memcache/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/memcache/v1/cloud_memcache.proto package com.google.cloud.memcache.v1; /** + * + * *
  * Response for [ListInstances][google.cloud.memcache.v1.CloudMemcache.ListInstances].
  * 
* * Protobuf type {@code google.cloud.memcache.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.memcache.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.memcache.v1.Instance.parser(), extensionRegistry)); + break; } - instances_.add( - input.readMessage(com.google.cloud.memcache.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.memcache.v1.CloudMemcacheProto.internal_static_google_cloud_memcache_v1_ListInstancesResponse_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.memcache.v1.CloudMemcacheProto + .internal_static_google_cloud_memcache_v1_ListInstancesResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.memcache.v1.CloudMemcacheProto.internal_static_google_cloud_memcache_v1_ListInstancesResponse_fieldAccessorTable + return com.google.cloud.memcache.v1.CloudMemcacheProto + .internal_static_google_cloud_memcache_v1_ListInstancesResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.memcache.v1.ListInstancesResponse.class, com.google.cloud.memcache.v1.ListInstancesResponse.Builder.class); + com.google.cloud.memcache.v1.ListInstancesResponse.class, + com.google.cloud.memcache.v1.ListInstancesResponse.Builder.class); } public static final int INSTANCES_FIELD_NUMBER = 1; private java.util.List instances_; /** + * + * *
    * A list of Memcached instances in the project in the specified location,
    * or across all locations.
@@ -137,6 +162,8 @@ public java.util.List getInstancesList()
     return instances_;
   }
   /**
+   *
+   *
    * 
    * A list of Memcached instances in the project in the specified location,
    * or across all locations.
@@ -147,11 +174,13 @@ public java.util.List getInstancesList()
    * repeated .google.cloud.memcache.v1.Instance instances = 1;
    */
   @java.lang.Override
-  public java.util.List 
+  public java.util.List
       getInstancesOrBuilderList() {
     return instances_;
   }
   /**
+   *
+   *
    * 
    * A list of Memcached instances in the project in the specified location,
    * or across all locations.
@@ -166,6 +195,8 @@ public int getInstancesCount() {
     return instances_.size();
   }
   /**
+   *
+   *
    * 
    * A list of Memcached instances in the project in the specified location,
    * or across all locations.
@@ -180,6 +211,8 @@ public com.google.cloud.memcache.v1.Instance getInstances(int index) {
     return instances_.get(index);
   }
   /**
+   *
+   *
    * 
    * A list of Memcached instances in the project in the specified location,
    * or across all locations.
@@ -190,20 +223,22 @@ public com.google.cloud.memcache.v1.Instance getInstances(int index) {
    * repeated .google.cloud.memcache.v1.Instance instances = 1;
    */
   @java.lang.Override
-  public com.google.cloud.memcache.v1.InstanceOrBuilder getInstancesOrBuilder(
-      int index) {
+  public com.google.cloud.memcache.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 @@ -212,30 +247,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 { @@ -246,34 +281,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. */ @@ -281,20 +324,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; @@ -306,8 +352,7 @@ public final boolean isInitialized() { } @java.lang.Override - 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)); } @@ -327,8 +372,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_); @@ -349,19 +393,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.memcache.v1.ListInstancesResponse)) { return super.equals(obj); } - com.google.cloud.memcache.v1.ListInstancesResponse other = (com.google.cloud.memcache.v1.ListInstancesResponse) obj; + com.google.cloud.memcache.v1.ListInstancesResponse other = + (com.google.cloud.memcache.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; } @@ -389,117 +431,126 @@ public int hashCode() { } public static com.google.cloud.memcache.v1.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.memcache.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.memcache.v1.ListInstancesResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.memcache.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.memcache.v1.ListInstancesResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.memcache.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.memcache.v1.ListInstancesResponse parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.memcache.v1.ListInstancesResponse parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.memcache.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.memcache.v1.ListInstancesResponse parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.memcache.v1.ListInstancesResponse parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.memcache.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.memcache.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.memcache.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.memcache.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.memcache.v1.CloudMemcache.ListInstances].
    * 
* * Protobuf type {@code google.cloud.memcache.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.memcache.v1.ListInstancesResponse) com.google.cloud.memcache.v1.ListInstancesResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.memcache.v1.CloudMemcacheProto.internal_static_google_cloud_memcache_v1_ListInstancesResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.memcache.v1.CloudMemcacheProto + .internal_static_google_cloud_memcache_v1_ListInstancesResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.memcache.v1.CloudMemcacheProto.internal_static_google_cloud_memcache_v1_ListInstancesResponse_fieldAccessorTable + return com.google.cloud.memcache.v1.CloudMemcacheProto + .internal_static_google_cloud_memcache_v1_ListInstancesResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.memcache.v1.ListInstancesResponse.class, com.google.cloud.memcache.v1.ListInstancesResponse.Builder.class); + com.google.cloud.memcache.v1.ListInstancesResponse.class, + com.google.cloud.memcache.v1.ListInstancesResponse.Builder.class); } // Construct using com.google.cloud.memcache.v1.ListInstancesResponse.newBuilder() @@ -507,17 +558,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(); @@ -535,9 +586,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.memcache.v1.CloudMemcacheProto.internal_static_google_cloud_memcache_v1_ListInstancesResponse_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.memcache.v1.CloudMemcacheProto + .internal_static_google_cloud_memcache_v1_ListInstancesResponse_descriptor; } @java.lang.Override @@ -556,7 +607,8 @@ public com.google.cloud.memcache.v1.ListInstancesResponse build() { @java.lang.Override public com.google.cloud.memcache.v1.ListInstancesResponse buildPartial() { - com.google.cloud.memcache.v1.ListInstancesResponse result = new com.google.cloud.memcache.v1.ListInstancesResponse(this); + com.google.cloud.memcache.v1.ListInstancesResponse result = + new com.google.cloud.memcache.v1.ListInstancesResponse(this); int from_bitField0_ = bitField0_; if (instancesBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { @@ -581,38 +633,39 @@ public com.google.cloud.memcache.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.memcache.v1.ListInstancesResponse) { - return mergeFrom((com.google.cloud.memcache.v1.ListInstancesResponse)other); + return mergeFrom((com.google.cloud.memcache.v1.ListInstancesResponse) other); } else { super.mergeFrom(other); return this; @@ -620,7 +673,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.memcache.v1.ListInstancesResponse other) { - if (other == com.google.cloud.memcache.v1.ListInstancesResponse.getDefaultInstance()) return this; + if (other == com.google.cloud.memcache.v1.ListInstancesResponse.getDefaultInstance()) + return this; if (instancesBuilder_ == null) { if (!other.instances_.isEmpty()) { if (instances_.isEmpty()) { @@ -639,9 +693,10 @@ public Builder mergeFrom(com.google.cloud.memcache.v1.ListInstancesResponse othe 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_); } @@ -680,7 +735,8 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.memcache.v1.ListInstancesResponse) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.memcache.v1.ListInstancesResponse) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -689,21 +745,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.memcache.v1.Instance, com.google.cloud.memcache.v1.Instance.Builder, com.google.cloud.memcache.v1.InstanceOrBuilder> instancesBuilder_; + com.google.cloud.memcache.v1.Instance, + com.google.cloud.memcache.v1.Instance.Builder, + com.google.cloud.memcache.v1.InstanceOrBuilder> + instancesBuilder_; /** + * + * *
      * A list of Memcached instances in the project in the specified location,
      * or across all locations.
@@ -721,6 +784,8 @@ public java.util.List getInstancesList()
       }
     }
     /**
+     *
+     *
      * 
      * A list of Memcached instances in the project in the specified location,
      * or across all locations.
@@ -738,6 +803,8 @@ public int getInstancesCount() {
       }
     }
     /**
+     *
+     *
      * 
      * A list of Memcached instances in the project in the specified location,
      * or across all locations.
@@ -755,6 +822,8 @@ public com.google.cloud.memcache.v1.Instance getInstances(int index) {
       }
     }
     /**
+     *
+     *
      * 
      * A list of Memcached instances in the project in the specified location,
      * or across all locations.
@@ -764,8 +833,7 @@ public com.google.cloud.memcache.v1.Instance getInstances(int index) {
      *
      * repeated .google.cloud.memcache.v1.Instance instances = 1;
      */
-    public Builder setInstances(
-        int index, com.google.cloud.memcache.v1.Instance value) {
+    public Builder setInstances(int index, com.google.cloud.memcache.v1.Instance value) {
       if (instancesBuilder_ == null) {
         if (value == null) {
           throw new NullPointerException();
@@ -779,6 +847,8 @@ public Builder setInstances(
       return this;
     }
     /**
+     *
+     *
      * 
      * A list of Memcached instances in the project in the specified location,
      * or across all locations.
@@ -800,6 +870,8 @@ public Builder setInstances(
       return this;
     }
     /**
+     *
+     *
      * 
      * A list of Memcached instances in the project in the specified location,
      * or across all locations.
@@ -823,6 +895,8 @@ public Builder addInstances(com.google.cloud.memcache.v1.Instance value) {
       return this;
     }
     /**
+     *
+     *
      * 
      * A list of Memcached instances in the project in the specified location,
      * or across all locations.
@@ -832,8 +906,7 @@ public Builder addInstances(com.google.cloud.memcache.v1.Instance value) {
      *
      * repeated .google.cloud.memcache.v1.Instance instances = 1;
      */
-    public Builder addInstances(
-        int index, com.google.cloud.memcache.v1.Instance value) {
+    public Builder addInstances(int index, com.google.cloud.memcache.v1.Instance value) {
       if (instancesBuilder_ == null) {
         if (value == null) {
           throw new NullPointerException();
@@ -847,6 +920,8 @@ public Builder addInstances(
       return this;
     }
     /**
+     *
+     *
      * 
      * A list of Memcached instances in the project in the specified location,
      * or across all locations.
@@ -856,8 +931,7 @@ public Builder addInstances(
      *
      * repeated .google.cloud.memcache.v1.Instance instances = 1;
      */
-    public Builder addInstances(
-        com.google.cloud.memcache.v1.Instance.Builder builderForValue) {
+    public Builder addInstances(com.google.cloud.memcache.v1.Instance.Builder builderForValue) {
       if (instancesBuilder_ == null) {
         ensureInstancesIsMutable();
         instances_.add(builderForValue.build());
@@ -868,6 +942,8 @@ public Builder addInstances(
       return this;
     }
     /**
+     *
+     *
      * 
      * A list of Memcached instances in the project in the specified location,
      * or across all locations.
@@ -889,6 +965,8 @@ public Builder addInstances(
       return this;
     }
     /**
+     *
+     *
      * 
      * A list of Memcached instances in the project in the specified location,
      * or across all locations.
@@ -902,8 +980,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);
@@ -911,6 +988,8 @@ public Builder addAllInstances(
       return this;
     }
     /**
+     *
+     *
      * 
      * A list of Memcached instances in the project in the specified location,
      * or across all locations.
@@ -931,6 +1010,8 @@ public Builder clearInstances() {
       return this;
     }
     /**
+     *
+     *
      * 
      * A list of Memcached instances in the project in the specified location,
      * or across all locations.
@@ -951,6 +1032,8 @@ public Builder removeInstances(int index) {
       return this;
     }
     /**
+     *
+     *
      * 
      * A list of Memcached instances in the project in the specified location,
      * or across all locations.
@@ -960,11 +1043,12 @@ public Builder removeInstances(int index) {
      *
      * repeated .google.cloud.memcache.v1.Instance instances = 1;
      */
-    public com.google.cloud.memcache.v1.Instance.Builder getInstancesBuilder(
-        int index) {
+    public com.google.cloud.memcache.v1.Instance.Builder getInstancesBuilder(int index) {
       return getInstancesFieldBuilder().getBuilder(index);
     }
     /**
+     *
+     *
      * 
      * A list of Memcached instances in the project in the specified location,
      * or across all locations.
@@ -974,14 +1058,16 @@ public com.google.cloud.memcache.v1.Instance.Builder getInstancesBuilder(
      *
      * repeated .google.cloud.memcache.v1.Instance instances = 1;
      */
-    public com.google.cloud.memcache.v1.InstanceOrBuilder getInstancesOrBuilder(
-        int index) {
+    public com.google.cloud.memcache.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 Memcached instances in the project in the specified location,
      * or across all locations.
@@ -991,8 +1077,8 @@ public com.google.cloud.memcache.v1.InstanceOrBuilder getInstancesOrBuilder(
      *
      * repeated .google.cloud.memcache.v1.Instance instances = 1;
      */
-    public java.util.List 
-         getInstancesOrBuilderList() {
+    public java.util.List
+        getInstancesOrBuilderList() {
       if (instancesBuilder_ != null) {
         return instancesBuilder_.getMessageOrBuilderList();
       } else {
@@ -1000,6 +1086,8 @@ public com.google.cloud.memcache.v1.InstanceOrBuilder getInstancesOrBuilder(
       }
     }
     /**
+     *
+     *
      * 
      * A list of Memcached instances in the project in the specified location,
      * or across all locations.
@@ -1010,10 +1098,12 @@ public com.google.cloud.memcache.v1.InstanceOrBuilder getInstancesOrBuilder(
      * repeated .google.cloud.memcache.v1.Instance instances = 1;
      */
     public com.google.cloud.memcache.v1.Instance.Builder addInstancesBuilder() {
-      return getInstancesFieldBuilder().addBuilder(
-          com.google.cloud.memcache.v1.Instance.getDefaultInstance());
+      return getInstancesFieldBuilder()
+          .addBuilder(com.google.cloud.memcache.v1.Instance.getDefaultInstance());
     }
     /**
+     *
+     *
      * 
      * A list of Memcached instances in the project in the specified location,
      * or across all locations.
@@ -1023,12 +1113,13 @@ public com.google.cloud.memcache.v1.Instance.Builder addInstancesBuilder() {
      *
      * repeated .google.cloud.memcache.v1.Instance instances = 1;
      */
-    public com.google.cloud.memcache.v1.Instance.Builder addInstancesBuilder(
-        int index) {
-      return getInstancesFieldBuilder().addBuilder(
-          index, com.google.cloud.memcache.v1.Instance.getDefaultInstance());
+    public com.google.cloud.memcache.v1.Instance.Builder addInstancesBuilder(int index) {
+      return getInstancesFieldBuilder()
+          .addBuilder(index, com.google.cloud.memcache.v1.Instance.getDefaultInstance());
     }
     /**
+     *
+     *
      * 
      * A list of Memcached instances in the project in the specified location,
      * or across all locations.
@@ -1038,20 +1129,22 @@ public com.google.cloud.memcache.v1.Instance.Builder addInstancesBuilder(
      *
      * repeated .google.cloud.memcache.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.memcache.v1.Instance, com.google.cloud.memcache.v1.Instance.Builder, com.google.cloud.memcache.v1.InstanceOrBuilder> 
+            com.google.cloud.memcache.v1.Instance,
+            com.google.cloud.memcache.v1.Instance.Builder,
+            com.google.cloud.memcache.v1.InstanceOrBuilder>
         getInstancesFieldBuilder() {
       if (instancesBuilder_ == null) {
-        instancesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
-            com.google.cloud.memcache.v1.Instance, com.google.cloud.memcache.v1.Instance.Builder, com.google.cloud.memcache.v1.InstanceOrBuilder>(
-                instances_,
-                ((bitField0_ & 0x00000001) != 0),
-                getParentForChildren(),
-                isClean());
+        instancesBuilder_ =
+            new com.google.protobuf.RepeatedFieldBuilderV3<
+                com.google.cloud.memcache.v1.Instance,
+                com.google.cloud.memcache.v1.Instance.Builder,
+                com.google.cloud.memcache.v1.InstanceOrBuilder>(
+                instances_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean());
         instances_ = null;
       }
       return instancesBuilder_;
@@ -1059,19 +1152,21 @@ public com.google.cloud.memcache.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; @@ -1080,21 +1175,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 { @@ -1102,98 +1198,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. */ @@ -1201,80 +1314,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() { @@ -1284,28 +1407,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); } @@ -1315,12 +1440,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.memcache.v1.ListInstancesResponse) } // @@protoc_insertion_point(class_scope:google.cloud.memcache.v1.ListInstancesResponse) private static final com.google.cloud.memcache.v1.ListInstancesResponse DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.memcache.v1.ListInstancesResponse(); } @@ -1329,16 +1454,16 @@ public static com.google.cloud.memcache.v1.ListInstancesResponse getDefaultInsta 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; @@ -1353,6 +1478,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.memcache.v1.ListInstancesResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1/proto-google-cloud-memcache-v1/src/main/java/com/google/cloud/memcache/v1/ListInstancesResponseOrBuilder.java b/proto-google-cloud-memcache-v1/src/main/java/com/google/cloud/memcache/v1/ListInstancesResponseOrBuilder.java similarity index 78% rename from owl-bot-staging/v1/proto-google-cloud-memcache-v1/src/main/java/com/google/cloud/memcache/v1/ListInstancesResponseOrBuilder.java rename to proto-google-cloud-memcache-v1/src/main/java/com/google/cloud/memcache/v1/ListInstancesResponseOrBuilder.java index 48fec150..aeb159bf 100644 --- a/owl-bot-staging/v1/proto-google-cloud-memcache-v1/src/main/java/com/google/cloud/memcache/v1/ListInstancesResponseOrBuilder.java +++ b/proto-google-cloud-memcache-v1/src/main/java/com/google/cloud/memcache/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/memcache/v1/cloud_memcache.proto package com.google.cloud.memcache.v1; -public interface ListInstancesResponseOrBuilder extends +public interface ListInstancesResponseOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.memcache.v1.ListInstancesResponse) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * A list of Memcached instances in the project in the specified location,
    * or across all locations.
@@ -17,9 +35,10 @@ public interface ListInstancesResponseOrBuilder extends
    *
    * repeated .google.cloud.memcache.v1.Instance instances = 1;
    */
-  java.util.List 
-      getInstancesList();
+  java.util.List getInstancesList();
   /**
+   *
+   *
    * 
    * A list of Memcached instances in the project in the specified location,
    * or across all locations.
@@ -31,6 +50,8 @@ public interface ListInstancesResponseOrBuilder extends
    */
   com.google.cloud.memcache.v1.Instance getInstances(int index);
   /**
+   *
+   *
    * 
    * A list of Memcached instances in the project in the specified location,
    * or across all locations.
@@ -42,6 +63,8 @@ public interface ListInstancesResponseOrBuilder extends
    */
   int getInstancesCount();
   /**
+   *
+   *
    * 
    * A list of Memcached instances in the project in the specified location,
    * or across all locations.
@@ -51,9 +74,11 @@ public interface ListInstancesResponseOrBuilder extends
    *
    * repeated .google.cloud.memcache.v1.Instance instances = 1;
    */
-  java.util.List 
+  java.util.List
       getInstancesOrBuilderList();
   /**
+   *
+   *
    * 
    * A list of Memcached instances in the project in the specified location,
    * or across all locations.
@@ -63,69 +88,83 @@ public interface ListInstancesResponseOrBuilder extends
    *
    * repeated .google.cloud.memcache.v1.Instance instances = 1;
    */
-  com.google.cloud.memcache.v1.InstanceOrBuilder getInstancesOrBuilder(
-      int index);
+  com.google.cloud.memcache.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-memcache-v1/src/main/java/com/google/cloud/memcache/v1/LocationName.java b/proto-google-cloud-memcache-v1/src/main/java/com/google/cloud/memcache/v1/LocationName.java similarity index 100% rename from owl-bot-staging/v1/proto-google-cloud-memcache-v1/src/main/java/com/google/cloud/memcache/v1/LocationName.java rename to proto-google-cloud-memcache-v1/src/main/java/com/google/cloud/memcache/v1/LocationName.java diff --git a/owl-bot-staging/v1/proto-google-cloud-memcache-v1/src/main/java/com/google/cloud/memcache/v1/MemcacheParameters.java b/proto-google-cloud-memcache-v1/src/main/java/com/google/cloud/memcache/v1/MemcacheParameters.java similarity index 64% rename from owl-bot-staging/v1/proto-google-cloud-memcache-v1/src/main/java/com/google/cloud/memcache/v1/MemcacheParameters.java rename to proto-google-cloud-memcache-v1/src/main/java/com/google/cloud/memcache/v1/MemcacheParameters.java index 0768f264..1b1eed01 100644 --- a/owl-bot-staging/v1/proto-google-cloud-memcache-v1/src/main/java/com/google/cloud/memcache/v1/MemcacheParameters.java +++ b/proto-google-cloud-memcache-v1/src/main/java/com/google/cloud/memcache/v1/MemcacheParameters.java @@ -1,36 +1,49 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/memcache/v1/cloud_memcache.proto package com.google.cloud.memcache.v1; -/** - * Protobuf type {@code google.cloud.memcache.v1.MemcacheParameters} - */ -public final class MemcacheParameters extends - com.google.protobuf.GeneratedMessageV3 implements +/** Protobuf type {@code google.cloud.memcache.v1.MemcacheParameters} */ +public final class MemcacheParameters extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.memcache.v1.MemcacheParameters) MemcacheParametersOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use MemcacheParameters.newBuilder() to construct. private MemcacheParameters(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private MemcacheParameters() { id_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new MemcacheParameters(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private MemcacheParameters( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -50,32 +63,33 @@ private MemcacheParameters( 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 26: { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - params_ = com.google.protobuf.MapField.newMapField( - ParamsDefaultEntryHolder.defaultEntry); - mutable_bitField0_ |= 0x00000001; + id_ = s; + break; } - com.google.protobuf.MapEntry - params__ = input.readMessage( - ParamsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); - params_.getMutableMap().put( - params__.getKey(), params__.getValue()); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + case 26: + { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + params_ = + com.google.protobuf.MapField.newMapField(ParamsDefaultEntryHolder.defaultEntry); + mutable_bitField0_ |= 0x00000001; + } + com.google.protobuf.MapEntry params__ = + input.readMessage( + ParamsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); + params_.getMutableMap().put(params__.getKey(), params__.getValue()); + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -83,41 +97,44 @@ private MemcacheParameters( } 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.memcache.v1.CloudMemcacheProto.internal_static_google_cloud_memcache_v1_MemcacheParameters_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.memcache.v1.CloudMemcacheProto + .internal_static_google_cloud_memcache_v1_MemcacheParameters_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 internalGetParams(); 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.memcache.v1.CloudMemcacheProto.internal_static_google_cloud_memcache_v1_MemcacheParameters_fieldAccessorTable + return com.google.cloud.memcache.v1.CloudMemcacheProto + .internal_static_google_cloud_memcache_v1_MemcacheParameters_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.memcache.v1.MemcacheParameters.class, com.google.cloud.memcache.v1.MemcacheParameters.Builder.class); + com.google.cloud.memcache.v1.MemcacheParameters.class, + com.google.cloud.memcache.v1.MemcacheParameters.Builder.class); } public static final int ID_FIELD_NUMBER = 1; private volatile java.lang.Object id_; /** + * + * *
    * Output only. The unique ID associated with this set of parameters. Users
    * can use this id to determine if the parameters associated with the instance
@@ -126,6 +143,7 @@ protected com.google.protobuf.MapField internalGetMapField(
    * 
* * string id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The id. */ @java.lang.Override @@ -134,14 +152,15 @@ 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. The unique ID associated with this set of parameters. Users
    * can use this id to determine if the parameters associated with the instance
@@ -150,16 +169,15 @@ public java.lang.String getId() {
    * 
* * 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 { @@ -168,24 +186,23 @@ public java.lang.String getId() { } public static final int PARAMS_FIELD_NUMBER = 3; + private static final class ParamsDefaultEntryHolder { - static final com.google.protobuf.MapEntry< - java.lang.String, java.lang.String> defaultEntry = - com.google.protobuf.MapEntry - .newDefaultInstance( - com.google.cloud.memcache.v1.CloudMemcacheProto.internal_static_google_cloud_memcache_v1_MemcacheParameters_ParamsEntry_descriptor, - com.google.protobuf.WireFormat.FieldType.STRING, - "", - com.google.protobuf.WireFormat.FieldType.STRING, - ""); - } - private com.google.protobuf.MapField< - java.lang.String, java.lang.String> params_; - private com.google.protobuf.MapField - internalGetParams() { + static final com.google.protobuf.MapEntry defaultEntry = + com.google.protobuf.MapEntry.newDefaultInstance( + com.google.cloud.memcache.v1.CloudMemcacheProto + .internal_static_google_cloud_memcache_v1_MemcacheParameters_ParamsEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.STRING, + "", + com.google.protobuf.WireFormat.FieldType.STRING, + ""); + } + + private com.google.protobuf.MapField params_; + + private com.google.protobuf.MapField internalGetParams() { if (params_ == null) { - return com.google.protobuf.MapField.emptyMapField( - ParamsDefaultEntryHolder.defaultEntry); + return com.google.protobuf.MapField.emptyMapField(ParamsDefaultEntryHolder.defaultEntry); } return params_; } @@ -194,28 +211,30 @@ public int getParamsCount() { return internalGetParams().getMap().size(); } /** + * + * *
    * User defined set of parameters to use in the memcached process.
    * 
* * map<string, string> params = 3; */ - @java.lang.Override - public boolean containsParams( - java.lang.String key) { - if (key == null) { throw new NullPointerException("map key"); } + public boolean containsParams(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } return internalGetParams().getMap().containsKey(key); } - /** - * Use {@link #getParamsMap()} instead. - */ + /** Use {@link #getParamsMap()} instead. */ @java.lang.Override @java.lang.Deprecated public java.util.Map getParams() { return getParamsMap(); } /** + * + * *
    * User defined set of parameters to use in the memcached process.
    * 
@@ -223,11 +242,12 @@ public java.util.Map getParams() { * map<string, string> params = 3; */ @java.lang.Override - public java.util.Map getParamsMap() { return internalGetParams().getMap(); } /** + * + * *
    * User defined set of parameters to use in the memcached process.
    * 
@@ -235,16 +255,16 @@ public java.util.Map getParamsMap() { * map<string, string> params = 3; */ @java.lang.Override - - public java.lang.String getParamsOrDefault( - java.lang.String key, - java.lang.String defaultValue) { - if (key == null) { throw new NullPointerException("map key"); } - java.util.Map map = - internalGetParams().getMap(); + public java.lang.String getParamsOrDefault(java.lang.String key, java.lang.String defaultValue) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = internalGetParams().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** + * + * *
    * User defined set of parameters to use in the memcached process.
    * 
@@ -252,12 +272,11 @@ public java.lang.String getParamsOrDefault( * map<string, string> params = 3; */ @java.lang.Override - - public java.lang.String getParamsOrThrow( - java.lang.String key) { - if (key == null) { throw new NullPointerException("map key"); } - java.util.Map map = - internalGetParams().getMap(); + public java.lang.String getParamsOrThrow(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = internalGetParams().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } @@ -265,6 +284,7 @@ public java.lang.String getParamsOrThrow( } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -276,17 +296,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(id_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, id_); } - com.google.protobuf.GeneratedMessageV3 - .serializeStringMapTo( - output, - internalGetParams(), - ParamsDefaultEntryHolder.defaultEntry, - 3); + com.google.protobuf.GeneratedMessageV3.serializeStringMapTo( + output, internalGetParams(), ParamsDefaultEntryHolder.defaultEntry, 3); unknownFields.writeTo(output); } @@ -299,15 +314,15 @@ public int getSerializedSize() { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(id_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, id_); } - for (java.util.Map.Entry entry - : internalGetParams().getMap().entrySet()) { - com.google.protobuf.MapEntry - params__ = ParamsDefaultEntryHolder.defaultEntry.newBuilderForType() - .setKey(entry.getKey()) - .setValue(entry.getValue()) - .build(); - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(3, params__); + for (java.util.Map.Entry entry : + internalGetParams().getMap().entrySet()) { + com.google.protobuf.MapEntry params__ = + ParamsDefaultEntryHolder.defaultEntry + .newBuilderForType() + .setKey(entry.getKey()) + .setValue(entry.getValue()) + .build(); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, params__); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -317,17 +332,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.memcache.v1.MemcacheParameters)) { return super.equals(obj); } - com.google.cloud.memcache.v1.MemcacheParameters other = (com.google.cloud.memcache.v1.MemcacheParameters) obj; + com.google.cloud.memcache.v1.MemcacheParameters other = + (com.google.cloud.memcache.v1.MemcacheParameters) obj; - if (!getId() - .equals(other.getId())) return false; - if (!internalGetParams().equals( - other.internalGetParams())) return false; + if (!getId().equals(other.getId())) return false; + if (!internalGetParams().equals(other.internalGetParams())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -350,136 +364,139 @@ public int hashCode() { return hash; } - public static com.google.cloud.memcache.v1.MemcacheParameters parseFrom( - java.nio.ByteBuffer data) + public static com.google.cloud.memcache.v1.MemcacheParameters parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.memcache.v1.MemcacheParameters parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.memcache.v1.MemcacheParameters parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.memcache.v1.MemcacheParameters parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.memcache.v1.MemcacheParameters parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.memcache.v1.MemcacheParameters parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.memcache.v1.MemcacheParameters 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.memcache.v1.MemcacheParameters parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.memcache.v1.MemcacheParameters parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.memcache.v1.MemcacheParameters parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.memcache.v1.MemcacheParameters parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.memcache.v1.MemcacheParameters parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.memcache.v1.MemcacheParameters parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.cloud.memcache.v1.MemcacheParameters prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } - /** - * Protobuf type {@code google.cloud.memcache.v1.MemcacheParameters} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + /** Protobuf type {@code google.cloud.memcache.v1.MemcacheParameters} */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.memcache.v1.MemcacheParameters) com.google.cloud.memcache.v1.MemcacheParametersOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.memcache.v1.CloudMemcacheProto.internal_static_google_cloud_memcache_v1_MemcacheParameters_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.memcache.v1.CloudMemcacheProto + .internal_static_google_cloud_memcache_v1_MemcacheParameters_descriptor; } @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapField internalGetMapField( - int number) { + protected com.google.protobuf.MapField internalGetMapField(int number) { switch (number) { case 3: return internalGetParams(); 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 internalGetMutableParams(); 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.memcache.v1.CloudMemcacheProto.internal_static_google_cloud_memcache_v1_MemcacheParameters_fieldAccessorTable + return com.google.cloud.memcache.v1.CloudMemcacheProto + .internal_static_google_cloud_memcache_v1_MemcacheParameters_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.memcache.v1.MemcacheParameters.class, com.google.cloud.memcache.v1.MemcacheParameters.Builder.class); + com.google.cloud.memcache.v1.MemcacheParameters.class, + com.google.cloud.memcache.v1.MemcacheParameters.Builder.class); } // Construct using com.google.cloud.memcache.v1.MemcacheParameters.newBuilder() @@ -487,16 +504,15 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); 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 +523,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.memcache.v1.CloudMemcacheProto.internal_static_google_cloud_memcache_v1_MemcacheParameters_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.memcache.v1.CloudMemcacheProto + .internal_static_google_cloud_memcache_v1_MemcacheParameters_descriptor; } @java.lang.Override @@ -528,7 +544,8 @@ public com.google.cloud.memcache.v1.MemcacheParameters build() { @java.lang.Override public com.google.cloud.memcache.v1.MemcacheParameters buildPartial() { - com.google.cloud.memcache.v1.MemcacheParameters result = new com.google.cloud.memcache.v1.MemcacheParameters(this); + com.google.cloud.memcache.v1.MemcacheParameters result = + new com.google.cloud.memcache.v1.MemcacheParameters(this); int from_bitField0_ = bitField0_; result.id_ = id_; result.params_ = internalGetParams(); @@ -541,38 +558,39 @@ public com.google.cloud.memcache.v1.MemcacheParameters buildPartial() { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.memcache.v1.MemcacheParameters) { - return mergeFrom((com.google.cloud.memcache.v1.MemcacheParameters)other); + return mergeFrom((com.google.cloud.memcache.v1.MemcacheParameters) other); } else { super.mergeFrom(other); return this; @@ -580,13 +598,13 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.memcache.v1.MemcacheParameters other) { - if (other == com.google.cloud.memcache.v1.MemcacheParameters.getDefaultInstance()) return this; + if (other == com.google.cloud.memcache.v1.MemcacheParameters.getDefaultInstance()) + return this; if (!other.getId().isEmpty()) { id_ = other.id_; onChanged(); } - internalGetMutableParams().mergeFrom( - other.internalGetParams()); + internalGetMutableParams().mergeFrom(other.internalGetParams()); this.mergeUnknownFields(other.unknownFields); onChanged(); return this; @@ -615,10 +633,13 @@ public Builder mergeFrom( } return this; } + private int bitField0_; private java.lang.Object id_ = ""; /** + * + * *
      * Output only. The unique ID associated with this set of parameters. Users
      * can use this id to determine if the parameters associated with the instance
@@ -627,13 +648,13 @@ public Builder mergeFrom(
      * 
* * 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; @@ -642,6 +663,8 @@ public java.lang.String getId() { } } /** + * + * *
      * Output only. The unique ID associated with this set of parameters. Users
      * can use this id to determine if the parameters associated with the instance
@@ -650,15 +673,14 @@ public java.lang.String getId() {
      * 
* * 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 { @@ -666,6 +688,8 @@ public java.lang.String getId() { } } /** + * + * *
      * Output only. The unique ID associated with this set of parameters. Users
      * can use this id to determine if the parameters associated with the instance
@@ -674,20 +698,22 @@ public java.lang.String getId() {
      * 
* * 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. The unique ID associated with this set of parameters. Users
      * can use this id to determine if the parameters associated with the instance
@@ -696,15 +722,18 @@ public Builder setId(
      * 
* * 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. The unique ID associated with this set of parameters. Users
      * can use this id to determine if the parameters associated with the instance
@@ -713,37 +742,36 @@ public Builder clearId() {
      * 
* * 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; } - private com.google.protobuf.MapField< - java.lang.String, java.lang.String> params_; - private com.google.protobuf.MapField - internalGetParams() { + private com.google.protobuf.MapField params_; + + private com.google.protobuf.MapField internalGetParams() { if (params_ == null) { - return com.google.protobuf.MapField.emptyMapField( - ParamsDefaultEntryHolder.defaultEntry); + return com.google.protobuf.MapField.emptyMapField(ParamsDefaultEntryHolder.defaultEntry); } return params_; } + private com.google.protobuf.MapField - internalGetMutableParams() { - onChanged();; + internalGetMutableParams() { + onChanged(); + ; if (params_ == null) { - params_ = com.google.protobuf.MapField.newMapField( - ParamsDefaultEntryHolder.defaultEntry); + params_ = com.google.protobuf.MapField.newMapField(ParamsDefaultEntryHolder.defaultEntry); } if (!params_.isMutable()) { params_ = params_.copy(); @@ -755,28 +783,30 @@ public int getParamsCount() { return internalGetParams().getMap().size(); } /** + * + * *
      * User defined set of parameters to use in the memcached process.
      * 
* * map<string, string> params = 3; */ - @java.lang.Override - public boolean containsParams( - java.lang.String key) { - if (key == null) { throw new NullPointerException("map key"); } + public boolean containsParams(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } return internalGetParams().getMap().containsKey(key); } - /** - * Use {@link #getParamsMap()} instead. - */ + /** Use {@link #getParamsMap()} instead. */ @java.lang.Override @java.lang.Deprecated public java.util.Map getParams() { return getParamsMap(); } /** + * + * *
      * User defined set of parameters to use in the memcached process.
      * 
@@ -784,11 +814,12 @@ public java.util.Map getParams() { * map<string, string> params = 3; */ @java.lang.Override - public java.util.Map getParamsMap() { return internalGetParams().getMap(); } /** + * + * *
      * User defined set of parameters to use in the memcached process.
      * 
@@ -796,16 +827,17 @@ public java.util.Map getParamsMap() { * map<string, string> params = 3; */ @java.lang.Override - public java.lang.String getParamsOrDefault( - java.lang.String key, - java.lang.String defaultValue) { - if (key == null) { throw new NullPointerException("map key"); } - java.util.Map map = - internalGetParams().getMap(); + java.lang.String key, java.lang.String defaultValue) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = internalGetParams().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** + * + * *
      * User defined set of parameters to use in the memcached process.
      * 
@@ -813,12 +845,11 @@ public java.lang.String getParamsOrDefault( * map<string, string> params = 3; */ @java.lang.Override - - public java.lang.String getParamsOrThrow( - java.lang.String key) { - if (key == null) { throw new NullPointerException("map key"); } - java.util.Map map = - internalGetParams().getMap(); + public java.lang.String getParamsOrThrow(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = internalGetParams().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } @@ -826,69 +857,66 @@ public java.lang.String getParamsOrThrow( } public Builder clearParams() { - internalGetMutableParams().getMutableMap() - .clear(); + internalGetMutableParams().getMutableMap().clear(); return this; } /** + * + * *
      * User defined set of parameters to use in the memcached process.
      * 
* * map<string, string> params = 3; */ - - public Builder removeParams( - java.lang.String key) { - if (key == null) { throw new NullPointerException("map key"); } - internalGetMutableParams().getMutableMap() - .remove(key); + public Builder removeParams(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + internalGetMutableParams().getMutableMap().remove(key); return this; } - /** - * Use alternate mutation accessors instead. - */ + /** Use alternate mutation accessors instead. */ @java.lang.Deprecated - public java.util.Map - getMutableParams() { + public java.util.Map getMutableParams() { return internalGetMutableParams().getMutableMap(); } /** + * + * *
      * User defined set of parameters to use in the memcached process.
      * 
* * map<string, string> params = 3; */ - public Builder putParams( - java.lang.String key, - java.lang.String value) { - if (key == null) { throw new NullPointerException("map key"); } + public Builder putParams(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"); + } - internalGetMutableParams().getMutableMap() - .put(key, value); + internalGetMutableParams().getMutableMap().put(key, value); return this; } /** + * + * *
      * User defined set of parameters to use in the memcached process.
      * 
* * map<string, string> params = 3; */ - - public Builder putAllParams( - java.util.Map values) { - internalGetMutableParams().getMutableMap() - .putAll(values); + public Builder putAllParams(java.util.Map values) { + internalGetMutableParams().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); } @@ -898,12 +926,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.memcache.v1.MemcacheParameters) } // @@protoc_insertion_point(class_scope:google.cloud.memcache.v1.MemcacheParameters) private static final com.google.cloud.memcache.v1.MemcacheParameters DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.memcache.v1.MemcacheParameters(); } @@ -912,16 +940,16 @@ public static com.google.cloud.memcache.v1.MemcacheParameters getDefaultInstance return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public MemcacheParameters parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new MemcacheParameters(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public MemcacheParameters parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new MemcacheParameters(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -936,6 +964,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.memcache.v1.MemcacheParameters getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1/proto-google-cloud-memcache-v1/src/main/java/com/google/cloud/memcache/v1/MemcacheParametersOrBuilder.java b/proto-google-cloud-memcache-v1/src/main/java/com/google/cloud/memcache/v1/MemcacheParametersOrBuilder.java similarity index 65% rename from owl-bot-staging/v1/proto-google-cloud-memcache-v1/src/main/java/com/google/cloud/memcache/v1/MemcacheParametersOrBuilder.java rename to proto-google-cloud-memcache-v1/src/main/java/com/google/cloud/memcache/v1/MemcacheParametersOrBuilder.java index 0b77dc3c..1deaaa58 100644 --- a/owl-bot-staging/v1/proto-google-cloud-memcache-v1/src/main/java/com/google/cloud/memcache/v1/MemcacheParametersOrBuilder.java +++ b/proto-google-cloud-memcache-v1/src/main/java/com/google/cloud/memcache/v1/MemcacheParametersOrBuilder.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/memcache/v1/cloud_memcache.proto package com.google.cloud.memcache.v1; -public interface MemcacheParametersOrBuilder extends +public interface MemcacheParametersOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.memcache.v1.MemcacheParameters) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Output only. The unique ID associated with this set of parameters. Users
    * can use this id to determine if the parameters associated with the instance
@@ -16,10 +34,13 @@ public interface MemcacheParametersOrBuilder extends
    * 
* * string id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The id. */ java.lang.String getId(); /** + * + * *
    * Output only. The unique ID associated with this set of parameters. Users
    * can use this id to determine if the parameters associated with the instance
@@ -28,12 +49,14 @@ public interface MemcacheParametersOrBuilder extends
    * 
* * string id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for id. */ - com.google.protobuf.ByteString - getIdBytes(); + com.google.protobuf.ByteString getIdBytes(); /** + * + * *
    * User defined set of parameters to use in the memcached process.
    * 
@@ -42,30 +65,31 @@ public interface MemcacheParametersOrBuilder extends */ int getParamsCount(); /** + * + * *
    * User defined set of parameters to use in the memcached process.
    * 
* * map<string, string> params = 3; */ - boolean containsParams( - java.lang.String key); - /** - * Use {@link #getParamsMap()} instead. - */ + boolean containsParams(java.lang.String key); + /** Use {@link #getParamsMap()} instead. */ @java.lang.Deprecated - java.util.Map - getParams(); + java.util.Map getParams(); /** + * + * *
    * User defined set of parameters to use in the memcached process.
    * 
* * map<string, string> params = 3; */ - java.util.Map - getParamsMap(); + java.util.Map getParamsMap(); /** + * + * *
    * User defined set of parameters to use in the memcached process.
    * 
@@ -74,18 +98,18 @@ boolean containsParams( */ /* nullable */ -java.lang.String getParamsOrDefault( + java.lang.String getParamsOrDefault( java.lang.String key, /* nullable */ -java.lang.String defaultValue); + java.lang.String defaultValue); /** + * + * *
    * User defined set of parameters to use in the memcached process.
    * 
* * map<string, string> params = 3; */ - - java.lang.String getParamsOrThrow( - java.lang.String key); + java.lang.String getParamsOrThrow(java.lang.String key); } diff --git a/owl-bot-staging/v1/proto-google-cloud-memcache-v1/src/main/java/com/google/cloud/memcache/v1/MemcacheVersion.java b/proto-google-cloud-memcache-v1/src/main/java/com/google/cloud/memcache/v1/MemcacheVersion.java similarity index 61% rename from owl-bot-staging/v1/proto-google-cloud-memcache-v1/src/main/java/com/google/cloud/memcache/v1/MemcacheVersion.java rename to proto-google-cloud-memcache-v1/src/main/java/com/google/cloud/memcache/v1/MemcacheVersion.java index 88e86936..48a5e097 100644 --- a/owl-bot-staging/v1/proto-google-cloud-memcache-v1/src/main/java/com/google/cloud/memcache/v1/MemcacheVersion.java +++ b/proto-google-cloud-memcache-v1/src/main/java/com/google/cloud/memcache/v1/MemcacheVersion.java @@ -1,22 +1,38 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/memcache/v1/cloud_memcache.proto package com.google.cloud.memcache.v1; /** + * + * *
  * Memcached versions supported by our service.
  * 
* * Protobuf enum {@code google.cloud.memcache.v1.MemcacheVersion} */ -public enum MemcacheVersion - implements com.google.protobuf.ProtocolMessageEnum { - /** - * MEMCACHE_VERSION_UNSPECIFIED = 0; - */ +public enum MemcacheVersion implements com.google.protobuf.ProtocolMessageEnum { + /** MEMCACHE_VERSION_UNSPECIFIED = 0; */ MEMCACHE_VERSION_UNSPECIFIED(0), /** + * + * *
    * Memcached 1.5 version.
    * 
@@ -27,11 +43,11 @@ public enum MemcacheVersion UNRECOGNIZED(-1), ; - /** - * MEMCACHE_VERSION_UNSPECIFIED = 0; - */ + /** MEMCACHE_VERSION_UNSPECIFIED = 0; */ public static final int MEMCACHE_VERSION_UNSPECIFIED_VALUE = 0; /** + * + * *
    * Memcached 1.5 version.
    * 
@@ -40,7 +56,6 @@ public enum MemcacheVersion */ public static final int MEMCACHE_1_5_VALUE = 1; - public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( @@ -65,48 +80,47 @@ public static MemcacheVersion valueOf(int value) { */ public static MemcacheVersion forNumber(int value) { switch (value) { - case 0: return MEMCACHE_VERSION_UNSPECIFIED; - case 1: return MEMCACHE_1_5; - default: return null; + case 0: + return MEMCACHE_VERSION_UNSPECIFIED; + case 1: + return MEMCACHE_1_5; + 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< - MemcacheVersion> internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public MemcacheVersion findValueByNumber(int number) { - return MemcacheVersion.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 MemcacheVersion findValueByNumber(int number) { + return MemcacheVersion.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.memcache.v1.CloudMemcacheProto.getDescriptor().getEnumTypes().get(0); } private static final MemcacheVersion[] VALUES = values(); - public static MemcacheVersion valueOf( - com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + public static MemcacheVersion 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; @@ -122,4 +136,3 @@ private MemcacheVersion(int value) { // @@protoc_insertion_point(enum_scope:google.cloud.memcache.v1.MemcacheVersion) } - diff --git a/owl-bot-staging/v1/proto-google-cloud-memcache-v1/src/main/java/com/google/cloud/memcache/v1/OperationMetadata.java b/proto-google-cloud-memcache-v1/src/main/java/com/google/cloud/memcache/v1/OperationMetadata.java similarity index 71% rename from owl-bot-staging/v1/proto-google-cloud-memcache-v1/src/main/java/com/google/cloud/memcache/v1/OperationMetadata.java rename to proto-google-cloud-memcache-v1/src/main/java/com/google/cloud/memcache/v1/OperationMetadata.java index f26ab749..16236681 100644 --- a/owl-bot-staging/v1/proto-google-cloud-memcache-v1/src/main/java/com/google/cloud/memcache/v1/OperationMetadata.java +++ b/proto-google-cloud-memcache-v1/src/main/java/com/google/cloud/memcache/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/memcache/v1/cloud_memcache.proto package com.google.cloud.memcache.v1; /** + * + * *
  * Represents the metadata of a long-running operation.
  * 
* * Protobuf type {@code google.cloud.memcache.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.memcache.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,40 @@ private OperationMetadata( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.memcache.v1.CloudMemcacheProto.internal_static_google_cloud_memcache_v1_OperationMetadata_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.memcache.v1.CloudMemcacheProto + .internal_static_google_cloud_memcache_v1_OperationMetadata_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.memcache.v1.CloudMemcacheProto.internal_static_google_cloud_memcache_v1_OperationMetadata_fieldAccessorTable + return com.google.cloud.memcache.v1.CloudMemcacheProto + .internal_static_google_cloud_memcache_v1_OperationMetadata_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.memcache.v1.OperationMetadata.class, com.google.cloud.memcache.v1.OperationMetadata.Builder.class); + com.google.cloud.memcache.v1.OperationMetadata.class, + com.google.cloud.memcache.v1.OperationMetadata.Builder.class); } public static final int CREATE_TIME_FIELD_NUMBER = 1; private com.google.protobuf.Timestamp createTime_; /** + * + * *
    * Output only. Time when the operation was created.
    * 
* - * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the createTime field is set. */ @java.lang.Override @@ -160,11 +191,15 @@ public boolean hasCreateTime() { return createTime_ != null; } /** + * + * *
    * Output only. Time when the operation was created.
    * 
* - * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The createTime. */ @java.lang.Override @@ -172,11 +207,14 @@ public com.google.protobuf.Timestamp getCreateTime() { return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; } /** + * + * *
    * Output only. Time when the operation was created.
    * 
* - * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { @@ -186,11 +224,15 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { public static final int END_TIME_FIELD_NUMBER = 2; private com.google.protobuf.Timestamp endTime_; /** + * + * *
    * Output only. Time when the operation finished running.
    * 
* - * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the endTime field is set. */ @java.lang.Override @@ -198,11 +240,15 @@ public boolean hasEndTime() { return endTime_ != null; } /** + * + * *
    * Output only. Time when the operation finished running.
    * 
* - * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The endTime. */ @java.lang.Override @@ -210,11 +256,14 @@ public com.google.protobuf.Timestamp getEndTime() { return endTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : endTime_; } /** + * + * *
    * Output only. Time when the operation finished running.
    * 
* - * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder() { @@ -224,11 +273,14 @@ public com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder() { public static final int TARGET_FIELD_NUMBER = 3; private volatile java.lang.Object target_; /** + * + * *
    * Output only. Server-defined resource path for the target of the operation.
    * 
* * string target = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The target. */ @java.lang.Override @@ -237,29 +289,29 @@ public java.lang.String getTarget() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); target_ = s; return s; } } /** + * + * *
    * Output only. Server-defined resource path for the target of the operation.
    * 
* * string target = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for target. */ @java.lang.Override - public com.google.protobuf.ByteString - getTargetBytes() { + public com.google.protobuf.ByteString getTargetBytes() { java.lang.Object ref = target_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); target_ = b; return b; } else { @@ -270,11 +322,14 @@ public java.lang.String getTarget() { public static final int VERB_FIELD_NUMBER = 4; private volatile java.lang.Object verb_; /** + * + * *
    * Output only. Name of the verb executed by the operation.
    * 
* * string verb = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The verb. */ @java.lang.Override @@ -283,29 +338,29 @@ public java.lang.String getVerb() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); verb_ = s; return s; } } /** + * + * *
    * Output only. Name of the verb executed by the operation.
    * 
* * string verb = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for verb. */ @java.lang.Override - public com.google.protobuf.ByteString - getVerbBytes() { + public com.google.protobuf.ByteString getVerbBytes() { java.lang.Object ref = verb_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); verb_ = b; return b; } else { @@ -316,11 +371,14 @@ public java.lang.String getVerb() { public static final int STATUS_DETAIL_FIELD_NUMBER = 5; private volatile java.lang.Object statusDetail_; /** + * + * *
    * Output only. Human-readable status of the operation, if any.
    * 
* * string status_detail = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The statusDetail. */ @java.lang.Override @@ -329,29 +387,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; } } /** + * + * *
    * Output only. Human-readable status of the operation, if any.
    * 
* * string status_detail = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @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,6 +420,8 @@ public java.lang.String getStatusDetail() { public static final int CANCEL_REQUESTED_FIELD_NUMBER = 6; private boolean cancelRequested_; /** + * + * *
    * Output only. Identifies whether the user has requested cancellation
    * of the operation. Operations that have successfully been cancelled
@@ -370,6 +430,7 @@ public java.lang.String getStatusDetail() {
    * 
* * bool cancel_requested = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The cancelRequested. */ @java.lang.Override @@ -380,11 +441,14 @@ public boolean getCancelRequested() { public static final int API_VERSION_FIELD_NUMBER = 7; private volatile java.lang.Object apiVersion_; /** + * + * *
    * Output only. API version used to start the operation.
    * 
* * string api_version = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The apiVersion. */ @java.lang.Override @@ -393,29 +457,29 @@ public java.lang.String getApiVersion() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); apiVersion_ = s; return s; } } /** + * + * *
    * Output only. API version used to start the operation.
    * 
* * string api_version = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for apiVersion. */ @java.lang.Override - public com.google.protobuf.ByteString - getApiVersionBytes() { + public com.google.protobuf.ByteString getApiVersionBytes() { java.lang.Object ref = apiVersion_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); apiVersion_ = b; return b; } else { @@ -424,6 +488,7 @@ public java.lang.String getApiVersion() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -435,8 +500,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (createTime_ != null) { output.writeMessage(1, getCreateTime()); } @@ -468,12 +532,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_); @@ -485,8 +547,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_); @@ -499,33 +560,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.memcache.v1.OperationMetadata)) { return super.equals(obj); } - com.google.cloud.memcache.v1.OperationMetadata other = (com.google.cloud.memcache.v1.OperationMetadata) obj; + com.google.cloud.memcache.v1.OperationMetadata other = + (com.google.cloud.memcache.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; } @@ -552,8 +607,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(); @@ -561,118 +615,127 @@ public int hashCode() { return hash; } - public static com.google.cloud.memcache.v1.OperationMetadata parseFrom( - java.nio.ByteBuffer data) + public static com.google.cloud.memcache.v1.OperationMetadata parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.memcache.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.memcache.v1.OperationMetadata parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.memcache.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.memcache.v1.OperationMetadata parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.memcache.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.memcache.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.memcache.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.memcache.v1.OperationMetadata parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.memcache.v1.OperationMetadata parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.memcache.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.memcache.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.memcache.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.memcache.v1.OperationMetadata prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Represents the metadata of a long-running operation.
    * 
* * Protobuf type {@code google.cloud.memcache.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.memcache.v1.OperationMetadata) com.google.cloud.memcache.v1.OperationMetadataOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.memcache.v1.CloudMemcacheProto.internal_static_google_cloud_memcache_v1_OperationMetadata_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.memcache.v1.CloudMemcacheProto + .internal_static_google_cloud_memcache_v1_OperationMetadata_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.memcache.v1.CloudMemcacheProto.internal_static_google_cloud_memcache_v1_OperationMetadata_fieldAccessorTable + return com.google.cloud.memcache.v1.CloudMemcacheProto + .internal_static_google_cloud_memcache_v1_OperationMetadata_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.memcache.v1.OperationMetadata.class, com.google.cloud.memcache.v1.OperationMetadata.Builder.class); + com.google.cloud.memcache.v1.OperationMetadata.class, + com.google.cloud.memcache.v1.OperationMetadata.Builder.class); } // Construct using com.google.cloud.memcache.v1.OperationMetadata.newBuilder() @@ -680,16 +743,15 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -719,9 +781,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.memcache.v1.CloudMemcacheProto.internal_static_google_cloud_memcache_v1_OperationMetadata_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.memcache.v1.CloudMemcacheProto + .internal_static_google_cloud_memcache_v1_OperationMetadata_descriptor; } @java.lang.Override @@ -740,7 +802,8 @@ public com.google.cloud.memcache.v1.OperationMetadata build() { @java.lang.Override public com.google.cloud.memcache.v1.OperationMetadata buildPartial() { - com.google.cloud.memcache.v1.OperationMetadata result = new com.google.cloud.memcache.v1.OperationMetadata(this); + com.google.cloud.memcache.v1.OperationMetadata result = + new com.google.cloud.memcache.v1.OperationMetadata(this); if (createTimeBuilder_ == null) { result.createTime_ = createTime_; } else { @@ -764,38 +827,39 @@ public com.google.cloud.memcache.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.memcache.v1.OperationMetadata) { - return mergeFrom((com.google.cloud.memcache.v1.OperationMetadata)other); + return mergeFrom((com.google.cloud.memcache.v1.OperationMetadata) other); } else { super.mergeFrom(other); return this; @@ -860,39 +924,58 @@ public Builder mergeFrom( private com.google.protobuf.Timestamp createTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> createTimeBuilder_; + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + createTimeBuilder_; /** + * + * *
      * Output only. Time when the operation was created.
      * 
* - * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the createTime field is set. */ public boolean hasCreateTime() { return createTimeBuilder_ != null || createTime_ != null; } /** + * + * *
      * Output only. Time when the operation was created.
      * 
* - * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The createTime. */ public com.google.protobuf.Timestamp getCreateTime() { if (createTimeBuilder_ == null) { - return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; + return createTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : createTime_; } else { return createTimeBuilder_.getMessage(); } } /** + * + * *
      * Output only. Time when the operation was created.
      * 
* - * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder setCreateTime(com.google.protobuf.Timestamp value) { if (createTimeBuilder_ == null) { @@ -908,14 +991,17 @@ public Builder setCreateTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * Output only. Time when the operation was created.
      * 
* - * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public Builder setCreateTime( - com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForValue) { if (createTimeBuilder_ == null) { createTime_ = builderForValue.build(); onChanged(); @@ -926,17 +1012,21 @@ public Builder setCreateTime( return this; } /** + * + * *
      * Output only. Time when the operation was created.
      * 
* - * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { if (createTimeBuilder_ == null) { if (createTime_ != null) { createTime_ = - com.google.protobuf.Timestamp.newBuilder(createTime_).mergeFrom(value).buildPartial(); + com.google.protobuf.Timestamp.newBuilder(createTime_).mergeFrom(value).buildPartial(); } else { createTime_ = value; } @@ -948,11 +1038,15 @@ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * Output only. Time when the operation was created.
      * 
* - * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder clearCreateTime() { if (createTimeBuilder_ == null) { @@ -966,48 +1060,64 @@ public Builder clearCreateTime() { return this; } /** + * + * *
      * Output only. Time when the operation was created.
      * 
* - * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { - + onChanged(); return getCreateTimeFieldBuilder().getBuilder(); } /** + * + * *
      * Output only. Time when the operation was created.
      * 
* - * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { if (createTimeBuilder_ != null) { return createTimeBuilder_.getMessageOrBuilder(); } else { - return createTime_ == null ? - com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; + return createTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : createTime_; } } /** + * + * *
      * Output only. Time when the operation was created.
      * 
* - * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> getCreateTimeFieldBuilder() { if (createTimeBuilder_ == null) { - createTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( - getCreateTime(), - getParentForChildren(), - isClean()); + createTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getCreateTime(), getParentForChildren(), isClean()); createTime_ = null; } return createTimeBuilder_; @@ -1015,24 +1125,35 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { private com.google.protobuf.Timestamp endTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> endTimeBuilder_; + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + endTimeBuilder_; /** + * + * *
      * Output only. Time when the operation finished running.
      * 
* - * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the endTime field is set. */ public boolean hasEndTime() { return endTimeBuilder_ != null || endTime_ != null; } /** + * + * *
      * Output only. Time when the operation finished running.
      * 
* - * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The endTime. */ public com.google.protobuf.Timestamp getEndTime() { @@ -1043,11 +1164,14 @@ public com.google.protobuf.Timestamp getEndTime() { } } /** + * + * *
      * Output only. Time when the operation finished running.
      * 
* - * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder setEndTime(com.google.protobuf.Timestamp value) { if (endTimeBuilder_ == null) { @@ -1063,14 +1187,16 @@ public Builder setEndTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * Output only. Time when the operation finished running.
      * 
* - * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public Builder setEndTime( - com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setEndTime(com.google.protobuf.Timestamp.Builder builderForValue) { if (endTimeBuilder_ == null) { endTime_ = builderForValue.build(); onChanged(); @@ -1081,17 +1207,20 @@ public Builder setEndTime( return this; } /** + * + * *
      * Output only. Time when the operation finished running.
      * 
* - * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder mergeEndTime(com.google.protobuf.Timestamp value) { if (endTimeBuilder_ == null) { if (endTime_ != null) { endTime_ = - com.google.protobuf.Timestamp.newBuilder(endTime_).mergeFrom(value).buildPartial(); + com.google.protobuf.Timestamp.newBuilder(endTime_).mergeFrom(value).buildPartial(); } else { endTime_ = value; } @@ -1103,11 +1232,14 @@ public Builder mergeEndTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * Output only. Time when the operation finished running.
      * 
* - * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder clearEndTime() { if (endTimeBuilder_ == null) { @@ -1121,48 +1253,59 @@ public Builder clearEndTime() { return this; } /** + * + * *
      * Output only. Time when the operation finished running.
      * 
* - * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public com.google.protobuf.Timestamp.Builder getEndTimeBuilder() { - + onChanged(); return getEndTimeFieldBuilder().getBuilder(); } /** + * + * *
      * Output only. Time when the operation finished running.
      * 
* - * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder() { if (endTimeBuilder_ != null) { return endTimeBuilder_.getMessageOrBuilder(); } else { - return endTime_ == null ? - com.google.protobuf.Timestamp.getDefaultInstance() : endTime_; + return endTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : endTime_; } } /** + * + * *
      * Output only. Time when the operation finished running.
      * 
* - * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> getEndTimeFieldBuilder() { if (endTimeBuilder_ == null) { - endTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( - getEndTime(), - getParentForChildren(), - isClean()); + endTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getEndTime(), getParentForChildren(), isClean()); endTime_ = null; } return endTimeBuilder_; @@ -1170,18 +1313,20 @@ public com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder() { private java.lang.Object target_ = ""; /** + * + * *
      * Output only. Server-defined resource path for the target of the operation.
      * 
* * string target = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The target. */ public java.lang.String getTarget() { java.lang.Object ref = target_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); target_ = s; return s; @@ -1190,20 +1335,21 @@ public java.lang.String getTarget() { } } /** + * + * *
      * Output only. Server-defined resource path for the target of the operation.
      * 
* * string target = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for target. */ - public com.google.protobuf.ByteString - getTargetBytes() { + public com.google.protobuf.ByteString getTargetBytes() { java.lang.Object ref = target_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); target_ = b; return b; } else { @@ -1211,54 +1357,61 @@ public java.lang.String getTarget() { } } /** + * + * *
      * Output only. Server-defined resource path for the target of the operation.
      * 
* * string target = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @param value The target to set. * @return This builder for chaining. */ - public Builder setTarget( - java.lang.String value) { + public Builder setTarget(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + target_ = value; onChanged(); return this; } /** + * + * *
      * Output only. Server-defined resource path for the target of the operation.
      * 
* * string target = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return This builder for chaining. */ public Builder clearTarget() { - + target_ = getDefaultInstance().getTarget(); onChanged(); return this; } /** + * + * *
      * Output only. Server-defined resource path for the target of the operation.
      * 
* * string target = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @param value The bytes for target to set. * @return This builder for chaining. */ - public Builder setTargetBytes( - com.google.protobuf.ByteString value) { + public Builder setTargetBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + target_ = value; onChanged(); return this; @@ -1266,18 +1419,20 @@ public Builder setTargetBytes( private java.lang.Object verb_ = ""; /** + * + * *
      * Output only. Name of the verb executed by the operation.
      * 
* * string verb = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The verb. */ public java.lang.String getVerb() { java.lang.Object ref = verb_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); verb_ = s; return s; @@ -1286,20 +1441,21 @@ public java.lang.String getVerb() { } } /** + * + * *
      * Output only. Name of the verb executed by the operation.
      * 
* * string verb = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for verb. */ - public com.google.protobuf.ByteString - getVerbBytes() { + public com.google.protobuf.ByteString getVerbBytes() { java.lang.Object ref = verb_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); verb_ = b; return b; } else { @@ -1307,54 +1463,61 @@ public java.lang.String getVerb() { } } /** + * + * *
      * Output only. Name of the verb executed by the operation.
      * 
* * string verb = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @param value The verb to set. * @return This builder for chaining. */ - public Builder setVerb( - java.lang.String value) { + public Builder setVerb(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + verb_ = value; onChanged(); return this; } /** + * + * *
      * Output only. Name of the verb executed by the operation.
      * 
* * string verb = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return This builder for chaining. */ public Builder clearVerb() { - + verb_ = getDefaultInstance().getVerb(); onChanged(); return this; } /** + * + * *
      * Output only. Name of the verb executed by the operation.
      * 
* * string verb = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @param value The bytes for verb to set. * @return This builder for chaining. */ - public Builder setVerbBytes( - com.google.protobuf.ByteString value) { + public Builder setVerbBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + verb_ = value; onChanged(); return this; @@ -1362,18 +1525,20 @@ public Builder setVerbBytes( private java.lang.Object statusDetail_ = ""; /** + * + * *
      * Output only. Human-readable status of the operation, if any.
      * 
* * string status_detail = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @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; @@ -1382,20 +1547,21 @@ public java.lang.String getStatusDetail() { } } /** + * + * *
      * Output only. Human-readable status of the operation, if any.
      * 
* * string status_detail = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @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 { @@ -1403,61 +1569,70 @@ public java.lang.String getStatusDetail() { } } /** + * + * *
      * Output only. Human-readable status of the operation, if any.
      * 
* * string status_detail = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @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; } /** + * + * *
      * Output only. Human-readable status of the operation, if any.
      * 
* * string status_detail = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return This builder for chaining. */ public Builder clearStatusDetail() { - + statusDetail_ = getDefaultInstance().getStatusDetail(); onChanged(); return this; } /** + * + * *
      * Output only. Human-readable status of the operation, if any.
      * 
* * string status_detail = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @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_; /** + * + * *
      * Output only. Identifies whether the user has requested cancellation
      * of the operation. Operations that have successfully been cancelled
@@ -1466,6 +1641,7 @@ public Builder setStatusDetailBytes(
      * 
* * bool cancel_requested = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The cancelRequested. */ @java.lang.Override @@ -1473,6 +1649,8 @@ public boolean getCancelRequested() { return cancelRequested_; } /** + * + * *
      * Output only. Identifies whether the user has requested cancellation
      * of the operation. Operations that have successfully been cancelled
@@ -1481,16 +1659,19 @@ public boolean getCancelRequested() {
      * 
* * bool cancel_requested = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @param value The cancelRequested to set. * @return This builder for chaining. */ public Builder setCancelRequested(boolean value) { - + cancelRequested_ = value; onChanged(); return this; } /** + * + * *
      * Output only. Identifies whether the user has requested cancellation
      * of the operation. Operations that have successfully been cancelled
@@ -1499,10 +1680,11 @@ public Builder setCancelRequested(boolean value) {
      * 
* * bool cancel_requested = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return This builder for chaining. */ public Builder clearCancelRequested() { - + cancelRequested_ = false; onChanged(); return this; @@ -1510,18 +1692,20 @@ public Builder clearCancelRequested() { private java.lang.Object apiVersion_ = ""; /** + * + * *
      * Output only. API version used to start the operation.
      * 
* * string api_version = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The apiVersion. */ public java.lang.String getApiVersion() { java.lang.Object ref = apiVersion_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); apiVersion_ = s; return s; @@ -1530,20 +1714,21 @@ public java.lang.String getApiVersion() { } } /** + * + * *
      * Output only. API version used to start the operation.
      * 
* * string api_version = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for apiVersion. */ - public com.google.protobuf.ByteString - getApiVersionBytes() { + public com.google.protobuf.ByteString getApiVersionBytes() { java.lang.Object ref = apiVersion_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); apiVersion_ = b; return b; } else { @@ -1551,61 +1736,68 @@ public java.lang.String getApiVersion() { } } /** + * + * *
      * Output only. API version used to start the operation.
      * 
* * string api_version = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @param value The apiVersion to set. * @return This builder for chaining. */ - public Builder setApiVersion( - java.lang.String value) { + public Builder setApiVersion(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + apiVersion_ = value; onChanged(); return this; } /** + * + * *
      * Output only. API version used to start the operation.
      * 
* * string api_version = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return This builder for chaining. */ public Builder clearApiVersion() { - + apiVersion_ = getDefaultInstance().getApiVersion(); onChanged(); return this; } /** + * + * *
      * Output only. API version used to start the operation.
      * 
* * string api_version = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @param value The bytes for apiVersion to set. * @return This builder for chaining. */ - public Builder setApiVersionBytes( - com.google.protobuf.ByteString value) { + public Builder setApiVersionBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + apiVersion_ = value; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1615,12 +1807,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.memcache.v1.OperationMetadata) } // @@protoc_insertion_point(class_scope:google.cloud.memcache.v1.OperationMetadata) private static final com.google.cloud.memcache.v1.OperationMetadata DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.memcache.v1.OperationMetadata(); } @@ -1629,16 +1821,16 @@ public static com.google.cloud.memcache.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; @@ -1653,6 +1845,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.memcache.v1.OperationMetadata getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1/proto-google-cloud-memcache-v1/src/main/java/com/google/cloud/memcache/v1/OperationMetadataOrBuilder.java b/proto-google-cloud-memcache-v1/src/main/java/com/google/cloud/memcache/v1/OperationMetadataOrBuilder.java similarity index 75% rename from owl-bot-staging/v1/proto-google-cloud-memcache-v1/src/main/java/com/google/cloud/memcache/v1/OperationMetadataOrBuilder.java rename to proto-google-cloud-memcache-v1/src/main/java/com/google/cloud/memcache/v1/OperationMetadataOrBuilder.java index 4562cae3..8181a184 100644 --- a/owl-bot-staging/v1/proto-google-cloud-memcache-v1/src/main/java/com/google/cloud/memcache/v1/OperationMetadataOrBuilder.java +++ b/proto-google-cloud-memcache-v1/src/main/java/com/google/cloud/memcache/v1/OperationMetadataOrBuilder.java @@ -1,127 +1,182 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/memcache/v1/cloud_memcache.proto package com.google.cloud.memcache.v1; -public interface OperationMetadataOrBuilder extends +public interface OperationMetadataOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.memcache.v1.OperationMetadata) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Output only. Time when the operation was created.
    * 
* - * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the createTime field is set. */ boolean hasCreateTime(); /** + * + * *
    * Output only. Time when the operation was created.
    * 
* - * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The createTime. */ com.google.protobuf.Timestamp getCreateTime(); /** + * + * *
    * Output only. Time when the operation was created.
    * 
* - * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder(); /** + * + * *
    * Output only. Time when the operation finished running.
    * 
* - * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the endTime field is set. */ boolean hasEndTime(); /** + * + * *
    * Output only. Time when the operation finished running.
    * 
* - * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The endTime. */ com.google.protobuf.Timestamp getEndTime(); /** + * + * *
    * Output only. Time when the operation finished running.
    * 
* - * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder(); /** + * + * *
    * Output only. Server-defined resource path for the target of the operation.
    * 
* * string target = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The target. */ java.lang.String getTarget(); /** + * + * *
    * Output only. Server-defined resource path for the target of the operation.
    * 
* * string target = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for target. */ - com.google.protobuf.ByteString - getTargetBytes(); + com.google.protobuf.ByteString getTargetBytes(); /** + * + * *
    * Output only. Name of the verb executed by the operation.
    * 
* * string verb = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The verb. */ java.lang.String getVerb(); /** + * + * *
    * Output only. Name of the verb executed by the operation.
    * 
* * string verb = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for verb. */ - com.google.protobuf.ByteString - getVerbBytes(); + com.google.protobuf.ByteString getVerbBytes(); /** + * + * *
    * Output only. Human-readable status of the operation, if any.
    * 
* * string status_detail = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The statusDetail. */ java.lang.String getStatusDetail(); /** + * + * *
    * Output only. Human-readable status of the operation, if any.
    * 
* * string status_detail = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for statusDetail. */ - com.google.protobuf.ByteString - getStatusDetailBytes(); + com.google.protobuf.ByteString getStatusDetailBytes(); /** + * + * *
    * Output only. Identifies whether the user has requested cancellation
    * of the operation. Operations that have successfully been cancelled
@@ -130,27 +185,33 @@ public interface OperationMetadataOrBuilder extends
    * 
* * bool cancel_requested = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The cancelRequested. */ boolean getCancelRequested(); /** + * + * *
    * Output only. API version used to start the operation.
    * 
* * string api_version = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The apiVersion. */ java.lang.String getApiVersion(); /** + * + * *
    * Output only. API version used to start the operation.
    * 
* * string api_version = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for apiVersion. */ - com.google.protobuf.ByteString - getApiVersionBytes(); + com.google.protobuf.ByteString getApiVersionBytes(); } diff --git a/owl-bot-staging/v1/proto-google-cloud-memcache-v1/src/main/java/com/google/cloud/memcache/v1/UpdateInstanceRequest.java b/proto-google-cloud-memcache-v1/src/main/java/com/google/cloud/memcache/v1/UpdateInstanceRequest.java similarity index 64% rename from owl-bot-staging/v1/proto-google-cloud-memcache-v1/src/main/java/com/google/cloud/memcache/v1/UpdateInstanceRequest.java rename to proto-google-cloud-memcache-v1/src/main/java/com/google/cloud/memcache/v1/UpdateInstanceRequest.java index 2dc58fbd..5b6e9c54 100644 --- a/owl-bot-staging/v1/proto-google-cloud-memcache-v1/src/main/java/com/google/cloud/memcache/v1/UpdateInstanceRequest.java +++ b/proto-google-cloud-memcache-v1/src/main/java/com/google/cloud/memcache/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/memcache/v1/cloud_memcache.proto package com.google.cloud.memcache.v1; /** + * + * *
  * Request for [UpdateInstance][google.cloud.memcache.v1.CloudMemcache.UpdateInstance].
  * 
* * Protobuf type {@code google.cloud.memcache.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.memcache.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,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.memcache.v1.Instance.Builder subBuilder = null; - if (instance_ != null) { - subBuilder = instance_.toBuilder(); - } - instance_ = input.readMessage(com.google.cloud.memcache.v1.Instance.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(instance_); - instance_ = subBuilder.buildPartial(); + break; } + case 18: + { + com.google.cloud.memcache.v1.Instance.Builder subBuilder = null; + if (instance_ != null) { + subBuilder = instance_.toBuilder(); + } + instance_ = + input.readMessage( + com.google.cloud.memcache.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,35 +113,41 @@ 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.memcache.v1.CloudMemcacheProto.internal_static_google_cloud_memcache_v1_UpdateInstanceRequest_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.memcache.v1.CloudMemcacheProto + .internal_static_google_cloud_memcache_v1_UpdateInstanceRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.memcache.v1.CloudMemcacheProto.internal_static_google_cloud_memcache_v1_UpdateInstanceRequest_fieldAccessorTable + return com.google.cloud.memcache.v1.CloudMemcacheProto + .internal_static_google_cloud_memcache_v1_UpdateInstanceRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.memcache.v1.UpdateInstanceRequest.class, com.google.cloud.memcache.v1.UpdateInstanceRequest.Builder.class); + com.google.cloud.memcache.v1.UpdateInstanceRequest.class, + com.google.cloud.memcache.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.
    *  *   `displayName`
    * 
* - * .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 @@ -128,12 +155,16 @@ public boolean hasUpdateMask() { return updateMask_ != null; } /** + * + * *
    * Required. Mask of fields to update.
    *  *   `displayName`
    * 
* - * .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 @@ -141,12 +172,15 @@ public com.google.protobuf.FieldMask getUpdateMask() { return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; } /** + * + * *
    * Required. Mask of fields to update.
    *  *   `displayName`
    * 
* - * .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() { @@ -156,12 +190,17 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { public static final int INSTANCE_FIELD_NUMBER = 2; private com.google.cloud.memcache.v1.Instance instance_; /** + * + * *
    * Required. A Memcached Instance.
    * Only fields specified in update_mask are updated.
    * 
* - * .google.cloud.memcache.v1.Instance instance = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.memcache.v1.Instance instance = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the instance field is set. */ @java.lang.Override @@ -169,25 +208,36 @@ public boolean hasInstance() { return instance_ != null; } /** + * + * *
    * Required. A Memcached Instance.
    * Only fields specified in update_mask are updated.
    * 
* - * .google.cloud.memcache.v1.Instance instance = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.memcache.v1.Instance instance = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The instance. */ @java.lang.Override public com.google.cloud.memcache.v1.Instance getInstance() { - return instance_ == null ? com.google.cloud.memcache.v1.Instance.getDefaultInstance() : instance_; + return instance_ == null + ? com.google.cloud.memcache.v1.Instance.getDefaultInstance() + : instance_; } /** + * + * *
    * Required. A Memcached Instance.
    * Only fields specified in update_mask are updated.
    * 
* - * .google.cloud.memcache.v1.Instance instance = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.memcache.v1.Instance instance = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ @java.lang.Override public com.google.cloud.memcache.v1.InstanceOrBuilder getInstanceOrBuilder() { @@ -195,6 +245,7 @@ public com.google.cloud.memcache.v1.InstanceOrBuilder getInstanceOrBuilder() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -206,8 +257,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (updateMask_ != null) { output.writeMessage(1, getUpdateMask()); } @@ -224,12 +274,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; @@ -239,22 +287,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.memcache.v1.UpdateInstanceRequest)) { return super.equals(obj); } - com.google.cloud.memcache.v1.UpdateInstanceRequest other = (com.google.cloud.memcache.v1.UpdateInstanceRequest) obj; + com.google.cloud.memcache.v1.UpdateInstanceRequest other = + (com.google.cloud.memcache.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; @@ -281,117 +328,126 @@ public int hashCode() { } public static com.google.cloud.memcache.v1.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.memcache.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.memcache.v1.UpdateInstanceRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.memcache.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.memcache.v1.UpdateInstanceRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.memcache.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.memcache.v1.UpdateInstanceRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.memcache.v1.UpdateInstanceRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.memcache.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.memcache.v1.UpdateInstanceRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.memcache.v1.UpdateInstanceRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.memcache.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.memcache.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.memcache.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.memcache.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.memcache.v1.CloudMemcache.UpdateInstance].
    * 
* * Protobuf type {@code google.cloud.memcache.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.memcache.v1.UpdateInstanceRequest) com.google.cloud.memcache.v1.UpdateInstanceRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.memcache.v1.CloudMemcacheProto.internal_static_google_cloud_memcache_v1_UpdateInstanceRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.memcache.v1.CloudMemcacheProto + .internal_static_google_cloud_memcache_v1_UpdateInstanceRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.memcache.v1.CloudMemcacheProto.internal_static_google_cloud_memcache_v1_UpdateInstanceRequest_fieldAccessorTable + return com.google.cloud.memcache.v1.CloudMemcacheProto + .internal_static_google_cloud_memcache_v1_UpdateInstanceRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.memcache.v1.UpdateInstanceRequest.class, com.google.cloud.memcache.v1.UpdateInstanceRequest.Builder.class); + com.google.cloud.memcache.v1.UpdateInstanceRequest.class, + com.google.cloud.memcache.v1.UpdateInstanceRequest.Builder.class); } // Construct using com.google.cloud.memcache.v1.UpdateInstanceRequest.newBuilder() @@ -399,16 +455,15 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -428,9 +483,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.memcache.v1.CloudMemcacheProto.internal_static_google_cloud_memcache_v1_UpdateInstanceRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.memcache.v1.CloudMemcacheProto + .internal_static_google_cloud_memcache_v1_UpdateInstanceRequest_descriptor; } @java.lang.Override @@ -449,7 +504,8 @@ public com.google.cloud.memcache.v1.UpdateInstanceRequest build() { @java.lang.Override public com.google.cloud.memcache.v1.UpdateInstanceRequest buildPartial() { - com.google.cloud.memcache.v1.UpdateInstanceRequest result = new com.google.cloud.memcache.v1.UpdateInstanceRequest(this); + com.google.cloud.memcache.v1.UpdateInstanceRequest result = + new com.google.cloud.memcache.v1.UpdateInstanceRequest(this); if (updateMaskBuilder_ == null) { result.updateMask_ = updateMask_; } else { @@ -468,38 +524,39 @@ public com.google.cloud.memcache.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.memcache.v1.UpdateInstanceRequest) { - return mergeFrom((com.google.cloud.memcache.v1.UpdateInstanceRequest)other); + return mergeFrom((com.google.cloud.memcache.v1.UpdateInstanceRequest) other); } else { super.mergeFrom(other); return this; @@ -507,7 +564,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.memcache.v1.UpdateInstanceRequest other) { - if (other == com.google.cloud.memcache.v1.UpdateInstanceRequest.getDefaultInstance()) return this; + if (other == com.google.cloud.memcache.v1.UpdateInstanceRequest.getDefaultInstance()) + return this; if (other.hasUpdateMask()) { mergeUpdateMask(other.getUpdateMask()); } @@ -533,7 +591,8 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.memcache.v1.UpdateInstanceRequest) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.memcache.v1.UpdateInstanceRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -545,42 +604,58 @@ 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.
      *  *   `displayName`
      * 
* - * .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.
      *  *   `displayName`
      * 
* - * .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.
      *  *   `displayName`
      * 
* - * .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) { @@ -596,15 +671,17 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask value) { return this; } /** + * + * *
      * Required. Mask of fields to update.
      *  *   `displayName`
      * 
* - * .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(); @@ -615,18 +692,21 @@ public Builder setUpdateMask( return this; } /** + * + * *
      * Required. Mask of fields to update.
      *  *   `displayName`
      * 
* - * .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; } @@ -638,12 +718,15 @@ public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) { return this; } /** + * + * *
      * Required. Mask of fields to update.
      *  *   `displayName`
      * 
* - * .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) { @@ -657,51 +740,64 @@ public Builder clearUpdateMask() { return this; } /** + * + * *
      * Required. Mask of fields to update.
      *  *   `displayName`
      * 
* - * .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.
      *  *   `displayName`
      * 
* - * .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.
      *  *   `displayName`
      * 
* - * .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_; @@ -709,42 +805,61 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { private com.google.cloud.memcache.v1.Instance instance_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.memcache.v1.Instance, com.google.cloud.memcache.v1.Instance.Builder, com.google.cloud.memcache.v1.InstanceOrBuilder> instanceBuilder_; + com.google.cloud.memcache.v1.Instance, + com.google.cloud.memcache.v1.Instance.Builder, + com.google.cloud.memcache.v1.InstanceOrBuilder> + instanceBuilder_; /** + * + * *
      * Required. A Memcached Instance.
      * Only fields specified in update_mask are updated.
      * 
* - * .google.cloud.memcache.v1.Instance instance = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.memcache.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. A Memcached Instance.
      * Only fields specified in update_mask are updated.
      * 
* - * .google.cloud.memcache.v1.Instance instance = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.memcache.v1.Instance instance = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The instance. */ public com.google.cloud.memcache.v1.Instance getInstance() { if (instanceBuilder_ == null) { - return instance_ == null ? com.google.cloud.memcache.v1.Instance.getDefaultInstance() : instance_; + return instance_ == null + ? com.google.cloud.memcache.v1.Instance.getDefaultInstance() + : instance_; } else { return instanceBuilder_.getMessage(); } } /** + * + * *
      * Required. A Memcached Instance.
      * Only fields specified in update_mask are updated.
      * 
* - * .google.cloud.memcache.v1.Instance instance = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.memcache.v1.Instance instance = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder setInstance(com.google.cloud.memcache.v1.Instance value) { if (instanceBuilder_ == null) { @@ -760,15 +875,18 @@ public Builder setInstance(com.google.cloud.memcache.v1.Instance value) { return this; } /** + * + * *
      * Required. A Memcached Instance.
      * Only fields specified in update_mask are updated.
      * 
* - * .google.cloud.memcache.v1.Instance instance = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.memcache.v1.Instance instance = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ - public Builder setInstance( - com.google.cloud.memcache.v1.Instance.Builder builderForValue) { + public Builder setInstance(com.google.cloud.memcache.v1.Instance.Builder builderForValue) { if (instanceBuilder_ == null) { instance_ = builderForValue.build(); onChanged(); @@ -779,18 +897,24 @@ public Builder setInstance( return this; } /** + * + * *
      * Required. A Memcached Instance.
      * Only fields specified in update_mask are updated.
      * 
* - * .google.cloud.memcache.v1.Instance instance = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.memcache.v1.Instance instance = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder mergeInstance(com.google.cloud.memcache.v1.Instance value) { if (instanceBuilder_ == null) { if (instance_ != null) { instance_ = - com.google.cloud.memcache.v1.Instance.newBuilder(instance_).mergeFrom(value).buildPartial(); + com.google.cloud.memcache.v1.Instance.newBuilder(instance_) + .mergeFrom(value) + .buildPartial(); } else { instance_ = value; } @@ -802,12 +926,16 @@ public Builder mergeInstance(com.google.cloud.memcache.v1.Instance value) { return this; } /** + * + * *
      * Required. A Memcached Instance.
      * Only fields specified in update_mask are updated.
      * 
* - * .google.cloud.memcache.v1.Instance instance = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.memcache.v1.Instance instance = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder clearInstance() { if (instanceBuilder_ == null) { @@ -821,58 +949,74 @@ public Builder clearInstance() { return this; } /** + * + * *
      * Required. A Memcached Instance.
      * Only fields specified in update_mask are updated.
      * 
* - * .google.cloud.memcache.v1.Instance instance = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.memcache.v1.Instance instance = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.cloud.memcache.v1.Instance.Builder getInstanceBuilder() { - + onChanged(); return getInstanceFieldBuilder().getBuilder(); } /** + * + * *
      * Required. A Memcached Instance.
      * Only fields specified in update_mask are updated.
      * 
* - * .google.cloud.memcache.v1.Instance instance = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.memcache.v1.Instance instance = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.cloud.memcache.v1.InstanceOrBuilder getInstanceOrBuilder() { if (instanceBuilder_ != null) { return instanceBuilder_.getMessageOrBuilder(); } else { - return instance_ == null ? - com.google.cloud.memcache.v1.Instance.getDefaultInstance() : instance_; + return instance_ == null + ? com.google.cloud.memcache.v1.Instance.getDefaultInstance() + : instance_; } } /** + * + * *
      * Required. A Memcached Instance.
      * Only fields specified in update_mask are updated.
      * 
* - * .google.cloud.memcache.v1.Instance instance = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.memcache.v1.Instance instance = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.memcache.v1.Instance, com.google.cloud.memcache.v1.Instance.Builder, com.google.cloud.memcache.v1.InstanceOrBuilder> + com.google.cloud.memcache.v1.Instance, + com.google.cloud.memcache.v1.Instance.Builder, + com.google.cloud.memcache.v1.InstanceOrBuilder> getInstanceFieldBuilder() { if (instanceBuilder_ == null) { - instanceBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.memcache.v1.Instance, com.google.cloud.memcache.v1.Instance.Builder, com.google.cloud.memcache.v1.InstanceOrBuilder>( - getInstance(), - getParentForChildren(), - isClean()); + instanceBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.memcache.v1.Instance, + com.google.cloud.memcache.v1.Instance.Builder, + com.google.cloud.memcache.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); } @@ -882,12 +1026,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.memcache.v1.UpdateInstanceRequest) } // @@protoc_insertion_point(class_scope:google.cloud.memcache.v1.UpdateInstanceRequest) private static final com.google.cloud.memcache.v1.UpdateInstanceRequest DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.memcache.v1.UpdateInstanceRequest(); } @@ -896,16 +1040,16 @@ public static com.google.cloud.memcache.v1.UpdateInstanceRequest getDefaultInsta 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; @@ -920,6 +1064,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.memcache.v1.UpdateInstanceRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1/proto-google-cloud-memcache-v1/src/main/java/com/google/cloud/memcache/v1/UpdateInstanceRequestOrBuilder.java b/proto-google-cloud-memcache-v1/src/main/java/com/google/cloud/memcache/v1/UpdateInstanceRequestOrBuilder.java similarity index 57% rename from owl-bot-staging/v1/proto-google-cloud-memcache-v1/src/main/java/com/google/cloud/memcache/v1/UpdateInstanceRequestOrBuilder.java rename to proto-google-cloud-memcache-v1/src/main/java/com/google/cloud/memcache/v1/UpdateInstanceRequestOrBuilder.java index bde742e0..657bd5f5 100644 --- a/owl-bot-staging/v1/proto-google-cloud-memcache-v1/src/main/java/com/google/cloud/memcache/v1/UpdateInstanceRequestOrBuilder.java +++ b/proto-google-cloud-memcache-v1/src/main/java/com/google/cloud/memcache/v1/UpdateInstanceRequestOrBuilder.java @@ -1,69 +1,110 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/memcache/v1/cloud_memcache.proto package com.google.cloud.memcache.v1; -public interface UpdateInstanceRequestOrBuilder extends +public interface UpdateInstanceRequestOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.memcache.v1.UpdateInstanceRequest) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Required. Mask of fields to update.
    *  *   `displayName`
    * 
* - * .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.
    *  *   `displayName`
    * 
* - * .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.
    *  *   `displayName`
    * 
* - * .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. A Memcached Instance.
    * Only fields specified in update_mask are updated.
    * 
* - * .google.cloud.memcache.v1.Instance instance = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.memcache.v1.Instance instance = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the instance field is set. */ boolean hasInstance(); /** + * + * *
    * Required. A Memcached Instance.
    * Only fields specified in update_mask are updated.
    * 
* - * .google.cloud.memcache.v1.Instance instance = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.memcache.v1.Instance instance = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The instance. */ com.google.cloud.memcache.v1.Instance getInstance(); /** + * + * *
    * Required. A Memcached Instance.
    * Only fields specified in update_mask are updated.
    * 
* - * .google.cloud.memcache.v1.Instance instance = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.memcache.v1.Instance instance = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ com.google.cloud.memcache.v1.InstanceOrBuilder getInstanceOrBuilder(); } diff --git a/owl-bot-staging/v1/proto-google-cloud-memcache-v1/src/main/java/com/google/cloud/memcache/v1/UpdateParametersRequest.java b/proto-google-cloud-memcache-v1/src/main/java/com/google/cloud/memcache/v1/UpdateParametersRequest.java similarity index 67% rename from owl-bot-staging/v1/proto-google-cloud-memcache-v1/src/main/java/com/google/cloud/memcache/v1/UpdateParametersRequest.java rename to proto-google-cloud-memcache-v1/src/main/java/com/google/cloud/memcache/v1/UpdateParametersRequest.java index 39988baa..0d3e5de9 100644 --- a/owl-bot-staging/v1/proto-google-cloud-memcache-v1/src/main/java/com/google/cloud/memcache/v1/UpdateParametersRequest.java +++ b/proto-google-cloud-memcache-v1/src/main/java/com/google/cloud/memcache/v1/UpdateParametersRequest.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/memcache/v1/cloud_memcache.proto package com.google.cloud.memcache.v1; /** + * + * *
  * Request for [UpdateParameters][google.cloud.memcache.v1.CloudMemcache.UpdateParameters].
  * 
* * Protobuf type {@code google.cloud.memcache.v1.UpdateParametersRequest} */ -public final class UpdateParametersRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class UpdateParametersRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.memcache.v1.UpdateParametersRequest) UpdateParametersRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use UpdateParametersRequest.newBuilder() to construct. private UpdateParametersRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private UpdateParametersRequest() { name_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new UpdateParametersRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private UpdateParametersRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -53,45 +70,51 @@ private UpdateParametersRequest( case 0: done = true; break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); - name_ = s; - break; - } - case 18: { - com.google.protobuf.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(); + name_ = s; + break; } + case 18: + { + 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 26: { - com.google.cloud.memcache.v1.MemcacheParameters.Builder subBuilder = null; - if (parameters_ != null) { - subBuilder = parameters_.toBuilder(); - } - parameters_ = input.readMessage(com.google.cloud.memcache.v1.MemcacheParameters.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(parameters_); - parameters_ = subBuilder.buildPartial(); + break; } + case 26: + { + com.google.cloud.memcache.v1.MemcacheParameters.Builder subBuilder = null; + if (parameters_ != null) { + subBuilder = parameters_.toBuilder(); + } + parameters_ = + input.readMessage( + com.google.cloud.memcache.v1.MemcacheParameters.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(parameters_); + parameters_ = 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) { @@ -99,35 +122,42 @@ private UpdateParametersRequest( } 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.memcache.v1.CloudMemcacheProto.internal_static_google_cloud_memcache_v1_UpdateParametersRequest_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.memcache.v1.CloudMemcacheProto + .internal_static_google_cloud_memcache_v1_UpdateParametersRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.memcache.v1.CloudMemcacheProto.internal_static_google_cloud_memcache_v1_UpdateParametersRequest_fieldAccessorTable + return com.google.cloud.memcache.v1.CloudMemcacheProto + .internal_static_google_cloud_memcache_v1_UpdateParametersRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.memcache.v1.UpdateParametersRequest.class, com.google.cloud.memcache.v1.UpdateParametersRequest.Builder.class); + com.google.cloud.memcache.v1.UpdateParametersRequest.class, + com.google.cloud.memcache.v1.UpdateParametersRequest.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** + * + * *
    * Required. Resource name of the Memcached instance for which the parameters should be
    * updated.
    * 
* - * string name = 1 [(.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,30 +166,32 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** + * + * *
    * Required. Resource name of the Memcached instance for which the parameters should be
    * updated.
    * 
* - * string name = 1 [(.google.api.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 { @@ -170,11 +202,15 @@ public java.lang.String getName() { public static final int UPDATE_MASK_FIELD_NUMBER = 2; private com.google.protobuf.FieldMask updateMask_; /** + * + * *
    * Required. Mask of fields to update.
    * 
* - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the updateMask field is set. */ @java.lang.Override @@ -182,11 +218,15 @@ public boolean hasUpdateMask() { return updateMask_ != null; } /** + * + * *
    * Required. Mask of fields to update.
    * 
* - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The updateMask. */ @java.lang.Override @@ -194,11 +234,14 @@ public com.google.protobuf.FieldMask getUpdateMask() { return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; } /** + * + * *
    * Required. Mask of fields to update.
    * 
* - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ @java.lang.Override public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { @@ -208,11 +251,14 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { public static final int PARAMETERS_FIELD_NUMBER = 3; private com.google.cloud.memcache.v1.MemcacheParameters parameters_; /** + * + * *
    * The parameters to apply to the instance.
    * 
* * .google.cloud.memcache.v1.MemcacheParameters parameters = 3; + * * @return Whether the parameters field is set. */ @java.lang.Override @@ -220,18 +266,25 @@ public boolean hasParameters() { return parameters_ != null; } /** + * + * *
    * The parameters to apply to the instance.
    * 
* * .google.cloud.memcache.v1.MemcacheParameters parameters = 3; + * * @return The parameters. */ @java.lang.Override public com.google.cloud.memcache.v1.MemcacheParameters getParameters() { - return parameters_ == null ? com.google.cloud.memcache.v1.MemcacheParameters.getDefaultInstance() : parameters_; + return parameters_ == null + ? com.google.cloud.memcache.v1.MemcacheParameters.getDefaultInstance() + : parameters_; } /** + * + * *
    * The parameters to apply to the instance.
    * 
@@ -244,6 +297,7 @@ public com.google.cloud.memcache.v1.MemcacheParametersOrBuilder getParametersOrB } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -255,8 +309,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -279,12 +332,10 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); } if (updateMask_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getUpdateMask()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getUpdateMask()); } if (parameters_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(3, getParameters()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getParameters()); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -294,24 +345,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.memcache.v1.UpdateParametersRequest)) { return super.equals(obj); } - com.google.cloud.memcache.v1.UpdateParametersRequest other = (com.google.cloud.memcache.v1.UpdateParametersRequest) obj; + com.google.cloud.memcache.v1.UpdateParametersRequest other = + (com.google.cloud.memcache.v1.UpdateParametersRequest) obj; - if (!getName() - .equals(other.getName())) return false; + if (!getName().equals(other.getName())) return false; if (hasUpdateMask() != other.hasUpdateMask()) return false; if (hasUpdateMask()) { - if (!getUpdateMask() - .equals(other.getUpdateMask())) return false; + if (!getUpdateMask().equals(other.getUpdateMask())) return false; } if (hasParameters() != other.hasParameters()) return false; if (hasParameters()) { - if (!getParameters() - .equals(other.getParameters())) return false; + if (!getParameters().equals(other.getParameters())) return false; } if (!unknownFields.equals(other.unknownFields)) return false; return true; @@ -340,117 +389,126 @@ public int hashCode() { } public static com.google.cloud.memcache.v1.UpdateParametersRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.memcache.v1.UpdateParametersRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.memcache.v1.UpdateParametersRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.memcache.v1.UpdateParametersRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.memcache.v1.UpdateParametersRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.memcache.v1.UpdateParametersRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.memcache.v1.UpdateParametersRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.memcache.v1.UpdateParametersRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.memcache.v1.UpdateParametersRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.memcache.v1.UpdateParametersRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.memcache.v1.UpdateParametersRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.memcache.v1.UpdateParametersRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.memcache.v1.UpdateParametersRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.memcache.v1.UpdateParametersRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.cloud.memcache.v1.UpdateParametersRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected 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 [UpdateParameters][google.cloud.memcache.v1.CloudMemcache.UpdateParameters].
    * 
* * Protobuf type {@code google.cloud.memcache.v1.UpdateParametersRequest} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.memcache.v1.UpdateParametersRequest) com.google.cloud.memcache.v1.UpdateParametersRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.memcache.v1.CloudMemcacheProto.internal_static_google_cloud_memcache_v1_UpdateParametersRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.memcache.v1.CloudMemcacheProto + .internal_static_google_cloud_memcache_v1_UpdateParametersRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.memcache.v1.CloudMemcacheProto.internal_static_google_cloud_memcache_v1_UpdateParametersRequest_fieldAccessorTable + return com.google.cloud.memcache.v1.CloudMemcacheProto + .internal_static_google_cloud_memcache_v1_UpdateParametersRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.memcache.v1.UpdateParametersRequest.class, com.google.cloud.memcache.v1.UpdateParametersRequest.Builder.class); + com.google.cloud.memcache.v1.UpdateParametersRequest.class, + com.google.cloud.memcache.v1.UpdateParametersRequest.Builder.class); } // Construct using com.google.cloud.memcache.v1.UpdateParametersRequest.newBuilder() @@ -458,16 +516,15 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); 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 +546,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.memcache.v1.CloudMemcacheProto.internal_static_google_cloud_memcache_v1_UpdateParametersRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.memcache.v1.CloudMemcacheProto + .internal_static_google_cloud_memcache_v1_UpdateParametersRequest_descriptor; } @java.lang.Override @@ -510,7 +567,8 @@ public com.google.cloud.memcache.v1.UpdateParametersRequest build() { @java.lang.Override public com.google.cloud.memcache.v1.UpdateParametersRequest buildPartial() { - com.google.cloud.memcache.v1.UpdateParametersRequest result = new com.google.cloud.memcache.v1.UpdateParametersRequest(this); + com.google.cloud.memcache.v1.UpdateParametersRequest result = + new com.google.cloud.memcache.v1.UpdateParametersRequest(this); result.name_ = name_; if (updateMaskBuilder_ == null) { result.updateMask_ = updateMask_; @@ -530,38 +588,39 @@ public com.google.cloud.memcache.v1.UpdateParametersRequest buildPartial() { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.memcache.v1.UpdateParametersRequest) { - return mergeFrom((com.google.cloud.memcache.v1.UpdateParametersRequest)other); + return mergeFrom((com.google.cloud.memcache.v1.UpdateParametersRequest) other); } else { super.mergeFrom(other); return this; @@ -569,7 +628,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.memcache.v1.UpdateParametersRequest other) { - if (other == com.google.cloud.memcache.v1.UpdateParametersRequest.getDefaultInstance()) return this; + if (other == com.google.cloud.memcache.v1.UpdateParametersRequest.getDefaultInstance()) + return this; if (!other.getName().isEmpty()) { name_ = other.name_; onChanged(); @@ -599,7 +659,8 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.memcache.v1.UpdateParametersRequest) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.memcache.v1.UpdateParametersRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -611,19 +672,23 @@ public Builder mergeFrom( private java.lang.Object name_ = ""; /** + * + * *
      * Required. Resource name of the Memcached instance for which the parameters should be
      * updated.
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -632,21 +697,24 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. Resource name of the Memcached instance for which the parameters should be
      * updated.
      * 
* - * string name = 1 [(.google.api.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 { @@ -654,57 +722,70 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. Resource name of the Memcached instance for which the parameters should be
      * updated.
      * 
* - * 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. Resource name of the Memcached instance for which the parameters should be
      * updated.
      * 
* - * string 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. Resource name of the Memcached instance for which the parameters should be
      * updated.
      * 
* - * 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; @@ -712,39 +793,55 @@ public Builder setNameBytes( 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.
      * 
* - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * .google.protobuf.FieldMask update_mask = 2 [(.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.
      * 
* - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * .google.protobuf.FieldMask update_mask = 2 [(.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.
      * 
* - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder setUpdateMask(com.google.protobuf.FieldMask value) { if (updateMaskBuilder_ == null) { @@ -760,14 +857,16 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask value) { return this; } /** + * + * *
      * Required. Mask of fields to update.
      * 
* - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * .google.protobuf.FieldMask update_mask = 2 [(.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(); @@ -778,17 +877,20 @@ public Builder setUpdateMask( return this; } /** + * + * *
      * Required. Mask of fields to update.
      * 
* - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * .google.protobuf.FieldMask update_mask = 2 [(.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; } @@ -800,11 +902,14 @@ public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) { return this; } /** + * + * *
      * Required. Mask of fields to update.
      * 
* - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder clearUpdateMask() { if (updateMaskBuilder_ == null) { @@ -818,48 +923,61 @@ public Builder clearUpdateMask() { return this; } /** + * + * *
      * Required. Mask of fields to update.
      * 
* - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() { - + onChanged(); return getUpdateMaskFieldBuilder().getBuilder(); } /** + * + * *
      * Required. Mask of fields to update.
      * 
* - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * .google.protobuf.FieldMask update_mask = 2 [(.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.
      * 
* - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * .google.protobuf.FieldMask update_mask = 2 [(.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_; @@ -867,34 +985,47 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { private com.google.cloud.memcache.v1.MemcacheParameters parameters_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.memcache.v1.MemcacheParameters, com.google.cloud.memcache.v1.MemcacheParameters.Builder, com.google.cloud.memcache.v1.MemcacheParametersOrBuilder> parametersBuilder_; + com.google.cloud.memcache.v1.MemcacheParameters, + com.google.cloud.memcache.v1.MemcacheParameters.Builder, + com.google.cloud.memcache.v1.MemcacheParametersOrBuilder> + parametersBuilder_; /** + * + * *
      * The parameters to apply to the instance.
      * 
* * .google.cloud.memcache.v1.MemcacheParameters parameters = 3; + * * @return Whether the parameters field is set. */ public boolean hasParameters() { return parametersBuilder_ != null || parameters_ != null; } /** + * + * *
      * The parameters to apply to the instance.
      * 
* * .google.cloud.memcache.v1.MemcacheParameters parameters = 3; + * * @return The parameters. */ public com.google.cloud.memcache.v1.MemcacheParameters getParameters() { if (parametersBuilder_ == null) { - return parameters_ == null ? com.google.cloud.memcache.v1.MemcacheParameters.getDefaultInstance() : parameters_; + return parameters_ == null + ? com.google.cloud.memcache.v1.MemcacheParameters.getDefaultInstance() + : parameters_; } else { return parametersBuilder_.getMessage(); } } /** + * + * *
      * The parameters to apply to the instance.
      * 
@@ -915,6 +1046,8 @@ public Builder setParameters(com.google.cloud.memcache.v1.MemcacheParameters val return this; } /** + * + * *
      * The parameters to apply to the instance.
      * 
@@ -933,6 +1066,8 @@ public Builder setParameters( return this; } /** + * + * *
      * The parameters to apply to the instance.
      * 
@@ -943,7 +1078,9 @@ public Builder mergeParameters(com.google.cloud.memcache.v1.MemcacheParameters v if (parametersBuilder_ == null) { if (parameters_ != null) { parameters_ = - com.google.cloud.memcache.v1.MemcacheParameters.newBuilder(parameters_).mergeFrom(value).buildPartial(); + com.google.cloud.memcache.v1.MemcacheParameters.newBuilder(parameters_) + .mergeFrom(value) + .buildPartial(); } else { parameters_ = value; } @@ -955,6 +1092,8 @@ public Builder mergeParameters(com.google.cloud.memcache.v1.MemcacheParameters v return this; } /** + * + * *
      * The parameters to apply to the instance.
      * 
@@ -973,6 +1112,8 @@ public Builder clearParameters() { return this; } /** + * + * *
      * The parameters to apply to the instance.
      * 
@@ -980,11 +1121,13 @@ public Builder clearParameters() { * .google.cloud.memcache.v1.MemcacheParameters parameters = 3; */ public com.google.cloud.memcache.v1.MemcacheParameters.Builder getParametersBuilder() { - + onChanged(); return getParametersFieldBuilder().getBuilder(); } /** + * + * *
      * The parameters to apply to the instance.
      * 
@@ -995,11 +1138,14 @@ public com.google.cloud.memcache.v1.MemcacheParametersOrBuilder getParametersOrB if (parametersBuilder_ != null) { return parametersBuilder_.getMessageOrBuilder(); } else { - return parameters_ == null ? - com.google.cloud.memcache.v1.MemcacheParameters.getDefaultInstance() : parameters_; + return parameters_ == null + ? com.google.cloud.memcache.v1.MemcacheParameters.getDefaultInstance() + : parameters_; } } /** + * + * *
      * The parameters to apply to the instance.
      * 
@@ -1007,21 +1153,24 @@ public com.google.cloud.memcache.v1.MemcacheParametersOrBuilder getParametersOrB * .google.cloud.memcache.v1.MemcacheParameters parameters = 3; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.memcache.v1.MemcacheParameters, com.google.cloud.memcache.v1.MemcacheParameters.Builder, com.google.cloud.memcache.v1.MemcacheParametersOrBuilder> + com.google.cloud.memcache.v1.MemcacheParameters, + com.google.cloud.memcache.v1.MemcacheParameters.Builder, + com.google.cloud.memcache.v1.MemcacheParametersOrBuilder> getParametersFieldBuilder() { if (parametersBuilder_ == null) { - parametersBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.memcache.v1.MemcacheParameters, com.google.cloud.memcache.v1.MemcacheParameters.Builder, com.google.cloud.memcache.v1.MemcacheParametersOrBuilder>( - getParameters(), - getParentForChildren(), - isClean()); + parametersBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.memcache.v1.MemcacheParameters, + com.google.cloud.memcache.v1.MemcacheParameters.Builder, + com.google.cloud.memcache.v1.MemcacheParametersOrBuilder>( + getParameters(), getParentForChildren(), isClean()); parameters_ = null; } return parametersBuilder_; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1031,12 +1180,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.memcache.v1.UpdateParametersRequest) } // @@protoc_insertion_point(class_scope:google.cloud.memcache.v1.UpdateParametersRequest) private static final com.google.cloud.memcache.v1.UpdateParametersRequest DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.memcache.v1.UpdateParametersRequest(); } @@ -1045,16 +1194,16 @@ public static com.google.cloud.memcache.v1.UpdateParametersRequest getDefaultIns return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public UpdateParametersRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new UpdateParametersRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public UpdateParametersRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new UpdateParametersRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1069,6 +1218,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.memcache.v1.UpdateParametersRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1/proto-google-cloud-memcache-v1/src/main/java/com/google/cloud/memcache/v1/UpdateParametersRequestOrBuilder.java b/proto-google-cloud-memcache-v1/src/main/java/com/google/cloud/memcache/v1/UpdateParametersRequestOrBuilder.java similarity index 63% rename from owl-bot-staging/v1/proto-google-cloud-memcache-v1/src/main/java/com/google/cloud/memcache/v1/UpdateParametersRequestOrBuilder.java rename to proto-google-cloud-memcache-v1/src/main/java/com/google/cloud/memcache/v1/UpdateParametersRequestOrBuilder.java index 0a08e55c..3c76cc6c 100644 --- a/owl-bot-staging/v1/proto-google-cloud-memcache-v1/src/main/java/com/google/cloud/memcache/v1/UpdateParametersRequestOrBuilder.java +++ b/proto-google-cloud-memcache-v1/src/main/java/com/google/cloud/memcache/v1/UpdateParametersRequestOrBuilder.java @@ -1,80 +1,124 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/memcache/v1/cloud_memcache.proto package com.google.cloud.memcache.v1; -public interface UpdateParametersRequestOrBuilder extends +public interface UpdateParametersRequestOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.memcache.v1.UpdateParametersRequest) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Required. Resource name of the Memcached instance for which the parameters should be
    * updated.
    * 
* - * string name = 1 [(.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. Resource name of the Memcached instance for which the parameters should be
    * updated.
    * 
* - * string name = 1 [(.google.api.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. Mask of fields to update.
    * 
* - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the updateMask field is set. */ boolean hasUpdateMask(); /** + * + * *
    * Required. Mask of fields to update.
    * 
* - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The updateMask. */ com.google.protobuf.FieldMask getUpdateMask(); /** + * + * *
    * Required. Mask of fields to update.
    * 
* - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder(); /** + * + * *
    * The parameters to apply to the instance.
    * 
* * .google.cloud.memcache.v1.MemcacheParameters parameters = 3; + * * @return Whether the parameters field is set. */ boolean hasParameters(); /** + * + * *
    * The parameters to apply to the instance.
    * 
* * .google.cloud.memcache.v1.MemcacheParameters parameters = 3; + * * @return The parameters. */ com.google.cloud.memcache.v1.MemcacheParameters getParameters(); /** + * + * *
    * The parameters to apply to the instance.
    * 
diff --git a/owl-bot-staging/v1/proto-google-cloud-memcache-v1/src/main/proto/google/cloud/memcache/v1/cloud_memcache.proto b/proto-google-cloud-memcache-v1/src/main/proto/google/cloud/memcache/v1/cloud_memcache.proto similarity index 100% rename from owl-bot-staging/v1/proto-google-cloud-memcache-v1/src/main/proto/google/cloud/memcache/v1/cloud_memcache.proto rename to proto-google-cloud-memcache-v1/src/main/proto/google/cloud/memcache/v1/cloud_memcache.proto diff --git a/owl-bot-staging/v1beta2/proto-google-cloud-memcache-v1beta2/src/main/java/com/google/cloud/memcache/v1beta2/ApplyParametersRequest.java b/proto-google-cloud-memcache-v1beta2/src/main/java/com/google/cloud/memcache/v1beta2/ApplyParametersRequest.java similarity index 70% rename from owl-bot-staging/v1beta2/proto-google-cloud-memcache-v1beta2/src/main/java/com/google/cloud/memcache/v1beta2/ApplyParametersRequest.java rename to proto-google-cloud-memcache-v1beta2/src/main/java/com/google/cloud/memcache/v1beta2/ApplyParametersRequest.java index 7bf92066..ff3f8863 100644 --- a/owl-bot-staging/v1beta2/proto-google-cloud-memcache-v1beta2/src/main/java/com/google/cloud/memcache/v1beta2/ApplyParametersRequest.java +++ b/proto-google-cloud-memcache-v1beta2/src/main/java/com/google/cloud/memcache/v1beta2/ApplyParametersRequest.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/memcache/v1beta2/cloud_memcache.proto package com.google.cloud.memcache.v1beta2; /** + * + * *
  * Request for [ApplyParameters][google.cloud.memcache.v1beta2.CloudMemcache.ApplyParameters].
  * 
* * Protobuf type {@code google.cloud.memcache.v1beta2.ApplyParametersRequest} */ -public final class ApplyParametersRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class ApplyParametersRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.memcache.v1beta2.ApplyParametersRequest) ApplyParametersRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use ApplyParametersRequest.newBuilder() to construct. private ApplyParametersRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private ApplyParametersRequest() { name_ = ""; nodeIds_ = com.google.protobuf.LazyStringArrayList.EMPTY; @@ -26,16 +44,15 @@ private ApplyParametersRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new ApplyParametersRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private ApplyParametersRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -55,33 +72,35 @@ private ApplyParametersRequest( 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(); - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - nodeIds_ = new com.google.protobuf.LazyStringArrayList(); - mutable_bitField0_ |= 0x00000001; + name_ = s; + break; } - nodeIds_.add(s); - break; - } - case 24: { - - applyAll_ = input.readBool(); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + nodeIds_ = new com.google.protobuf.LazyStringArrayList(); + mutable_bitField0_ |= 0x00000001; + } + nodeIds_.add(s); + break; + } + case 24: + { + applyAll_ = input.readBool(); + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -89,8 +108,7 @@ private ApplyParametersRequest( } 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)) { nodeIds_ = nodeIds_.getUnmodifiableView(); @@ -99,28 +117,36 @@ private ApplyParametersRequest( makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.memcache.v1beta2.CloudMemcacheProto.internal_static_google_cloud_memcache_v1beta2_ApplyParametersRequest_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.memcache.v1beta2.CloudMemcacheProto + .internal_static_google_cloud_memcache_v1beta2_ApplyParametersRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.memcache.v1beta2.CloudMemcacheProto.internal_static_google_cloud_memcache_v1beta2_ApplyParametersRequest_fieldAccessorTable + return com.google.cloud.memcache.v1beta2.CloudMemcacheProto + .internal_static_google_cloud_memcache_v1beta2_ApplyParametersRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.memcache.v1beta2.ApplyParametersRequest.class, com.google.cloud.memcache.v1beta2.ApplyParametersRequest.Builder.class); + com.google.cloud.memcache.v1beta2.ApplyParametersRequest.class, + com.google.cloud.memcache.v1beta2.ApplyParametersRequest.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** + * + * *
    * Required. Resource name of the Memcached instance for which parameter group updates
    * should be applied.
    * 
* - * string name = 1 [(.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 @@ -129,30 +155,32 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** + * + * *
    * Required. Resource name of the Memcached instance for which parameter group updates
    * should be applied.
    * 
* - * string name = 1 [(.google.api.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 { @@ -163,34 +191,42 @@ public java.lang.String getName() { public static final int NODE_IDS_FIELD_NUMBER = 2; private com.google.protobuf.LazyStringList nodeIds_; /** + * + * *
    * Nodes to which the instance-level parameter group is applied.
    * 
* * repeated string node_ids = 2; + * * @return A list containing the nodeIds. */ - public com.google.protobuf.ProtocolStringList - getNodeIdsList() { + public com.google.protobuf.ProtocolStringList getNodeIdsList() { return nodeIds_; } /** + * + * *
    * Nodes to which the instance-level parameter group is applied.
    * 
* * repeated string node_ids = 2; + * * @return The count of nodeIds. */ public int getNodeIdsCount() { return nodeIds_.size(); } /** + * + * *
    * Nodes to which the instance-level parameter group is applied.
    * 
* * repeated string node_ids = 2; + * * @param index The index of the element to return. * @return The nodeIds at the given index. */ @@ -198,22 +234,26 @@ public java.lang.String getNodeIds(int index) { return nodeIds_.get(index); } /** + * + * *
    * Nodes to which the instance-level parameter group is applied.
    * 
* * repeated string node_ids = 2; + * * @param index The index of the value to return. * @return The bytes of the nodeIds at the given index. */ - public com.google.protobuf.ByteString - getNodeIdsBytes(int index) { + public com.google.protobuf.ByteString getNodeIdsBytes(int index) { return nodeIds_.getByteString(index); } public static final int APPLY_ALL_FIELD_NUMBER = 3; private boolean applyAll_; /** + * + * *
    * Whether to apply instance-level parameter group to all nodes. If set to
    * true, users are restricted from specifying individual nodes, and
@@ -221,6 +261,7 @@ public java.lang.String getNodeIds(int index) {
    * 
* * bool apply_all = 3; + * * @return The applyAll. */ @java.lang.Override @@ -229,6 +270,7 @@ public boolean getApplyAll() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -240,8 +282,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -272,8 +313,7 @@ public int getSerializedSize() { size += 1 * getNodeIdsList().size(); } if (applyAll_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(3, applyAll_); + size += com.google.protobuf.CodedOutputStream.computeBoolSize(3, applyAll_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -283,19 +323,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.memcache.v1beta2.ApplyParametersRequest)) { return super.equals(obj); } - com.google.cloud.memcache.v1beta2.ApplyParametersRequest other = (com.google.cloud.memcache.v1beta2.ApplyParametersRequest) obj; + com.google.cloud.memcache.v1beta2.ApplyParametersRequest other = + (com.google.cloud.memcache.v1beta2.ApplyParametersRequest) obj; - if (!getName() - .equals(other.getName())) return false; - if (!getNodeIdsList() - .equals(other.getNodeIdsList())) return false; - if (getApplyAll() - != other.getApplyAll()) return false; + if (!getName().equals(other.getName())) return false; + if (!getNodeIdsList().equals(other.getNodeIdsList())) return false; + if (getApplyAll() != other.getApplyAll()) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -314,125 +352,134 @@ public int hashCode() { hash = (53 * hash) + getNodeIdsList().hashCode(); } hash = (37 * hash) + APPLY_ALL_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getApplyAll()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getApplyAll()); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static com.google.cloud.memcache.v1beta2.ApplyParametersRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.memcache.v1beta2.ApplyParametersRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.memcache.v1beta2.ApplyParametersRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.memcache.v1beta2.ApplyParametersRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.memcache.v1beta2.ApplyParametersRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.memcache.v1beta2.ApplyParametersRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.memcache.v1beta2.ApplyParametersRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.memcache.v1beta2.ApplyParametersRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.memcache.v1beta2.ApplyParametersRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.memcache.v1beta2.ApplyParametersRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.memcache.v1beta2.ApplyParametersRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.memcache.v1beta2.ApplyParametersRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.memcache.v1beta2.ApplyParametersRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.memcache.v1beta2.ApplyParametersRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.memcache.v1beta2.ApplyParametersRequest prototype) { + + public static Builder newBuilder( + com.google.cloud.memcache.v1beta2.ApplyParametersRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected 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 [ApplyParameters][google.cloud.memcache.v1beta2.CloudMemcache.ApplyParameters].
    * 
* * Protobuf type {@code google.cloud.memcache.v1beta2.ApplyParametersRequest} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.memcache.v1beta2.ApplyParametersRequest) com.google.cloud.memcache.v1beta2.ApplyParametersRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.memcache.v1beta2.CloudMemcacheProto.internal_static_google_cloud_memcache_v1beta2_ApplyParametersRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.memcache.v1beta2.CloudMemcacheProto + .internal_static_google_cloud_memcache_v1beta2_ApplyParametersRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.memcache.v1beta2.CloudMemcacheProto.internal_static_google_cloud_memcache_v1beta2_ApplyParametersRequest_fieldAccessorTable + return com.google.cloud.memcache.v1beta2.CloudMemcacheProto + .internal_static_google_cloud_memcache_v1beta2_ApplyParametersRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.memcache.v1beta2.ApplyParametersRequest.class, com.google.cloud.memcache.v1beta2.ApplyParametersRequest.Builder.class); + com.google.cloud.memcache.v1beta2.ApplyParametersRequest.class, + com.google.cloud.memcache.v1beta2.ApplyParametersRequest.Builder.class); } // Construct using com.google.cloud.memcache.v1beta2.ApplyParametersRequest.newBuilder() @@ -440,16 +487,15 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -463,9 +509,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.memcache.v1beta2.CloudMemcacheProto.internal_static_google_cloud_memcache_v1beta2_ApplyParametersRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.memcache.v1beta2.CloudMemcacheProto + .internal_static_google_cloud_memcache_v1beta2_ApplyParametersRequest_descriptor; } @java.lang.Override @@ -484,7 +530,8 @@ public com.google.cloud.memcache.v1beta2.ApplyParametersRequest build() { @java.lang.Override public com.google.cloud.memcache.v1beta2.ApplyParametersRequest buildPartial() { - com.google.cloud.memcache.v1beta2.ApplyParametersRequest result = new com.google.cloud.memcache.v1beta2.ApplyParametersRequest(this); + com.google.cloud.memcache.v1beta2.ApplyParametersRequest result = + new com.google.cloud.memcache.v1beta2.ApplyParametersRequest(this); int from_bitField0_ = bitField0_; result.name_ = name_; if (((bitField0_ & 0x00000001) != 0)) { @@ -501,38 +548,39 @@ public com.google.cloud.memcache.v1beta2.ApplyParametersRequest buildPartial() { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.memcache.v1beta2.ApplyParametersRequest) { - return mergeFrom((com.google.cloud.memcache.v1beta2.ApplyParametersRequest)other); + return mergeFrom((com.google.cloud.memcache.v1beta2.ApplyParametersRequest) other); } else { super.mergeFrom(other); return this; @@ -540,7 +588,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.memcache.v1beta2.ApplyParametersRequest other) { - if (other == com.google.cloud.memcache.v1beta2.ApplyParametersRequest.getDefaultInstance()) return this; + if (other == com.google.cloud.memcache.v1beta2.ApplyParametersRequest.getDefaultInstance()) + return this; if (!other.getName().isEmpty()) { name_ = other.name_; onChanged(); @@ -577,7 +626,8 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.memcache.v1beta2.ApplyParametersRequest) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.memcache.v1beta2.ApplyParametersRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -586,23 +636,28 @@ public Builder mergeFrom( } return this; } + private int bitField0_; private java.lang.Object name_ = ""; /** + * + * *
      * Required. Resource name of the Memcached instance for which parameter group updates
      * should be applied.
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -611,21 +666,24 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. Resource name of the Memcached instance for which parameter group updates
      * should be applied.
      * 
* - * string name = 1 [(.google.api.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 { @@ -633,98 +691,121 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. Resource name of the Memcached instance for which parameter group updates
      * should be applied.
      * 
* - * 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. Resource name of the Memcached instance for which parameter group updates
      * should be applied.
      * 
* - * string 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. Resource name of the Memcached instance for which parameter group updates
      * should be applied.
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes( - com.google.protobuf.ByteString value) { + public Builder setNameBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; onChanged(); return this; } - private com.google.protobuf.LazyStringList nodeIds_ = com.google.protobuf.LazyStringArrayList.EMPTY; + private com.google.protobuf.LazyStringList nodeIds_ = + com.google.protobuf.LazyStringArrayList.EMPTY; + private void ensureNodeIdsIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { nodeIds_ = new com.google.protobuf.LazyStringArrayList(nodeIds_); bitField0_ |= 0x00000001; - } + } } /** + * + * *
      * Nodes to which the instance-level parameter group is applied.
      * 
* * repeated string node_ids = 2; + * * @return A list containing the nodeIds. */ - public com.google.protobuf.ProtocolStringList - getNodeIdsList() { + public com.google.protobuf.ProtocolStringList getNodeIdsList() { return nodeIds_.getUnmodifiableView(); } /** + * + * *
      * Nodes to which the instance-level parameter group is applied.
      * 
* * repeated string node_ids = 2; + * * @return The count of nodeIds. */ public int getNodeIdsCount() { return nodeIds_.size(); } /** + * + * *
      * Nodes to which the instance-level parameter group is applied.
      * 
* * repeated string node_ids = 2; + * * @param index The index of the element to return. * @return The nodeIds at the given index. */ @@ -732,80 +813,90 @@ public java.lang.String getNodeIds(int index) { return nodeIds_.get(index); } /** + * + * *
      * Nodes to which the instance-level parameter group is applied.
      * 
* * repeated string node_ids = 2; + * * @param index The index of the value to return. * @return The bytes of the nodeIds at the given index. */ - public com.google.protobuf.ByteString - getNodeIdsBytes(int index) { + public com.google.protobuf.ByteString getNodeIdsBytes(int index) { return nodeIds_.getByteString(index); } /** + * + * *
      * Nodes to which the instance-level parameter group is applied.
      * 
* * repeated string node_ids = 2; + * * @param index The index to set the value at. * @param value The nodeIds to set. * @return This builder for chaining. */ - public Builder setNodeIds( - int index, java.lang.String value) { + public Builder setNodeIds(int index, java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureNodeIdsIsMutable(); + throw new NullPointerException(); + } + ensureNodeIdsIsMutable(); nodeIds_.set(index, value); onChanged(); return this; } /** + * + * *
      * Nodes to which the instance-level parameter group is applied.
      * 
* * repeated string node_ids = 2; + * * @param value The nodeIds to add. * @return This builder for chaining. */ - public Builder addNodeIds( - java.lang.String value) { + public Builder addNodeIds(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureNodeIdsIsMutable(); + throw new NullPointerException(); + } + ensureNodeIdsIsMutable(); nodeIds_.add(value); onChanged(); return this; } /** + * + * *
      * Nodes to which the instance-level parameter group is applied.
      * 
* * repeated string node_ids = 2; + * * @param values The nodeIds to add. * @return This builder for chaining. */ - public Builder addAllNodeIds( - java.lang.Iterable values) { + public Builder addAllNodeIds(java.lang.Iterable values) { ensureNodeIdsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, nodeIds_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, nodeIds_); onChanged(); return this; } /** + * + * *
      * Nodes to which the instance-level parameter group is applied.
      * 
* * repeated string node_ids = 2; + * * @return This builder for chaining. */ public Builder clearNodeIds() { @@ -815,28 +906,32 @@ public Builder clearNodeIds() { return this; } /** + * + * *
      * Nodes to which the instance-level parameter group is applied.
      * 
* * repeated string node_ids = 2; + * * @param value The bytes of the nodeIds to add. * @return This builder for chaining. */ - public Builder addNodeIdsBytes( - com.google.protobuf.ByteString value) { + public Builder addNodeIdsBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); ensureNodeIdsIsMutable(); nodeIds_.add(value); onChanged(); return this; } - private boolean applyAll_ ; + private boolean applyAll_; /** + * + * *
      * Whether to apply instance-level parameter group to all nodes. If set to
      * true, users are restricted from specifying individual nodes, and
@@ -844,6 +939,7 @@ public Builder addNodeIdsBytes(
      * 
* * bool apply_all = 3; + * * @return The applyAll. */ @java.lang.Override @@ -851,6 +947,8 @@ public boolean getApplyAll() { return applyAll_; } /** + * + * *
      * Whether to apply instance-level parameter group to all nodes. If set to
      * true, users are restricted from specifying individual nodes, and
@@ -858,16 +956,19 @@ public boolean getApplyAll() {
      * 
* * bool apply_all = 3; + * * @param value The applyAll to set. * @return This builder for chaining. */ public Builder setApplyAll(boolean value) { - + applyAll_ = value; onChanged(); return this; } /** + * + * *
      * Whether to apply instance-level parameter group to all nodes. If set to
      * true, users are restricted from specifying individual nodes, and
@@ -875,17 +976,18 @@ public Builder setApplyAll(boolean value) {
      * 
* * bool apply_all = 3; + * * @return This builder for chaining. */ public Builder clearApplyAll() { - + applyAll_ = false; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -895,12 +997,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.memcache.v1beta2.ApplyParametersRequest) } // @@protoc_insertion_point(class_scope:google.cloud.memcache.v1beta2.ApplyParametersRequest) private static final com.google.cloud.memcache.v1beta2.ApplyParametersRequest DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.memcache.v1beta2.ApplyParametersRequest(); } @@ -909,16 +1011,16 @@ public static com.google.cloud.memcache.v1beta2.ApplyParametersRequest getDefaul return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ApplyParametersRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ApplyParametersRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ApplyParametersRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ApplyParametersRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -933,6 +1035,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.memcache.v1beta2.ApplyParametersRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1beta2/proto-google-cloud-memcache-v1beta2/src/main/java/com/google/cloud/memcache/v1beta2/ApplyParametersRequestOrBuilder.java b/proto-google-cloud-memcache-v1beta2/src/main/java/com/google/cloud/memcache/v1beta2/ApplyParametersRequestOrBuilder.java similarity index 63% rename from owl-bot-staging/v1beta2/proto-google-cloud-memcache-v1beta2/src/main/java/com/google/cloud/memcache/v1beta2/ApplyParametersRequestOrBuilder.java rename to proto-google-cloud-memcache-v1beta2/src/main/java/com/google/cloud/memcache/v1beta2/ApplyParametersRequestOrBuilder.java index d988d533..43e8902f 100644 --- a/owl-bot-staging/v1beta2/proto-google-cloud-memcache-v1beta2/src/main/java/com/google/cloud/memcache/v1beta2/ApplyParametersRequestOrBuilder.java +++ b/proto-google-cloud-memcache-v1beta2/src/main/java/com/google/cloud/memcache/v1beta2/ApplyParametersRequestOrBuilder.java @@ -1,76 +1,113 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/memcache/v1beta2/cloud_memcache.proto package com.google.cloud.memcache.v1beta2; -public interface ApplyParametersRequestOrBuilder extends +public interface ApplyParametersRequestOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.memcache.v1beta2.ApplyParametersRequest) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Required. Resource name of the Memcached instance for which parameter group updates
    * should be applied.
    * 
* - * string name = 1 [(.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. Resource name of the Memcached instance for which parameter group updates
    * should be applied.
    * 
* - * string name = 1 [(.google.api.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(); /** + * + * *
    * Nodes to which the instance-level parameter group is applied.
    * 
* * repeated string node_ids = 2; + * * @return A list containing the nodeIds. */ - java.util.List - getNodeIdsList(); + java.util.List getNodeIdsList(); /** + * + * *
    * Nodes to which the instance-level parameter group is applied.
    * 
* * repeated string node_ids = 2; + * * @return The count of nodeIds. */ int getNodeIdsCount(); /** + * + * *
    * Nodes to which the instance-level parameter group is applied.
    * 
* * repeated string node_ids = 2; + * * @param index The index of the element to return. * @return The nodeIds at the given index. */ java.lang.String getNodeIds(int index); /** + * + * *
    * Nodes to which the instance-level parameter group is applied.
    * 
* * repeated string node_ids = 2; + * * @param index The index of the value to return. * @return The bytes of the nodeIds at the given index. */ - com.google.protobuf.ByteString - getNodeIdsBytes(int index); + com.google.protobuf.ByteString getNodeIdsBytes(int index); /** + * + * *
    * Whether to apply instance-level parameter group to all nodes. If set to
    * true, users are restricted from specifying individual nodes, and
@@ -78,6 +115,7 @@ public interface ApplyParametersRequestOrBuilder extends
    * 
* * bool apply_all = 3; + * * @return The applyAll. */ boolean getApplyAll(); diff --git a/owl-bot-staging/v1beta2/proto-google-cloud-memcache-v1beta2/src/main/java/com/google/cloud/memcache/v1beta2/ApplySoftwareUpdateRequest.java b/proto-google-cloud-memcache-v1beta2/src/main/java/com/google/cloud/memcache/v1beta2/ApplySoftwareUpdateRequest.java similarity index 70% rename from owl-bot-staging/v1beta2/proto-google-cloud-memcache-v1beta2/src/main/java/com/google/cloud/memcache/v1beta2/ApplySoftwareUpdateRequest.java rename to proto-google-cloud-memcache-v1beta2/src/main/java/com/google/cloud/memcache/v1beta2/ApplySoftwareUpdateRequest.java index 944fa087..6eaa5601 100644 --- a/owl-bot-staging/v1beta2/proto-google-cloud-memcache-v1beta2/src/main/java/com/google/cloud/memcache/v1beta2/ApplySoftwareUpdateRequest.java +++ b/proto-google-cloud-memcache-v1beta2/src/main/java/com/google/cloud/memcache/v1beta2/ApplySoftwareUpdateRequest.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/memcache/v1beta2/cloud_memcache.proto package com.google.cloud.memcache.v1beta2; /** + * + * *
  * Request for [ApplySoftwareUpdate][google.cloud.memcache.v1beta2.CloudMemcache.ApplySoftwareUpdate].
  * 
* * Protobuf type {@code google.cloud.memcache.v1beta2.ApplySoftwareUpdateRequest} */ -public final class ApplySoftwareUpdateRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class ApplySoftwareUpdateRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.memcache.v1beta2.ApplySoftwareUpdateRequest) ApplySoftwareUpdateRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use ApplySoftwareUpdateRequest.newBuilder() to construct. private ApplySoftwareUpdateRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private ApplySoftwareUpdateRequest() { instance_ = ""; nodeIds_ = com.google.protobuf.LazyStringArrayList.EMPTY; @@ -26,16 +44,15 @@ private ApplySoftwareUpdateRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new ApplySoftwareUpdateRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private ApplySoftwareUpdateRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -55,33 +72,35 @@ private ApplySoftwareUpdateRequest( case 0: done = true; break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); - instance_ = s; - break; - } - case 18: { - java.lang.String s = input.readStringRequireUtf8(); - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - nodeIds_ = new com.google.protobuf.LazyStringArrayList(); - mutable_bitField0_ |= 0x00000001; + instance_ = s; + break; } - nodeIds_.add(s); - break; - } - case 24: { - - applyAll_ = input.readBool(); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + nodeIds_ = new com.google.protobuf.LazyStringArrayList(); + mutable_bitField0_ |= 0x00000001; + } + nodeIds_.add(s); + break; + } + case 24: + { + applyAll_ = input.readBool(); + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -89,8 +108,7 @@ private ApplySoftwareUpdateRequest( } 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)) { nodeIds_ = nodeIds_.getUnmodifiableView(); @@ -99,28 +117,36 @@ private ApplySoftwareUpdateRequest( makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.memcache.v1beta2.CloudMemcacheProto.internal_static_google_cloud_memcache_v1beta2_ApplySoftwareUpdateRequest_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.memcache.v1beta2.CloudMemcacheProto + .internal_static_google_cloud_memcache_v1beta2_ApplySoftwareUpdateRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.memcache.v1beta2.CloudMemcacheProto.internal_static_google_cloud_memcache_v1beta2_ApplySoftwareUpdateRequest_fieldAccessorTable + return com.google.cloud.memcache.v1beta2.CloudMemcacheProto + .internal_static_google_cloud_memcache_v1beta2_ApplySoftwareUpdateRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.memcache.v1beta2.ApplySoftwareUpdateRequest.class, com.google.cloud.memcache.v1beta2.ApplySoftwareUpdateRequest.Builder.class); + com.google.cloud.memcache.v1beta2.ApplySoftwareUpdateRequest.class, + com.google.cloud.memcache.v1beta2.ApplySoftwareUpdateRequest.Builder.class); } public static final int INSTANCE_FIELD_NUMBER = 1; private volatile java.lang.Object instance_; /** + * + * *
    * Required. Resource name of the Memcached instance for which software update should be
    * applied.
    * 
* - * string instance = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string instance = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The instance. */ @java.lang.Override @@ -129,30 +155,32 @@ public java.lang.String getInstance() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); instance_ = s; return s; } } /** + * + * *
    * Required. Resource name of the Memcached instance for which software update should be
    * applied.
    * 
* - * string instance = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string instance = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for instance. */ @java.lang.Override - public com.google.protobuf.ByteString - getInstanceBytes() { + public com.google.protobuf.ByteString getInstanceBytes() { java.lang.Object ref = instance_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); instance_ = b; return b; } else { @@ -163,37 +191,45 @@ public java.lang.String getInstance() { public static final int NODE_IDS_FIELD_NUMBER = 2; private com.google.protobuf.LazyStringList nodeIds_; /** + * + * *
    * Nodes to which we should apply the update to. Note all the selected nodes
    * are updated in parallel.
    * 
* * repeated string node_ids = 2; + * * @return A list containing the nodeIds. */ - public com.google.protobuf.ProtocolStringList - getNodeIdsList() { + public com.google.protobuf.ProtocolStringList getNodeIdsList() { return nodeIds_; } /** + * + * *
    * Nodes to which we should apply the update to. Note all the selected nodes
    * are updated in parallel.
    * 
* * repeated string node_ids = 2; + * * @return The count of nodeIds. */ public int getNodeIdsCount() { return nodeIds_.size(); } /** + * + * *
    * Nodes to which we should apply the update to. Note all the selected nodes
    * are updated in parallel.
    * 
* * repeated string node_ids = 2; + * * @param index The index of the element to return. * @return The nodeIds at the given index. */ @@ -201,23 +237,27 @@ public java.lang.String getNodeIds(int index) { return nodeIds_.get(index); } /** + * + * *
    * Nodes to which we should apply the update to. Note all the selected nodes
    * are updated in parallel.
    * 
* * repeated string node_ids = 2; + * * @param index The index of the value to return. * @return The bytes of the nodeIds at the given index. */ - public com.google.protobuf.ByteString - getNodeIdsBytes(int index) { + public com.google.protobuf.ByteString getNodeIdsBytes(int index) { return nodeIds_.getByteString(index); } public static final int APPLY_ALL_FIELD_NUMBER = 3; private boolean applyAll_; /** + * + * *
    * Whether to apply the update to all nodes. If set to
    * true, will explicitly restrict users from specifying any nodes, and apply
@@ -225,6 +265,7 @@ public java.lang.String getNodeIds(int index) {
    * 
* * bool apply_all = 3; + * * @return The applyAll. */ @java.lang.Override @@ -233,6 +274,7 @@ public boolean getApplyAll() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -244,8 +286,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(instance_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, instance_); } @@ -276,8 +317,7 @@ public int getSerializedSize() { size += 1 * getNodeIdsList().size(); } if (applyAll_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(3, applyAll_); + size += com.google.protobuf.CodedOutputStream.computeBoolSize(3, applyAll_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -287,19 +327,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.memcache.v1beta2.ApplySoftwareUpdateRequest)) { return super.equals(obj); } - com.google.cloud.memcache.v1beta2.ApplySoftwareUpdateRequest other = (com.google.cloud.memcache.v1beta2.ApplySoftwareUpdateRequest) obj; + com.google.cloud.memcache.v1beta2.ApplySoftwareUpdateRequest other = + (com.google.cloud.memcache.v1beta2.ApplySoftwareUpdateRequest) obj; - if (!getInstance() - .equals(other.getInstance())) return false; - if (!getNodeIdsList() - .equals(other.getNodeIdsList())) return false; - if (getApplyAll() - != other.getApplyAll()) return false; + if (!getInstance().equals(other.getInstance())) return false; + if (!getNodeIdsList().equals(other.getNodeIdsList())) return false; + if (getApplyAll() != other.getApplyAll()) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -318,125 +356,134 @@ public int hashCode() { hash = (53 * hash) + getNodeIdsList().hashCode(); } hash = (37 * hash) + APPLY_ALL_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getApplyAll()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getApplyAll()); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static com.google.cloud.memcache.v1beta2.ApplySoftwareUpdateRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.memcache.v1beta2.ApplySoftwareUpdateRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.memcache.v1beta2.ApplySoftwareUpdateRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.memcache.v1beta2.ApplySoftwareUpdateRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.memcache.v1beta2.ApplySoftwareUpdateRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.memcache.v1beta2.ApplySoftwareUpdateRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.memcache.v1beta2.ApplySoftwareUpdateRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.memcache.v1beta2.ApplySoftwareUpdateRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.memcache.v1beta2.ApplySoftwareUpdateRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.memcache.v1beta2.ApplySoftwareUpdateRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.memcache.v1beta2.ApplySoftwareUpdateRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.memcache.v1beta2.ApplySoftwareUpdateRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.memcache.v1beta2.ApplySoftwareUpdateRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.memcache.v1beta2.ApplySoftwareUpdateRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.memcache.v1beta2.ApplySoftwareUpdateRequest prototype) { + + public static Builder newBuilder( + com.google.cloud.memcache.v1beta2.ApplySoftwareUpdateRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected 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 [ApplySoftwareUpdate][google.cloud.memcache.v1beta2.CloudMemcache.ApplySoftwareUpdate].
    * 
* * Protobuf type {@code google.cloud.memcache.v1beta2.ApplySoftwareUpdateRequest} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.memcache.v1beta2.ApplySoftwareUpdateRequest) com.google.cloud.memcache.v1beta2.ApplySoftwareUpdateRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.memcache.v1beta2.CloudMemcacheProto.internal_static_google_cloud_memcache_v1beta2_ApplySoftwareUpdateRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.memcache.v1beta2.CloudMemcacheProto + .internal_static_google_cloud_memcache_v1beta2_ApplySoftwareUpdateRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.memcache.v1beta2.CloudMemcacheProto.internal_static_google_cloud_memcache_v1beta2_ApplySoftwareUpdateRequest_fieldAccessorTable + return com.google.cloud.memcache.v1beta2.CloudMemcacheProto + .internal_static_google_cloud_memcache_v1beta2_ApplySoftwareUpdateRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.memcache.v1beta2.ApplySoftwareUpdateRequest.class, com.google.cloud.memcache.v1beta2.ApplySoftwareUpdateRequest.Builder.class); + com.google.cloud.memcache.v1beta2.ApplySoftwareUpdateRequest.class, + com.google.cloud.memcache.v1beta2.ApplySoftwareUpdateRequest.Builder.class); } // Construct using com.google.cloud.memcache.v1beta2.ApplySoftwareUpdateRequest.newBuilder() @@ -444,16 +491,15 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -467,13 +513,14 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.memcache.v1beta2.CloudMemcacheProto.internal_static_google_cloud_memcache_v1beta2_ApplySoftwareUpdateRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.memcache.v1beta2.CloudMemcacheProto + .internal_static_google_cloud_memcache_v1beta2_ApplySoftwareUpdateRequest_descriptor; } @java.lang.Override - public com.google.cloud.memcache.v1beta2.ApplySoftwareUpdateRequest getDefaultInstanceForType() { + public com.google.cloud.memcache.v1beta2.ApplySoftwareUpdateRequest + getDefaultInstanceForType() { return com.google.cloud.memcache.v1beta2.ApplySoftwareUpdateRequest.getDefaultInstance(); } @@ -488,7 +535,8 @@ public com.google.cloud.memcache.v1beta2.ApplySoftwareUpdateRequest build() { @java.lang.Override public com.google.cloud.memcache.v1beta2.ApplySoftwareUpdateRequest buildPartial() { - com.google.cloud.memcache.v1beta2.ApplySoftwareUpdateRequest result = new com.google.cloud.memcache.v1beta2.ApplySoftwareUpdateRequest(this); + com.google.cloud.memcache.v1beta2.ApplySoftwareUpdateRequest result = + new com.google.cloud.memcache.v1beta2.ApplySoftwareUpdateRequest(this); int from_bitField0_ = bitField0_; result.instance_ = instance_; if (((bitField0_ & 0x00000001) != 0)) { @@ -505,38 +553,39 @@ public com.google.cloud.memcache.v1beta2.ApplySoftwareUpdateRequest buildPartial public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.memcache.v1beta2.ApplySoftwareUpdateRequest) { - return mergeFrom((com.google.cloud.memcache.v1beta2.ApplySoftwareUpdateRequest)other); + return mergeFrom((com.google.cloud.memcache.v1beta2.ApplySoftwareUpdateRequest) other); } else { super.mergeFrom(other); return this; @@ -544,7 +593,9 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.memcache.v1beta2.ApplySoftwareUpdateRequest other) { - if (other == com.google.cloud.memcache.v1beta2.ApplySoftwareUpdateRequest.getDefaultInstance()) return this; + if (other + == com.google.cloud.memcache.v1beta2.ApplySoftwareUpdateRequest.getDefaultInstance()) + return this; if (!other.getInstance().isEmpty()) { instance_ = other.instance_; onChanged(); @@ -581,7 +632,8 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.memcache.v1beta2.ApplySoftwareUpdateRequest) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.memcache.v1beta2.ApplySoftwareUpdateRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -590,23 +642,28 @@ public Builder mergeFrom( } return this; } + private int bitField0_; private java.lang.Object instance_ = ""; /** + * + * *
      * Required. Resource name of the Memcached instance for which software update should be
      * applied.
      * 
* - * string instance = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string instance = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The instance. */ public java.lang.String getInstance() { java.lang.Object ref = instance_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); instance_ = s; return s; @@ -615,21 +672,24 @@ public java.lang.String getInstance() { } } /** + * + * *
      * Required. Resource name of the Memcached instance for which software update should be
      * applied.
      * 
* - * string instance = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string instance = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for instance. */ - public com.google.protobuf.ByteString - getInstanceBytes() { + public com.google.protobuf.ByteString getInstanceBytes() { java.lang.Object ref = instance_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); instance_ = b; return b; } else { @@ -637,101 +697,124 @@ public java.lang.String getInstance() { } } /** + * + * *
      * Required. Resource name of the Memcached instance for which software update should be
      * applied.
      * 
* - * string instance = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string instance = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The instance to set. * @return This builder for chaining. */ - public Builder setInstance( - java.lang.String value) { + public Builder setInstance(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + instance_ = value; onChanged(); return this; } /** + * + * *
      * Required. Resource name of the Memcached instance for which software update should be
      * applied.
      * 
* - * string instance = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string instance = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return This builder for chaining. */ public Builder clearInstance() { - + instance_ = getDefaultInstance().getInstance(); onChanged(); return this; } /** + * + * *
      * Required. Resource name of the Memcached instance for which software update should be
      * applied.
      * 
* - * string instance = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string instance = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The bytes for instance to set. * @return This builder for chaining. */ - public Builder setInstanceBytes( - com.google.protobuf.ByteString value) { + public Builder setInstanceBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + instance_ = value; onChanged(); return this; } - private com.google.protobuf.LazyStringList nodeIds_ = com.google.protobuf.LazyStringArrayList.EMPTY; + private com.google.protobuf.LazyStringList nodeIds_ = + com.google.protobuf.LazyStringArrayList.EMPTY; + private void ensureNodeIdsIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { nodeIds_ = new com.google.protobuf.LazyStringArrayList(nodeIds_); bitField0_ |= 0x00000001; - } + } } /** + * + * *
      * Nodes to which we should apply the update to. Note all the selected nodes
      * are updated in parallel.
      * 
* * repeated string node_ids = 2; + * * @return A list containing the nodeIds. */ - public com.google.protobuf.ProtocolStringList - getNodeIdsList() { + public com.google.protobuf.ProtocolStringList getNodeIdsList() { return nodeIds_.getUnmodifiableView(); } /** + * + * *
      * Nodes to which we should apply the update to. Note all the selected nodes
      * are updated in parallel.
      * 
* * repeated string node_ids = 2; + * * @return The count of nodeIds. */ public int getNodeIdsCount() { return nodeIds_.size(); } /** + * + * *
      * Nodes to which we should apply the update to. Note all the selected nodes
      * are updated in parallel.
      * 
* * repeated string node_ids = 2; + * * @param index The index of the element to return. * @return The nodeIds at the given index. */ @@ -739,85 +822,95 @@ public java.lang.String getNodeIds(int index) { return nodeIds_.get(index); } /** + * + * *
      * Nodes to which we should apply the update to. Note all the selected nodes
      * are updated in parallel.
      * 
* * repeated string node_ids = 2; + * * @param index The index of the value to return. * @return The bytes of the nodeIds at the given index. */ - public com.google.protobuf.ByteString - getNodeIdsBytes(int index) { + public com.google.protobuf.ByteString getNodeIdsBytes(int index) { return nodeIds_.getByteString(index); } /** + * + * *
      * Nodes to which we should apply the update to. Note all the selected nodes
      * are updated in parallel.
      * 
* * repeated string node_ids = 2; + * * @param index The index to set the value at. * @param value The nodeIds to set. * @return This builder for chaining. */ - public Builder setNodeIds( - int index, java.lang.String value) { + public Builder setNodeIds(int index, java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureNodeIdsIsMutable(); + throw new NullPointerException(); + } + ensureNodeIdsIsMutable(); nodeIds_.set(index, value); onChanged(); return this; } /** + * + * *
      * Nodes to which we should apply the update to. Note all the selected nodes
      * are updated in parallel.
      * 
* * repeated string node_ids = 2; + * * @param value The nodeIds to add. * @return This builder for chaining. */ - public Builder addNodeIds( - java.lang.String value) { + public Builder addNodeIds(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureNodeIdsIsMutable(); + throw new NullPointerException(); + } + ensureNodeIdsIsMutable(); nodeIds_.add(value); onChanged(); return this; } /** + * + * *
      * Nodes to which we should apply the update to. Note all the selected nodes
      * are updated in parallel.
      * 
* * repeated string node_ids = 2; + * * @param values The nodeIds to add. * @return This builder for chaining. */ - public Builder addAllNodeIds( - java.lang.Iterable values) { + public Builder addAllNodeIds(java.lang.Iterable values) { ensureNodeIdsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, nodeIds_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, nodeIds_); onChanged(); return this; } /** + * + * *
      * Nodes to which we should apply the update to. Note all the selected nodes
      * are updated in parallel.
      * 
* * repeated string node_ids = 2; + * * @return This builder for chaining. */ public Builder clearNodeIds() { @@ -827,29 +920,33 @@ public Builder clearNodeIds() { return this; } /** + * + * *
      * Nodes to which we should apply the update to. Note all the selected nodes
      * are updated in parallel.
      * 
* * repeated string node_ids = 2; + * * @param value The bytes of the nodeIds to add. * @return This builder for chaining. */ - public Builder addNodeIdsBytes( - com.google.protobuf.ByteString value) { + public Builder addNodeIdsBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); ensureNodeIdsIsMutable(); nodeIds_.add(value); onChanged(); return this; } - private boolean applyAll_ ; + private boolean applyAll_; /** + * + * *
      * Whether to apply the update to all nodes. If set to
      * true, will explicitly restrict users from specifying any nodes, and apply
@@ -857,6 +954,7 @@ public Builder addNodeIdsBytes(
      * 
* * bool apply_all = 3; + * * @return The applyAll. */ @java.lang.Override @@ -864,6 +962,8 @@ public boolean getApplyAll() { return applyAll_; } /** + * + * *
      * Whether to apply the update to all nodes. If set to
      * true, will explicitly restrict users from specifying any nodes, and apply
@@ -871,16 +971,19 @@ public boolean getApplyAll() {
      * 
* * bool apply_all = 3; + * * @param value The applyAll to set. * @return This builder for chaining. */ public Builder setApplyAll(boolean value) { - + applyAll_ = value; onChanged(); return this; } /** + * + * *
      * Whether to apply the update to all nodes. If set to
      * true, will explicitly restrict users from specifying any nodes, and apply
@@ -888,17 +991,18 @@ public Builder setApplyAll(boolean value) {
      * 
* * bool apply_all = 3; + * * @return This builder for chaining. */ public Builder clearApplyAll() { - + applyAll_ = false; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -908,12 +1012,13 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.memcache.v1beta2.ApplySoftwareUpdateRequest) } // @@protoc_insertion_point(class_scope:google.cloud.memcache.v1beta2.ApplySoftwareUpdateRequest) - private static final com.google.cloud.memcache.v1beta2.ApplySoftwareUpdateRequest DEFAULT_INSTANCE; + private static final com.google.cloud.memcache.v1beta2.ApplySoftwareUpdateRequest + DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.memcache.v1beta2.ApplySoftwareUpdateRequest(); } @@ -922,16 +1027,16 @@ public static com.google.cloud.memcache.v1beta2.ApplySoftwareUpdateRequest getDe return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ApplySoftwareUpdateRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ApplySoftwareUpdateRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ApplySoftwareUpdateRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ApplySoftwareUpdateRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -946,6 +1051,4 @@ public com.google.protobuf.Parser getParserForType() public com.google.cloud.memcache.v1beta2.ApplySoftwareUpdateRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1beta2/proto-google-cloud-memcache-v1beta2/src/main/java/com/google/cloud/memcache/v1beta2/ApplySoftwareUpdateRequestOrBuilder.java b/proto-google-cloud-memcache-v1beta2/src/main/java/com/google/cloud/memcache/v1beta2/ApplySoftwareUpdateRequestOrBuilder.java similarity index 64% rename from owl-bot-staging/v1beta2/proto-google-cloud-memcache-v1beta2/src/main/java/com/google/cloud/memcache/v1beta2/ApplySoftwareUpdateRequestOrBuilder.java rename to proto-google-cloud-memcache-v1beta2/src/main/java/com/google/cloud/memcache/v1beta2/ApplySoftwareUpdateRequestOrBuilder.java index c676cd73..e3dbcc27 100644 --- a/owl-bot-staging/v1beta2/proto-google-cloud-memcache-v1beta2/src/main/java/com/google/cloud/memcache/v1beta2/ApplySoftwareUpdateRequestOrBuilder.java +++ b/proto-google-cloud-memcache-v1beta2/src/main/java/com/google/cloud/memcache/v1beta2/ApplySoftwareUpdateRequestOrBuilder.java @@ -1,80 +1,117 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/memcache/v1beta2/cloud_memcache.proto package com.google.cloud.memcache.v1beta2; -public interface ApplySoftwareUpdateRequestOrBuilder extends +public interface ApplySoftwareUpdateRequestOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.memcache.v1beta2.ApplySoftwareUpdateRequest) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Required. Resource name of the Memcached instance for which software update should be
    * applied.
    * 
* - * string instance = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string instance = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The instance. */ java.lang.String getInstance(); /** + * + * *
    * Required. Resource name of the Memcached instance for which software update should be
    * applied.
    * 
* - * string instance = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string instance = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for instance. */ - com.google.protobuf.ByteString - getInstanceBytes(); + com.google.protobuf.ByteString getInstanceBytes(); /** + * + * *
    * Nodes to which we should apply the update to. Note all the selected nodes
    * are updated in parallel.
    * 
* * repeated string node_ids = 2; + * * @return A list containing the nodeIds. */ - java.util.List - getNodeIdsList(); + java.util.List getNodeIdsList(); /** + * + * *
    * Nodes to which we should apply the update to. Note all the selected nodes
    * are updated in parallel.
    * 
* * repeated string node_ids = 2; + * * @return The count of nodeIds. */ int getNodeIdsCount(); /** + * + * *
    * Nodes to which we should apply the update to. Note all the selected nodes
    * are updated in parallel.
    * 
* * repeated string node_ids = 2; + * * @param index The index of the element to return. * @return The nodeIds at the given index. */ java.lang.String getNodeIds(int index); /** + * + * *
    * Nodes to which we should apply the update to. Note all the selected nodes
    * are updated in parallel.
    * 
* * repeated string node_ids = 2; + * * @param index The index of the value to return. * @return The bytes of the nodeIds at the given index. */ - com.google.protobuf.ByteString - getNodeIdsBytes(int index); + com.google.protobuf.ByteString getNodeIdsBytes(int index); /** + * + * *
    * Whether to apply the update to all nodes. If set to
    * true, will explicitly restrict users from specifying any nodes, and apply
@@ -82,6 +119,7 @@ public interface ApplySoftwareUpdateRequestOrBuilder extends
    * 
* * bool apply_all = 3; + * * @return The applyAll. */ boolean getApplyAll(); diff --git a/proto-google-cloud-memcache-v1beta2/src/main/java/com/google/cloud/memcache/v1beta2/CloudMemcacheProto.java b/proto-google-cloud-memcache-v1beta2/src/main/java/com/google/cloud/memcache/v1beta2/CloudMemcacheProto.java new file mode 100644 index 00000000..883c38b5 --- /dev/null +++ b/proto-google-cloud-memcache-v1beta2/src/main/java/com/google/cloud/memcache/v1beta2/CloudMemcacheProto.java @@ -0,0 +1,496 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/memcache/v1beta2/cloud_memcache.proto + +package com.google.cloud.memcache.v1beta2; + +public final class CloudMemcacheProto { + private CloudMemcacheProto() {} + + 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_memcache_v1beta2_Instance_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_memcache_v1beta2_Instance_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_memcache_v1beta2_Instance_NodeConfig_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_memcache_v1beta2_Instance_NodeConfig_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_memcache_v1beta2_Instance_Node_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_memcache_v1beta2_Instance_Node_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_memcache_v1beta2_Instance_InstanceMessage_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_memcache_v1beta2_Instance_InstanceMessage_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_memcache_v1beta2_Instance_LabelsEntry_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_memcache_v1beta2_Instance_LabelsEntry_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_memcache_v1beta2_ListInstancesRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_memcache_v1beta2_ListInstancesRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_memcache_v1beta2_ListInstancesResponse_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_memcache_v1beta2_ListInstancesResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_memcache_v1beta2_GetInstanceRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_memcache_v1beta2_GetInstanceRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_memcache_v1beta2_CreateInstanceRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_memcache_v1beta2_CreateInstanceRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_memcache_v1beta2_UpdateInstanceRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_memcache_v1beta2_UpdateInstanceRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_memcache_v1beta2_DeleteInstanceRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_memcache_v1beta2_DeleteInstanceRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_memcache_v1beta2_ApplyParametersRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_memcache_v1beta2_ApplyParametersRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_memcache_v1beta2_UpdateParametersRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_memcache_v1beta2_UpdateParametersRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_memcache_v1beta2_ApplySoftwareUpdateRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_memcache_v1beta2_ApplySoftwareUpdateRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_memcache_v1beta2_MemcacheParameters_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_memcache_v1beta2_MemcacheParameters_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_memcache_v1beta2_MemcacheParameters_ParamsEntry_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_memcache_v1beta2_MemcacheParameters_ParamsEntry_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_memcache_v1beta2_OperationMetadata_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_memcache_v1beta2_OperationMetadata_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_memcache_v1beta2_LocationMetadata_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_memcache_v1beta2_LocationMetadata_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_memcache_v1beta2_LocationMetadata_AvailableZonesEntry_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_memcache_v1beta2_LocationMetadata_AvailableZonesEntry_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_memcache_v1beta2_ZoneMetadata_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_memcache_v1beta2_ZoneMetadata_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + return descriptor; + } + + private static com.google.protobuf.Descriptors.FileDescriptor descriptor; + + static { + java.lang.String[] descriptorData = { + "\n2google/cloud/memcache/v1beta2/cloud_me" + + "mcache.proto\022\035google.cloud.memcache.v1be" + + "ta2\032\034google/api/annotations.proto\032\027googl" + + "e/api/client.proto\032\037google/api/field_beh" + + "avior.proto\032\031google/api/resource.proto\032#" + + "google/longrunning/operations.proto\032 goo" + + "gle/protobuf/field_mask.proto\032\037google/pr" + + "otobuf/timestamp.proto\"\223\r\n\010Instance\022\021\n\004n" + + "ame\030\001 \001(\tB\003\340A\002\022\024\n\014display_name\030\002 \001(\t\022C\n\006" + + "labels\030\003 \003(\01323.google.cloud.memcache.v1b" + + "eta2.Instance.LabelsEntry\022\032\n\022authorized_" + + "network\030\004 \001(\t\022\r\n\005zones\030\005 \003(\t\022\027\n\nnode_cou" + + "nt\030\006 \001(\005B\003\340A\002\022L\n\013node_config\030\007 \001(\01322.goo" + + "gle.cloud.memcache.v1beta2.Instance.Node" + + "ConfigB\003\340A\002\022H\n\020memcache_version\030\t \001(\0162.." + + "google.cloud.memcache.v1beta2.MemcacheVe" + + "rsion\022E\n\nparameters\030\013 \001(\01321.google.cloud" + + ".memcache.v1beta2.MemcacheParameters\022I\n\016" + + "memcache_nodes\030\014 \003(\0132,.google.cloud.memc" + + "ache.v1beta2.Instance.NodeB\003\340A\003\0224\n\013creat" + + "e_time\030\r \001(\0132\032.google.protobuf.Timestamp" + + "B\003\340A\003\0224\n\013update_time\030\016 \001(\0132\032.google.prot" + + "obuf.TimestampB\003\340A\003\022A\n\005state\030\017 \001(\0162-.goo" + + "gle.cloud.memcache.v1beta2.Instance.Stat" + + "eB\003\340A\003\022\"\n\025memcache_full_version\030\022 \001(\tB\003\340" + + "A\003\022R\n\021instance_messages\030\023 \003(\01327.google.c" + + "loud.memcache.v1beta2.Instance.InstanceM" + + "essage\022\037\n\022discovery_endpoint\030\024 \001(\tB\003\340A\003\022" + + "\035\n\020update_available\030\025 \001(\010B\003\340A\003\032A\n\nNodeCo" + + "nfig\022\026\n\tcpu_count\030\001 \001(\005B\003\340A\002\022\033\n\016memory_s" + + "ize_mb\030\002 \001(\005B\003\340A\002\032\330\002\n\004Node\022\024\n\007node_id\030\001 " + + "\001(\tB\003\340A\003\022\021\n\004zone\030\002 \001(\tB\003\340A\003\022F\n\005state\030\003 \001" + + "(\01622.google.cloud.memcache.v1beta2.Insta" + + "nce.Node.StateB\003\340A\003\022\021\n\004host\030\004 \001(\tB\003\340A\003\022\021" + + "\n\004port\030\005 \001(\005B\003\340A\003\022E\n\nparameters\030\006 \001(\01321." + + "google.cloud.memcache.v1beta2.MemcachePa" + + "rameters\022\035\n\020update_available\030\007 \001(\010B\003\340A\003\"" + + "S\n\005State\022\025\n\021STATE_UNSPECIFIED\020\000\022\014\n\010CREAT" + + "ING\020\001\022\t\n\005READY\020\002\022\014\n\010DELETING\020\003\022\014\n\010UPDATI" + + "NG\020\004\032\256\001\n\017InstanceMessage\022J\n\004code\030\001 \001(\0162<" + + ".google.cloud.memcache.v1beta2.Instance." + + "InstanceMessage.Code\022\017\n\007message\030\002 \001(\t\">\n" + + "\004Code\022\024\n\020CODE_UNSPECIFIED\020\000\022 \n\034ZONE_DIST" + + "RIBUTION_UNBALANCED\020\001\032-\n\013LabelsEntry\022\013\n\003" + + "key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\"a\n\005State\022\025\n" + + "\021STATE_UNSPECIFIED\020\000\022\014\n\010CREATING\020\001\022\t\n\005RE" + + "ADY\020\002\022\014\n\010DELETING\020\004\022\032\n\026PERFORMING_MAINTE" + + "NANCE\020\005:c\352A`\n memcache.googleapis.com/In" + + "stance\022\n\010resource\030\003" + + " \001(\0132\'.google.cloud.memcache.v1beta2.Ins" + + "tanceB\003\340A\002\"\215\001\n\025UpdateInstanceRequest\0224\n\013" + + "update_mask\030\001 \001(\0132\032.google.protobuf.Fiel" + + "dMaskB\003\340A\002\022>\n\010resource\030\002 \001(\0132\'.google.cl" + + "oud.memcache.v1beta2.InstanceB\003\340A\002\"O\n\025De" + + "leteInstanceRequest\0226\n\004name\030\001 \001(\tB(\340A\002\372A" + + "\"\n memcache.googleapis.com/Instance\"u\n\026A" + + "pplyParametersRequest\0226\n\004name\030\001 \001(\tB(\340A\002" + + "\372A\"\n memcache.googleapis.com/Instance\022\020\n" + + "\010node_ids\030\002 \003(\t\022\021\n\tapply_all\030\003 \001(\010\"\316\001\n\027U" + + "pdateParametersRequest\0226\n\004name\030\001 \001(\tB(\340A" + + "\002\372A\"\n memcache.googleapis.com/Instance\0224" + + "\n\013update_mask\030\002 \001(\0132\032.google.protobuf.Fi" + + "eldMaskB\003\340A\002\022E\n\nparameters\030\003 \001(\01321.googl" + + "e.cloud.memcache.v1beta2.MemcacheParamet" + + "ers\"}\n\032ApplySoftwareUpdateRequest\022:\n\010ins" + + "tance\030\001 \001(\tB(\340A\002\372A\"\n memcache.googleapis" + + ".com/Instance\022\020\n\010node_ids\030\002 \003(\t\022\021\n\tapply" + + "_all\030\003 \001(\010\"\243\001\n\022MemcacheParameters\022\017\n\002id\030" + + "\001 \001(\tB\003\340A\003\022M\n\006params\030\003 \003(\0132=.google.clou" + + "d.memcache.v1beta2.MemcacheParameters.Pa" + + "ramsEntry\032-\n\013ParamsEntry\022\013\n\003key\030\001 \001(\t\022\r\n" + + "\005value\030\002 \001(\t:\0028\001\"\371\001\n\021OperationMetadata\0224" + + "\n\013create_time\030\001 \001(\0132\032.google.protobuf.Ti" + + "mestampB\003\340A\003\0221\n\010end_time\030\002 \001(\0132\032.google." + + "protobuf.TimestampB\003\340A\003\022\023\n\006target\030\003 \001(\tB" + + "\003\340A\003\022\021\n\004verb\030\004 \001(\tB\003\340A\003\022\032\n\rstatus_detail" + + "\030\005 \001(\tB\003\340A\003\022\035\n\020cancel_requested\030\006 \001(\010B\003\340" + + "A\003\022\030\n\013api_version\030\007 \001(\tB\003\340A\003\"\331\001\n\020Locatio" + + "nMetadata\022a\n\017available_zones\030\001 \003(\0132C.goo" + + "gle.cloud.memcache.v1beta2.LocationMetad" + + "ata.AvailableZonesEntryB\003\340A\003\032b\n\023Availabl" + + "eZonesEntry\022\013\n\003key\030\001 \001(\t\022:\n\005value\030\002 \001(\0132" + + "+.google.cloud.memcache.v1beta2.ZoneMeta" + + "data:\0028\001\"\016\n\014ZoneMetadata*E\n\017MemcacheVers" + + "ion\022 \n\034MEMCACHE_VERSION_UNSPECIFIED\020\000\022\020\n" + + "\014MEMCACHE_1_5\020\0012\303\021\n\rCloudMemcache\022\277\001\n\rLi" + + "stInstances\0223.google.cloud.memcache.v1be" + + "ta2.ListInstancesRequest\0324.google.cloud." + + "memcache.v1beta2.ListInstancesResponse\"C" + + "\202\323\344\223\0024\0222/v1beta2/{parent=projects/*/loca" + + "tions/*}/instances\332A\006parent\022\254\001\n\013GetInsta" + + "nce\0221.google.cloud.memcache.v1beta2.GetI" + + "nstanceRequest\032\'.google.cloud.memcache.v" + + "1beta2.Instance\"A\202\323\344\223\0024\0222/v1beta2/{name=" + + "projects/*/locations/*/instances/*}\332A\004na" + + "me\022\246\002\n\016CreateInstance\0224.google.cloud.mem" + + "cache.v1beta2.CreateInstanceRequest\032\035.go" + + "ogle.longrunning.Operation\"\276\001\202\323\344\223\002>\"2/v1" + + "beta2/{parent=projects/*/locations/*}/in" + + "stances:\010resource\332A\033parent,instance_id,r" + + "esource\312AY\n&google.cloud.memcache.v1beta" + + "2.Instance\022/google.cloud.memcache.v1beta" + + "2.OperationMetadata\022\250\002\n\016UpdateInstance\0224" + + ".google.cloud.memcache.v1beta2.UpdateIns" + + "tanceRequest\032\035.google.longrunning.Operat" + + "ion\"\300\001\202\323\344\223\002G2;/v1beta2/{resource.name=pr" + + "ojects/*/locations/*/instances/*}:\010resou" + + "rce\332A\024update_mask,resource\312AY\n&google.cl" + + "oud.memcache.v1beta2.Instance\022/google.cl" + + "oud.memcache.v1beta2.OperationMetadata\022\264" + + "\002\n\020UpdateParameters\0226.google.cloud.memca" + + "che.v1beta2.UpdateParametersRequest\032\035.go" + + "ogle.longrunning.Operation\"\310\001\202\323\344\223\002H2C/v1" + + "beta2/{name=projects/*/locations/*/insta" + + "nces/*}:updateParameters:\001*\332A\033name,updat" + + "e_mask,parameters\312AY\n&google.cloud.memca" + + "che.v1beta2.Instance\022/google.cloud.memca" + + "che.v1beta2.OperationMetadata\022\364\001\n\016Delete" + + "Instance\0224.google.cloud.memcache.v1beta2" + + ".DeleteInstanceRequest\032\035.google.longrunn" + + "ing.Operation\"\214\001\202\323\344\223\0024*2/v1beta2/{name=p" + + "rojects/*/locations/*/instances/*}\332A\004nam" + + "e\312AH\n\025google.protobuf.Empty\022/google.clou" + + "d.memcache.v1beta2.OperationMetadata\022\255\002\n" + + "\017ApplyParameters\0225.google.cloud.memcache" + + ".v1beta2.ApplyParametersRequest\032\035.google" + + ".longrunning.Operation\"\303\001\202\323\344\223\002G\"B/v1beta" + + "2/{name=projects/*/locations/*/instances" + + "/*}:applyParameters:\001*\332A\027name,node_ids,a" + + "pply_all\312AY\n&google.cloud.memcache.v1bet" + + "a2.Instance\022/google.cloud.memcache.v1bet" + + "a2.OperationMetadata\022\301\002\n\023ApplySoftwareUp" + + "date\0229.google.cloud.memcache.v1beta2.App" + + "lySoftwareUpdateRequest\032\035.google.longrun" + + "ning.Operation\"\317\001\202\323\344\223\002O\"J/v1beta2/{insta" + + "nce=projects/*/locations/*/instances/*}:" + + "applySoftwareUpdate:\001*\332A\033instance,node_i" + + "ds,apply_all\312AY\n&google.cloud.memcache.v" + + "1beta2.Instance\022/google.cloud.memcache.v" + + "1beta2.OperationMetadata\032K\312A\027memcache.go" + + "ogleapis.com\322A.https://www.googleapis.co" + + "m/auth/cloud-platformB\200\001\n!com.google.clo" + + "ud.memcache.v1beta2B\022CloudMemcacheProtoP" + + "\001ZEgoogle.golang.org/genproto/googleapis" + + "/cloud/memcache/v1beta2;memcacheb\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.FieldMaskProto.getDescriptor(), + com.google.protobuf.TimestampProto.getDescriptor(), + }); + internal_static_google_cloud_memcache_v1beta2_Instance_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_cloud_memcache_v1beta2_Instance_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_memcache_v1beta2_Instance_descriptor, + new java.lang.String[] { + "Name", + "DisplayName", + "Labels", + "AuthorizedNetwork", + "Zones", + "NodeCount", + "NodeConfig", + "MemcacheVersion", + "Parameters", + "MemcacheNodes", + "CreateTime", + "UpdateTime", + "State", + "MemcacheFullVersion", + "InstanceMessages", + "DiscoveryEndpoint", + "UpdateAvailable", + }); + internal_static_google_cloud_memcache_v1beta2_Instance_NodeConfig_descriptor = + internal_static_google_cloud_memcache_v1beta2_Instance_descriptor.getNestedTypes().get(0); + internal_static_google_cloud_memcache_v1beta2_Instance_NodeConfig_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_memcache_v1beta2_Instance_NodeConfig_descriptor, + new java.lang.String[] { + "CpuCount", "MemorySizeMb", + }); + internal_static_google_cloud_memcache_v1beta2_Instance_Node_descriptor = + internal_static_google_cloud_memcache_v1beta2_Instance_descriptor.getNestedTypes().get(1); + internal_static_google_cloud_memcache_v1beta2_Instance_Node_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_memcache_v1beta2_Instance_Node_descriptor, + new java.lang.String[] { + "NodeId", "Zone", "State", "Host", "Port", "Parameters", "UpdateAvailable", + }); + internal_static_google_cloud_memcache_v1beta2_Instance_InstanceMessage_descriptor = + internal_static_google_cloud_memcache_v1beta2_Instance_descriptor.getNestedTypes().get(2); + internal_static_google_cloud_memcache_v1beta2_Instance_InstanceMessage_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_memcache_v1beta2_Instance_InstanceMessage_descriptor, + new java.lang.String[] { + "Code", "Message", + }); + internal_static_google_cloud_memcache_v1beta2_Instance_LabelsEntry_descriptor = + internal_static_google_cloud_memcache_v1beta2_Instance_descriptor.getNestedTypes().get(3); + internal_static_google_cloud_memcache_v1beta2_Instance_LabelsEntry_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_memcache_v1beta2_Instance_LabelsEntry_descriptor, + new java.lang.String[] { + "Key", "Value", + }); + internal_static_google_cloud_memcache_v1beta2_ListInstancesRequest_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_google_cloud_memcache_v1beta2_ListInstancesRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_memcache_v1beta2_ListInstancesRequest_descriptor, + new java.lang.String[] { + "Parent", "PageSize", "PageToken", "Filter", "OrderBy", + }); + internal_static_google_cloud_memcache_v1beta2_ListInstancesResponse_descriptor = + getDescriptor().getMessageTypes().get(2); + internal_static_google_cloud_memcache_v1beta2_ListInstancesResponse_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_memcache_v1beta2_ListInstancesResponse_descriptor, + new java.lang.String[] { + "Resources", "NextPageToken", "Unreachable", + }); + internal_static_google_cloud_memcache_v1beta2_GetInstanceRequest_descriptor = + getDescriptor().getMessageTypes().get(3); + internal_static_google_cloud_memcache_v1beta2_GetInstanceRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_memcache_v1beta2_GetInstanceRequest_descriptor, + new java.lang.String[] { + "Name", + }); + internal_static_google_cloud_memcache_v1beta2_CreateInstanceRequest_descriptor = + getDescriptor().getMessageTypes().get(4); + internal_static_google_cloud_memcache_v1beta2_CreateInstanceRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_memcache_v1beta2_CreateInstanceRequest_descriptor, + new java.lang.String[] { + "Parent", "InstanceId", "Resource", + }); + internal_static_google_cloud_memcache_v1beta2_UpdateInstanceRequest_descriptor = + getDescriptor().getMessageTypes().get(5); + internal_static_google_cloud_memcache_v1beta2_UpdateInstanceRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_memcache_v1beta2_UpdateInstanceRequest_descriptor, + new java.lang.String[] { + "UpdateMask", "Resource", + }); + internal_static_google_cloud_memcache_v1beta2_DeleteInstanceRequest_descriptor = + getDescriptor().getMessageTypes().get(6); + internal_static_google_cloud_memcache_v1beta2_DeleteInstanceRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_memcache_v1beta2_DeleteInstanceRequest_descriptor, + new java.lang.String[] { + "Name", + }); + internal_static_google_cloud_memcache_v1beta2_ApplyParametersRequest_descriptor = + getDescriptor().getMessageTypes().get(7); + internal_static_google_cloud_memcache_v1beta2_ApplyParametersRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_memcache_v1beta2_ApplyParametersRequest_descriptor, + new java.lang.String[] { + "Name", "NodeIds", "ApplyAll", + }); + internal_static_google_cloud_memcache_v1beta2_UpdateParametersRequest_descriptor = + getDescriptor().getMessageTypes().get(8); + internal_static_google_cloud_memcache_v1beta2_UpdateParametersRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_memcache_v1beta2_UpdateParametersRequest_descriptor, + new java.lang.String[] { + "Name", "UpdateMask", "Parameters", + }); + internal_static_google_cloud_memcache_v1beta2_ApplySoftwareUpdateRequest_descriptor = + getDescriptor().getMessageTypes().get(9); + internal_static_google_cloud_memcache_v1beta2_ApplySoftwareUpdateRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_memcache_v1beta2_ApplySoftwareUpdateRequest_descriptor, + new java.lang.String[] { + "Instance", "NodeIds", "ApplyAll", + }); + internal_static_google_cloud_memcache_v1beta2_MemcacheParameters_descriptor = + getDescriptor().getMessageTypes().get(10); + internal_static_google_cloud_memcache_v1beta2_MemcacheParameters_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_memcache_v1beta2_MemcacheParameters_descriptor, + new java.lang.String[] { + "Id", "Params", + }); + internal_static_google_cloud_memcache_v1beta2_MemcacheParameters_ParamsEntry_descriptor = + internal_static_google_cloud_memcache_v1beta2_MemcacheParameters_descriptor + .getNestedTypes() + .get(0); + internal_static_google_cloud_memcache_v1beta2_MemcacheParameters_ParamsEntry_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_memcache_v1beta2_MemcacheParameters_ParamsEntry_descriptor, + new java.lang.String[] { + "Key", "Value", + }); + internal_static_google_cloud_memcache_v1beta2_OperationMetadata_descriptor = + getDescriptor().getMessageTypes().get(11); + internal_static_google_cloud_memcache_v1beta2_OperationMetadata_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_memcache_v1beta2_OperationMetadata_descriptor, + new java.lang.String[] { + "CreateTime", + "EndTime", + "Target", + "Verb", + "StatusDetail", + "CancelRequested", + "ApiVersion", + }); + internal_static_google_cloud_memcache_v1beta2_LocationMetadata_descriptor = + getDescriptor().getMessageTypes().get(12); + internal_static_google_cloud_memcache_v1beta2_LocationMetadata_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_memcache_v1beta2_LocationMetadata_descriptor, + new java.lang.String[] { + "AvailableZones", + }); + internal_static_google_cloud_memcache_v1beta2_LocationMetadata_AvailableZonesEntry_descriptor = + internal_static_google_cloud_memcache_v1beta2_LocationMetadata_descriptor + .getNestedTypes() + .get(0); + internal_static_google_cloud_memcache_v1beta2_LocationMetadata_AvailableZonesEntry_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_memcache_v1beta2_LocationMetadata_AvailableZonesEntry_descriptor, + new java.lang.String[] { + "Key", "Value", + }); + internal_static_google_cloud_memcache_v1beta2_ZoneMetadata_descriptor = + getDescriptor().getMessageTypes().get(13); + internal_static_google_cloud_memcache_v1beta2_ZoneMetadata_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_memcache_v1beta2_ZoneMetadata_descriptor, + new java.lang.String[] {}); + 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.FieldMaskProto.getDescriptor(); + com.google.protobuf.TimestampProto.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/owl-bot-staging/v1beta2/proto-google-cloud-memcache-v1beta2/src/main/java/com/google/cloud/memcache/v1beta2/CreateInstanceRequest.java b/proto-google-cloud-memcache-v1beta2/src/main/java/com/google/cloud/memcache/v1beta2/CreateInstanceRequest.java similarity index 67% rename from owl-bot-staging/v1beta2/proto-google-cloud-memcache-v1beta2/src/main/java/com/google/cloud/memcache/v1beta2/CreateInstanceRequest.java rename to proto-google-cloud-memcache-v1beta2/src/main/java/com/google/cloud/memcache/v1beta2/CreateInstanceRequest.java index 131f8ec7..c4d8d0c8 100644 --- a/owl-bot-staging/v1beta2/proto-google-cloud-memcache-v1beta2/src/main/java/com/google/cloud/memcache/v1beta2/CreateInstanceRequest.java +++ b/proto-google-cloud-memcache-v1beta2/src/main/java/com/google/cloud/memcache/v1beta2/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/memcache/v1beta2/cloud_memcache.proto package com.google.cloud.memcache.v1beta2; /** + * + * *
  * Request for [CreateInstance][google.cloud.memcache.v1beta2.CloudMemcache.CreateInstance].
  * 
* * Protobuf type {@code google.cloud.memcache.v1beta2.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.memcache.v1beta2.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.memcache.v1beta2.Instance.Builder subBuilder = null; - if (resource_ != null) { - subBuilder = resource_.toBuilder(); + parent_ = s; + break; } - resource_ = input.readMessage(com.google.cloud.memcache.v1beta2.Instance.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(resource_); - resource_ = subBuilder.buildPartial(); + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); + + instanceId_ = s; + break; } + case 26: + { + com.google.cloud.memcache.v1beta2.Instance.Builder subBuilder = null; + if (resource_ != null) { + subBuilder = resource_.toBuilder(); + } + resource_ = + input.readMessage( + com.google.cloud.memcache.v1beta2.Instance.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(resource_); + resource_ = 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.memcache.v1beta2.CloudMemcacheProto.internal_static_google_cloud_memcache_v1beta2_CreateInstanceRequest_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.memcache.v1beta2.CloudMemcacheProto + .internal_static_google_cloud_memcache_v1beta2_CreateInstanceRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.memcache.v1beta2.CloudMemcacheProto.internal_static_google_cloud_memcache_v1beta2_CreateInstanceRequest_fieldAccessorTable + return com.google.cloud.memcache.v1beta2.CloudMemcacheProto + .internal_static_google_cloud_memcache_v1beta2_CreateInstanceRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.memcache.v1beta2.CreateInstanceRequest.class, com.google.cloud.memcache.v1beta2.CreateInstanceRequest.Builder.class); + com.google.cloud.memcache.v1beta2.CreateInstanceRequest.class, + com.google.cloud.memcache.v1beta2.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 Memcached instance in the user
    * project with the following restrictions:
@@ -178,6 +211,7 @@ public java.lang.String getParent() {
    * 
* * string instance_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The instanceId. */ @java.lang.Override @@ -186,14 +220,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 Memcached instance in the user
    * project with the following restrictions:
@@ -206,16 +241,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 { @@ -226,11 +260,16 @@ public java.lang.String getInstanceId() { public static final int RESOURCE_FIELD_NUMBER = 3; private com.google.cloud.memcache.v1beta2.Instance resource_; /** + * + * *
    * Required. A Memcached [Instance] resource
    * 
* - * .google.cloud.memcache.v1beta2.Instance resource = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.memcache.v1beta2.Instance resource = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the resource field is set. */ @java.lang.Override @@ -238,23 +277,34 @@ public boolean hasResource() { return resource_ != null; } /** + * + * *
    * Required. A Memcached [Instance] resource
    * 
* - * .google.cloud.memcache.v1beta2.Instance resource = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.memcache.v1beta2.Instance resource = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The resource. */ @java.lang.Override public com.google.cloud.memcache.v1beta2.Instance getResource() { - return resource_ == null ? com.google.cloud.memcache.v1beta2.Instance.getDefaultInstance() : resource_; + return resource_ == null + ? com.google.cloud.memcache.v1beta2.Instance.getDefaultInstance() + : resource_; } /** + * + * *
    * Required. A Memcached [Instance] resource
    * 
* - * .google.cloud.memcache.v1beta2.Instance resource = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.memcache.v1beta2.Instance resource = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ @java.lang.Override public com.google.cloud.memcache.v1beta2.InstanceOrBuilder getResourceOrBuilder() { @@ -262,6 +312,7 @@ public com.google.cloud.memcache.v1beta2.InstanceOrBuilder getResourceOrBuilder( } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -273,8 +324,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); } @@ -300,8 +350,7 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, instanceId_); } if (resource_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(3, getResource()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getResource()); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -311,21 +360,19 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.memcache.v1beta2.CreateInstanceRequest)) { return super.equals(obj); } - com.google.cloud.memcache.v1beta2.CreateInstanceRequest other = (com.google.cloud.memcache.v1beta2.CreateInstanceRequest) obj; + com.google.cloud.memcache.v1beta2.CreateInstanceRequest other = + (com.google.cloud.memcache.v1beta2.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 (hasResource() != other.hasResource()) return false; if (hasResource()) { - if (!getResource() - .equals(other.getResource())) return false; + if (!getResource().equals(other.getResource())) return false; } if (!unknownFields.equals(other.unknownFields)) return false; return true; @@ -352,117 +399,127 @@ public int hashCode() { } public static com.google.cloud.memcache.v1beta2.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.memcache.v1beta2.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.memcache.v1beta2.CreateInstanceRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.memcache.v1beta2.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.memcache.v1beta2.CreateInstanceRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.memcache.v1beta2.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.memcache.v1beta2.CreateInstanceRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.memcache.v1beta2.CreateInstanceRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.memcache.v1beta2.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.memcache.v1beta2.CreateInstanceRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.memcache.v1beta2.CreateInstanceRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.memcache.v1beta2.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.memcache.v1beta2.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.memcache.v1beta2.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.memcache.v1beta2.CreateInstanceRequest prototype) { + + public static Builder newBuilder( + com.google.cloud.memcache.v1beta2.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.memcache.v1beta2.CloudMemcache.CreateInstance].
    * 
* * Protobuf type {@code google.cloud.memcache.v1beta2.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.memcache.v1beta2.CreateInstanceRequest) com.google.cloud.memcache.v1beta2.CreateInstanceRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.memcache.v1beta2.CloudMemcacheProto.internal_static_google_cloud_memcache_v1beta2_CreateInstanceRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.memcache.v1beta2.CloudMemcacheProto + .internal_static_google_cloud_memcache_v1beta2_CreateInstanceRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.memcache.v1beta2.CloudMemcacheProto.internal_static_google_cloud_memcache_v1beta2_CreateInstanceRequest_fieldAccessorTable + return com.google.cloud.memcache.v1beta2.CloudMemcacheProto + .internal_static_google_cloud_memcache_v1beta2_CreateInstanceRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.memcache.v1beta2.CreateInstanceRequest.class, com.google.cloud.memcache.v1beta2.CreateInstanceRequest.Builder.class); + com.google.cloud.memcache.v1beta2.CreateInstanceRequest.class, + com.google.cloud.memcache.v1beta2.CreateInstanceRequest.Builder.class); } // Construct using com.google.cloud.memcache.v1beta2.CreateInstanceRequest.newBuilder() @@ -470,16 +527,15 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -497,9 +553,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.memcache.v1beta2.CloudMemcacheProto.internal_static_google_cloud_memcache_v1beta2_CreateInstanceRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.memcache.v1beta2.CloudMemcacheProto + .internal_static_google_cloud_memcache_v1beta2_CreateInstanceRequest_descriptor; } @java.lang.Override @@ -518,7 +574,8 @@ public com.google.cloud.memcache.v1beta2.CreateInstanceRequest build() { @java.lang.Override public com.google.cloud.memcache.v1beta2.CreateInstanceRequest buildPartial() { - com.google.cloud.memcache.v1beta2.CreateInstanceRequest result = new com.google.cloud.memcache.v1beta2.CreateInstanceRequest(this); + com.google.cloud.memcache.v1beta2.CreateInstanceRequest result = + new com.google.cloud.memcache.v1beta2.CreateInstanceRequest(this); result.parent_ = parent_; result.instanceId_ = instanceId_; if (resourceBuilder_ == null) { @@ -534,38 +591,39 @@ public com.google.cloud.memcache.v1beta2.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.memcache.v1beta2.CreateInstanceRequest) { - return mergeFrom((com.google.cloud.memcache.v1beta2.CreateInstanceRequest)other); + return mergeFrom((com.google.cloud.memcache.v1beta2.CreateInstanceRequest) other); } else { super.mergeFrom(other); return this; @@ -573,7 +631,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.memcache.v1beta2.CreateInstanceRequest other) { - if (other == com.google.cloud.memcache.v1beta2.CreateInstanceRequest.getDefaultInstance()) return this; + if (other == com.google.cloud.memcache.v1beta2.CreateInstanceRequest.getDefaultInstance()) + return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; onChanged(); @@ -604,7 +663,8 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.memcache.v1beta2.CreateInstanceRequest) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.memcache.v1beta2.CreateInstanceRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -616,20 +676,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; @@ -638,22 +702,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 { @@ -661,60 +728,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; @@ -722,6 +802,8 @@ public Builder setParentBytes( private java.lang.Object instanceId_ = ""; /** + * + * *
      * Required. The logical name of the Memcached instance in the user
      * project with the following restrictions:
@@ -734,13 +816,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; @@ -749,6 +831,8 @@ public java.lang.String getInstanceId() { } } /** + * + * *
      * Required. The logical name of the Memcached instance in the user
      * project with the following restrictions:
@@ -761,15 +845,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 { @@ -777,6 +860,8 @@ public java.lang.String getInstanceId() { } } /** + * + * *
      * Required. The logical name of the Memcached instance in the user
      * project with the following restrictions:
@@ -789,20 +874,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 Memcached instance in the user
      * project with the following restrictions:
@@ -815,15 +902,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 Memcached instance in the user
      * project with the following restrictions:
@@ -836,16 +926,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; @@ -853,39 +943,58 @@ public Builder setInstanceIdBytes( private com.google.cloud.memcache.v1beta2.Instance resource_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.memcache.v1beta2.Instance, com.google.cloud.memcache.v1beta2.Instance.Builder, com.google.cloud.memcache.v1beta2.InstanceOrBuilder> resourceBuilder_; + com.google.cloud.memcache.v1beta2.Instance, + com.google.cloud.memcache.v1beta2.Instance.Builder, + com.google.cloud.memcache.v1beta2.InstanceOrBuilder> + resourceBuilder_; /** + * + * *
      * Required. A Memcached [Instance] resource
      * 
* - * .google.cloud.memcache.v1beta2.Instance resource = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.memcache.v1beta2.Instance resource = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the resource field is set. */ public boolean hasResource() { return resourceBuilder_ != null || resource_ != null; } /** + * + * *
      * Required. A Memcached [Instance] resource
      * 
* - * .google.cloud.memcache.v1beta2.Instance resource = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.memcache.v1beta2.Instance resource = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The resource. */ public com.google.cloud.memcache.v1beta2.Instance getResource() { if (resourceBuilder_ == null) { - return resource_ == null ? com.google.cloud.memcache.v1beta2.Instance.getDefaultInstance() : resource_; + return resource_ == null + ? com.google.cloud.memcache.v1beta2.Instance.getDefaultInstance() + : resource_; } else { return resourceBuilder_.getMessage(); } } /** + * + * *
      * Required. A Memcached [Instance] resource
      * 
* - * .google.cloud.memcache.v1beta2.Instance resource = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.memcache.v1beta2.Instance resource = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder setResource(com.google.cloud.memcache.v1beta2.Instance value) { if (resourceBuilder_ == null) { @@ -901,14 +1010,17 @@ public Builder setResource(com.google.cloud.memcache.v1beta2.Instance value) { return this; } /** + * + * *
      * Required. A Memcached [Instance] resource
      * 
* - * .google.cloud.memcache.v1beta2.Instance resource = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.memcache.v1beta2.Instance resource = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ - public Builder setResource( - com.google.cloud.memcache.v1beta2.Instance.Builder builderForValue) { + public Builder setResource(com.google.cloud.memcache.v1beta2.Instance.Builder builderForValue) { if (resourceBuilder_ == null) { resource_ = builderForValue.build(); onChanged(); @@ -919,17 +1031,23 @@ public Builder setResource( return this; } /** + * + * *
      * Required. A Memcached [Instance] resource
      * 
* - * .google.cloud.memcache.v1beta2.Instance resource = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.memcache.v1beta2.Instance resource = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder mergeResource(com.google.cloud.memcache.v1beta2.Instance value) { if (resourceBuilder_ == null) { if (resource_ != null) { resource_ = - com.google.cloud.memcache.v1beta2.Instance.newBuilder(resource_).mergeFrom(value).buildPartial(); + com.google.cloud.memcache.v1beta2.Instance.newBuilder(resource_) + .mergeFrom(value) + .buildPartial(); } else { resource_ = value; } @@ -941,11 +1059,15 @@ public Builder mergeResource(com.google.cloud.memcache.v1beta2.Instance value) { return this; } /** + * + * *
      * Required. A Memcached [Instance] resource
      * 
* - * .google.cloud.memcache.v1beta2.Instance resource = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.memcache.v1beta2.Instance resource = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder clearResource() { if (resourceBuilder_ == null) { @@ -959,55 +1081,71 @@ public Builder clearResource() { return this; } /** + * + * *
      * Required. A Memcached [Instance] resource
      * 
* - * .google.cloud.memcache.v1beta2.Instance resource = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.memcache.v1beta2.Instance resource = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.cloud.memcache.v1beta2.Instance.Builder getResourceBuilder() { - + onChanged(); return getResourceFieldBuilder().getBuilder(); } /** + * + * *
      * Required. A Memcached [Instance] resource
      * 
* - * .google.cloud.memcache.v1beta2.Instance resource = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.memcache.v1beta2.Instance resource = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.cloud.memcache.v1beta2.InstanceOrBuilder getResourceOrBuilder() { if (resourceBuilder_ != null) { return resourceBuilder_.getMessageOrBuilder(); } else { - return resource_ == null ? - com.google.cloud.memcache.v1beta2.Instance.getDefaultInstance() : resource_; + return resource_ == null + ? com.google.cloud.memcache.v1beta2.Instance.getDefaultInstance() + : resource_; } } /** + * + * *
      * Required. A Memcached [Instance] resource
      * 
* - * .google.cloud.memcache.v1beta2.Instance resource = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.memcache.v1beta2.Instance resource = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.memcache.v1beta2.Instance, com.google.cloud.memcache.v1beta2.Instance.Builder, com.google.cloud.memcache.v1beta2.InstanceOrBuilder> + com.google.cloud.memcache.v1beta2.Instance, + com.google.cloud.memcache.v1beta2.Instance.Builder, + com.google.cloud.memcache.v1beta2.InstanceOrBuilder> getResourceFieldBuilder() { if (resourceBuilder_ == null) { - resourceBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.memcache.v1beta2.Instance, com.google.cloud.memcache.v1beta2.Instance.Builder, com.google.cloud.memcache.v1beta2.InstanceOrBuilder>( - getResource(), - getParentForChildren(), - isClean()); + resourceBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.memcache.v1beta2.Instance, + com.google.cloud.memcache.v1beta2.Instance.Builder, + com.google.cloud.memcache.v1beta2.InstanceOrBuilder>( + getResource(), getParentForChildren(), isClean()); resource_ = null; } return resourceBuilder_; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1017,12 +1155,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.memcache.v1beta2.CreateInstanceRequest) } // @@protoc_insertion_point(class_scope:google.cloud.memcache.v1beta2.CreateInstanceRequest) private static final com.google.cloud.memcache.v1beta2.CreateInstanceRequest DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.memcache.v1beta2.CreateInstanceRequest(); } @@ -1031,16 +1169,16 @@ public static com.google.cloud.memcache.v1beta2.CreateInstanceRequest getDefault 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; @@ -1055,6 +1193,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.memcache.v1beta2.CreateInstanceRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1beta2/proto-google-cloud-memcache-v1beta2/src/main/java/com/google/cloud/memcache/v1beta2/CreateInstanceRequestOrBuilder.java b/proto-google-cloud-memcache-v1beta2/src/main/java/com/google/cloud/memcache/v1beta2/CreateInstanceRequestOrBuilder.java similarity index 63% rename from owl-bot-staging/v1beta2/proto-google-cloud-memcache-v1beta2/src/main/java/com/google/cloud/memcache/v1beta2/CreateInstanceRequestOrBuilder.java rename to proto-google-cloud-memcache-v1beta2/src/main/java/com/google/cloud/memcache/v1beta2/CreateInstanceRequestOrBuilder.java index bc8fe542..13a41194 100644 --- a/owl-bot-staging/v1beta2/proto-google-cloud-memcache-v1beta2/src/main/java/com/google/cloud/memcache/v1beta2/CreateInstanceRequestOrBuilder.java +++ b/proto-google-cloud-memcache-v1beta2/src/main/java/com/google/cloud/memcache/v1beta2/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/memcache/v1beta2/cloud_memcache.proto package com.google.cloud.memcache.v1beta2; -public interface CreateInstanceRequestOrBuilder extends +public interface CreateInstanceRequestOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.memcache.v1beta2.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 Memcached instance in the user
    * project with the following restrictions:
@@ -44,10 +71,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 Memcached instance in the user
    * project with the following restrictions:
@@ -60,35 +90,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 Memcached [Instance] resource
    * 
* - * .google.cloud.memcache.v1beta2.Instance resource = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.memcache.v1beta2.Instance resource = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the resource field is set. */ boolean hasResource(); /** + * + * *
    * Required. A Memcached [Instance] resource
    * 
* - * .google.cloud.memcache.v1beta2.Instance resource = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.memcache.v1beta2.Instance resource = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The resource. */ com.google.cloud.memcache.v1beta2.Instance getResource(); /** + * + * *
    * Required. A Memcached [Instance] resource
    * 
* - * .google.cloud.memcache.v1beta2.Instance resource = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.memcache.v1beta2.Instance resource = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ com.google.cloud.memcache.v1beta2.InstanceOrBuilder getResourceOrBuilder(); } diff --git a/owl-bot-staging/v1beta2/proto-google-cloud-memcache-v1beta2/src/main/java/com/google/cloud/memcache/v1beta2/DeleteInstanceRequest.java b/proto-google-cloud-memcache-v1beta2/src/main/java/com/google/cloud/memcache/v1beta2/DeleteInstanceRequest.java similarity index 66% rename from owl-bot-staging/v1beta2/proto-google-cloud-memcache-v1beta2/src/main/java/com/google/cloud/memcache/v1beta2/DeleteInstanceRequest.java rename to proto-google-cloud-memcache-v1beta2/src/main/java/com/google/cloud/memcache/v1beta2/DeleteInstanceRequest.java index 3bda98d5..9603a981 100644 --- a/owl-bot-staging/v1beta2/proto-google-cloud-memcache-v1beta2/src/main/java/com/google/cloud/memcache/v1beta2/DeleteInstanceRequest.java +++ b/proto-google-cloud-memcache-v1beta2/src/main/java/com/google/cloud/memcache/v1beta2/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/memcache/v1beta2/cloud_memcache.proto package com.google.cloud.memcache.v1beta2; /** + * + * *
  * Request for [DeleteInstance][google.cloud.memcache.v1beta2.CloudMemcache.DeleteInstance].
  * 
* * Protobuf type {@code google.cloud.memcache.v1beta2.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.memcache.v1beta2.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.memcache.v1beta2.CloudMemcacheProto.internal_static_google_cloud_memcache_v1beta2_DeleteInstanceRequest_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.memcache.v1beta2.CloudMemcacheProto + .internal_static_google_cloud_memcache_v1beta2_DeleteInstanceRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.memcache.v1beta2.CloudMemcacheProto.internal_static_google_cloud_memcache_v1beta2_DeleteInstanceRequest_fieldAccessorTable + return com.google.cloud.memcache.v1beta2.CloudMemcacheProto + .internal_static_google_cloud_memcache_v1beta2_DeleteInstanceRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.memcache.v1beta2.DeleteInstanceRequest.class, com.google.cloud.memcache.v1beta2.DeleteInstanceRequest.Builder.class); + com.google.cloud.memcache.v1beta2.DeleteInstanceRequest.class, + com.google.cloud.memcache.v1beta2.DeleteInstanceRequest.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** + * + * *
    * Required. Memcached instance resource name in the format:
    *     `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. Memcached instance resource name in the format:
    *     `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.memcache.v1beta2.DeleteInstanceRequest)) { return super.equals(obj); } - com.google.cloud.memcache.v1beta2.DeleteInstanceRequest other = (com.google.cloud.memcache.v1beta2.DeleteInstanceRequest) obj; + com.google.cloud.memcache.v1beta2.DeleteInstanceRequest other = + (com.google.cloud.memcache.v1beta2.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,127 @@ public int hashCode() { } public static com.google.cloud.memcache.v1beta2.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.memcache.v1beta2.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.memcache.v1beta2.DeleteInstanceRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.memcache.v1beta2.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.memcache.v1beta2.DeleteInstanceRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.memcache.v1beta2.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.memcache.v1beta2.DeleteInstanceRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.memcache.v1beta2.DeleteInstanceRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.memcache.v1beta2.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.memcache.v1beta2.DeleteInstanceRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.memcache.v1beta2.DeleteInstanceRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.memcache.v1beta2.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.memcache.v1beta2.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.memcache.v1beta2.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.memcache.v1beta2.DeleteInstanceRequest prototype) { + + public static Builder newBuilder( + com.google.cloud.memcache.v1beta2.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.memcache.v1beta2.CloudMemcache.DeleteInstance].
    * 
* * Protobuf type {@code google.cloud.memcache.v1beta2.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.memcache.v1beta2.DeleteInstanceRequest) com.google.cloud.memcache.v1beta2.DeleteInstanceRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.memcache.v1beta2.CloudMemcacheProto.internal_static_google_cloud_memcache_v1beta2_DeleteInstanceRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.memcache.v1beta2.CloudMemcacheProto + .internal_static_google_cloud_memcache_v1beta2_DeleteInstanceRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.memcache.v1beta2.CloudMemcacheProto.internal_static_google_cloud_memcache_v1beta2_DeleteInstanceRequest_fieldAccessorTable + return com.google.cloud.memcache.v1beta2.CloudMemcacheProto + .internal_static_google_cloud_memcache_v1beta2_DeleteInstanceRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.memcache.v1beta2.DeleteInstanceRequest.class, com.google.cloud.memcache.v1beta2.DeleteInstanceRequest.Builder.class); + com.google.cloud.memcache.v1beta2.DeleteInstanceRequest.class, + com.google.cloud.memcache.v1beta2.DeleteInstanceRequest.Builder.class); } // Construct using com.google.cloud.memcache.v1beta2.DeleteInstanceRequest.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.memcache.v1beta2.CloudMemcacheProto.internal_static_google_cloud_memcache_v1beta2_DeleteInstanceRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.memcache.v1beta2.CloudMemcacheProto + .internal_static_google_cloud_memcache_v1beta2_DeleteInstanceRequest_descriptor; } @java.lang.Override @@ -366,7 +402,8 @@ public com.google.cloud.memcache.v1beta2.DeleteInstanceRequest build() { @java.lang.Override public com.google.cloud.memcache.v1beta2.DeleteInstanceRequest buildPartial() { - com.google.cloud.memcache.v1beta2.DeleteInstanceRequest result = new com.google.cloud.memcache.v1beta2.DeleteInstanceRequest(this); + com.google.cloud.memcache.v1beta2.DeleteInstanceRequest result = + new com.google.cloud.memcache.v1beta2.DeleteInstanceRequest(this); result.name_ = name_; onBuilt(); return result; @@ -376,38 +413,39 @@ public com.google.cloud.memcache.v1beta2.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.memcache.v1beta2.DeleteInstanceRequest) { - return mergeFrom((com.google.cloud.memcache.v1beta2.DeleteInstanceRequest)other); + return mergeFrom((com.google.cloud.memcache.v1beta2.DeleteInstanceRequest) 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.memcache.v1beta2.DeleteInstanceRequest other) { - if (other == com.google.cloud.memcache.v1beta2.DeleteInstanceRequest.getDefaultInstance()) return this; + if (other == com.google.cloud.memcache.v1beta2.DeleteInstanceRequest.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.memcache.v1beta2.DeleteInstanceRequest) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.memcache.v1beta2.DeleteInstanceRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -451,20 +491,24 @@ public Builder mergeFrom( private java.lang.Object name_ = ""; /** + * + * *
      * Required. Memcached instance resource name in the format:
      *     `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. Memcached instance resource name in the format:
      *     `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. Memcached instance resource name in the format:
      *     `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. Memcached instance resource name in the format:
      *     `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. Memcached instance resource name in the format:
      *     `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.memcache.v1beta2.DeleteInstanceRequest) } // @@protoc_insertion_point(class_scope:google.cloud.memcache.v1beta2.DeleteInstanceRequest) private static final com.google.cloud.memcache.v1beta2.DeleteInstanceRequest DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.memcache.v1beta2.DeleteInstanceRequest(); } @@ -580,16 +640,16 @@ public static com.google.cloud.memcache.v1beta2.DeleteInstanceRequest getDefault 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 +664,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.memcache.v1beta2.DeleteInstanceRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/proto-google-cloud-memcache-v1beta2/src/main/java/com/google/cloud/memcache/v1beta2/DeleteInstanceRequestOrBuilder.java b/proto-google-cloud-memcache-v1beta2/src/main/java/com/google/cloud/memcache/v1beta2/DeleteInstanceRequestOrBuilder.java new file mode 100644 index 00000000..5837eb48 --- /dev/null +++ b/proto-google-cloud-memcache-v1beta2/src/main/java/com/google/cloud/memcache/v1beta2/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/memcache/v1beta2/cloud_memcache.proto + +package com.google.cloud.memcache.v1beta2; + +public interface DeleteInstanceRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.memcache.v1beta2.DeleteInstanceRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. Memcached instance resource name in the format:
+   *     `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. Memcached instance resource name in the format:
+   *     `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/v1beta2/proto-google-cloud-memcache-v1beta2/src/main/java/com/google/cloud/memcache/v1beta2/GetInstanceRequest.java b/proto-google-cloud-memcache-v1beta2/src/main/java/com/google/cloud/memcache/v1beta2/GetInstanceRequest.java similarity index 67% rename from owl-bot-staging/v1beta2/proto-google-cloud-memcache-v1beta2/src/main/java/com/google/cloud/memcache/v1beta2/GetInstanceRequest.java rename to proto-google-cloud-memcache-v1beta2/src/main/java/com/google/cloud/memcache/v1beta2/GetInstanceRequest.java index 886b55fc..ae6e7b72 100644 --- a/owl-bot-staging/v1beta2/proto-google-cloud-memcache-v1beta2/src/main/java/com/google/cloud/memcache/v1beta2/GetInstanceRequest.java +++ b/proto-google-cloud-memcache-v1beta2/src/main/java/com/google/cloud/memcache/v1beta2/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/memcache/v1beta2/cloud_memcache.proto package com.google.cloud.memcache.v1beta2; /** + * + * *
  * Request for [GetInstance][google.cloud.memcache.v1beta2.CloudMemcache.GetInstance].
  * 
* * Protobuf type {@code google.cloud.memcache.v1beta2.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.memcache.v1beta2.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.memcache.v1beta2.CloudMemcacheProto.internal_static_google_cloud_memcache_v1beta2_GetInstanceRequest_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.memcache.v1beta2.CloudMemcacheProto + .internal_static_google_cloud_memcache_v1beta2_GetInstanceRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.memcache.v1beta2.CloudMemcacheProto.internal_static_google_cloud_memcache_v1beta2_GetInstanceRequest_fieldAccessorTable + return com.google.cloud.memcache.v1beta2.CloudMemcacheProto + .internal_static_google_cloud_memcache_v1beta2_GetInstanceRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.memcache.v1beta2.GetInstanceRequest.class, com.google.cloud.memcache.v1beta2.GetInstanceRequest.Builder.class); + com.google.cloud.memcache.v1beta2.GetInstanceRequest.class, + com.google.cloud.memcache.v1beta2.GetInstanceRequest.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** + * + * *
    * Required. Memcached instance resource name in the format:
    *     `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. Memcached instance resource name in the format:
    *     `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.memcache.v1beta2.GetInstanceRequest)) { return super.equals(obj); } - com.google.cloud.memcache.v1beta2.GetInstanceRequest other = (com.google.cloud.memcache.v1beta2.GetInstanceRequest) obj; + com.google.cloud.memcache.v1beta2.GetInstanceRequest other = + (com.google.cloud.memcache.v1beta2.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.memcache.v1beta2.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.memcache.v1beta2.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.memcache.v1beta2.GetInstanceRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.memcache.v1beta2.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.memcache.v1beta2.GetInstanceRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.memcache.v1beta2.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.memcache.v1beta2.GetInstanceRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.memcache.v1beta2.GetInstanceRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.memcache.v1beta2.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.memcache.v1beta2.GetInstanceRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.memcache.v1beta2.GetInstanceRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.memcache.v1beta2.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.memcache.v1beta2.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.memcache.v1beta2.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.memcache.v1beta2.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.memcache.v1beta2.CloudMemcache.GetInstance].
    * 
* * Protobuf type {@code google.cloud.memcache.v1beta2.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.memcache.v1beta2.GetInstanceRequest) com.google.cloud.memcache.v1beta2.GetInstanceRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.memcache.v1beta2.CloudMemcacheProto.internal_static_google_cloud_memcache_v1beta2_GetInstanceRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.memcache.v1beta2.CloudMemcacheProto + .internal_static_google_cloud_memcache_v1beta2_GetInstanceRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.memcache.v1beta2.CloudMemcacheProto.internal_static_google_cloud_memcache_v1beta2_GetInstanceRequest_fieldAccessorTable + return com.google.cloud.memcache.v1beta2.CloudMemcacheProto + .internal_static_google_cloud_memcache_v1beta2_GetInstanceRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.memcache.v1beta2.GetInstanceRequest.class, com.google.cloud.memcache.v1beta2.GetInstanceRequest.Builder.class); + com.google.cloud.memcache.v1beta2.GetInstanceRequest.class, + com.google.cloud.memcache.v1beta2.GetInstanceRequest.Builder.class); } // Construct using com.google.cloud.memcache.v1beta2.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.memcache.v1beta2.CloudMemcacheProto.internal_static_google_cloud_memcache_v1beta2_GetInstanceRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.memcache.v1beta2.CloudMemcacheProto + .internal_static_google_cloud_memcache_v1beta2_GetInstanceRequest_descriptor; } @java.lang.Override @@ -366,7 +401,8 @@ public com.google.cloud.memcache.v1beta2.GetInstanceRequest build() { @java.lang.Override public com.google.cloud.memcache.v1beta2.GetInstanceRequest buildPartial() { - com.google.cloud.memcache.v1beta2.GetInstanceRequest result = new com.google.cloud.memcache.v1beta2.GetInstanceRequest(this); + com.google.cloud.memcache.v1beta2.GetInstanceRequest result = + new com.google.cloud.memcache.v1beta2.GetInstanceRequest(this); result.name_ = name_; onBuilt(); return result; @@ -376,38 +412,39 @@ public com.google.cloud.memcache.v1beta2.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.memcache.v1beta2.GetInstanceRequest) { - return mergeFrom((com.google.cloud.memcache.v1beta2.GetInstanceRequest)other); + return mergeFrom((com.google.cloud.memcache.v1beta2.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.memcache.v1beta2.GetInstanceRequest other) { - if (other == com.google.cloud.memcache.v1beta2.GetInstanceRequest.getDefaultInstance()) return this; + if (other == com.google.cloud.memcache.v1beta2.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.memcache.v1beta2.GetInstanceRequest) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.memcache.v1beta2.GetInstanceRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -451,20 +490,24 @@ public Builder mergeFrom( private java.lang.Object name_ = ""; /** + * + * *
      * Required. Memcached instance resource name in the format:
      *     `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. Memcached instance resource name in the format:
      *     `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. Memcached instance resource name in the format:
      *     `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. Memcached instance resource name in the format:
      *     `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. Memcached instance resource name in the format:
      *     `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.memcache.v1beta2.GetInstanceRequest) } // @@protoc_insertion_point(class_scope:google.cloud.memcache.v1beta2.GetInstanceRequest) private static final com.google.cloud.memcache.v1beta2.GetInstanceRequest DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.memcache.v1beta2.GetInstanceRequest(); } @@ -580,16 +639,16 @@ public static com.google.cloud.memcache.v1beta2.GetInstanceRequest getDefaultIns 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.memcache.v1beta2.GetInstanceRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/proto-google-cloud-memcache-v1beta2/src/main/java/com/google/cloud/memcache/v1beta2/GetInstanceRequestOrBuilder.java b/proto-google-cloud-memcache-v1beta2/src/main/java/com/google/cloud/memcache/v1beta2/GetInstanceRequestOrBuilder.java new file mode 100644 index 00000000..b584fede --- /dev/null +++ b/proto-google-cloud-memcache-v1beta2/src/main/java/com/google/cloud/memcache/v1beta2/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/memcache/v1beta2/cloud_memcache.proto + +package com.google.cloud.memcache.v1beta2; + +public interface GetInstanceRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.memcache.v1beta2.GetInstanceRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. Memcached instance resource name in the format:
+   *     `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. Memcached instance resource name in the format:
+   *     `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/v1beta2/proto-google-cloud-memcache-v1beta2/src/main/java/com/google/cloud/memcache/v1beta2/Instance.java b/proto-google-cloud-memcache-v1beta2/src/main/java/com/google/cloud/memcache/v1beta2/Instance.java similarity index 72% rename from owl-bot-staging/v1beta2/proto-google-cloud-memcache-v1beta2/src/main/java/com/google/cloud/memcache/v1beta2/Instance.java rename to proto-google-cloud-memcache-v1beta2/src/main/java/com/google/cloud/memcache/v1beta2/Instance.java index 3f6b0088..61f82a41 100644 --- a/owl-bot-staging/v1beta2/proto-google-cloud-memcache-v1beta2/src/main/java/com/google/cloud/memcache/v1beta2/Instance.java +++ b/proto-google-cloud-memcache-v1beta2/src/main/java/com/google/cloud/memcache/v1beta2/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/memcache/v1beta2/cloud_memcache.proto package com.google.cloud.memcache.v1beta2; /** + * + * *
  * A Memorystore for Memcached instance
  * 
* * Protobuf type {@code google.cloud.memcache.v1beta2.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.memcache.v1beta2.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_ = ""; @@ -34,16 +52,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) @@ -63,157 +80,185 @@ 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(); - - 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(); + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); - authorizedNetwork_ = s; - break; - } - case 42: { - java.lang.String s = input.readStringRequireUtf8(); - if (!((mutable_bitField0_ & 0x00000002) != 0)) { - zones_ = new com.google.protobuf.LazyStringArrayList(); - mutable_bitField0_ |= 0x00000002; + name_ = s; + break; } - zones_.add(s); - break; - } - case 48: { + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); - nodeCount_ = input.readInt32(); - break; - } - case 58: { - com.google.cloud.memcache.v1beta2.Instance.NodeConfig.Builder subBuilder = null; - if (nodeConfig_ != null) { - subBuilder = nodeConfig_.toBuilder(); + displayName_ = s; + break; } - nodeConfig_ = input.readMessage(com.google.cloud.memcache.v1beta2.Instance.NodeConfig.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(nodeConfig_); - nodeConfig_ = 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 72: { - int rawValue = input.readEnum(); - - memcacheVersion_ = rawValue; - break; - } - case 90: { - com.google.cloud.memcache.v1beta2.MemcacheParameters.Builder subBuilder = null; - if (parameters_ != null) { - subBuilder = parameters_.toBuilder(); + authorizedNetwork_ = s; + break; } - parameters_ = input.readMessage(com.google.cloud.memcache.v1beta2.MemcacheParameters.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(parameters_); - parameters_ = subBuilder.buildPartial(); + case 42: + { + java.lang.String s = input.readStringRequireUtf8(); + if (!((mutable_bitField0_ & 0x00000002) != 0)) { + zones_ = new com.google.protobuf.LazyStringArrayList(); + mutable_bitField0_ |= 0x00000002; + } + zones_.add(s); + break; } - - break; - } - case 98: { - if (!((mutable_bitField0_ & 0x00000004) != 0)) { - memcacheNodes_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000004; + case 48: + { + nodeCount_ = input.readInt32(); + break; } - memcacheNodes_.add( - input.readMessage(com.google.cloud.memcache.v1beta2.Instance.Node.parser(), extensionRegistry)); - break; - } - case 106: { - com.google.protobuf.Timestamp.Builder subBuilder = null; - if (createTime_ != null) { - subBuilder = createTime_.toBuilder(); + case 58: + { + com.google.cloud.memcache.v1beta2.Instance.NodeConfig.Builder subBuilder = null; + if (nodeConfig_ != null) { + subBuilder = nodeConfig_.toBuilder(); + } + nodeConfig_ = + input.readMessage( + com.google.cloud.memcache.v1beta2.Instance.NodeConfig.parser(), + extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(nodeConfig_); + nodeConfig_ = subBuilder.buildPartial(); + } + + break; } - createTime_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(createTime_); - createTime_ = subBuilder.buildPartial(); + case 72: + { + int rawValue = input.readEnum(); + + memcacheVersion_ = rawValue; + break; } + case 90: + { + com.google.cloud.memcache.v1beta2.MemcacheParameters.Builder subBuilder = null; + if (parameters_ != null) { + subBuilder = parameters_.toBuilder(); + } + parameters_ = + input.readMessage( + com.google.cloud.memcache.v1beta2.MemcacheParameters.parser(), + extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(parameters_); + parameters_ = subBuilder.buildPartial(); + } - break; - } - case 114: { - com.google.protobuf.Timestamp.Builder subBuilder = null; - if (updateTime_ != null) { - subBuilder = updateTime_.toBuilder(); + break; } - updateTime_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(updateTime_); - updateTime_ = subBuilder.buildPartial(); + case 98: + { + if (!((mutable_bitField0_ & 0x00000004) != 0)) { + memcacheNodes_ = + new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000004; + } + memcacheNodes_.add( + input.readMessage( + com.google.cloud.memcache.v1beta2.Instance.Node.parser(), extensionRegistry)); + 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 120: { - int rawValue = input.readEnum(); + break; + } + case 114: + { + 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(); + } - state_ = rawValue; - break; - } - case 146: { - java.lang.String s = input.readStringRequireUtf8(); + break; + } + case 120: + { + int rawValue = input.readEnum(); - memcacheFullVersion_ = s; - break; - } - case 154: { - if (!((mutable_bitField0_ & 0x00000008) != 0)) { - instanceMessages_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000008; + state_ = rawValue; + break; } - instanceMessages_.add( - input.readMessage(com.google.cloud.memcache.v1beta2.Instance.InstanceMessage.parser(), extensionRegistry)); - break; - } - case 162: { - java.lang.String s = input.readStringRequireUtf8(); + case 146: + { + java.lang.String s = input.readStringRequireUtf8(); - discoveryEndpoint_ = s; - break; - } - case 168: { + memcacheFullVersion_ = s; + break; + } + case 154: + { + if (!((mutable_bitField0_ & 0x00000008) != 0)) { + instanceMessages_ = + new java.util.ArrayList< + com.google.cloud.memcache.v1beta2.Instance.InstanceMessage>(); + mutable_bitField0_ |= 0x00000008; + } + instanceMessages_.add( + input.readMessage( + com.google.cloud.memcache.v1beta2.Instance.InstanceMessage.parser(), + extensionRegistry)); + break; + } + case 162: + { + java.lang.String s = input.readStringRequireUtf8(); - updateAvailable_ = input.readBool(); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + discoveryEndpoint_ = s; + break; + } + case 168: + { + updateAvailable_ = input.readBool(); + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -221,8 +266,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_ & 0x00000002) != 0)) { zones_ = zones_.getUnmodifiableView(); @@ -237,41 +281,46 @@ private Instance( makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.memcache.v1beta2.CloudMemcacheProto.internal_static_google_cloud_memcache_v1beta2_Instance_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.memcache.v1beta2.CloudMemcacheProto + .internal_static_google_cloud_memcache_v1beta2_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(); 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.memcache.v1beta2.CloudMemcacheProto.internal_static_google_cloud_memcache_v1beta2_Instance_fieldAccessorTable + return com.google.cloud.memcache.v1beta2.CloudMemcacheProto + .internal_static_google_cloud_memcache_v1beta2_Instance_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.memcache.v1beta2.Instance.class, com.google.cloud.memcache.v1beta2.Instance.Builder.class); + com.google.cloud.memcache.v1beta2.Instance.class, + com.google.cloud.memcache.v1beta2.Instance.Builder.class); } /** + * + * *
    * Different states of a Memcached instance.
    * 
* * Protobuf enum {@code google.cloud.memcache.v1beta2.Instance.State} */ - public enum State - implements com.google.protobuf.ProtocolMessageEnum { + public enum State implements com.google.protobuf.ProtocolMessageEnum { /** + * + * *
      * State not set.
      * 
@@ -280,6 +329,8 @@ public enum State */ STATE_UNSPECIFIED(0), /** + * + * *
      * Memcached instance is being created.
      * 
@@ -288,6 +339,8 @@ public enum State */ CREATING(1), /** + * + * *
      * Memcached instance has been created and ready to be used.
      * 
@@ -296,6 +349,8 @@ public enum State */ READY(2), /** + * + * *
      * Memcached instance is being deleted.
      * 
@@ -304,6 +359,8 @@ public enum State */ DELETING(4), /** + * + * *
      * Memcached instance is going through maintenance, e.g. data plane rollout.
      * 
@@ -315,6 +372,8 @@ public enum State ; /** + * + * *
      * State not set.
      * 
@@ -323,6 +382,8 @@ public enum State */ public static final int STATE_UNSPECIFIED_VALUE = 0; /** + * + * *
      * Memcached instance is being created.
      * 
@@ -331,6 +392,8 @@ public enum State */ public static final int CREATING_VALUE = 1; /** + * + * *
      * Memcached instance has been created and ready to be used.
      * 
@@ -339,6 +402,8 @@ public enum State */ public static final int READY_VALUE = 2; /** + * + * *
      * Memcached instance is being deleted.
      * 
@@ -347,6 +412,8 @@ public enum State */ public static final int DELETING_VALUE = 4; /** + * + * *
      * Memcached instance is going through maintenance, e.g. data plane rollout.
      * 
@@ -355,7 +422,6 @@ public enum State */ public static final int PERFORMING_MAINTENANCE_VALUE = 5; - public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( @@ -380,51 +446,53 @@ public static State valueOf(int value) { */ public static State forNumber(int value) { switch (value) { - case 0: return STATE_UNSPECIFIED; - case 1: return CREATING; - case 2: return READY; - case 4: return DELETING; - case 5: return PERFORMING_MAINTENANCE; - default: return null; + case 0: + return STATE_UNSPECIFIED; + case 1: + return CREATING; + case 2: + return READY; + case 4: + return DELETING; + case 5: + return PERFORMING_MAINTENANCE; + 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.memcache.v1beta2.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; @@ -441,61 +509,69 @@ private State(int value) { // @@protoc_insertion_point(enum_scope:google.cloud.memcache.v1beta2.Instance.State) } - public interface NodeConfigOrBuilder extends + public interface NodeConfigOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.memcache.v1beta2.Instance.NodeConfig) com.google.protobuf.MessageOrBuilder { /** + * + * *
      * Required. Number of cpus per Memcached node.
      * 
* * int32 cpu_count = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The cpuCount. */ int getCpuCount(); /** + * + * *
      * Required. Memory size in MiB for each Memcached node.
      * 
* * int32 memory_size_mb = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The memorySizeMb. */ int getMemorySizeMb(); } /** + * + * *
    * Configuration for a Memcached Node.
    * 
* * Protobuf type {@code google.cloud.memcache.v1beta2.Instance.NodeConfig} */ - public static final class NodeConfig extends - com.google.protobuf.GeneratedMessageV3 implements + public static final class NodeConfig extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.memcache.v1beta2.Instance.NodeConfig) NodeConfigOrBuilder { - private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use NodeConfig.newBuilder() to construct. private NodeConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private NodeConfig() { - } + + private NodeConfig() {} @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new NodeConfig(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private NodeConfig( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -514,23 +590,23 @@ private NodeConfig( case 0: done = true; break; - case 8: { - - cpuCount_ = input.readInt32(); - break; - } - case 16: { - - memorySizeMb_ = input.readInt32(); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + case 8: + { + cpuCount_ = input.readInt32(); + break; + } + case 16: + { + memorySizeMb_ = input.readInt32(); + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -538,34 +614,39 @@ private NodeConfig( } 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.memcache.v1beta2.CloudMemcacheProto.internal_static_google_cloud_memcache_v1beta2_Instance_NodeConfig_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.memcache.v1beta2.CloudMemcacheProto + .internal_static_google_cloud_memcache_v1beta2_Instance_NodeConfig_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.memcache.v1beta2.CloudMemcacheProto.internal_static_google_cloud_memcache_v1beta2_Instance_NodeConfig_fieldAccessorTable + return com.google.cloud.memcache.v1beta2.CloudMemcacheProto + .internal_static_google_cloud_memcache_v1beta2_Instance_NodeConfig_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.memcache.v1beta2.Instance.NodeConfig.class, com.google.cloud.memcache.v1beta2.Instance.NodeConfig.Builder.class); + com.google.cloud.memcache.v1beta2.Instance.NodeConfig.class, + com.google.cloud.memcache.v1beta2.Instance.NodeConfig.Builder.class); } public static final int CPU_COUNT_FIELD_NUMBER = 1; private int cpuCount_; /** + * + * *
      * Required. Number of cpus per Memcached node.
      * 
* * int32 cpu_count = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The cpuCount. */ @java.lang.Override @@ -576,11 +657,14 @@ public int getCpuCount() { public static final int MEMORY_SIZE_MB_FIELD_NUMBER = 2; private int memorySizeMb_; /** + * + * *
      * Required. Memory size in MiB for each Memcached node.
      * 
* * int32 memory_size_mb = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The memorySizeMb. */ @java.lang.Override @@ -589,6 +673,7 @@ public int getMemorySizeMb() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -600,8 +685,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (cpuCount_ != 0) { output.writeInt32(1, cpuCount_); } @@ -618,12 +702,10 @@ public int getSerializedSize() { size = 0; if (cpuCount_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(1, cpuCount_); + size += com.google.protobuf.CodedOutputStream.computeInt32Size(1, cpuCount_); } if (memorySizeMb_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(2, memorySizeMb_); + size += com.google.protobuf.CodedOutputStream.computeInt32Size(2, memorySizeMb_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -633,17 +715,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.memcache.v1beta2.Instance.NodeConfig)) { return super.equals(obj); } - com.google.cloud.memcache.v1beta2.Instance.NodeConfig other = (com.google.cloud.memcache.v1beta2.Instance.NodeConfig) obj; + com.google.cloud.memcache.v1beta2.Instance.NodeConfig other = + (com.google.cloud.memcache.v1beta2.Instance.NodeConfig) obj; - if (getCpuCount() - != other.getCpuCount()) return false; - if (getMemorySizeMb() - != other.getMemorySizeMb()) return false; + if (getCpuCount() != other.getCpuCount()) return false; + if (getMemorySizeMb() != other.getMemorySizeMb()) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -665,87 +746,94 @@ public int hashCode() { } public static com.google.cloud.memcache.v1beta2.Instance.NodeConfig parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.memcache.v1beta2.Instance.NodeConfig parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.memcache.v1beta2.Instance.NodeConfig parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.memcache.v1beta2.Instance.NodeConfig parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.memcache.v1beta2.Instance.NodeConfig parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.memcache.v1beta2.Instance.NodeConfig parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.memcache.v1beta2.Instance.NodeConfig parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.memcache.v1beta2.Instance.NodeConfig parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.memcache.v1beta2.Instance.NodeConfig parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.memcache.v1beta2.Instance.NodeConfig parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.memcache.v1beta2.Instance.NodeConfig parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.memcache.v1beta2.Instance.NodeConfig parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.memcache.v1beta2.Instance.NodeConfig parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.memcache.v1beta2.Instance.NodeConfig parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.memcache.v1beta2.Instance.NodeConfig prototype) { + + public static Builder newBuilder( + com.google.cloud.memcache.v1beta2.Instance.NodeConfig prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override @@ -755,27 +843,32 @@ protected Builder newBuilderForType( return builder; } /** + * + * *
      * Configuration for a Memcached Node.
      * 
* * Protobuf type {@code google.cloud.memcache.v1beta2.Instance.NodeConfig} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.memcache.v1beta2.Instance.NodeConfig) com.google.cloud.memcache.v1beta2.Instance.NodeConfigOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.memcache.v1beta2.CloudMemcacheProto.internal_static_google_cloud_memcache_v1beta2_Instance_NodeConfig_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.memcache.v1beta2.CloudMemcacheProto + .internal_static_google_cloud_memcache_v1beta2_Instance_NodeConfig_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.memcache.v1beta2.CloudMemcacheProto.internal_static_google_cloud_memcache_v1beta2_Instance_NodeConfig_fieldAccessorTable + return com.google.cloud.memcache.v1beta2.CloudMemcacheProto + .internal_static_google_cloud_memcache_v1beta2_Instance_NodeConfig_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.memcache.v1beta2.Instance.NodeConfig.class, com.google.cloud.memcache.v1beta2.Instance.NodeConfig.Builder.class); + com.google.cloud.memcache.v1beta2.Instance.NodeConfig.class, + com.google.cloud.memcache.v1beta2.Instance.NodeConfig.Builder.class); } // Construct using com.google.cloud.memcache.v1beta2.Instance.NodeConfig.newBuilder() @@ -783,16 +876,15 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -804,9 +896,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.memcache.v1beta2.CloudMemcacheProto.internal_static_google_cloud_memcache_v1beta2_Instance_NodeConfig_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.memcache.v1beta2.CloudMemcacheProto + .internal_static_google_cloud_memcache_v1beta2_Instance_NodeConfig_descriptor; } @java.lang.Override @@ -825,7 +917,8 @@ public com.google.cloud.memcache.v1beta2.Instance.NodeConfig build() { @java.lang.Override public com.google.cloud.memcache.v1beta2.Instance.NodeConfig buildPartial() { - com.google.cloud.memcache.v1beta2.Instance.NodeConfig result = new com.google.cloud.memcache.v1beta2.Instance.NodeConfig(this); + com.google.cloud.memcache.v1beta2.Instance.NodeConfig result = + new com.google.cloud.memcache.v1beta2.Instance.NodeConfig(this); result.cpuCount_ = cpuCount_; result.memorySizeMb_ = memorySizeMb_; onBuilt(); @@ -836,38 +929,41 @@ public com.google.cloud.memcache.v1beta2.Instance.NodeConfig buildPartial() { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + int index, + java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.memcache.v1beta2.Instance.NodeConfig) { - return mergeFrom((com.google.cloud.memcache.v1beta2.Instance.NodeConfig)other); + return mergeFrom((com.google.cloud.memcache.v1beta2.Instance.NodeConfig) other); } else { super.mergeFrom(other); return this; @@ -875,7 +971,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.memcache.v1beta2.Instance.NodeConfig other) { - if (other == com.google.cloud.memcache.v1beta2.Instance.NodeConfig.getDefaultInstance()) return this; + if (other == com.google.cloud.memcache.v1beta2.Instance.NodeConfig.getDefaultInstance()) + return this; if (other.getCpuCount() != 0) { setCpuCount(other.getCpuCount()); } @@ -901,7 +998,8 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.memcache.v1beta2.Instance.NodeConfig) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.memcache.v1beta2.Instance.NodeConfig) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -911,13 +1009,16 @@ public Builder mergeFrom( return this; } - private int cpuCount_ ; + private int cpuCount_; /** + * + * *
        * Required. Number of cpus per Memcached node.
        * 
* * int32 cpu_count = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The cpuCount. */ @java.lang.Override @@ -925,42 +1026,51 @@ public int getCpuCount() { return cpuCount_; } /** + * + * *
        * Required. Number of cpus per Memcached node.
        * 
* * int32 cpu_count = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @param value The cpuCount to set. * @return This builder for chaining. */ public Builder setCpuCount(int value) { - + cpuCount_ = value; onChanged(); return this; } /** + * + * *
        * Required. Number of cpus per Memcached node.
        * 
* * int32 cpu_count = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return This builder for chaining. */ public Builder clearCpuCount() { - + cpuCount_ = 0; onChanged(); return this; } - private int memorySizeMb_ ; + private int memorySizeMb_; /** + * + * *
        * Required. Memory size in MiB for each Memcached node.
        * 
* * int32 memory_size_mb = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The memorySizeMb. */ @java.lang.Override @@ -968,34 +1078,41 @@ public int getMemorySizeMb() { return memorySizeMb_; } /** + * + * *
        * Required. Memory size in MiB for each Memcached node.
        * 
* * int32 memory_size_mb = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @param value The memorySizeMb to set. * @return This builder for chaining. */ public Builder setMemorySizeMb(int value) { - + memorySizeMb_ = value; onChanged(); return this; } /** + * + * *
        * Required. Memory size in MiB for each Memcached node.
        * 
* * int32 memory_size_mb = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return This builder for chaining. */ public Builder clearMemorySizeMb() { - + memorySizeMb_ = 0; onChanged(); return this; } + @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -1008,12 +1125,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.memcache.v1beta2.Instance.NodeConfig) } // @@protoc_insertion_point(class_scope:google.cloud.memcache.v1beta2.Instance.NodeConfig) private static final com.google.cloud.memcache.v1beta2.Instance.NodeConfig DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.memcache.v1beta2.Instance.NodeConfig(); } @@ -1022,16 +1139,16 @@ public static com.google.cloud.memcache.v1beta2.Instance.NodeConfig getDefaultIn return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public NodeConfig parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new NodeConfig(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public NodeConfig parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new NodeConfig(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1046,125 +1163,161 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.memcache.v1beta2.Instance.NodeConfig getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - public interface NodeOrBuilder extends + public interface NodeOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.memcache.v1beta2.Instance.Node) com.google.protobuf.MessageOrBuilder { /** + * + * *
      * Output only. Identifier of the Memcached node. The node id does not
      * include project or location like the Memcached instance name.
      * 
* * string node_id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The nodeId. */ java.lang.String getNodeId(); /** + * + * *
      * Output only. Identifier of the Memcached node. The node id does not
      * include project or location like the Memcached instance name.
      * 
* * string node_id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for nodeId. */ - com.google.protobuf.ByteString - getNodeIdBytes(); + com.google.protobuf.ByteString getNodeIdBytes(); /** + * + * *
      * Output only. Location (GCP Zone) for the Memcached node.
      * 
* * string zone = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The zone. */ java.lang.String getZone(); /** + * + * *
      * Output only. Location (GCP Zone) for the Memcached 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(); /** + * + * *
      * Output only. Current state of the Memcached node.
      * 
* - * .google.cloud.memcache.v1beta2.Instance.Node.State state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.memcache.v1beta2.Instance.Node.State state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The enum numeric value on the wire for state. */ int getStateValue(); /** + * + * *
      * Output only. Current state of the Memcached node.
      * 
* - * .google.cloud.memcache.v1beta2.Instance.Node.State state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.memcache.v1beta2.Instance.Node.State state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The state. */ com.google.cloud.memcache.v1beta2.Instance.Node.State getState(); /** + * + * *
      * Output only. Hostname or IP address of the Memcached node used by the
      * clients to connect to the Memcached server on this node.
      * 
* * string host = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The host. */ java.lang.String getHost(); /** + * + * *
      * Output only. Hostname or IP address of the Memcached node used by the
      * clients to connect to the Memcached server on this node.
      * 
* * string host = 4 [(.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 Memcached server on this node.
      * 
* * int32 port = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The port. */ int getPort(); /** + * + * *
      * User defined parameters currently applied to the node.
      * 
* * .google.cloud.memcache.v1beta2.MemcacheParameters parameters = 6; + * * @return Whether the parameters field is set. */ boolean hasParameters(); /** + * + * *
      * User defined parameters currently applied to the node.
      * 
* * .google.cloud.memcache.v1beta2.MemcacheParameters parameters = 6; + * * @return The parameters. */ com.google.cloud.memcache.v1beta2.MemcacheParameters getParameters(); /** + * + * *
      * User defined parameters currently applied to the node.
      * 
@@ -1174,27 +1327,29 @@ public interface NodeOrBuilder extends com.google.cloud.memcache.v1beta2.MemcacheParametersOrBuilder getParametersOrBuilder(); /** + * + * *
      * Output only. Returns true if there is an update waiting to be applied
      * 
* * bool update_available = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The updateAvailable. */ boolean getUpdateAvailable(); } - /** - * Protobuf type {@code google.cloud.memcache.v1beta2.Instance.Node} - */ - public static final class Node extends - com.google.protobuf.GeneratedMessageV3 implements + /** Protobuf type {@code google.cloud.memcache.v1beta2.Instance.Node} */ + public static final class Node extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.memcache.v1beta2.Instance.Node) NodeOrBuilder { - private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use Node.newBuilder() to construct. private Node(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private Node() { nodeId_ = ""; zone_ = ""; @@ -1204,16 +1359,15 @@ private Node() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new Node(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private Node( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -1232,60 +1386,68 @@ private Node( case 0: done = true; break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); - nodeId_ = s; - break; - } - case 18: { - java.lang.String s = input.readStringRequireUtf8(); - - zone_ = s; - break; - } - case 24: { - int rawValue = input.readEnum(); + nodeId_ = s; + break; + } + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); - state_ = rawValue; - break; - } - case 34: { - java.lang.String s = input.readStringRequireUtf8(); + zone_ = s; + break; + } + case 24: + { + int rawValue = input.readEnum(); - host_ = s; - break; - } - case 40: { + state_ = rawValue; + break; + } + case 34: + { + java.lang.String s = input.readStringRequireUtf8(); - port_ = input.readInt32(); - break; - } - case 50: { - com.google.cloud.memcache.v1beta2.MemcacheParameters.Builder subBuilder = null; - if (parameters_ != null) { - subBuilder = parameters_.toBuilder(); + host_ = s; + break; } - parameters_ = input.readMessage(com.google.cloud.memcache.v1beta2.MemcacheParameters.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(parameters_); - parameters_ = subBuilder.buildPartial(); + case 40: + { + port_ = input.readInt32(); + break; } - - break; - } - case 56: { - - updateAvailable_ = input.readBool(); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + case 50: + { + com.google.cloud.memcache.v1beta2.MemcacheParameters.Builder subBuilder = null; + if (parameters_ != null) { + subBuilder = parameters_.toBuilder(); + } + parameters_ = + input.readMessage( + com.google.cloud.memcache.v1beta2.MemcacheParameters.parser(), + extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(parameters_); + parameters_ = subBuilder.buildPartial(); + } + + break; + } + case 56: + { + updateAvailable_ = input.readBool(); + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -1293,36 +1455,41 @@ private Node( } 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.memcache.v1beta2.CloudMemcacheProto.internal_static_google_cloud_memcache_v1beta2_Instance_Node_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.memcache.v1beta2.CloudMemcacheProto + .internal_static_google_cloud_memcache_v1beta2_Instance_Node_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.memcache.v1beta2.CloudMemcacheProto.internal_static_google_cloud_memcache_v1beta2_Instance_Node_fieldAccessorTable + return com.google.cloud.memcache.v1beta2.CloudMemcacheProto + .internal_static_google_cloud_memcache_v1beta2_Instance_Node_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.memcache.v1beta2.Instance.Node.class, com.google.cloud.memcache.v1beta2.Instance.Node.Builder.class); + com.google.cloud.memcache.v1beta2.Instance.Node.class, + com.google.cloud.memcache.v1beta2.Instance.Node.Builder.class); } /** + * + * *
      * Different states of a Memcached node.
      * 
* * Protobuf enum {@code google.cloud.memcache.v1beta2.Instance.Node.State} */ - public enum State - implements com.google.protobuf.ProtocolMessageEnum { + public enum State implements com.google.protobuf.ProtocolMessageEnum { /** + * + * *
        * Node state is not set.
        * 
@@ -1331,6 +1498,8 @@ public enum State */ STATE_UNSPECIFIED(0), /** + * + * *
        * Node is being created.
        * 
@@ -1339,6 +1508,8 @@ public enum State */ CREATING(1), /** + * + * *
        * Node has been created and ready to be used.
        * 
@@ -1347,6 +1518,8 @@ public enum State */ READY(2), /** + * + * *
        * Node is being deleted.
        * 
@@ -1355,6 +1528,8 @@ public enum State */ DELETING(3), /** + * + * *
        * Node is being updated.
        * 
@@ -1366,6 +1541,8 @@ public enum State ; /** + * + * *
        * Node state is not set.
        * 
@@ -1374,6 +1551,8 @@ public enum State */ public static final int STATE_UNSPECIFIED_VALUE = 0; /** + * + * *
        * Node is being created.
        * 
@@ -1382,6 +1561,8 @@ public enum State */ public static final int CREATING_VALUE = 1; /** + * + * *
        * Node has been created and ready to be used.
        * 
@@ -1390,6 +1571,8 @@ public enum State */ public static final int READY_VALUE = 2; /** + * + * *
        * Node is being deleted.
        * 
@@ -1398,6 +1581,8 @@ public enum State */ public static final int DELETING_VALUE = 3; /** + * + * *
        * Node is being updated.
        * 
@@ -1406,7 +1591,6 @@ public enum State */ public static final int UPDATING_VALUE = 4; - public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( @@ -1431,51 +1615,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 DELETING; - case 4: return UPDATING; - default: return null; + case 0: + return STATE_UNSPECIFIED; + case 1: + return CREATING; + case 2: + return READY; + case 3: + return DELETING; + case 4: + return UPDATING; + default: + return null; } } - public static com.google.protobuf.Internal.EnumLiteMap - internalGetValueMap() { + public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { return internalValueMap; } - private static final com.google.protobuf.Internal.EnumLiteMap< - State> internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public State findValueByNumber(int number) { - return State.forNumber(number); - } - }; - public final com.google.protobuf.Descriptors.EnumValueDescriptor - getValueDescriptor() { + private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public State findValueByNumber(int number) { + return State.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalStateException( "Can't get the descriptor of an unrecognized enum value."); } return getDescriptor().getValues().get(ordinal()); } - public final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptorForType() { + + public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { return getDescriptor(); } - public static final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptor() { - return com.google.cloud.memcache.v1beta2.Instance.Node.getDescriptor().getEnumTypes().get(0); + + public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.cloud.memcache.v1beta2.Instance.Node.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; @@ -1495,12 +1683,15 @@ private State(int value) { public static final int NODE_ID_FIELD_NUMBER = 1; private volatile java.lang.Object nodeId_; /** + * + * *
      * Output only. Identifier of the Memcached node. The node id does not
      * include project or location like the Memcached instance name.
      * 
* * string node_id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The nodeId. */ @java.lang.Override @@ -1509,30 +1700,30 @@ public java.lang.String getNodeId() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); nodeId_ = s; return s; } } /** + * + * *
      * Output only. Identifier of the Memcached node. The node id does not
      * include project or location like the Memcached instance name.
      * 
* * string node_id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for nodeId. */ @java.lang.Override - public com.google.protobuf.ByteString - getNodeIdBytes() { + public com.google.protobuf.ByteString getNodeIdBytes() { java.lang.Object ref = nodeId_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); nodeId_ = b; return b; } else { @@ -1543,11 +1734,14 @@ public java.lang.String getNodeId() { public static final int ZONE_FIELD_NUMBER = 2; private volatile java.lang.Object zone_; /** + * + * *
      * Output only. Location (GCP Zone) for the Memcached node.
      * 
* * string zone = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The zone. */ @java.lang.Override @@ -1556,29 +1750,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 (GCP Zone) for the Memcached 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 { @@ -1589,39 +1783,57 @@ public java.lang.String getZone() { public static final int STATE_FIELD_NUMBER = 3; private int state_; /** + * + * *
      * Output only. Current state of the Memcached node.
      * 
* - * .google.cloud.memcache.v1beta2.Instance.Node.State state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.memcache.v1beta2.Instance.Node.State state = 3 [(.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. Current state of the Memcached node.
      * 
* - * .google.cloud.memcache.v1beta2.Instance.Node.State state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.memcache.v1beta2.Instance.Node.State state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The state. */ - @java.lang.Override public com.google.cloud.memcache.v1beta2.Instance.Node.State getState() { + @java.lang.Override + public com.google.cloud.memcache.v1beta2.Instance.Node.State getState() { @SuppressWarnings("deprecation") - com.google.cloud.memcache.v1beta2.Instance.Node.State result = com.google.cloud.memcache.v1beta2.Instance.Node.State.valueOf(state_); - return result == null ? com.google.cloud.memcache.v1beta2.Instance.Node.State.UNRECOGNIZED : result; + com.google.cloud.memcache.v1beta2.Instance.Node.State result = + com.google.cloud.memcache.v1beta2.Instance.Node.State.valueOf(state_); + return result == null + ? com.google.cloud.memcache.v1beta2.Instance.Node.State.UNRECOGNIZED + : result; } public static final int HOST_FIELD_NUMBER = 4; private volatile java.lang.Object host_; /** + * + * *
      * Output only. Hostname or IP address of the Memcached node used by the
      * clients to connect to the Memcached server on this node.
      * 
* * string host = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The host. */ @java.lang.Override @@ -1630,30 +1842,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 Memcached node used by the
      * clients to connect to the Memcached server on this node.
      * 
* * string host = 4 [(.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 { @@ -1664,11 +1876,14 @@ public java.lang.String getHost() { public static final int PORT_FIELD_NUMBER = 5; private int port_; /** + * + * *
      * Output only. The port number of the Memcached server on this node.
      * 
* * int32 port = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The port. */ @java.lang.Override @@ -1679,11 +1894,14 @@ public int getPort() { public static final int PARAMETERS_FIELD_NUMBER = 6; private com.google.cloud.memcache.v1beta2.MemcacheParameters parameters_; /** + * + * *
      * User defined parameters currently applied to the node.
      * 
* * .google.cloud.memcache.v1beta2.MemcacheParameters parameters = 6; + * * @return Whether the parameters field is set. */ @java.lang.Override @@ -1691,18 +1909,25 @@ public boolean hasParameters() { return parameters_ != null; } /** + * + * *
      * User defined parameters currently applied to the node.
      * 
* * .google.cloud.memcache.v1beta2.MemcacheParameters parameters = 6; + * * @return The parameters. */ @java.lang.Override public com.google.cloud.memcache.v1beta2.MemcacheParameters getParameters() { - return parameters_ == null ? com.google.cloud.memcache.v1beta2.MemcacheParameters.getDefaultInstance() : parameters_; + return parameters_ == null + ? com.google.cloud.memcache.v1beta2.MemcacheParameters.getDefaultInstance() + : parameters_; } /** + * + * *
      * User defined parameters currently applied to the node.
      * 
@@ -1717,11 +1942,14 @@ public com.google.cloud.memcache.v1beta2.MemcacheParametersOrBuilder getParamete public static final int UPDATE_AVAILABLE_FIELD_NUMBER = 7; private boolean updateAvailable_; /** + * + * *
      * Output only. Returns true if there is an update waiting to be applied
      * 
* * bool update_available = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The updateAvailable. */ @java.lang.Override @@ -1730,6 +1958,7 @@ public boolean getUpdateAvailable() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -1741,15 +1970,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(nodeId_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, nodeId_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(zone_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, zone_); } - if (state_ != com.google.cloud.memcache.v1beta2.Instance.Node.State.STATE_UNSPECIFIED.getNumber()) { + if (state_ + != com.google.cloud.memcache.v1beta2.Instance.Node.State.STATE_UNSPECIFIED.getNumber()) { output.writeEnum(3, state_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(host_)) { @@ -1779,24 +2008,21 @@ public int getSerializedSize() { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(zone_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, zone_); } - if (state_ != com.google.cloud.memcache.v1beta2.Instance.Node.State.STATE_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(3, state_); + if (state_ + != com.google.cloud.memcache.v1beta2.Instance.Node.State.STATE_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(3, state_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(host_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, host_); } if (port_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(5, port_); + size += com.google.protobuf.CodedOutputStream.computeInt32Size(5, port_); } if (parameters_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(6, getParameters()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(6, getParameters()); } if (updateAvailable_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(7, updateAvailable_); + size += com.google.protobuf.CodedOutputStream.computeBoolSize(7, updateAvailable_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -1806,29 +2032,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.memcache.v1beta2.Instance.Node)) { return super.equals(obj); } - com.google.cloud.memcache.v1beta2.Instance.Node other = (com.google.cloud.memcache.v1beta2.Instance.Node) obj; + com.google.cloud.memcache.v1beta2.Instance.Node other = + (com.google.cloud.memcache.v1beta2.Instance.Node) obj; - if (!getNodeId() - .equals(other.getNodeId())) return false; - if (!getZone() - .equals(other.getZone())) return false; + if (!getNodeId().equals(other.getNodeId())) return false; + if (!getZone().equals(other.getZone())) return false; if (state_ != other.state_) return false; - if (!getHost() - .equals(other.getHost())) return false; - if (getPort() - != other.getPort()) return false; + if (!getHost().equals(other.getHost())) return false; + if (getPort() != other.getPort()) return false; if (hasParameters() != other.hasParameters()) return false; if (hasParameters()) { - if (!getParameters() - .equals(other.getParameters())) return false; + if (!getParameters().equals(other.getParameters())) return false; } - if (getUpdateAvailable() - != other.getUpdateAvailable()) return false; + if (getUpdateAvailable() != other.getUpdateAvailable()) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -1855,95 +2076,100 @@ public int hashCode() { hash = (53 * hash) + getParameters().hashCode(); } hash = (37 * hash) + UPDATE_AVAILABLE_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getUpdateAvailable()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getUpdateAvailable()); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static com.google.cloud.memcache.v1beta2.Instance.Node parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.memcache.v1beta2.Instance.Node parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.memcache.v1beta2.Instance.Node parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.memcache.v1beta2.Instance.Node parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.memcache.v1beta2.Instance.Node parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.memcache.v1beta2.Instance.Node parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.memcache.v1beta2.Instance.Node parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.memcache.v1beta2.Instance.Node parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.memcache.v1beta2.Instance.Node parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.memcache.v1beta2.Instance.Node parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.memcache.v1beta2.Instance.Node parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.memcache.v1beta2.Instance.Node parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.memcache.v1beta2.Instance.Node parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.memcache.v1beta2.Instance.Node parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.cloud.memcache.v1beta2.Instance.Node prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override @@ -1952,24 +2178,25 @@ protected Builder newBuilderForType( Builder builder = new Builder(parent); return builder; } - /** - * Protobuf type {@code google.cloud.memcache.v1beta2.Instance.Node} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + /** Protobuf type {@code google.cloud.memcache.v1beta2.Instance.Node} */ + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.memcache.v1beta2.Instance.Node) com.google.cloud.memcache.v1beta2.Instance.NodeOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.memcache.v1beta2.CloudMemcacheProto.internal_static_google_cloud_memcache_v1beta2_Instance_Node_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.memcache.v1beta2.CloudMemcacheProto + .internal_static_google_cloud_memcache_v1beta2_Instance_Node_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.memcache.v1beta2.CloudMemcacheProto.internal_static_google_cloud_memcache_v1beta2_Instance_Node_fieldAccessorTable + return com.google.cloud.memcache.v1beta2.CloudMemcacheProto + .internal_static_google_cloud_memcache_v1beta2_Instance_Node_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.memcache.v1beta2.Instance.Node.class, com.google.cloud.memcache.v1beta2.Instance.Node.Builder.class); + com.google.cloud.memcache.v1beta2.Instance.Node.class, + com.google.cloud.memcache.v1beta2.Instance.Node.Builder.class); } // Construct using com.google.cloud.memcache.v1beta2.Instance.Node.newBuilder() @@ -1977,16 +2204,15 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -2012,9 +2238,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.memcache.v1beta2.CloudMemcacheProto.internal_static_google_cloud_memcache_v1beta2_Instance_Node_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.memcache.v1beta2.CloudMemcacheProto + .internal_static_google_cloud_memcache_v1beta2_Instance_Node_descriptor; } @java.lang.Override @@ -2033,7 +2259,8 @@ public com.google.cloud.memcache.v1beta2.Instance.Node build() { @java.lang.Override public com.google.cloud.memcache.v1beta2.Instance.Node buildPartial() { - com.google.cloud.memcache.v1beta2.Instance.Node result = new com.google.cloud.memcache.v1beta2.Instance.Node(this); + com.google.cloud.memcache.v1beta2.Instance.Node result = + new com.google.cloud.memcache.v1beta2.Instance.Node(this); result.nodeId_ = nodeId_; result.zone_ = zone_; result.state_ = state_; @@ -2053,38 +2280,41 @@ public com.google.cloud.memcache.v1beta2.Instance.Node buildPartial() { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + int index, + java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.memcache.v1beta2.Instance.Node) { - return mergeFrom((com.google.cloud.memcache.v1beta2.Instance.Node)other); + return mergeFrom((com.google.cloud.memcache.v1beta2.Instance.Node) other); } else { super.mergeFrom(other); return this; @@ -2092,7 +2322,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.memcache.v1beta2.Instance.Node other) { - if (other == com.google.cloud.memcache.v1beta2.Instance.Node.getDefaultInstance()) return this; + if (other == com.google.cloud.memcache.v1beta2.Instance.Node.getDefaultInstance()) + return this; if (!other.getNodeId().isEmpty()) { nodeId_ = other.nodeId_; onChanged(); @@ -2136,7 +2367,8 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.memcache.v1beta2.Instance.Node) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.memcache.v1beta2.Instance.Node) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -2148,19 +2380,21 @@ public Builder mergeFrom( private java.lang.Object nodeId_ = ""; /** + * + * *
        * Output only. Identifier of the Memcached node. The node id does not
        * include project or location like the Memcached instance name.
        * 
* * string node_id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The nodeId. */ public java.lang.String getNodeId() { java.lang.Object ref = nodeId_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); nodeId_ = s; return s; @@ -2169,21 +2403,22 @@ public java.lang.String getNodeId() { } } /** + * + * *
        * Output only. Identifier of the Memcached node. The node id does not
        * include project or location like the Memcached instance name.
        * 
* * string node_id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for nodeId. */ - public com.google.protobuf.ByteString - getNodeIdBytes() { + public com.google.protobuf.ByteString getNodeIdBytes() { java.lang.Object ref = nodeId_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); nodeId_ = b; return b; } else { @@ -2191,57 +2426,64 @@ public java.lang.String getNodeId() { } } /** + * + * *
        * Output only. Identifier of the Memcached node. The node id does not
        * include project or location like the Memcached instance name.
        * 
* * string node_id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @param value The nodeId to set. * @return This builder for chaining. */ - public Builder setNodeId( - java.lang.String value) { + public Builder setNodeId(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + nodeId_ = value; onChanged(); return this; } /** + * + * *
        * Output only. Identifier of the Memcached node. The node id does not
        * include project or location like the Memcached instance name.
        * 
* * string node_id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return This builder for chaining. */ public Builder clearNodeId() { - + nodeId_ = getDefaultInstance().getNodeId(); onChanged(); return this; } /** + * + * *
        * Output only. Identifier of the Memcached node. The node id does not
        * include project or location like the Memcached instance name.
        * 
* * string node_id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @param value The bytes for nodeId to set. * @return This builder for chaining. */ - public Builder setNodeIdBytes( - com.google.protobuf.ByteString value) { + public Builder setNodeIdBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + nodeId_ = value; onChanged(); return this; @@ -2249,18 +2491,20 @@ public Builder setNodeIdBytes( private java.lang.Object zone_ = ""; /** + * + * *
        * Output only. Location (GCP Zone) for the Memcached 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; @@ -2269,20 +2513,21 @@ public java.lang.String getZone() { } } /** + * + * *
        * Output only. Location (GCP Zone) for the Memcached 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 { @@ -2290,54 +2535,61 @@ public java.lang.String getZone() { } } /** + * + * *
        * Output only. Location (GCP Zone) for the Memcached 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 (GCP Zone) for the Memcached 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 (GCP Zone) for the Memcached 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; @@ -2345,51 +2597,75 @@ public Builder setZoneBytes( private int state_ = 0; /** + * + * *
        * Output only. Current state of the Memcached node.
        * 
* - * .google.cloud.memcache.v1beta2.Instance.Node.State state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.memcache.v1beta2.Instance.Node.State state = 3 [(.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. Current state of the Memcached node.
        * 
* - * .google.cloud.memcache.v1beta2.Instance.Node.State state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.memcache.v1beta2.Instance.Node.State state = 3 [(.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. Current state of the Memcached node.
        * 
* - * .google.cloud.memcache.v1beta2.Instance.Node.State state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.memcache.v1beta2.Instance.Node.State state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The state. */ @java.lang.Override public com.google.cloud.memcache.v1beta2.Instance.Node.State getState() { @SuppressWarnings("deprecation") - com.google.cloud.memcache.v1beta2.Instance.Node.State result = com.google.cloud.memcache.v1beta2.Instance.Node.State.valueOf(state_); - return result == null ? com.google.cloud.memcache.v1beta2.Instance.Node.State.UNRECOGNIZED : result; + com.google.cloud.memcache.v1beta2.Instance.Node.State result = + com.google.cloud.memcache.v1beta2.Instance.Node.State.valueOf(state_); + return result == null + ? com.google.cloud.memcache.v1beta2.Instance.Node.State.UNRECOGNIZED + : result; } /** + * + * *
        * Output only. Current state of the Memcached node.
        * 
* - * .google.cloud.memcache.v1beta2.Instance.Node.State state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.memcache.v1beta2.Instance.Node.State state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @param value The state to set. * @return This builder for chaining. */ @@ -2397,21 +2673,26 @@ public Builder setState(com.google.cloud.memcache.v1beta2.Instance.Node.State va if (value == null) { throw new NullPointerException(); } - + state_ = value.getNumber(); onChanged(); return this; } /** + * + * *
        * Output only. Current state of the Memcached node.
        * 
* - * .google.cloud.memcache.v1beta2.Instance.Node.State state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.memcache.v1beta2.Instance.Node.State state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return This builder for chaining. */ public Builder clearState() { - + state_ = 0; onChanged(); return this; @@ -2419,19 +2700,21 @@ public Builder clearState() { private java.lang.Object host_ = ""; /** + * + * *
        * Output only. Hostname or IP address of the Memcached node used by the
        * clients to connect to the Memcached server on this node.
        * 
* * string host = 4 [(.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; @@ -2440,21 +2723,22 @@ public java.lang.String getHost() { } } /** + * + * *
        * Output only. Hostname or IP address of the Memcached node used by the
        * clients to connect to the Memcached server on this node.
        * 
* * string host = 4 [(.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 { @@ -2462,69 +2746,79 @@ public java.lang.String getHost() { } } /** + * + * *
        * Output only. Hostname or IP address of the Memcached node used by the
        * clients to connect to the Memcached server on this node.
        * 
* * string host = 4 [(.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 Memcached node used by the
        * clients to connect to the Memcached server on this node.
        * 
* * string host = 4 [(.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 Memcached node used by the
        * clients to connect to the Memcached server on this node.
        * 
* * string host = 4 [(.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 Memcached server on this node.
        * 
* * int32 port = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The port. */ @java.lang.Override @@ -2532,30 +2826,36 @@ public int getPort() { return port_; } /** + * + * *
        * Output only. The port number of the Memcached server on this node.
        * 
* * int32 port = 5 [(.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 Memcached server on this node.
        * 
* * int32 port = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return This builder for chaining. */ public Builder clearPort() { - + port_ = 0; onChanged(); return this; @@ -2563,34 +2863,47 @@ public Builder clearPort() { private com.google.cloud.memcache.v1beta2.MemcacheParameters parameters_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.memcache.v1beta2.MemcacheParameters, com.google.cloud.memcache.v1beta2.MemcacheParameters.Builder, com.google.cloud.memcache.v1beta2.MemcacheParametersOrBuilder> parametersBuilder_; + com.google.cloud.memcache.v1beta2.MemcacheParameters, + com.google.cloud.memcache.v1beta2.MemcacheParameters.Builder, + com.google.cloud.memcache.v1beta2.MemcacheParametersOrBuilder> + parametersBuilder_; /** + * + * *
        * User defined parameters currently applied to the node.
        * 
* * .google.cloud.memcache.v1beta2.MemcacheParameters parameters = 6; + * * @return Whether the parameters field is set. */ public boolean hasParameters() { return parametersBuilder_ != null || parameters_ != null; } /** + * + * *
        * User defined parameters currently applied to the node.
        * 
* * .google.cloud.memcache.v1beta2.MemcacheParameters parameters = 6; + * * @return The parameters. */ public com.google.cloud.memcache.v1beta2.MemcacheParameters getParameters() { if (parametersBuilder_ == null) { - return parameters_ == null ? com.google.cloud.memcache.v1beta2.MemcacheParameters.getDefaultInstance() : parameters_; + return parameters_ == null + ? com.google.cloud.memcache.v1beta2.MemcacheParameters.getDefaultInstance() + : parameters_; } else { return parametersBuilder_.getMessage(); } } /** + * + * *
        * User defined parameters currently applied to the node.
        * 
@@ -2611,6 +2924,8 @@ public Builder setParameters(com.google.cloud.memcache.v1beta2.MemcacheParameter return this; } /** + * + * *
        * User defined parameters currently applied to the node.
        * 
@@ -2629,6 +2944,8 @@ public Builder setParameters( return this; } /** + * + * *
        * User defined parameters currently applied to the node.
        * 
@@ -2639,7 +2956,9 @@ public Builder mergeParameters(com.google.cloud.memcache.v1beta2.MemcacheParamet if (parametersBuilder_ == null) { if (parameters_ != null) { parameters_ = - com.google.cloud.memcache.v1beta2.MemcacheParameters.newBuilder(parameters_).mergeFrom(value).buildPartial(); + com.google.cloud.memcache.v1beta2.MemcacheParameters.newBuilder(parameters_) + .mergeFrom(value) + .buildPartial(); } else { parameters_ = value; } @@ -2651,6 +2970,8 @@ public Builder mergeParameters(com.google.cloud.memcache.v1beta2.MemcacheParamet return this; } /** + * + * *
        * User defined parameters currently applied to the node.
        * 
@@ -2669,6 +2990,8 @@ public Builder clearParameters() { return this; } /** + * + * *
        * User defined parameters currently applied to the node.
        * 
@@ -2676,26 +2999,32 @@ public Builder clearParameters() { * .google.cloud.memcache.v1beta2.MemcacheParameters parameters = 6; */ public com.google.cloud.memcache.v1beta2.MemcacheParameters.Builder getParametersBuilder() { - + onChanged(); return getParametersFieldBuilder().getBuilder(); } /** + * + * *
        * User defined parameters currently applied to the node.
        * 
* * .google.cloud.memcache.v1beta2.MemcacheParameters parameters = 6; */ - public com.google.cloud.memcache.v1beta2.MemcacheParametersOrBuilder getParametersOrBuilder() { + public com.google.cloud.memcache.v1beta2.MemcacheParametersOrBuilder + getParametersOrBuilder() { if (parametersBuilder_ != null) { return parametersBuilder_.getMessageOrBuilder(); } else { - return parameters_ == null ? - com.google.cloud.memcache.v1beta2.MemcacheParameters.getDefaultInstance() : parameters_; + return parameters_ == null + ? com.google.cloud.memcache.v1beta2.MemcacheParameters.getDefaultInstance() + : parameters_; } } /** + * + * *
        * User defined parameters currently applied to the node.
        * 
@@ -2703,26 +3032,32 @@ public com.google.cloud.memcache.v1beta2.MemcacheParametersOrBuilder getParamete * .google.cloud.memcache.v1beta2.MemcacheParameters parameters = 6; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.memcache.v1beta2.MemcacheParameters, com.google.cloud.memcache.v1beta2.MemcacheParameters.Builder, com.google.cloud.memcache.v1beta2.MemcacheParametersOrBuilder> + com.google.cloud.memcache.v1beta2.MemcacheParameters, + com.google.cloud.memcache.v1beta2.MemcacheParameters.Builder, + com.google.cloud.memcache.v1beta2.MemcacheParametersOrBuilder> getParametersFieldBuilder() { if (parametersBuilder_ == null) { - parametersBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.memcache.v1beta2.MemcacheParameters, com.google.cloud.memcache.v1beta2.MemcacheParameters.Builder, com.google.cloud.memcache.v1beta2.MemcacheParametersOrBuilder>( - getParameters(), - getParentForChildren(), - isClean()); + parametersBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.memcache.v1beta2.MemcacheParameters, + com.google.cloud.memcache.v1beta2.MemcacheParameters.Builder, + com.google.cloud.memcache.v1beta2.MemcacheParametersOrBuilder>( + getParameters(), getParentForChildren(), isClean()); parameters_ = null; } return parametersBuilder_; } - private boolean updateAvailable_ ; + private boolean updateAvailable_; /** + * + * *
        * Output only. Returns true if there is an update waiting to be applied
        * 
* * bool update_available = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The updateAvailable. */ @java.lang.Override @@ -2730,34 +3065,41 @@ public boolean getUpdateAvailable() { return updateAvailable_; } /** + * + * *
        * Output only. Returns true if there is an update waiting to be applied
        * 
* * bool update_available = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @param value The updateAvailable to set. * @return This builder for chaining. */ public Builder setUpdateAvailable(boolean value) { - + updateAvailable_ = value; onChanged(); return this; } /** + * + * *
        * Output only. Returns true if there is an update waiting to be applied
        * 
* * bool update_available = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return This builder for chaining. */ public Builder clearUpdateAvailable() { - + updateAvailable_ = false; onChanged(); return this; } + @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -2770,12 +3112,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.memcache.v1beta2.Instance.Node) } // @@protoc_insertion_point(class_scope:google.cloud.memcache.v1beta2.Instance.Node) private static final com.google.cloud.memcache.v1beta2.Instance.Node DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.memcache.v1beta2.Instance.Node(); } @@ -2784,16 +3126,16 @@ public static com.google.cloud.memcache.v1beta2.Instance.Node getDefaultInstance return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Node parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new Node(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Node parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new Node(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -2808,64 +3150,74 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.memcache.v1beta2.Instance.Node getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - public interface InstanceMessageOrBuilder extends + public interface InstanceMessageOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.memcache.v1beta2.Instance.InstanceMessage) com.google.protobuf.MessageOrBuilder { /** + * + * *
      * A code that correspond to one type of user-facing message.
      * 
* * .google.cloud.memcache.v1beta2.Instance.InstanceMessage.Code code = 1; + * * @return The enum numeric value on the wire for code. */ int getCodeValue(); /** + * + * *
      * A code that correspond to one type of user-facing message.
      * 
* * .google.cloud.memcache.v1beta2.Instance.InstanceMessage.Code code = 1; + * * @return The code. */ com.google.cloud.memcache.v1beta2.Instance.InstanceMessage.Code getCode(); /** + * + * *
      * Message on memcached instance which will be exposed to users.
      * 
* * string message = 2; + * * @return The message. */ java.lang.String getMessage(); /** + * + * *
      * Message on memcached instance which will be exposed to users.
      * 
* * string message = 2; + * * @return The bytes for message. */ - com.google.protobuf.ByteString - getMessageBytes(); + com.google.protobuf.ByteString getMessageBytes(); } - /** - * Protobuf type {@code google.cloud.memcache.v1beta2.Instance.InstanceMessage} - */ - public static final class InstanceMessage extends - com.google.protobuf.GeneratedMessageV3 implements + /** Protobuf type {@code google.cloud.memcache.v1beta2.Instance.InstanceMessage} */ + public static final class InstanceMessage extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.memcache.v1beta2.Instance.InstanceMessage) InstanceMessageOrBuilder { - private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use InstanceMessage.newBuilder() to construct. private InstanceMessage(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private InstanceMessage() { code_ = 0; message_ = ""; @@ -2873,16 +3225,15 @@ private InstanceMessage() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new InstanceMessage(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private InstanceMessage( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -2901,25 +3252,27 @@ private InstanceMessage( case 0: done = true; break; - case 8: { - int rawValue = input.readEnum(); - - code_ = rawValue; - break; - } - case 18: { - java.lang.String s = input.readStringRequireUtf8(); + case 8: + { + int rawValue = input.readEnum(); - message_ = s; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + code_ = rawValue; + break; + } + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); + + message_ = s; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -2927,32 +3280,33 @@ private InstanceMessage( } 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.memcache.v1beta2.CloudMemcacheProto.internal_static_google_cloud_memcache_v1beta2_Instance_InstanceMessage_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.memcache.v1beta2.CloudMemcacheProto + .internal_static_google_cloud_memcache_v1beta2_Instance_InstanceMessage_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.memcache.v1beta2.CloudMemcacheProto.internal_static_google_cloud_memcache_v1beta2_Instance_InstanceMessage_fieldAccessorTable + return com.google.cloud.memcache.v1beta2.CloudMemcacheProto + .internal_static_google_cloud_memcache_v1beta2_Instance_InstanceMessage_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.memcache.v1beta2.Instance.InstanceMessage.class, com.google.cloud.memcache.v1beta2.Instance.InstanceMessage.Builder.class); + com.google.cloud.memcache.v1beta2.Instance.InstanceMessage.class, + com.google.cloud.memcache.v1beta2.Instance.InstanceMessage.Builder.class); } - /** - * Protobuf enum {@code google.cloud.memcache.v1beta2.Instance.InstanceMessage.Code} - */ - public enum Code - implements com.google.protobuf.ProtocolMessageEnum { + /** Protobuf enum {@code google.cloud.memcache.v1beta2.Instance.InstanceMessage.Code} */ + public enum Code implements com.google.protobuf.ProtocolMessageEnum { /** + * + * *
        * Message Code not set.
        * 
@@ -2961,6 +3315,8 @@ public enum Code */ CODE_UNSPECIFIED(0), /** + * + * *
        * Memcached nodes are distributed unevenly.
        * 
@@ -2972,6 +3328,8 @@ public enum Code ; /** + * + * *
        * Message Code not set.
        * 
@@ -2980,6 +3338,8 @@ public enum Code */ public static final int CODE_UNSPECIFIED_VALUE = 0; /** + * + * *
        * Memcached nodes are distributed unevenly.
        * 
@@ -2988,7 +3348,6 @@ public enum Code */ public static final int ZONE_DISTRIBUTION_UNBALANCED_VALUE = 1; - public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( @@ -3013,48 +3372,49 @@ public static Code valueOf(int value) { */ public static Code forNumber(int value) { switch (value) { - case 0: return CODE_UNSPECIFIED; - case 1: return ZONE_DISTRIBUTION_UNBALANCED; - default: return null; + case 0: + return CODE_UNSPECIFIED; + case 1: + return ZONE_DISTRIBUTION_UNBALANCED; + 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< - Code> internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public Code findValueByNumber(int number) { - return Code.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 Code findValueByNumber(int number) { + return Code.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.memcache.v1beta2.Instance.InstanceMessage.getDescriptor().getEnumTypes().get(0); + + public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.cloud.memcache.v1beta2.Instance.InstanceMessage.getDescriptor() + .getEnumTypes() + .get(0); } private static final Code[] VALUES = values(); - public static Code valueOf( - com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + public static Code 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; @@ -3074,38 +3434,52 @@ private Code(int value) { public static final int CODE_FIELD_NUMBER = 1; private int code_; /** + * + * *
      * A code that correspond to one type of user-facing message.
      * 
* * .google.cloud.memcache.v1beta2.Instance.InstanceMessage.Code code = 1; + * * @return The enum numeric value on the wire for code. */ - @java.lang.Override public int getCodeValue() { + @java.lang.Override + public int getCodeValue() { return code_; } /** + * + * *
      * A code that correspond to one type of user-facing message.
      * 
* * .google.cloud.memcache.v1beta2.Instance.InstanceMessage.Code code = 1; + * * @return The code. */ - @java.lang.Override public com.google.cloud.memcache.v1beta2.Instance.InstanceMessage.Code getCode() { + @java.lang.Override + public com.google.cloud.memcache.v1beta2.Instance.InstanceMessage.Code getCode() { @SuppressWarnings("deprecation") - com.google.cloud.memcache.v1beta2.Instance.InstanceMessage.Code result = com.google.cloud.memcache.v1beta2.Instance.InstanceMessage.Code.valueOf(code_); - return result == null ? com.google.cloud.memcache.v1beta2.Instance.InstanceMessage.Code.UNRECOGNIZED : result; + com.google.cloud.memcache.v1beta2.Instance.InstanceMessage.Code result = + com.google.cloud.memcache.v1beta2.Instance.InstanceMessage.Code.valueOf(code_); + return result == null + ? com.google.cloud.memcache.v1beta2.Instance.InstanceMessage.Code.UNRECOGNIZED + : result; } public static final int MESSAGE_FIELD_NUMBER = 2; private volatile java.lang.Object message_; /** + * + * *
      * Message on memcached instance which will be exposed to users.
      * 
* * string message = 2; + * * @return The message. */ @java.lang.Override @@ -3114,29 +3488,29 @@ public java.lang.String getMessage() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); message_ = s; return s; } } /** + * + * *
      * Message on memcached instance which will be exposed to users.
      * 
* * string message = 2; + * * @return The bytes for message. */ @java.lang.Override - public com.google.protobuf.ByteString - getMessageBytes() { + public com.google.protobuf.ByteString getMessageBytes() { java.lang.Object ref = message_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); message_ = b; return b; } else { @@ -3145,6 +3519,7 @@ public java.lang.String getMessage() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -3156,9 +3531,10 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (code_ != com.google.cloud.memcache.v1beta2.Instance.InstanceMessage.Code.CODE_UNSPECIFIED.getNumber()) { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (code_ + != com.google.cloud.memcache.v1beta2.Instance.InstanceMessage.Code.CODE_UNSPECIFIED + .getNumber()) { output.writeEnum(1, code_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(message_)) { @@ -3173,9 +3549,10 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (code_ != com.google.cloud.memcache.v1beta2.Instance.InstanceMessage.Code.CODE_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(1, code_); + if (code_ + != com.google.cloud.memcache.v1beta2.Instance.InstanceMessage.Code.CODE_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(1, code_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(message_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, message_); @@ -3188,16 +3565,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.memcache.v1beta2.Instance.InstanceMessage)) { return super.equals(obj); } - com.google.cloud.memcache.v1beta2.Instance.InstanceMessage other = (com.google.cloud.memcache.v1beta2.Instance.InstanceMessage) obj; + com.google.cloud.memcache.v1beta2.Instance.InstanceMessage other = + (com.google.cloud.memcache.v1beta2.Instance.InstanceMessage) obj; if (code_ != other.code_) return false; - if (!getMessage() - .equals(other.getMessage())) return false; + if (!getMessage().equals(other.getMessage())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -3219,87 +3596,94 @@ public int hashCode() { } public static com.google.cloud.memcache.v1beta2.Instance.InstanceMessage parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.memcache.v1beta2.Instance.InstanceMessage parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.memcache.v1beta2.Instance.InstanceMessage parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.memcache.v1beta2.Instance.InstanceMessage parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.memcache.v1beta2.Instance.InstanceMessage parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.memcache.v1beta2.Instance.InstanceMessage parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.memcache.v1beta2.Instance.InstanceMessage parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.memcache.v1beta2.Instance.InstanceMessage parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.memcache.v1beta2.Instance.InstanceMessage parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.memcache.v1beta2.Instance.InstanceMessage parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.memcache.v1beta2.Instance.InstanceMessage parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.memcache.v1beta2.Instance.InstanceMessage parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.memcache.v1beta2.Instance.InstanceMessage parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.memcache.v1beta2.Instance.InstanceMessage parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.memcache.v1beta2.Instance.InstanceMessage prototype) { + + public static Builder newBuilder( + com.google.cloud.memcache.v1beta2.Instance.InstanceMessage prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override @@ -3308,24 +3692,25 @@ protected Builder newBuilderForType( Builder builder = new Builder(parent); return builder; } - /** - * Protobuf type {@code google.cloud.memcache.v1beta2.Instance.InstanceMessage} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + /** Protobuf type {@code google.cloud.memcache.v1beta2.Instance.InstanceMessage} */ + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.memcache.v1beta2.Instance.InstanceMessage) com.google.cloud.memcache.v1beta2.Instance.InstanceMessageOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.memcache.v1beta2.CloudMemcacheProto.internal_static_google_cloud_memcache_v1beta2_Instance_InstanceMessage_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.memcache.v1beta2.CloudMemcacheProto + .internal_static_google_cloud_memcache_v1beta2_Instance_InstanceMessage_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.memcache.v1beta2.CloudMemcacheProto.internal_static_google_cloud_memcache_v1beta2_Instance_InstanceMessage_fieldAccessorTable + return com.google.cloud.memcache.v1beta2.CloudMemcacheProto + .internal_static_google_cloud_memcache_v1beta2_Instance_InstanceMessage_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.memcache.v1beta2.Instance.InstanceMessage.class, com.google.cloud.memcache.v1beta2.Instance.InstanceMessage.Builder.class); + com.google.cloud.memcache.v1beta2.Instance.InstanceMessage.class, + com.google.cloud.memcache.v1beta2.Instance.InstanceMessage.Builder.class); } // Construct using com.google.cloud.memcache.v1beta2.Instance.InstanceMessage.newBuilder() @@ -3333,16 +3718,15 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -3354,13 +3738,14 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.memcache.v1beta2.CloudMemcacheProto.internal_static_google_cloud_memcache_v1beta2_Instance_InstanceMessage_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.memcache.v1beta2.CloudMemcacheProto + .internal_static_google_cloud_memcache_v1beta2_Instance_InstanceMessage_descriptor; } @java.lang.Override - public com.google.cloud.memcache.v1beta2.Instance.InstanceMessage getDefaultInstanceForType() { + public com.google.cloud.memcache.v1beta2.Instance.InstanceMessage + getDefaultInstanceForType() { return com.google.cloud.memcache.v1beta2.Instance.InstanceMessage.getDefaultInstance(); } @@ -3375,7 +3760,8 @@ public com.google.cloud.memcache.v1beta2.Instance.InstanceMessage build() { @java.lang.Override public com.google.cloud.memcache.v1beta2.Instance.InstanceMessage buildPartial() { - com.google.cloud.memcache.v1beta2.Instance.InstanceMessage result = new com.google.cloud.memcache.v1beta2.Instance.InstanceMessage(this); + com.google.cloud.memcache.v1beta2.Instance.InstanceMessage result = + new com.google.cloud.memcache.v1beta2.Instance.InstanceMessage(this); result.code_ = code_; result.message_ = message_; onBuilt(); @@ -3386,38 +3772,41 @@ public com.google.cloud.memcache.v1beta2.Instance.InstanceMessage buildPartial() public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + int index, + java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.memcache.v1beta2.Instance.InstanceMessage) { - return mergeFrom((com.google.cloud.memcache.v1beta2.Instance.InstanceMessage)other); + return mergeFrom((com.google.cloud.memcache.v1beta2.Instance.InstanceMessage) other); } else { super.mergeFrom(other); return this; @@ -3425,7 +3814,9 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.memcache.v1beta2.Instance.InstanceMessage other) { - if (other == com.google.cloud.memcache.v1beta2.Instance.InstanceMessage.getDefaultInstance()) return this; + if (other + == com.google.cloud.memcache.v1beta2.Instance.InstanceMessage.getDefaultInstance()) + return this; if (other.code_ != 0) { setCodeValue(other.getCodeValue()); } @@ -3452,7 +3843,8 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.memcache.v1beta2.Instance.InstanceMessage) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.memcache.v1beta2.Instance.InstanceMessage) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -3464,73 +3856,93 @@ public Builder mergeFrom( private int code_ = 0; /** + * + * *
        * A code that correspond to one type of user-facing message.
        * 
* * .google.cloud.memcache.v1beta2.Instance.InstanceMessage.Code code = 1; + * * @return The enum numeric value on the wire for code. */ - @java.lang.Override public int getCodeValue() { + @java.lang.Override + public int getCodeValue() { return code_; } /** + * + * *
        * A code that correspond to one type of user-facing message.
        * 
* * .google.cloud.memcache.v1beta2.Instance.InstanceMessage.Code code = 1; + * * @param value The enum numeric value on the wire for code to set. * @return This builder for chaining. */ public Builder setCodeValue(int value) { - + code_ = value; onChanged(); return this; } /** + * + * *
        * A code that correspond to one type of user-facing message.
        * 
* * .google.cloud.memcache.v1beta2.Instance.InstanceMessage.Code code = 1; + * * @return The code. */ @java.lang.Override public com.google.cloud.memcache.v1beta2.Instance.InstanceMessage.Code getCode() { @SuppressWarnings("deprecation") - com.google.cloud.memcache.v1beta2.Instance.InstanceMessage.Code result = com.google.cloud.memcache.v1beta2.Instance.InstanceMessage.Code.valueOf(code_); - return result == null ? com.google.cloud.memcache.v1beta2.Instance.InstanceMessage.Code.UNRECOGNIZED : result; + com.google.cloud.memcache.v1beta2.Instance.InstanceMessage.Code result = + com.google.cloud.memcache.v1beta2.Instance.InstanceMessage.Code.valueOf(code_); + return result == null + ? com.google.cloud.memcache.v1beta2.Instance.InstanceMessage.Code.UNRECOGNIZED + : result; } /** + * + * *
        * A code that correspond to one type of user-facing message.
        * 
* * .google.cloud.memcache.v1beta2.Instance.InstanceMessage.Code code = 1; + * * @param value The code to set. * @return This builder for chaining. */ - public Builder setCode(com.google.cloud.memcache.v1beta2.Instance.InstanceMessage.Code value) { + public Builder setCode( + com.google.cloud.memcache.v1beta2.Instance.InstanceMessage.Code value) { if (value == null) { throw new NullPointerException(); } - + code_ = value.getNumber(); onChanged(); return this; } /** + * + * *
        * A code that correspond to one type of user-facing message.
        * 
* * .google.cloud.memcache.v1beta2.Instance.InstanceMessage.Code code = 1; + * * @return This builder for chaining. */ public Builder clearCode() { - + code_ = 0; onChanged(); return this; @@ -3538,18 +3950,20 @@ public Builder clearCode() { private java.lang.Object message_ = ""; /** + * + * *
        * Message on memcached instance which will be exposed to users.
        * 
* * string message = 2; + * * @return The message. */ public java.lang.String getMessage() { java.lang.Object ref = message_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); message_ = s; return s; @@ -3558,20 +3972,21 @@ public java.lang.String getMessage() { } } /** + * + * *
        * Message on memcached instance which will be exposed to users.
        * 
* * string message = 2; + * * @return The bytes for message. */ - public com.google.protobuf.ByteString - getMessageBytes() { + public com.google.protobuf.ByteString getMessageBytes() { java.lang.Object ref = message_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); message_ = b; return b; } else { @@ -3579,58 +3994,66 @@ public java.lang.String getMessage() { } } /** + * + * *
        * Message on memcached instance which will be exposed to users.
        * 
* * string message = 2; + * * @param value The message to set. * @return This builder for chaining. */ - public Builder setMessage( - java.lang.String value) { + public Builder setMessage(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + message_ = value; onChanged(); return this; } /** + * + * *
        * Message on memcached instance which will be exposed to users.
        * 
* * string message = 2; + * * @return This builder for chaining. */ public Builder clearMessage() { - + message_ = getDefaultInstance().getMessage(); onChanged(); return this; } /** + * + * *
        * Message on memcached instance which will be exposed to users.
        * 
* * string message = 2; + * * @param value The bytes for message to set. * @return This builder for chaining. */ - public Builder setMessageBytes( - com.google.protobuf.ByteString value) { + public Builder setMessageBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + message_ = value; onChanged(); return this; } + @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -3643,12 +4066,13 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.memcache.v1beta2.Instance.InstanceMessage) } // @@protoc_insertion_point(class_scope:google.cloud.memcache.v1beta2.Instance.InstanceMessage) - private static final com.google.cloud.memcache.v1beta2.Instance.InstanceMessage DEFAULT_INSTANCE; + private static final com.google.cloud.memcache.v1beta2.Instance.InstanceMessage + DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.memcache.v1beta2.Instance.InstanceMessage(); } @@ -3657,16 +4081,16 @@ public static com.google.cloud.memcache.v1beta2.Instance.InstanceMessage getDefa return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public InstanceMessage parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new InstanceMessage(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public InstanceMessage parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new InstanceMessage(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -3681,12 +4105,13 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.memcache.v1beta2.Instance.InstanceMessage getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } 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:
@@ -3698,6 +4123,7 @@ public com.google.cloud.memcache.v1beta2.Instance.InstanceMessage getDefaultInst
    * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The name. */ @java.lang.Override @@ -3706,14 +4132,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:
@@ -3725,16 +4152,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 { @@ -3745,12 +4171,15 @@ public java.lang.String getName() { public static final int DISPLAY_NAME_FIELD_NUMBER = 2; private volatile java.lang.Object displayName_; /** + * + * *
    * User provided name for the instance, which is only used for display
    * purposes. Cannot be more than 80 characters.
    * 
* * string display_name = 2; + * * @return The displayName. */ @java.lang.Override @@ -3759,30 +4188,30 @@ 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; } } /** + * + * *
    * User provided name for the instance, which is only used for display
    * purposes. Cannot be more than 80 characters.
    * 
* * 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 { @@ -3791,24 +4220,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.memcache.v1beta2.CloudMemcacheProto.internal_static_google_cloud_memcache_v1beta2_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.memcache.v1beta2.CloudMemcacheProto + .internal_static_google_cloud_memcache_v1beta2_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_; } @@ -3817,6 +4245,8 @@ public int getLabelsCount() { return internalGetLabels().getMap().size(); } /** + * + * *
    * Resource labels to represent user-provided metadata.
    * Refer to cloud documentation on labels for more details.
@@ -3825,22 +4255,22 @@ public int getLabelsCount() {
    *
    * 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.
    * Refer to cloud documentation on labels for more details.
@@ -3850,11 +4280,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.
    * Refer to cloud documentation on labels for more details.
@@ -3864,16 +4295,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.
    * Refer to cloud documentation on labels for more details.
@@ -3883,12 +4314,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();
     }
@@ -3898,6 +4328,8 @@ public java.lang.String getLabelsOrThrow(
   public static final int AUTHORIZED_NETWORK_FIELD_NUMBER = 4;
   private volatile java.lang.Object authorizedNetwork_;
   /**
+   *
+   *
    * 
    * The full name of the Google Compute Engine
    * [network](https://cloud.google.com/vpc/docs/vpc) to which the
@@ -3906,6 +4338,7 @@ public java.lang.String getLabelsOrThrow(
    * 
* * string authorized_network = 4; + * * @return The authorizedNetwork. */ @java.lang.Override @@ -3914,14 +4347,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; } } /** + * + * *
    * The full name of the Google Compute Engine
    * [network](https://cloud.google.com/vpc/docs/vpc) to which the
@@ -3930,16 +4364,15 @@ public java.lang.String getAuthorizedNetwork() {
    * 
* * string authorized_network = 4; + * * @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 { @@ -3950,6 +4383,8 @@ public java.lang.String getAuthorizedNetwork() { public static final int ZONES_FIELD_NUMBER = 5; private com.google.protobuf.LazyStringList zones_; /** + * + * *
    * Zones in which Memcached nodes should be provisioned.
    * Memcached nodes will be equally distributed across these zones. If not
@@ -3958,13 +4393,15 @@ public java.lang.String getAuthorizedNetwork() {
    * 
* * repeated string zones = 5; + * * @return A list containing the zones. */ - public com.google.protobuf.ProtocolStringList - getZonesList() { + public com.google.protobuf.ProtocolStringList getZonesList() { return zones_; } /** + * + * *
    * Zones in which Memcached nodes should be provisioned.
    * Memcached nodes will be equally distributed across these zones. If not
@@ -3973,12 +4410,15 @@ public java.lang.String getAuthorizedNetwork() {
    * 
* * repeated string zones = 5; + * * @return The count of zones. */ public int getZonesCount() { return zones_.size(); } /** + * + * *
    * Zones in which Memcached nodes should be provisioned.
    * Memcached nodes will be equally distributed across these zones. If not
@@ -3987,6 +4427,7 @@ public int getZonesCount() {
    * 
* * repeated string zones = 5; + * * @param index The index of the element to return. * @return The zones at the given index. */ @@ -3994,6 +4435,8 @@ public java.lang.String getZones(int index) { return zones_.get(index); } /** + * + * *
    * Zones in which Memcached nodes should be provisioned.
    * Memcached nodes will be equally distributed across these zones. If not
@@ -4002,22 +4445,25 @@ public java.lang.String getZones(int index) {
    * 
* * repeated string zones = 5; + * * @param index The index of the value to return. * @return The bytes of the zones at the given index. */ - public com.google.protobuf.ByteString - getZonesBytes(int index) { + public com.google.protobuf.ByteString getZonesBytes(int index) { return zones_.getByteString(index); } public static final int NODE_COUNT_FIELD_NUMBER = 6; private int nodeCount_; /** + * + * *
    * Required. Number of nodes in the Memcached instance.
    * 
* * int32 node_count = 6 [(.google.api.field_behavior) = REQUIRED]; + * * @return The nodeCount. */ @java.lang.Override @@ -4028,11 +4474,16 @@ public int getNodeCount() { public static final int NODE_CONFIG_FIELD_NUMBER = 7; private com.google.cloud.memcache.v1beta2.Instance.NodeConfig nodeConfig_; /** + * + * *
    * Required. Configuration for Memcached nodes.
    * 
* - * .google.cloud.memcache.v1beta2.Instance.NodeConfig node_config = 7 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.memcache.v1beta2.Instance.NodeConfig node_config = 7 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the nodeConfig field is set. */ @java.lang.Override @@ -4040,23 +4491,34 @@ public boolean hasNodeConfig() { return nodeConfig_ != null; } /** + * + * *
    * Required. Configuration for Memcached nodes.
    * 
* - * .google.cloud.memcache.v1beta2.Instance.NodeConfig node_config = 7 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.memcache.v1beta2.Instance.NodeConfig node_config = 7 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The nodeConfig. */ @java.lang.Override public com.google.cloud.memcache.v1beta2.Instance.NodeConfig getNodeConfig() { - return nodeConfig_ == null ? com.google.cloud.memcache.v1beta2.Instance.NodeConfig.getDefaultInstance() : nodeConfig_; + return nodeConfig_ == null + ? com.google.cloud.memcache.v1beta2.Instance.NodeConfig.getDefaultInstance() + : nodeConfig_; } /** + * + * *
    * Required. Configuration for Memcached nodes.
    * 
* - * .google.cloud.memcache.v1beta2.Instance.NodeConfig node_config = 7 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.memcache.v1beta2.Instance.NodeConfig node_config = 7 [(.google.api.field_behavior) = REQUIRED]; + * */ @java.lang.Override public com.google.cloud.memcache.v1beta2.Instance.NodeConfigOrBuilder getNodeConfigOrBuilder() { @@ -4066,6 +4528,8 @@ public com.google.cloud.memcache.v1beta2.Instance.NodeConfigOrBuilder getNodeCon public static final int MEMCACHE_VERSION_FIELD_NUMBER = 9; private int memcacheVersion_; /** + * + * *
    * The major version of Memcached software.
    * If not provided, latest supported version will be used. Currently the
@@ -4075,12 +4539,16 @@ public com.google.cloud.memcache.v1beta2.Instance.NodeConfigOrBuilder getNodeCon
    * 
* * .google.cloud.memcache.v1beta2.MemcacheVersion memcache_version = 9; + * * @return The enum numeric value on the wire for memcacheVersion. */ - @java.lang.Override public int getMemcacheVersionValue() { + @java.lang.Override + public int getMemcacheVersionValue() { return memcacheVersion_; } /** + * + * *
    * The major version of Memcached software.
    * If not provided, latest supported version will be used. Currently the
@@ -4090,23 +4558,29 @@ public com.google.cloud.memcache.v1beta2.Instance.NodeConfigOrBuilder getNodeCon
    * 
* * .google.cloud.memcache.v1beta2.MemcacheVersion memcache_version = 9; + * * @return The memcacheVersion. */ - @java.lang.Override public com.google.cloud.memcache.v1beta2.MemcacheVersion getMemcacheVersion() { + @java.lang.Override + public com.google.cloud.memcache.v1beta2.MemcacheVersion getMemcacheVersion() { @SuppressWarnings("deprecation") - com.google.cloud.memcache.v1beta2.MemcacheVersion result = com.google.cloud.memcache.v1beta2.MemcacheVersion.valueOf(memcacheVersion_); + com.google.cloud.memcache.v1beta2.MemcacheVersion result = + com.google.cloud.memcache.v1beta2.MemcacheVersion.valueOf(memcacheVersion_); return result == null ? com.google.cloud.memcache.v1beta2.MemcacheVersion.UNRECOGNIZED : result; } public static final int PARAMETERS_FIELD_NUMBER = 11; private com.google.cloud.memcache.v1beta2.MemcacheParameters parameters_; /** + * + * *
    * Optional: User defined parameters to apply to the memcached process
    * on each node.
    * 
* * .google.cloud.memcache.v1beta2.MemcacheParameters parameters = 11; + * * @return Whether the parameters field is set. */ @java.lang.Override @@ -4114,19 +4588,26 @@ public boolean hasParameters() { return parameters_ != null; } /** + * + * *
    * Optional: User defined parameters to apply to the memcached process
    * on each node.
    * 
* * .google.cloud.memcache.v1beta2.MemcacheParameters parameters = 11; + * * @return The parameters. */ @java.lang.Override public com.google.cloud.memcache.v1beta2.MemcacheParameters getParameters() { - return parameters_ == null ? com.google.cloud.memcache.v1beta2.MemcacheParameters.getDefaultInstance() : parameters_; + return parameters_ == null + ? com.google.cloud.memcache.v1beta2.MemcacheParameters.getDefaultInstance() + : parameters_; } /** + * + * *
    * Optional: User defined parameters to apply to the memcached process
    * on each node.
@@ -4142,61 +4623,81 @@ public com.google.cloud.memcache.v1beta2.MemcacheParametersOrBuilder getParamete
   public static final int MEMCACHE_NODES_FIELD_NUMBER = 12;
   private java.util.List memcacheNodes_;
   /**
+   *
+   *
    * 
    * Output only. List of Memcached nodes.
    * Refer to [Node][google.cloud.memcache.v1beta2.Instance.Node] message for more details.
    * 
* - * repeated .google.cloud.memcache.v1beta2.Instance.Node memcache_nodes = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.memcache.v1beta2.Instance.Node memcache_nodes = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ @java.lang.Override public java.util.List getMemcacheNodesList() { return memcacheNodes_; } /** + * + * *
    * Output only. List of Memcached nodes.
    * Refer to [Node][google.cloud.memcache.v1beta2.Instance.Node] message for more details.
    * 
* - * repeated .google.cloud.memcache.v1beta2.Instance.Node memcache_nodes = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.memcache.v1beta2.Instance.Node memcache_nodes = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ @java.lang.Override - public java.util.List + public java.util.List getMemcacheNodesOrBuilderList() { return memcacheNodes_; } /** + * + * *
    * Output only. List of Memcached nodes.
    * Refer to [Node][google.cloud.memcache.v1beta2.Instance.Node] message for more details.
    * 
* - * repeated .google.cloud.memcache.v1beta2.Instance.Node memcache_nodes = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.memcache.v1beta2.Instance.Node memcache_nodes = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ @java.lang.Override public int getMemcacheNodesCount() { return memcacheNodes_.size(); } /** + * + * *
    * Output only. List of Memcached nodes.
    * Refer to [Node][google.cloud.memcache.v1beta2.Instance.Node] message for more details.
    * 
* - * repeated .google.cloud.memcache.v1beta2.Instance.Node memcache_nodes = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.memcache.v1beta2.Instance.Node memcache_nodes = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ @java.lang.Override public com.google.cloud.memcache.v1beta2.Instance.Node getMemcacheNodes(int index) { return memcacheNodes_.get(index); } /** + * + * *
    * Output only. List of Memcached nodes.
    * Refer to [Node][google.cloud.memcache.v1beta2.Instance.Node] message for more details.
    * 
* - * repeated .google.cloud.memcache.v1beta2.Instance.Node memcache_nodes = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.memcache.v1beta2.Instance.Node memcache_nodes = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ @java.lang.Override public com.google.cloud.memcache.v1beta2.Instance.NodeOrBuilder getMemcacheNodesOrBuilder( @@ -4207,11 +4708,15 @@ public com.google.cloud.memcache.v1beta2.Instance.NodeOrBuilder getMemcacheNodes 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 @@ -4219,11 +4724,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 @@ -4231,11 +4740,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() { @@ -4245,11 +4757,15 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { public static final int UPDATE_TIME_FIELD_NUMBER = 14; private com.google.protobuf.Timestamp updateTime_; /** + * + * *
    * Output only. The time the instance was updated.
    * 
* - * .google.protobuf.Timestamp update_time = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp update_time = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the updateTime field is set. */ @java.lang.Override @@ -4257,11 +4773,15 @@ public boolean hasUpdateTime() { return updateTime_ != null; } /** + * + * *
    * Output only. The time the instance was updated.
    * 
* - * .google.protobuf.Timestamp update_time = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp update_time = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The updateTime. */ @java.lang.Override @@ -4269,11 +4789,14 @@ public com.google.protobuf.Timestamp getUpdateTime() { return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; } /** + * + * *
    * Output only. The time the instance was updated.
    * 
* - * .google.protobuf.Timestamp update_time = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp update_time = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { @@ -4283,33 +4806,48 @@ public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { public static final int STATE_FIELD_NUMBER = 15; private int state_; /** + * + * *
    * Output only. The state of this Memcached instance.
    * 
* - * .google.cloud.memcache.v1beta2.Instance.State state = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.memcache.v1beta2.Instance.State state = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The enum numeric value on the wire for state. */ - @java.lang.Override public int getStateValue() { + @java.lang.Override + public int getStateValue() { return state_; } /** + * + * *
    * Output only. The state of this Memcached instance.
    * 
* - * .google.cloud.memcache.v1beta2.Instance.State state = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.memcache.v1beta2.Instance.State state = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The state. */ - @java.lang.Override public com.google.cloud.memcache.v1beta2.Instance.State getState() { + @java.lang.Override + public com.google.cloud.memcache.v1beta2.Instance.State getState() { @SuppressWarnings("deprecation") - com.google.cloud.memcache.v1beta2.Instance.State result = com.google.cloud.memcache.v1beta2.Instance.State.valueOf(state_); + com.google.cloud.memcache.v1beta2.Instance.State result = + com.google.cloud.memcache.v1beta2.Instance.State.valueOf(state_); return result == null ? com.google.cloud.memcache.v1beta2.Instance.State.UNRECOGNIZED : result; } public static final int MEMCACHE_FULL_VERSION_FIELD_NUMBER = 18; private volatile java.lang.Object memcacheFullVersion_; /** + * + * *
    * Output only. The full version of memcached server running on this instance.
    * System automatically determines the full memcached version for an instance
@@ -4318,6 +4856,7 @@ public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() {
    * 
* * string memcache_full_version = 18 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The memcacheFullVersion. */ @java.lang.Override @@ -4326,14 +4865,15 @@ public java.lang.String getMemcacheFullVersion() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); memcacheFullVersion_ = s; return s; } } /** + * + * *
    * Output only. The full version of memcached server running on this instance.
    * System automatically determines the full memcached version for an instance
@@ -4342,16 +4882,15 @@ public java.lang.String getMemcacheFullVersion() {
    * 
* * string memcache_full_version = 18 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for memcacheFullVersion. */ @java.lang.Override - public com.google.protobuf.ByteString - getMemcacheFullVersionBytes() { + public com.google.protobuf.ByteString getMemcacheFullVersionBytes() { java.lang.Object ref = memcacheFullVersion_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); memcacheFullVersion_ = b; return b; } else { @@ -4360,73 +4899,94 @@ public java.lang.String getMemcacheFullVersion() { } public static final int INSTANCE_MESSAGES_FIELD_NUMBER = 19; - private java.util.List instanceMessages_; + private java.util.List + instanceMessages_; /** + * + * *
    * List of messages that describe the current state of the Memcached instance.
    * 
* - * repeated .google.cloud.memcache.v1beta2.Instance.InstanceMessage instance_messages = 19; + * repeated .google.cloud.memcache.v1beta2.Instance.InstanceMessage instance_messages = 19; + * */ @java.lang.Override - public java.util.List getInstanceMessagesList() { + public java.util.List + getInstanceMessagesList() { return instanceMessages_; } /** + * + * *
    * List of messages that describe the current state of the Memcached instance.
    * 
* - * repeated .google.cloud.memcache.v1beta2.Instance.InstanceMessage instance_messages = 19; + * repeated .google.cloud.memcache.v1beta2.Instance.InstanceMessage instance_messages = 19; + * */ @java.lang.Override - public java.util.List + public java.util.List< + ? extends com.google.cloud.memcache.v1beta2.Instance.InstanceMessageOrBuilder> getInstanceMessagesOrBuilderList() { return instanceMessages_; } /** + * + * *
    * List of messages that describe the current state of the Memcached instance.
    * 
* - * repeated .google.cloud.memcache.v1beta2.Instance.InstanceMessage instance_messages = 19; + * repeated .google.cloud.memcache.v1beta2.Instance.InstanceMessage instance_messages = 19; + * */ @java.lang.Override public int getInstanceMessagesCount() { return instanceMessages_.size(); } /** + * + * *
    * List of messages that describe the current state of the Memcached instance.
    * 
* - * repeated .google.cloud.memcache.v1beta2.Instance.InstanceMessage instance_messages = 19; + * repeated .google.cloud.memcache.v1beta2.Instance.InstanceMessage instance_messages = 19; + * */ @java.lang.Override public com.google.cloud.memcache.v1beta2.Instance.InstanceMessage getInstanceMessages(int index) { return instanceMessages_.get(index); } /** + * + * *
    * List of messages that describe the current state of the Memcached instance.
    * 
* - * repeated .google.cloud.memcache.v1beta2.Instance.InstanceMessage instance_messages = 19; + * repeated .google.cloud.memcache.v1beta2.Instance.InstanceMessage instance_messages = 19; + * */ @java.lang.Override - public com.google.cloud.memcache.v1beta2.Instance.InstanceMessageOrBuilder getInstanceMessagesOrBuilder( - int index) { + public com.google.cloud.memcache.v1beta2.Instance.InstanceMessageOrBuilder + getInstanceMessagesOrBuilder(int index) { return instanceMessages_.get(index); } public static final int DISCOVERY_ENDPOINT_FIELD_NUMBER = 20; private volatile java.lang.Object discoveryEndpoint_; /** + * + * *
    * Output only. Endpoint for the Discovery API.
    * 
* * string discovery_endpoint = 20 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The discoveryEndpoint. */ @java.lang.Override @@ -4435,29 +4995,29 @@ public java.lang.String getDiscoveryEndpoint() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); discoveryEndpoint_ = s; return s; } } /** + * + * *
    * Output only. Endpoint for the Discovery API.
    * 
* * string discovery_endpoint = 20 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for discoveryEndpoint. */ @java.lang.Override - public com.google.protobuf.ByteString - getDiscoveryEndpointBytes() { + public com.google.protobuf.ByteString getDiscoveryEndpointBytes() { java.lang.Object ref = discoveryEndpoint_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); discoveryEndpoint_ = b; return b; } else { @@ -4468,11 +5028,14 @@ public java.lang.String getDiscoveryEndpoint() { public static final int UPDATE_AVAILABLE_FIELD_NUMBER = 21; private boolean updateAvailable_; /** + * + * *
    * Output only. Returns true if there is an update waiting to be applied
    * 
* * bool update_available = 21 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The updateAvailable. */ @java.lang.Override @@ -4481,6 +5044,7 @@ public boolean getUpdateAvailable() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -4492,20 +5056,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(authorizedNetwork_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 4, authorizedNetwork_); } @@ -4518,7 +5077,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) if (nodeConfig_ != null) { output.writeMessage(7, getNodeConfig()); } - if (memcacheVersion_ != com.google.cloud.memcache.v1beta2.MemcacheVersion.MEMCACHE_VERSION_UNSPECIFIED.getNumber()) { + if (memcacheVersion_ + != com.google.cloud.memcache.v1beta2.MemcacheVersion.MEMCACHE_VERSION_UNSPECIFIED + .getNumber()) { output.writeEnum(9, memcacheVersion_); } if (parameters_ != null) { @@ -4563,15 +5124,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(authorizedNetwork_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, authorizedNetwork_); @@ -4585,50 +5146,43 @@ public int getSerializedSize() { size += 1 * getZonesList().size(); } if (nodeCount_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(6, nodeCount_); + size += com.google.protobuf.CodedOutputStream.computeInt32Size(6, nodeCount_); } if (nodeConfig_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(7, getNodeConfig()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(7, getNodeConfig()); } - if (memcacheVersion_ != com.google.cloud.memcache.v1beta2.MemcacheVersion.MEMCACHE_VERSION_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(9, memcacheVersion_); + if (memcacheVersion_ + != com.google.cloud.memcache.v1beta2.MemcacheVersion.MEMCACHE_VERSION_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(9, memcacheVersion_); } if (parameters_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(11, getParameters()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(11, getParameters()); } for (int i = 0; i < memcacheNodes_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(12, memcacheNodes_.get(i)); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(12, memcacheNodes_.get(i)); } if (createTime_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(13, getCreateTime()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(13, getCreateTime()); } if (updateTime_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(14, getUpdateTime()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(14, getUpdateTime()); } if (state_ != com.google.cloud.memcache.v1beta2.Instance.State.STATE_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(15, state_); + size += com.google.protobuf.CodedOutputStream.computeEnumSize(15, state_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(memcacheFullVersion_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(18, memcacheFullVersion_); } for (int i = 0; i < instanceMessages_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(19, instanceMessages_.get(i)); + size += + com.google.protobuf.CodedOutputStream.computeMessageSize(19, instanceMessages_.get(i)); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(discoveryEndpoint_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(20, discoveryEndpoint_); } if (updateAvailable_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(21, updateAvailable_); + size += com.google.protobuf.CodedOutputStream.computeBoolSize(21, updateAvailable_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -4638,57 +5192,43 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.memcache.v1beta2.Instance)) { return super.equals(obj); } - com.google.cloud.memcache.v1beta2.Instance other = (com.google.cloud.memcache.v1beta2.Instance) obj; - - if (!getName() - .equals(other.getName())) return false; - if (!getDisplayName() - .equals(other.getDisplayName())) return false; - if (!internalGetLabels().equals( - other.internalGetLabels())) return false; - if (!getAuthorizedNetwork() - .equals(other.getAuthorizedNetwork())) return false; - if (!getZonesList() - .equals(other.getZonesList())) return false; - if (getNodeCount() - != other.getNodeCount()) return false; + com.google.cloud.memcache.v1beta2.Instance other = + (com.google.cloud.memcache.v1beta2.Instance) obj; + + if (!getName().equals(other.getName())) return false; + if (!getDisplayName().equals(other.getDisplayName())) return false; + if (!internalGetLabels().equals(other.internalGetLabels())) return false; + if (!getAuthorizedNetwork().equals(other.getAuthorizedNetwork())) return false; + if (!getZonesList().equals(other.getZonesList())) return false; + if (getNodeCount() != other.getNodeCount()) return false; if (hasNodeConfig() != other.hasNodeConfig()) return false; if (hasNodeConfig()) { - if (!getNodeConfig() - .equals(other.getNodeConfig())) return false; + if (!getNodeConfig().equals(other.getNodeConfig())) return false; } if (memcacheVersion_ != other.memcacheVersion_) return false; if (hasParameters() != other.hasParameters()) return false; if (hasParameters()) { - if (!getParameters() - .equals(other.getParameters())) return false; + if (!getParameters().equals(other.getParameters())) return false; } - if (!getMemcacheNodesList() - .equals(other.getMemcacheNodesList())) return false; + if (!getMemcacheNodesList().equals(other.getMemcacheNodesList())) return false; if (hasCreateTime() != other.hasCreateTime()) return false; if (hasCreateTime()) { - if (!getCreateTime() - .equals(other.getCreateTime())) return false; + if (!getCreateTime().equals(other.getCreateTime())) return false; } if (hasUpdateTime() != other.hasUpdateTime()) return false; if (hasUpdateTime()) { - if (!getUpdateTime() - .equals(other.getUpdateTime())) return false; + if (!getUpdateTime().equals(other.getUpdateTime())) return false; } if (state_ != other.state_) return false; - if (!getMemcacheFullVersion() - .equals(other.getMemcacheFullVersion())) return false; - if (!getInstanceMessagesList() - .equals(other.getInstanceMessagesList())) return false; - if (!getDiscoveryEndpoint() - .equals(other.getDiscoveryEndpoint())) return false; - if (getUpdateAvailable() - != other.getUpdateAvailable()) return false; + if (!getMemcacheFullVersion().equals(other.getMemcacheFullVersion())) return false; + if (!getInstanceMessagesList().equals(other.getInstanceMessagesList())) return false; + if (!getDiscoveryEndpoint().equals(other.getDiscoveryEndpoint())) return false; + if (getUpdateAvailable() != other.getUpdateAvailable()) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -4749,147 +5289,153 @@ public int hashCode() { hash = (37 * hash) + DISCOVERY_ENDPOINT_FIELD_NUMBER; hash = (53 * hash) + getDiscoveryEndpoint().hashCode(); hash = (37 * hash) + UPDATE_AVAILABLE_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getUpdateAvailable()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getUpdateAvailable()); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } - public static com.google.cloud.memcache.v1beta2.Instance parseFrom( - java.nio.ByteBuffer data) + public static com.google.cloud.memcache.v1beta2.Instance parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.memcache.v1beta2.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.memcache.v1beta2.Instance parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.memcache.v1beta2.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.memcache.v1beta2.Instance parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.memcache.v1beta2.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.memcache.v1beta2.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.memcache.v1beta2.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.memcache.v1beta2.Instance parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.memcache.v1beta2.Instance parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.memcache.v1beta2.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.memcache.v1beta2.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.memcache.v1beta2.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.memcache.v1beta2.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 Memcached instance
    * 
* * Protobuf type {@code google.cloud.memcache.v1beta2.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.memcache.v1beta2.Instance) com.google.cloud.memcache.v1beta2.InstanceOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.memcache.v1beta2.CloudMemcacheProto.internal_static_google_cloud_memcache_v1beta2_Instance_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.memcache.v1beta2.CloudMemcacheProto + .internal_static_google_cloud_memcache_v1beta2_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(); 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(); 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.memcache.v1beta2.CloudMemcacheProto.internal_static_google_cloud_memcache_v1beta2_Instance_fieldAccessorTable + return com.google.cloud.memcache.v1beta2.CloudMemcacheProto + .internal_static_google_cloud_memcache_v1beta2_Instance_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.memcache.v1beta2.Instance.class, com.google.cloud.memcache.v1beta2.Instance.Builder.class); + com.google.cloud.memcache.v1beta2.Instance.class, + com.google.cloud.memcache.v1beta2.Instance.Builder.class); } // Construct using com.google.cloud.memcache.v1beta2.Instance.newBuilder() @@ -4897,18 +5443,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) { getMemcacheNodesFieldBuilder(); getInstanceMessagesFieldBuilder(); } } + @java.lang.Override public Builder clear() { super.clear(); @@ -4973,9 +5519,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.memcache.v1beta2.CloudMemcacheProto.internal_static_google_cloud_memcache_v1beta2_Instance_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.memcache.v1beta2.CloudMemcacheProto + .internal_static_google_cloud_memcache_v1beta2_Instance_descriptor; } @java.lang.Override @@ -4994,7 +5540,8 @@ public com.google.cloud.memcache.v1beta2.Instance build() { @java.lang.Override public com.google.cloud.memcache.v1beta2.Instance buildPartial() { - com.google.cloud.memcache.v1beta2.Instance result = new com.google.cloud.memcache.v1beta2.Instance(this); + com.google.cloud.memcache.v1beta2.Instance result = + new com.google.cloud.memcache.v1beta2.Instance(this); int from_bitField0_ = bitField0_; result.name_ = name_; result.displayName_ = displayName_; @@ -5058,38 +5605,39 @@ public com.google.cloud.memcache.v1beta2.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.memcache.v1beta2.Instance) { - return mergeFrom((com.google.cloud.memcache.v1beta2.Instance)other); + return mergeFrom((com.google.cloud.memcache.v1beta2.Instance) other); } else { super.mergeFrom(other); return this; @@ -5106,8 +5654,7 @@ public Builder mergeFrom(com.google.cloud.memcache.v1beta2.Instance other) { displayName_ = other.displayName_; onChanged(); } - internalGetMutableLabels().mergeFrom( - other.internalGetLabels()); + internalGetMutableLabels().mergeFrom(other.internalGetLabels()); if (!other.getAuthorizedNetwork().isEmpty()) { authorizedNetwork_ = other.authorizedNetwork_; onChanged(); @@ -5152,9 +5699,10 @@ public Builder mergeFrom(com.google.cloud.memcache.v1beta2.Instance other) { memcacheNodesBuilder_ = null; memcacheNodes_ = other.memcacheNodes_; bitField0_ = (bitField0_ & ~0x00000004); - memcacheNodesBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getMemcacheNodesFieldBuilder() : null; + memcacheNodesBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getMemcacheNodesFieldBuilder() + : null; } else { memcacheNodesBuilder_.addAllMessages(other.memcacheNodes_); } @@ -5191,9 +5739,10 @@ public Builder mergeFrom(com.google.cloud.memcache.v1beta2.Instance other) { instanceMessagesBuilder_ = null; instanceMessages_ = other.instanceMessages_; bitField0_ = (bitField0_ & ~0x00000008); - instanceMessagesBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getInstanceMessagesFieldBuilder() : null; + instanceMessagesBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getInstanceMessagesFieldBuilder() + : null; } else { instanceMessagesBuilder_.addAllMessages(other.instanceMessages_); } @@ -5234,10 +5783,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:
@@ -5249,13 +5801,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; @@ -5264,6 +5816,8 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. Unique name of the resource in this scope including project and
      * location using the form:
@@ -5275,15 +5829,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 { @@ -5291,6 +5844,8 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. Unique name of the resource in this scope including project and
      * location using the form:
@@ -5302,20 +5857,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:
@@ -5327,15 +5884,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:
@@ -5347,16 +5907,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; @@ -5364,19 +5924,21 @@ public Builder setNameBytes( private java.lang.Object displayName_ = ""; /** + * + * *
      * User provided name for the instance, which is only used for display
      * purposes. Cannot be more than 80 characters.
      * 
* * 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; @@ -5385,21 +5947,22 @@ public java.lang.String getDisplayName() { } } /** + * + * *
      * User provided name for the instance, which is only used for display
      * purposes. Cannot be more than 80 characters.
      * 
* * 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 { @@ -5407,78 +5970,84 @@ public java.lang.String getDisplayName() { } } /** + * + * *
      * User provided name for the instance, which is only used for display
      * purposes. Cannot be more than 80 characters.
      * 
* * 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; } /** + * + * *
      * User provided name for the instance, which is only used for display
      * purposes. Cannot be more than 80 characters.
      * 
* * string display_name = 2; + * * @return This builder for chaining. */ public Builder clearDisplayName() { - + displayName_ = getDefaultInstance().getDisplayName(); onChanged(); return this; } /** + * + * *
      * User provided name for the instance, which is only used for display
      * purposes. Cannot be more than 80 characters.
      * 
* * 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(); @@ -5490,6 +6059,8 @@ public int getLabelsCount() { return internalGetLabels().getMap().size(); } /** + * + * *
      * Resource labels to represent user-provided metadata.
      * Refer to cloud documentation on labels for more details.
@@ -5498,22 +6069,22 @@ public int getLabelsCount() {
      *
      * 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.
      * Refer to cloud documentation on labels for more details.
@@ -5523,11 +6094,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.
      * Refer to cloud documentation on labels for more details.
@@ -5537,16 +6109,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.
      * Refer to cloud documentation on labels for more details.
@@ -5556,12 +6129,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();
       }
@@ -5569,11 +6141,12 @@ public java.lang.String getLabelsOrThrow(
     }
 
     public Builder clearLabels() {
-      internalGetMutableLabels().getMutableMap()
-          .clear();
+      internalGetMutableLabels().getMutableMap().clear();
       return this;
     }
     /**
+     *
+     *
      * 
      * Resource labels to represent user-provided metadata.
      * Refer to cloud documentation on labels for more details.
@@ -5582,23 +6155,21 @@ public Builder clearLabels() {
      *
      * 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.
      * Refer to cloud documentation on labels for more details.
@@ -5607,19 +6178,20 @@ public Builder removeLabels(
      *
      * 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.
      * Refer to cloud documentation on labels for more details.
@@ -5628,16 +6200,15 @@ public Builder putLabels(
      *
      * 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 authorizedNetwork_ = "";
     /**
+     *
+     *
      * 
      * The full name of the Google Compute Engine
      * [network](https://cloud.google.com/vpc/docs/vpc) to which the
@@ -5646,13 +6217,13 @@ public Builder putAllLabels(
      * 
* * string authorized_network = 4; + * * @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; @@ -5661,6 +6232,8 @@ public java.lang.String getAuthorizedNetwork() { } } /** + * + * *
      * The full name of the Google Compute Engine
      * [network](https://cloud.google.com/vpc/docs/vpc) to which the
@@ -5669,15 +6242,14 @@ public java.lang.String getAuthorizedNetwork() {
      * 
* * string authorized_network = 4; + * * @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 { @@ -5685,6 +6257,8 @@ public java.lang.String getAuthorizedNetwork() { } } /** + * + * *
      * The full name of the Google Compute Engine
      * [network](https://cloud.google.com/vpc/docs/vpc) to which the
@@ -5693,20 +6267,22 @@ public java.lang.String getAuthorizedNetwork() {
      * 
* * string authorized_network = 4; + * * @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; } /** + * + * *
      * The full name of the Google Compute Engine
      * [network](https://cloud.google.com/vpc/docs/vpc) to which the
@@ -5715,15 +6291,18 @@ public Builder setAuthorizedNetwork(
      * 
* * string authorized_network = 4; + * * @return This builder for chaining. */ public Builder clearAuthorizedNetwork() { - + authorizedNetwork_ = getDefaultInstance().getAuthorizedNetwork(); onChanged(); return this; } /** + * + * *
      * The full name of the Google Compute Engine
      * [network](https://cloud.google.com/vpc/docs/vpc) to which the
@@ -5732,29 +6311,33 @@ public Builder clearAuthorizedNetwork() {
      * 
* * string authorized_network = 4; + * * @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; } - private com.google.protobuf.LazyStringList zones_ = com.google.protobuf.LazyStringArrayList.EMPTY; + private com.google.protobuf.LazyStringList zones_ = + com.google.protobuf.LazyStringArrayList.EMPTY; + private void ensureZonesIsMutable() { if (!((bitField0_ & 0x00000002) != 0)) { zones_ = new com.google.protobuf.LazyStringArrayList(zones_); bitField0_ |= 0x00000002; - } + } } /** + * + * *
      * Zones in which Memcached nodes should be provisioned.
      * Memcached nodes will be equally distributed across these zones. If not
@@ -5763,13 +6346,15 @@ private void ensureZonesIsMutable() {
      * 
* * repeated string zones = 5; + * * @return A list containing the zones. */ - public com.google.protobuf.ProtocolStringList - getZonesList() { + public com.google.protobuf.ProtocolStringList getZonesList() { return zones_.getUnmodifiableView(); } /** + * + * *
      * Zones in which Memcached nodes should be provisioned.
      * Memcached nodes will be equally distributed across these zones. If not
@@ -5778,12 +6363,15 @@ private void ensureZonesIsMutable() {
      * 
* * repeated string zones = 5; + * * @return The count of zones. */ public int getZonesCount() { return zones_.size(); } /** + * + * *
      * Zones in which Memcached nodes should be provisioned.
      * Memcached nodes will be equally distributed across these zones. If not
@@ -5792,6 +6380,7 @@ public int getZonesCount() {
      * 
* * repeated string zones = 5; + * * @param index The index of the element to return. * @return The zones at the given index. */ @@ -5799,6 +6388,8 @@ public java.lang.String getZones(int index) { return zones_.get(index); } /** + * + * *
      * Zones in which Memcached nodes should be provisioned.
      * Memcached nodes will be equally distributed across these zones. If not
@@ -5807,14 +6398,16 @@ public java.lang.String getZones(int index) {
      * 
* * repeated string zones = 5; + * * @param index The index of the value to return. * @return The bytes of the zones at the given index. */ - public com.google.protobuf.ByteString - getZonesBytes(int index) { + public com.google.protobuf.ByteString getZonesBytes(int index) { return zones_.getByteString(index); } /** + * + * *
      * Zones in which Memcached nodes should be provisioned.
      * Memcached nodes will be equally distributed across these zones. If not
@@ -5823,21 +6416,23 @@ public java.lang.String getZones(int index) {
      * 
* * repeated string zones = 5; + * * @param index The index to set the value at. * @param value The zones to set. * @return This builder for chaining. */ - public Builder setZones( - int index, java.lang.String value) { + public Builder setZones(int index, java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureZonesIsMutable(); + throw new NullPointerException(); + } + ensureZonesIsMutable(); zones_.set(index, value); onChanged(); return this; } /** + * + * *
      * Zones in which Memcached nodes should be provisioned.
      * Memcached nodes will be equally distributed across these zones. If not
@@ -5846,20 +6441,22 @@ public Builder setZones(
      * 
* * repeated string zones = 5; + * * @param value The zones to add. * @return This builder for chaining. */ - public Builder addZones( - java.lang.String value) { + public Builder addZones(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureZonesIsMutable(); + throw new NullPointerException(); + } + ensureZonesIsMutable(); zones_.add(value); onChanged(); return this; } /** + * + * *
      * Zones in which Memcached nodes should be provisioned.
      * Memcached nodes will be equally distributed across these zones. If not
@@ -5868,18 +6465,19 @@ public Builder addZones(
      * 
* * repeated string zones = 5; + * * @param values The zones to add. * @return This builder for chaining. */ - public Builder addAllZones( - java.lang.Iterable values) { + public Builder addAllZones(java.lang.Iterable values) { ensureZonesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, zones_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, zones_); onChanged(); return this; } /** + * + * *
      * Zones in which Memcached nodes should be provisioned.
      * Memcached nodes will be equally distributed across these zones. If not
@@ -5888,6 +6486,7 @@ public Builder addAllZones(
      * 
* * repeated string zones = 5; + * * @return This builder for chaining. */ public Builder clearZones() { @@ -5897,6 +6496,8 @@ public Builder clearZones() { return this; } /** + * + * *
      * Zones in which Memcached nodes should be provisioned.
      * Memcached nodes will be equally distributed across these zones. If not
@@ -5905,28 +6506,31 @@ public Builder clearZones() {
      * 
* * repeated string zones = 5; + * * @param value The bytes of the zones to add. * @return This builder for chaining. */ - public Builder addZonesBytes( - com.google.protobuf.ByteString value) { + public Builder addZonesBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); ensureZonesIsMutable(); zones_.add(value); onChanged(); return this; } - private int nodeCount_ ; + private int nodeCount_; /** + * + * *
      * Required. Number of nodes in the Memcached instance.
      * 
* * int32 node_count = 6 [(.google.api.field_behavior) = REQUIRED]; + * * @return The nodeCount. */ @java.lang.Override @@ -5934,30 +6538,36 @@ public int getNodeCount() { return nodeCount_; } /** + * + * *
      * Required. Number of nodes in the Memcached instance.
      * 
* * int32 node_count = 6 [(.google.api.field_behavior) = REQUIRED]; + * * @param value The nodeCount to set. * @return This builder for chaining. */ public Builder setNodeCount(int value) { - + nodeCount_ = value; onChanged(); return this; } /** + * + * *
      * Required. Number of nodes in the Memcached instance.
      * 
* * int32 node_count = 6 [(.google.api.field_behavior) = REQUIRED]; + * * @return This builder for chaining. */ public Builder clearNodeCount() { - + nodeCount_ = 0; onChanged(); return this; @@ -5965,39 +6575,58 @@ public Builder clearNodeCount() { private com.google.cloud.memcache.v1beta2.Instance.NodeConfig nodeConfig_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.memcache.v1beta2.Instance.NodeConfig, com.google.cloud.memcache.v1beta2.Instance.NodeConfig.Builder, com.google.cloud.memcache.v1beta2.Instance.NodeConfigOrBuilder> nodeConfigBuilder_; + com.google.cloud.memcache.v1beta2.Instance.NodeConfig, + com.google.cloud.memcache.v1beta2.Instance.NodeConfig.Builder, + com.google.cloud.memcache.v1beta2.Instance.NodeConfigOrBuilder> + nodeConfigBuilder_; /** + * + * *
      * Required. Configuration for Memcached nodes.
      * 
* - * .google.cloud.memcache.v1beta2.Instance.NodeConfig node_config = 7 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.memcache.v1beta2.Instance.NodeConfig node_config = 7 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the nodeConfig field is set. */ public boolean hasNodeConfig() { return nodeConfigBuilder_ != null || nodeConfig_ != null; } /** + * + * *
      * Required. Configuration for Memcached nodes.
      * 
* - * .google.cloud.memcache.v1beta2.Instance.NodeConfig node_config = 7 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.memcache.v1beta2.Instance.NodeConfig node_config = 7 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The nodeConfig. */ public com.google.cloud.memcache.v1beta2.Instance.NodeConfig getNodeConfig() { if (nodeConfigBuilder_ == null) { - return nodeConfig_ == null ? com.google.cloud.memcache.v1beta2.Instance.NodeConfig.getDefaultInstance() : nodeConfig_; + return nodeConfig_ == null + ? com.google.cloud.memcache.v1beta2.Instance.NodeConfig.getDefaultInstance() + : nodeConfig_; } else { return nodeConfigBuilder_.getMessage(); } } /** + * + * *
      * Required. Configuration for Memcached nodes.
      * 
* - * .google.cloud.memcache.v1beta2.Instance.NodeConfig node_config = 7 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.memcache.v1beta2.Instance.NodeConfig node_config = 7 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder setNodeConfig(com.google.cloud.memcache.v1beta2.Instance.NodeConfig value) { if (nodeConfigBuilder_ == null) { @@ -6013,11 +6642,15 @@ public Builder setNodeConfig(com.google.cloud.memcache.v1beta2.Instance.NodeConf return this; } /** + * + * *
      * Required. Configuration for Memcached nodes.
      * 
* - * .google.cloud.memcache.v1beta2.Instance.NodeConfig node_config = 7 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.memcache.v1beta2.Instance.NodeConfig node_config = 7 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder setNodeConfig( com.google.cloud.memcache.v1beta2.Instance.NodeConfig.Builder builderForValue) { @@ -6031,17 +6664,23 @@ public Builder setNodeConfig( return this; } /** + * + * *
      * Required. Configuration for Memcached nodes.
      * 
* - * .google.cloud.memcache.v1beta2.Instance.NodeConfig node_config = 7 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.memcache.v1beta2.Instance.NodeConfig node_config = 7 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder mergeNodeConfig(com.google.cloud.memcache.v1beta2.Instance.NodeConfig value) { if (nodeConfigBuilder_ == null) { if (nodeConfig_ != null) { nodeConfig_ = - com.google.cloud.memcache.v1beta2.Instance.NodeConfig.newBuilder(nodeConfig_).mergeFrom(value).buildPartial(); + com.google.cloud.memcache.v1beta2.Instance.NodeConfig.newBuilder(nodeConfig_) + .mergeFrom(value) + .buildPartial(); } else { nodeConfig_ = value; } @@ -6053,11 +6692,15 @@ public Builder mergeNodeConfig(com.google.cloud.memcache.v1beta2.Instance.NodeCo return this; } /** + * + * *
      * Required. Configuration for Memcached nodes.
      * 
* - * .google.cloud.memcache.v1beta2.Instance.NodeConfig node_config = 7 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.memcache.v1beta2.Instance.NodeConfig node_config = 7 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder clearNodeConfig() { if (nodeConfigBuilder_ == null) { @@ -6071,48 +6714,64 @@ public Builder clearNodeConfig() { return this; } /** + * + * *
      * Required. Configuration for Memcached nodes.
      * 
* - * .google.cloud.memcache.v1beta2.Instance.NodeConfig node_config = 7 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.memcache.v1beta2.Instance.NodeConfig node_config = 7 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.cloud.memcache.v1beta2.Instance.NodeConfig.Builder getNodeConfigBuilder() { - + onChanged(); return getNodeConfigFieldBuilder().getBuilder(); } /** + * + * *
      * Required. Configuration for Memcached nodes.
      * 
* - * .google.cloud.memcache.v1beta2.Instance.NodeConfig node_config = 7 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.memcache.v1beta2.Instance.NodeConfig node_config = 7 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.cloud.memcache.v1beta2.Instance.NodeConfigOrBuilder getNodeConfigOrBuilder() { if (nodeConfigBuilder_ != null) { return nodeConfigBuilder_.getMessageOrBuilder(); } else { - return nodeConfig_ == null ? - com.google.cloud.memcache.v1beta2.Instance.NodeConfig.getDefaultInstance() : nodeConfig_; + return nodeConfig_ == null + ? com.google.cloud.memcache.v1beta2.Instance.NodeConfig.getDefaultInstance() + : nodeConfig_; } } /** + * + * *
      * Required. Configuration for Memcached nodes.
      * 
* - * .google.cloud.memcache.v1beta2.Instance.NodeConfig node_config = 7 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.memcache.v1beta2.Instance.NodeConfig node_config = 7 [(.google.api.field_behavior) = REQUIRED]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.memcache.v1beta2.Instance.NodeConfig, com.google.cloud.memcache.v1beta2.Instance.NodeConfig.Builder, com.google.cloud.memcache.v1beta2.Instance.NodeConfigOrBuilder> + com.google.cloud.memcache.v1beta2.Instance.NodeConfig, + com.google.cloud.memcache.v1beta2.Instance.NodeConfig.Builder, + com.google.cloud.memcache.v1beta2.Instance.NodeConfigOrBuilder> getNodeConfigFieldBuilder() { if (nodeConfigBuilder_ == null) { - nodeConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.memcache.v1beta2.Instance.NodeConfig, com.google.cloud.memcache.v1beta2.Instance.NodeConfig.Builder, com.google.cloud.memcache.v1beta2.Instance.NodeConfigOrBuilder>( - getNodeConfig(), - getParentForChildren(), - isClean()); + nodeConfigBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.memcache.v1beta2.Instance.NodeConfig, + com.google.cloud.memcache.v1beta2.Instance.NodeConfig.Builder, + com.google.cloud.memcache.v1beta2.Instance.NodeConfigOrBuilder>( + getNodeConfig(), getParentForChildren(), isClean()); nodeConfig_ = null; } return nodeConfigBuilder_; @@ -6120,6 +6779,8 @@ public com.google.cloud.memcache.v1beta2.Instance.NodeConfigOrBuilder getNodeCon private int memcacheVersion_ = 0; /** + * + * *
      * The major version of Memcached software.
      * If not provided, latest supported version will be used. Currently the
@@ -6129,12 +6790,16 @@ public com.google.cloud.memcache.v1beta2.Instance.NodeConfigOrBuilder getNodeCon
      * 
* * .google.cloud.memcache.v1beta2.MemcacheVersion memcache_version = 9; + * * @return The enum numeric value on the wire for memcacheVersion. */ - @java.lang.Override public int getMemcacheVersionValue() { + @java.lang.Override + public int getMemcacheVersionValue() { return memcacheVersion_; } /** + * + * *
      * The major version of Memcached software.
      * If not provided, latest supported version will be used. Currently the
@@ -6144,16 +6809,19 @@ public com.google.cloud.memcache.v1beta2.Instance.NodeConfigOrBuilder getNodeCon
      * 
* * .google.cloud.memcache.v1beta2.MemcacheVersion memcache_version = 9; + * * @param value The enum numeric value on the wire for memcacheVersion to set. * @return This builder for chaining. */ public Builder setMemcacheVersionValue(int value) { - + memcacheVersion_ = value; onChanged(); return this; } /** + * + * *
      * The major version of Memcached software.
      * If not provided, latest supported version will be used. Currently the
@@ -6163,15 +6831,21 @@ public Builder setMemcacheVersionValue(int value) {
      * 
* * .google.cloud.memcache.v1beta2.MemcacheVersion memcache_version = 9; + * * @return The memcacheVersion. */ @java.lang.Override public com.google.cloud.memcache.v1beta2.MemcacheVersion getMemcacheVersion() { @SuppressWarnings("deprecation") - com.google.cloud.memcache.v1beta2.MemcacheVersion result = com.google.cloud.memcache.v1beta2.MemcacheVersion.valueOf(memcacheVersion_); - return result == null ? com.google.cloud.memcache.v1beta2.MemcacheVersion.UNRECOGNIZED : result; + com.google.cloud.memcache.v1beta2.MemcacheVersion result = + com.google.cloud.memcache.v1beta2.MemcacheVersion.valueOf(memcacheVersion_); + return result == null + ? com.google.cloud.memcache.v1beta2.MemcacheVersion.UNRECOGNIZED + : result; } /** + * + * *
      * The major version of Memcached software.
      * If not provided, latest supported version will be used. Currently the
@@ -6181,6 +6855,7 @@ public com.google.cloud.memcache.v1beta2.MemcacheVersion getMemcacheVersion() {
      * 
* * .google.cloud.memcache.v1beta2.MemcacheVersion memcache_version = 9; + * * @param value The memcacheVersion to set. * @return This builder for chaining. */ @@ -6188,12 +6863,14 @@ public Builder setMemcacheVersion(com.google.cloud.memcache.v1beta2.MemcacheVers if (value == null) { throw new NullPointerException(); } - + memcacheVersion_ = value.getNumber(); onChanged(); return this; } /** + * + * *
      * The major version of Memcached software.
      * If not provided, latest supported version will be used. Currently the
@@ -6203,10 +6880,11 @@ public Builder setMemcacheVersion(com.google.cloud.memcache.v1beta2.MemcacheVers
      * 
* * .google.cloud.memcache.v1beta2.MemcacheVersion memcache_version = 9; + * * @return This builder for chaining. */ public Builder clearMemcacheVersion() { - + memcacheVersion_ = 0; onChanged(); return this; @@ -6214,36 +6892,49 @@ public Builder clearMemcacheVersion() { private com.google.cloud.memcache.v1beta2.MemcacheParameters parameters_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.memcache.v1beta2.MemcacheParameters, com.google.cloud.memcache.v1beta2.MemcacheParameters.Builder, com.google.cloud.memcache.v1beta2.MemcacheParametersOrBuilder> parametersBuilder_; + com.google.cloud.memcache.v1beta2.MemcacheParameters, + com.google.cloud.memcache.v1beta2.MemcacheParameters.Builder, + com.google.cloud.memcache.v1beta2.MemcacheParametersOrBuilder> + parametersBuilder_; /** + * + * *
      * Optional: User defined parameters to apply to the memcached process
      * on each node.
      * 
* * .google.cloud.memcache.v1beta2.MemcacheParameters parameters = 11; + * * @return Whether the parameters field is set. */ public boolean hasParameters() { return parametersBuilder_ != null || parameters_ != null; } /** + * + * *
      * Optional: User defined parameters to apply to the memcached process
      * on each node.
      * 
* * .google.cloud.memcache.v1beta2.MemcacheParameters parameters = 11; + * * @return The parameters. */ public com.google.cloud.memcache.v1beta2.MemcacheParameters getParameters() { if (parametersBuilder_ == null) { - return parameters_ == null ? com.google.cloud.memcache.v1beta2.MemcacheParameters.getDefaultInstance() : parameters_; + return parameters_ == null + ? com.google.cloud.memcache.v1beta2.MemcacheParameters.getDefaultInstance() + : parameters_; } else { return parametersBuilder_.getMessage(); } } /** + * + * *
      * Optional: User defined parameters to apply to the memcached process
      * on each node.
@@ -6265,6 +6956,8 @@ public Builder setParameters(com.google.cloud.memcache.v1beta2.MemcacheParameter
       return this;
     }
     /**
+     *
+     *
      * 
      * Optional: User defined parameters to apply to the memcached process
      * on each node.
@@ -6284,6 +6977,8 @@ public Builder setParameters(
       return this;
     }
     /**
+     *
+     *
      * 
      * Optional: User defined parameters to apply to the memcached process
      * on each node.
@@ -6295,7 +6990,9 @@ public Builder mergeParameters(com.google.cloud.memcache.v1beta2.MemcacheParamet
       if (parametersBuilder_ == null) {
         if (parameters_ != null) {
           parameters_ =
-            com.google.cloud.memcache.v1beta2.MemcacheParameters.newBuilder(parameters_).mergeFrom(value).buildPartial();
+              com.google.cloud.memcache.v1beta2.MemcacheParameters.newBuilder(parameters_)
+                  .mergeFrom(value)
+                  .buildPartial();
         } else {
           parameters_ = value;
         }
@@ -6307,6 +7004,8 @@ public Builder mergeParameters(com.google.cloud.memcache.v1beta2.MemcacheParamet
       return this;
     }
     /**
+     *
+     *
      * 
      * Optional: User defined parameters to apply to the memcached process
      * on each node.
@@ -6326,6 +7025,8 @@ public Builder clearParameters() {
       return this;
     }
     /**
+     *
+     *
      * 
      * Optional: User defined parameters to apply to the memcached process
      * on each node.
@@ -6334,11 +7035,13 @@ public Builder clearParameters() {
      * .google.cloud.memcache.v1beta2.MemcacheParameters parameters = 11;
      */
     public com.google.cloud.memcache.v1beta2.MemcacheParameters.Builder getParametersBuilder() {
-      
+
       onChanged();
       return getParametersFieldBuilder().getBuilder();
     }
     /**
+     *
+     *
      * 
      * Optional: User defined parameters to apply to the memcached process
      * on each node.
@@ -6350,11 +7053,14 @@ public com.google.cloud.memcache.v1beta2.MemcacheParametersOrBuilder getParamete
       if (parametersBuilder_ != null) {
         return parametersBuilder_.getMessageOrBuilder();
       } else {
-        return parameters_ == null ?
-            com.google.cloud.memcache.v1beta2.MemcacheParameters.getDefaultInstance() : parameters_;
+        return parameters_ == null
+            ? com.google.cloud.memcache.v1beta2.MemcacheParameters.getDefaultInstance()
+            : parameters_;
       }
     }
     /**
+     *
+     *
      * 
      * Optional: User defined parameters to apply to the memcached process
      * on each node.
@@ -6363,38 +7069,51 @@ public com.google.cloud.memcache.v1beta2.MemcacheParametersOrBuilder getParamete
      * .google.cloud.memcache.v1beta2.MemcacheParameters parameters = 11;
      */
     private com.google.protobuf.SingleFieldBuilderV3<
-        com.google.cloud.memcache.v1beta2.MemcacheParameters, com.google.cloud.memcache.v1beta2.MemcacheParameters.Builder, com.google.cloud.memcache.v1beta2.MemcacheParametersOrBuilder> 
+            com.google.cloud.memcache.v1beta2.MemcacheParameters,
+            com.google.cloud.memcache.v1beta2.MemcacheParameters.Builder,
+            com.google.cloud.memcache.v1beta2.MemcacheParametersOrBuilder>
         getParametersFieldBuilder() {
       if (parametersBuilder_ == null) {
-        parametersBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
-            com.google.cloud.memcache.v1beta2.MemcacheParameters, com.google.cloud.memcache.v1beta2.MemcacheParameters.Builder, com.google.cloud.memcache.v1beta2.MemcacheParametersOrBuilder>(
-                getParameters(),
-                getParentForChildren(),
-                isClean());
+        parametersBuilder_ =
+            new com.google.protobuf.SingleFieldBuilderV3<
+                com.google.cloud.memcache.v1beta2.MemcacheParameters,
+                com.google.cloud.memcache.v1beta2.MemcacheParameters.Builder,
+                com.google.cloud.memcache.v1beta2.MemcacheParametersOrBuilder>(
+                getParameters(), getParentForChildren(), isClean());
         parameters_ = null;
       }
       return parametersBuilder_;
     }
 
     private java.util.List memcacheNodes_ =
-      java.util.Collections.emptyList();
+        java.util.Collections.emptyList();
+
     private void ensureMemcacheNodesIsMutable() {
       if (!((bitField0_ & 0x00000004) != 0)) {
-        memcacheNodes_ = new java.util.ArrayList(memcacheNodes_);
+        memcacheNodes_ =
+            new java.util.ArrayList(
+                memcacheNodes_);
         bitField0_ |= 0x00000004;
-       }
+      }
     }
 
     private com.google.protobuf.RepeatedFieldBuilderV3<
-        com.google.cloud.memcache.v1beta2.Instance.Node, com.google.cloud.memcache.v1beta2.Instance.Node.Builder, com.google.cloud.memcache.v1beta2.Instance.NodeOrBuilder> memcacheNodesBuilder_;
+            com.google.cloud.memcache.v1beta2.Instance.Node,
+            com.google.cloud.memcache.v1beta2.Instance.Node.Builder,
+            com.google.cloud.memcache.v1beta2.Instance.NodeOrBuilder>
+        memcacheNodesBuilder_;
 
     /**
+     *
+     *
      * 
      * Output only. List of Memcached nodes.
      * Refer to [Node][google.cloud.memcache.v1beta2.Instance.Node] message for more details.
      * 
* - * repeated .google.cloud.memcache.v1beta2.Instance.Node memcache_nodes = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.memcache.v1beta2.Instance.Node memcache_nodes = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public java.util.List getMemcacheNodesList() { if (memcacheNodesBuilder_ == null) { @@ -6404,12 +7123,16 @@ public java.util.List getMemcac } } /** + * + * *
      * Output only. List of Memcached nodes.
      * Refer to [Node][google.cloud.memcache.v1beta2.Instance.Node] message for more details.
      * 
* - * repeated .google.cloud.memcache.v1beta2.Instance.Node memcache_nodes = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.memcache.v1beta2.Instance.Node memcache_nodes = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public int getMemcacheNodesCount() { if (memcacheNodesBuilder_ == null) { @@ -6419,12 +7142,16 @@ public int getMemcacheNodesCount() { } } /** + * + * *
      * Output only. List of Memcached nodes.
      * Refer to [Node][google.cloud.memcache.v1beta2.Instance.Node] message for more details.
      * 
* - * repeated .google.cloud.memcache.v1beta2.Instance.Node memcache_nodes = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.memcache.v1beta2.Instance.Node memcache_nodes = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public com.google.cloud.memcache.v1beta2.Instance.Node getMemcacheNodes(int index) { if (memcacheNodesBuilder_ == null) { @@ -6434,12 +7161,16 @@ public com.google.cloud.memcache.v1beta2.Instance.Node getMemcacheNodes(int inde } } /** + * + * *
      * Output only. List of Memcached nodes.
      * Refer to [Node][google.cloud.memcache.v1beta2.Instance.Node] message for more details.
      * 
* - * repeated .google.cloud.memcache.v1beta2.Instance.Node memcache_nodes = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.memcache.v1beta2.Instance.Node memcache_nodes = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder setMemcacheNodes( int index, com.google.cloud.memcache.v1beta2.Instance.Node value) { @@ -6456,12 +7187,16 @@ public Builder setMemcacheNodes( return this; } /** + * + * *
      * Output only. List of Memcached nodes.
      * Refer to [Node][google.cloud.memcache.v1beta2.Instance.Node] message for more details.
      * 
* - * repeated .google.cloud.memcache.v1beta2.Instance.Node memcache_nodes = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.memcache.v1beta2.Instance.Node memcache_nodes = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder setMemcacheNodes( int index, com.google.cloud.memcache.v1beta2.Instance.Node.Builder builderForValue) { @@ -6475,12 +7210,16 @@ public Builder setMemcacheNodes( return this; } /** + * + * *
      * Output only. List of Memcached nodes.
      * Refer to [Node][google.cloud.memcache.v1beta2.Instance.Node] message for more details.
      * 
* - * repeated .google.cloud.memcache.v1beta2.Instance.Node memcache_nodes = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.memcache.v1beta2.Instance.Node memcache_nodes = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder addMemcacheNodes(com.google.cloud.memcache.v1beta2.Instance.Node value) { if (memcacheNodesBuilder_ == null) { @@ -6496,12 +7235,16 @@ public Builder addMemcacheNodes(com.google.cloud.memcache.v1beta2.Instance.Node return this; } /** + * + * *
      * Output only. List of Memcached nodes.
      * Refer to [Node][google.cloud.memcache.v1beta2.Instance.Node] message for more details.
      * 
* - * repeated .google.cloud.memcache.v1beta2.Instance.Node memcache_nodes = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.memcache.v1beta2.Instance.Node memcache_nodes = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder addMemcacheNodes( int index, com.google.cloud.memcache.v1beta2.Instance.Node value) { @@ -6518,12 +7261,16 @@ public Builder addMemcacheNodes( return this; } /** + * + * *
      * Output only. List of Memcached nodes.
      * Refer to [Node][google.cloud.memcache.v1beta2.Instance.Node] message for more details.
      * 
* - * repeated .google.cloud.memcache.v1beta2.Instance.Node memcache_nodes = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.memcache.v1beta2.Instance.Node memcache_nodes = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder addMemcacheNodes( com.google.cloud.memcache.v1beta2.Instance.Node.Builder builderForValue) { @@ -6537,12 +7284,16 @@ public Builder addMemcacheNodes( return this; } /** + * + * *
      * Output only. List of Memcached nodes.
      * Refer to [Node][google.cloud.memcache.v1beta2.Instance.Node] message for more details.
      * 
* - * repeated .google.cloud.memcache.v1beta2.Instance.Node memcache_nodes = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.memcache.v1beta2.Instance.Node memcache_nodes = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder addMemcacheNodes( int index, com.google.cloud.memcache.v1beta2.Instance.Node.Builder builderForValue) { @@ -6556,19 +7307,22 @@ public Builder addMemcacheNodes( return this; } /** + * + * *
      * Output only. List of Memcached nodes.
      * Refer to [Node][google.cloud.memcache.v1beta2.Instance.Node] message for more details.
      * 
* - * repeated .google.cloud.memcache.v1beta2.Instance.Node memcache_nodes = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.memcache.v1beta2.Instance.Node memcache_nodes = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder addAllMemcacheNodes( java.lang.Iterable values) { if (memcacheNodesBuilder_ == null) { ensureMemcacheNodesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, memcacheNodes_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, memcacheNodes_); onChanged(); } else { memcacheNodesBuilder_.addAllMessages(values); @@ -6576,12 +7330,16 @@ public Builder addAllMemcacheNodes( return this; } /** + * + * *
      * Output only. List of Memcached nodes.
      * Refer to [Node][google.cloud.memcache.v1beta2.Instance.Node] message for more details.
      * 
* - * repeated .google.cloud.memcache.v1beta2.Instance.Node memcache_nodes = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.memcache.v1beta2.Instance.Node memcache_nodes = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder clearMemcacheNodes() { if (memcacheNodesBuilder_ == null) { @@ -6594,12 +7352,16 @@ public Builder clearMemcacheNodes() { return this; } /** + * + * *
      * Output only. List of Memcached nodes.
      * Refer to [Node][google.cloud.memcache.v1beta2.Instance.Node] message for more details.
      * 
* - * repeated .google.cloud.memcache.v1beta2.Instance.Node memcache_nodes = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.memcache.v1beta2.Instance.Node memcache_nodes = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder removeMemcacheNodes(int index) { if (memcacheNodesBuilder_ == null) { @@ -6612,42 +7374,55 @@ public Builder removeMemcacheNodes(int index) { return this; } /** + * + * *
      * Output only. List of Memcached nodes.
      * Refer to [Node][google.cloud.memcache.v1beta2.Instance.Node] message for more details.
      * 
* - * repeated .google.cloud.memcache.v1beta2.Instance.Node memcache_nodes = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.memcache.v1beta2.Instance.Node memcache_nodes = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public com.google.cloud.memcache.v1beta2.Instance.Node.Builder getMemcacheNodesBuilder( int index) { return getMemcacheNodesFieldBuilder().getBuilder(index); } /** + * + * *
      * Output only. List of Memcached nodes.
      * Refer to [Node][google.cloud.memcache.v1beta2.Instance.Node] message for more details.
      * 
* - * repeated .google.cloud.memcache.v1beta2.Instance.Node memcache_nodes = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.memcache.v1beta2.Instance.Node memcache_nodes = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public com.google.cloud.memcache.v1beta2.Instance.NodeOrBuilder getMemcacheNodesOrBuilder( int index) { if (memcacheNodesBuilder_ == null) { - return memcacheNodes_.get(index); } else { + return memcacheNodes_.get(index); + } else { return memcacheNodesBuilder_.getMessageOrBuilder(index); } } /** + * + * *
      * Output only. List of Memcached nodes.
      * Refer to [Node][google.cloud.memcache.v1beta2.Instance.Node] message for more details.
      * 
* - * repeated .google.cloud.memcache.v1beta2.Instance.Node memcache_nodes = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.memcache.v1beta2.Instance.Node memcache_nodes = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public java.util.List - getMemcacheNodesOrBuilderList() { + public java.util.List + getMemcacheNodesOrBuilderList() { if (memcacheNodesBuilder_ != null) { return memcacheNodesBuilder_.getMessageOrBuilderList(); } else { @@ -6655,48 +7430,66 @@ public com.google.cloud.memcache.v1beta2.Instance.NodeOrBuilder getMemcacheNodes } } /** + * + * *
      * Output only. List of Memcached nodes.
      * Refer to [Node][google.cloud.memcache.v1beta2.Instance.Node] message for more details.
      * 
* - * repeated .google.cloud.memcache.v1beta2.Instance.Node memcache_nodes = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.memcache.v1beta2.Instance.Node memcache_nodes = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public com.google.cloud.memcache.v1beta2.Instance.Node.Builder addMemcacheNodesBuilder() { - return getMemcacheNodesFieldBuilder().addBuilder( - com.google.cloud.memcache.v1beta2.Instance.Node.getDefaultInstance()); + return getMemcacheNodesFieldBuilder() + .addBuilder(com.google.cloud.memcache.v1beta2.Instance.Node.getDefaultInstance()); } /** + * + * *
      * Output only. List of Memcached nodes.
      * Refer to [Node][google.cloud.memcache.v1beta2.Instance.Node] message for more details.
      * 
* - * repeated .google.cloud.memcache.v1beta2.Instance.Node memcache_nodes = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.memcache.v1beta2.Instance.Node memcache_nodes = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public com.google.cloud.memcache.v1beta2.Instance.Node.Builder addMemcacheNodesBuilder( int index) { - return getMemcacheNodesFieldBuilder().addBuilder( - index, com.google.cloud.memcache.v1beta2.Instance.Node.getDefaultInstance()); + return getMemcacheNodesFieldBuilder() + .addBuilder(index, com.google.cloud.memcache.v1beta2.Instance.Node.getDefaultInstance()); } /** + * + * *
      * Output only. List of Memcached nodes.
      * Refer to [Node][google.cloud.memcache.v1beta2.Instance.Node] message for more details.
      * 
* - * repeated .google.cloud.memcache.v1beta2.Instance.Node memcache_nodes = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.memcache.v1beta2.Instance.Node memcache_nodes = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public java.util.List - getMemcacheNodesBuilderList() { + public java.util.List + getMemcacheNodesBuilderList() { return getMemcacheNodesFieldBuilder().getBuilderList(); } + private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.memcache.v1beta2.Instance.Node, com.google.cloud.memcache.v1beta2.Instance.Node.Builder, com.google.cloud.memcache.v1beta2.Instance.NodeOrBuilder> + com.google.cloud.memcache.v1beta2.Instance.Node, + com.google.cloud.memcache.v1beta2.Instance.Node.Builder, + com.google.cloud.memcache.v1beta2.Instance.NodeOrBuilder> getMemcacheNodesFieldBuilder() { if (memcacheNodesBuilder_ == null) { - memcacheNodesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.memcache.v1beta2.Instance.Node, com.google.cloud.memcache.v1beta2.Instance.Node.Builder, com.google.cloud.memcache.v1beta2.Instance.NodeOrBuilder>( + memcacheNodesBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.memcache.v1beta2.Instance.Node, + com.google.cloud.memcache.v1beta2.Instance.Node.Builder, + com.google.cloud.memcache.v1beta2.Instance.NodeOrBuilder>( memcacheNodes_, ((bitField0_ & 0x00000004) != 0), getParentForChildren(), @@ -6708,39 +7501,58 @@ public com.google.cloud.memcache.v1beta2.Instance.Node.Builder addMemcacheNodesB 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) { @@ -6756,14 +7568,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(); @@ -6774,17 +7589,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; } @@ -6796,11 +7615,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) { @@ -6814,48 +7637,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_; @@ -6863,39 +7702,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 the instance was updated.
      * 
* - * .google.protobuf.Timestamp update_time = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp update_time = 14 [(.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 the instance was updated.
      * 
* - * .google.protobuf.Timestamp update_time = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp update_time = 14 [(.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 the instance was updated.
      * 
* - * .google.protobuf.Timestamp update_time = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp update_time = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder setUpdateTime(com.google.protobuf.Timestamp value) { if (updateTimeBuilder_ == null) { @@ -6911,14 +7769,17 @@ public Builder setUpdateTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * Output only. The time the instance was updated.
      * 
* - * .google.protobuf.Timestamp update_time = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp update_time = 14 [(.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(); @@ -6929,17 +7790,21 @@ public Builder setUpdateTime( return this; } /** + * + * *
      * Output only. The time the instance was updated.
      * 
* - * .google.protobuf.Timestamp update_time = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp update_time = 14 [(.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; } @@ -6951,11 +7816,15 @@ public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * Output only. The time the instance was updated.
      * 
* - * .google.protobuf.Timestamp update_time = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp update_time = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder clearUpdateTime() { if (updateTimeBuilder_ == null) { @@ -6969,48 +7838,64 @@ public Builder clearUpdateTime() { return this; } /** + * + * *
      * Output only. The time the instance was updated.
      * 
* - * .google.protobuf.Timestamp update_time = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp update_time = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public com.google.protobuf.Timestamp.Builder getUpdateTimeBuilder() { - + onChanged(); return getUpdateTimeFieldBuilder().getBuilder(); } /** + * + * *
      * Output only. The time the instance was updated.
      * 
* - * .google.protobuf.Timestamp update_time = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp update_time = 14 [(.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 the instance was updated.
      * 
* - * .google.protobuf.Timestamp update_time = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp update_time = 14 [(.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_; @@ -7018,51 +7903,75 @@ public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { private int state_ = 0; /** + * + * *
      * Output only. The state of this Memcached instance.
      * 
* - * .google.cloud.memcache.v1beta2.Instance.State state = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.memcache.v1beta2.Instance.State state = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The enum numeric value on the wire for state. */ - @java.lang.Override public int getStateValue() { + @java.lang.Override + public int getStateValue() { return state_; } /** + * + * *
      * Output only. The state of this Memcached instance.
      * 
* - * .google.cloud.memcache.v1beta2.Instance.State state = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.memcache.v1beta2.Instance.State state = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @param value The enum numeric value on the wire for state to set. * @return This builder for chaining. */ public Builder setStateValue(int value) { - + state_ = value; onChanged(); return this; } /** + * + * *
      * Output only. The state of this Memcached instance.
      * 
* - * .google.cloud.memcache.v1beta2.Instance.State state = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.memcache.v1beta2.Instance.State state = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The state. */ @java.lang.Override public com.google.cloud.memcache.v1beta2.Instance.State getState() { @SuppressWarnings("deprecation") - com.google.cloud.memcache.v1beta2.Instance.State result = com.google.cloud.memcache.v1beta2.Instance.State.valueOf(state_); - return result == null ? com.google.cloud.memcache.v1beta2.Instance.State.UNRECOGNIZED : result; + com.google.cloud.memcache.v1beta2.Instance.State result = + com.google.cloud.memcache.v1beta2.Instance.State.valueOf(state_); + return result == null + ? com.google.cloud.memcache.v1beta2.Instance.State.UNRECOGNIZED + : result; } /** + * + * *
      * Output only. The state of this Memcached instance.
      * 
* - * .google.cloud.memcache.v1beta2.Instance.State state = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.memcache.v1beta2.Instance.State state = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @param value The state to set. * @return This builder for chaining. */ @@ -7070,21 +7979,26 @@ public Builder setState(com.google.cloud.memcache.v1beta2.Instance.State value) if (value == null) { throw new NullPointerException(); } - + state_ = value.getNumber(); onChanged(); return this; } /** + * + * *
      * Output only. The state of this Memcached instance.
      * 
* - * .google.cloud.memcache.v1beta2.Instance.State state = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.memcache.v1beta2.Instance.State state = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return This builder for chaining. */ public Builder clearState() { - + state_ = 0; onChanged(); return this; @@ -7092,6 +8006,8 @@ public Builder clearState() { private java.lang.Object memcacheFullVersion_ = ""; /** + * + * *
      * Output only. The full version of memcached server running on this instance.
      * System automatically determines the full memcached version for an instance
@@ -7100,13 +8016,13 @@ public Builder clearState() {
      * 
* * string memcache_full_version = 18 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The memcacheFullVersion. */ public java.lang.String getMemcacheFullVersion() { java.lang.Object ref = memcacheFullVersion_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); memcacheFullVersion_ = s; return s; @@ -7115,6 +8031,8 @@ public java.lang.String getMemcacheFullVersion() { } } /** + * + * *
      * Output only. The full version of memcached server running on this instance.
      * System automatically determines the full memcached version for an instance
@@ -7123,15 +8041,14 @@ public java.lang.String getMemcacheFullVersion() {
      * 
* * string memcache_full_version = 18 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for memcacheFullVersion. */ - public com.google.protobuf.ByteString - getMemcacheFullVersionBytes() { + public com.google.protobuf.ByteString getMemcacheFullVersionBytes() { java.lang.Object ref = memcacheFullVersion_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); memcacheFullVersion_ = b; return b; } else { @@ -7139,6 +8056,8 @@ public java.lang.String getMemcacheFullVersion() { } } /** + * + * *
      * Output only. The full version of memcached server running on this instance.
      * System automatically determines the full memcached version for an instance
@@ -7147,20 +8066,22 @@ public java.lang.String getMemcacheFullVersion() {
      * 
* * string memcache_full_version = 18 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @param value The memcacheFullVersion to set. * @return This builder for chaining. */ - public Builder setMemcacheFullVersion( - java.lang.String value) { + public Builder setMemcacheFullVersion(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + memcacheFullVersion_ = value; onChanged(); return this; } /** + * + * *
      * Output only. The full version of memcached server running on this instance.
      * System automatically determines the full memcached version for an instance
@@ -7169,15 +8090,18 @@ public Builder setMemcacheFullVersion(
      * 
* * string memcache_full_version = 18 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return This builder for chaining. */ public Builder clearMemcacheFullVersion() { - + memcacheFullVersion_ = getDefaultInstance().getMemcacheFullVersion(); onChanged(); return this; } /** + * + * *
      * Output only. The full version of memcached server running on this instance.
      * System automatically determines the full memcached version for an instance
@@ -7186,41 +8110,52 @@ public Builder clearMemcacheFullVersion() {
      * 
* * string memcache_full_version = 18 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @param value The bytes for memcacheFullVersion to set. * @return This builder for chaining. */ - public Builder setMemcacheFullVersionBytes( - com.google.protobuf.ByteString value) { + public Builder setMemcacheFullVersionBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + memcacheFullVersion_ = value; onChanged(); return this; } - private java.util.List instanceMessages_ = - java.util.Collections.emptyList(); + private java.util.List + instanceMessages_ = java.util.Collections.emptyList(); + private void ensureInstanceMessagesIsMutable() { if (!((bitField0_ & 0x00000008) != 0)) { - instanceMessages_ = new java.util.ArrayList(instanceMessages_); + instanceMessages_ = + new java.util.ArrayList( + instanceMessages_); bitField0_ |= 0x00000008; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.memcache.v1beta2.Instance.InstanceMessage, com.google.cloud.memcache.v1beta2.Instance.InstanceMessage.Builder, com.google.cloud.memcache.v1beta2.Instance.InstanceMessageOrBuilder> instanceMessagesBuilder_; + com.google.cloud.memcache.v1beta2.Instance.InstanceMessage, + com.google.cloud.memcache.v1beta2.Instance.InstanceMessage.Builder, + com.google.cloud.memcache.v1beta2.Instance.InstanceMessageOrBuilder> + instanceMessagesBuilder_; /** + * + * *
      * List of messages that describe the current state of the Memcached instance.
      * 
* - * repeated .google.cloud.memcache.v1beta2.Instance.InstanceMessage instance_messages = 19; + * + * repeated .google.cloud.memcache.v1beta2.Instance.InstanceMessage instance_messages = 19; + * */ - public java.util.List getInstanceMessagesList() { + public java.util.List + getInstanceMessagesList() { if (instanceMessagesBuilder_ == null) { return java.util.Collections.unmodifiableList(instanceMessages_); } else { @@ -7228,11 +8163,15 @@ public java.util.List * List of messages that describe the current state of the Memcached instance. *
* - * repeated .google.cloud.memcache.v1beta2.Instance.InstanceMessage instance_messages = 19; + * + * repeated .google.cloud.memcache.v1beta2.Instance.InstanceMessage instance_messages = 19; + * */ public int getInstanceMessagesCount() { if (instanceMessagesBuilder_ == null) { @@ -7242,13 +8181,18 @@ public int getInstanceMessagesCount() { } } /** + * + * *
      * List of messages that describe the current state of the Memcached instance.
      * 
* - * repeated .google.cloud.memcache.v1beta2.Instance.InstanceMessage instance_messages = 19; + * + * repeated .google.cloud.memcache.v1beta2.Instance.InstanceMessage instance_messages = 19; + * */ - public com.google.cloud.memcache.v1beta2.Instance.InstanceMessage getInstanceMessages(int index) { + public com.google.cloud.memcache.v1beta2.Instance.InstanceMessage getInstanceMessages( + int index) { if (instanceMessagesBuilder_ == null) { return instanceMessages_.get(index); } else { @@ -7256,11 +8200,15 @@ public com.google.cloud.memcache.v1beta2.Instance.InstanceMessage getInstanceMes } } /** + * + * *
      * List of messages that describe the current state of the Memcached instance.
      * 
* - * repeated .google.cloud.memcache.v1beta2.Instance.InstanceMessage instance_messages = 19; + * + * repeated .google.cloud.memcache.v1beta2.Instance.InstanceMessage instance_messages = 19; + * */ public Builder setInstanceMessages( int index, com.google.cloud.memcache.v1beta2.Instance.InstanceMessage value) { @@ -7277,14 +8225,19 @@ public Builder setInstanceMessages( return this; } /** + * + * *
      * List of messages that describe the current state of the Memcached instance.
      * 
* - * repeated .google.cloud.memcache.v1beta2.Instance.InstanceMessage instance_messages = 19; + * + * repeated .google.cloud.memcache.v1beta2.Instance.InstanceMessage instance_messages = 19; + * */ public Builder setInstanceMessages( - int index, com.google.cloud.memcache.v1beta2.Instance.InstanceMessage.Builder builderForValue) { + int index, + com.google.cloud.memcache.v1beta2.Instance.InstanceMessage.Builder builderForValue) { if (instanceMessagesBuilder_ == null) { ensureInstanceMessagesIsMutable(); instanceMessages_.set(index, builderForValue.build()); @@ -7295,13 +8248,18 @@ public Builder setInstanceMessages( return this; } /** + * + * *
      * List of messages that describe the current state of the Memcached instance.
      * 
* - * repeated .google.cloud.memcache.v1beta2.Instance.InstanceMessage instance_messages = 19; + * + * repeated .google.cloud.memcache.v1beta2.Instance.InstanceMessage instance_messages = 19; + * */ - public Builder addInstanceMessages(com.google.cloud.memcache.v1beta2.Instance.InstanceMessage value) { + public Builder addInstanceMessages( + com.google.cloud.memcache.v1beta2.Instance.InstanceMessage value) { if (instanceMessagesBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -7315,11 +8273,15 @@ public Builder addInstanceMessages(com.google.cloud.memcache.v1beta2.Instance.In return this; } /** + * + * *
      * List of messages that describe the current state of the Memcached instance.
      * 
* - * repeated .google.cloud.memcache.v1beta2.Instance.InstanceMessage instance_messages = 19; + * + * repeated .google.cloud.memcache.v1beta2.Instance.InstanceMessage instance_messages = 19; + * */ public Builder addInstanceMessages( int index, com.google.cloud.memcache.v1beta2.Instance.InstanceMessage value) { @@ -7336,11 +8298,15 @@ public Builder addInstanceMessages( return this; } /** + * + * *
      * List of messages that describe the current state of the Memcached instance.
      * 
* - * repeated .google.cloud.memcache.v1beta2.Instance.InstanceMessage instance_messages = 19; + * + * repeated .google.cloud.memcache.v1beta2.Instance.InstanceMessage instance_messages = 19; + * */ public Builder addInstanceMessages( com.google.cloud.memcache.v1beta2.Instance.InstanceMessage.Builder builderForValue) { @@ -7354,14 +8320,19 @@ public Builder addInstanceMessages( return this; } /** + * + * *
      * List of messages that describe the current state of the Memcached instance.
      * 
* - * repeated .google.cloud.memcache.v1beta2.Instance.InstanceMessage instance_messages = 19; + * + * repeated .google.cloud.memcache.v1beta2.Instance.InstanceMessage instance_messages = 19; + * */ public Builder addInstanceMessages( - int index, com.google.cloud.memcache.v1beta2.Instance.InstanceMessage.Builder builderForValue) { + int index, + com.google.cloud.memcache.v1beta2.Instance.InstanceMessage.Builder builderForValue) { if (instanceMessagesBuilder_ == null) { ensureInstanceMessagesIsMutable(); instanceMessages_.add(index, builderForValue.build()); @@ -7372,18 +8343,22 @@ public Builder addInstanceMessages( return this; } /** + * + * *
      * List of messages that describe the current state of the Memcached instance.
      * 
* - * repeated .google.cloud.memcache.v1beta2.Instance.InstanceMessage instance_messages = 19; + * + * repeated .google.cloud.memcache.v1beta2.Instance.InstanceMessage instance_messages = 19; + * */ public Builder addAllInstanceMessages( - java.lang.Iterable values) { + java.lang.Iterable + values) { if (instanceMessagesBuilder_ == null) { ensureInstanceMessagesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, instanceMessages_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, instanceMessages_); onChanged(); } else { instanceMessagesBuilder_.addAllMessages(values); @@ -7391,11 +8366,15 @@ public Builder addAllInstanceMessages( return this; } /** + * + * *
      * List of messages that describe the current state of the Memcached instance.
      * 
* - * repeated .google.cloud.memcache.v1beta2.Instance.InstanceMessage instance_messages = 19; + * + * repeated .google.cloud.memcache.v1beta2.Instance.InstanceMessage instance_messages = 19; + * */ public Builder clearInstanceMessages() { if (instanceMessagesBuilder_ == null) { @@ -7408,11 +8387,15 @@ public Builder clearInstanceMessages() { return this; } /** + * + * *
      * List of messages that describe the current state of the Memcached instance.
      * 
* - * repeated .google.cloud.memcache.v1beta2.Instance.InstanceMessage instance_messages = 19; + * + * repeated .google.cloud.memcache.v1beta2.Instance.InstanceMessage instance_messages = 19; + * */ public Builder removeInstanceMessages(int index) { if (instanceMessagesBuilder_ == null) { @@ -7425,39 +8408,53 @@ public Builder removeInstanceMessages(int index) { return this; } /** + * + * *
      * List of messages that describe the current state of the Memcached instance.
      * 
* - * repeated .google.cloud.memcache.v1beta2.Instance.InstanceMessage instance_messages = 19; + * + * repeated .google.cloud.memcache.v1beta2.Instance.InstanceMessage instance_messages = 19; + * */ - public com.google.cloud.memcache.v1beta2.Instance.InstanceMessage.Builder getInstanceMessagesBuilder( - int index) { + public com.google.cloud.memcache.v1beta2.Instance.InstanceMessage.Builder + getInstanceMessagesBuilder(int index) { return getInstanceMessagesFieldBuilder().getBuilder(index); } /** + * + * *
      * List of messages that describe the current state of the Memcached instance.
      * 
* - * repeated .google.cloud.memcache.v1beta2.Instance.InstanceMessage instance_messages = 19; + * + * repeated .google.cloud.memcache.v1beta2.Instance.InstanceMessage instance_messages = 19; + * */ - public com.google.cloud.memcache.v1beta2.Instance.InstanceMessageOrBuilder getInstanceMessagesOrBuilder( - int index) { + public com.google.cloud.memcache.v1beta2.Instance.InstanceMessageOrBuilder + getInstanceMessagesOrBuilder(int index) { if (instanceMessagesBuilder_ == null) { - return instanceMessages_.get(index); } else { + return instanceMessages_.get(index); + } else { return instanceMessagesBuilder_.getMessageOrBuilder(index); } } /** + * + * *
      * List of messages that describe the current state of the Memcached instance.
      * 
* - * repeated .google.cloud.memcache.v1beta2.Instance.InstanceMessage instance_messages = 19; + * + * repeated .google.cloud.memcache.v1beta2.Instance.InstanceMessage instance_messages = 19; + * */ - public java.util.List - getInstanceMessagesOrBuilderList() { + public java.util.List< + ? extends com.google.cloud.memcache.v1beta2.Instance.InstanceMessageOrBuilder> + getInstanceMessagesOrBuilderList() { if (instanceMessagesBuilder_ != null) { return instanceMessagesBuilder_.getMessageOrBuilderList(); } else { @@ -7465,45 +8462,67 @@ public com.google.cloud.memcache.v1beta2.Instance.InstanceMessageOrBuilder getIn } } /** + * + * *
      * List of messages that describe the current state of the Memcached instance.
      * 
* - * repeated .google.cloud.memcache.v1beta2.Instance.InstanceMessage instance_messages = 19; + * + * repeated .google.cloud.memcache.v1beta2.Instance.InstanceMessage instance_messages = 19; + * */ - public com.google.cloud.memcache.v1beta2.Instance.InstanceMessage.Builder addInstanceMessagesBuilder() { - return getInstanceMessagesFieldBuilder().addBuilder( - com.google.cloud.memcache.v1beta2.Instance.InstanceMessage.getDefaultInstance()); + public com.google.cloud.memcache.v1beta2.Instance.InstanceMessage.Builder + addInstanceMessagesBuilder() { + return getInstanceMessagesFieldBuilder() + .addBuilder( + com.google.cloud.memcache.v1beta2.Instance.InstanceMessage.getDefaultInstance()); } /** + * + * *
      * List of messages that describe the current state of the Memcached instance.
      * 
* - * repeated .google.cloud.memcache.v1beta2.Instance.InstanceMessage instance_messages = 19; + * + * repeated .google.cloud.memcache.v1beta2.Instance.InstanceMessage instance_messages = 19; + * */ - public com.google.cloud.memcache.v1beta2.Instance.InstanceMessage.Builder addInstanceMessagesBuilder( - int index) { - return getInstanceMessagesFieldBuilder().addBuilder( - index, com.google.cloud.memcache.v1beta2.Instance.InstanceMessage.getDefaultInstance()); + public com.google.cloud.memcache.v1beta2.Instance.InstanceMessage.Builder + addInstanceMessagesBuilder(int index) { + return getInstanceMessagesFieldBuilder() + .addBuilder( + index, + com.google.cloud.memcache.v1beta2.Instance.InstanceMessage.getDefaultInstance()); } /** + * + * *
      * List of messages that describe the current state of the Memcached instance.
      * 
* - * repeated .google.cloud.memcache.v1beta2.Instance.InstanceMessage instance_messages = 19; + * + * repeated .google.cloud.memcache.v1beta2.Instance.InstanceMessage instance_messages = 19; + * */ - public java.util.List - getInstanceMessagesBuilderList() { + public java.util.List + getInstanceMessagesBuilderList() { return getInstanceMessagesFieldBuilder().getBuilderList(); } + private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.memcache.v1beta2.Instance.InstanceMessage, com.google.cloud.memcache.v1beta2.Instance.InstanceMessage.Builder, com.google.cloud.memcache.v1beta2.Instance.InstanceMessageOrBuilder> + com.google.cloud.memcache.v1beta2.Instance.InstanceMessage, + com.google.cloud.memcache.v1beta2.Instance.InstanceMessage.Builder, + com.google.cloud.memcache.v1beta2.Instance.InstanceMessageOrBuilder> getInstanceMessagesFieldBuilder() { if (instanceMessagesBuilder_ == null) { - instanceMessagesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.memcache.v1beta2.Instance.InstanceMessage, com.google.cloud.memcache.v1beta2.Instance.InstanceMessage.Builder, com.google.cloud.memcache.v1beta2.Instance.InstanceMessageOrBuilder>( + instanceMessagesBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.memcache.v1beta2.Instance.InstanceMessage, + com.google.cloud.memcache.v1beta2.Instance.InstanceMessage.Builder, + com.google.cloud.memcache.v1beta2.Instance.InstanceMessageOrBuilder>( instanceMessages_, ((bitField0_ & 0x00000008) != 0), getParentForChildren(), @@ -7515,18 +8534,20 @@ public com.google.cloud.memcache.v1beta2.Instance.InstanceMessage.Builder addIns private java.lang.Object discoveryEndpoint_ = ""; /** + * + * *
      * Output only. Endpoint for the Discovery API.
      * 
* * string discovery_endpoint = 20 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The discoveryEndpoint. */ public java.lang.String getDiscoveryEndpoint() { java.lang.Object ref = discoveryEndpoint_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); discoveryEndpoint_ = s; return s; @@ -7535,20 +8556,21 @@ public java.lang.String getDiscoveryEndpoint() { } } /** + * + * *
      * Output only. Endpoint for the Discovery API.
      * 
* * string discovery_endpoint = 20 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for discoveryEndpoint. */ - public com.google.protobuf.ByteString - getDiscoveryEndpointBytes() { + public com.google.protobuf.ByteString getDiscoveryEndpointBytes() { java.lang.Object ref = discoveryEndpoint_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); discoveryEndpoint_ = b; return b; } else { @@ -7556,66 +8578,76 @@ public java.lang.String getDiscoveryEndpoint() { } } /** + * + * *
      * Output only. Endpoint for the Discovery API.
      * 
* * string discovery_endpoint = 20 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @param value The discoveryEndpoint to set. * @return This builder for chaining. */ - public Builder setDiscoveryEndpoint( - java.lang.String value) { + public Builder setDiscoveryEndpoint(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + discoveryEndpoint_ = value; onChanged(); return this; } /** + * + * *
      * Output only. Endpoint for the Discovery API.
      * 
* * string discovery_endpoint = 20 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return This builder for chaining. */ public Builder clearDiscoveryEndpoint() { - + discoveryEndpoint_ = getDefaultInstance().getDiscoveryEndpoint(); onChanged(); return this; } /** + * + * *
      * Output only. Endpoint for the Discovery API.
      * 
* * string discovery_endpoint = 20 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @param value The bytes for discoveryEndpoint to set. * @return This builder for chaining. */ - public Builder setDiscoveryEndpointBytes( - com.google.protobuf.ByteString value) { + public Builder setDiscoveryEndpointBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + discoveryEndpoint_ = value; onChanged(); return this; } - private boolean updateAvailable_ ; + private boolean updateAvailable_; /** + * + * *
      * Output only. Returns true if there is an update waiting to be applied
      * 
* * bool update_available = 21 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The updateAvailable. */ @java.lang.Override @@ -7623,37 +8655,43 @@ public boolean getUpdateAvailable() { return updateAvailable_; } /** + * + * *
      * Output only. Returns true if there is an update waiting to be applied
      * 
* * bool update_available = 21 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @param value The updateAvailable to set. * @return This builder for chaining. */ public Builder setUpdateAvailable(boolean value) { - + updateAvailable_ = value; onChanged(); return this; } /** + * + * *
      * Output only. Returns true if there is an update waiting to be applied
      * 
* * bool update_available = 21 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return This builder for chaining. */ public Builder clearUpdateAvailable() { - + updateAvailable_ = false; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -7663,12 +8701,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.memcache.v1beta2.Instance) } // @@protoc_insertion_point(class_scope:google.cloud.memcache.v1beta2.Instance) private static final com.google.cloud.memcache.v1beta2.Instance DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.memcache.v1beta2.Instance(); } @@ -7677,16 +8715,16 @@ public static com.google.cloud.memcache.v1beta2.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; @@ -7701,6 +8739,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.memcache.v1beta2.Instance getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1beta2/proto-google-cloud-memcache-v1beta2/src/main/java/com/google/cloud/memcache/v1beta2/InstanceName.java b/proto-google-cloud-memcache-v1beta2/src/main/java/com/google/cloud/memcache/v1beta2/InstanceName.java similarity index 100% rename from owl-bot-staging/v1beta2/proto-google-cloud-memcache-v1beta2/src/main/java/com/google/cloud/memcache/v1beta2/InstanceName.java rename to proto-google-cloud-memcache-v1beta2/src/main/java/com/google/cloud/memcache/v1beta2/InstanceName.java diff --git a/owl-bot-staging/v1beta2/proto-google-cloud-memcache-v1beta2/src/main/java/com/google/cloud/memcache/v1beta2/InstanceOrBuilder.java b/proto-google-cloud-memcache-v1beta2/src/main/java/com/google/cloud/memcache/v1beta2/InstanceOrBuilder.java similarity index 78% rename from owl-bot-staging/v1beta2/proto-google-cloud-memcache-v1beta2/src/main/java/com/google/cloud/memcache/v1beta2/InstanceOrBuilder.java rename to proto-google-cloud-memcache-v1beta2/src/main/java/com/google/cloud/memcache/v1beta2/InstanceOrBuilder.java index 6703dc22..70d316ce 100644 --- a/owl-bot-staging/v1beta2/proto-google-cloud-memcache-v1beta2/src/main/java/com/google/cloud/memcache/v1beta2/InstanceOrBuilder.java +++ b/proto-google-cloud-memcache-v1beta2/src/main/java/com/google/cloud/memcache/v1beta2/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/memcache/v1beta2/cloud_memcache.proto package com.google.cloud.memcache.v1beta2; -public interface InstanceOrBuilder extends +public interface InstanceOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.memcache.v1beta2.Instance) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Required. Unique name of the resource in this scope including project and
    * location using the form:
@@ -19,10 +37,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:
@@ -34,34 +55,41 @@ 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(); /** + * + * *
    * User provided name for the instance, which is only used for display
    * purposes. Cannot be more than 80 characters.
    * 
* * string display_name = 2; + * * @return The displayName. */ java.lang.String getDisplayName(); /** + * + * *
    * User provided name for the instance, which is only used for display
    * purposes. Cannot be more than 80 characters.
    * 
* * 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.
    * Refer to cloud documentation on labels for more details.
@@ -72,6 +100,8 @@ public interface InstanceOrBuilder extends
    */
   int getLabelsCount();
   /**
+   *
+   *
    * 
    * Resource labels to represent user-provided metadata.
    * Refer to cloud documentation on labels for more details.
@@ -80,15 +110,13 @@ public interface InstanceOrBuilder extends
    *
    * 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.
    * Refer to cloud documentation on labels for more details.
@@ -97,9 +125,10 @@ boolean containsLabels(
    *
    * map<string, string> labels = 3;
    */
-  java.util.Map
-  getLabelsMap();
+  java.util.Map getLabelsMap();
   /**
+   *
+   *
    * 
    * Resource labels to represent user-provided metadata.
    * Refer to cloud documentation on labels for more details.
@@ -110,11 +139,13 @@ 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.
    * Refer to cloud documentation on labels for more details.
@@ -123,11 +154,11 @@ java.lang.String getLabelsOrDefault(
    *
    * map<string, string> labels = 3;
    */
-
-  java.lang.String getLabelsOrThrow(
-      java.lang.String key);
+  java.lang.String getLabelsOrThrow(java.lang.String key);
 
   /**
+   *
+   *
    * 
    * The full name of the Google Compute Engine
    * [network](https://cloud.google.com/vpc/docs/vpc) to which the
@@ -136,10 +167,13 @@ java.lang.String getLabelsOrThrow(
    * 
* * string authorized_network = 4; + * * @return The authorizedNetwork. */ java.lang.String getAuthorizedNetwork(); /** + * + * *
    * The full name of the Google Compute Engine
    * [network](https://cloud.google.com/vpc/docs/vpc) to which the
@@ -148,12 +182,14 @@ java.lang.String getLabelsOrThrow(
    * 
* * string authorized_network = 4; + * * @return The bytes for authorizedNetwork. */ - com.google.protobuf.ByteString - getAuthorizedNetworkBytes(); + com.google.protobuf.ByteString getAuthorizedNetworkBytes(); /** + * + * *
    * Zones in which Memcached nodes should be provisioned.
    * Memcached nodes will be equally distributed across these zones. If not
@@ -162,11 +198,13 @@ java.lang.String getLabelsOrThrow(
    * 
* * repeated string zones = 5; + * * @return A list containing the zones. */ - java.util.List - getZonesList(); + java.util.List getZonesList(); /** + * + * *
    * Zones in which Memcached nodes should be provisioned.
    * Memcached nodes will be equally distributed across these zones. If not
@@ -175,10 +213,13 @@ java.lang.String getLabelsOrThrow(
    * 
* * repeated string zones = 5; + * * @return The count of zones. */ int getZonesCount(); /** + * + * *
    * Zones in which Memcached nodes should be provisioned.
    * Memcached nodes will be equally distributed across these zones. If not
@@ -187,11 +228,14 @@ java.lang.String getLabelsOrThrow(
    * 
* * repeated string zones = 5; + * * @param index The index of the element to return. * @return The zones at the given index. */ java.lang.String getZones(int index); /** + * + * *
    * Zones in which Memcached nodes should be provisioned.
    * Memcached nodes will be equally distributed across these zones. If not
@@ -200,50 +244,69 @@ java.lang.String getLabelsOrThrow(
    * 
* * repeated string zones = 5; + * * @param index The index of the value to return. * @return The bytes of the zones at the given index. */ - com.google.protobuf.ByteString - getZonesBytes(int index); + com.google.protobuf.ByteString getZonesBytes(int index); /** + * + * *
    * Required. Number of nodes in the Memcached instance.
    * 
* * int32 node_count = 6 [(.google.api.field_behavior) = REQUIRED]; + * * @return The nodeCount. */ int getNodeCount(); /** + * + * *
    * Required. Configuration for Memcached nodes.
    * 
* - * .google.cloud.memcache.v1beta2.Instance.NodeConfig node_config = 7 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.memcache.v1beta2.Instance.NodeConfig node_config = 7 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the nodeConfig field is set. */ boolean hasNodeConfig(); /** + * + * *
    * Required. Configuration for Memcached nodes.
    * 
* - * .google.cloud.memcache.v1beta2.Instance.NodeConfig node_config = 7 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.memcache.v1beta2.Instance.NodeConfig node_config = 7 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The nodeConfig. */ com.google.cloud.memcache.v1beta2.Instance.NodeConfig getNodeConfig(); /** + * + * *
    * Required. Configuration for Memcached nodes.
    * 
* - * .google.cloud.memcache.v1beta2.Instance.NodeConfig node_config = 7 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.memcache.v1beta2.Instance.NodeConfig node_config = 7 [(.google.api.field_behavior) = REQUIRED]; + * */ com.google.cloud.memcache.v1beta2.Instance.NodeConfigOrBuilder getNodeConfigOrBuilder(); /** + * + * *
    * The major version of Memcached software.
    * If not provided, latest supported version will be used. Currently the
@@ -253,10 +316,13 @@ java.lang.String getLabelsOrThrow(
    * 
* * .google.cloud.memcache.v1beta2.MemcacheVersion memcache_version = 9; + * * @return The enum numeric value on the wire for memcacheVersion. */ int getMemcacheVersionValue(); /** + * + * *
    * The major version of Memcached software.
    * If not provided, latest supported version will be used. Currently the
@@ -266,31 +332,40 @@ java.lang.String getLabelsOrThrow(
    * 
* * .google.cloud.memcache.v1beta2.MemcacheVersion memcache_version = 9; + * * @return The memcacheVersion. */ com.google.cloud.memcache.v1beta2.MemcacheVersion getMemcacheVersion(); /** + * + * *
    * Optional: User defined parameters to apply to the memcached process
    * on each node.
    * 
* * .google.cloud.memcache.v1beta2.MemcacheParameters parameters = 11; + * * @return Whether the parameters field is set. */ boolean hasParameters(); /** + * + * *
    * Optional: User defined parameters to apply to the memcached process
    * on each node.
    * 
* * .google.cloud.memcache.v1beta2.MemcacheParameters parameters = 11; + * * @return The parameters. */ com.google.cloud.memcache.v1beta2.MemcacheParameters getParameters(); /** + * + * *
    * Optional: User defined parameters to apply to the memcached process
    * on each node.
@@ -301,128 +376,180 @@ java.lang.String getLabelsOrThrow(
   com.google.cloud.memcache.v1beta2.MemcacheParametersOrBuilder getParametersOrBuilder();
 
   /**
+   *
+   *
    * 
    * Output only. List of Memcached nodes.
    * Refer to [Node][google.cloud.memcache.v1beta2.Instance.Node] message for more details.
    * 
* - * repeated .google.cloud.memcache.v1beta2.Instance.Node memcache_nodes = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.memcache.v1beta2.Instance.Node memcache_nodes = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - java.util.List - getMemcacheNodesList(); + java.util.List getMemcacheNodesList(); /** + * + * *
    * Output only. List of Memcached nodes.
    * Refer to [Node][google.cloud.memcache.v1beta2.Instance.Node] message for more details.
    * 
* - * repeated .google.cloud.memcache.v1beta2.Instance.Node memcache_nodes = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.memcache.v1beta2.Instance.Node memcache_nodes = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ com.google.cloud.memcache.v1beta2.Instance.Node getMemcacheNodes(int index); /** + * + * *
    * Output only. List of Memcached nodes.
    * Refer to [Node][google.cloud.memcache.v1beta2.Instance.Node] message for more details.
    * 
* - * repeated .google.cloud.memcache.v1beta2.Instance.Node memcache_nodes = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.memcache.v1beta2.Instance.Node memcache_nodes = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ int getMemcacheNodesCount(); /** + * + * *
    * Output only. List of Memcached nodes.
    * Refer to [Node][google.cloud.memcache.v1beta2.Instance.Node] message for more details.
    * 
* - * repeated .google.cloud.memcache.v1beta2.Instance.Node memcache_nodes = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.memcache.v1beta2.Instance.Node memcache_nodes = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - java.util.List + java.util.List getMemcacheNodesOrBuilderList(); /** + * + * *
    * Output only. List of Memcached nodes.
    * Refer to [Node][google.cloud.memcache.v1beta2.Instance.Node] message for more details.
    * 
* - * repeated .google.cloud.memcache.v1beta2.Instance.Node memcache_nodes = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.memcache.v1beta2.Instance.Node memcache_nodes = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - com.google.cloud.memcache.v1beta2.Instance.NodeOrBuilder getMemcacheNodesOrBuilder( - int index); + com.google.cloud.memcache.v1beta2.Instance.NodeOrBuilder getMemcacheNodesOrBuilder(int index); /** + * + * *
    * 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 time the instance was updated.
    * 
* - * .google.protobuf.Timestamp update_time = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp update_time = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the updateTime field is set. */ boolean hasUpdateTime(); /** + * + * *
    * Output only. The time the instance was updated.
    * 
* - * .google.protobuf.Timestamp update_time = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp update_time = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The updateTime. */ com.google.protobuf.Timestamp getUpdateTime(); /** + * + * *
    * Output only. The time the instance was updated.
    * 
* - * .google.protobuf.Timestamp update_time = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp update_time = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder(); /** + * + * *
    * Output only. The state of this Memcached instance.
    * 
* - * .google.cloud.memcache.v1beta2.Instance.State state = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.memcache.v1beta2.Instance.State state = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The enum numeric value on the wire for state. */ int getStateValue(); /** + * + * *
    * Output only. The state of this Memcached instance.
    * 
* - * .google.cloud.memcache.v1beta2.Instance.State state = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.memcache.v1beta2.Instance.State state = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The state. */ com.google.cloud.memcache.v1beta2.Instance.State getState(); /** + * + * *
    * Output only. The full version of memcached server running on this instance.
    * System automatically determines the full memcached version for an instance
@@ -431,10 +558,13 @@ com.google.cloud.memcache.v1beta2.Instance.NodeOrBuilder getMemcacheNodesOrBuild
    * 
* * string memcache_full_version = 18 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The memcacheFullVersion. */ java.lang.String getMemcacheFullVersion(); /** + * + * *
    * Output only. The full version of memcached server running on this instance.
    * System automatically determines the full memcached version for an instance
@@ -443,81 +573,104 @@ com.google.cloud.memcache.v1beta2.Instance.NodeOrBuilder getMemcacheNodesOrBuild
    * 
* * string memcache_full_version = 18 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for memcacheFullVersion. */ - com.google.protobuf.ByteString - getMemcacheFullVersionBytes(); + com.google.protobuf.ByteString getMemcacheFullVersionBytes(); /** + * + * *
    * List of messages that describe the current state of the Memcached instance.
    * 
* - * repeated .google.cloud.memcache.v1beta2.Instance.InstanceMessage instance_messages = 19; + * repeated .google.cloud.memcache.v1beta2.Instance.InstanceMessage instance_messages = 19; + * */ - java.util.List + java.util.List getInstanceMessagesList(); /** + * + * *
    * List of messages that describe the current state of the Memcached instance.
    * 
* - * repeated .google.cloud.memcache.v1beta2.Instance.InstanceMessage instance_messages = 19; + * repeated .google.cloud.memcache.v1beta2.Instance.InstanceMessage instance_messages = 19; + * */ com.google.cloud.memcache.v1beta2.Instance.InstanceMessage getInstanceMessages(int index); /** + * + * *
    * List of messages that describe the current state of the Memcached instance.
    * 
* - * repeated .google.cloud.memcache.v1beta2.Instance.InstanceMessage instance_messages = 19; + * repeated .google.cloud.memcache.v1beta2.Instance.InstanceMessage instance_messages = 19; + * */ int getInstanceMessagesCount(); /** + * + * *
    * List of messages that describe the current state of the Memcached instance.
    * 
* - * repeated .google.cloud.memcache.v1beta2.Instance.InstanceMessage instance_messages = 19; + * repeated .google.cloud.memcache.v1beta2.Instance.InstanceMessage instance_messages = 19; + * */ - java.util.List + java.util.List getInstanceMessagesOrBuilderList(); /** + * + * *
    * List of messages that describe the current state of the Memcached instance.
    * 
* - * repeated .google.cloud.memcache.v1beta2.Instance.InstanceMessage instance_messages = 19; + * repeated .google.cloud.memcache.v1beta2.Instance.InstanceMessage instance_messages = 19; + * */ com.google.cloud.memcache.v1beta2.Instance.InstanceMessageOrBuilder getInstanceMessagesOrBuilder( int index); /** + * + * *
    * Output only. Endpoint for the Discovery API.
    * 
* * string discovery_endpoint = 20 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The discoveryEndpoint. */ java.lang.String getDiscoveryEndpoint(); /** + * + * *
    * Output only. Endpoint for the Discovery API.
    * 
* * string discovery_endpoint = 20 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for discoveryEndpoint. */ - com.google.protobuf.ByteString - getDiscoveryEndpointBytes(); + com.google.protobuf.ByteString getDiscoveryEndpointBytes(); /** + * + * *
    * Output only. Returns true if there is an update waiting to be applied
    * 
* * bool update_available = 21 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The updateAvailable. */ boolean getUpdateAvailable(); diff --git a/owl-bot-staging/v1beta2/proto-google-cloud-memcache-v1beta2/src/main/java/com/google/cloud/memcache/v1beta2/ListInstancesRequest.java b/proto-google-cloud-memcache-v1beta2/src/main/java/com/google/cloud/memcache/v1beta2/ListInstancesRequest.java similarity index 72% rename from owl-bot-staging/v1beta2/proto-google-cloud-memcache-v1beta2/src/main/java/com/google/cloud/memcache/v1beta2/ListInstancesRequest.java rename to proto-google-cloud-memcache-v1beta2/src/main/java/com/google/cloud/memcache/v1beta2/ListInstancesRequest.java index 24b21b3b..e9447e92 100644 --- a/owl-bot-staging/v1beta2/proto-google-cloud-memcache-v1beta2/src/main/java/com/google/cloud/memcache/v1beta2/ListInstancesRequest.java +++ b/proto-google-cloud-memcache-v1beta2/src/main/java/com/google/cloud/memcache/v1beta2/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/memcache/v1beta2/cloud_memcache.proto package com.google.cloud.memcache.v1beta2; /** + * + * *
  * Request for [ListInstances][google.cloud.memcache.v1beta2.CloudMemcache.ListInstances].
  * 
* * Protobuf type {@code google.cloud.memcache.v1beta2.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.memcache.v1beta2.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_ = ""; @@ -28,16 +46,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) @@ -56,42 +73,46 @@ 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; - } - case 34: { - java.lang.String s = input.readStringRequireUtf8(); + pageToken_ = s; + break; + } + case 34: + { + java.lang.String s = input.readStringRequireUtf8(); - filter_ = s; - break; - } - case 42: { - java.lang.String s = input.readStringRequireUtf8(); + filter_ = s; + break; + } + case 42: + { + java.lang.String s = input.readStringRequireUtf8(); - orderBy_ = s; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + orderBy_ = s; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -99,36 +120,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.memcache.v1beta2.CloudMemcacheProto.internal_static_google_cloud_memcache_v1beta2_ListInstancesRequest_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.memcache.v1beta2.CloudMemcacheProto + .internal_static_google_cloud_memcache_v1beta2_ListInstancesRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.memcache.v1beta2.CloudMemcacheProto.internal_static_google_cloud_memcache_v1beta2_ListInstancesRequest_fieldAccessorTable + return com.google.cloud.memcache.v1beta2.CloudMemcacheProto + .internal_static_google_cloud_memcache_v1beta2_ListInstancesRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.memcache.v1beta2.ListInstancesRequest.class, com.google.cloud.memcache.v1beta2.ListInstancesRequest.Builder.class); + com.google.cloud.memcache.v1beta2.ListInstancesRequest.class, + com.google.cloud.memcache.v1beta2.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 @@ -137,31 +165,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 { @@ -172,6 +202,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.
@@ -182,6 +214,7 @@ public java.lang.String getParent() {
    * 
* * int32 page_size = 2; + * * @return The pageSize. */ @java.lang.Override @@ -192,11 +225,14 @@ 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 List request, if any.
    * 
* * string page_token = 3; + * * @return The pageToken. */ @java.lang.Override @@ -205,29 +241,29 @@ 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 List 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 { @@ -238,12 +274,15 @@ public java.lang.String getPageToken() { public static final int FILTER_FIELD_NUMBER = 4; private volatile java.lang.Object filter_; /** + * + * *
    * List filter. For example, exclude all Memcached instances with name as
    * my-instance by specifying `"name != my-instance"`.
    * 
* * string filter = 4; + * * @return The filter. */ @java.lang.Override @@ -252,30 +291,30 @@ public java.lang.String getFilter() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); filter_ = s; return s; } } /** + * + * *
    * List filter. For example, exclude all Memcached instances with name as
    * my-instance by specifying `"name != my-instance"`.
    * 
* * string filter = 4; + * * @return The bytes for filter. */ @java.lang.Override - public com.google.protobuf.ByteString - getFilterBytes() { + public com.google.protobuf.ByteString getFilterBytes() { java.lang.Object ref = filter_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); filter_ = b; return b; } else { @@ -286,11 +325,14 @@ public java.lang.String getFilter() { public static final int ORDER_BY_FIELD_NUMBER = 5; private volatile java.lang.Object orderBy_; /** + * + * *
    * Sort results. Supported values are "name", "name desc" or "" (unsorted).
    * 
* * string order_by = 5; + * * @return The orderBy. */ @java.lang.Override @@ -299,29 +341,29 @@ public java.lang.String getOrderBy() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); orderBy_ = s; return s; } } /** + * + * *
    * Sort results. Supported values are "name", "name desc" or "" (unsorted).
    * 
* * string order_by = 5; + * * @return The bytes for orderBy. */ @java.lang.Override - public com.google.protobuf.ByteString - getOrderByBytes() { + public com.google.protobuf.ByteString getOrderByBytes() { java.lang.Object ref = orderBy_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); orderBy_ = b; return b; } else { @@ -330,6 +372,7 @@ public java.lang.String getOrderBy() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -341,8 +384,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); } @@ -371,8 +413,7 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); } if (pageSize_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(2, pageSize_); + size += com.google.protobuf.CodedOutputStream.computeInt32Size(2, pageSize_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, pageToken_); @@ -391,23 +432,19 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.memcache.v1beta2.ListInstancesRequest)) { return super.equals(obj); } - com.google.cloud.memcache.v1beta2.ListInstancesRequest other = (com.google.cloud.memcache.v1beta2.ListInstancesRequest) obj; - - if (!getParent() - .equals(other.getParent())) return false; - if (getPageSize() - != other.getPageSize()) return false; - if (!getPageToken() - .equals(other.getPageToken())) return false; - if (!getFilter() - .equals(other.getFilter())) return false; - if (!getOrderBy() - .equals(other.getOrderBy())) return false; + com.google.cloud.memcache.v1beta2.ListInstancesRequest other = + (com.google.cloud.memcache.v1beta2.ListInstancesRequest) obj; + + if (!getParent().equals(other.getParent())) return false; + if (getPageSize() != other.getPageSize()) return false; + if (!getPageToken().equals(other.getPageToken())) return false; + if (!getFilter().equals(other.getFilter())) return false; + if (!getOrderBy().equals(other.getOrderBy())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -435,117 +472,127 @@ public int hashCode() { } public static com.google.cloud.memcache.v1beta2.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.memcache.v1beta2.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.memcache.v1beta2.ListInstancesRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.memcache.v1beta2.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.memcache.v1beta2.ListInstancesRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.memcache.v1beta2.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.memcache.v1beta2.ListInstancesRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.memcache.v1beta2.ListInstancesRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.memcache.v1beta2.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.memcache.v1beta2.ListInstancesRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.memcache.v1beta2.ListInstancesRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.memcache.v1beta2.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.memcache.v1beta2.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.memcache.v1beta2.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.memcache.v1beta2.ListInstancesRequest prototype) { + + public static Builder newBuilder( + com.google.cloud.memcache.v1beta2.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.memcache.v1beta2.CloudMemcache.ListInstances].
    * 
* * Protobuf type {@code google.cloud.memcache.v1beta2.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.memcache.v1beta2.ListInstancesRequest) com.google.cloud.memcache.v1beta2.ListInstancesRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.memcache.v1beta2.CloudMemcacheProto.internal_static_google_cloud_memcache_v1beta2_ListInstancesRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.memcache.v1beta2.CloudMemcacheProto + .internal_static_google_cloud_memcache_v1beta2_ListInstancesRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.memcache.v1beta2.CloudMemcacheProto.internal_static_google_cloud_memcache_v1beta2_ListInstancesRequest_fieldAccessorTable + return com.google.cloud.memcache.v1beta2.CloudMemcacheProto + .internal_static_google_cloud_memcache_v1beta2_ListInstancesRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.memcache.v1beta2.ListInstancesRequest.class, com.google.cloud.memcache.v1beta2.ListInstancesRequest.Builder.class); + com.google.cloud.memcache.v1beta2.ListInstancesRequest.class, + com.google.cloud.memcache.v1beta2.ListInstancesRequest.Builder.class); } // Construct using com.google.cloud.memcache.v1beta2.ListInstancesRequest.newBuilder() @@ -553,16 +600,15 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -580,9 +626,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.memcache.v1beta2.CloudMemcacheProto.internal_static_google_cloud_memcache_v1beta2_ListInstancesRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.memcache.v1beta2.CloudMemcacheProto + .internal_static_google_cloud_memcache_v1beta2_ListInstancesRequest_descriptor; } @java.lang.Override @@ -601,7 +647,8 @@ public com.google.cloud.memcache.v1beta2.ListInstancesRequest build() { @java.lang.Override public com.google.cloud.memcache.v1beta2.ListInstancesRequest buildPartial() { - com.google.cloud.memcache.v1beta2.ListInstancesRequest result = new com.google.cloud.memcache.v1beta2.ListInstancesRequest(this); + com.google.cloud.memcache.v1beta2.ListInstancesRequest result = + new com.google.cloud.memcache.v1beta2.ListInstancesRequest(this); result.parent_ = parent_; result.pageSize_ = pageSize_; result.pageToken_ = pageToken_; @@ -615,38 +662,39 @@ public com.google.cloud.memcache.v1beta2.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.memcache.v1beta2.ListInstancesRequest) { - return mergeFrom((com.google.cloud.memcache.v1beta2.ListInstancesRequest)other); + return mergeFrom((com.google.cloud.memcache.v1beta2.ListInstancesRequest) other); } else { super.mergeFrom(other); return this; @@ -654,7 +702,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.memcache.v1beta2.ListInstancesRequest other) { - if (other == com.google.cloud.memcache.v1beta2.ListInstancesRequest.getDefaultInstance()) return this; + if (other == com.google.cloud.memcache.v1beta2.ListInstancesRequest.getDefaultInstance()) + return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; onChanged(); @@ -693,7 +742,8 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.memcache.v1beta2.ListInstancesRequest) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.memcache.v1beta2.ListInstancesRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -705,20 +755,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; @@ -727,22 +781,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 { @@ -750,67 +807,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.
@@ -821,6 +893,7 @@ public Builder setParentBytes(
      * 
* * int32 page_size = 2; + * * @return The pageSize. */ @java.lang.Override @@ -828,6 +901,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.
@@ -838,16 +913,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.
@@ -858,10 +936,11 @@ public Builder setPageSize(int value) {
      * 
* * int32 page_size = 2; + * * @return This builder for chaining. */ public Builder clearPageSize() { - + pageSize_ = 0; onChanged(); return this; @@ -869,18 +948,20 @@ public Builder clearPageSize() { private java.lang.Object pageToken_ = ""; /** + * + * *
      * The `next_page_token` value returned from a previous List 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; @@ -889,20 +970,21 @@ public java.lang.String getPageToken() { } } /** + * + * *
      * The `next_page_token` value returned from a previous List 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 { @@ -910,54 +992,61 @@ public java.lang.String getPageToken() { } } /** + * + * *
      * The `next_page_token` value returned from a previous List 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 List 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 List 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; @@ -965,19 +1054,21 @@ public Builder setPageTokenBytes( private java.lang.Object filter_ = ""; /** + * + * *
      * List filter. For example, exclude all Memcached instances with name as
      * my-instance by specifying `"name != my-instance"`.
      * 
* * string filter = 4; + * * @return The filter. */ public java.lang.String getFilter() { java.lang.Object ref = filter_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); filter_ = s; return s; @@ -986,21 +1077,22 @@ public java.lang.String getFilter() { } } /** + * + * *
      * List filter. For example, exclude all Memcached instances with name as
      * my-instance by specifying `"name != my-instance"`.
      * 
* * string filter = 4; + * * @return The bytes for filter. */ - public com.google.protobuf.ByteString - getFilterBytes() { + public com.google.protobuf.ByteString getFilterBytes() { java.lang.Object ref = filter_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); filter_ = b; return b; } else { @@ -1008,57 +1100,64 @@ public java.lang.String getFilter() { } } /** + * + * *
      * List filter. For example, exclude all Memcached instances with name as
      * my-instance by specifying `"name != my-instance"`.
      * 
* * string filter = 4; + * * @param value The filter to set. * @return This builder for chaining. */ - public Builder setFilter( - java.lang.String value) { + public Builder setFilter(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + filter_ = value; onChanged(); return this; } /** + * + * *
      * List filter. For example, exclude all Memcached instances with name as
      * my-instance by specifying `"name != my-instance"`.
      * 
* * string filter = 4; + * * @return This builder for chaining. */ public Builder clearFilter() { - + filter_ = getDefaultInstance().getFilter(); onChanged(); return this; } /** + * + * *
      * List filter. For example, exclude all Memcached instances with name as
      * my-instance by specifying `"name != my-instance"`.
      * 
* * string filter = 4; + * * @param value The bytes for filter to set. * @return This builder for chaining. */ - public Builder setFilterBytes( - com.google.protobuf.ByteString value) { + public Builder setFilterBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + filter_ = value; onChanged(); return this; @@ -1066,18 +1165,20 @@ public Builder setFilterBytes( private java.lang.Object orderBy_ = ""; /** + * + * *
      * Sort results. Supported values are "name", "name desc" or "" (unsorted).
      * 
* * string order_by = 5; + * * @return The orderBy. */ public java.lang.String getOrderBy() { java.lang.Object ref = orderBy_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); orderBy_ = s; return s; @@ -1086,20 +1187,21 @@ public java.lang.String getOrderBy() { } } /** + * + * *
      * Sort results. Supported values are "name", "name desc" or "" (unsorted).
      * 
* * string order_by = 5; + * * @return The bytes for orderBy. */ - public com.google.protobuf.ByteString - getOrderByBytes() { + public com.google.protobuf.ByteString getOrderByBytes() { java.lang.Object ref = orderBy_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); orderBy_ = b; return b; } else { @@ -1107,61 +1209,68 @@ public java.lang.String getOrderBy() { } } /** + * + * *
      * Sort results. Supported values are "name", "name desc" or "" (unsorted).
      * 
* * string order_by = 5; + * * @param value The orderBy to set. * @return This builder for chaining. */ - public Builder setOrderBy( - java.lang.String value) { + public Builder setOrderBy(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + orderBy_ = value; onChanged(); return this; } /** + * + * *
      * Sort results. Supported values are "name", "name desc" or "" (unsorted).
      * 
* * string order_by = 5; + * * @return This builder for chaining. */ public Builder clearOrderBy() { - + orderBy_ = getDefaultInstance().getOrderBy(); onChanged(); return this; } /** + * + * *
      * Sort results. Supported values are "name", "name desc" or "" (unsorted).
      * 
* * string order_by = 5; + * * @param value The bytes for orderBy to set. * @return This builder for chaining. */ - public Builder setOrderByBytes( - com.google.protobuf.ByteString value) { + public Builder setOrderByBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + orderBy_ = value; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1171,12 +1280,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.memcache.v1beta2.ListInstancesRequest) } // @@protoc_insertion_point(class_scope:google.cloud.memcache.v1beta2.ListInstancesRequest) private static final com.google.cloud.memcache.v1beta2.ListInstancesRequest DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.memcache.v1beta2.ListInstancesRequest(); } @@ -1185,16 +1294,16 @@ public static com.google.cloud.memcache.v1beta2.ListInstancesRequest getDefaultI 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; @@ -1209,6 +1318,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.memcache.v1beta2.ListInstancesRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1beta2/proto-google-cloud-memcache-v1beta2/src/main/java/com/google/cloud/memcache/v1beta2/ListInstancesRequestOrBuilder.java b/proto-google-cloud-memcache-v1beta2/src/main/java/com/google/cloud/memcache/v1beta2/ListInstancesRequestOrBuilder.java similarity index 68% rename from owl-bot-staging/v1beta2/proto-google-cloud-memcache-v1beta2/src/main/java/com/google/cloud/memcache/v1beta2/ListInstancesRequestOrBuilder.java rename to proto-google-cloud-memcache-v1beta2/src/main/java/com/google/cloud/memcache/v1beta2/ListInstancesRequestOrBuilder.java index 4f8721f9..7c66c9e1 100644 --- a/owl-bot-staging/v1beta2/proto-google-cloud-memcache-v1beta2/src/main/java/com/google/cloud/memcache/v1beta2/ListInstancesRequestOrBuilder.java +++ b/proto-google-cloud-memcache-v1beta2/src/main/java/com/google/cloud/memcache/v1beta2/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/memcache/v1beta2/cloud_memcache.proto package com.google.cloud.memcache.v1beta2; -public interface ListInstancesRequestOrBuilder extends +public interface ListInstancesRequestOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.memcache.v1beta2.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,69 +69,85 @@ public interface ListInstancesRequestOrBuilder extends
    * 
* * int32 page_size = 2; + * * @return The pageSize. */ int getPageSize(); /** + * + * *
    * The `next_page_token` value returned from a previous List request, if any.
    * 
* * string page_token = 3; + * * @return The pageToken. */ java.lang.String getPageToken(); /** + * + * *
    * The `next_page_token` value returned from a previous List request, if any.
    * 
* * string page_token = 3; + * * @return The bytes for pageToken. */ - com.google.protobuf.ByteString - getPageTokenBytes(); + com.google.protobuf.ByteString getPageTokenBytes(); /** + * + * *
    * List filter. For example, exclude all Memcached instances with name as
    * my-instance by specifying `"name != my-instance"`.
    * 
* * string filter = 4; + * * @return The filter. */ java.lang.String getFilter(); /** + * + * *
    * List filter. For example, exclude all Memcached instances with name as
    * my-instance by specifying `"name != my-instance"`.
    * 
* * string filter = 4; + * * @return The bytes for filter. */ - com.google.protobuf.ByteString - getFilterBytes(); + com.google.protobuf.ByteString getFilterBytes(); /** + * + * *
    * Sort results. Supported values are "name", "name desc" or "" (unsorted).
    * 
* * string order_by = 5; + * * @return The orderBy. */ java.lang.String getOrderBy(); /** + * + * *
    * Sort results. Supported values are "name", "name desc" or "" (unsorted).
    * 
* * string order_by = 5; + * * @return The bytes for orderBy. */ - com.google.protobuf.ByteString - getOrderByBytes(); + com.google.protobuf.ByteString getOrderByBytes(); } diff --git a/owl-bot-staging/v1beta2/proto-google-cloud-memcache-v1beta2/src/main/java/com/google/cloud/memcache/v1beta2/ListInstancesResponse.java b/proto-google-cloud-memcache-v1beta2/src/main/java/com/google/cloud/memcache/v1beta2/ListInstancesResponse.java similarity index 77% rename from owl-bot-staging/v1beta2/proto-google-cloud-memcache-v1beta2/src/main/java/com/google/cloud/memcache/v1beta2/ListInstancesResponse.java rename to proto-google-cloud-memcache-v1beta2/src/main/java/com/google/cloud/memcache/v1beta2/ListInstancesResponse.java index 403aa2c3..83faa9b9 100644 --- a/owl-bot-staging/v1beta2/proto-google-cloud-memcache-v1beta2/src/main/java/com/google/cloud/memcache/v1beta2/ListInstancesResponse.java +++ b/proto-google-cloud-memcache-v1beta2/src/main/java/com/google/cloud/memcache/v1beta2/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/memcache/v1beta2/cloud_memcache.proto package com.google.cloud.memcache.v1beta2; /** + * + * *
  * Response for [ListInstances][google.cloud.memcache.v1beta2.CloudMemcache.ListInstances].
  * 
* * Protobuf type {@code google.cloud.memcache.v1beta2.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.memcache.v1beta2.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() { resources_ = 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)) { - resources_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; + case 10: + { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + resources_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; + } + resources_.add( + input.readMessage( + com.google.cloud.memcache.v1beta2.Instance.parser(), extensionRegistry)); + break; } - resources_.add( - input.readMessage(com.google.cloud.memcache.v1beta2.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)) { resources_ = java.util.Collections.unmodifiableList(resources_); @@ -107,22 +127,27 @@ private ListInstancesResponse( makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.memcache.v1beta2.CloudMemcacheProto.internal_static_google_cloud_memcache_v1beta2_ListInstancesResponse_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.memcache.v1beta2.CloudMemcacheProto + .internal_static_google_cloud_memcache_v1beta2_ListInstancesResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.memcache.v1beta2.CloudMemcacheProto.internal_static_google_cloud_memcache_v1beta2_ListInstancesResponse_fieldAccessorTable + return com.google.cloud.memcache.v1beta2.CloudMemcacheProto + .internal_static_google_cloud_memcache_v1beta2_ListInstancesResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.memcache.v1beta2.ListInstancesResponse.class, com.google.cloud.memcache.v1beta2.ListInstancesResponse.Builder.class); + com.google.cloud.memcache.v1beta2.ListInstancesResponse.class, + com.google.cloud.memcache.v1beta2.ListInstancesResponse.Builder.class); } public static final int RESOURCES_FIELD_NUMBER = 1; private java.util.List resources_; /** + * + * *
    * A list of Memcached instances in the project in the specified location,
    * or across all locations.
@@ -137,6 +162,8 @@ public java.util.List getResourcesLi
     return resources_;
   }
   /**
+   *
+   *
    * 
    * A list of Memcached instances in the project in the specified location,
    * or across all locations.
@@ -147,11 +174,13 @@ public java.util.List getResourcesLi
    * repeated .google.cloud.memcache.v1beta2.Instance resources = 1;
    */
   @java.lang.Override
-  public java.util.List 
+  public java.util.List
       getResourcesOrBuilderList() {
     return resources_;
   }
   /**
+   *
+   *
    * 
    * A list of Memcached instances in the project in the specified location,
    * or across all locations.
@@ -166,6 +195,8 @@ public int getResourcesCount() {
     return resources_.size();
   }
   /**
+   *
+   *
    * 
    * A list of Memcached instances in the project in the specified location,
    * or across all locations.
@@ -180,6 +211,8 @@ public com.google.cloud.memcache.v1beta2.Instance getResources(int index) {
     return resources_.get(index);
   }
   /**
+   *
+   *
    * 
    * A list of Memcached instances in the project in the specified location,
    * or across all locations.
@@ -190,20 +223,22 @@ public com.google.cloud.memcache.v1beta2.Instance getResources(int index) {
    * repeated .google.cloud.memcache.v1beta2.Instance resources = 1;
    */
   @java.lang.Override
-  public com.google.cloud.memcache.v1beta2.InstanceOrBuilder getResourcesOrBuilder(
-      int index) {
+  public com.google.cloud.memcache.v1beta2.InstanceOrBuilder getResourcesOrBuilder(int index) {
     return resources_.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 @@ -212,30 +247,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 { @@ -246,34 +281,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. */ @@ -281,20 +324,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; @@ -306,8 +352,7 @@ public final boolean isInitialized() { } @java.lang.Override - 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 < resources_.size(); i++) { output.writeMessage(1, resources_.get(i)); } @@ -327,8 +372,7 @@ public int getSerializedSize() { size = 0; for (int i = 0; i < resources_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, resources_.get(i)); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, resources_.get(i)); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextPageToken_); @@ -349,19 +393,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.memcache.v1beta2.ListInstancesResponse)) { return super.equals(obj); } - com.google.cloud.memcache.v1beta2.ListInstancesResponse other = (com.google.cloud.memcache.v1beta2.ListInstancesResponse) obj; + com.google.cloud.memcache.v1beta2.ListInstancesResponse other = + (com.google.cloud.memcache.v1beta2.ListInstancesResponse) obj; - if (!getResourcesList() - .equals(other.getResourcesList())) return false; - if (!getNextPageToken() - .equals(other.getNextPageToken())) return false; - if (!getUnreachableList() - .equals(other.getUnreachableList())) return false; + if (!getResourcesList().equals(other.getResourcesList())) 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; } @@ -389,117 +431,127 @@ public int hashCode() { } public static com.google.cloud.memcache.v1beta2.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.memcache.v1beta2.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.memcache.v1beta2.ListInstancesResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.memcache.v1beta2.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.memcache.v1beta2.ListInstancesResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.memcache.v1beta2.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.memcache.v1beta2.ListInstancesResponse parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.memcache.v1beta2.ListInstancesResponse parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.memcache.v1beta2.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.memcache.v1beta2.ListInstancesResponse parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.memcache.v1beta2.ListInstancesResponse parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.memcache.v1beta2.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.memcache.v1beta2.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.memcache.v1beta2.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.memcache.v1beta2.ListInstancesResponse prototype) { + + public static Builder newBuilder( + com.google.cloud.memcache.v1beta2.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.memcache.v1beta2.CloudMemcache.ListInstances].
    * 
* * Protobuf type {@code google.cloud.memcache.v1beta2.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.memcache.v1beta2.ListInstancesResponse) com.google.cloud.memcache.v1beta2.ListInstancesResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.memcache.v1beta2.CloudMemcacheProto.internal_static_google_cloud_memcache_v1beta2_ListInstancesResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.memcache.v1beta2.CloudMemcacheProto + .internal_static_google_cloud_memcache_v1beta2_ListInstancesResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.memcache.v1beta2.CloudMemcacheProto.internal_static_google_cloud_memcache_v1beta2_ListInstancesResponse_fieldAccessorTable + return com.google.cloud.memcache.v1beta2.CloudMemcacheProto + .internal_static_google_cloud_memcache_v1beta2_ListInstancesResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.memcache.v1beta2.ListInstancesResponse.class, com.google.cloud.memcache.v1beta2.ListInstancesResponse.Builder.class); + com.google.cloud.memcache.v1beta2.ListInstancesResponse.class, + com.google.cloud.memcache.v1beta2.ListInstancesResponse.Builder.class); } // Construct using com.google.cloud.memcache.v1beta2.ListInstancesResponse.newBuilder() @@ -507,17 +559,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) { getResourcesFieldBuilder(); } } + @java.lang.Override public Builder clear() { super.clear(); @@ -535,9 +587,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.memcache.v1beta2.CloudMemcacheProto.internal_static_google_cloud_memcache_v1beta2_ListInstancesResponse_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.memcache.v1beta2.CloudMemcacheProto + .internal_static_google_cloud_memcache_v1beta2_ListInstancesResponse_descriptor; } @java.lang.Override @@ -556,7 +608,8 @@ public com.google.cloud.memcache.v1beta2.ListInstancesResponse build() { @java.lang.Override public com.google.cloud.memcache.v1beta2.ListInstancesResponse buildPartial() { - com.google.cloud.memcache.v1beta2.ListInstancesResponse result = new com.google.cloud.memcache.v1beta2.ListInstancesResponse(this); + com.google.cloud.memcache.v1beta2.ListInstancesResponse result = + new com.google.cloud.memcache.v1beta2.ListInstancesResponse(this); int from_bitField0_ = bitField0_; if (resourcesBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { @@ -581,38 +634,39 @@ public com.google.cloud.memcache.v1beta2.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.memcache.v1beta2.ListInstancesResponse) { - return mergeFrom((com.google.cloud.memcache.v1beta2.ListInstancesResponse)other); + return mergeFrom((com.google.cloud.memcache.v1beta2.ListInstancesResponse) other); } else { super.mergeFrom(other); return this; @@ -620,7 +674,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.memcache.v1beta2.ListInstancesResponse other) { - if (other == com.google.cloud.memcache.v1beta2.ListInstancesResponse.getDefaultInstance()) return this; + if (other == com.google.cloud.memcache.v1beta2.ListInstancesResponse.getDefaultInstance()) + return this; if (resourcesBuilder_ == null) { if (!other.resources_.isEmpty()) { if (resources_.isEmpty()) { @@ -639,9 +694,10 @@ public Builder mergeFrom(com.google.cloud.memcache.v1beta2.ListInstancesResponse resourcesBuilder_ = null; resources_ = other.resources_; bitField0_ = (bitField0_ & ~0x00000001); - resourcesBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getResourcesFieldBuilder() : null; + resourcesBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getResourcesFieldBuilder() + : null; } else { resourcesBuilder_.addAllMessages(other.resources_); } @@ -680,7 +736,8 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.memcache.v1beta2.ListInstancesResponse) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.memcache.v1beta2.ListInstancesResponse) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -689,21 +746,29 @@ public Builder mergeFrom( } return this; } + private int bitField0_; private java.util.List resources_ = - java.util.Collections.emptyList(); + java.util.Collections.emptyList(); + private void ensureResourcesIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { - resources_ = new java.util.ArrayList(resources_); + resources_ = + new java.util.ArrayList(resources_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.memcache.v1beta2.Instance, com.google.cloud.memcache.v1beta2.Instance.Builder, com.google.cloud.memcache.v1beta2.InstanceOrBuilder> resourcesBuilder_; + com.google.cloud.memcache.v1beta2.Instance, + com.google.cloud.memcache.v1beta2.Instance.Builder, + com.google.cloud.memcache.v1beta2.InstanceOrBuilder> + resourcesBuilder_; /** + * + * *
      * A list of Memcached instances in the project in the specified location,
      * or across all locations.
@@ -721,6 +786,8 @@ public java.util.List getResourcesLi
       }
     }
     /**
+     *
+     *
      * 
      * A list of Memcached instances in the project in the specified location,
      * or across all locations.
@@ -738,6 +805,8 @@ public int getResourcesCount() {
       }
     }
     /**
+     *
+     *
      * 
      * A list of Memcached instances in the project in the specified location,
      * or across all locations.
@@ -755,6 +824,8 @@ public com.google.cloud.memcache.v1beta2.Instance getResources(int index) {
       }
     }
     /**
+     *
+     *
      * 
      * A list of Memcached instances in the project in the specified location,
      * or across all locations.
@@ -764,8 +835,7 @@ public com.google.cloud.memcache.v1beta2.Instance getResources(int index) {
      *
      * repeated .google.cloud.memcache.v1beta2.Instance resources = 1;
      */
-    public Builder setResources(
-        int index, com.google.cloud.memcache.v1beta2.Instance value) {
+    public Builder setResources(int index, com.google.cloud.memcache.v1beta2.Instance value) {
       if (resourcesBuilder_ == null) {
         if (value == null) {
           throw new NullPointerException();
@@ -779,6 +849,8 @@ public Builder setResources(
       return this;
     }
     /**
+     *
+     *
      * 
      * A list of Memcached instances in the project in the specified location,
      * or across all locations.
@@ -800,6 +872,8 @@ public Builder setResources(
       return this;
     }
     /**
+     *
+     *
      * 
      * A list of Memcached instances in the project in the specified location,
      * or across all locations.
@@ -823,6 +897,8 @@ public Builder addResources(com.google.cloud.memcache.v1beta2.Instance value) {
       return this;
     }
     /**
+     *
+     *
      * 
      * A list of Memcached instances in the project in the specified location,
      * or across all locations.
@@ -832,8 +908,7 @@ public Builder addResources(com.google.cloud.memcache.v1beta2.Instance value) {
      *
      * repeated .google.cloud.memcache.v1beta2.Instance resources = 1;
      */
-    public Builder addResources(
-        int index, com.google.cloud.memcache.v1beta2.Instance value) {
+    public Builder addResources(int index, com.google.cloud.memcache.v1beta2.Instance value) {
       if (resourcesBuilder_ == null) {
         if (value == null) {
           throw new NullPointerException();
@@ -847,6 +922,8 @@ public Builder addResources(
       return this;
     }
     /**
+     *
+     *
      * 
      * A list of Memcached instances in the project in the specified location,
      * or across all locations.
@@ -868,6 +945,8 @@ public Builder addResources(
       return this;
     }
     /**
+     *
+     *
      * 
      * A list of Memcached instances in the project in the specified location,
      * or across all locations.
@@ -889,6 +968,8 @@ public Builder addResources(
       return this;
     }
     /**
+     *
+     *
      * 
      * A list of Memcached instances in the project in the specified location,
      * or across all locations.
@@ -902,8 +983,7 @@ public Builder addAllResources(
         java.lang.Iterable values) {
       if (resourcesBuilder_ == null) {
         ensureResourcesIsMutable();
-        com.google.protobuf.AbstractMessageLite.Builder.addAll(
-            values, resources_);
+        com.google.protobuf.AbstractMessageLite.Builder.addAll(values, resources_);
         onChanged();
       } else {
         resourcesBuilder_.addAllMessages(values);
@@ -911,6 +991,8 @@ public Builder addAllResources(
       return this;
     }
     /**
+     *
+     *
      * 
      * A list of Memcached instances in the project in the specified location,
      * or across all locations.
@@ -931,6 +1013,8 @@ public Builder clearResources() {
       return this;
     }
     /**
+     *
+     *
      * 
      * A list of Memcached instances in the project in the specified location,
      * or across all locations.
@@ -951,6 +1035,8 @@ public Builder removeResources(int index) {
       return this;
     }
     /**
+     *
+     *
      * 
      * A list of Memcached instances in the project in the specified location,
      * or across all locations.
@@ -960,11 +1046,12 @@ public Builder removeResources(int index) {
      *
      * repeated .google.cloud.memcache.v1beta2.Instance resources = 1;
      */
-    public com.google.cloud.memcache.v1beta2.Instance.Builder getResourcesBuilder(
-        int index) {
+    public com.google.cloud.memcache.v1beta2.Instance.Builder getResourcesBuilder(int index) {
       return getResourcesFieldBuilder().getBuilder(index);
     }
     /**
+     *
+     *
      * 
      * A list of Memcached instances in the project in the specified location,
      * or across all locations.
@@ -974,14 +1061,16 @@ public com.google.cloud.memcache.v1beta2.Instance.Builder getResourcesBuilder(
      *
      * repeated .google.cloud.memcache.v1beta2.Instance resources = 1;
      */
-    public com.google.cloud.memcache.v1beta2.InstanceOrBuilder getResourcesOrBuilder(
-        int index) {
+    public com.google.cloud.memcache.v1beta2.InstanceOrBuilder getResourcesOrBuilder(int index) {
       if (resourcesBuilder_ == null) {
-        return resources_.get(index);  } else {
+        return resources_.get(index);
+      } else {
         return resourcesBuilder_.getMessageOrBuilder(index);
       }
     }
     /**
+     *
+     *
      * 
      * A list of Memcached instances in the project in the specified location,
      * or across all locations.
@@ -991,8 +1080,8 @@ public com.google.cloud.memcache.v1beta2.InstanceOrBuilder getResourcesOrBuilder
      *
      * repeated .google.cloud.memcache.v1beta2.Instance resources = 1;
      */
-    public java.util.List 
-         getResourcesOrBuilderList() {
+    public java.util.List
+        getResourcesOrBuilderList() {
       if (resourcesBuilder_ != null) {
         return resourcesBuilder_.getMessageOrBuilderList();
       } else {
@@ -1000,6 +1089,8 @@ public com.google.cloud.memcache.v1beta2.InstanceOrBuilder getResourcesOrBuilder
       }
     }
     /**
+     *
+     *
      * 
      * A list of Memcached instances in the project in the specified location,
      * or across all locations.
@@ -1010,10 +1101,12 @@ public com.google.cloud.memcache.v1beta2.InstanceOrBuilder getResourcesOrBuilder
      * repeated .google.cloud.memcache.v1beta2.Instance resources = 1;
      */
     public com.google.cloud.memcache.v1beta2.Instance.Builder addResourcesBuilder() {
-      return getResourcesFieldBuilder().addBuilder(
-          com.google.cloud.memcache.v1beta2.Instance.getDefaultInstance());
+      return getResourcesFieldBuilder()
+          .addBuilder(com.google.cloud.memcache.v1beta2.Instance.getDefaultInstance());
     }
     /**
+     *
+     *
      * 
      * A list of Memcached instances in the project in the specified location,
      * or across all locations.
@@ -1023,12 +1116,13 @@ public com.google.cloud.memcache.v1beta2.Instance.Builder addResourcesBuilder()
      *
      * repeated .google.cloud.memcache.v1beta2.Instance resources = 1;
      */
-    public com.google.cloud.memcache.v1beta2.Instance.Builder addResourcesBuilder(
-        int index) {
-      return getResourcesFieldBuilder().addBuilder(
-          index, com.google.cloud.memcache.v1beta2.Instance.getDefaultInstance());
+    public com.google.cloud.memcache.v1beta2.Instance.Builder addResourcesBuilder(int index) {
+      return getResourcesFieldBuilder()
+          .addBuilder(index, com.google.cloud.memcache.v1beta2.Instance.getDefaultInstance());
     }
     /**
+     *
+     *
      * 
      * A list of Memcached instances in the project in the specified location,
      * or across all locations.
@@ -1038,20 +1132,23 @@ public com.google.cloud.memcache.v1beta2.Instance.Builder addResourcesBuilder(
      *
      * repeated .google.cloud.memcache.v1beta2.Instance resources = 1;
      */
-    public java.util.List 
-         getResourcesBuilderList() {
+    public java.util.List
+        getResourcesBuilderList() {
       return getResourcesFieldBuilder().getBuilderList();
     }
+
     private com.google.protobuf.RepeatedFieldBuilderV3<
-        com.google.cloud.memcache.v1beta2.Instance, com.google.cloud.memcache.v1beta2.Instance.Builder, com.google.cloud.memcache.v1beta2.InstanceOrBuilder> 
+            com.google.cloud.memcache.v1beta2.Instance,
+            com.google.cloud.memcache.v1beta2.Instance.Builder,
+            com.google.cloud.memcache.v1beta2.InstanceOrBuilder>
         getResourcesFieldBuilder() {
       if (resourcesBuilder_ == null) {
-        resourcesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
-            com.google.cloud.memcache.v1beta2.Instance, com.google.cloud.memcache.v1beta2.Instance.Builder, com.google.cloud.memcache.v1beta2.InstanceOrBuilder>(
-                resources_,
-                ((bitField0_ & 0x00000001) != 0),
-                getParentForChildren(),
-                isClean());
+        resourcesBuilder_ =
+            new com.google.protobuf.RepeatedFieldBuilderV3<
+                com.google.cloud.memcache.v1beta2.Instance,
+                com.google.cloud.memcache.v1beta2.Instance.Builder,
+                com.google.cloud.memcache.v1beta2.InstanceOrBuilder>(
+                resources_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean());
         resources_ = null;
       }
       return resourcesBuilder_;
@@ -1059,19 +1156,21 @@ public com.google.cloud.memcache.v1beta2.Instance.Builder addResourcesBuilder(
 
     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; @@ -1080,21 +1179,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 { @@ -1102,98 +1202,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. */ @@ -1201,80 +1318,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() { @@ -1284,28 +1411,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); } @@ -1315,12 +1444,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.memcache.v1beta2.ListInstancesResponse) } // @@protoc_insertion_point(class_scope:google.cloud.memcache.v1beta2.ListInstancesResponse) private static final com.google.cloud.memcache.v1beta2.ListInstancesResponse DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.memcache.v1beta2.ListInstancesResponse(); } @@ -1329,16 +1458,16 @@ public static com.google.cloud.memcache.v1beta2.ListInstancesResponse getDefault 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; @@ -1353,6 +1482,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.memcache.v1beta2.ListInstancesResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1beta2/proto-google-cloud-memcache-v1beta2/src/main/java/com/google/cloud/memcache/v1beta2/ListInstancesResponseOrBuilder.java b/proto-google-cloud-memcache-v1beta2/src/main/java/com/google/cloud/memcache/v1beta2/ListInstancesResponseOrBuilder.java similarity index 78% rename from owl-bot-staging/v1beta2/proto-google-cloud-memcache-v1beta2/src/main/java/com/google/cloud/memcache/v1beta2/ListInstancesResponseOrBuilder.java rename to proto-google-cloud-memcache-v1beta2/src/main/java/com/google/cloud/memcache/v1beta2/ListInstancesResponseOrBuilder.java index 21cd4af9..35c4ee5a 100644 --- a/owl-bot-staging/v1beta2/proto-google-cloud-memcache-v1beta2/src/main/java/com/google/cloud/memcache/v1beta2/ListInstancesResponseOrBuilder.java +++ b/proto-google-cloud-memcache-v1beta2/src/main/java/com/google/cloud/memcache/v1beta2/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/memcache/v1beta2/cloud_memcache.proto package com.google.cloud.memcache.v1beta2; -public interface ListInstancesResponseOrBuilder extends +public interface ListInstancesResponseOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.memcache.v1beta2.ListInstancesResponse) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * A list of Memcached instances in the project in the specified location,
    * or across all locations.
@@ -17,9 +35,10 @@ public interface ListInstancesResponseOrBuilder extends
    *
    * repeated .google.cloud.memcache.v1beta2.Instance resources = 1;
    */
-  java.util.List 
-      getResourcesList();
+  java.util.List getResourcesList();
   /**
+   *
+   *
    * 
    * A list of Memcached instances in the project in the specified location,
    * or across all locations.
@@ -31,6 +50,8 @@ public interface ListInstancesResponseOrBuilder extends
    */
   com.google.cloud.memcache.v1beta2.Instance getResources(int index);
   /**
+   *
+   *
    * 
    * A list of Memcached instances in the project in the specified location,
    * or across all locations.
@@ -42,6 +63,8 @@ public interface ListInstancesResponseOrBuilder extends
    */
   int getResourcesCount();
   /**
+   *
+   *
    * 
    * A list of Memcached instances in the project in the specified location,
    * or across all locations.
@@ -51,9 +74,11 @@ public interface ListInstancesResponseOrBuilder extends
    *
    * repeated .google.cloud.memcache.v1beta2.Instance resources = 1;
    */
-  java.util.List 
+  java.util.List
       getResourcesOrBuilderList();
   /**
+   *
+   *
    * 
    * A list of Memcached instances in the project in the specified location,
    * or across all locations.
@@ -63,69 +88,83 @@ public interface ListInstancesResponseOrBuilder extends
    *
    * repeated .google.cloud.memcache.v1beta2.Instance resources = 1;
    */
-  com.google.cloud.memcache.v1beta2.InstanceOrBuilder getResourcesOrBuilder(
-      int index);
+  com.google.cloud.memcache.v1beta2.InstanceOrBuilder getResourcesOrBuilder(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/v1beta2/proto-google-cloud-memcache-v1beta2/src/main/java/com/google/cloud/memcache/v1beta2/LocationMetadata.java b/proto-google-cloud-memcache-v1beta2/src/main/java/com/google/cloud/memcache/v1beta2/LocationMetadata.java similarity index 60% rename from owl-bot-staging/v1beta2/proto-google-cloud-memcache-v1beta2/src/main/java/com/google/cloud/memcache/v1beta2/LocationMetadata.java rename to proto-google-cloud-memcache-v1beta2/src/main/java/com/google/cloud/memcache/v1beta2/LocationMetadata.java index bcec6d90..775beafc 100644 --- a/owl-bot-staging/v1beta2/proto-google-cloud-memcache-v1beta2/src/main/java/com/google/cloud/memcache/v1beta2/LocationMetadata.java +++ b/proto-google-cloud-memcache-v1beta2/src/main/java/com/google/cloud/memcache/v1beta2/LocationMetadata.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/memcache/v1beta2/cloud_memcache.proto package com.google.cloud.memcache.v1beta2; /** + * + * *
  * Metadata for the given [google.cloud.location.Location][google.cloud.location.Location].
  * 
* * Protobuf type {@code google.cloud.memcache.v1beta2.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.memcache.v1beta2.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) @@ -53,26 +69,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.memcache.v1beta2.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) { @@ -80,54 +102,63 @@ 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.memcache.v1beta2.CloudMemcacheProto.internal_static_google_cloud_memcache_v1beta2_LocationMetadata_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.memcache.v1beta2.CloudMemcacheProto + .internal_static_google_cloud_memcache_v1beta2_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.memcache.v1beta2.CloudMemcacheProto.internal_static_google_cloud_memcache_v1beta2_LocationMetadata_fieldAccessorTable + return com.google.cloud.memcache.v1beta2.CloudMemcacheProto + .internal_static_google_cloud_memcache_v1beta2_LocationMetadata_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.memcache.v1beta2.LocationMetadata.class, com.google.cloud.memcache.v1beta2.LocationMetadata.Builder.class); + com.google.cloud.memcache.v1beta2.LocationMetadata.class, + com.google.cloud.memcache.v1beta2.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.memcache.v1beta2.ZoneMetadata> defaultEntry = + java.lang.String, com.google.cloud.memcache.v1beta2.ZoneMetadata> + defaultEntry = com.google.protobuf.MapEntry - .newDefaultInstance( - com.google.cloud.memcache.v1beta2.CloudMemcacheProto.internal_static_google_cloud_memcache_v1beta2_LocationMetadata_AvailableZonesEntry_descriptor, - com.google.protobuf.WireFormat.FieldType.STRING, - "", - com.google.protobuf.WireFormat.FieldType.MESSAGE, - com.google.cloud.memcache.v1beta2.ZoneMetadata.getDefaultInstance()); + . + newDefaultInstance( + com.google.cloud.memcache.v1beta2.CloudMemcacheProto + .internal_static_google_cloud_memcache_v1beta2_LocationMetadata_AvailableZonesEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.STRING, + "", + com.google.protobuf.WireFormat.FieldType.MESSAGE, + com.google.cloud.memcache.v1beta2.ZoneMetadata.getDefaultInstance()); } + + private com.google.protobuf.MapField< + java.lang.String, com.google.cloud.memcache.v1beta2.ZoneMetadata> + availableZones_; + private com.google.protobuf.MapField< - java.lang.String, com.google.cloud.memcache.v1beta2.ZoneMetadata> availableZones_; - private com.google.protobuf.MapField - internalGetAvailableZones() { + java.lang.String, com.google.cloud.memcache.v1beta2.ZoneMetadata> + internalGetAvailableZones() { if (availableZones_ == null) { return com.google.protobuf.MapField.emptyMapField( AvailableZonesDefaultEntryHolder.defaultEntry); @@ -139,76 +170,92 @@ 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
    * specified in the `zones` field when creating a Memcached instance.
    * 
* - * map<string, .google.cloud.memcache.v1beta2.ZoneMetadata> available_zones = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * map<string, .google.cloud.memcache.v1beta2.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
    * specified in the `zones` field when creating a Memcached instance.
    * 
* - * map<string, .google.cloud.memcache.v1beta2.ZoneMetadata> available_zones = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * map<string, .google.cloud.memcache.v1beta2.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
    * specified in the `zones` field when creating a Memcached instance.
    * 
* - * map<string, .google.cloud.memcache.v1beta2.ZoneMetadata> available_zones = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * map<string, .google.cloud.memcache.v1beta2.ZoneMetadata> available_zones = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ @java.lang.Override - public com.google.cloud.memcache.v1beta2.ZoneMetadata getAvailableZonesOrDefault( - java.lang.String key, - com.google.cloud.memcache.v1beta2.ZoneMetadata defaultValue) { - if (key == null) { throw new NullPointerException("map key"); } + java.lang.String key, com.google.cloud.memcache.v1beta2.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
    * specified in the `zones` field when creating a Memcached instance.
    * 
* - * map<string, .google.cloud.memcache.v1beta2.ZoneMetadata> available_zones = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * map<string, .google.cloud.memcache.v1beta2.ZoneMetadata> available_zones = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ @java.lang.Override - public com.google.cloud.memcache.v1beta2.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)) { @@ -218,6 +265,7 @@ public com.google.cloud.memcache.v1beta2.ZoneMetadata getAvailableZonesOrThrow( } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -229,14 +277,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); } @@ -246,15 +289,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; @@ -264,15 +308,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.memcache.v1beta2.LocationMetadata)) { return super.equals(obj); } - com.google.cloud.memcache.v1beta2.LocationMetadata other = (com.google.cloud.memcache.v1beta2.LocationMetadata) obj; + com.google.cloud.memcache.v1beta2.LocationMetadata other = + (com.google.cloud.memcache.v1beta2.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; } @@ -294,139 +338,146 @@ public int hashCode() { } public static com.google.cloud.memcache.v1beta2.LocationMetadata parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.memcache.v1beta2.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.memcache.v1beta2.LocationMetadata parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.memcache.v1beta2.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.memcache.v1beta2.LocationMetadata parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.memcache.v1beta2.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.memcache.v1beta2.LocationMetadata parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.memcache.v1beta2.LocationMetadata parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.memcache.v1beta2.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.memcache.v1beta2.LocationMetadata parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.memcache.v1beta2.LocationMetadata parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.memcache.v1beta2.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.memcache.v1beta2.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.memcache.v1beta2.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.memcache.v1beta2.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; } /** + * + * *
    * Metadata for the given [google.cloud.location.Location][google.cloud.location.Location].
    * 
* * Protobuf type {@code google.cloud.memcache.v1beta2.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.memcache.v1beta2.LocationMetadata) com.google.cloud.memcache.v1beta2.LocationMetadataOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.memcache.v1beta2.CloudMemcacheProto.internal_static_google_cloud_memcache_v1beta2_LocationMetadata_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.memcache.v1beta2.CloudMemcacheProto + .internal_static_google_cloud_memcache_v1beta2_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.memcache.v1beta2.CloudMemcacheProto.internal_static_google_cloud_memcache_v1beta2_LocationMetadata_fieldAccessorTable + return com.google.cloud.memcache.v1beta2.CloudMemcacheProto + .internal_static_google_cloud_memcache_v1beta2_LocationMetadata_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.memcache.v1beta2.LocationMetadata.class, com.google.cloud.memcache.v1beta2.LocationMetadata.Builder.class); + com.google.cloud.memcache.v1beta2.LocationMetadata.class, + com.google.cloud.memcache.v1beta2.LocationMetadata.Builder.class); } // Construct using com.google.cloud.memcache.v1beta2.LocationMetadata.newBuilder() @@ -434,16 +485,15 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -452,9 +502,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.memcache.v1beta2.CloudMemcacheProto.internal_static_google_cloud_memcache_v1beta2_LocationMetadata_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.memcache.v1beta2.CloudMemcacheProto + .internal_static_google_cloud_memcache_v1beta2_LocationMetadata_descriptor; } @java.lang.Override @@ -473,7 +523,8 @@ public com.google.cloud.memcache.v1beta2.LocationMetadata build() { @java.lang.Override public com.google.cloud.memcache.v1beta2.LocationMetadata buildPartial() { - com.google.cloud.memcache.v1beta2.LocationMetadata result = new com.google.cloud.memcache.v1beta2.LocationMetadata(this); + com.google.cloud.memcache.v1beta2.LocationMetadata result = + new com.google.cloud.memcache.v1beta2.LocationMetadata(this); int from_bitField0_ = bitField0_; result.availableZones_ = internalGetAvailableZones(); result.availableZones_.makeImmutable(); @@ -485,38 +536,39 @@ public com.google.cloud.memcache.v1beta2.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.memcache.v1beta2.LocationMetadata) { - return mergeFrom((com.google.cloud.memcache.v1beta2.LocationMetadata)other); + return mergeFrom((com.google.cloud.memcache.v1beta2.LocationMetadata) other); } else { super.mergeFrom(other); return this; @@ -524,9 +576,9 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.memcache.v1beta2.LocationMetadata other) { - if (other == com.google.cloud.memcache.v1beta2.LocationMetadata.getDefaultInstance()) return this; - internalGetMutableAvailableZones().mergeFrom( - other.internalGetAvailableZones()); + if (other == com.google.cloud.memcache.v1beta2.LocationMetadata.getDefaultInstance()) + return this; + internalGetMutableAvailableZones().mergeFrom(other.internalGetAvailableZones()); this.mergeUnknownFields(other.unknownFields); onChanged(); return this; @@ -546,7 +598,8 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.memcache.v1beta2.LocationMetadata) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.memcache.v1beta2.LocationMetadata) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -555,24 +608,31 @@ public Builder mergeFrom( } return this; } + private int bitField0_; private com.google.protobuf.MapField< - java.lang.String, com.google.cloud.memcache.v1beta2.ZoneMetadata> availableZones_; - private com.google.protobuf.MapField - internalGetAvailableZones() { + java.lang.String, com.google.cloud.memcache.v1beta2.ZoneMetadata> + availableZones_; + + private com.google.protobuf.MapField< + java.lang.String, com.google.cloud.memcache.v1beta2.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.memcache.v1beta2.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(); @@ -584,76 +644,92 @@ 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
      * specified in the `zones` field when creating a Memcached instance.
      * 
* - * map<string, .google.cloud.memcache.v1beta2.ZoneMetadata> available_zones = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * map<string, .google.cloud.memcache.v1beta2.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
      * specified in the `zones` field when creating a Memcached instance.
      * 
* - * map<string, .google.cloud.memcache.v1beta2.ZoneMetadata> available_zones = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * map<string, .google.cloud.memcache.v1beta2.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
      * specified in the `zones` field when creating a Memcached instance.
      * 
* - * map<string, .google.cloud.memcache.v1beta2.ZoneMetadata> available_zones = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * map<string, .google.cloud.memcache.v1beta2.ZoneMetadata> available_zones = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ @java.lang.Override - public com.google.cloud.memcache.v1beta2.ZoneMetadata getAvailableZonesOrDefault( - java.lang.String key, - com.google.cloud.memcache.v1beta2.ZoneMetadata defaultValue) { - if (key == null) { throw new NullPointerException("map key"); } + java.lang.String key, com.google.cloud.memcache.v1beta2.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
      * specified in the `zones` field when creating a Memcached instance.
      * 
* - * map<string, .google.cloud.memcache.v1beta2.ZoneMetadata> available_zones = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * map<string, .google.cloud.memcache.v1beta2.ZoneMetadata> available_zones = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ @java.lang.Override - public com.google.cloud.memcache.v1beta2.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)) { @@ -663,75 +739,81 @@ public com.google.cloud.memcache.v1beta2.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
      * specified in the `zones` field when creating a Memcached instance.
      * 
* - * map<string, .google.cloud.memcache.v1beta2.ZoneMetadata> available_zones = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * map<string, .google.cloud.memcache.v1beta2.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
      * specified in the `zones` field when creating a Memcached instance.
      * 
* - * map<string, .google.cloud.memcache.v1beta2.ZoneMetadata> available_zones = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * map<string, .google.cloud.memcache.v1beta2.ZoneMetadata> available_zones = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder putAvailableZones( - java.lang.String key, - com.google.cloud.memcache.v1beta2.ZoneMetadata value) { - if (key == null) { throw new NullPointerException("map key"); } + java.lang.String key, com.google.cloud.memcache.v1beta2.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
      * specified in the `zones` field when creating a Memcached instance.
      * 
* - * map<string, .google.cloud.memcache.v1beta2.ZoneMetadata> available_zones = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * map<string, .google.cloud.memcache.v1beta2.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); } @@ -741,12 +823,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.memcache.v1beta2.LocationMetadata) } // @@protoc_insertion_point(class_scope:google.cloud.memcache.v1beta2.LocationMetadata) private static final com.google.cloud.memcache.v1beta2.LocationMetadata DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.memcache.v1beta2.LocationMetadata(); } @@ -755,16 +837,16 @@ public static com.google.cloud.memcache.v1beta2.LocationMetadata getDefaultInsta 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; @@ -779,6 +861,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.memcache.v1beta2.LocationMetadata getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1beta2/proto-google-cloud-memcache-v1beta2/src/main/java/com/google/cloud/memcache/v1beta2/LocationMetadataOrBuilder.java b/proto-google-cloud-memcache-v1beta2/src/main/java/com/google/cloud/memcache/v1beta2/LocationMetadataOrBuilder.java similarity index 52% rename from owl-bot-staging/v1beta2/proto-google-cloud-memcache-v1beta2/src/main/java/com/google/cloud/memcache/v1beta2/LocationMetadataOrBuilder.java rename to proto-google-cloud-memcache-v1beta2/src/main/java/com/google/cloud/memcache/v1beta2/LocationMetadataOrBuilder.java index 53070c05..abceeea7 100644 --- a/owl-bot-staging/v1beta2/proto-google-cloud-memcache-v1beta2/src/main/java/com/google/cloud/memcache/v1beta2/LocationMetadataOrBuilder.java +++ b/proto-google-cloud-memcache-v1beta2/src/main/java/com/google/cloud/memcache/v1beta2/LocationMetadataOrBuilder.java @@ -1,75 +1,106 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/memcache/v1beta2/cloud_memcache.proto package com.google.cloud.memcache.v1beta2; -public interface LocationMetadataOrBuilder extends +public interface LocationMetadataOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.memcache.v1beta2.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
    * specified in the `zones` field when creating a Memcached instance.
    * 
* - * map<string, .google.cloud.memcache.v1beta2.ZoneMetadata> available_zones = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * map<string, .google.cloud.memcache.v1beta2.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
    * specified in the `zones` field when creating a Memcached instance.
    * 
* - * map<string, .google.cloud.memcache.v1beta2.ZoneMetadata> available_zones = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - boolean containsAvailableZones( - java.lang.String key); - /** - * Use {@link #getAvailableZonesMap()} instead. + * + * map<string, .google.cloud.memcache.v1beta2.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(); + 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
    * specified in the `zones` field when creating a Memcached instance.
    * 
* - * map<string, .google.cloud.memcache.v1beta2.ZoneMetadata> available_zones = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * map<string, .google.cloud.memcache.v1beta2.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
    * specified in the `zones` field when creating a Memcached instance.
    * 
* - * map<string, .google.cloud.memcache.v1beta2.ZoneMetadata> available_zones = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * map<string, .google.cloud.memcache.v1beta2.ZoneMetadata> available_zones = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ /* nullable */ -com.google.cloud.memcache.v1beta2.ZoneMetadata getAvailableZonesOrDefault( + com.google.cloud.memcache.v1beta2.ZoneMetadata getAvailableZonesOrDefault( java.lang.String key, /* nullable */ -com.google.cloud.memcache.v1beta2.ZoneMetadata defaultValue); + com.google.cloud.memcache.v1beta2.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
    * specified in the `zones` field when creating a Memcached instance.
    * 
* - * map<string, .google.cloud.memcache.v1beta2.ZoneMetadata> available_zones = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * map<string, .google.cloud.memcache.v1beta2.ZoneMetadata> available_zones = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - - com.google.cloud.memcache.v1beta2.ZoneMetadata getAvailableZonesOrThrow( - java.lang.String key); + com.google.cloud.memcache.v1beta2.ZoneMetadata getAvailableZonesOrThrow(java.lang.String key); } diff --git a/owl-bot-staging/v1beta2/proto-google-cloud-memcache-v1beta2/src/main/java/com/google/cloud/memcache/v1beta2/LocationName.java b/proto-google-cloud-memcache-v1beta2/src/main/java/com/google/cloud/memcache/v1beta2/LocationName.java similarity index 100% rename from owl-bot-staging/v1beta2/proto-google-cloud-memcache-v1beta2/src/main/java/com/google/cloud/memcache/v1beta2/LocationName.java rename to proto-google-cloud-memcache-v1beta2/src/main/java/com/google/cloud/memcache/v1beta2/LocationName.java diff --git a/owl-bot-staging/v1beta2/proto-google-cloud-memcache-v1beta2/src/main/java/com/google/cloud/memcache/v1beta2/MemcacheParameters.java b/proto-google-cloud-memcache-v1beta2/src/main/java/com/google/cloud/memcache/v1beta2/MemcacheParameters.java similarity index 63% rename from owl-bot-staging/v1beta2/proto-google-cloud-memcache-v1beta2/src/main/java/com/google/cloud/memcache/v1beta2/MemcacheParameters.java rename to proto-google-cloud-memcache-v1beta2/src/main/java/com/google/cloud/memcache/v1beta2/MemcacheParameters.java index 12a532e4..f0bfb3c3 100644 --- a/owl-bot-staging/v1beta2/proto-google-cloud-memcache-v1beta2/src/main/java/com/google/cloud/memcache/v1beta2/MemcacheParameters.java +++ b/proto-google-cloud-memcache-v1beta2/src/main/java/com/google/cloud/memcache/v1beta2/MemcacheParameters.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/memcache/v1beta2/cloud_memcache.proto package com.google.cloud.memcache.v1beta2; /** + * + * *
  * The unique ID associated with this set of parameters. Users
  * can use this id to determine if the parameters associated with the instance
@@ -14,31 +31,31 @@
  *
  * Protobuf type {@code google.cloud.memcache.v1beta2.MemcacheParameters}
  */
-public final class MemcacheParameters extends
-    com.google.protobuf.GeneratedMessageV3 implements
+public final class MemcacheParameters extends com.google.protobuf.GeneratedMessageV3
+    implements
     // @@protoc_insertion_point(message_implements:google.cloud.memcache.v1beta2.MemcacheParameters)
     MemcacheParametersOrBuilder {
-private static final long serialVersionUID = 0L;
+  private static final long serialVersionUID = 0L;
   // Use MemcacheParameters.newBuilder() to construct.
   private MemcacheParameters(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
+
   private MemcacheParameters() {
     id_ = "";
   }
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(
-      UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
     return new MemcacheParameters();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet
-  getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
     return this.unknownFields;
   }
+
   private MemcacheParameters(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -58,32 +75,33 @@ private MemcacheParameters(
           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 26: {
-            if (!((mutable_bitField0_ & 0x00000001) != 0)) {
-              params_ = com.google.protobuf.MapField.newMapField(
-                  ParamsDefaultEntryHolder.defaultEntry);
-              mutable_bitField0_ |= 0x00000001;
+              id_ = s;
+              break;
             }
-            com.google.protobuf.MapEntry
-            params__ = input.readMessage(
-                ParamsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry);
-            params_.getMutableMap().put(
-                params__.getKey(), params__.getValue());
-            break;
-          }
-          default: {
-            if (!parseUnknownField(
-                input, unknownFields, extensionRegistry, tag)) {
-              done = true;
+          case 26:
+            {
+              if (!((mutable_bitField0_ & 0x00000001) != 0)) {
+                params_ =
+                    com.google.protobuf.MapField.newMapField(ParamsDefaultEntryHolder.defaultEntry);
+                mutable_bitField0_ |= 0x00000001;
+              }
+              com.google.protobuf.MapEntry params__ =
+                  input.readMessage(
+                      ParamsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry);
+              params_.getMutableMap().put(params__.getKey(), params__.getValue());
+              break;
+            }
+          default:
+            {
+              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
+                done = true;
+              }
+              break;
             }
-            break;
-          }
         }
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -91,46 +109,50 @@ private MemcacheParameters(
     } 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.memcache.v1beta2.CloudMemcacheProto.internal_static_google_cloud_memcache_v1beta2_MemcacheParameters_descriptor;
+
+  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+    return com.google.cloud.memcache.v1beta2.CloudMemcacheProto
+        .internal_static_google_cloud_memcache_v1beta2_MemcacheParameters_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 internalGetParams();
       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.memcache.v1beta2.CloudMemcacheProto.internal_static_google_cloud_memcache_v1beta2_MemcacheParameters_fieldAccessorTable
+    return com.google.cloud.memcache.v1beta2.CloudMemcacheProto
+        .internal_static_google_cloud_memcache_v1beta2_MemcacheParameters_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.memcache.v1beta2.MemcacheParameters.class, com.google.cloud.memcache.v1beta2.MemcacheParameters.Builder.class);
+            com.google.cloud.memcache.v1beta2.MemcacheParameters.class,
+            com.google.cloud.memcache.v1beta2.MemcacheParameters.Builder.class);
   }
 
   public static final int ID_FIELD_NUMBER = 1;
   private volatile java.lang.Object id_;
   /**
+   *
+   *
    * 
    * Output only.
    * 
* * string id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The id. */ @java.lang.Override @@ -139,29 +161,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.
    * 
* * 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 { @@ -170,24 +192,23 @@ public java.lang.String getId() { } public static final int PARAMS_FIELD_NUMBER = 3; + private static final class ParamsDefaultEntryHolder { - static final com.google.protobuf.MapEntry< - java.lang.String, java.lang.String> defaultEntry = - com.google.protobuf.MapEntry - .newDefaultInstance( - com.google.cloud.memcache.v1beta2.CloudMemcacheProto.internal_static_google_cloud_memcache_v1beta2_MemcacheParameters_ParamsEntry_descriptor, - com.google.protobuf.WireFormat.FieldType.STRING, - "", - com.google.protobuf.WireFormat.FieldType.STRING, - ""); - } - private com.google.protobuf.MapField< - java.lang.String, java.lang.String> params_; - private com.google.protobuf.MapField - internalGetParams() { + static final com.google.protobuf.MapEntry defaultEntry = + com.google.protobuf.MapEntry.newDefaultInstance( + com.google.cloud.memcache.v1beta2.CloudMemcacheProto + .internal_static_google_cloud_memcache_v1beta2_MemcacheParameters_ParamsEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.STRING, + "", + com.google.protobuf.WireFormat.FieldType.STRING, + ""); + } + + private com.google.protobuf.MapField params_; + + private com.google.protobuf.MapField internalGetParams() { if (params_ == null) { - return com.google.protobuf.MapField.emptyMapField( - ParamsDefaultEntryHolder.defaultEntry); + return com.google.protobuf.MapField.emptyMapField(ParamsDefaultEntryHolder.defaultEntry); } return params_; } @@ -196,28 +217,30 @@ public int getParamsCount() { return internalGetParams().getMap().size(); } /** + * + * *
    * User defined set of parameters to use in the memcached process.
    * 
* * map<string, string> params = 3; */ - @java.lang.Override - public boolean containsParams( - java.lang.String key) { - if (key == null) { throw new NullPointerException("map key"); } + public boolean containsParams(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } return internalGetParams().getMap().containsKey(key); } - /** - * Use {@link #getParamsMap()} instead. - */ + /** Use {@link #getParamsMap()} instead. */ @java.lang.Override @java.lang.Deprecated public java.util.Map getParams() { return getParamsMap(); } /** + * + * *
    * User defined set of parameters to use in the memcached process.
    * 
@@ -225,11 +248,12 @@ public java.util.Map getParams() { * map<string, string> params = 3; */ @java.lang.Override - public java.util.Map getParamsMap() { return internalGetParams().getMap(); } /** + * + * *
    * User defined set of parameters to use in the memcached process.
    * 
@@ -237,16 +261,16 @@ public java.util.Map getParamsMap() { * map<string, string> params = 3; */ @java.lang.Override - - public java.lang.String getParamsOrDefault( - java.lang.String key, - java.lang.String defaultValue) { - if (key == null) { throw new NullPointerException("map key"); } - java.util.Map map = - internalGetParams().getMap(); + public java.lang.String getParamsOrDefault(java.lang.String key, java.lang.String defaultValue) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = internalGetParams().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** + * + * *
    * User defined set of parameters to use in the memcached process.
    * 
@@ -254,12 +278,11 @@ public java.lang.String getParamsOrDefault( * map<string, string> params = 3; */ @java.lang.Override - - public java.lang.String getParamsOrThrow( - java.lang.String key) { - if (key == null) { throw new NullPointerException("map key"); } - java.util.Map map = - internalGetParams().getMap(); + public java.lang.String getParamsOrThrow(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = internalGetParams().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } @@ -267,6 +290,7 @@ public java.lang.String getParamsOrThrow( } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -278,17 +302,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(id_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, id_); } - com.google.protobuf.GeneratedMessageV3 - .serializeStringMapTo( - output, - internalGetParams(), - ParamsDefaultEntryHolder.defaultEntry, - 3); + com.google.protobuf.GeneratedMessageV3.serializeStringMapTo( + output, internalGetParams(), ParamsDefaultEntryHolder.defaultEntry, 3); unknownFields.writeTo(output); } @@ -301,15 +320,15 @@ public int getSerializedSize() { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(id_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, id_); } - for (java.util.Map.Entry entry - : internalGetParams().getMap().entrySet()) { - com.google.protobuf.MapEntry - params__ = ParamsDefaultEntryHolder.defaultEntry.newBuilderForType() - .setKey(entry.getKey()) - .setValue(entry.getValue()) - .build(); - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(3, params__); + for (java.util.Map.Entry entry : + internalGetParams().getMap().entrySet()) { + com.google.protobuf.MapEntry params__ = + ParamsDefaultEntryHolder.defaultEntry + .newBuilderForType() + .setKey(entry.getKey()) + .setValue(entry.getValue()) + .build(); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, params__); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -319,17 +338,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.memcache.v1beta2.MemcacheParameters)) { return super.equals(obj); } - com.google.cloud.memcache.v1beta2.MemcacheParameters other = (com.google.cloud.memcache.v1beta2.MemcacheParameters) obj; + com.google.cloud.memcache.v1beta2.MemcacheParameters other = + (com.google.cloud.memcache.v1beta2.MemcacheParameters) obj; - if (!getId() - .equals(other.getId())) return false; - if (!internalGetParams().equals( - other.internalGetParams())) return false; + if (!getId().equals(other.getId())) return false; + if (!internalGetParams().equals(other.internalGetParams())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -353,96 +371,103 @@ public int hashCode() { } public static com.google.cloud.memcache.v1beta2.MemcacheParameters parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.memcache.v1beta2.MemcacheParameters parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.memcache.v1beta2.MemcacheParameters parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.memcache.v1beta2.MemcacheParameters parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.memcache.v1beta2.MemcacheParameters parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.memcache.v1beta2.MemcacheParameters parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.memcache.v1beta2.MemcacheParameters parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.memcache.v1beta2.MemcacheParameters parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.memcache.v1beta2.MemcacheParameters parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.memcache.v1beta2.MemcacheParameters parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.memcache.v1beta2.MemcacheParameters parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.memcache.v1beta2.MemcacheParameters parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.memcache.v1beta2.MemcacheParameters parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.memcache.v1beta2.MemcacheParameters parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.cloud.memcache.v1beta2.MemcacheParameters prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected 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 unique ID associated with this set of parameters. Users
    * can use this id to determine if the parameters associated with the instance
@@ -453,43 +478,43 @@ protected Builder newBuilderForType(
    *
    * Protobuf type {@code google.cloud.memcache.v1beta2.MemcacheParameters}
    */
-  public static final class Builder extends
-      com.google.protobuf.GeneratedMessageV3.Builder implements
+  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
+      implements
       // @@protoc_insertion_point(builder_implements:google.cloud.memcache.v1beta2.MemcacheParameters)
       com.google.cloud.memcache.v1beta2.MemcacheParametersOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor
-        getDescriptor() {
-      return com.google.cloud.memcache.v1beta2.CloudMemcacheProto.internal_static_google_cloud_memcache_v1beta2_MemcacheParameters_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+      return com.google.cloud.memcache.v1beta2.CloudMemcacheProto
+          .internal_static_google_cloud_memcache_v1beta2_MemcacheParameters_descriptor;
     }
 
     @SuppressWarnings({"rawtypes"})
-    protected com.google.protobuf.MapField internalGetMapField(
-        int number) {
+    protected com.google.protobuf.MapField internalGetMapField(int number) {
       switch (number) {
         case 3:
           return internalGetParams();
         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 internalGetMutableParams();
         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.memcache.v1beta2.CloudMemcacheProto.internal_static_google_cloud_memcache_v1beta2_MemcacheParameters_fieldAccessorTable
+      return com.google.cloud.memcache.v1beta2.CloudMemcacheProto
+          .internal_static_google_cloud_memcache_v1beta2_MemcacheParameters_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.memcache.v1beta2.MemcacheParameters.class, com.google.cloud.memcache.v1beta2.MemcacheParameters.Builder.class);
+              com.google.cloud.memcache.v1beta2.MemcacheParameters.class,
+              com.google.cloud.memcache.v1beta2.MemcacheParameters.Builder.class);
     }
 
     // Construct using com.google.cloud.memcache.v1beta2.MemcacheParameters.newBuilder()
@@ -497,16 +522,15 @@ private Builder() {
       maybeForceBuilderInitialization();
     }
 
-    private Builder(
-        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
       maybeForceBuilderInitialization();
     }
+
     private void maybeForceBuilderInitialization() {
-      if (com.google.protobuf.GeneratedMessageV3
-              .alwaysUseFieldBuilders) {
-      }
+      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {}
     }
+
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -517,9 +541,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor
-        getDescriptorForType() {
-      return com.google.cloud.memcache.v1beta2.CloudMemcacheProto.internal_static_google_cloud_memcache_v1beta2_MemcacheParameters_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+      return com.google.cloud.memcache.v1beta2.CloudMemcacheProto
+          .internal_static_google_cloud_memcache_v1beta2_MemcacheParameters_descriptor;
     }
 
     @java.lang.Override
@@ -538,7 +562,8 @@ public com.google.cloud.memcache.v1beta2.MemcacheParameters build() {
 
     @java.lang.Override
     public com.google.cloud.memcache.v1beta2.MemcacheParameters buildPartial() {
-      com.google.cloud.memcache.v1beta2.MemcacheParameters result = new com.google.cloud.memcache.v1beta2.MemcacheParameters(this);
+      com.google.cloud.memcache.v1beta2.MemcacheParameters result =
+          new com.google.cloud.memcache.v1beta2.MemcacheParameters(this);
       int from_bitField0_ = bitField0_;
       result.id_ = id_;
       result.params_ = internalGetParams();
@@ -551,38 +576,39 @@ public com.google.cloud.memcache.v1beta2.MemcacheParameters buildPartial() {
     public Builder clone() {
       return super.clone();
     }
+
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.setField(field, value);
     }
+
     @java.lang.Override
-    public Builder clearField(
-        com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
+
     @java.lang.Override
-    public Builder clearOneof(
-        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
+
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
+
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
+
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
       if (other instanceof com.google.cloud.memcache.v1beta2.MemcacheParameters) {
-        return mergeFrom((com.google.cloud.memcache.v1beta2.MemcacheParameters)other);
+        return mergeFrom((com.google.cloud.memcache.v1beta2.MemcacheParameters) other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -590,13 +616,13 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
     }
 
     public Builder mergeFrom(com.google.cloud.memcache.v1beta2.MemcacheParameters other) {
-      if (other == com.google.cloud.memcache.v1beta2.MemcacheParameters.getDefaultInstance()) return this;
+      if (other == com.google.cloud.memcache.v1beta2.MemcacheParameters.getDefaultInstance())
+        return this;
       if (!other.getId().isEmpty()) {
         id_ = other.id_;
         onChanged();
       }
-      internalGetMutableParams().mergeFrom(
-          other.internalGetParams());
+      internalGetMutableParams().mergeFrom(other.internalGetParams());
       this.mergeUnknownFields(other.unknownFields);
       onChanged();
       return this;
@@ -616,7 +642,8 @@ public Builder mergeFrom(
       try {
         parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-        parsedMessage = (com.google.cloud.memcache.v1beta2.MemcacheParameters) e.getUnfinishedMessage();
+        parsedMessage =
+            (com.google.cloud.memcache.v1beta2.MemcacheParameters) e.getUnfinishedMessage();
         throw e.unwrapIOException();
       } finally {
         if (parsedMessage != null) {
@@ -625,22 +652,25 @@ public Builder mergeFrom(
       }
       return this;
     }
+
     private int bitField0_;
 
     private java.lang.Object id_ = "";
     /**
+     *
+     *
      * 
      * Output only.
      * 
* * 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; @@ -649,20 +679,21 @@ public java.lang.String getId() { } } /** + * + * *
      * Output only.
      * 
* * 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 { @@ -670,75 +701,81 @@ public java.lang.String getId() { } } /** + * + * *
      * Output only.
      * 
* * 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.
      * 
* * 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.
      * 
* * 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; } - private com.google.protobuf.MapField< - java.lang.String, java.lang.String> params_; - private com.google.protobuf.MapField - internalGetParams() { + private com.google.protobuf.MapField params_; + + private com.google.protobuf.MapField internalGetParams() { if (params_ == null) { - return com.google.protobuf.MapField.emptyMapField( - ParamsDefaultEntryHolder.defaultEntry); + return com.google.protobuf.MapField.emptyMapField(ParamsDefaultEntryHolder.defaultEntry); } return params_; } + private com.google.protobuf.MapField - internalGetMutableParams() { - onChanged();; + internalGetMutableParams() { + onChanged(); + ; if (params_ == null) { - params_ = com.google.protobuf.MapField.newMapField( - ParamsDefaultEntryHolder.defaultEntry); + params_ = com.google.protobuf.MapField.newMapField(ParamsDefaultEntryHolder.defaultEntry); } if (!params_.isMutable()) { params_ = params_.copy(); @@ -750,28 +787,30 @@ public int getParamsCount() { return internalGetParams().getMap().size(); } /** + * + * *
      * User defined set of parameters to use in the memcached process.
      * 
* * map<string, string> params = 3; */ - @java.lang.Override - public boolean containsParams( - java.lang.String key) { - if (key == null) { throw new NullPointerException("map key"); } + public boolean containsParams(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } return internalGetParams().getMap().containsKey(key); } - /** - * Use {@link #getParamsMap()} instead. - */ + /** Use {@link #getParamsMap()} instead. */ @java.lang.Override @java.lang.Deprecated public java.util.Map getParams() { return getParamsMap(); } /** + * + * *
      * User defined set of parameters to use in the memcached process.
      * 
@@ -779,11 +818,12 @@ public java.util.Map getParams() { * map<string, string> params = 3; */ @java.lang.Override - public java.util.Map getParamsMap() { return internalGetParams().getMap(); } /** + * + * *
      * User defined set of parameters to use in the memcached process.
      * 
@@ -791,16 +831,17 @@ public java.util.Map getParamsMap() { * map<string, string> params = 3; */ @java.lang.Override - public java.lang.String getParamsOrDefault( - java.lang.String key, - java.lang.String defaultValue) { - if (key == null) { throw new NullPointerException("map key"); } - java.util.Map map = - internalGetParams().getMap(); + java.lang.String key, java.lang.String defaultValue) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = internalGetParams().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** + * + * *
      * User defined set of parameters to use in the memcached process.
      * 
@@ -808,12 +849,11 @@ public java.lang.String getParamsOrDefault( * map<string, string> params = 3; */ @java.lang.Override - - public java.lang.String getParamsOrThrow( - java.lang.String key) { - if (key == null) { throw new NullPointerException("map key"); } - java.util.Map map = - internalGetParams().getMap(); + public java.lang.String getParamsOrThrow(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = internalGetParams().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } @@ -821,69 +861,66 @@ public java.lang.String getParamsOrThrow( } public Builder clearParams() { - internalGetMutableParams().getMutableMap() - .clear(); + internalGetMutableParams().getMutableMap().clear(); return this; } /** + * + * *
      * User defined set of parameters to use in the memcached process.
      * 
* * map<string, string> params = 3; */ - - public Builder removeParams( - java.lang.String key) { - if (key == null) { throw new NullPointerException("map key"); } - internalGetMutableParams().getMutableMap() - .remove(key); + public Builder removeParams(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + internalGetMutableParams().getMutableMap().remove(key); return this; } - /** - * Use alternate mutation accessors instead. - */ + /** Use alternate mutation accessors instead. */ @java.lang.Deprecated - public java.util.Map - getMutableParams() { + public java.util.Map getMutableParams() { return internalGetMutableParams().getMutableMap(); } /** + * + * *
      * User defined set of parameters to use in the memcached process.
      * 
* * map<string, string> params = 3; */ - public Builder putParams( - java.lang.String key, - java.lang.String value) { - if (key == null) { throw new NullPointerException("map key"); } + public Builder putParams(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"); + } - internalGetMutableParams().getMutableMap() - .put(key, value); + internalGetMutableParams().getMutableMap().put(key, value); return this; } /** + * + * *
      * User defined set of parameters to use in the memcached process.
      * 
* * map<string, string> params = 3; */ - - public Builder putAllParams( - java.util.Map values) { - internalGetMutableParams().getMutableMap() - .putAll(values); + public Builder putAllParams(java.util.Map values) { + internalGetMutableParams().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); } @@ -893,12 +930,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.memcache.v1beta2.MemcacheParameters) } // @@protoc_insertion_point(class_scope:google.cloud.memcache.v1beta2.MemcacheParameters) private static final com.google.cloud.memcache.v1beta2.MemcacheParameters DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.memcache.v1beta2.MemcacheParameters(); } @@ -907,16 +944,16 @@ public static com.google.cloud.memcache.v1beta2.MemcacheParameters getDefaultIns return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public MemcacheParameters parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new MemcacheParameters(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public MemcacheParameters parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new MemcacheParameters(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -931,6 +968,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.memcache.v1beta2.MemcacheParameters getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1beta2/proto-google-cloud-memcache-v1beta2/src/main/java/com/google/cloud/memcache/v1beta2/MemcacheParametersOrBuilder.java b/proto-google-cloud-memcache-v1beta2/src/main/java/com/google/cloud/memcache/v1beta2/MemcacheParametersOrBuilder.java similarity index 58% rename from owl-bot-staging/v1beta2/proto-google-cloud-memcache-v1beta2/src/main/java/com/google/cloud/memcache/v1beta2/MemcacheParametersOrBuilder.java rename to proto-google-cloud-memcache-v1beta2/src/main/java/com/google/cloud/memcache/v1beta2/MemcacheParametersOrBuilder.java index 1ccba360..91e20f76 100644 --- a/owl-bot-staging/v1beta2/proto-google-cloud-memcache-v1beta2/src/main/java/com/google/cloud/memcache/v1beta2/MemcacheParametersOrBuilder.java +++ b/proto-google-cloud-memcache-v1beta2/src/main/java/com/google/cloud/memcache/v1beta2/MemcacheParametersOrBuilder.java @@ -1,33 +1,56 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/memcache/v1beta2/cloud_memcache.proto package com.google.cloud.memcache.v1beta2; -public interface MemcacheParametersOrBuilder extends +public interface MemcacheParametersOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.memcache.v1beta2.MemcacheParameters) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Output only.
    * 
* * string id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The id. */ java.lang.String getId(); /** + * + * *
    * Output only.
    * 
* * string id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for id. */ - com.google.protobuf.ByteString - getIdBytes(); + com.google.protobuf.ByteString getIdBytes(); /** + * + * *
    * User defined set of parameters to use in the memcached process.
    * 
@@ -36,30 +59,31 @@ public interface MemcacheParametersOrBuilder extends */ int getParamsCount(); /** + * + * *
    * User defined set of parameters to use in the memcached process.
    * 
* * map<string, string> params = 3; */ - boolean containsParams( - java.lang.String key); - /** - * Use {@link #getParamsMap()} instead. - */ + boolean containsParams(java.lang.String key); + /** Use {@link #getParamsMap()} instead. */ @java.lang.Deprecated - java.util.Map - getParams(); + java.util.Map getParams(); /** + * + * *
    * User defined set of parameters to use in the memcached process.
    * 
* * map<string, string> params = 3; */ - java.util.Map - getParamsMap(); + java.util.Map getParamsMap(); /** + * + * *
    * User defined set of parameters to use in the memcached process.
    * 
@@ -68,18 +92,18 @@ boolean containsParams( */ /* nullable */ -java.lang.String getParamsOrDefault( + java.lang.String getParamsOrDefault( java.lang.String key, /* nullable */ -java.lang.String defaultValue); + java.lang.String defaultValue); /** + * + * *
    * User defined set of parameters to use in the memcached process.
    * 
* * map<string, string> params = 3; */ - - java.lang.String getParamsOrThrow( - java.lang.String key); + java.lang.String getParamsOrThrow(java.lang.String key); } diff --git a/owl-bot-staging/v1beta2/proto-google-cloud-memcache-v1beta2/src/main/java/com/google/cloud/memcache/v1beta2/MemcacheVersion.java b/proto-google-cloud-memcache-v1beta2/src/main/java/com/google/cloud/memcache/v1beta2/MemcacheVersion.java similarity index 60% rename from owl-bot-staging/v1beta2/proto-google-cloud-memcache-v1beta2/src/main/java/com/google/cloud/memcache/v1beta2/MemcacheVersion.java rename to proto-google-cloud-memcache-v1beta2/src/main/java/com/google/cloud/memcache/v1beta2/MemcacheVersion.java index 71a84a11..db5ab22d 100644 --- a/owl-bot-staging/v1beta2/proto-google-cloud-memcache-v1beta2/src/main/java/com/google/cloud/memcache/v1beta2/MemcacheVersion.java +++ b/proto-google-cloud-memcache-v1beta2/src/main/java/com/google/cloud/memcache/v1beta2/MemcacheVersion.java @@ -1,22 +1,38 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/memcache/v1beta2/cloud_memcache.proto package com.google.cloud.memcache.v1beta2; /** + * + * *
  * Memcached versions supported by our service.
  * 
* * Protobuf enum {@code google.cloud.memcache.v1beta2.MemcacheVersion} */ -public enum MemcacheVersion - implements com.google.protobuf.ProtocolMessageEnum { - /** - * MEMCACHE_VERSION_UNSPECIFIED = 0; - */ +public enum MemcacheVersion implements com.google.protobuf.ProtocolMessageEnum { + /** MEMCACHE_VERSION_UNSPECIFIED = 0; */ MEMCACHE_VERSION_UNSPECIFIED(0), /** + * + * *
    * Memcached 1.5 version.
    * 
@@ -27,11 +43,11 @@ public enum MemcacheVersion UNRECOGNIZED(-1), ; - /** - * MEMCACHE_VERSION_UNSPECIFIED = 0; - */ + /** MEMCACHE_VERSION_UNSPECIFIED = 0; */ public static final int MEMCACHE_VERSION_UNSPECIFIED_VALUE = 0; /** + * + * *
    * Memcached 1.5 version.
    * 
@@ -40,7 +56,6 @@ public enum MemcacheVersion */ public static final int MEMCACHE_1_5_VALUE = 1; - public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( @@ -65,48 +80,49 @@ public static MemcacheVersion valueOf(int value) { */ public static MemcacheVersion forNumber(int value) { switch (value) { - case 0: return MEMCACHE_VERSION_UNSPECIFIED; - case 1: return MEMCACHE_1_5; - default: return null; + case 0: + return MEMCACHE_VERSION_UNSPECIFIED; + case 1: + return MEMCACHE_1_5; + 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< - MemcacheVersion> internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public MemcacheVersion findValueByNumber(int number) { - return MemcacheVersion.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 MemcacheVersion findValueByNumber(int number) { + return MemcacheVersion.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.memcache.v1beta2.CloudMemcacheProto.getDescriptor().getEnumTypes().get(0); + + public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.cloud.memcache.v1beta2.CloudMemcacheProto.getDescriptor() + .getEnumTypes() + .get(0); } private static final MemcacheVersion[] VALUES = values(); - public static MemcacheVersion valueOf( - com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + public static MemcacheVersion 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; @@ -122,4 +138,3 @@ private MemcacheVersion(int value) { // @@protoc_insertion_point(enum_scope:google.cloud.memcache.v1beta2.MemcacheVersion) } - diff --git a/owl-bot-staging/v1beta2/proto-google-cloud-memcache-v1beta2/src/main/java/com/google/cloud/memcache/v1beta2/OperationMetadata.java b/proto-google-cloud-memcache-v1beta2/src/main/java/com/google/cloud/memcache/v1beta2/OperationMetadata.java similarity index 71% rename from owl-bot-staging/v1beta2/proto-google-cloud-memcache-v1beta2/src/main/java/com/google/cloud/memcache/v1beta2/OperationMetadata.java rename to proto-google-cloud-memcache-v1beta2/src/main/java/com/google/cloud/memcache/v1beta2/OperationMetadata.java index f9469c79..d3d4f3da 100644 --- a/owl-bot-staging/v1beta2/proto-google-cloud-memcache-v1beta2/src/main/java/com/google/cloud/memcache/v1beta2/OperationMetadata.java +++ b/proto-google-cloud-memcache-v1beta2/src/main/java/com/google/cloud/memcache/v1beta2/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/memcache/v1beta2/cloud_memcache.proto package com.google.cloud.memcache.v1beta2; /** + * + * *
  * Represents the metadata of a long-running operation.
  * 
* * Protobuf type {@code google.cloud.memcache.v1beta2.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.memcache.v1beta2.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,40 @@ private OperationMetadata( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.memcache.v1beta2.CloudMemcacheProto.internal_static_google_cloud_memcache_v1beta2_OperationMetadata_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.memcache.v1beta2.CloudMemcacheProto + .internal_static_google_cloud_memcache_v1beta2_OperationMetadata_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.memcache.v1beta2.CloudMemcacheProto.internal_static_google_cloud_memcache_v1beta2_OperationMetadata_fieldAccessorTable + return com.google.cloud.memcache.v1beta2.CloudMemcacheProto + .internal_static_google_cloud_memcache_v1beta2_OperationMetadata_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.memcache.v1beta2.OperationMetadata.class, com.google.cloud.memcache.v1beta2.OperationMetadata.Builder.class); + com.google.cloud.memcache.v1beta2.OperationMetadata.class, + com.google.cloud.memcache.v1beta2.OperationMetadata.Builder.class); } public static final int CREATE_TIME_FIELD_NUMBER = 1; private com.google.protobuf.Timestamp createTime_; /** + * + * *
    * Output only. Time when the operation was created.
    * 
* - * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the createTime field is set. */ @java.lang.Override @@ -160,11 +191,15 @@ public boolean hasCreateTime() { return createTime_ != null; } /** + * + * *
    * Output only. Time when the operation was created.
    * 
* - * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The createTime. */ @java.lang.Override @@ -172,11 +207,14 @@ public com.google.protobuf.Timestamp getCreateTime() { return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; } /** + * + * *
    * Output only. Time when the operation was created.
    * 
* - * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { @@ -186,11 +224,15 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { public static final int END_TIME_FIELD_NUMBER = 2; private com.google.protobuf.Timestamp endTime_; /** + * + * *
    * Output only. Time when the operation finished running.
    * 
* - * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the endTime field is set. */ @java.lang.Override @@ -198,11 +240,15 @@ public boolean hasEndTime() { return endTime_ != null; } /** + * + * *
    * Output only. Time when the operation finished running.
    * 
* - * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The endTime. */ @java.lang.Override @@ -210,11 +256,14 @@ public com.google.protobuf.Timestamp getEndTime() { return endTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : endTime_; } /** + * + * *
    * Output only. Time when the operation finished running.
    * 
* - * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder() { @@ -224,11 +273,14 @@ public com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder() { public static final int TARGET_FIELD_NUMBER = 3; private volatile java.lang.Object target_; /** + * + * *
    * Output only. Server-defined resource path for the target of the operation.
    * 
* * string target = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The target. */ @java.lang.Override @@ -237,29 +289,29 @@ public java.lang.String getTarget() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); target_ = s; return s; } } /** + * + * *
    * Output only. Server-defined resource path for the target of the operation.
    * 
* * string target = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for target. */ @java.lang.Override - public com.google.protobuf.ByteString - getTargetBytes() { + public com.google.protobuf.ByteString getTargetBytes() { java.lang.Object ref = target_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); target_ = b; return b; } else { @@ -270,11 +322,14 @@ public java.lang.String getTarget() { public static final int VERB_FIELD_NUMBER = 4; private volatile java.lang.Object verb_; /** + * + * *
    * Output only. Name of the verb executed by the operation.
    * 
* * string verb = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The verb. */ @java.lang.Override @@ -283,29 +338,29 @@ public java.lang.String getVerb() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); verb_ = s; return s; } } /** + * + * *
    * Output only. Name of the verb executed by the operation.
    * 
* * string verb = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for verb. */ @java.lang.Override - public com.google.protobuf.ByteString - getVerbBytes() { + public com.google.protobuf.ByteString getVerbBytes() { java.lang.Object ref = verb_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); verb_ = b; return b; } else { @@ -316,11 +371,14 @@ public java.lang.String getVerb() { public static final int STATUS_DETAIL_FIELD_NUMBER = 5; private volatile java.lang.Object statusDetail_; /** + * + * *
    * Output only. Human-readable status of the operation, if any.
    * 
* * string status_detail = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The statusDetail. */ @java.lang.Override @@ -329,29 +387,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; } } /** + * + * *
    * Output only. Human-readable status of the operation, if any.
    * 
* * string status_detail = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @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,6 +420,8 @@ public java.lang.String getStatusDetail() { public static final int CANCEL_REQUESTED_FIELD_NUMBER = 6; private boolean cancelRequested_; /** + * + * *
    * Output only. Identifies whether the user has requested cancellation
    * of the operation. Operations that have successfully been cancelled
@@ -370,6 +430,7 @@ public java.lang.String getStatusDetail() {
    * 
* * bool cancel_requested = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The cancelRequested. */ @java.lang.Override @@ -380,11 +441,14 @@ public boolean getCancelRequested() { public static final int API_VERSION_FIELD_NUMBER = 7; private volatile java.lang.Object apiVersion_; /** + * + * *
    * Output only. API version used to start the operation.
    * 
* * string api_version = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The apiVersion. */ @java.lang.Override @@ -393,29 +457,29 @@ public java.lang.String getApiVersion() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); apiVersion_ = s; return s; } } /** + * + * *
    * Output only. API version used to start the operation.
    * 
* * string api_version = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for apiVersion. */ @java.lang.Override - public com.google.protobuf.ByteString - getApiVersionBytes() { + public com.google.protobuf.ByteString getApiVersionBytes() { java.lang.Object ref = apiVersion_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); apiVersion_ = b; return b; } else { @@ -424,6 +488,7 @@ public java.lang.String getApiVersion() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -435,8 +500,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (createTime_ != null) { output.writeMessage(1, getCreateTime()); } @@ -468,12 +532,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_); @@ -485,8 +547,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_); @@ -499,33 +560,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.memcache.v1beta2.OperationMetadata)) { return super.equals(obj); } - com.google.cloud.memcache.v1beta2.OperationMetadata other = (com.google.cloud.memcache.v1beta2.OperationMetadata) obj; + com.google.cloud.memcache.v1beta2.OperationMetadata other = + (com.google.cloud.memcache.v1beta2.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; } @@ -552,8 +607,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(); @@ -562,117 +616,126 @@ public int hashCode() { } public static com.google.cloud.memcache.v1beta2.OperationMetadata parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.memcache.v1beta2.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.memcache.v1beta2.OperationMetadata parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.memcache.v1beta2.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.memcache.v1beta2.OperationMetadata parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.memcache.v1beta2.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.memcache.v1beta2.OperationMetadata parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.memcache.v1beta2.OperationMetadata parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.memcache.v1beta2.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.memcache.v1beta2.OperationMetadata parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.memcache.v1beta2.OperationMetadata parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.memcache.v1beta2.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.memcache.v1beta2.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.memcache.v1beta2.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.memcache.v1beta2.OperationMetadata prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Represents the metadata of a long-running operation.
    * 
* * Protobuf type {@code google.cloud.memcache.v1beta2.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.memcache.v1beta2.OperationMetadata) com.google.cloud.memcache.v1beta2.OperationMetadataOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.memcache.v1beta2.CloudMemcacheProto.internal_static_google_cloud_memcache_v1beta2_OperationMetadata_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.memcache.v1beta2.CloudMemcacheProto + .internal_static_google_cloud_memcache_v1beta2_OperationMetadata_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.memcache.v1beta2.CloudMemcacheProto.internal_static_google_cloud_memcache_v1beta2_OperationMetadata_fieldAccessorTable + return com.google.cloud.memcache.v1beta2.CloudMemcacheProto + .internal_static_google_cloud_memcache_v1beta2_OperationMetadata_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.memcache.v1beta2.OperationMetadata.class, com.google.cloud.memcache.v1beta2.OperationMetadata.Builder.class); + com.google.cloud.memcache.v1beta2.OperationMetadata.class, + com.google.cloud.memcache.v1beta2.OperationMetadata.Builder.class); } // Construct using com.google.cloud.memcache.v1beta2.OperationMetadata.newBuilder() @@ -680,16 +743,15 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -719,9 +781,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.memcache.v1beta2.CloudMemcacheProto.internal_static_google_cloud_memcache_v1beta2_OperationMetadata_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.memcache.v1beta2.CloudMemcacheProto + .internal_static_google_cloud_memcache_v1beta2_OperationMetadata_descriptor; } @java.lang.Override @@ -740,7 +802,8 @@ public com.google.cloud.memcache.v1beta2.OperationMetadata build() { @java.lang.Override public com.google.cloud.memcache.v1beta2.OperationMetadata buildPartial() { - com.google.cloud.memcache.v1beta2.OperationMetadata result = new com.google.cloud.memcache.v1beta2.OperationMetadata(this); + com.google.cloud.memcache.v1beta2.OperationMetadata result = + new com.google.cloud.memcache.v1beta2.OperationMetadata(this); if (createTimeBuilder_ == null) { result.createTime_ = createTime_; } else { @@ -764,38 +827,39 @@ public com.google.cloud.memcache.v1beta2.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.memcache.v1beta2.OperationMetadata) { - return mergeFrom((com.google.cloud.memcache.v1beta2.OperationMetadata)other); + return mergeFrom((com.google.cloud.memcache.v1beta2.OperationMetadata) other); } else { super.mergeFrom(other); return this; @@ -803,7 +867,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.memcache.v1beta2.OperationMetadata other) { - if (other == com.google.cloud.memcache.v1beta2.OperationMetadata.getDefaultInstance()) return this; + if (other == com.google.cloud.memcache.v1beta2.OperationMetadata.getDefaultInstance()) + return this; if (other.hasCreateTime()) { mergeCreateTime(other.getCreateTime()); } @@ -848,7 +913,8 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.memcache.v1beta2.OperationMetadata) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.memcache.v1beta2.OperationMetadata) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -860,39 +926,58 @@ public Builder mergeFrom( private com.google.protobuf.Timestamp createTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> createTimeBuilder_; + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + createTimeBuilder_; /** + * + * *
      * Output only. Time when the operation was created.
      * 
* - * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the createTime field is set. */ public boolean hasCreateTime() { return createTimeBuilder_ != null || createTime_ != null; } /** + * + * *
      * Output only. Time when the operation was created.
      * 
* - * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The createTime. */ public com.google.protobuf.Timestamp getCreateTime() { if (createTimeBuilder_ == null) { - return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; + return createTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : createTime_; } else { return createTimeBuilder_.getMessage(); } } /** + * + * *
      * Output only. Time when the operation was created.
      * 
* - * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder setCreateTime(com.google.protobuf.Timestamp value) { if (createTimeBuilder_ == null) { @@ -908,14 +993,17 @@ public Builder setCreateTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * Output only. Time when the operation was created.
      * 
* - * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public Builder setCreateTime( - com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForValue) { if (createTimeBuilder_ == null) { createTime_ = builderForValue.build(); onChanged(); @@ -926,17 +1014,21 @@ public Builder setCreateTime( return this; } /** + * + * *
      * Output only. Time when the operation was created.
      * 
* - * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { if (createTimeBuilder_ == null) { if (createTime_ != null) { createTime_ = - com.google.protobuf.Timestamp.newBuilder(createTime_).mergeFrom(value).buildPartial(); + com.google.protobuf.Timestamp.newBuilder(createTime_).mergeFrom(value).buildPartial(); } else { createTime_ = value; } @@ -948,11 +1040,15 @@ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * Output only. Time when the operation was created.
      * 
* - * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder clearCreateTime() { if (createTimeBuilder_ == null) { @@ -966,48 +1062,64 @@ public Builder clearCreateTime() { return this; } /** + * + * *
      * Output only. Time when the operation was created.
      * 
* - * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { - + onChanged(); return getCreateTimeFieldBuilder().getBuilder(); } /** + * + * *
      * Output only. Time when the operation was created.
      * 
* - * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { if (createTimeBuilder_ != null) { return createTimeBuilder_.getMessageOrBuilder(); } else { - return createTime_ == null ? - com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; + return createTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : createTime_; } } /** + * + * *
      * Output only. Time when the operation was created.
      * 
* - * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> getCreateTimeFieldBuilder() { if (createTimeBuilder_ == null) { - createTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( - getCreateTime(), - getParentForChildren(), - isClean()); + createTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getCreateTime(), getParentForChildren(), isClean()); createTime_ = null; } return createTimeBuilder_; @@ -1015,24 +1127,35 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { private com.google.protobuf.Timestamp endTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> endTimeBuilder_; + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + endTimeBuilder_; /** + * + * *
      * Output only. Time when the operation finished running.
      * 
* - * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the endTime field is set. */ public boolean hasEndTime() { return endTimeBuilder_ != null || endTime_ != null; } /** + * + * *
      * Output only. Time when the operation finished running.
      * 
* - * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The endTime. */ public com.google.protobuf.Timestamp getEndTime() { @@ -1043,11 +1166,14 @@ public com.google.protobuf.Timestamp getEndTime() { } } /** + * + * *
      * Output only. Time when the operation finished running.
      * 
* - * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder setEndTime(com.google.protobuf.Timestamp value) { if (endTimeBuilder_ == null) { @@ -1063,14 +1189,16 @@ public Builder setEndTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * Output only. Time when the operation finished running.
      * 
* - * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public Builder setEndTime( - com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setEndTime(com.google.protobuf.Timestamp.Builder builderForValue) { if (endTimeBuilder_ == null) { endTime_ = builderForValue.build(); onChanged(); @@ -1081,17 +1209,20 @@ public Builder setEndTime( return this; } /** + * + * *
      * Output only. Time when the operation finished running.
      * 
* - * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder mergeEndTime(com.google.protobuf.Timestamp value) { if (endTimeBuilder_ == null) { if (endTime_ != null) { endTime_ = - com.google.protobuf.Timestamp.newBuilder(endTime_).mergeFrom(value).buildPartial(); + com.google.protobuf.Timestamp.newBuilder(endTime_).mergeFrom(value).buildPartial(); } else { endTime_ = value; } @@ -1103,11 +1234,14 @@ public Builder mergeEndTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * Output only. Time when the operation finished running.
      * 
* - * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder clearEndTime() { if (endTimeBuilder_ == null) { @@ -1121,48 +1255,59 @@ public Builder clearEndTime() { return this; } /** + * + * *
      * Output only. Time when the operation finished running.
      * 
* - * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public com.google.protobuf.Timestamp.Builder getEndTimeBuilder() { - + onChanged(); return getEndTimeFieldBuilder().getBuilder(); } /** + * + * *
      * Output only. Time when the operation finished running.
      * 
* - * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder() { if (endTimeBuilder_ != null) { return endTimeBuilder_.getMessageOrBuilder(); } else { - return endTime_ == null ? - com.google.protobuf.Timestamp.getDefaultInstance() : endTime_; + return endTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : endTime_; } } /** + * + * *
      * Output only. Time when the operation finished running.
      * 
* - * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> getEndTimeFieldBuilder() { if (endTimeBuilder_ == null) { - endTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( - getEndTime(), - getParentForChildren(), - isClean()); + endTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getEndTime(), getParentForChildren(), isClean()); endTime_ = null; } return endTimeBuilder_; @@ -1170,18 +1315,20 @@ public com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder() { private java.lang.Object target_ = ""; /** + * + * *
      * Output only. Server-defined resource path for the target of the operation.
      * 
* * string target = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The target. */ public java.lang.String getTarget() { java.lang.Object ref = target_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); target_ = s; return s; @@ -1190,20 +1337,21 @@ public java.lang.String getTarget() { } } /** + * + * *
      * Output only. Server-defined resource path for the target of the operation.
      * 
* * string target = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for target. */ - public com.google.protobuf.ByteString - getTargetBytes() { + public com.google.protobuf.ByteString getTargetBytes() { java.lang.Object ref = target_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); target_ = b; return b; } else { @@ -1211,54 +1359,61 @@ public java.lang.String getTarget() { } } /** + * + * *
      * Output only. Server-defined resource path for the target of the operation.
      * 
* * string target = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @param value The target to set. * @return This builder for chaining. */ - public Builder setTarget( - java.lang.String value) { + public Builder setTarget(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + target_ = value; onChanged(); return this; } /** + * + * *
      * Output only. Server-defined resource path for the target of the operation.
      * 
* * string target = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return This builder for chaining. */ public Builder clearTarget() { - + target_ = getDefaultInstance().getTarget(); onChanged(); return this; } /** + * + * *
      * Output only. Server-defined resource path for the target of the operation.
      * 
* * string target = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @param value The bytes for target to set. * @return This builder for chaining. */ - public Builder setTargetBytes( - com.google.protobuf.ByteString value) { + public Builder setTargetBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + target_ = value; onChanged(); return this; @@ -1266,18 +1421,20 @@ public Builder setTargetBytes( private java.lang.Object verb_ = ""; /** + * + * *
      * Output only. Name of the verb executed by the operation.
      * 
* * string verb = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The verb. */ public java.lang.String getVerb() { java.lang.Object ref = verb_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); verb_ = s; return s; @@ -1286,20 +1443,21 @@ public java.lang.String getVerb() { } } /** + * + * *
      * Output only. Name of the verb executed by the operation.
      * 
* * string verb = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for verb. */ - public com.google.protobuf.ByteString - getVerbBytes() { + public com.google.protobuf.ByteString getVerbBytes() { java.lang.Object ref = verb_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); verb_ = b; return b; } else { @@ -1307,54 +1465,61 @@ public java.lang.String getVerb() { } } /** + * + * *
      * Output only. Name of the verb executed by the operation.
      * 
* * string verb = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @param value The verb to set. * @return This builder for chaining. */ - public Builder setVerb( - java.lang.String value) { + public Builder setVerb(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + verb_ = value; onChanged(); return this; } /** + * + * *
      * Output only. Name of the verb executed by the operation.
      * 
* * string verb = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return This builder for chaining. */ public Builder clearVerb() { - + verb_ = getDefaultInstance().getVerb(); onChanged(); return this; } /** + * + * *
      * Output only. Name of the verb executed by the operation.
      * 
* * string verb = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @param value The bytes for verb to set. * @return This builder for chaining. */ - public Builder setVerbBytes( - com.google.protobuf.ByteString value) { + public Builder setVerbBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + verb_ = value; onChanged(); return this; @@ -1362,18 +1527,20 @@ public Builder setVerbBytes( private java.lang.Object statusDetail_ = ""; /** + * + * *
      * Output only. Human-readable status of the operation, if any.
      * 
* * string status_detail = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @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; @@ -1382,20 +1549,21 @@ public java.lang.String getStatusDetail() { } } /** + * + * *
      * Output only. Human-readable status of the operation, if any.
      * 
* * string status_detail = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @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 { @@ -1403,61 +1571,70 @@ public java.lang.String getStatusDetail() { } } /** + * + * *
      * Output only. Human-readable status of the operation, if any.
      * 
* * string status_detail = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @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; } /** + * + * *
      * Output only. Human-readable status of the operation, if any.
      * 
* * string status_detail = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return This builder for chaining. */ public Builder clearStatusDetail() { - + statusDetail_ = getDefaultInstance().getStatusDetail(); onChanged(); return this; } /** + * + * *
      * Output only. Human-readable status of the operation, if any.
      * 
* * string status_detail = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @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_; /** + * + * *
      * Output only. Identifies whether the user has requested cancellation
      * of the operation. Operations that have successfully been cancelled
@@ -1466,6 +1643,7 @@ public Builder setStatusDetailBytes(
      * 
* * bool cancel_requested = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The cancelRequested. */ @java.lang.Override @@ -1473,6 +1651,8 @@ public boolean getCancelRequested() { return cancelRequested_; } /** + * + * *
      * Output only. Identifies whether the user has requested cancellation
      * of the operation. Operations that have successfully been cancelled
@@ -1481,16 +1661,19 @@ public boolean getCancelRequested() {
      * 
* * bool cancel_requested = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @param value The cancelRequested to set. * @return This builder for chaining. */ public Builder setCancelRequested(boolean value) { - + cancelRequested_ = value; onChanged(); return this; } /** + * + * *
      * Output only. Identifies whether the user has requested cancellation
      * of the operation. Operations that have successfully been cancelled
@@ -1499,10 +1682,11 @@ public Builder setCancelRequested(boolean value) {
      * 
* * bool cancel_requested = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return This builder for chaining. */ public Builder clearCancelRequested() { - + cancelRequested_ = false; onChanged(); return this; @@ -1510,18 +1694,20 @@ public Builder clearCancelRequested() { private java.lang.Object apiVersion_ = ""; /** + * + * *
      * Output only. API version used to start the operation.
      * 
* * string api_version = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The apiVersion. */ public java.lang.String getApiVersion() { java.lang.Object ref = apiVersion_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); apiVersion_ = s; return s; @@ -1530,20 +1716,21 @@ public java.lang.String getApiVersion() { } } /** + * + * *
      * Output only. API version used to start the operation.
      * 
* * string api_version = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for apiVersion. */ - public com.google.protobuf.ByteString - getApiVersionBytes() { + public com.google.protobuf.ByteString getApiVersionBytes() { java.lang.Object ref = apiVersion_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); apiVersion_ = b; return b; } else { @@ -1551,61 +1738,68 @@ public java.lang.String getApiVersion() { } } /** + * + * *
      * Output only. API version used to start the operation.
      * 
* * string api_version = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @param value The apiVersion to set. * @return This builder for chaining. */ - public Builder setApiVersion( - java.lang.String value) { + public Builder setApiVersion(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + apiVersion_ = value; onChanged(); return this; } /** + * + * *
      * Output only. API version used to start the operation.
      * 
* * string api_version = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return This builder for chaining. */ public Builder clearApiVersion() { - + apiVersion_ = getDefaultInstance().getApiVersion(); onChanged(); return this; } /** + * + * *
      * Output only. API version used to start the operation.
      * 
* * string api_version = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @param value The bytes for apiVersion to set. * @return This builder for chaining. */ - public Builder setApiVersionBytes( - com.google.protobuf.ByteString value) { + public Builder setApiVersionBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + apiVersion_ = value; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1615,12 +1809,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.memcache.v1beta2.OperationMetadata) } // @@protoc_insertion_point(class_scope:google.cloud.memcache.v1beta2.OperationMetadata) private static final com.google.cloud.memcache.v1beta2.OperationMetadata DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.memcache.v1beta2.OperationMetadata(); } @@ -1629,16 +1823,16 @@ public static com.google.cloud.memcache.v1beta2.OperationMetadata getDefaultInst 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; @@ -1653,6 +1847,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.memcache.v1beta2.OperationMetadata getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1beta2/proto-google-cloud-memcache-v1beta2/src/main/java/com/google/cloud/memcache/v1beta2/OperationMetadataOrBuilder.java b/proto-google-cloud-memcache-v1beta2/src/main/java/com/google/cloud/memcache/v1beta2/OperationMetadataOrBuilder.java similarity index 75% rename from owl-bot-staging/v1beta2/proto-google-cloud-memcache-v1beta2/src/main/java/com/google/cloud/memcache/v1beta2/OperationMetadataOrBuilder.java rename to proto-google-cloud-memcache-v1beta2/src/main/java/com/google/cloud/memcache/v1beta2/OperationMetadataOrBuilder.java index 90d3b270..fee00a2b 100644 --- a/owl-bot-staging/v1beta2/proto-google-cloud-memcache-v1beta2/src/main/java/com/google/cloud/memcache/v1beta2/OperationMetadataOrBuilder.java +++ b/proto-google-cloud-memcache-v1beta2/src/main/java/com/google/cloud/memcache/v1beta2/OperationMetadataOrBuilder.java @@ -1,127 +1,182 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/memcache/v1beta2/cloud_memcache.proto package com.google.cloud.memcache.v1beta2; -public interface OperationMetadataOrBuilder extends +public interface OperationMetadataOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.memcache.v1beta2.OperationMetadata) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Output only. Time when the operation was created.
    * 
* - * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the createTime field is set. */ boolean hasCreateTime(); /** + * + * *
    * Output only. Time when the operation was created.
    * 
* - * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The createTime. */ com.google.protobuf.Timestamp getCreateTime(); /** + * + * *
    * Output only. Time when the operation was created.
    * 
* - * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder(); /** + * + * *
    * Output only. Time when the operation finished running.
    * 
* - * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the endTime field is set. */ boolean hasEndTime(); /** + * + * *
    * Output only. Time when the operation finished running.
    * 
* - * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The endTime. */ com.google.protobuf.Timestamp getEndTime(); /** + * + * *
    * Output only. Time when the operation finished running.
    * 
* - * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder(); /** + * + * *
    * Output only. Server-defined resource path for the target of the operation.
    * 
* * string target = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The target. */ java.lang.String getTarget(); /** + * + * *
    * Output only. Server-defined resource path for the target of the operation.
    * 
* * string target = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for target. */ - com.google.protobuf.ByteString - getTargetBytes(); + com.google.protobuf.ByteString getTargetBytes(); /** + * + * *
    * Output only. Name of the verb executed by the operation.
    * 
* * string verb = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The verb. */ java.lang.String getVerb(); /** + * + * *
    * Output only. Name of the verb executed by the operation.
    * 
* * string verb = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for verb. */ - com.google.protobuf.ByteString - getVerbBytes(); + com.google.protobuf.ByteString getVerbBytes(); /** + * + * *
    * Output only. Human-readable status of the operation, if any.
    * 
* * string status_detail = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The statusDetail. */ java.lang.String getStatusDetail(); /** + * + * *
    * Output only. Human-readable status of the operation, if any.
    * 
* * string status_detail = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for statusDetail. */ - com.google.protobuf.ByteString - getStatusDetailBytes(); + com.google.protobuf.ByteString getStatusDetailBytes(); /** + * + * *
    * Output only. Identifies whether the user has requested cancellation
    * of the operation. Operations that have successfully been cancelled
@@ -130,27 +185,33 @@ public interface OperationMetadataOrBuilder extends
    * 
* * bool cancel_requested = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The cancelRequested. */ boolean getCancelRequested(); /** + * + * *
    * Output only. API version used to start the operation.
    * 
* * string api_version = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The apiVersion. */ java.lang.String getApiVersion(); /** + * + * *
    * Output only. API version used to start the operation.
    * 
* * string api_version = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for apiVersion. */ - com.google.protobuf.ByteString - getApiVersionBytes(); + com.google.protobuf.ByteString getApiVersionBytes(); } diff --git a/owl-bot-staging/v1beta2/proto-google-cloud-memcache-v1beta2/src/main/java/com/google/cloud/memcache/v1beta2/UpdateInstanceRequest.java b/proto-google-cloud-memcache-v1beta2/src/main/java/com/google/cloud/memcache/v1beta2/UpdateInstanceRequest.java similarity index 65% rename from owl-bot-staging/v1beta2/proto-google-cloud-memcache-v1beta2/src/main/java/com/google/cloud/memcache/v1beta2/UpdateInstanceRequest.java rename to proto-google-cloud-memcache-v1beta2/src/main/java/com/google/cloud/memcache/v1beta2/UpdateInstanceRequest.java index ecf1e017..a3f8920c 100644 --- a/owl-bot-staging/v1beta2/proto-google-cloud-memcache-v1beta2/src/main/java/com/google/cloud/memcache/v1beta2/UpdateInstanceRequest.java +++ b/proto-google-cloud-memcache-v1beta2/src/main/java/com/google/cloud/memcache/v1beta2/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/memcache/v1beta2/cloud_memcache.proto package com.google.cloud.memcache.v1beta2; /** + * + * *
  * Request for [UpdateInstance][google.cloud.memcache.v1beta2.CloudMemcache.UpdateInstance].
  * 
* * Protobuf type {@code google.cloud.memcache.v1beta2.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.memcache.v1beta2.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.memcache.v1beta2.Instance.Builder subBuilder = null; - if (resource_ != null) { - subBuilder = resource_.toBuilder(); - } - resource_ = input.readMessage(com.google.cloud.memcache.v1beta2.Instance.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(resource_); - resource_ = subBuilder.buildPartial(); + break; } + case 18: + { + com.google.cloud.memcache.v1beta2.Instance.Builder subBuilder = null; + if (resource_ != null) { + subBuilder = resource_.toBuilder(); + } + resource_ = + input.readMessage( + com.google.cloud.memcache.v1beta2.Instance.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(resource_); + resource_ = 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,35 +113,41 @@ 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.memcache.v1beta2.CloudMemcacheProto.internal_static_google_cloud_memcache_v1beta2_UpdateInstanceRequest_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.memcache.v1beta2.CloudMemcacheProto + .internal_static_google_cloud_memcache_v1beta2_UpdateInstanceRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.memcache.v1beta2.CloudMemcacheProto.internal_static_google_cloud_memcache_v1beta2_UpdateInstanceRequest_fieldAccessorTable + return com.google.cloud.memcache.v1beta2.CloudMemcacheProto + .internal_static_google_cloud_memcache_v1beta2_UpdateInstanceRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.memcache.v1beta2.UpdateInstanceRequest.class, com.google.cloud.memcache.v1beta2.UpdateInstanceRequest.Builder.class); + com.google.cloud.memcache.v1beta2.UpdateInstanceRequest.class, + com.google.cloud.memcache.v1beta2.UpdateInstanceRequest.Builder.class); } public static final int UPDATE_MASK_FIELD_NUMBER = 1; private com.google.protobuf.FieldMask updateMask_; /** + * + * *
    * Required. Mask of fields to update.
    *  *  `displayName`
    * 
* - * .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 @@ -128,12 +155,16 @@ public boolean hasUpdateMask() { return updateMask_ != null; } /** + * + * *
    * Required. Mask of fields to update.
    *  *  `displayName`
    * 
* - * .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 @@ -141,12 +172,15 @@ public com.google.protobuf.FieldMask getUpdateMask() { return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; } /** + * + * *
    * Required. Mask of fields to update.
    *  *  `displayName`
    * 
* - * .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() { @@ -156,12 +190,17 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { public static final int RESOURCE_FIELD_NUMBER = 2; private com.google.cloud.memcache.v1beta2.Instance resource_; /** + * + * *
    * Required. A Memcached [Instance] resource.
    * Only fields specified in update_mask are updated.
    * 
* - * .google.cloud.memcache.v1beta2.Instance resource = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.memcache.v1beta2.Instance resource = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the resource field is set. */ @java.lang.Override @@ -169,25 +208,36 @@ public boolean hasResource() { return resource_ != null; } /** + * + * *
    * Required. A Memcached [Instance] resource.
    * Only fields specified in update_mask are updated.
    * 
* - * .google.cloud.memcache.v1beta2.Instance resource = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.memcache.v1beta2.Instance resource = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The resource. */ @java.lang.Override public com.google.cloud.memcache.v1beta2.Instance getResource() { - return resource_ == null ? com.google.cloud.memcache.v1beta2.Instance.getDefaultInstance() : resource_; + return resource_ == null + ? com.google.cloud.memcache.v1beta2.Instance.getDefaultInstance() + : resource_; } /** + * + * *
    * Required. A Memcached [Instance] resource.
    * Only fields specified in update_mask are updated.
    * 
* - * .google.cloud.memcache.v1beta2.Instance resource = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.memcache.v1beta2.Instance resource = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ @java.lang.Override public com.google.cloud.memcache.v1beta2.InstanceOrBuilder getResourceOrBuilder() { @@ -195,6 +245,7 @@ public com.google.cloud.memcache.v1beta2.InstanceOrBuilder getResourceOrBuilder( } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -206,8 +257,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (updateMask_ != null) { output.writeMessage(1, getUpdateMask()); } @@ -224,12 +274,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 (resource_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getResource()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getResource()); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -239,22 +287,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.memcache.v1beta2.UpdateInstanceRequest)) { return super.equals(obj); } - com.google.cloud.memcache.v1beta2.UpdateInstanceRequest other = (com.google.cloud.memcache.v1beta2.UpdateInstanceRequest) obj; + com.google.cloud.memcache.v1beta2.UpdateInstanceRequest other = + (com.google.cloud.memcache.v1beta2.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 (hasResource() != other.hasResource()) return false; if (hasResource()) { - if (!getResource() - .equals(other.getResource())) return false; + if (!getResource().equals(other.getResource())) return false; } if (!unknownFields.equals(other.unknownFields)) return false; return true; @@ -281,117 +328,127 @@ public int hashCode() { } public static com.google.cloud.memcache.v1beta2.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.memcache.v1beta2.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.memcache.v1beta2.UpdateInstanceRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.memcache.v1beta2.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.memcache.v1beta2.UpdateInstanceRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.memcache.v1beta2.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.memcache.v1beta2.UpdateInstanceRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.memcache.v1beta2.UpdateInstanceRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.memcache.v1beta2.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.memcache.v1beta2.UpdateInstanceRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.memcache.v1beta2.UpdateInstanceRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.memcache.v1beta2.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.memcache.v1beta2.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.memcache.v1beta2.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.memcache.v1beta2.UpdateInstanceRequest prototype) { + + public static Builder newBuilder( + com.google.cloud.memcache.v1beta2.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.memcache.v1beta2.CloudMemcache.UpdateInstance].
    * 
* * Protobuf type {@code google.cloud.memcache.v1beta2.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.memcache.v1beta2.UpdateInstanceRequest) com.google.cloud.memcache.v1beta2.UpdateInstanceRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.memcache.v1beta2.CloudMemcacheProto.internal_static_google_cloud_memcache_v1beta2_UpdateInstanceRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.memcache.v1beta2.CloudMemcacheProto + .internal_static_google_cloud_memcache_v1beta2_UpdateInstanceRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.memcache.v1beta2.CloudMemcacheProto.internal_static_google_cloud_memcache_v1beta2_UpdateInstanceRequest_fieldAccessorTable + return com.google.cloud.memcache.v1beta2.CloudMemcacheProto + .internal_static_google_cloud_memcache_v1beta2_UpdateInstanceRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.memcache.v1beta2.UpdateInstanceRequest.class, com.google.cloud.memcache.v1beta2.UpdateInstanceRequest.Builder.class); + com.google.cloud.memcache.v1beta2.UpdateInstanceRequest.class, + com.google.cloud.memcache.v1beta2.UpdateInstanceRequest.Builder.class); } // Construct using com.google.cloud.memcache.v1beta2.UpdateInstanceRequest.newBuilder() @@ -399,16 +456,15 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -428,9 +484,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.memcache.v1beta2.CloudMemcacheProto.internal_static_google_cloud_memcache_v1beta2_UpdateInstanceRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.memcache.v1beta2.CloudMemcacheProto + .internal_static_google_cloud_memcache_v1beta2_UpdateInstanceRequest_descriptor; } @java.lang.Override @@ -449,7 +505,8 @@ public com.google.cloud.memcache.v1beta2.UpdateInstanceRequest build() { @java.lang.Override public com.google.cloud.memcache.v1beta2.UpdateInstanceRequest buildPartial() { - com.google.cloud.memcache.v1beta2.UpdateInstanceRequest result = new com.google.cloud.memcache.v1beta2.UpdateInstanceRequest(this); + com.google.cloud.memcache.v1beta2.UpdateInstanceRequest result = + new com.google.cloud.memcache.v1beta2.UpdateInstanceRequest(this); if (updateMaskBuilder_ == null) { result.updateMask_ = updateMask_; } else { @@ -468,38 +525,39 @@ public com.google.cloud.memcache.v1beta2.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.memcache.v1beta2.UpdateInstanceRequest) { - return mergeFrom((com.google.cloud.memcache.v1beta2.UpdateInstanceRequest)other); + return mergeFrom((com.google.cloud.memcache.v1beta2.UpdateInstanceRequest) other); } else { super.mergeFrom(other); return this; @@ -507,7 +565,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.memcache.v1beta2.UpdateInstanceRequest other) { - if (other == com.google.cloud.memcache.v1beta2.UpdateInstanceRequest.getDefaultInstance()) return this; + if (other == com.google.cloud.memcache.v1beta2.UpdateInstanceRequest.getDefaultInstance()) + return this; if (other.hasUpdateMask()) { mergeUpdateMask(other.getUpdateMask()); } @@ -533,7 +592,8 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.memcache.v1beta2.UpdateInstanceRequest) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.memcache.v1beta2.UpdateInstanceRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -545,42 +605,58 @@ 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.
      *  *  `displayName`
      * 
* - * .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.
      *  *  `displayName`
      * 
* - * .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.
      *  *  `displayName`
      * 
* - * .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) { @@ -596,15 +672,17 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask value) { return this; } /** + * + * *
      * Required. Mask of fields to update.
      *  *  `displayName`
      * 
* - * .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(); @@ -615,18 +693,21 @@ public Builder setUpdateMask( return this; } /** + * + * *
      * Required. Mask of fields to update.
      *  *  `displayName`
      * 
* - * .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; } @@ -638,12 +719,15 @@ public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) { return this; } /** + * + * *
      * Required. Mask of fields to update.
      *  *  `displayName`
      * 
* - * .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) { @@ -657,51 +741,64 @@ public Builder clearUpdateMask() { return this; } /** + * + * *
      * Required. Mask of fields to update.
      *  *  `displayName`
      * 
* - * .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.
      *  *  `displayName`
      * 
* - * .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.
      *  *  `displayName`
      * 
* - * .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_; @@ -709,42 +806,61 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { private com.google.cloud.memcache.v1beta2.Instance resource_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.memcache.v1beta2.Instance, com.google.cloud.memcache.v1beta2.Instance.Builder, com.google.cloud.memcache.v1beta2.InstanceOrBuilder> resourceBuilder_; + com.google.cloud.memcache.v1beta2.Instance, + com.google.cloud.memcache.v1beta2.Instance.Builder, + com.google.cloud.memcache.v1beta2.InstanceOrBuilder> + resourceBuilder_; /** + * + * *
      * Required. A Memcached [Instance] resource.
      * Only fields specified in update_mask are updated.
      * 
* - * .google.cloud.memcache.v1beta2.Instance resource = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.memcache.v1beta2.Instance resource = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the resource field is set. */ public boolean hasResource() { return resourceBuilder_ != null || resource_ != null; } /** + * + * *
      * Required. A Memcached [Instance] resource.
      * Only fields specified in update_mask are updated.
      * 
* - * .google.cloud.memcache.v1beta2.Instance resource = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.memcache.v1beta2.Instance resource = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The resource. */ public com.google.cloud.memcache.v1beta2.Instance getResource() { if (resourceBuilder_ == null) { - return resource_ == null ? com.google.cloud.memcache.v1beta2.Instance.getDefaultInstance() : resource_; + return resource_ == null + ? com.google.cloud.memcache.v1beta2.Instance.getDefaultInstance() + : resource_; } else { return resourceBuilder_.getMessage(); } } /** + * + * *
      * Required. A Memcached [Instance] resource.
      * Only fields specified in update_mask are updated.
      * 
* - * .google.cloud.memcache.v1beta2.Instance resource = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.memcache.v1beta2.Instance resource = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder setResource(com.google.cloud.memcache.v1beta2.Instance value) { if (resourceBuilder_ == null) { @@ -760,15 +876,18 @@ public Builder setResource(com.google.cloud.memcache.v1beta2.Instance value) { return this; } /** + * + * *
      * Required. A Memcached [Instance] resource.
      * Only fields specified in update_mask are updated.
      * 
* - * .google.cloud.memcache.v1beta2.Instance resource = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.memcache.v1beta2.Instance resource = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ - public Builder setResource( - com.google.cloud.memcache.v1beta2.Instance.Builder builderForValue) { + public Builder setResource(com.google.cloud.memcache.v1beta2.Instance.Builder builderForValue) { if (resourceBuilder_ == null) { resource_ = builderForValue.build(); onChanged(); @@ -779,18 +898,24 @@ public Builder setResource( return this; } /** + * + * *
      * Required. A Memcached [Instance] resource.
      * Only fields specified in update_mask are updated.
      * 
* - * .google.cloud.memcache.v1beta2.Instance resource = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.memcache.v1beta2.Instance resource = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder mergeResource(com.google.cloud.memcache.v1beta2.Instance value) { if (resourceBuilder_ == null) { if (resource_ != null) { resource_ = - com.google.cloud.memcache.v1beta2.Instance.newBuilder(resource_).mergeFrom(value).buildPartial(); + com.google.cloud.memcache.v1beta2.Instance.newBuilder(resource_) + .mergeFrom(value) + .buildPartial(); } else { resource_ = value; } @@ -802,12 +927,16 @@ public Builder mergeResource(com.google.cloud.memcache.v1beta2.Instance value) { return this; } /** + * + * *
      * Required. A Memcached [Instance] resource.
      * Only fields specified in update_mask are updated.
      * 
* - * .google.cloud.memcache.v1beta2.Instance resource = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.memcache.v1beta2.Instance resource = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder clearResource() { if (resourceBuilder_ == null) { @@ -821,58 +950,74 @@ public Builder clearResource() { return this; } /** + * + * *
      * Required. A Memcached [Instance] resource.
      * Only fields specified in update_mask are updated.
      * 
* - * .google.cloud.memcache.v1beta2.Instance resource = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.memcache.v1beta2.Instance resource = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.cloud.memcache.v1beta2.Instance.Builder getResourceBuilder() { - + onChanged(); return getResourceFieldBuilder().getBuilder(); } /** + * + * *
      * Required. A Memcached [Instance] resource.
      * Only fields specified in update_mask are updated.
      * 
* - * .google.cloud.memcache.v1beta2.Instance resource = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.memcache.v1beta2.Instance resource = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.cloud.memcache.v1beta2.InstanceOrBuilder getResourceOrBuilder() { if (resourceBuilder_ != null) { return resourceBuilder_.getMessageOrBuilder(); } else { - return resource_ == null ? - com.google.cloud.memcache.v1beta2.Instance.getDefaultInstance() : resource_; + return resource_ == null + ? com.google.cloud.memcache.v1beta2.Instance.getDefaultInstance() + : resource_; } } /** + * + * *
      * Required. A Memcached [Instance] resource.
      * Only fields specified in update_mask are updated.
      * 
* - * .google.cloud.memcache.v1beta2.Instance resource = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.memcache.v1beta2.Instance resource = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.memcache.v1beta2.Instance, com.google.cloud.memcache.v1beta2.Instance.Builder, com.google.cloud.memcache.v1beta2.InstanceOrBuilder> + com.google.cloud.memcache.v1beta2.Instance, + com.google.cloud.memcache.v1beta2.Instance.Builder, + com.google.cloud.memcache.v1beta2.InstanceOrBuilder> getResourceFieldBuilder() { if (resourceBuilder_ == null) { - resourceBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.memcache.v1beta2.Instance, com.google.cloud.memcache.v1beta2.Instance.Builder, com.google.cloud.memcache.v1beta2.InstanceOrBuilder>( - getResource(), - getParentForChildren(), - isClean()); + resourceBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.memcache.v1beta2.Instance, + com.google.cloud.memcache.v1beta2.Instance.Builder, + com.google.cloud.memcache.v1beta2.InstanceOrBuilder>( + getResource(), getParentForChildren(), isClean()); resource_ = null; } return resourceBuilder_; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -882,12 +1027,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.memcache.v1beta2.UpdateInstanceRequest) } // @@protoc_insertion_point(class_scope:google.cloud.memcache.v1beta2.UpdateInstanceRequest) private static final com.google.cloud.memcache.v1beta2.UpdateInstanceRequest DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.memcache.v1beta2.UpdateInstanceRequest(); } @@ -896,16 +1041,16 @@ public static com.google.cloud.memcache.v1beta2.UpdateInstanceRequest getDefault 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; @@ -920,6 +1065,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.memcache.v1beta2.UpdateInstanceRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1beta2/proto-google-cloud-memcache-v1beta2/src/main/java/com/google/cloud/memcache/v1beta2/UpdateInstanceRequestOrBuilder.java b/proto-google-cloud-memcache-v1beta2/src/main/java/com/google/cloud/memcache/v1beta2/UpdateInstanceRequestOrBuilder.java similarity index 57% rename from owl-bot-staging/v1beta2/proto-google-cloud-memcache-v1beta2/src/main/java/com/google/cloud/memcache/v1beta2/UpdateInstanceRequestOrBuilder.java rename to proto-google-cloud-memcache-v1beta2/src/main/java/com/google/cloud/memcache/v1beta2/UpdateInstanceRequestOrBuilder.java index 8bb03699..1ba8536e 100644 --- a/owl-bot-staging/v1beta2/proto-google-cloud-memcache-v1beta2/src/main/java/com/google/cloud/memcache/v1beta2/UpdateInstanceRequestOrBuilder.java +++ b/proto-google-cloud-memcache-v1beta2/src/main/java/com/google/cloud/memcache/v1beta2/UpdateInstanceRequestOrBuilder.java @@ -1,69 +1,110 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/memcache/v1beta2/cloud_memcache.proto package com.google.cloud.memcache.v1beta2; -public interface UpdateInstanceRequestOrBuilder extends +public interface UpdateInstanceRequestOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.memcache.v1beta2.UpdateInstanceRequest) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Required. Mask of fields to update.
    *  *  `displayName`
    * 
* - * .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.
    *  *  `displayName`
    * 
* - * .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.
    *  *  `displayName`
    * 
* - * .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. A Memcached [Instance] resource.
    * Only fields specified in update_mask are updated.
    * 
* - * .google.cloud.memcache.v1beta2.Instance resource = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.memcache.v1beta2.Instance resource = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the resource field is set. */ boolean hasResource(); /** + * + * *
    * Required. A Memcached [Instance] resource.
    * Only fields specified in update_mask are updated.
    * 
* - * .google.cloud.memcache.v1beta2.Instance resource = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.memcache.v1beta2.Instance resource = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The resource. */ com.google.cloud.memcache.v1beta2.Instance getResource(); /** + * + * *
    * Required. A Memcached [Instance] resource.
    * Only fields specified in update_mask are updated.
    * 
* - * .google.cloud.memcache.v1beta2.Instance resource = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.memcache.v1beta2.Instance resource = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ com.google.cloud.memcache.v1beta2.InstanceOrBuilder getResourceOrBuilder(); } diff --git a/owl-bot-staging/v1beta2/proto-google-cloud-memcache-v1beta2/src/main/java/com/google/cloud/memcache/v1beta2/UpdateParametersRequest.java b/proto-google-cloud-memcache-v1beta2/src/main/java/com/google/cloud/memcache/v1beta2/UpdateParametersRequest.java similarity index 68% rename from owl-bot-staging/v1beta2/proto-google-cloud-memcache-v1beta2/src/main/java/com/google/cloud/memcache/v1beta2/UpdateParametersRequest.java rename to proto-google-cloud-memcache-v1beta2/src/main/java/com/google/cloud/memcache/v1beta2/UpdateParametersRequest.java index 23ef2744..1466051b 100644 --- a/owl-bot-staging/v1beta2/proto-google-cloud-memcache-v1beta2/src/main/java/com/google/cloud/memcache/v1beta2/UpdateParametersRequest.java +++ b/proto-google-cloud-memcache-v1beta2/src/main/java/com/google/cloud/memcache/v1beta2/UpdateParametersRequest.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/memcache/v1beta2/cloud_memcache.proto package com.google.cloud.memcache.v1beta2; /** + * + * *
  * Request for [UpdateParameters][google.cloud.memcache.v1beta2.CloudMemcache.UpdateParameters].
  * 
* * Protobuf type {@code google.cloud.memcache.v1beta2.UpdateParametersRequest} */ -public final class UpdateParametersRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class UpdateParametersRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.memcache.v1beta2.UpdateParametersRequest) UpdateParametersRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use UpdateParametersRequest.newBuilder() to construct. private UpdateParametersRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private UpdateParametersRequest() { name_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new UpdateParametersRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private UpdateParametersRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -53,45 +70,52 @@ private UpdateParametersRequest( case 0: done = true; break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); - name_ = s; - break; - } - case 18: { - com.google.protobuf.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(); + name_ = s; + break; } + case 18: + { + 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 26: { - com.google.cloud.memcache.v1beta2.MemcacheParameters.Builder subBuilder = null; - if (parameters_ != null) { - subBuilder = parameters_.toBuilder(); - } - parameters_ = input.readMessage(com.google.cloud.memcache.v1beta2.MemcacheParameters.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(parameters_); - parameters_ = subBuilder.buildPartial(); + break; } + case 26: + { + com.google.cloud.memcache.v1beta2.MemcacheParameters.Builder subBuilder = null; + if (parameters_ != null) { + subBuilder = parameters_.toBuilder(); + } + parameters_ = + input.readMessage( + com.google.cloud.memcache.v1beta2.MemcacheParameters.parser(), + extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(parameters_); + parameters_ = 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) { @@ -99,35 +123,42 @@ private UpdateParametersRequest( } 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.memcache.v1beta2.CloudMemcacheProto.internal_static_google_cloud_memcache_v1beta2_UpdateParametersRequest_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.memcache.v1beta2.CloudMemcacheProto + .internal_static_google_cloud_memcache_v1beta2_UpdateParametersRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.memcache.v1beta2.CloudMemcacheProto.internal_static_google_cloud_memcache_v1beta2_UpdateParametersRequest_fieldAccessorTable + return com.google.cloud.memcache.v1beta2.CloudMemcacheProto + .internal_static_google_cloud_memcache_v1beta2_UpdateParametersRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.memcache.v1beta2.UpdateParametersRequest.class, com.google.cloud.memcache.v1beta2.UpdateParametersRequest.Builder.class); + com.google.cloud.memcache.v1beta2.UpdateParametersRequest.class, + com.google.cloud.memcache.v1beta2.UpdateParametersRequest.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** + * + * *
    * Required. Resource name of the Memcached instance for which the parameters should be
    * updated.
    * 
* - * string name = 1 [(.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,30 +167,32 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** + * + * *
    * Required. Resource name of the Memcached instance for which the parameters should be
    * updated.
    * 
* - * string name = 1 [(.google.api.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 { @@ -170,11 +203,15 @@ public java.lang.String getName() { public static final int UPDATE_MASK_FIELD_NUMBER = 2; private com.google.protobuf.FieldMask updateMask_; /** + * + * *
    * Required. Mask of fields to update.
    * 
* - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the updateMask field is set. */ @java.lang.Override @@ -182,11 +219,15 @@ public boolean hasUpdateMask() { return updateMask_ != null; } /** + * + * *
    * Required. Mask of fields to update.
    * 
* - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The updateMask. */ @java.lang.Override @@ -194,11 +235,14 @@ public com.google.protobuf.FieldMask getUpdateMask() { return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; } /** + * + * *
    * Required. Mask of fields to update.
    * 
* - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ @java.lang.Override public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { @@ -208,11 +252,14 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { public static final int PARAMETERS_FIELD_NUMBER = 3; private com.google.cloud.memcache.v1beta2.MemcacheParameters parameters_; /** + * + * *
    * The parameters to apply to the instance.
    * 
* * .google.cloud.memcache.v1beta2.MemcacheParameters parameters = 3; + * * @return Whether the parameters field is set. */ @java.lang.Override @@ -220,18 +267,25 @@ public boolean hasParameters() { return parameters_ != null; } /** + * + * *
    * The parameters to apply to the instance.
    * 
* * .google.cloud.memcache.v1beta2.MemcacheParameters parameters = 3; + * * @return The parameters. */ @java.lang.Override public com.google.cloud.memcache.v1beta2.MemcacheParameters getParameters() { - return parameters_ == null ? com.google.cloud.memcache.v1beta2.MemcacheParameters.getDefaultInstance() : parameters_; + return parameters_ == null + ? com.google.cloud.memcache.v1beta2.MemcacheParameters.getDefaultInstance() + : parameters_; } /** + * + * *
    * The parameters to apply to the instance.
    * 
@@ -244,6 +298,7 @@ public com.google.cloud.memcache.v1beta2.MemcacheParametersOrBuilder getParamete } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -255,8 +310,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.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_); } @@ -279,12 +333,10 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); } if (updateMask_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getUpdateMask()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getUpdateMask()); } if (parameters_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(3, getParameters()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getParameters()); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -294,24 +346,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.memcache.v1beta2.UpdateParametersRequest)) { return super.equals(obj); } - com.google.cloud.memcache.v1beta2.UpdateParametersRequest other = (com.google.cloud.memcache.v1beta2.UpdateParametersRequest) obj; + com.google.cloud.memcache.v1beta2.UpdateParametersRequest other = + (com.google.cloud.memcache.v1beta2.UpdateParametersRequest) obj; - if (!getName() - .equals(other.getName())) return false; + if (!getName().equals(other.getName())) return false; if (hasUpdateMask() != other.hasUpdateMask()) return false; if (hasUpdateMask()) { - if (!getUpdateMask() - .equals(other.getUpdateMask())) return false; + if (!getUpdateMask().equals(other.getUpdateMask())) return false; } if (hasParameters() != other.hasParameters()) return false; if (hasParameters()) { - if (!getParameters() - .equals(other.getParameters())) return false; + if (!getParameters().equals(other.getParameters())) return false; } if (!unknownFields.equals(other.unknownFields)) return false; return true; @@ -340,117 +390,127 @@ public int hashCode() { } public static com.google.cloud.memcache.v1beta2.UpdateParametersRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.memcache.v1beta2.UpdateParametersRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.memcache.v1beta2.UpdateParametersRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.memcache.v1beta2.UpdateParametersRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.memcache.v1beta2.UpdateParametersRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.memcache.v1beta2.UpdateParametersRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.memcache.v1beta2.UpdateParametersRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.memcache.v1beta2.UpdateParametersRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.memcache.v1beta2.UpdateParametersRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.memcache.v1beta2.UpdateParametersRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.memcache.v1beta2.UpdateParametersRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.memcache.v1beta2.UpdateParametersRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.memcache.v1beta2.UpdateParametersRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.memcache.v1beta2.UpdateParametersRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.memcache.v1beta2.UpdateParametersRequest prototype) { + + public static Builder newBuilder( + com.google.cloud.memcache.v1beta2.UpdateParametersRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected 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 [UpdateParameters][google.cloud.memcache.v1beta2.CloudMemcache.UpdateParameters].
    * 
* * Protobuf type {@code google.cloud.memcache.v1beta2.UpdateParametersRequest} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.memcache.v1beta2.UpdateParametersRequest) com.google.cloud.memcache.v1beta2.UpdateParametersRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.memcache.v1beta2.CloudMemcacheProto.internal_static_google_cloud_memcache_v1beta2_UpdateParametersRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.memcache.v1beta2.CloudMemcacheProto + .internal_static_google_cloud_memcache_v1beta2_UpdateParametersRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.memcache.v1beta2.CloudMemcacheProto.internal_static_google_cloud_memcache_v1beta2_UpdateParametersRequest_fieldAccessorTable + return com.google.cloud.memcache.v1beta2.CloudMemcacheProto + .internal_static_google_cloud_memcache_v1beta2_UpdateParametersRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.memcache.v1beta2.UpdateParametersRequest.class, com.google.cloud.memcache.v1beta2.UpdateParametersRequest.Builder.class); + com.google.cloud.memcache.v1beta2.UpdateParametersRequest.class, + com.google.cloud.memcache.v1beta2.UpdateParametersRequest.Builder.class); } // Construct using com.google.cloud.memcache.v1beta2.UpdateParametersRequest.newBuilder() @@ -458,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(); @@ -489,9 +548,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.memcache.v1beta2.CloudMemcacheProto.internal_static_google_cloud_memcache_v1beta2_UpdateParametersRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.memcache.v1beta2.CloudMemcacheProto + .internal_static_google_cloud_memcache_v1beta2_UpdateParametersRequest_descriptor; } @java.lang.Override @@ -510,7 +569,8 @@ public com.google.cloud.memcache.v1beta2.UpdateParametersRequest build() { @java.lang.Override public com.google.cloud.memcache.v1beta2.UpdateParametersRequest buildPartial() { - com.google.cloud.memcache.v1beta2.UpdateParametersRequest result = new com.google.cloud.memcache.v1beta2.UpdateParametersRequest(this); + com.google.cloud.memcache.v1beta2.UpdateParametersRequest result = + new com.google.cloud.memcache.v1beta2.UpdateParametersRequest(this); result.name_ = name_; if (updateMaskBuilder_ == null) { result.updateMask_ = updateMask_; @@ -530,38 +590,39 @@ public com.google.cloud.memcache.v1beta2.UpdateParametersRequest buildPartial() public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.memcache.v1beta2.UpdateParametersRequest) { - return mergeFrom((com.google.cloud.memcache.v1beta2.UpdateParametersRequest)other); + return mergeFrom((com.google.cloud.memcache.v1beta2.UpdateParametersRequest) other); } else { super.mergeFrom(other); return this; @@ -569,7 +630,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.memcache.v1beta2.UpdateParametersRequest other) { - if (other == com.google.cloud.memcache.v1beta2.UpdateParametersRequest.getDefaultInstance()) return this; + if (other == com.google.cloud.memcache.v1beta2.UpdateParametersRequest.getDefaultInstance()) + return this; if (!other.getName().isEmpty()) { name_ = other.name_; onChanged(); @@ -599,7 +661,8 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.memcache.v1beta2.UpdateParametersRequest) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.memcache.v1beta2.UpdateParametersRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -611,19 +674,23 @@ public Builder mergeFrom( private java.lang.Object name_ = ""; /** + * + * *
      * Required. Resource name of the Memcached instance for which the parameters should be
      * updated.
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -632,21 +699,24 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. Resource name of the Memcached instance for which the parameters should be
      * updated.
      * 
* - * string name = 1 [(.google.api.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 { @@ -654,57 +724,70 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. Resource name of the Memcached instance for which the parameters should be
      * updated.
      * 
* - * 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. Resource name of the Memcached instance for which the parameters should be
      * updated.
      * 
* - * string 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. Resource name of the Memcached instance for which the parameters should be
      * updated.
      * 
* - * 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; @@ -712,39 +795,55 @@ public Builder setNameBytes( 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.
      * 
* - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * .google.protobuf.FieldMask update_mask = 2 [(.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.
      * 
* - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * .google.protobuf.FieldMask update_mask = 2 [(.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.
      * 
* - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder setUpdateMask(com.google.protobuf.FieldMask value) { if (updateMaskBuilder_ == null) { @@ -760,14 +859,16 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask value) { return this; } /** + * + * *
      * Required. Mask of fields to update.
      * 
* - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * .google.protobuf.FieldMask update_mask = 2 [(.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(); @@ -778,17 +879,20 @@ public Builder setUpdateMask( return this; } /** + * + * *
      * Required. Mask of fields to update.
      * 
* - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * .google.protobuf.FieldMask update_mask = 2 [(.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; } @@ -800,11 +904,14 @@ public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) { return this; } /** + * + * *
      * Required. Mask of fields to update.
      * 
* - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder clearUpdateMask() { if (updateMaskBuilder_ == null) { @@ -818,48 +925,61 @@ public Builder clearUpdateMask() { return this; } /** + * + * *
      * Required. Mask of fields to update.
      * 
* - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() { - + onChanged(); return getUpdateMaskFieldBuilder().getBuilder(); } /** + * + * *
      * Required. Mask of fields to update.
      * 
* - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * .google.protobuf.FieldMask update_mask = 2 [(.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.
      * 
* - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * .google.protobuf.FieldMask update_mask = 2 [(.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_; @@ -867,34 +987,47 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { private com.google.cloud.memcache.v1beta2.MemcacheParameters parameters_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.memcache.v1beta2.MemcacheParameters, com.google.cloud.memcache.v1beta2.MemcacheParameters.Builder, com.google.cloud.memcache.v1beta2.MemcacheParametersOrBuilder> parametersBuilder_; + com.google.cloud.memcache.v1beta2.MemcacheParameters, + com.google.cloud.memcache.v1beta2.MemcacheParameters.Builder, + com.google.cloud.memcache.v1beta2.MemcacheParametersOrBuilder> + parametersBuilder_; /** + * + * *
      * The parameters to apply to the instance.
      * 
* * .google.cloud.memcache.v1beta2.MemcacheParameters parameters = 3; + * * @return Whether the parameters field is set. */ public boolean hasParameters() { return parametersBuilder_ != null || parameters_ != null; } /** + * + * *
      * The parameters to apply to the instance.
      * 
* * .google.cloud.memcache.v1beta2.MemcacheParameters parameters = 3; + * * @return The parameters. */ public com.google.cloud.memcache.v1beta2.MemcacheParameters getParameters() { if (parametersBuilder_ == null) { - return parameters_ == null ? com.google.cloud.memcache.v1beta2.MemcacheParameters.getDefaultInstance() : parameters_; + return parameters_ == null + ? com.google.cloud.memcache.v1beta2.MemcacheParameters.getDefaultInstance() + : parameters_; } else { return parametersBuilder_.getMessage(); } } /** + * + * *
      * The parameters to apply to the instance.
      * 
@@ -915,6 +1048,8 @@ public Builder setParameters(com.google.cloud.memcache.v1beta2.MemcacheParameter return this; } /** + * + * *
      * The parameters to apply to the instance.
      * 
@@ -933,6 +1068,8 @@ public Builder setParameters( return this; } /** + * + * *
      * The parameters to apply to the instance.
      * 
@@ -943,7 +1080,9 @@ public Builder mergeParameters(com.google.cloud.memcache.v1beta2.MemcacheParamet if (parametersBuilder_ == null) { if (parameters_ != null) { parameters_ = - com.google.cloud.memcache.v1beta2.MemcacheParameters.newBuilder(parameters_).mergeFrom(value).buildPartial(); + com.google.cloud.memcache.v1beta2.MemcacheParameters.newBuilder(parameters_) + .mergeFrom(value) + .buildPartial(); } else { parameters_ = value; } @@ -955,6 +1094,8 @@ public Builder mergeParameters(com.google.cloud.memcache.v1beta2.MemcacheParamet return this; } /** + * + * *
      * The parameters to apply to the instance.
      * 
@@ -973,6 +1114,8 @@ public Builder clearParameters() { return this; } /** + * + * *
      * The parameters to apply to the instance.
      * 
@@ -980,11 +1123,13 @@ public Builder clearParameters() { * .google.cloud.memcache.v1beta2.MemcacheParameters parameters = 3; */ public com.google.cloud.memcache.v1beta2.MemcacheParameters.Builder getParametersBuilder() { - + onChanged(); return getParametersFieldBuilder().getBuilder(); } /** + * + * *
      * The parameters to apply to the instance.
      * 
@@ -995,11 +1140,14 @@ public com.google.cloud.memcache.v1beta2.MemcacheParametersOrBuilder getParamete if (parametersBuilder_ != null) { return parametersBuilder_.getMessageOrBuilder(); } else { - return parameters_ == null ? - com.google.cloud.memcache.v1beta2.MemcacheParameters.getDefaultInstance() : parameters_; + return parameters_ == null + ? com.google.cloud.memcache.v1beta2.MemcacheParameters.getDefaultInstance() + : parameters_; } } /** + * + * *
      * The parameters to apply to the instance.
      * 
@@ -1007,21 +1155,24 @@ public com.google.cloud.memcache.v1beta2.MemcacheParametersOrBuilder getParamete * .google.cloud.memcache.v1beta2.MemcacheParameters parameters = 3; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.memcache.v1beta2.MemcacheParameters, com.google.cloud.memcache.v1beta2.MemcacheParameters.Builder, com.google.cloud.memcache.v1beta2.MemcacheParametersOrBuilder> + com.google.cloud.memcache.v1beta2.MemcacheParameters, + com.google.cloud.memcache.v1beta2.MemcacheParameters.Builder, + com.google.cloud.memcache.v1beta2.MemcacheParametersOrBuilder> getParametersFieldBuilder() { if (parametersBuilder_ == null) { - parametersBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.memcache.v1beta2.MemcacheParameters, com.google.cloud.memcache.v1beta2.MemcacheParameters.Builder, com.google.cloud.memcache.v1beta2.MemcacheParametersOrBuilder>( - getParameters(), - getParentForChildren(), - isClean()); + parametersBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.memcache.v1beta2.MemcacheParameters, + com.google.cloud.memcache.v1beta2.MemcacheParameters.Builder, + com.google.cloud.memcache.v1beta2.MemcacheParametersOrBuilder>( + getParameters(), getParentForChildren(), isClean()); parameters_ = null; } return parametersBuilder_; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1031,12 +1182,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.memcache.v1beta2.UpdateParametersRequest) } // @@protoc_insertion_point(class_scope:google.cloud.memcache.v1beta2.UpdateParametersRequest) private static final com.google.cloud.memcache.v1beta2.UpdateParametersRequest DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.memcache.v1beta2.UpdateParametersRequest(); } @@ -1045,16 +1196,16 @@ public static com.google.cloud.memcache.v1beta2.UpdateParametersRequest getDefau return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public UpdateParametersRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new UpdateParametersRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public UpdateParametersRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new UpdateParametersRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1069,6 +1220,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.memcache.v1beta2.UpdateParametersRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1beta2/proto-google-cloud-memcache-v1beta2/src/main/java/com/google/cloud/memcache/v1beta2/UpdateParametersRequestOrBuilder.java b/proto-google-cloud-memcache-v1beta2/src/main/java/com/google/cloud/memcache/v1beta2/UpdateParametersRequestOrBuilder.java similarity index 63% rename from owl-bot-staging/v1beta2/proto-google-cloud-memcache-v1beta2/src/main/java/com/google/cloud/memcache/v1beta2/UpdateParametersRequestOrBuilder.java rename to proto-google-cloud-memcache-v1beta2/src/main/java/com/google/cloud/memcache/v1beta2/UpdateParametersRequestOrBuilder.java index 71c408ee..2d3b0e37 100644 --- a/owl-bot-staging/v1beta2/proto-google-cloud-memcache-v1beta2/src/main/java/com/google/cloud/memcache/v1beta2/UpdateParametersRequestOrBuilder.java +++ b/proto-google-cloud-memcache-v1beta2/src/main/java/com/google/cloud/memcache/v1beta2/UpdateParametersRequestOrBuilder.java @@ -1,80 +1,124 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/memcache/v1beta2/cloud_memcache.proto package com.google.cloud.memcache.v1beta2; -public interface UpdateParametersRequestOrBuilder extends +public interface UpdateParametersRequestOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.memcache.v1beta2.UpdateParametersRequest) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Required. Resource name of the Memcached instance for which the parameters should be
    * updated.
    * 
* - * string name = 1 [(.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. Resource name of the Memcached instance for which the parameters should be
    * updated.
    * 
* - * string name = 1 [(.google.api.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. Mask of fields to update.
    * 
* - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the updateMask field is set. */ boolean hasUpdateMask(); /** + * + * *
    * Required. Mask of fields to update.
    * 
* - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The updateMask. */ com.google.protobuf.FieldMask getUpdateMask(); /** + * + * *
    * Required. Mask of fields to update.
    * 
* - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder(); /** + * + * *
    * The parameters to apply to the instance.
    * 
* * .google.cloud.memcache.v1beta2.MemcacheParameters parameters = 3; + * * @return Whether the parameters field is set. */ boolean hasParameters(); /** + * + * *
    * The parameters to apply to the instance.
    * 
* * .google.cloud.memcache.v1beta2.MemcacheParameters parameters = 3; + * * @return The parameters. */ com.google.cloud.memcache.v1beta2.MemcacheParameters getParameters(); /** + * + * *
    * The parameters to apply to the instance.
    * 
diff --git a/owl-bot-staging/v1beta2/proto-google-cloud-memcache-v1beta2/src/main/java/com/google/cloud/memcache/v1beta2/ZoneMetadata.java b/proto-google-cloud-memcache-v1beta2/src/main/java/com/google/cloud/memcache/v1beta2/ZoneMetadata.java similarity index 67% rename from owl-bot-staging/v1beta2/proto-google-cloud-memcache-v1beta2/src/main/java/com/google/cloud/memcache/v1beta2/ZoneMetadata.java rename to proto-google-cloud-memcache-v1beta2/src/main/java/com/google/cloud/memcache/v1beta2/ZoneMetadata.java index 3068305d..dbf6a92a 100644 --- a/owl-bot-staging/v1beta2/proto-google-cloud-memcache-v1beta2/src/main/java/com/google/cloud/memcache/v1beta2/ZoneMetadata.java +++ b/proto-google-cloud-memcache-v1beta2/src/main/java/com/google/cloud/memcache/v1beta2/ZoneMetadata.java @@ -1,35 +1,47 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/memcache/v1beta2/cloud_memcache.proto package com.google.cloud.memcache.v1beta2; -/** - * Protobuf type {@code google.cloud.memcache.v1beta2.ZoneMetadata} - */ -public final class ZoneMetadata extends - com.google.protobuf.GeneratedMessageV3 implements +/** Protobuf type {@code google.cloud.memcache.v1beta2.ZoneMetadata} */ +public final class ZoneMetadata extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.memcache.v1beta2.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) @@ -48,13 +60,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) { @@ -62,27 +74,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.memcache.v1beta2.CloudMemcacheProto.internal_static_google_cloud_memcache_v1beta2_ZoneMetadata_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.memcache.v1beta2.CloudMemcacheProto + .internal_static_google_cloud_memcache_v1beta2_ZoneMetadata_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.memcache.v1beta2.CloudMemcacheProto.internal_static_google_cloud_memcache_v1beta2_ZoneMetadata_fieldAccessorTable + return com.google.cloud.memcache.v1beta2.CloudMemcacheProto + .internal_static_google_cloud_memcache_v1beta2_ZoneMetadata_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.memcache.v1beta2.ZoneMetadata.class, com.google.cloud.memcache.v1beta2.ZoneMetadata.Builder.class); + com.google.cloud.memcache.v1beta2.ZoneMetadata.class, + com.google.cloud.memcache.v1beta2.ZoneMetadata.Builder.class); } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -94,8 +109,7 @@ public final boolean isInitialized() { } @java.lang.Override - 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); } @@ -113,12 +127,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.memcache.v1beta2.ZoneMetadata)) { return super.equals(obj); } - com.google.cloud.memcache.v1beta2.ZoneMetadata other = (com.google.cloud.memcache.v1beta2.ZoneMetadata) obj; + com.google.cloud.memcache.v1beta2.ZoneMetadata other = + (com.google.cloud.memcache.v1beta2.ZoneMetadata) obj; if (!unknownFields.equals(other.unknownFields)) return false; return true; @@ -136,114 +151,119 @@ public int hashCode() { return hash; } - public static com.google.cloud.memcache.v1beta2.ZoneMetadata parseFrom( - java.nio.ByteBuffer data) + public static com.google.cloud.memcache.v1beta2.ZoneMetadata parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.memcache.v1beta2.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.memcache.v1beta2.ZoneMetadata parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.memcache.v1beta2.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.memcache.v1beta2.ZoneMetadata parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.memcache.v1beta2.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.memcache.v1beta2.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.memcache.v1beta2.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.memcache.v1beta2.ZoneMetadata parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.memcache.v1beta2.ZoneMetadata parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.memcache.v1beta2.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.memcache.v1beta2.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.memcache.v1beta2.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.memcache.v1beta2.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; } - /** - * Protobuf type {@code google.cloud.memcache.v1beta2.ZoneMetadata} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + /** Protobuf type {@code google.cloud.memcache.v1beta2.ZoneMetadata} */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.memcache.v1beta2.ZoneMetadata) com.google.cloud.memcache.v1beta2.ZoneMetadataOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.memcache.v1beta2.CloudMemcacheProto.internal_static_google_cloud_memcache_v1beta2_ZoneMetadata_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.memcache.v1beta2.CloudMemcacheProto + .internal_static_google_cloud_memcache_v1beta2_ZoneMetadata_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.memcache.v1beta2.CloudMemcacheProto.internal_static_google_cloud_memcache_v1beta2_ZoneMetadata_fieldAccessorTable + return com.google.cloud.memcache.v1beta2.CloudMemcacheProto + .internal_static_google_cloud_memcache_v1beta2_ZoneMetadata_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.memcache.v1beta2.ZoneMetadata.class, com.google.cloud.memcache.v1beta2.ZoneMetadata.Builder.class); + com.google.cloud.memcache.v1beta2.ZoneMetadata.class, + com.google.cloud.memcache.v1beta2.ZoneMetadata.Builder.class); } // Construct using com.google.cloud.memcache.v1beta2.ZoneMetadata.newBuilder() @@ -251,16 +271,15 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -268,9 +287,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.memcache.v1beta2.CloudMemcacheProto.internal_static_google_cloud_memcache_v1beta2_ZoneMetadata_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.memcache.v1beta2.CloudMemcacheProto + .internal_static_google_cloud_memcache_v1beta2_ZoneMetadata_descriptor; } @java.lang.Override @@ -289,7 +308,8 @@ public com.google.cloud.memcache.v1beta2.ZoneMetadata build() { @java.lang.Override public com.google.cloud.memcache.v1beta2.ZoneMetadata buildPartial() { - com.google.cloud.memcache.v1beta2.ZoneMetadata result = new com.google.cloud.memcache.v1beta2.ZoneMetadata(this); + com.google.cloud.memcache.v1beta2.ZoneMetadata result = + new com.google.cloud.memcache.v1beta2.ZoneMetadata(this); onBuilt(); return result; } @@ -298,38 +318,39 @@ public com.google.cloud.memcache.v1beta2.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.memcache.v1beta2.ZoneMetadata) { - return mergeFrom((com.google.cloud.memcache.v1beta2.ZoneMetadata)other); + return mergeFrom((com.google.cloud.memcache.v1beta2.ZoneMetadata) other); } else { super.mergeFrom(other); return this; @@ -366,9 +387,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); } @@ -378,12 +399,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.memcache.v1beta2.ZoneMetadata) } // @@protoc_insertion_point(class_scope:google.cloud.memcache.v1beta2.ZoneMetadata) private static final com.google.cloud.memcache.v1beta2.ZoneMetadata DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.memcache.v1beta2.ZoneMetadata(); } @@ -392,16 +413,16 @@ public static com.google.cloud.memcache.v1beta2.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; @@ -416,6 +437,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.memcache.v1beta2.ZoneMetadata getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/proto-google-cloud-memcache-v1beta2/src/main/java/com/google/cloud/memcache/v1beta2/ZoneMetadataOrBuilder.java b/proto-google-cloud-memcache-v1beta2/src/main/java/com/google/cloud/memcache/v1beta2/ZoneMetadataOrBuilder.java new file mode 100644 index 00000000..3334a89d --- /dev/null +++ b/proto-google-cloud-memcache-v1beta2/src/main/java/com/google/cloud/memcache/v1beta2/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/memcache/v1beta2/cloud_memcache.proto + +package com.google.cloud.memcache.v1beta2; + +public interface ZoneMetadataOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.memcache.v1beta2.ZoneMetadata) + com.google.protobuf.MessageOrBuilder {} diff --git a/owl-bot-staging/v1beta2/proto-google-cloud-memcache-v1beta2/src/main/proto/google/cloud/memcache/v1beta2/cloud_memcache.proto b/proto-google-cloud-memcache-v1beta2/src/main/proto/google/cloud/memcache/v1beta2/cloud_memcache.proto similarity index 100% rename from owl-bot-staging/v1beta2/proto-google-cloud-memcache-v1beta2/src/main/proto/google/cloud/memcache/v1beta2/cloud_memcache.proto rename to proto-google-cloud-memcache-v1beta2/src/main/proto/google/cloud/memcache/v1beta2/cloud_memcache.proto diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/memcache/v1/cloudmemcacheclient/applyparameters/AsyncApplyParameters.java b/samples/snippets/generated/com/google/cloud/memcache/v1/cloudmemcacheclient/applyparameters/AsyncApplyParameters.java similarity index 100% rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/memcache/v1/cloudmemcacheclient/applyparameters/AsyncApplyParameters.java rename to samples/snippets/generated/com/google/cloud/memcache/v1/cloudmemcacheclient/applyparameters/AsyncApplyParameters.java diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/memcache/v1/cloudmemcacheclient/applyparameters/AsyncApplyParametersLRO.java b/samples/snippets/generated/com/google/cloud/memcache/v1/cloudmemcacheclient/applyparameters/AsyncApplyParametersLRO.java similarity index 100% rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/memcache/v1/cloudmemcacheclient/applyparameters/AsyncApplyParametersLRO.java rename to samples/snippets/generated/com/google/cloud/memcache/v1/cloudmemcacheclient/applyparameters/AsyncApplyParametersLRO.java diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/memcache/v1/cloudmemcacheclient/applyparameters/SyncApplyParameters.java b/samples/snippets/generated/com/google/cloud/memcache/v1/cloudmemcacheclient/applyparameters/SyncApplyParameters.java similarity index 100% rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/memcache/v1/cloudmemcacheclient/applyparameters/SyncApplyParameters.java rename to samples/snippets/generated/com/google/cloud/memcache/v1/cloudmemcacheclient/applyparameters/SyncApplyParameters.java diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/memcache/v1/cloudmemcacheclient/applyparameters/SyncApplyParametersInstancenameListstringBoolean.java b/samples/snippets/generated/com/google/cloud/memcache/v1/cloudmemcacheclient/applyparameters/SyncApplyParametersInstancenameListstringBoolean.java similarity index 100% rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/memcache/v1/cloudmemcacheclient/applyparameters/SyncApplyParametersInstancenameListstringBoolean.java rename to samples/snippets/generated/com/google/cloud/memcache/v1/cloudmemcacheclient/applyparameters/SyncApplyParametersInstancenameListstringBoolean.java diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/memcache/v1/cloudmemcacheclient/applyparameters/SyncApplyParametersStringListstringBoolean.java b/samples/snippets/generated/com/google/cloud/memcache/v1/cloudmemcacheclient/applyparameters/SyncApplyParametersStringListstringBoolean.java similarity index 100% rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/memcache/v1/cloudmemcacheclient/applyparameters/SyncApplyParametersStringListstringBoolean.java rename to samples/snippets/generated/com/google/cloud/memcache/v1/cloudmemcacheclient/applyparameters/SyncApplyParametersStringListstringBoolean.java diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/memcache/v1/cloudmemcacheclient/create/SyncCreateSetCredentialsProvider.java b/samples/snippets/generated/com/google/cloud/memcache/v1/cloudmemcacheclient/create/SyncCreateSetCredentialsProvider.java similarity index 100% rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/memcache/v1/cloudmemcacheclient/create/SyncCreateSetCredentialsProvider.java rename to samples/snippets/generated/com/google/cloud/memcache/v1/cloudmemcacheclient/create/SyncCreateSetCredentialsProvider.java diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/memcache/v1/cloudmemcacheclient/create/SyncCreateSetCredentialsProvider1.java b/samples/snippets/generated/com/google/cloud/memcache/v1/cloudmemcacheclient/create/SyncCreateSetCredentialsProvider1.java similarity index 100% rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/memcache/v1/cloudmemcacheclient/create/SyncCreateSetCredentialsProvider1.java rename to samples/snippets/generated/com/google/cloud/memcache/v1/cloudmemcacheclient/create/SyncCreateSetCredentialsProvider1.java diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/memcache/v1/cloudmemcacheclient/create/SyncCreateSetEndpoint.java b/samples/snippets/generated/com/google/cloud/memcache/v1/cloudmemcacheclient/create/SyncCreateSetEndpoint.java similarity index 100% rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/memcache/v1/cloudmemcacheclient/create/SyncCreateSetEndpoint.java rename to samples/snippets/generated/com/google/cloud/memcache/v1/cloudmemcacheclient/create/SyncCreateSetEndpoint.java diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/memcache/v1/cloudmemcacheclient/createinstance/AsyncCreateInstance.java b/samples/snippets/generated/com/google/cloud/memcache/v1/cloudmemcacheclient/createinstance/AsyncCreateInstance.java similarity index 100% rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/memcache/v1/cloudmemcacheclient/createinstance/AsyncCreateInstance.java rename to samples/snippets/generated/com/google/cloud/memcache/v1/cloudmemcacheclient/createinstance/AsyncCreateInstance.java diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/memcache/v1/cloudmemcacheclient/createinstance/AsyncCreateInstanceLRO.java b/samples/snippets/generated/com/google/cloud/memcache/v1/cloudmemcacheclient/createinstance/AsyncCreateInstanceLRO.java similarity index 100% rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/memcache/v1/cloudmemcacheclient/createinstance/AsyncCreateInstanceLRO.java rename to samples/snippets/generated/com/google/cloud/memcache/v1/cloudmemcacheclient/createinstance/AsyncCreateInstanceLRO.java diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/memcache/v1/cloudmemcacheclient/createinstance/SyncCreateInstance.java b/samples/snippets/generated/com/google/cloud/memcache/v1/cloudmemcacheclient/createinstance/SyncCreateInstance.java similarity index 100% rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/memcache/v1/cloudmemcacheclient/createinstance/SyncCreateInstance.java rename to samples/snippets/generated/com/google/cloud/memcache/v1/cloudmemcacheclient/createinstance/SyncCreateInstance.java diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/memcache/v1/cloudmemcacheclient/createinstance/SyncCreateInstanceLocationnameInstanceString.java b/samples/snippets/generated/com/google/cloud/memcache/v1/cloudmemcacheclient/createinstance/SyncCreateInstanceLocationnameInstanceString.java similarity index 100% rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/memcache/v1/cloudmemcacheclient/createinstance/SyncCreateInstanceLocationnameInstanceString.java rename to samples/snippets/generated/com/google/cloud/memcache/v1/cloudmemcacheclient/createinstance/SyncCreateInstanceLocationnameInstanceString.java diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/memcache/v1/cloudmemcacheclient/createinstance/SyncCreateInstanceStringInstanceString.java b/samples/snippets/generated/com/google/cloud/memcache/v1/cloudmemcacheclient/createinstance/SyncCreateInstanceStringInstanceString.java similarity index 100% rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/memcache/v1/cloudmemcacheclient/createinstance/SyncCreateInstanceStringInstanceString.java rename to samples/snippets/generated/com/google/cloud/memcache/v1/cloudmemcacheclient/createinstance/SyncCreateInstanceStringInstanceString.java diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/memcache/v1/cloudmemcacheclient/deleteinstance/AsyncDeleteInstance.java b/samples/snippets/generated/com/google/cloud/memcache/v1/cloudmemcacheclient/deleteinstance/AsyncDeleteInstance.java similarity index 100% rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/memcache/v1/cloudmemcacheclient/deleteinstance/AsyncDeleteInstance.java rename to samples/snippets/generated/com/google/cloud/memcache/v1/cloudmemcacheclient/deleteinstance/AsyncDeleteInstance.java diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/memcache/v1/cloudmemcacheclient/deleteinstance/AsyncDeleteInstanceLRO.java b/samples/snippets/generated/com/google/cloud/memcache/v1/cloudmemcacheclient/deleteinstance/AsyncDeleteInstanceLRO.java similarity index 100% rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/memcache/v1/cloudmemcacheclient/deleteinstance/AsyncDeleteInstanceLRO.java rename to samples/snippets/generated/com/google/cloud/memcache/v1/cloudmemcacheclient/deleteinstance/AsyncDeleteInstanceLRO.java diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/memcache/v1/cloudmemcacheclient/deleteinstance/SyncDeleteInstance.java b/samples/snippets/generated/com/google/cloud/memcache/v1/cloudmemcacheclient/deleteinstance/SyncDeleteInstance.java similarity index 100% rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/memcache/v1/cloudmemcacheclient/deleteinstance/SyncDeleteInstance.java rename to samples/snippets/generated/com/google/cloud/memcache/v1/cloudmemcacheclient/deleteinstance/SyncDeleteInstance.java diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/memcache/v1/cloudmemcacheclient/deleteinstance/SyncDeleteInstanceInstancename.java b/samples/snippets/generated/com/google/cloud/memcache/v1/cloudmemcacheclient/deleteinstance/SyncDeleteInstanceInstancename.java similarity index 100% rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/memcache/v1/cloudmemcacheclient/deleteinstance/SyncDeleteInstanceInstancename.java rename to samples/snippets/generated/com/google/cloud/memcache/v1/cloudmemcacheclient/deleteinstance/SyncDeleteInstanceInstancename.java diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/memcache/v1/cloudmemcacheclient/deleteinstance/SyncDeleteInstanceString.java b/samples/snippets/generated/com/google/cloud/memcache/v1/cloudmemcacheclient/deleteinstance/SyncDeleteInstanceString.java similarity index 100% rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/memcache/v1/cloudmemcacheclient/deleteinstance/SyncDeleteInstanceString.java rename to samples/snippets/generated/com/google/cloud/memcache/v1/cloudmemcacheclient/deleteinstance/SyncDeleteInstanceString.java diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/memcache/v1/cloudmemcacheclient/getinstance/AsyncGetInstance.java b/samples/snippets/generated/com/google/cloud/memcache/v1/cloudmemcacheclient/getinstance/AsyncGetInstance.java similarity index 100% rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/memcache/v1/cloudmemcacheclient/getinstance/AsyncGetInstance.java rename to samples/snippets/generated/com/google/cloud/memcache/v1/cloudmemcacheclient/getinstance/AsyncGetInstance.java diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/memcache/v1/cloudmemcacheclient/getinstance/SyncGetInstance.java b/samples/snippets/generated/com/google/cloud/memcache/v1/cloudmemcacheclient/getinstance/SyncGetInstance.java similarity index 100% rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/memcache/v1/cloudmemcacheclient/getinstance/SyncGetInstance.java rename to samples/snippets/generated/com/google/cloud/memcache/v1/cloudmemcacheclient/getinstance/SyncGetInstance.java diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/memcache/v1/cloudmemcacheclient/getinstance/SyncGetInstanceInstancename.java b/samples/snippets/generated/com/google/cloud/memcache/v1/cloudmemcacheclient/getinstance/SyncGetInstanceInstancename.java similarity index 100% rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/memcache/v1/cloudmemcacheclient/getinstance/SyncGetInstanceInstancename.java rename to samples/snippets/generated/com/google/cloud/memcache/v1/cloudmemcacheclient/getinstance/SyncGetInstanceInstancename.java diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/memcache/v1/cloudmemcacheclient/getinstance/SyncGetInstanceString.java b/samples/snippets/generated/com/google/cloud/memcache/v1/cloudmemcacheclient/getinstance/SyncGetInstanceString.java similarity index 100% rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/memcache/v1/cloudmemcacheclient/getinstance/SyncGetInstanceString.java rename to samples/snippets/generated/com/google/cloud/memcache/v1/cloudmemcacheclient/getinstance/SyncGetInstanceString.java diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/memcache/v1/cloudmemcacheclient/listinstances/AsyncListInstances.java b/samples/snippets/generated/com/google/cloud/memcache/v1/cloudmemcacheclient/listinstances/AsyncListInstances.java similarity index 100% rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/memcache/v1/cloudmemcacheclient/listinstances/AsyncListInstances.java rename to samples/snippets/generated/com/google/cloud/memcache/v1/cloudmemcacheclient/listinstances/AsyncListInstances.java diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/memcache/v1/cloudmemcacheclient/listinstances/AsyncListInstancesPaged.java b/samples/snippets/generated/com/google/cloud/memcache/v1/cloudmemcacheclient/listinstances/AsyncListInstancesPaged.java similarity index 100% rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/memcache/v1/cloudmemcacheclient/listinstances/AsyncListInstancesPaged.java rename to samples/snippets/generated/com/google/cloud/memcache/v1/cloudmemcacheclient/listinstances/AsyncListInstancesPaged.java diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/memcache/v1/cloudmemcacheclient/listinstances/SyncListInstances.java b/samples/snippets/generated/com/google/cloud/memcache/v1/cloudmemcacheclient/listinstances/SyncListInstances.java similarity index 100% rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/memcache/v1/cloudmemcacheclient/listinstances/SyncListInstances.java rename to samples/snippets/generated/com/google/cloud/memcache/v1/cloudmemcacheclient/listinstances/SyncListInstances.java diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/memcache/v1/cloudmemcacheclient/listinstances/SyncListInstancesLocationname.java b/samples/snippets/generated/com/google/cloud/memcache/v1/cloudmemcacheclient/listinstances/SyncListInstancesLocationname.java similarity index 100% rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/memcache/v1/cloudmemcacheclient/listinstances/SyncListInstancesLocationname.java rename to samples/snippets/generated/com/google/cloud/memcache/v1/cloudmemcacheclient/listinstances/SyncListInstancesLocationname.java diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/memcache/v1/cloudmemcacheclient/listinstances/SyncListInstancesString.java b/samples/snippets/generated/com/google/cloud/memcache/v1/cloudmemcacheclient/listinstances/SyncListInstancesString.java similarity index 100% rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/memcache/v1/cloudmemcacheclient/listinstances/SyncListInstancesString.java rename to samples/snippets/generated/com/google/cloud/memcache/v1/cloudmemcacheclient/listinstances/SyncListInstancesString.java diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/memcache/v1/cloudmemcacheclient/updateinstance/AsyncUpdateInstance.java b/samples/snippets/generated/com/google/cloud/memcache/v1/cloudmemcacheclient/updateinstance/AsyncUpdateInstance.java similarity index 100% rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/memcache/v1/cloudmemcacheclient/updateinstance/AsyncUpdateInstance.java rename to samples/snippets/generated/com/google/cloud/memcache/v1/cloudmemcacheclient/updateinstance/AsyncUpdateInstance.java diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/memcache/v1/cloudmemcacheclient/updateinstance/AsyncUpdateInstanceLRO.java b/samples/snippets/generated/com/google/cloud/memcache/v1/cloudmemcacheclient/updateinstance/AsyncUpdateInstanceLRO.java similarity index 100% rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/memcache/v1/cloudmemcacheclient/updateinstance/AsyncUpdateInstanceLRO.java rename to samples/snippets/generated/com/google/cloud/memcache/v1/cloudmemcacheclient/updateinstance/AsyncUpdateInstanceLRO.java diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/memcache/v1/cloudmemcacheclient/updateinstance/SyncUpdateInstance.java b/samples/snippets/generated/com/google/cloud/memcache/v1/cloudmemcacheclient/updateinstance/SyncUpdateInstance.java similarity index 100% rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/memcache/v1/cloudmemcacheclient/updateinstance/SyncUpdateInstance.java rename to samples/snippets/generated/com/google/cloud/memcache/v1/cloudmemcacheclient/updateinstance/SyncUpdateInstance.java diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/memcache/v1/cloudmemcacheclient/updateinstance/SyncUpdateInstanceInstanceFieldmask.java b/samples/snippets/generated/com/google/cloud/memcache/v1/cloudmemcacheclient/updateinstance/SyncUpdateInstanceInstanceFieldmask.java similarity index 100% rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/memcache/v1/cloudmemcacheclient/updateinstance/SyncUpdateInstanceInstanceFieldmask.java rename to samples/snippets/generated/com/google/cloud/memcache/v1/cloudmemcacheclient/updateinstance/SyncUpdateInstanceInstanceFieldmask.java diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/memcache/v1/cloudmemcacheclient/updateparameters/AsyncUpdateParameters.java b/samples/snippets/generated/com/google/cloud/memcache/v1/cloudmemcacheclient/updateparameters/AsyncUpdateParameters.java similarity index 100% rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/memcache/v1/cloudmemcacheclient/updateparameters/AsyncUpdateParameters.java rename to samples/snippets/generated/com/google/cloud/memcache/v1/cloudmemcacheclient/updateparameters/AsyncUpdateParameters.java diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/memcache/v1/cloudmemcacheclient/updateparameters/AsyncUpdateParametersLRO.java b/samples/snippets/generated/com/google/cloud/memcache/v1/cloudmemcacheclient/updateparameters/AsyncUpdateParametersLRO.java similarity index 100% rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/memcache/v1/cloudmemcacheclient/updateparameters/AsyncUpdateParametersLRO.java rename to samples/snippets/generated/com/google/cloud/memcache/v1/cloudmemcacheclient/updateparameters/AsyncUpdateParametersLRO.java diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/memcache/v1/cloudmemcacheclient/updateparameters/SyncUpdateParameters.java b/samples/snippets/generated/com/google/cloud/memcache/v1/cloudmemcacheclient/updateparameters/SyncUpdateParameters.java similarity index 100% rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/memcache/v1/cloudmemcacheclient/updateparameters/SyncUpdateParameters.java rename to samples/snippets/generated/com/google/cloud/memcache/v1/cloudmemcacheclient/updateparameters/SyncUpdateParameters.java diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/memcache/v1/cloudmemcacheclient/updateparameters/SyncUpdateParametersInstancenameFieldmaskMemcacheparameters.java b/samples/snippets/generated/com/google/cloud/memcache/v1/cloudmemcacheclient/updateparameters/SyncUpdateParametersInstancenameFieldmaskMemcacheparameters.java similarity index 100% rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/memcache/v1/cloudmemcacheclient/updateparameters/SyncUpdateParametersInstancenameFieldmaskMemcacheparameters.java rename to samples/snippets/generated/com/google/cloud/memcache/v1/cloudmemcacheclient/updateparameters/SyncUpdateParametersInstancenameFieldmaskMemcacheparameters.java diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/memcache/v1/cloudmemcacheclient/updateparameters/SyncUpdateParametersStringFieldmaskMemcacheparameters.java b/samples/snippets/generated/com/google/cloud/memcache/v1/cloudmemcacheclient/updateparameters/SyncUpdateParametersStringFieldmaskMemcacheparameters.java similarity index 100% rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/memcache/v1/cloudmemcacheclient/updateparameters/SyncUpdateParametersStringFieldmaskMemcacheparameters.java rename to samples/snippets/generated/com/google/cloud/memcache/v1/cloudmemcacheclient/updateparameters/SyncUpdateParametersStringFieldmaskMemcacheparameters.java diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/memcache/v1/cloudmemcachesettings/getinstance/SyncGetInstance.java b/samples/snippets/generated/com/google/cloud/memcache/v1/cloudmemcachesettings/getinstance/SyncGetInstance.java similarity index 100% rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/memcache/v1/cloudmemcachesettings/getinstance/SyncGetInstance.java rename to samples/snippets/generated/com/google/cloud/memcache/v1/cloudmemcachesettings/getinstance/SyncGetInstance.java diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/memcache/v1/stub/cloudmemcachestubsettings/getinstance/SyncGetInstance.java b/samples/snippets/generated/com/google/cloud/memcache/v1/stub/cloudmemcachestubsettings/getinstance/SyncGetInstance.java similarity index 100% rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/memcache/v1/stub/cloudmemcachestubsettings/getinstance/SyncGetInstance.java rename to samples/snippets/generated/com/google/cloud/memcache/v1/stub/cloudmemcachestubsettings/getinstance/SyncGetInstance.java diff --git a/owl-bot-staging/v1beta2/samples/snippets/generated/com/google/cloud/memcache/v1beta2/cloudmemcacheclient/applyparameters/AsyncApplyParameters.java b/samples/snippets/generated/com/google/cloud/memcache/v1beta2/cloudmemcacheclient/applyparameters/AsyncApplyParameters.java similarity index 100% rename from owl-bot-staging/v1beta2/samples/snippets/generated/com/google/cloud/memcache/v1beta2/cloudmemcacheclient/applyparameters/AsyncApplyParameters.java rename to samples/snippets/generated/com/google/cloud/memcache/v1beta2/cloudmemcacheclient/applyparameters/AsyncApplyParameters.java diff --git a/owl-bot-staging/v1beta2/samples/snippets/generated/com/google/cloud/memcache/v1beta2/cloudmemcacheclient/applyparameters/AsyncApplyParametersLRO.java b/samples/snippets/generated/com/google/cloud/memcache/v1beta2/cloudmemcacheclient/applyparameters/AsyncApplyParametersLRO.java similarity index 100% rename from owl-bot-staging/v1beta2/samples/snippets/generated/com/google/cloud/memcache/v1beta2/cloudmemcacheclient/applyparameters/AsyncApplyParametersLRO.java rename to samples/snippets/generated/com/google/cloud/memcache/v1beta2/cloudmemcacheclient/applyparameters/AsyncApplyParametersLRO.java diff --git a/owl-bot-staging/v1beta2/samples/snippets/generated/com/google/cloud/memcache/v1beta2/cloudmemcacheclient/applyparameters/SyncApplyParameters.java b/samples/snippets/generated/com/google/cloud/memcache/v1beta2/cloudmemcacheclient/applyparameters/SyncApplyParameters.java similarity index 100% rename from owl-bot-staging/v1beta2/samples/snippets/generated/com/google/cloud/memcache/v1beta2/cloudmemcacheclient/applyparameters/SyncApplyParameters.java rename to samples/snippets/generated/com/google/cloud/memcache/v1beta2/cloudmemcacheclient/applyparameters/SyncApplyParameters.java diff --git a/owl-bot-staging/v1beta2/samples/snippets/generated/com/google/cloud/memcache/v1beta2/cloudmemcacheclient/applyparameters/SyncApplyParametersInstancenameListstringBoolean.java b/samples/snippets/generated/com/google/cloud/memcache/v1beta2/cloudmemcacheclient/applyparameters/SyncApplyParametersInstancenameListstringBoolean.java similarity index 100% rename from owl-bot-staging/v1beta2/samples/snippets/generated/com/google/cloud/memcache/v1beta2/cloudmemcacheclient/applyparameters/SyncApplyParametersInstancenameListstringBoolean.java rename to samples/snippets/generated/com/google/cloud/memcache/v1beta2/cloudmemcacheclient/applyparameters/SyncApplyParametersInstancenameListstringBoolean.java diff --git a/owl-bot-staging/v1beta2/samples/snippets/generated/com/google/cloud/memcache/v1beta2/cloudmemcacheclient/applyparameters/SyncApplyParametersStringListstringBoolean.java b/samples/snippets/generated/com/google/cloud/memcache/v1beta2/cloudmemcacheclient/applyparameters/SyncApplyParametersStringListstringBoolean.java similarity index 100% rename from owl-bot-staging/v1beta2/samples/snippets/generated/com/google/cloud/memcache/v1beta2/cloudmemcacheclient/applyparameters/SyncApplyParametersStringListstringBoolean.java rename to samples/snippets/generated/com/google/cloud/memcache/v1beta2/cloudmemcacheclient/applyparameters/SyncApplyParametersStringListstringBoolean.java diff --git a/owl-bot-staging/v1beta2/samples/snippets/generated/com/google/cloud/memcache/v1beta2/cloudmemcacheclient/applysoftwareupdate/AsyncApplySoftwareUpdate.java b/samples/snippets/generated/com/google/cloud/memcache/v1beta2/cloudmemcacheclient/applysoftwareupdate/AsyncApplySoftwareUpdate.java similarity index 100% rename from owl-bot-staging/v1beta2/samples/snippets/generated/com/google/cloud/memcache/v1beta2/cloudmemcacheclient/applysoftwareupdate/AsyncApplySoftwareUpdate.java rename to samples/snippets/generated/com/google/cloud/memcache/v1beta2/cloudmemcacheclient/applysoftwareupdate/AsyncApplySoftwareUpdate.java diff --git a/owl-bot-staging/v1beta2/samples/snippets/generated/com/google/cloud/memcache/v1beta2/cloudmemcacheclient/applysoftwareupdate/AsyncApplySoftwareUpdateLRO.java b/samples/snippets/generated/com/google/cloud/memcache/v1beta2/cloudmemcacheclient/applysoftwareupdate/AsyncApplySoftwareUpdateLRO.java similarity index 100% rename from owl-bot-staging/v1beta2/samples/snippets/generated/com/google/cloud/memcache/v1beta2/cloudmemcacheclient/applysoftwareupdate/AsyncApplySoftwareUpdateLRO.java rename to samples/snippets/generated/com/google/cloud/memcache/v1beta2/cloudmemcacheclient/applysoftwareupdate/AsyncApplySoftwareUpdateLRO.java diff --git a/owl-bot-staging/v1beta2/samples/snippets/generated/com/google/cloud/memcache/v1beta2/cloudmemcacheclient/applysoftwareupdate/SyncApplySoftwareUpdate.java b/samples/snippets/generated/com/google/cloud/memcache/v1beta2/cloudmemcacheclient/applysoftwareupdate/SyncApplySoftwareUpdate.java similarity index 100% rename from owl-bot-staging/v1beta2/samples/snippets/generated/com/google/cloud/memcache/v1beta2/cloudmemcacheclient/applysoftwareupdate/SyncApplySoftwareUpdate.java rename to samples/snippets/generated/com/google/cloud/memcache/v1beta2/cloudmemcacheclient/applysoftwareupdate/SyncApplySoftwareUpdate.java diff --git a/owl-bot-staging/v1beta2/samples/snippets/generated/com/google/cloud/memcache/v1beta2/cloudmemcacheclient/applysoftwareupdate/SyncApplySoftwareUpdateInstancenameListstringBoolean.java b/samples/snippets/generated/com/google/cloud/memcache/v1beta2/cloudmemcacheclient/applysoftwareupdate/SyncApplySoftwareUpdateInstancenameListstringBoolean.java similarity index 100% rename from owl-bot-staging/v1beta2/samples/snippets/generated/com/google/cloud/memcache/v1beta2/cloudmemcacheclient/applysoftwareupdate/SyncApplySoftwareUpdateInstancenameListstringBoolean.java rename to samples/snippets/generated/com/google/cloud/memcache/v1beta2/cloudmemcacheclient/applysoftwareupdate/SyncApplySoftwareUpdateInstancenameListstringBoolean.java diff --git a/owl-bot-staging/v1beta2/samples/snippets/generated/com/google/cloud/memcache/v1beta2/cloudmemcacheclient/applysoftwareupdate/SyncApplySoftwareUpdateStringListstringBoolean.java b/samples/snippets/generated/com/google/cloud/memcache/v1beta2/cloudmemcacheclient/applysoftwareupdate/SyncApplySoftwareUpdateStringListstringBoolean.java similarity index 100% rename from owl-bot-staging/v1beta2/samples/snippets/generated/com/google/cloud/memcache/v1beta2/cloudmemcacheclient/applysoftwareupdate/SyncApplySoftwareUpdateStringListstringBoolean.java rename to samples/snippets/generated/com/google/cloud/memcache/v1beta2/cloudmemcacheclient/applysoftwareupdate/SyncApplySoftwareUpdateStringListstringBoolean.java diff --git a/owl-bot-staging/v1beta2/samples/snippets/generated/com/google/cloud/memcache/v1beta2/cloudmemcacheclient/create/SyncCreateSetCredentialsProvider.java b/samples/snippets/generated/com/google/cloud/memcache/v1beta2/cloudmemcacheclient/create/SyncCreateSetCredentialsProvider.java similarity index 100% rename from owl-bot-staging/v1beta2/samples/snippets/generated/com/google/cloud/memcache/v1beta2/cloudmemcacheclient/create/SyncCreateSetCredentialsProvider.java rename to samples/snippets/generated/com/google/cloud/memcache/v1beta2/cloudmemcacheclient/create/SyncCreateSetCredentialsProvider.java diff --git a/owl-bot-staging/v1beta2/samples/snippets/generated/com/google/cloud/memcache/v1beta2/cloudmemcacheclient/create/SyncCreateSetCredentialsProvider1.java b/samples/snippets/generated/com/google/cloud/memcache/v1beta2/cloudmemcacheclient/create/SyncCreateSetCredentialsProvider1.java similarity index 100% rename from owl-bot-staging/v1beta2/samples/snippets/generated/com/google/cloud/memcache/v1beta2/cloudmemcacheclient/create/SyncCreateSetCredentialsProvider1.java rename to samples/snippets/generated/com/google/cloud/memcache/v1beta2/cloudmemcacheclient/create/SyncCreateSetCredentialsProvider1.java diff --git a/owl-bot-staging/v1beta2/samples/snippets/generated/com/google/cloud/memcache/v1beta2/cloudmemcacheclient/create/SyncCreateSetEndpoint.java b/samples/snippets/generated/com/google/cloud/memcache/v1beta2/cloudmemcacheclient/create/SyncCreateSetEndpoint.java similarity index 100% rename from owl-bot-staging/v1beta2/samples/snippets/generated/com/google/cloud/memcache/v1beta2/cloudmemcacheclient/create/SyncCreateSetEndpoint.java rename to samples/snippets/generated/com/google/cloud/memcache/v1beta2/cloudmemcacheclient/create/SyncCreateSetEndpoint.java diff --git a/owl-bot-staging/v1beta2/samples/snippets/generated/com/google/cloud/memcache/v1beta2/cloudmemcacheclient/createinstance/AsyncCreateInstance.java b/samples/snippets/generated/com/google/cloud/memcache/v1beta2/cloudmemcacheclient/createinstance/AsyncCreateInstance.java similarity index 100% rename from owl-bot-staging/v1beta2/samples/snippets/generated/com/google/cloud/memcache/v1beta2/cloudmemcacheclient/createinstance/AsyncCreateInstance.java rename to samples/snippets/generated/com/google/cloud/memcache/v1beta2/cloudmemcacheclient/createinstance/AsyncCreateInstance.java diff --git a/owl-bot-staging/v1beta2/samples/snippets/generated/com/google/cloud/memcache/v1beta2/cloudmemcacheclient/createinstance/AsyncCreateInstanceLRO.java b/samples/snippets/generated/com/google/cloud/memcache/v1beta2/cloudmemcacheclient/createinstance/AsyncCreateInstanceLRO.java similarity index 100% rename from owl-bot-staging/v1beta2/samples/snippets/generated/com/google/cloud/memcache/v1beta2/cloudmemcacheclient/createinstance/AsyncCreateInstanceLRO.java rename to samples/snippets/generated/com/google/cloud/memcache/v1beta2/cloudmemcacheclient/createinstance/AsyncCreateInstanceLRO.java diff --git a/owl-bot-staging/v1beta2/samples/snippets/generated/com/google/cloud/memcache/v1beta2/cloudmemcacheclient/createinstance/SyncCreateInstance.java b/samples/snippets/generated/com/google/cloud/memcache/v1beta2/cloudmemcacheclient/createinstance/SyncCreateInstance.java similarity index 100% rename from owl-bot-staging/v1beta2/samples/snippets/generated/com/google/cloud/memcache/v1beta2/cloudmemcacheclient/createinstance/SyncCreateInstance.java rename to samples/snippets/generated/com/google/cloud/memcache/v1beta2/cloudmemcacheclient/createinstance/SyncCreateInstance.java diff --git a/owl-bot-staging/v1beta2/samples/snippets/generated/com/google/cloud/memcache/v1beta2/cloudmemcacheclient/createinstance/SyncCreateInstanceLocationnameStringInstance.java b/samples/snippets/generated/com/google/cloud/memcache/v1beta2/cloudmemcacheclient/createinstance/SyncCreateInstanceLocationnameStringInstance.java similarity index 100% rename from owl-bot-staging/v1beta2/samples/snippets/generated/com/google/cloud/memcache/v1beta2/cloudmemcacheclient/createinstance/SyncCreateInstanceLocationnameStringInstance.java rename to samples/snippets/generated/com/google/cloud/memcache/v1beta2/cloudmemcacheclient/createinstance/SyncCreateInstanceLocationnameStringInstance.java diff --git a/owl-bot-staging/v1beta2/samples/snippets/generated/com/google/cloud/memcache/v1beta2/cloudmemcacheclient/createinstance/SyncCreateInstanceStringStringInstance.java b/samples/snippets/generated/com/google/cloud/memcache/v1beta2/cloudmemcacheclient/createinstance/SyncCreateInstanceStringStringInstance.java similarity index 100% rename from owl-bot-staging/v1beta2/samples/snippets/generated/com/google/cloud/memcache/v1beta2/cloudmemcacheclient/createinstance/SyncCreateInstanceStringStringInstance.java rename to samples/snippets/generated/com/google/cloud/memcache/v1beta2/cloudmemcacheclient/createinstance/SyncCreateInstanceStringStringInstance.java diff --git a/owl-bot-staging/v1beta2/samples/snippets/generated/com/google/cloud/memcache/v1beta2/cloudmemcacheclient/deleteinstance/AsyncDeleteInstance.java b/samples/snippets/generated/com/google/cloud/memcache/v1beta2/cloudmemcacheclient/deleteinstance/AsyncDeleteInstance.java similarity index 100% rename from owl-bot-staging/v1beta2/samples/snippets/generated/com/google/cloud/memcache/v1beta2/cloudmemcacheclient/deleteinstance/AsyncDeleteInstance.java rename to samples/snippets/generated/com/google/cloud/memcache/v1beta2/cloudmemcacheclient/deleteinstance/AsyncDeleteInstance.java diff --git a/owl-bot-staging/v1beta2/samples/snippets/generated/com/google/cloud/memcache/v1beta2/cloudmemcacheclient/deleteinstance/AsyncDeleteInstanceLRO.java b/samples/snippets/generated/com/google/cloud/memcache/v1beta2/cloudmemcacheclient/deleteinstance/AsyncDeleteInstanceLRO.java similarity index 100% rename from owl-bot-staging/v1beta2/samples/snippets/generated/com/google/cloud/memcache/v1beta2/cloudmemcacheclient/deleteinstance/AsyncDeleteInstanceLRO.java rename to samples/snippets/generated/com/google/cloud/memcache/v1beta2/cloudmemcacheclient/deleteinstance/AsyncDeleteInstanceLRO.java diff --git a/owl-bot-staging/v1beta2/samples/snippets/generated/com/google/cloud/memcache/v1beta2/cloudmemcacheclient/deleteinstance/SyncDeleteInstance.java b/samples/snippets/generated/com/google/cloud/memcache/v1beta2/cloudmemcacheclient/deleteinstance/SyncDeleteInstance.java similarity index 100% rename from owl-bot-staging/v1beta2/samples/snippets/generated/com/google/cloud/memcache/v1beta2/cloudmemcacheclient/deleteinstance/SyncDeleteInstance.java rename to samples/snippets/generated/com/google/cloud/memcache/v1beta2/cloudmemcacheclient/deleteinstance/SyncDeleteInstance.java diff --git a/owl-bot-staging/v1beta2/samples/snippets/generated/com/google/cloud/memcache/v1beta2/cloudmemcacheclient/deleteinstance/SyncDeleteInstanceInstancename.java b/samples/snippets/generated/com/google/cloud/memcache/v1beta2/cloudmemcacheclient/deleteinstance/SyncDeleteInstanceInstancename.java similarity index 100% rename from owl-bot-staging/v1beta2/samples/snippets/generated/com/google/cloud/memcache/v1beta2/cloudmemcacheclient/deleteinstance/SyncDeleteInstanceInstancename.java rename to samples/snippets/generated/com/google/cloud/memcache/v1beta2/cloudmemcacheclient/deleteinstance/SyncDeleteInstanceInstancename.java diff --git a/owl-bot-staging/v1beta2/samples/snippets/generated/com/google/cloud/memcache/v1beta2/cloudmemcacheclient/deleteinstance/SyncDeleteInstanceString.java b/samples/snippets/generated/com/google/cloud/memcache/v1beta2/cloudmemcacheclient/deleteinstance/SyncDeleteInstanceString.java similarity index 100% rename from owl-bot-staging/v1beta2/samples/snippets/generated/com/google/cloud/memcache/v1beta2/cloudmemcacheclient/deleteinstance/SyncDeleteInstanceString.java rename to samples/snippets/generated/com/google/cloud/memcache/v1beta2/cloudmemcacheclient/deleteinstance/SyncDeleteInstanceString.java diff --git a/owl-bot-staging/v1beta2/samples/snippets/generated/com/google/cloud/memcache/v1beta2/cloudmemcacheclient/getinstance/AsyncGetInstance.java b/samples/snippets/generated/com/google/cloud/memcache/v1beta2/cloudmemcacheclient/getinstance/AsyncGetInstance.java similarity index 100% rename from owl-bot-staging/v1beta2/samples/snippets/generated/com/google/cloud/memcache/v1beta2/cloudmemcacheclient/getinstance/AsyncGetInstance.java rename to samples/snippets/generated/com/google/cloud/memcache/v1beta2/cloudmemcacheclient/getinstance/AsyncGetInstance.java diff --git a/owl-bot-staging/v1beta2/samples/snippets/generated/com/google/cloud/memcache/v1beta2/cloudmemcacheclient/getinstance/SyncGetInstance.java b/samples/snippets/generated/com/google/cloud/memcache/v1beta2/cloudmemcacheclient/getinstance/SyncGetInstance.java similarity index 100% rename from owl-bot-staging/v1beta2/samples/snippets/generated/com/google/cloud/memcache/v1beta2/cloudmemcacheclient/getinstance/SyncGetInstance.java rename to samples/snippets/generated/com/google/cloud/memcache/v1beta2/cloudmemcacheclient/getinstance/SyncGetInstance.java diff --git a/owl-bot-staging/v1beta2/samples/snippets/generated/com/google/cloud/memcache/v1beta2/cloudmemcacheclient/getinstance/SyncGetInstanceInstancename.java b/samples/snippets/generated/com/google/cloud/memcache/v1beta2/cloudmemcacheclient/getinstance/SyncGetInstanceInstancename.java similarity index 100% rename from owl-bot-staging/v1beta2/samples/snippets/generated/com/google/cloud/memcache/v1beta2/cloudmemcacheclient/getinstance/SyncGetInstanceInstancename.java rename to samples/snippets/generated/com/google/cloud/memcache/v1beta2/cloudmemcacheclient/getinstance/SyncGetInstanceInstancename.java diff --git a/owl-bot-staging/v1beta2/samples/snippets/generated/com/google/cloud/memcache/v1beta2/cloudmemcacheclient/getinstance/SyncGetInstanceString.java b/samples/snippets/generated/com/google/cloud/memcache/v1beta2/cloudmemcacheclient/getinstance/SyncGetInstanceString.java similarity index 100% rename from owl-bot-staging/v1beta2/samples/snippets/generated/com/google/cloud/memcache/v1beta2/cloudmemcacheclient/getinstance/SyncGetInstanceString.java rename to samples/snippets/generated/com/google/cloud/memcache/v1beta2/cloudmemcacheclient/getinstance/SyncGetInstanceString.java diff --git a/owl-bot-staging/v1beta2/samples/snippets/generated/com/google/cloud/memcache/v1beta2/cloudmemcacheclient/listinstances/AsyncListInstances.java b/samples/snippets/generated/com/google/cloud/memcache/v1beta2/cloudmemcacheclient/listinstances/AsyncListInstances.java similarity index 100% rename from owl-bot-staging/v1beta2/samples/snippets/generated/com/google/cloud/memcache/v1beta2/cloudmemcacheclient/listinstances/AsyncListInstances.java rename to samples/snippets/generated/com/google/cloud/memcache/v1beta2/cloudmemcacheclient/listinstances/AsyncListInstances.java diff --git a/owl-bot-staging/v1beta2/samples/snippets/generated/com/google/cloud/memcache/v1beta2/cloudmemcacheclient/listinstances/AsyncListInstancesPaged.java b/samples/snippets/generated/com/google/cloud/memcache/v1beta2/cloudmemcacheclient/listinstances/AsyncListInstancesPaged.java similarity index 100% rename from owl-bot-staging/v1beta2/samples/snippets/generated/com/google/cloud/memcache/v1beta2/cloudmemcacheclient/listinstances/AsyncListInstancesPaged.java rename to samples/snippets/generated/com/google/cloud/memcache/v1beta2/cloudmemcacheclient/listinstances/AsyncListInstancesPaged.java diff --git a/owl-bot-staging/v1beta2/samples/snippets/generated/com/google/cloud/memcache/v1beta2/cloudmemcacheclient/listinstances/SyncListInstances.java b/samples/snippets/generated/com/google/cloud/memcache/v1beta2/cloudmemcacheclient/listinstances/SyncListInstances.java similarity index 100% rename from owl-bot-staging/v1beta2/samples/snippets/generated/com/google/cloud/memcache/v1beta2/cloudmemcacheclient/listinstances/SyncListInstances.java rename to samples/snippets/generated/com/google/cloud/memcache/v1beta2/cloudmemcacheclient/listinstances/SyncListInstances.java diff --git a/owl-bot-staging/v1beta2/samples/snippets/generated/com/google/cloud/memcache/v1beta2/cloudmemcacheclient/listinstances/SyncListInstancesLocationname.java b/samples/snippets/generated/com/google/cloud/memcache/v1beta2/cloudmemcacheclient/listinstances/SyncListInstancesLocationname.java similarity index 100% rename from owl-bot-staging/v1beta2/samples/snippets/generated/com/google/cloud/memcache/v1beta2/cloudmemcacheclient/listinstances/SyncListInstancesLocationname.java rename to samples/snippets/generated/com/google/cloud/memcache/v1beta2/cloudmemcacheclient/listinstances/SyncListInstancesLocationname.java diff --git a/owl-bot-staging/v1beta2/samples/snippets/generated/com/google/cloud/memcache/v1beta2/cloudmemcacheclient/listinstances/SyncListInstancesString.java b/samples/snippets/generated/com/google/cloud/memcache/v1beta2/cloudmemcacheclient/listinstances/SyncListInstancesString.java similarity index 100% rename from owl-bot-staging/v1beta2/samples/snippets/generated/com/google/cloud/memcache/v1beta2/cloudmemcacheclient/listinstances/SyncListInstancesString.java rename to samples/snippets/generated/com/google/cloud/memcache/v1beta2/cloudmemcacheclient/listinstances/SyncListInstancesString.java diff --git a/owl-bot-staging/v1beta2/samples/snippets/generated/com/google/cloud/memcache/v1beta2/cloudmemcacheclient/updateinstance/AsyncUpdateInstance.java b/samples/snippets/generated/com/google/cloud/memcache/v1beta2/cloudmemcacheclient/updateinstance/AsyncUpdateInstance.java similarity index 100% rename from owl-bot-staging/v1beta2/samples/snippets/generated/com/google/cloud/memcache/v1beta2/cloudmemcacheclient/updateinstance/AsyncUpdateInstance.java rename to samples/snippets/generated/com/google/cloud/memcache/v1beta2/cloudmemcacheclient/updateinstance/AsyncUpdateInstance.java diff --git a/owl-bot-staging/v1beta2/samples/snippets/generated/com/google/cloud/memcache/v1beta2/cloudmemcacheclient/updateinstance/AsyncUpdateInstanceLRO.java b/samples/snippets/generated/com/google/cloud/memcache/v1beta2/cloudmemcacheclient/updateinstance/AsyncUpdateInstanceLRO.java similarity index 100% rename from owl-bot-staging/v1beta2/samples/snippets/generated/com/google/cloud/memcache/v1beta2/cloudmemcacheclient/updateinstance/AsyncUpdateInstanceLRO.java rename to samples/snippets/generated/com/google/cloud/memcache/v1beta2/cloudmemcacheclient/updateinstance/AsyncUpdateInstanceLRO.java diff --git a/owl-bot-staging/v1beta2/samples/snippets/generated/com/google/cloud/memcache/v1beta2/cloudmemcacheclient/updateinstance/SyncUpdateInstance.java b/samples/snippets/generated/com/google/cloud/memcache/v1beta2/cloudmemcacheclient/updateinstance/SyncUpdateInstance.java similarity index 100% rename from owl-bot-staging/v1beta2/samples/snippets/generated/com/google/cloud/memcache/v1beta2/cloudmemcacheclient/updateinstance/SyncUpdateInstance.java rename to samples/snippets/generated/com/google/cloud/memcache/v1beta2/cloudmemcacheclient/updateinstance/SyncUpdateInstance.java diff --git a/owl-bot-staging/v1beta2/samples/snippets/generated/com/google/cloud/memcache/v1beta2/cloudmemcacheclient/updateinstance/SyncUpdateInstanceFieldmaskInstance.java b/samples/snippets/generated/com/google/cloud/memcache/v1beta2/cloudmemcacheclient/updateinstance/SyncUpdateInstanceFieldmaskInstance.java similarity index 100% rename from owl-bot-staging/v1beta2/samples/snippets/generated/com/google/cloud/memcache/v1beta2/cloudmemcacheclient/updateinstance/SyncUpdateInstanceFieldmaskInstance.java rename to samples/snippets/generated/com/google/cloud/memcache/v1beta2/cloudmemcacheclient/updateinstance/SyncUpdateInstanceFieldmaskInstance.java diff --git a/owl-bot-staging/v1beta2/samples/snippets/generated/com/google/cloud/memcache/v1beta2/cloudmemcacheclient/updateparameters/AsyncUpdateParameters.java b/samples/snippets/generated/com/google/cloud/memcache/v1beta2/cloudmemcacheclient/updateparameters/AsyncUpdateParameters.java similarity index 100% rename from owl-bot-staging/v1beta2/samples/snippets/generated/com/google/cloud/memcache/v1beta2/cloudmemcacheclient/updateparameters/AsyncUpdateParameters.java rename to samples/snippets/generated/com/google/cloud/memcache/v1beta2/cloudmemcacheclient/updateparameters/AsyncUpdateParameters.java diff --git a/owl-bot-staging/v1beta2/samples/snippets/generated/com/google/cloud/memcache/v1beta2/cloudmemcacheclient/updateparameters/AsyncUpdateParametersLRO.java b/samples/snippets/generated/com/google/cloud/memcache/v1beta2/cloudmemcacheclient/updateparameters/AsyncUpdateParametersLRO.java similarity index 100% rename from owl-bot-staging/v1beta2/samples/snippets/generated/com/google/cloud/memcache/v1beta2/cloudmemcacheclient/updateparameters/AsyncUpdateParametersLRO.java rename to samples/snippets/generated/com/google/cloud/memcache/v1beta2/cloudmemcacheclient/updateparameters/AsyncUpdateParametersLRO.java diff --git a/owl-bot-staging/v1beta2/samples/snippets/generated/com/google/cloud/memcache/v1beta2/cloudmemcacheclient/updateparameters/SyncUpdateParameters.java b/samples/snippets/generated/com/google/cloud/memcache/v1beta2/cloudmemcacheclient/updateparameters/SyncUpdateParameters.java similarity index 100% rename from owl-bot-staging/v1beta2/samples/snippets/generated/com/google/cloud/memcache/v1beta2/cloudmemcacheclient/updateparameters/SyncUpdateParameters.java rename to samples/snippets/generated/com/google/cloud/memcache/v1beta2/cloudmemcacheclient/updateparameters/SyncUpdateParameters.java diff --git a/owl-bot-staging/v1beta2/samples/snippets/generated/com/google/cloud/memcache/v1beta2/cloudmemcacheclient/updateparameters/SyncUpdateParametersInstancenameFieldmaskMemcacheparameters.java b/samples/snippets/generated/com/google/cloud/memcache/v1beta2/cloudmemcacheclient/updateparameters/SyncUpdateParametersInstancenameFieldmaskMemcacheparameters.java similarity index 100% rename from owl-bot-staging/v1beta2/samples/snippets/generated/com/google/cloud/memcache/v1beta2/cloudmemcacheclient/updateparameters/SyncUpdateParametersInstancenameFieldmaskMemcacheparameters.java rename to samples/snippets/generated/com/google/cloud/memcache/v1beta2/cloudmemcacheclient/updateparameters/SyncUpdateParametersInstancenameFieldmaskMemcacheparameters.java diff --git a/owl-bot-staging/v1beta2/samples/snippets/generated/com/google/cloud/memcache/v1beta2/cloudmemcacheclient/updateparameters/SyncUpdateParametersStringFieldmaskMemcacheparameters.java b/samples/snippets/generated/com/google/cloud/memcache/v1beta2/cloudmemcacheclient/updateparameters/SyncUpdateParametersStringFieldmaskMemcacheparameters.java similarity index 100% rename from owl-bot-staging/v1beta2/samples/snippets/generated/com/google/cloud/memcache/v1beta2/cloudmemcacheclient/updateparameters/SyncUpdateParametersStringFieldmaskMemcacheparameters.java rename to samples/snippets/generated/com/google/cloud/memcache/v1beta2/cloudmemcacheclient/updateparameters/SyncUpdateParametersStringFieldmaskMemcacheparameters.java diff --git a/owl-bot-staging/v1beta2/samples/snippets/generated/com/google/cloud/memcache/v1beta2/cloudmemcachesettings/getinstance/SyncGetInstance.java b/samples/snippets/generated/com/google/cloud/memcache/v1beta2/cloudmemcachesettings/getinstance/SyncGetInstance.java similarity index 100% rename from owl-bot-staging/v1beta2/samples/snippets/generated/com/google/cloud/memcache/v1beta2/cloudmemcachesettings/getinstance/SyncGetInstance.java rename to samples/snippets/generated/com/google/cloud/memcache/v1beta2/cloudmemcachesettings/getinstance/SyncGetInstance.java diff --git a/owl-bot-staging/v1beta2/samples/snippets/generated/com/google/cloud/memcache/v1beta2/stub/cloudmemcachestubsettings/getinstance/SyncGetInstance.java b/samples/snippets/generated/com/google/cloud/memcache/v1beta2/stub/cloudmemcachestubsettings/getinstance/SyncGetInstance.java similarity index 100% rename from owl-bot-staging/v1beta2/samples/snippets/generated/com/google/cloud/memcache/v1beta2/stub/cloudmemcachestubsettings/getinstance/SyncGetInstance.java rename to samples/snippets/generated/com/google/cloud/memcache/v1beta2/stub/cloudmemcachestubsettings/getinstance/SyncGetInstance.java