From c2a167d174d246876c712ab62bcfb3efd1e36ba2 Mon Sep 17 00:00:00 2001 From: Owl Bot Date: Thu, 23 Jun 2022 02:26:18 +0000 Subject: [PATCH 1/4] feat: Enable REST transport for most of Java and Go clients PiperOrigin-RevId: 456641589 Source-Link: https://github.com/googleapis/googleapis/commit/8a251f5225b789b2383207ffd978f6aa3d77fcf7 Source-Link: https://github.com/googleapis/googleapis-gen/commit/4ca52a529cf01308d9714950edffbea3560cfbdb Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiNGNhNTJhNTI5Y2YwMTMwOGQ5NzE0OTUwZWRmZmJlYTM1NjBjZmJkYiJ9 --- .../cloud/iot/v1/DeviceManagerGrpc.java | 2533 ----------------- .../cloud/iot/v1/DeviceManagerClient.java | 48 +- .../cloud/iot/v1/DeviceManagerSettings.java | 36 +- .../google/cloud/iot/v1/gapic_metadata.json | 0 .../com/google/cloud/iot/v1/package-info.java | 0 .../cloud/iot/v1/stub/DeviceManagerStub.java | 0 .../v1/stub/DeviceManagerStubSettings.java | 77 +- .../GrpcDeviceManagerCallableFactory.java | 0 .../iot/v1/stub/GrpcDeviceManagerStub.java | 1 + .../HttpJsonDeviceManagerCallableFactory.java | 105 + .../v1/stub/HttpJsonDeviceManagerStub.java | 1248 ++++++++ .../v1/DeviceManagerClientHttpJsonTest.java | 2008 +++++++++++++ .../cloud/iot/v1/DeviceManagerClientTest.java | 0 .../cloud/iot/v1/MockDeviceManager.java | 0 .../cloud/iot/v1/MockDeviceManagerImpl.java | 0 .../cloud/iot/v1/DeviceManagerGrpc.java | 1935 +++++++++++++ .../iot/v1/BindDeviceToGatewayRequest.java | 497 ++-- .../BindDeviceToGatewayRequestOrBuilder.java | 53 +- .../iot/v1/BindDeviceToGatewayResponse.java | 235 +- .../BindDeviceToGatewayResponseOrBuilder.java | 9 + .../iot/v1/CreateDeviceRegistryRequest.java | 485 ++-- .../CreateDeviceRegistryRequestOrBuilder.java | 55 +- .../cloud/iot/v1/CreateDeviceRequest.java | 444 ++- .../iot/v1/CreateDeviceRequestOrBuilder.java | 43 +- .../iot/v1/DeleteDeviceRegistryRequest.java | 339 +-- .../DeleteDeviceRegistryRequestOrBuilder.java | 31 + .../cloud/iot/v1/DeleteDeviceRequest.java | 329 +-- .../iot/v1/DeleteDeviceRequestOrBuilder.java | 33 + .../java/com/google/cloud/iot/v1/Device.java | 1894 +++++------- .../com/google/cloud/iot/v1/DeviceConfig.java | 486 ++-- .../cloud/iot/v1/DeviceConfigOrBuilder.java | 40 +- .../google/cloud/iot/v1/DeviceCredential.java | 469 ++- .../iot/v1/DeviceCredentialOrBuilder.java | 34 +- .../cloud/iot/v1/DeviceManagerProto.java | 532 ++++ .../com/google/cloud/iot/v1/DeviceName.java | 0 .../google/cloud/iot/v1/DeviceOrBuilder.java | 177 +- .../google/cloud/iot/v1/DeviceRegistry.java | 1125 +++----- .../cloud/iot/v1/DeviceRegistryOrBuilder.java | 114 +- .../com/google/cloud/iot/v1/DeviceState.java | 345 +-- .../cloud/iot/v1/DeviceStateOrBuilder.java | 29 +- .../cloud/iot/v1/EventNotificationConfig.java | 383 ++- .../v1/EventNotificationConfigOrBuilder.java | 36 +- .../cloud/iot/v1/GatewayAuthMethod.java | 87 +- .../google/cloud/iot/v1/GatewayConfig.java | 513 ++-- .../cloud/iot/v1/GatewayConfigOrBuilder.java | 47 +- .../cloud/iot/v1/GatewayListOptions.java | 524 ++-- .../iot/v1/GatewayListOptionsOrBuilder.java | 51 +- .../com/google/cloud/iot/v1/GatewayType.java | 82 +- .../iot/v1/GetDeviceRegistryRequest.java | 336 +-- .../v1/GetDeviceRegistryRequestOrBuilder.java | 31 + .../google/cloud/iot/v1/GetDeviceRequest.java | 414 ++- .../iot/v1/GetDeviceRequestOrBuilder.java | 43 +- .../com/google/cloud/iot/v1/HttpConfig.java | 271 +- .../cloud/iot/v1/HttpConfigOrBuilder.java | 24 +- .../com/google/cloud/iot/v1/HttpState.java | 82 +- .../v1/ListDeviceConfigVersionsRequest.java | 379 +-- ...tDeviceConfigVersionsRequestOrBuilder.java | 38 +- .../v1/ListDeviceConfigVersionsResponse.java | 385 +-- ...DeviceConfigVersionsResponseOrBuilder.java | 36 +- .../iot/v1/ListDeviceRegistriesRequest.java | 452 ++- .../ListDeviceRegistriesRequestOrBuilder.java | 47 +- .../iot/v1/ListDeviceRegistriesResponse.java | 456 ++- ...ListDeviceRegistriesResponseOrBuilder.java | 45 +- .../cloud/iot/v1/ListDeviceStatesRequest.java | 366 +-- .../v1/ListDeviceStatesRequestOrBuilder.java | 38 +- .../iot/v1/ListDeviceStatesResponse.java | 378 +-- .../v1/ListDeviceStatesResponseOrBuilder.java | 36 +- .../cloud/iot/v1/ListDevicesRequest.java | 841 ++---- .../iot/v1/ListDevicesRequestOrBuilder.java | 90 +- .../cloud/iot/v1/ListDevicesResponse.java | 454 ++- .../iot/v1/ListDevicesResponseOrBuilder.java | 46 +- .../com/google/cloud/iot/v1/LocationName.java | 0 .../com/google/cloud/iot/v1/LogLevel.java | 96 +- .../v1/ModifyCloudToDeviceConfigRequest.java | 418 ++- ...fyCloudToDeviceConfigRequestOrBuilder.java | 41 +- .../com/google/cloud/iot/v1/MqttConfig.java | 271 +- .../cloud/iot/v1/MqttConfigOrBuilder.java | 24 +- .../com/google/cloud/iot/v1/MqttState.java | 82 +- .../cloud/iot/v1/PublicKeyCertificate.java | 473 ++- .../iot/v1/PublicKeyCertificateFormat.java | 70 +- .../iot/v1/PublicKeyCertificateOrBuilder.java | 41 +- .../cloud/iot/v1/PublicKeyCredential.java | 363 +-- .../iot/v1/PublicKeyCredentialOrBuilder.java | 33 +- .../google/cloud/iot/v1/PublicKeyFormat.java | 96 +- .../cloud/iot/v1/RegistryCredential.java | 373 +-- .../iot/v1/RegistryCredentialOrBuilder.java | 26 +- .../com/google/cloud/iot/v1/RegistryName.java | 0 .../google/cloud/iot/v1/ResourcesProto.java | 309 ++ .../iot/v1/SendCommandToDeviceRequest.java | 454 ++- .../SendCommandToDeviceRequestOrBuilder.java | 47 +- .../iot/v1/SendCommandToDeviceResponse.java | 235 +- .../SendCommandToDeviceResponseOrBuilder.java | 9 + .../cloud/iot/v1/StateNotificationConfig.java | 304 +- .../v1/StateNotificationConfigOrBuilder.java | 27 +- .../v1/UnbindDeviceFromGatewayRequest.java | 503 ++-- ...bindDeviceFromGatewayRequestOrBuilder.java | 53 +- .../v1/UnbindDeviceFromGatewayResponse.java | 241 +- ...indDeviceFromGatewayResponseOrBuilder.java | 9 + .../iot/v1/UpdateDeviceRegistryRequest.java | 513 ++-- .../UpdateDeviceRegistryRequestOrBuilder.java | 55 +- .../cloud/iot/v1/UpdateDeviceRequest.java | 472 ++- .../iot/v1/UpdateDeviceRequestOrBuilder.java | 43 +- .../cloud/iot/v1/X509CertificateDetails.java | 722 ++--- .../v1/X509CertificateDetailsOrBuilder.java | 70 +- .../google/cloud/iot/v1/device_manager.proto | 0 .../proto/google/cloud/iot/v1/resources.proto | 0 .../AsyncBindDeviceToGateway.java | 49 + .../SyncBindDeviceToGateway.java | 45 + ...viceToGatewayRegistrynameStringString.java | 42 + ...BindDeviceToGatewayStringStringString.java | 42 + .../SyncCreateSetCredentialsProvider.java | 41 + .../SyncCreateSetCredentialsProvider1.java | 40 + .../create/SyncCreateSetEndpoint.java | 38 + .../createdevice/AsyncCreateDevice.java | 47 + .../createdevice/SyncCreateDevice.java | 44 + .../SyncCreateDeviceRegistrynameDevice.java | 40 + .../SyncCreateDeviceStringDevice.java | 40 + .../AsyncCreateDeviceRegistry.java | 48 + .../SyncCreateDeviceRegistry.java | 44 + ...iceRegistryLocationnameDeviceregistry.java | 40 + ...ateDeviceRegistryStringDeviceregistry.java | 40 + .../deletedevice/AsyncDeleteDevice.java | 47 + .../deletedevice/SyncDeleteDevice.java | 44 + .../SyncDeleteDeviceDevicename.java | 39 + .../deletedevice/SyncDeleteDeviceString.java | 39 + .../AsyncDeleteDeviceRegistry.java | 47 + .../SyncDeleteDeviceRegistry.java | 43 + .../SyncDeleteDeviceRegistryRegistryname.java | 39 + .../SyncDeleteDeviceRegistryString.java | 39 + .../getdevice/AsyncGetDevice.java | 49 + .../getdevice/SyncGetDevice.java | 46 + .../getdevice/SyncGetDeviceDevicename.java | 39 + .../getdevice/SyncGetDeviceString.java | 39 + .../AsyncGetDeviceRegistry.java | 47 + .../SyncGetDeviceRegistry.java | 43 + .../SyncGetDeviceRegistryRegistryname.java | 39 + .../SyncGetDeviceRegistryString.java | 39 + .../getiampolicy/AsyncGetIamPolicy.java | 48 + .../getiampolicy/SyncGetIamPolicy.java | 45 + .../SyncGetIamPolicyResourcename.java | 40 + .../getiampolicy/SyncGetIamPolicyString.java | 40 + .../AsyncListDeviceConfigVersions.java | 49 + .../SyncListDeviceConfigVersions.java | 46 + ...yncListDeviceConfigVersionsDevicename.java | 40 + .../SyncListDeviceConfigVersionsString.java | 40 + .../AsyncListDeviceRegistries.java | 51 + .../AsyncListDeviceRegistriesPaged.java | 59 + .../SyncListDeviceRegistries.java | 48 + .../SyncListDeviceRegistriesLocationname.java | 41 + .../SyncListDeviceRegistriesString.java | 41 + .../listdevices/AsyncListDevices.java | 57 + .../listdevices/AsyncListDevicesPaged.java | 65 + .../listdevices/SyncListDevices.java | 54 + .../SyncListDevicesRegistryname.java | 41 + .../listdevices/SyncListDevicesString.java | 41 + .../AsyncListDeviceStates.java | 49 + .../SyncListDeviceStates.java | 45 + .../SyncListDeviceStatesDevicename.java | 39 + .../SyncListDeviceStatesString.java | 39 + .../AsyncModifyCloudToDeviceConfig.java | 51 + .../SyncModifyCloudToDeviceConfig.java | 47 + ...oudToDeviceConfigDevicenameBytestring.java | 41 + ...fyCloudToDeviceConfigStringBytestring.java | 41 + .../AsyncSendCommandToDevice.java | 51 + .../SyncSendCommandToDevice.java | 47 + ...ndCommandToDeviceDevicenameBytestring.java | 42 + ...andToDeviceDevicenameBytestringString.java | 43 + ...ncSendCommandToDeviceStringBytestring.java | 42 + ...CommandToDeviceStringBytestringString.java | 43 + .../setiampolicy/AsyncSetIamPolicy.java | 49 + .../setiampolicy/SyncSetIamPolicy.java | 46 + .../SyncSetIamPolicyResourcenamePolicy.java | 41 + .../SyncSetIamPolicyStringPolicy.java | 41 + .../AsyncTestIamPermissions.java | 49 + .../SyncTestIamPermissions.java | 45 + ...tIamPermissionsResourcenameListstring.java | 44 + ...yncTestIamPermissionsStringListstring.java | 44 + .../AsyncUnbindDeviceFromGateway.java | 49 + .../SyncUnbindDeviceFromGateway.java | 46 + ...ceFromGatewayRegistrynameStringString.java | 42 + ...ndDeviceFromGatewayStringStringString.java | 42 + .../updatedevice/AsyncUpdateDevice.java | 47 + .../updatedevice/SyncUpdateDevice.java | 44 + .../SyncUpdateDeviceDeviceFieldmask.java | 40 + .../AsyncUpdateDeviceRegistry.java | 48 + .../SyncUpdateDeviceRegistry.java | 44 + ...DeviceRegistryDeviceregistryFieldmask.java | 41 + .../SyncCreateDeviceRegistry.java | 45 + .../SyncCreateDeviceRegistry.java | 46 + .../BindDeviceToGatewayResponseOrBuilder.java | 24 - .../DeleteDeviceRegistryRequestOrBuilder.java | 56 - .../iot/v1/DeleteDeviceRequestOrBuilder.java | 58 - .../cloud/iot/v1/DeviceManagerProto.java | 570 ---- .../v1/GetDeviceRegistryRequestOrBuilder.java | 56 - .../google/cloud/iot/v1/ResourcesProto.java | 364 --- .../SendCommandToDeviceResponseOrBuilder.java | 24 - ...indDeviceFromGatewayResponseOrBuilder.java | 24 - 197 files changed, 17530 insertions(+), 16596 deletions(-) delete mode 100644 grpc-google-cloud-iot-v1/src/main/java/com/google/cloud/iot/v1/DeviceManagerGrpc.java rename {google-cloud-iot => owl-bot-staging/v1/google-cloud-iot}/src/main/java/com/google/cloud/iot/v1/DeviceManagerClient.java (98%) rename {google-cloud-iot => owl-bot-staging/v1/google-cloud-iot}/src/main/java/com/google/cloud/iot/v1/DeviceManagerSettings.java (93%) rename {google-cloud-iot => owl-bot-staging/v1/google-cloud-iot}/src/main/java/com/google/cloud/iot/v1/gapic_metadata.json (100%) rename {google-cloud-iot => owl-bot-staging/v1/google-cloud-iot}/src/main/java/com/google/cloud/iot/v1/package-info.java (100%) rename {google-cloud-iot => owl-bot-staging/v1/google-cloud-iot}/src/main/java/com/google/cloud/iot/v1/stub/DeviceManagerStub.java (100%) rename {google-cloud-iot => owl-bot-staging/v1/google-cloud-iot}/src/main/java/com/google/cloud/iot/v1/stub/DeviceManagerStubSettings.java (93%) rename {google-cloud-iot => owl-bot-staging/v1/google-cloud-iot}/src/main/java/com/google/cloud/iot/v1/stub/GrpcDeviceManagerCallableFactory.java (100%) rename {google-cloud-iot => owl-bot-staging/v1/google-cloud-iot}/src/main/java/com/google/cloud/iot/v1/stub/GrpcDeviceManagerStub.java (99%) create mode 100644 owl-bot-staging/v1/google-cloud-iot/src/main/java/com/google/cloud/iot/v1/stub/HttpJsonDeviceManagerCallableFactory.java create mode 100644 owl-bot-staging/v1/google-cloud-iot/src/main/java/com/google/cloud/iot/v1/stub/HttpJsonDeviceManagerStub.java create mode 100644 owl-bot-staging/v1/google-cloud-iot/src/test/java/com/google/cloud/iot/v1/DeviceManagerClientHttpJsonTest.java rename {google-cloud-iot => owl-bot-staging/v1/google-cloud-iot}/src/test/java/com/google/cloud/iot/v1/DeviceManagerClientTest.java (100%) rename {google-cloud-iot => owl-bot-staging/v1/google-cloud-iot}/src/test/java/com/google/cloud/iot/v1/MockDeviceManager.java (100%) rename {google-cloud-iot => owl-bot-staging/v1/google-cloud-iot}/src/test/java/com/google/cloud/iot/v1/MockDeviceManagerImpl.java (100%) create mode 100644 owl-bot-staging/v1/grpc-google-cloud-iot-v1/src/main/java/com/google/cloud/iot/v1/DeviceManagerGrpc.java rename {proto-google-cloud-iot-v1 => owl-bot-staging/v1/proto-google-cloud-iot-v1}/src/main/java/com/google/cloud/iot/v1/BindDeviceToGatewayRequest.java (70%) rename {proto-google-cloud-iot-v1 => owl-bot-staging/v1/proto-google-cloud-iot-v1}/src/main/java/com/google/cloud/iot/v1/BindDeviceToGatewayRequestOrBuilder.java (63%) rename {proto-google-cloud-iot-v1 => owl-bot-staging/v1/proto-google-cloud-iot-v1}/src/main/java/com/google/cloud/iot/v1/BindDeviceToGatewayResponse.java (65%) create mode 100644 owl-bot-staging/v1/proto-google-cloud-iot-v1/src/main/java/com/google/cloud/iot/v1/BindDeviceToGatewayResponseOrBuilder.java rename {proto-google-cloud-iot-v1 => owl-bot-staging/v1/proto-google-cloud-iot-v1}/src/main/java/com/google/cloud/iot/v1/CreateDeviceRegistryRequest.java (65%) rename {proto-google-cloud-iot-v1 => owl-bot-staging/v1/proto-google-cloud-iot-v1}/src/main/java/com/google/cloud/iot/v1/CreateDeviceRegistryRequestOrBuilder.java (54%) rename {proto-google-cloud-iot-v1 => owl-bot-staging/v1/proto-google-cloud-iot-v1}/src/main/java/com/google/cloud/iot/v1/CreateDeviceRequest.java (69%) rename {proto-google-cloud-iot-v1 => owl-bot-staging/v1/proto-google-cloud-iot-v1}/src/main/java/com/google/cloud/iot/v1/CreateDeviceRequestOrBuilder.java (65%) rename {proto-google-cloud-iot-v1 => owl-bot-staging/v1/proto-google-cloud-iot-v1}/src/main/java/com/google/cloud/iot/v1/DeleteDeviceRegistryRequest.java (65%) create mode 100644 owl-bot-staging/v1/proto-google-cloud-iot-v1/src/main/java/com/google/cloud/iot/v1/DeleteDeviceRegistryRequestOrBuilder.java rename {proto-google-cloud-iot-v1 => owl-bot-staging/v1/proto-google-cloud-iot-v1}/src/main/java/com/google/cloud/iot/v1/DeleteDeviceRequest.java (67%) create mode 100644 owl-bot-staging/v1/proto-google-cloud-iot-v1/src/main/java/com/google/cloud/iot/v1/DeleteDeviceRequestOrBuilder.java rename {proto-google-cloud-iot-v1 => owl-bot-staging/v1/proto-google-cloud-iot-v1}/src/main/java/com/google/cloud/iot/v1/Device.java (78%) rename {proto-google-cloud-iot-v1 => owl-bot-staging/v1/proto-google-cloud-iot-v1}/src/main/java/com/google/cloud/iot/v1/DeviceConfig.java (77%) rename {proto-google-cloud-iot-v1 => owl-bot-staging/v1/proto-google-cloud-iot-v1}/src/main/java/com/google/cloud/iot/v1/DeviceConfigOrBuilder.java (85%) rename {proto-google-cloud-iot-v1 => owl-bot-staging/v1/proto-google-cloud-iot-v1}/src/main/java/com/google/cloud/iot/v1/DeviceCredential.java (77%) rename {proto-google-cloud-iot-v1 => owl-bot-staging/v1/proto-google-cloud-iot-v1}/src/main/java/com/google/cloud/iot/v1/DeviceCredentialOrBuilder.java (85%) create mode 100644 owl-bot-staging/v1/proto-google-cloud-iot-v1/src/main/java/com/google/cloud/iot/v1/DeviceManagerProto.java rename {proto-google-cloud-iot-v1 => owl-bot-staging/v1/proto-google-cloud-iot-v1}/src/main/java/com/google/cloud/iot/v1/DeviceName.java (100%) rename {proto-google-cloud-iot-v1 => owl-bot-staging/v1/proto-google-cloud-iot-v1}/src/main/java/com/google/cloud/iot/v1/DeviceOrBuilder.java (91%) rename {proto-google-cloud-iot-v1 => owl-bot-staging/v1/proto-google-cloud-iot-v1}/src/main/java/com/google/cloud/iot/v1/DeviceRegistry.java (81%) rename {proto-google-cloud-iot-v1 => owl-bot-staging/v1/proto-google-cloud-iot-v1}/src/main/java/com/google/cloud/iot/v1/DeviceRegistryOrBuilder.java (90%) rename {proto-google-cloud-iot-v1 => owl-bot-staging/v1/proto-google-cloud-iot-v1}/src/main/java/com/google/cloud/iot/v1/DeviceState.java (71%) rename {proto-google-cloud-iot-v1 => owl-bot-staging/v1/proto-google-cloud-iot-v1}/src/main/java/com/google/cloud/iot/v1/DeviceStateOrBuilder.java (64%) rename {proto-google-cloud-iot-v1 => owl-bot-staging/v1/proto-google-cloud-iot-v1}/src/main/java/com/google/cloud/iot/v1/EventNotificationConfig.java (72%) rename {proto-google-cloud-iot-v1 => owl-bot-staging/v1/proto-google-cloud-iot-v1}/src/main/java/com/google/cloud/iot/v1/EventNotificationConfigOrBuilder.java (66%) rename {proto-google-cloud-iot-v1 => owl-bot-staging/v1/proto-google-cloud-iot-v1}/src/main/java/com/google/cloud/iot/v1/GatewayAuthMethod.java (73%) rename {proto-google-cloud-iot-v1 => owl-bot-staging/v1/proto-google-cloud-iot-v1}/src/main/java/com/google/cloud/iot/v1/GatewayConfig.java (73%) rename {proto-google-cloud-iot-v1 => owl-bot-staging/v1/proto-google-cloud-iot-v1}/src/main/java/com/google/cloud/iot/v1/GatewayConfigOrBuilder.java (77%) rename {proto-google-cloud-iot-v1 => owl-bot-staging/v1/proto-google-cloud-iot-v1}/src/main/java/com/google/cloud/iot/v1/GatewayListOptions.java (76%) rename {proto-google-cloud-iot-v1 => owl-bot-staging/v1/proto-google-cloud-iot-v1}/src/main/java/com/google/cloud/iot/v1/GatewayListOptionsOrBuilder.java (82%) rename {proto-google-cloud-iot-v1 => owl-bot-staging/v1/proto-google-cloud-iot-v1}/src/main/java/com/google/cloud/iot/v1/GatewayType.java (66%) rename {proto-google-cloud-iot-v1 => owl-bot-staging/v1/proto-google-cloud-iot-v1}/src/main/java/com/google/cloud/iot/v1/GetDeviceRegistryRequest.java (66%) create mode 100644 owl-bot-staging/v1/proto-google-cloud-iot-v1/src/main/java/com/google/cloud/iot/v1/GetDeviceRegistryRequestOrBuilder.java rename {proto-google-cloud-iot-v1 => owl-bot-staging/v1/proto-google-cloud-iot-v1}/src/main/java/com/google/cloud/iot/v1/GetDeviceRequest.java (71%) rename {proto-google-cloud-iot-v1 => owl-bot-staging/v1/proto-google-cloud-iot-v1}/src/main/java/com/google/cloud/iot/v1/GetDeviceRequestOrBuilder.java (66%) rename {proto-google-cloud-iot-v1 => owl-bot-staging/v1/proto-google-cloud-iot-v1}/src/main/java/com/google/cloud/iot/v1/HttpConfig.java (70%) rename {proto-google-cloud-iot-v1 => owl-bot-staging/v1/proto-google-cloud-iot-v1}/src/main/java/com/google/cloud/iot/v1/HttpConfigOrBuilder.java (59%) rename {proto-google-cloud-iot-v1 => owl-bot-staging/v1/proto-google-cloud-iot-v1}/src/main/java/com/google/cloud/iot/v1/HttpState.java (68%) rename {proto-google-cloud-iot-v1 => owl-bot-staging/v1/proto-google-cloud-iot-v1}/src/main/java/com/google/cloud/iot/v1/ListDeviceConfigVersionsRequest.java (67%) rename {proto-google-cloud-iot-v1 => owl-bot-staging/v1/proto-google-cloud-iot-v1}/src/main/java/com/google/cloud/iot/v1/ListDeviceConfigVersionsRequestOrBuilder.java (55%) rename {proto-google-cloud-iot-v1 => owl-bot-staging/v1/proto-google-cloud-iot-v1}/src/main/java/com/google/cloud/iot/v1/ListDeviceConfigVersionsResponse.java (74%) rename {proto-google-cloud-iot-v1 => owl-bot-staging/v1/proto-google-cloud-iot-v1}/src/main/java/com/google/cloud/iot/v1/ListDeviceConfigVersionsResponseOrBuilder.java (69%) rename {proto-google-cloud-iot-v1 => owl-bot-staging/v1/proto-google-cloud-iot-v1}/src/main/java/com/google/cloud/iot/v1/ListDeviceRegistriesRequest.java (70%) rename {proto-google-cloud-iot-v1 => owl-bot-staging/v1/proto-google-cloud-iot-v1}/src/main/java/com/google/cloud/iot/v1/ListDeviceRegistriesRequestOrBuilder.java (61%) rename {proto-google-cloud-iot-v1 => owl-bot-staging/v1/proto-google-cloud-iot-v1}/src/main/java/com/google/cloud/iot/v1/ListDeviceRegistriesResponse.java (74%) rename {proto-google-cloud-iot-v1 => owl-bot-staging/v1/proto-google-cloud-iot-v1}/src/main/java/com/google/cloud/iot/v1/ListDeviceRegistriesResponseOrBuilder.java (68%) rename {proto-google-cloud-iot-v1 => owl-bot-staging/v1/proto-google-cloud-iot-v1}/src/main/java/com/google/cloud/iot/v1/ListDeviceStatesRequest.java (69%) rename {proto-google-cloud-iot-v1 => owl-bot-staging/v1/proto-google-cloud-iot-v1}/src/main/java/com/google/cloud/iot/v1/ListDeviceStatesRequestOrBuilder.java (54%) rename {proto-google-cloud-iot-v1 => owl-bot-staging/v1/proto-google-cloud-iot-v1}/src/main/java/com/google/cloud/iot/v1/ListDeviceStatesResponse.java (75%) rename {proto-google-cloud-iot-v1 => owl-bot-staging/v1/proto-google-cloud-iot-v1}/src/main/java/com/google/cloud/iot/v1/ListDeviceStatesResponseOrBuilder.java (69%) rename {proto-google-cloud-iot-v1 => owl-bot-staging/v1/proto-google-cloud-iot-v1}/src/main/java/com/google/cloud/iot/v1/ListDevicesRequest.java (74%) rename {proto-google-cloud-iot-v1 => owl-bot-staging/v1/proto-google-cloud-iot-v1}/src/main/java/com/google/cloud/iot/v1/ListDevicesRequestOrBuilder.java (80%) rename {proto-google-cloud-iot-v1 => owl-bot-staging/v1/proto-google-cloud-iot-v1}/src/main/java/com/google/cloud/iot/v1/ListDevicesResponse.java (73%) rename {proto-google-cloud-iot-v1 => owl-bot-staging/v1/proto-google-cloud-iot-v1}/src/main/java/com/google/cloud/iot/v1/ListDevicesResponseOrBuilder.java (64%) rename {proto-google-cloud-iot-v1 => owl-bot-staging/v1/proto-google-cloud-iot-v1}/src/main/java/com/google/cloud/iot/v1/LocationName.java (100%) rename {proto-google-cloud-iot-v1 => owl-bot-staging/v1/proto-google-cloud-iot-v1}/src/main/java/com/google/cloud/iot/v1/LogLevel.java (70%) rename {proto-google-cloud-iot-v1 => owl-bot-staging/v1/proto-google-cloud-iot-v1}/src/main/java/com/google/cloud/iot/v1/ModifyCloudToDeviceConfigRequest.java (69%) rename {proto-google-cloud-iot-v1 => owl-bot-staging/v1/proto-google-cloud-iot-v1}/src/main/java/com/google/cloud/iot/v1/ModifyCloudToDeviceConfigRequestOrBuilder.java (61%) rename {proto-google-cloud-iot-v1 => owl-bot-staging/v1/proto-google-cloud-iot-v1}/src/main/java/com/google/cloud/iot/v1/MqttConfig.java (70%) rename {proto-google-cloud-iot-v1 => owl-bot-staging/v1/proto-google-cloud-iot-v1}/src/main/java/com/google/cloud/iot/v1/MqttConfigOrBuilder.java (58%) rename {proto-google-cloud-iot-v1 => owl-bot-staging/v1/proto-google-cloud-iot-v1}/src/main/java/com/google/cloud/iot/v1/MqttState.java (67%) rename {proto-google-cloud-iot-v1 => owl-bot-staging/v1/proto-google-cloud-iot-v1}/src/main/java/com/google/cloud/iot/v1/PublicKeyCertificate.java (70%) rename {proto-google-cloud-iot-v1 => owl-bot-staging/v1/proto-google-cloud-iot-v1}/src/main/java/com/google/cloud/iot/v1/PublicKeyCertificateFormat.java (70%) rename {proto-google-cloud-iot-v1 => owl-bot-staging/v1/proto-google-cloud-iot-v1}/src/main/java/com/google/cloud/iot/v1/PublicKeyCertificateOrBuilder.java (70%) rename {proto-google-cloud-iot-v1 => owl-bot-staging/v1/proto-google-cloud-iot-v1}/src/main/java/com/google/cloud/iot/v1/PublicKeyCredential.java (69%) rename {proto-google-cloud-iot-v1 => owl-bot-staging/v1/proto-google-cloud-iot-v1}/src/main/java/com/google/cloud/iot/v1/PublicKeyCredentialOrBuilder.java (56%) rename {proto-google-cloud-iot-v1 => owl-bot-staging/v1/proto-google-cloud-iot-v1}/src/main/java/com/google/cloud/iot/v1/PublicKeyFormat.java (77%) rename {proto-google-cloud-iot-v1 => owl-bot-staging/v1/proto-google-cloud-iot-v1}/src/main/java/com/google/cloud/iot/v1/RegistryCredential.java (70%) rename {proto-google-cloud-iot-v1 => owl-bot-staging/v1/proto-google-cloud-iot-v1}/src/main/java/com/google/cloud/iot/v1/RegistryCredentialOrBuilder.java (64%) rename {proto-google-cloud-iot-v1 => owl-bot-staging/v1/proto-google-cloud-iot-v1}/src/main/java/com/google/cloud/iot/v1/RegistryName.java (100%) create mode 100644 owl-bot-staging/v1/proto-google-cloud-iot-v1/src/main/java/com/google/cloud/iot/v1/ResourcesProto.java rename {proto-google-cloud-iot-v1 => owl-bot-staging/v1/proto-google-cloud-iot-v1}/src/main/java/com/google/cloud/iot/v1/SendCommandToDeviceRequest.java (71%) rename {proto-google-cloud-iot-v1 => owl-bot-staging/v1/proto-google-cloud-iot-v1}/src/main/java/com/google/cloud/iot/v1/SendCommandToDeviceRequestOrBuilder.java (66%) rename {proto-google-cloud-iot-v1 => owl-bot-staging/v1/proto-google-cloud-iot-v1}/src/main/java/com/google/cloud/iot/v1/SendCommandToDeviceResponse.java (65%) create mode 100644 owl-bot-staging/v1/proto-google-cloud-iot-v1/src/main/java/com/google/cloud/iot/v1/SendCommandToDeviceResponseOrBuilder.java rename {proto-google-cloud-iot-v1 => owl-bot-staging/v1/proto-google-cloud-iot-v1}/src/main/java/com/google/cloud/iot/v1/StateNotificationConfig.java (69%) rename {proto-google-cloud-iot-v1 => owl-bot-staging/v1/proto-google-cloud-iot-v1}/src/main/java/com/google/cloud/iot/v1/StateNotificationConfigOrBuilder.java (50%) rename {proto-google-cloud-iot-v1 => owl-bot-staging/v1/proto-google-cloud-iot-v1}/src/main/java/com/google/cloud/iot/v1/UnbindDeviceFromGatewayRequest.java (69%) rename {proto-google-cloud-iot-v1 => owl-bot-staging/v1/proto-google-cloud-iot-v1}/src/main/java/com/google/cloud/iot/v1/UnbindDeviceFromGatewayRequestOrBuilder.java (63%) rename {proto-google-cloud-iot-v1 => owl-bot-staging/v1/proto-google-cloud-iot-v1}/src/main/java/com/google/cloud/iot/v1/UnbindDeviceFromGatewayResponse.java (65%) create mode 100644 owl-bot-staging/v1/proto-google-cloud-iot-v1/src/main/java/com/google/cloud/iot/v1/UnbindDeviceFromGatewayResponseOrBuilder.java rename {proto-google-cloud-iot-v1 => owl-bot-staging/v1/proto-google-cloud-iot-v1}/src/main/java/com/google/cloud/iot/v1/UpdateDeviceRegistryRequest.java (69%) rename {proto-google-cloud-iot-v1 => owl-bot-staging/v1/proto-google-cloud-iot-v1}/src/main/java/com/google/cloud/iot/v1/UpdateDeviceRegistryRequestOrBuilder.java (69%) rename {proto-google-cloud-iot-v1 => owl-bot-staging/v1/proto-google-cloud-iot-v1}/src/main/java/com/google/cloud/iot/v1/UpdateDeviceRequest.java (73%) rename {proto-google-cloud-iot-v1 => owl-bot-staging/v1/proto-google-cloud-iot-v1}/src/main/java/com/google/cloud/iot/v1/UpdateDeviceRequestOrBuilder.java (78%) rename {proto-google-cloud-iot-v1 => owl-bot-staging/v1/proto-google-cloud-iot-v1}/src/main/java/com/google/cloud/iot/v1/X509CertificateDetails.java (72%) rename {proto-google-cloud-iot-v1 => owl-bot-staging/v1/proto-google-cloud-iot-v1}/src/main/java/com/google/cloud/iot/v1/X509CertificateDetailsOrBuilder.java (74%) rename {proto-google-cloud-iot-v1 => owl-bot-staging/v1/proto-google-cloud-iot-v1}/src/main/proto/google/cloud/iot/v1/device_manager.proto (100%) rename {proto-google-cloud-iot-v1 => owl-bot-staging/v1/proto-google-cloud-iot-v1}/src/main/proto/google/cloud/iot/v1/resources.proto (100%) create mode 100644 owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/iot/v1/devicemanagerclient/binddevicetogateway/AsyncBindDeviceToGateway.java create mode 100644 owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/iot/v1/devicemanagerclient/binddevicetogateway/SyncBindDeviceToGateway.java create mode 100644 owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/iot/v1/devicemanagerclient/binddevicetogateway/SyncBindDeviceToGatewayRegistrynameStringString.java create mode 100644 owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/iot/v1/devicemanagerclient/binddevicetogateway/SyncBindDeviceToGatewayStringStringString.java create mode 100644 owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/iot/v1/devicemanagerclient/create/SyncCreateSetCredentialsProvider.java create mode 100644 owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/iot/v1/devicemanagerclient/create/SyncCreateSetCredentialsProvider1.java create mode 100644 owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/iot/v1/devicemanagerclient/create/SyncCreateSetEndpoint.java create mode 100644 owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/iot/v1/devicemanagerclient/createdevice/AsyncCreateDevice.java create mode 100644 owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/iot/v1/devicemanagerclient/createdevice/SyncCreateDevice.java create mode 100644 owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/iot/v1/devicemanagerclient/createdevice/SyncCreateDeviceRegistrynameDevice.java create mode 100644 owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/iot/v1/devicemanagerclient/createdevice/SyncCreateDeviceStringDevice.java create mode 100644 owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/iot/v1/devicemanagerclient/createdeviceregistry/AsyncCreateDeviceRegistry.java create mode 100644 owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/iot/v1/devicemanagerclient/createdeviceregistry/SyncCreateDeviceRegistry.java create mode 100644 owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/iot/v1/devicemanagerclient/createdeviceregistry/SyncCreateDeviceRegistryLocationnameDeviceregistry.java create mode 100644 owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/iot/v1/devicemanagerclient/createdeviceregistry/SyncCreateDeviceRegistryStringDeviceregistry.java create mode 100644 owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/iot/v1/devicemanagerclient/deletedevice/AsyncDeleteDevice.java create mode 100644 owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/iot/v1/devicemanagerclient/deletedevice/SyncDeleteDevice.java create mode 100644 owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/iot/v1/devicemanagerclient/deletedevice/SyncDeleteDeviceDevicename.java create mode 100644 owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/iot/v1/devicemanagerclient/deletedevice/SyncDeleteDeviceString.java create mode 100644 owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/iot/v1/devicemanagerclient/deletedeviceregistry/AsyncDeleteDeviceRegistry.java create mode 100644 owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/iot/v1/devicemanagerclient/deletedeviceregistry/SyncDeleteDeviceRegistry.java create mode 100644 owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/iot/v1/devicemanagerclient/deletedeviceregistry/SyncDeleteDeviceRegistryRegistryname.java create mode 100644 owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/iot/v1/devicemanagerclient/deletedeviceregistry/SyncDeleteDeviceRegistryString.java create mode 100644 owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/iot/v1/devicemanagerclient/getdevice/AsyncGetDevice.java create mode 100644 owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/iot/v1/devicemanagerclient/getdevice/SyncGetDevice.java create mode 100644 owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/iot/v1/devicemanagerclient/getdevice/SyncGetDeviceDevicename.java create mode 100644 owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/iot/v1/devicemanagerclient/getdevice/SyncGetDeviceString.java create mode 100644 owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/iot/v1/devicemanagerclient/getdeviceregistry/AsyncGetDeviceRegistry.java create mode 100644 owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/iot/v1/devicemanagerclient/getdeviceregistry/SyncGetDeviceRegistry.java create mode 100644 owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/iot/v1/devicemanagerclient/getdeviceregistry/SyncGetDeviceRegistryRegistryname.java create mode 100644 owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/iot/v1/devicemanagerclient/getdeviceregistry/SyncGetDeviceRegistryString.java create mode 100644 owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/iot/v1/devicemanagerclient/getiampolicy/AsyncGetIamPolicy.java create mode 100644 owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/iot/v1/devicemanagerclient/getiampolicy/SyncGetIamPolicy.java create mode 100644 owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/iot/v1/devicemanagerclient/getiampolicy/SyncGetIamPolicyResourcename.java create mode 100644 owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/iot/v1/devicemanagerclient/getiampolicy/SyncGetIamPolicyString.java create mode 100644 owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/iot/v1/devicemanagerclient/listdeviceconfigversions/AsyncListDeviceConfigVersions.java create mode 100644 owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/iot/v1/devicemanagerclient/listdeviceconfigversions/SyncListDeviceConfigVersions.java create mode 100644 owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/iot/v1/devicemanagerclient/listdeviceconfigversions/SyncListDeviceConfigVersionsDevicename.java create mode 100644 owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/iot/v1/devicemanagerclient/listdeviceconfigversions/SyncListDeviceConfigVersionsString.java create mode 100644 owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/iot/v1/devicemanagerclient/listdeviceregistries/AsyncListDeviceRegistries.java create mode 100644 owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/iot/v1/devicemanagerclient/listdeviceregistries/AsyncListDeviceRegistriesPaged.java create mode 100644 owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/iot/v1/devicemanagerclient/listdeviceregistries/SyncListDeviceRegistries.java create mode 100644 owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/iot/v1/devicemanagerclient/listdeviceregistries/SyncListDeviceRegistriesLocationname.java create mode 100644 owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/iot/v1/devicemanagerclient/listdeviceregistries/SyncListDeviceRegistriesString.java create mode 100644 owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/iot/v1/devicemanagerclient/listdevices/AsyncListDevices.java create mode 100644 owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/iot/v1/devicemanagerclient/listdevices/AsyncListDevicesPaged.java create mode 100644 owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/iot/v1/devicemanagerclient/listdevices/SyncListDevices.java create mode 100644 owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/iot/v1/devicemanagerclient/listdevices/SyncListDevicesRegistryname.java create mode 100644 owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/iot/v1/devicemanagerclient/listdevices/SyncListDevicesString.java create mode 100644 owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/iot/v1/devicemanagerclient/listdevicestates/AsyncListDeviceStates.java create mode 100644 owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/iot/v1/devicemanagerclient/listdevicestates/SyncListDeviceStates.java create mode 100644 owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/iot/v1/devicemanagerclient/listdevicestates/SyncListDeviceStatesDevicename.java create mode 100644 owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/iot/v1/devicemanagerclient/listdevicestates/SyncListDeviceStatesString.java create mode 100644 owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/iot/v1/devicemanagerclient/modifycloudtodeviceconfig/AsyncModifyCloudToDeviceConfig.java create mode 100644 owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/iot/v1/devicemanagerclient/modifycloudtodeviceconfig/SyncModifyCloudToDeviceConfig.java create mode 100644 owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/iot/v1/devicemanagerclient/modifycloudtodeviceconfig/SyncModifyCloudToDeviceConfigDevicenameBytestring.java create mode 100644 owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/iot/v1/devicemanagerclient/modifycloudtodeviceconfig/SyncModifyCloudToDeviceConfigStringBytestring.java create mode 100644 owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/iot/v1/devicemanagerclient/sendcommandtodevice/AsyncSendCommandToDevice.java create mode 100644 owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/iot/v1/devicemanagerclient/sendcommandtodevice/SyncSendCommandToDevice.java create mode 100644 owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/iot/v1/devicemanagerclient/sendcommandtodevice/SyncSendCommandToDeviceDevicenameBytestring.java create mode 100644 owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/iot/v1/devicemanagerclient/sendcommandtodevice/SyncSendCommandToDeviceDevicenameBytestringString.java create mode 100644 owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/iot/v1/devicemanagerclient/sendcommandtodevice/SyncSendCommandToDeviceStringBytestring.java create mode 100644 owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/iot/v1/devicemanagerclient/sendcommandtodevice/SyncSendCommandToDeviceStringBytestringString.java create mode 100644 owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/iot/v1/devicemanagerclient/setiampolicy/AsyncSetIamPolicy.java create mode 100644 owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/iot/v1/devicemanagerclient/setiampolicy/SyncSetIamPolicy.java create mode 100644 owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/iot/v1/devicemanagerclient/setiampolicy/SyncSetIamPolicyResourcenamePolicy.java create mode 100644 owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/iot/v1/devicemanagerclient/setiampolicy/SyncSetIamPolicyStringPolicy.java create mode 100644 owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/iot/v1/devicemanagerclient/testiampermissions/AsyncTestIamPermissions.java create mode 100644 owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/iot/v1/devicemanagerclient/testiampermissions/SyncTestIamPermissions.java create mode 100644 owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/iot/v1/devicemanagerclient/testiampermissions/SyncTestIamPermissionsResourcenameListstring.java create mode 100644 owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/iot/v1/devicemanagerclient/testiampermissions/SyncTestIamPermissionsStringListstring.java create mode 100644 owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/iot/v1/devicemanagerclient/unbinddevicefromgateway/AsyncUnbindDeviceFromGateway.java create mode 100644 owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/iot/v1/devicemanagerclient/unbinddevicefromgateway/SyncUnbindDeviceFromGateway.java create mode 100644 owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/iot/v1/devicemanagerclient/unbinddevicefromgateway/SyncUnbindDeviceFromGatewayRegistrynameStringString.java create mode 100644 owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/iot/v1/devicemanagerclient/unbinddevicefromgateway/SyncUnbindDeviceFromGatewayStringStringString.java create mode 100644 owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/iot/v1/devicemanagerclient/updatedevice/AsyncUpdateDevice.java create mode 100644 owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/iot/v1/devicemanagerclient/updatedevice/SyncUpdateDevice.java create mode 100644 owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/iot/v1/devicemanagerclient/updatedevice/SyncUpdateDeviceDeviceFieldmask.java create mode 100644 owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/iot/v1/devicemanagerclient/updatedeviceregistry/AsyncUpdateDeviceRegistry.java create mode 100644 owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/iot/v1/devicemanagerclient/updatedeviceregistry/SyncUpdateDeviceRegistry.java create mode 100644 owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/iot/v1/devicemanagerclient/updatedeviceregistry/SyncUpdateDeviceRegistryDeviceregistryFieldmask.java create mode 100644 owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/iot/v1/devicemanagersettings/createdeviceregistry/SyncCreateDeviceRegistry.java create mode 100644 owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/iot/v1/stub/devicemanagerstubsettings/createdeviceregistry/SyncCreateDeviceRegistry.java delete mode 100644 proto-google-cloud-iot-v1/src/main/java/com/google/cloud/iot/v1/BindDeviceToGatewayResponseOrBuilder.java delete mode 100644 proto-google-cloud-iot-v1/src/main/java/com/google/cloud/iot/v1/DeleteDeviceRegistryRequestOrBuilder.java delete mode 100644 proto-google-cloud-iot-v1/src/main/java/com/google/cloud/iot/v1/DeleteDeviceRequestOrBuilder.java delete mode 100644 proto-google-cloud-iot-v1/src/main/java/com/google/cloud/iot/v1/DeviceManagerProto.java delete mode 100644 proto-google-cloud-iot-v1/src/main/java/com/google/cloud/iot/v1/GetDeviceRegistryRequestOrBuilder.java delete mode 100644 proto-google-cloud-iot-v1/src/main/java/com/google/cloud/iot/v1/ResourcesProto.java delete mode 100644 proto-google-cloud-iot-v1/src/main/java/com/google/cloud/iot/v1/SendCommandToDeviceResponseOrBuilder.java delete mode 100644 proto-google-cloud-iot-v1/src/main/java/com/google/cloud/iot/v1/UnbindDeviceFromGatewayResponseOrBuilder.java diff --git a/grpc-google-cloud-iot-v1/src/main/java/com/google/cloud/iot/v1/DeviceManagerGrpc.java b/grpc-google-cloud-iot-v1/src/main/java/com/google/cloud/iot/v1/DeviceManagerGrpc.java deleted file mode 100644 index 81c87170..00000000 --- a/grpc-google-cloud-iot-v1/src/main/java/com/google/cloud/iot/v1/DeviceManagerGrpc.java +++ /dev/null @@ -1,2533 +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.iot.v1; - -import static io.grpc.MethodDescriptor.generateFullMethodName; - -/** - * - * - *
- * Internet of Things (IoT) service. Securely connect and manage IoT devices.
- * 
- */ -@javax.annotation.Generated( - value = "by gRPC proto compiler", - comments = "Source: google/cloud/iot/v1/device_manager.proto") -@io.grpc.stub.annotations.GrpcGenerated -public final class DeviceManagerGrpc { - - private DeviceManagerGrpc() {} - - public static final String SERVICE_NAME = "google.cloud.iot.v1.DeviceManager"; - - // Static method descriptors that strictly reflect the proto. - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.iot.v1.CreateDeviceRegistryRequest, - com.google.cloud.iot.v1.DeviceRegistry> - getCreateDeviceRegistryMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "CreateDeviceRegistry", - requestType = com.google.cloud.iot.v1.CreateDeviceRegistryRequest.class, - responseType = com.google.cloud.iot.v1.DeviceRegistry.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.iot.v1.CreateDeviceRegistryRequest, - com.google.cloud.iot.v1.DeviceRegistry> - getCreateDeviceRegistryMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.iot.v1.CreateDeviceRegistryRequest, - com.google.cloud.iot.v1.DeviceRegistry> - getCreateDeviceRegistryMethod; - if ((getCreateDeviceRegistryMethod = DeviceManagerGrpc.getCreateDeviceRegistryMethod) == null) { - synchronized (DeviceManagerGrpc.class) { - if ((getCreateDeviceRegistryMethod = DeviceManagerGrpc.getCreateDeviceRegistryMethod) - == null) { - DeviceManagerGrpc.getCreateDeviceRegistryMethod = - getCreateDeviceRegistryMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName( - generateFullMethodName(SERVICE_NAME, "CreateDeviceRegistry")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.iot.v1.CreateDeviceRegistryRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.iot.v1.DeviceRegistry.getDefaultInstance())) - .setSchemaDescriptor( - new DeviceManagerMethodDescriptorSupplier("CreateDeviceRegistry")) - .build(); - } - } - } - return getCreateDeviceRegistryMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.iot.v1.GetDeviceRegistryRequest, com.google.cloud.iot.v1.DeviceRegistry> - getGetDeviceRegistryMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "GetDeviceRegistry", - requestType = com.google.cloud.iot.v1.GetDeviceRegistryRequest.class, - responseType = com.google.cloud.iot.v1.DeviceRegistry.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.iot.v1.GetDeviceRegistryRequest, com.google.cloud.iot.v1.DeviceRegistry> - getGetDeviceRegistryMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.iot.v1.GetDeviceRegistryRequest, - com.google.cloud.iot.v1.DeviceRegistry> - getGetDeviceRegistryMethod; - if ((getGetDeviceRegistryMethod = DeviceManagerGrpc.getGetDeviceRegistryMethod) == null) { - synchronized (DeviceManagerGrpc.class) { - if ((getGetDeviceRegistryMethod = DeviceManagerGrpc.getGetDeviceRegistryMethod) == null) { - DeviceManagerGrpc.getGetDeviceRegistryMethod = - getGetDeviceRegistryMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetDeviceRegistry")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.iot.v1.GetDeviceRegistryRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.iot.v1.DeviceRegistry.getDefaultInstance())) - .setSchemaDescriptor( - new DeviceManagerMethodDescriptorSupplier("GetDeviceRegistry")) - .build(); - } - } - } - return getGetDeviceRegistryMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.iot.v1.UpdateDeviceRegistryRequest, - com.google.cloud.iot.v1.DeviceRegistry> - getUpdateDeviceRegistryMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "UpdateDeviceRegistry", - requestType = com.google.cloud.iot.v1.UpdateDeviceRegistryRequest.class, - responseType = com.google.cloud.iot.v1.DeviceRegistry.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.iot.v1.UpdateDeviceRegistryRequest, - com.google.cloud.iot.v1.DeviceRegistry> - getUpdateDeviceRegistryMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.iot.v1.UpdateDeviceRegistryRequest, - com.google.cloud.iot.v1.DeviceRegistry> - getUpdateDeviceRegistryMethod; - if ((getUpdateDeviceRegistryMethod = DeviceManagerGrpc.getUpdateDeviceRegistryMethod) == null) { - synchronized (DeviceManagerGrpc.class) { - if ((getUpdateDeviceRegistryMethod = DeviceManagerGrpc.getUpdateDeviceRegistryMethod) - == null) { - DeviceManagerGrpc.getUpdateDeviceRegistryMethod = - getUpdateDeviceRegistryMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName( - generateFullMethodName(SERVICE_NAME, "UpdateDeviceRegistry")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.iot.v1.UpdateDeviceRegistryRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.iot.v1.DeviceRegistry.getDefaultInstance())) - .setSchemaDescriptor( - new DeviceManagerMethodDescriptorSupplier("UpdateDeviceRegistry")) - .build(); - } - } - } - return getUpdateDeviceRegistryMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.iot.v1.DeleteDeviceRegistryRequest, com.google.protobuf.Empty> - getDeleteDeviceRegistryMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "DeleteDeviceRegistry", - requestType = com.google.cloud.iot.v1.DeleteDeviceRegistryRequest.class, - responseType = com.google.protobuf.Empty.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.iot.v1.DeleteDeviceRegistryRequest, com.google.protobuf.Empty> - getDeleteDeviceRegistryMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.iot.v1.DeleteDeviceRegistryRequest, com.google.protobuf.Empty> - getDeleteDeviceRegistryMethod; - if ((getDeleteDeviceRegistryMethod = DeviceManagerGrpc.getDeleteDeviceRegistryMethod) == null) { - synchronized (DeviceManagerGrpc.class) { - if ((getDeleteDeviceRegistryMethod = DeviceManagerGrpc.getDeleteDeviceRegistryMethod) - == null) { - DeviceManagerGrpc.getDeleteDeviceRegistryMethod = - getDeleteDeviceRegistryMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName( - generateFullMethodName(SERVICE_NAME, "DeleteDeviceRegistry")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.iot.v1.DeleteDeviceRegistryRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.protobuf.Empty.getDefaultInstance())) - .setSchemaDescriptor( - new DeviceManagerMethodDescriptorSupplier("DeleteDeviceRegistry")) - .build(); - } - } - } - return getDeleteDeviceRegistryMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.iot.v1.ListDeviceRegistriesRequest, - com.google.cloud.iot.v1.ListDeviceRegistriesResponse> - getListDeviceRegistriesMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "ListDeviceRegistries", - requestType = com.google.cloud.iot.v1.ListDeviceRegistriesRequest.class, - responseType = com.google.cloud.iot.v1.ListDeviceRegistriesResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.iot.v1.ListDeviceRegistriesRequest, - com.google.cloud.iot.v1.ListDeviceRegistriesResponse> - getListDeviceRegistriesMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.iot.v1.ListDeviceRegistriesRequest, - com.google.cloud.iot.v1.ListDeviceRegistriesResponse> - getListDeviceRegistriesMethod; - if ((getListDeviceRegistriesMethod = DeviceManagerGrpc.getListDeviceRegistriesMethod) == null) { - synchronized (DeviceManagerGrpc.class) { - if ((getListDeviceRegistriesMethod = DeviceManagerGrpc.getListDeviceRegistriesMethod) - == null) { - DeviceManagerGrpc.getListDeviceRegistriesMethod = - getListDeviceRegistriesMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName( - generateFullMethodName(SERVICE_NAME, "ListDeviceRegistries")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.iot.v1.ListDeviceRegistriesRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.iot.v1.ListDeviceRegistriesResponse - .getDefaultInstance())) - .setSchemaDescriptor( - new DeviceManagerMethodDescriptorSupplier("ListDeviceRegistries")) - .build(); - } - } - } - return getListDeviceRegistriesMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.iot.v1.CreateDeviceRequest, com.google.cloud.iot.v1.Device> - getCreateDeviceMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "CreateDevice", - requestType = com.google.cloud.iot.v1.CreateDeviceRequest.class, - responseType = com.google.cloud.iot.v1.Device.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.iot.v1.CreateDeviceRequest, com.google.cloud.iot.v1.Device> - getCreateDeviceMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.iot.v1.CreateDeviceRequest, com.google.cloud.iot.v1.Device> - getCreateDeviceMethod; - if ((getCreateDeviceMethod = DeviceManagerGrpc.getCreateDeviceMethod) == null) { - synchronized (DeviceManagerGrpc.class) { - if ((getCreateDeviceMethod = DeviceManagerGrpc.getCreateDeviceMethod) == null) { - DeviceManagerGrpc.getCreateDeviceMethod = - getCreateDeviceMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CreateDevice")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.iot.v1.CreateDeviceRequest.getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.iot.v1.Device.getDefaultInstance())) - .setSchemaDescriptor( - new DeviceManagerMethodDescriptorSupplier("CreateDevice")) - .build(); - } - } - } - return getCreateDeviceMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.iot.v1.GetDeviceRequest, com.google.cloud.iot.v1.Device> - getGetDeviceMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "GetDevice", - requestType = com.google.cloud.iot.v1.GetDeviceRequest.class, - responseType = com.google.cloud.iot.v1.Device.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.iot.v1.GetDeviceRequest, com.google.cloud.iot.v1.Device> - getGetDeviceMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.iot.v1.GetDeviceRequest, com.google.cloud.iot.v1.Device> - getGetDeviceMethod; - if ((getGetDeviceMethod = DeviceManagerGrpc.getGetDeviceMethod) == null) { - synchronized (DeviceManagerGrpc.class) { - if ((getGetDeviceMethod = DeviceManagerGrpc.getGetDeviceMethod) == null) { - DeviceManagerGrpc.getGetDeviceMethod = - getGetDeviceMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetDevice")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.iot.v1.GetDeviceRequest.getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.iot.v1.Device.getDefaultInstance())) - .setSchemaDescriptor(new DeviceManagerMethodDescriptorSupplier("GetDevice")) - .build(); - } - } - } - return getGetDeviceMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.iot.v1.UpdateDeviceRequest, com.google.cloud.iot.v1.Device> - getUpdateDeviceMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "UpdateDevice", - requestType = com.google.cloud.iot.v1.UpdateDeviceRequest.class, - responseType = com.google.cloud.iot.v1.Device.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.iot.v1.UpdateDeviceRequest, com.google.cloud.iot.v1.Device> - getUpdateDeviceMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.iot.v1.UpdateDeviceRequest, com.google.cloud.iot.v1.Device> - getUpdateDeviceMethod; - if ((getUpdateDeviceMethod = DeviceManagerGrpc.getUpdateDeviceMethod) == null) { - synchronized (DeviceManagerGrpc.class) { - if ((getUpdateDeviceMethod = DeviceManagerGrpc.getUpdateDeviceMethod) == null) { - DeviceManagerGrpc.getUpdateDeviceMethod = - getUpdateDeviceMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "UpdateDevice")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.iot.v1.UpdateDeviceRequest.getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.iot.v1.Device.getDefaultInstance())) - .setSchemaDescriptor( - new DeviceManagerMethodDescriptorSupplier("UpdateDevice")) - .build(); - } - } - } - return getUpdateDeviceMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.iot.v1.DeleteDeviceRequest, com.google.protobuf.Empty> - getDeleteDeviceMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "DeleteDevice", - requestType = com.google.cloud.iot.v1.DeleteDeviceRequest.class, - responseType = com.google.protobuf.Empty.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.iot.v1.DeleteDeviceRequest, com.google.protobuf.Empty> - getDeleteDeviceMethod() { - io.grpc.MethodDescriptor - getDeleteDeviceMethod; - if ((getDeleteDeviceMethod = DeviceManagerGrpc.getDeleteDeviceMethod) == null) { - synchronized (DeviceManagerGrpc.class) { - if ((getDeleteDeviceMethod = DeviceManagerGrpc.getDeleteDeviceMethod) == null) { - DeviceManagerGrpc.getDeleteDeviceMethod = - getDeleteDeviceMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "DeleteDevice")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.iot.v1.DeleteDeviceRequest.getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.protobuf.Empty.getDefaultInstance())) - .setSchemaDescriptor( - new DeviceManagerMethodDescriptorSupplier("DeleteDevice")) - .build(); - } - } - } - return getDeleteDeviceMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.iot.v1.ListDevicesRequest, com.google.cloud.iot.v1.ListDevicesResponse> - getListDevicesMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "ListDevices", - requestType = com.google.cloud.iot.v1.ListDevicesRequest.class, - responseType = com.google.cloud.iot.v1.ListDevicesResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.iot.v1.ListDevicesRequest, com.google.cloud.iot.v1.ListDevicesResponse> - getListDevicesMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.iot.v1.ListDevicesRequest, com.google.cloud.iot.v1.ListDevicesResponse> - getListDevicesMethod; - if ((getListDevicesMethod = DeviceManagerGrpc.getListDevicesMethod) == null) { - synchronized (DeviceManagerGrpc.class) { - if ((getListDevicesMethod = DeviceManagerGrpc.getListDevicesMethod) == null) { - DeviceManagerGrpc.getListDevicesMethod = - getListDevicesMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListDevices")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.iot.v1.ListDevicesRequest.getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.iot.v1.ListDevicesResponse.getDefaultInstance())) - .setSchemaDescriptor(new DeviceManagerMethodDescriptorSupplier("ListDevices")) - .build(); - } - } - } - return getListDevicesMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.iot.v1.ModifyCloudToDeviceConfigRequest, - com.google.cloud.iot.v1.DeviceConfig> - getModifyCloudToDeviceConfigMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "ModifyCloudToDeviceConfig", - requestType = com.google.cloud.iot.v1.ModifyCloudToDeviceConfigRequest.class, - responseType = com.google.cloud.iot.v1.DeviceConfig.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.iot.v1.ModifyCloudToDeviceConfigRequest, - com.google.cloud.iot.v1.DeviceConfig> - getModifyCloudToDeviceConfigMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.iot.v1.ModifyCloudToDeviceConfigRequest, - com.google.cloud.iot.v1.DeviceConfig> - getModifyCloudToDeviceConfigMethod; - if ((getModifyCloudToDeviceConfigMethod = DeviceManagerGrpc.getModifyCloudToDeviceConfigMethod) - == null) { - synchronized (DeviceManagerGrpc.class) { - if ((getModifyCloudToDeviceConfigMethod = - DeviceManagerGrpc.getModifyCloudToDeviceConfigMethod) - == null) { - DeviceManagerGrpc.getModifyCloudToDeviceConfigMethod = - getModifyCloudToDeviceConfigMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName( - generateFullMethodName(SERVICE_NAME, "ModifyCloudToDeviceConfig")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.iot.v1.ModifyCloudToDeviceConfigRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.iot.v1.DeviceConfig.getDefaultInstance())) - .setSchemaDescriptor( - new DeviceManagerMethodDescriptorSupplier("ModifyCloudToDeviceConfig")) - .build(); - } - } - } - return getModifyCloudToDeviceConfigMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.iot.v1.ListDeviceConfigVersionsRequest, - com.google.cloud.iot.v1.ListDeviceConfigVersionsResponse> - getListDeviceConfigVersionsMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "ListDeviceConfigVersions", - requestType = com.google.cloud.iot.v1.ListDeviceConfigVersionsRequest.class, - responseType = com.google.cloud.iot.v1.ListDeviceConfigVersionsResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.iot.v1.ListDeviceConfigVersionsRequest, - com.google.cloud.iot.v1.ListDeviceConfigVersionsResponse> - getListDeviceConfigVersionsMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.iot.v1.ListDeviceConfigVersionsRequest, - com.google.cloud.iot.v1.ListDeviceConfigVersionsResponse> - getListDeviceConfigVersionsMethod; - if ((getListDeviceConfigVersionsMethod = DeviceManagerGrpc.getListDeviceConfigVersionsMethod) - == null) { - synchronized (DeviceManagerGrpc.class) { - if ((getListDeviceConfigVersionsMethod = - DeviceManagerGrpc.getListDeviceConfigVersionsMethod) - == null) { - DeviceManagerGrpc.getListDeviceConfigVersionsMethod = - getListDeviceConfigVersionsMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName( - generateFullMethodName(SERVICE_NAME, "ListDeviceConfigVersions")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.iot.v1.ListDeviceConfigVersionsRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.iot.v1.ListDeviceConfigVersionsResponse - .getDefaultInstance())) - .setSchemaDescriptor( - new DeviceManagerMethodDescriptorSupplier("ListDeviceConfigVersions")) - .build(); - } - } - } - return getListDeviceConfigVersionsMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.iot.v1.ListDeviceStatesRequest, - com.google.cloud.iot.v1.ListDeviceStatesResponse> - getListDeviceStatesMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "ListDeviceStates", - requestType = com.google.cloud.iot.v1.ListDeviceStatesRequest.class, - responseType = com.google.cloud.iot.v1.ListDeviceStatesResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.iot.v1.ListDeviceStatesRequest, - com.google.cloud.iot.v1.ListDeviceStatesResponse> - getListDeviceStatesMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.iot.v1.ListDeviceStatesRequest, - com.google.cloud.iot.v1.ListDeviceStatesResponse> - getListDeviceStatesMethod; - if ((getListDeviceStatesMethod = DeviceManagerGrpc.getListDeviceStatesMethod) == null) { - synchronized (DeviceManagerGrpc.class) { - if ((getListDeviceStatesMethod = DeviceManagerGrpc.getListDeviceStatesMethod) == null) { - DeviceManagerGrpc.getListDeviceStatesMethod = - getListDeviceStatesMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListDeviceStates")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.iot.v1.ListDeviceStatesRequest.getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.iot.v1.ListDeviceStatesResponse - .getDefaultInstance())) - .setSchemaDescriptor( - new DeviceManagerMethodDescriptorSupplier("ListDeviceStates")) - .build(); - } - } - } - return getListDeviceStatesMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.iam.v1.SetIamPolicyRequest, com.google.iam.v1.Policy> - getSetIamPolicyMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "SetIamPolicy", - requestType = com.google.iam.v1.SetIamPolicyRequest.class, - responseType = com.google.iam.v1.Policy.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.iam.v1.SetIamPolicyRequest, com.google.iam.v1.Policy> - getSetIamPolicyMethod() { - io.grpc.MethodDescriptor - getSetIamPolicyMethod; - if ((getSetIamPolicyMethod = DeviceManagerGrpc.getSetIamPolicyMethod) == null) { - synchronized (DeviceManagerGrpc.class) { - if ((getSetIamPolicyMethod = DeviceManagerGrpc.getSetIamPolicyMethod) == null) { - DeviceManagerGrpc.getSetIamPolicyMethod = - getSetIamPolicyMethod = - io.grpc.MethodDescriptor - .newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "SetIamPolicy")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.iam.v1.SetIamPolicyRequest.getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.iam.v1.Policy.getDefaultInstance())) - .setSchemaDescriptor( - new DeviceManagerMethodDescriptorSupplier("SetIamPolicy")) - .build(); - } - } - } - return getSetIamPolicyMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.iam.v1.GetIamPolicyRequest, com.google.iam.v1.Policy> - getGetIamPolicyMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "GetIamPolicy", - requestType = com.google.iam.v1.GetIamPolicyRequest.class, - responseType = com.google.iam.v1.Policy.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.iam.v1.GetIamPolicyRequest, com.google.iam.v1.Policy> - getGetIamPolicyMethod() { - io.grpc.MethodDescriptor - getGetIamPolicyMethod; - if ((getGetIamPolicyMethod = DeviceManagerGrpc.getGetIamPolicyMethod) == null) { - synchronized (DeviceManagerGrpc.class) { - if ((getGetIamPolicyMethod = DeviceManagerGrpc.getGetIamPolicyMethod) == null) { - DeviceManagerGrpc.getGetIamPolicyMethod = - getGetIamPolicyMethod = - io.grpc.MethodDescriptor - .newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetIamPolicy")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.iam.v1.GetIamPolicyRequest.getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.iam.v1.Policy.getDefaultInstance())) - .setSchemaDescriptor( - new DeviceManagerMethodDescriptorSupplier("GetIamPolicy")) - .build(); - } - } - } - return getGetIamPolicyMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.iam.v1.TestIamPermissionsRequest, com.google.iam.v1.TestIamPermissionsResponse> - getTestIamPermissionsMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "TestIamPermissions", - requestType = com.google.iam.v1.TestIamPermissionsRequest.class, - responseType = com.google.iam.v1.TestIamPermissionsResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.iam.v1.TestIamPermissionsRequest, com.google.iam.v1.TestIamPermissionsResponse> - getTestIamPermissionsMethod() { - io.grpc.MethodDescriptor< - com.google.iam.v1.TestIamPermissionsRequest, - com.google.iam.v1.TestIamPermissionsResponse> - getTestIamPermissionsMethod; - if ((getTestIamPermissionsMethod = DeviceManagerGrpc.getTestIamPermissionsMethod) == null) { - synchronized (DeviceManagerGrpc.class) { - if ((getTestIamPermissionsMethod = DeviceManagerGrpc.getTestIamPermissionsMethod) == null) { - DeviceManagerGrpc.getTestIamPermissionsMethod = - getTestIamPermissionsMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "TestIamPermissions")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.iam.v1.TestIamPermissionsRequest.getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.iam.v1.TestIamPermissionsResponse.getDefaultInstance())) - .setSchemaDescriptor( - new DeviceManagerMethodDescriptorSupplier("TestIamPermissions")) - .build(); - } - } - } - return getTestIamPermissionsMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.iot.v1.SendCommandToDeviceRequest, - com.google.cloud.iot.v1.SendCommandToDeviceResponse> - getSendCommandToDeviceMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "SendCommandToDevice", - requestType = com.google.cloud.iot.v1.SendCommandToDeviceRequest.class, - responseType = com.google.cloud.iot.v1.SendCommandToDeviceResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.iot.v1.SendCommandToDeviceRequest, - com.google.cloud.iot.v1.SendCommandToDeviceResponse> - getSendCommandToDeviceMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.iot.v1.SendCommandToDeviceRequest, - com.google.cloud.iot.v1.SendCommandToDeviceResponse> - getSendCommandToDeviceMethod; - if ((getSendCommandToDeviceMethod = DeviceManagerGrpc.getSendCommandToDeviceMethod) == null) { - synchronized (DeviceManagerGrpc.class) { - if ((getSendCommandToDeviceMethod = DeviceManagerGrpc.getSendCommandToDeviceMethod) - == null) { - DeviceManagerGrpc.getSendCommandToDeviceMethod = - getSendCommandToDeviceMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName( - generateFullMethodName(SERVICE_NAME, "SendCommandToDevice")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.iot.v1.SendCommandToDeviceRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.iot.v1.SendCommandToDeviceResponse - .getDefaultInstance())) - .setSchemaDescriptor( - new DeviceManagerMethodDescriptorSupplier("SendCommandToDevice")) - .build(); - } - } - } - return getSendCommandToDeviceMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.iot.v1.BindDeviceToGatewayRequest, - com.google.cloud.iot.v1.BindDeviceToGatewayResponse> - getBindDeviceToGatewayMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "BindDeviceToGateway", - requestType = com.google.cloud.iot.v1.BindDeviceToGatewayRequest.class, - responseType = com.google.cloud.iot.v1.BindDeviceToGatewayResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.iot.v1.BindDeviceToGatewayRequest, - com.google.cloud.iot.v1.BindDeviceToGatewayResponse> - getBindDeviceToGatewayMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.iot.v1.BindDeviceToGatewayRequest, - com.google.cloud.iot.v1.BindDeviceToGatewayResponse> - getBindDeviceToGatewayMethod; - if ((getBindDeviceToGatewayMethod = DeviceManagerGrpc.getBindDeviceToGatewayMethod) == null) { - synchronized (DeviceManagerGrpc.class) { - if ((getBindDeviceToGatewayMethod = DeviceManagerGrpc.getBindDeviceToGatewayMethod) - == null) { - DeviceManagerGrpc.getBindDeviceToGatewayMethod = - getBindDeviceToGatewayMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName( - generateFullMethodName(SERVICE_NAME, "BindDeviceToGateway")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.iot.v1.BindDeviceToGatewayRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.iot.v1.BindDeviceToGatewayResponse - .getDefaultInstance())) - .setSchemaDescriptor( - new DeviceManagerMethodDescriptorSupplier("BindDeviceToGateway")) - .build(); - } - } - } - return getBindDeviceToGatewayMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.iot.v1.UnbindDeviceFromGatewayRequest, - com.google.cloud.iot.v1.UnbindDeviceFromGatewayResponse> - getUnbindDeviceFromGatewayMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "UnbindDeviceFromGateway", - requestType = com.google.cloud.iot.v1.UnbindDeviceFromGatewayRequest.class, - responseType = com.google.cloud.iot.v1.UnbindDeviceFromGatewayResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.iot.v1.UnbindDeviceFromGatewayRequest, - com.google.cloud.iot.v1.UnbindDeviceFromGatewayResponse> - getUnbindDeviceFromGatewayMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.iot.v1.UnbindDeviceFromGatewayRequest, - com.google.cloud.iot.v1.UnbindDeviceFromGatewayResponse> - getUnbindDeviceFromGatewayMethod; - if ((getUnbindDeviceFromGatewayMethod = DeviceManagerGrpc.getUnbindDeviceFromGatewayMethod) - == null) { - synchronized (DeviceManagerGrpc.class) { - if ((getUnbindDeviceFromGatewayMethod = DeviceManagerGrpc.getUnbindDeviceFromGatewayMethod) - == null) { - DeviceManagerGrpc.getUnbindDeviceFromGatewayMethod = - getUnbindDeviceFromGatewayMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName( - generateFullMethodName(SERVICE_NAME, "UnbindDeviceFromGateway")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.iot.v1.UnbindDeviceFromGatewayRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.iot.v1.UnbindDeviceFromGatewayResponse - .getDefaultInstance())) - .setSchemaDescriptor( - new DeviceManagerMethodDescriptorSupplier("UnbindDeviceFromGateway")) - .build(); - } - } - } - return getUnbindDeviceFromGatewayMethod; - } - - /** Creates a new async stub that supports all call types for the service */ - public static DeviceManagerStub newStub(io.grpc.Channel channel) { - io.grpc.stub.AbstractStub.StubFactory factory = - new io.grpc.stub.AbstractStub.StubFactory() { - @java.lang.Override - public DeviceManagerStub newStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new DeviceManagerStub(channel, callOptions); - } - }; - return DeviceManagerStub.newStub(factory, channel); - } - - /** - * Creates a new blocking-style stub that supports unary and streaming output calls on the service - */ - public static DeviceManagerBlockingStub newBlockingStub(io.grpc.Channel channel) { - io.grpc.stub.AbstractStub.StubFactory factory = - new io.grpc.stub.AbstractStub.StubFactory() { - @java.lang.Override - public DeviceManagerBlockingStub newStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new DeviceManagerBlockingStub(channel, callOptions); - } - }; - return DeviceManagerBlockingStub.newStub(factory, channel); - } - - /** Creates a new ListenableFuture-style stub that supports unary calls on the service */ - public static DeviceManagerFutureStub newFutureStub(io.grpc.Channel channel) { - io.grpc.stub.AbstractStub.StubFactory factory = - new io.grpc.stub.AbstractStub.StubFactory() { - @java.lang.Override - public DeviceManagerFutureStub newStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new DeviceManagerFutureStub(channel, callOptions); - } - }; - return DeviceManagerFutureStub.newStub(factory, channel); - } - - /** - * - * - *
-   * Internet of Things (IoT) service. Securely connect and manage IoT devices.
-   * 
- */ - public abstract static class DeviceManagerImplBase implements io.grpc.BindableService { - - /** - * - * - *
-     * Creates a device registry that contains devices.
-     * 
- */ - public void createDeviceRegistry( - com.google.cloud.iot.v1.CreateDeviceRegistryRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getCreateDeviceRegistryMethod(), responseObserver); - } - - /** - * - * - *
-     * Gets a device registry configuration.
-     * 
- */ - public void getDeviceRegistry( - com.google.cloud.iot.v1.GetDeviceRegistryRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getGetDeviceRegistryMethod(), responseObserver); - } - - /** - * - * - *
-     * Updates a device registry configuration.
-     * 
- */ - public void updateDeviceRegistry( - com.google.cloud.iot.v1.UpdateDeviceRegistryRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getUpdateDeviceRegistryMethod(), responseObserver); - } - - /** - * - * - *
-     * Deletes a device registry configuration.
-     * 
- */ - public void deleteDeviceRegistry( - com.google.cloud.iot.v1.DeleteDeviceRegistryRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getDeleteDeviceRegistryMethod(), responseObserver); - } - - /** - * - * - *
-     * Lists device registries.
-     * 
- */ - public void listDeviceRegistries( - com.google.cloud.iot.v1.ListDeviceRegistriesRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getListDeviceRegistriesMethod(), responseObserver); - } - - /** - * - * - *
-     * Creates a device in a device registry.
-     * 
- */ - public void createDevice( - com.google.cloud.iot.v1.CreateDeviceRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getCreateDeviceMethod(), responseObserver); - } - - /** - * - * - *
-     * Gets details about a device.
-     * 
- */ - public void getDevice( - com.google.cloud.iot.v1.GetDeviceRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetDeviceMethod(), responseObserver); - } - - /** - * - * - *
-     * Updates a device.
-     * 
- */ - public void updateDevice( - com.google.cloud.iot.v1.UpdateDeviceRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getUpdateDeviceMethod(), responseObserver); - } - - /** - * - * - *
-     * Deletes a device.
-     * 
- */ - public void deleteDevice( - com.google.cloud.iot.v1.DeleteDeviceRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getDeleteDeviceMethod(), responseObserver); - } - - /** - * - * - *
-     * List devices in a device registry.
-     * 
- */ - public void listDevices( - com.google.cloud.iot.v1.ListDevicesRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getListDevicesMethod(), responseObserver); - } - - /** - * - * - *
-     * Modifies the configuration for the device, which is eventually sent from
-     * the Cloud IoT Core servers. Returns the modified configuration version and
-     * its metadata.
-     * 
- */ - public void modifyCloudToDeviceConfig( - com.google.cloud.iot.v1.ModifyCloudToDeviceConfigRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getModifyCloudToDeviceConfigMethod(), responseObserver); - } - - /** - * - * - *
-     * Lists the last few versions of the device configuration in descending
-     * order (i.e.: newest first).
-     * 
- */ - public void listDeviceConfigVersions( - com.google.cloud.iot.v1.ListDeviceConfigVersionsRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getListDeviceConfigVersionsMethod(), responseObserver); - } - - /** - * - * - *
-     * Lists the last few versions of the device state in descending order (i.e.:
-     * newest first).
-     * 
- */ - public void listDeviceStates( - com.google.cloud.iot.v1.ListDeviceStatesRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getListDeviceStatesMethod(), responseObserver); - } - - /** - * - * - *
-     * Sets the access control policy on the specified resource. Replaces any
-     * existing policy.
-     * 
- */ - public void setIamPolicy( - com.google.iam.v1.SetIamPolicyRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getSetIamPolicyMethod(), responseObserver); - } - - /** - * - * - *
-     * Gets the access control policy for a resource.
-     * Returns an empty policy if the resource exists and does not have a policy
-     * set.
-     * 
- */ - public void getIamPolicy( - com.google.iam.v1.GetIamPolicyRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getGetIamPolicyMethod(), responseObserver); - } - - /** - * - * - *
-     * Returns permissions that a caller has on the specified resource.
-     * If the resource does not exist, this will return an empty set of
-     * permissions, not a NOT_FOUND error.
-     * 
- */ - public void testIamPermissions( - com.google.iam.v1.TestIamPermissionsRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getTestIamPermissionsMethod(), responseObserver); - } - - /** - * - * - *
-     * Sends a command to the specified device. In order for a device to be able
-     * to receive commands, it must:
-     * 1) be connected to Cloud IoT Core using the MQTT protocol, and
-     * 2) be subscribed to the group of MQTT topics specified by
-     *    /devices/{device-id}/commands/#. This subscription will receive commands
-     *    at the top-level topic /devices/{device-id}/commands as well as commands
-     *    for subfolders, like /devices/{device-id}/commands/subfolder.
-     *    Note that subscribing to specific subfolders is not supported.
-     * If the command could not be delivered to the device, this method will
-     * return an error; in particular, if the device is not subscribed, this
-     * method will return FAILED_PRECONDITION. Otherwise, this method will
-     * return OK. If the subscription is QoS 1, at least once delivery will be
-     * guaranteed; for QoS 0, no acknowledgment will be expected from the device.
-     * 
- */ - public void sendCommandToDevice( - com.google.cloud.iot.v1.SendCommandToDeviceRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getSendCommandToDeviceMethod(), responseObserver); - } - - /** - * - * - *
-     * Associates the device with the gateway.
-     * 
- */ - public void bindDeviceToGateway( - com.google.cloud.iot.v1.BindDeviceToGatewayRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getBindDeviceToGatewayMethod(), responseObserver); - } - - /** - * - * - *
-     * Deletes the association between the device and the gateway.
-     * 
- */ - public void unbindDeviceFromGateway( - com.google.cloud.iot.v1.UnbindDeviceFromGatewayRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getUnbindDeviceFromGatewayMethod(), responseObserver); - } - - @java.lang.Override - public final io.grpc.ServerServiceDefinition bindService() { - return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor()) - .addMethod( - getCreateDeviceRegistryMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.iot.v1.CreateDeviceRegistryRequest, - com.google.cloud.iot.v1.DeviceRegistry>( - this, METHODID_CREATE_DEVICE_REGISTRY))) - .addMethod( - getGetDeviceRegistryMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.iot.v1.GetDeviceRegistryRequest, - com.google.cloud.iot.v1.DeviceRegistry>(this, METHODID_GET_DEVICE_REGISTRY))) - .addMethod( - getUpdateDeviceRegistryMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.iot.v1.UpdateDeviceRegistryRequest, - com.google.cloud.iot.v1.DeviceRegistry>( - this, METHODID_UPDATE_DEVICE_REGISTRY))) - .addMethod( - getDeleteDeviceRegistryMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.iot.v1.DeleteDeviceRegistryRequest, - com.google.protobuf.Empty>(this, METHODID_DELETE_DEVICE_REGISTRY))) - .addMethod( - getListDeviceRegistriesMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.iot.v1.ListDeviceRegistriesRequest, - com.google.cloud.iot.v1.ListDeviceRegistriesResponse>( - this, METHODID_LIST_DEVICE_REGISTRIES))) - .addMethod( - getCreateDeviceMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.iot.v1.CreateDeviceRequest, com.google.cloud.iot.v1.Device>( - this, METHODID_CREATE_DEVICE))) - .addMethod( - getGetDeviceMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.iot.v1.GetDeviceRequest, com.google.cloud.iot.v1.Device>( - this, METHODID_GET_DEVICE))) - .addMethod( - getUpdateDeviceMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.iot.v1.UpdateDeviceRequest, com.google.cloud.iot.v1.Device>( - this, METHODID_UPDATE_DEVICE))) - .addMethod( - getDeleteDeviceMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.iot.v1.DeleteDeviceRequest, com.google.protobuf.Empty>( - this, METHODID_DELETE_DEVICE))) - .addMethod( - getListDevicesMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.iot.v1.ListDevicesRequest, - com.google.cloud.iot.v1.ListDevicesResponse>(this, METHODID_LIST_DEVICES))) - .addMethod( - getModifyCloudToDeviceConfigMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.iot.v1.ModifyCloudToDeviceConfigRequest, - com.google.cloud.iot.v1.DeviceConfig>( - this, METHODID_MODIFY_CLOUD_TO_DEVICE_CONFIG))) - .addMethod( - getListDeviceConfigVersionsMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.iot.v1.ListDeviceConfigVersionsRequest, - com.google.cloud.iot.v1.ListDeviceConfigVersionsResponse>( - this, METHODID_LIST_DEVICE_CONFIG_VERSIONS))) - .addMethod( - getListDeviceStatesMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.iot.v1.ListDeviceStatesRequest, - com.google.cloud.iot.v1.ListDeviceStatesResponse>( - this, METHODID_LIST_DEVICE_STATES))) - .addMethod( - getSetIamPolicyMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.iam.v1.SetIamPolicyRequest, com.google.iam.v1.Policy>( - this, METHODID_SET_IAM_POLICY))) - .addMethod( - getGetIamPolicyMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.iam.v1.GetIamPolicyRequest, com.google.iam.v1.Policy>( - this, METHODID_GET_IAM_POLICY))) - .addMethod( - getTestIamPermissionsMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.iam.v1.TestIamPermissionsRequest, - com.google.iam.v1.TestIamPermissionsResponse>( - this, METHODID_TEST_IAM_PERMISSIONS))) - .addMethod( - getSendCommandToDeviceMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.iot.v1.SendCommandToDeviceRequest, - com.google.cloud.iot.v1.SendCommandToDeviceResponse>( - this, METHODID_SEND_COMMAND_TO_DEVICE))) - .addMethod( - getBindDeviceToGatewayMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.iot.v1.BindDeviceToGatewayRequest, - com.google.cloud.iot.v1.BindDeviceToGatewayResponse>( - this, METHODID_BIND_DEVICE_TO_GATEWAY))) - .addMethod( - getUnbindDeviceFromGatewayMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.iot.v1.UnbindDeviceFromGatewayRequest, - com.google.cloud.iot.v1.UnbindDeviceFromGatewayResponse>( - this, METHODID_UNBIND_DEVICE_FROM_GATEWAY))) - .build(); - } - } - - /** - * - * - *
-   * Internet of Things (IoT) service. Securely connect and manage IoT devices.
-   * 
- */ - public static final class DeviceManagerStub - extends io.grpc.stub.AbstractAsyncStub { - private DeviceManagerStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - super(channel, callOptions); - } - - @java.lang.Override - protected DeviceManagerStub build(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new DeviceManagerStub(channel, callOptions); - } - - /** - * - * - *
-     * Creates a device registry that contains devices.
-     * 
- */ - public void createDeviceRegistry( - com.google.cloud.iot.v1.CreateDeviceRegistryRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getCreateDeviceRegistryMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Gets a device registry configuration.
-     * 
- */ - public void getDeviceRegistry( - com.google.cloud.iot.v1.GetDeviceRegistryRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getGetDeviceRegistryMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Updates a device registry configuration.
-     * 
- */ - public void updateDeviceRegistry( - com.google.cloud.iot.v1.UpdateDeviceRegistryRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getUpdateDeviceRegistryMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Deletes a device registry configuration.
-     * 
- */ - public void deleteDeviceRegistry( - com.google.cloud.iot.v1.DeleteDeviceRegistryRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getDeleteDeviceRegistryMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Lists device registries.
-     * 
- */ - public void listDeviceRegistries( - com.google.cloud.iot.v1.ListDeviceRegistriesRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getListDeviceRegistriesMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Creates a device in a device registry.
-     * 
- */ - public void createDevice( - com.google.cloud.iot.v1.CreateDeviceRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getCreateDeviceMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Gets details about a device.
-     * 
- */ - public void getDevice( - com.google.cloud.iot.v1.GetDeviceRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getGetDeviceMethod(), getCallOptions()), request, responseObserver); - } - - /** - * - * - *
-     * Updates a device.
-     * 
- */ - public void updateDevice( - com.google.cloud.iot.v1.UpdateDeviceRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getUpdateDeviceMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Deletes a device.
-     * 
- */ - public void deleteDevice( - com.google.cloud.iot.v1.DeleteDeviceRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getDeleteDeviceMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * List devices in a device registry.
-     * 
- */ - public void listDevices( - com.google.cloud.iot.v1.ListDevicesRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getListDevicesMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Modifies the configuration for the device, which is eventually sent from
-     * the Cloud IoT Core servers. Returns the modified configuration version and
-     * its metadata.
-     * 
- */ - public void modifyCloudToDeviceConfig( - com.google.cloud.iot.v1.ModifyCloudToDeviceConfigRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getModifyCloudToDeviceConfigMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Lists the last few versions of the device configuration in descending
-     * order (i.e.: newest first).
-     * 
- */ - public void listDeviceConfigVersions( - com.google.cloud.iot.v1.ListDeviceConfigVersionsRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getListDeviceConfigVersionsMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Lists the last few versions of the device state in descending order (i.e.:
-     * newest first).
-     * 
- */ - public void listDeviceStates( - com.google.cloud.iot.v1.ListDeviceStatesRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getListDeviceStatesMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Sets the access control policy on the specified resource. Replaces any
-     * existing policy.
-     * 
- */ - public void setIamPolicy( - com.google.iam.v1.SetIamPolicyRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getSetIamPolicyMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Gets the access control policy for a resource.
-     * Returns an empty policy if the resource exists and does not have a policy
-     * set.
-     * 
- */ - public void getIamPolicy( - com.google.iam.v1.GetIamPolicyRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getGetIamPolicyMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Returns permissions that a caller has on the specified resource.
-     * If the resource does not exist, this will return an empty set of
-     * permissions, not a NOT_FOUND error.
-     * 
- */ - public void testIamPermissions( - com.google.iam.v1.TestIamPermissionsRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getTestIamPermissionsMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Sends a command to the specified device. In order for a device to be able
-     * to receive commands, it must:
-     * 1) be connected to Cloud IoT Core using the MQTT protocol, and
-     * 2) be subscribed to the group of MQTT topics specified by
-     *    /devices/{device-id}/commands/#. This subscription will receive commands
-     *    at the top-level topic /devices/{device-id}/commands as well as commands
-     *    for subfolders, like /devices/{device-id}/commands/subfolder.
-     *    Note that subscribing to specific subfolders is not supported.
-     * If the command could not be delivered to the device, this method will
-     * return an error; in particular, if the device is not subscribed, this
-     * method will return FAILED_PRECONDITION. Otherwise, this method will
-     * return OK. If the subscription is QoS 1, at least once delivery will be
-     * guaranteed; for QoS 0, no acknowledgment will be expected from the device.
-     * 
- */ - public void sendCommandToDevice( - com.google.cloud.iot.v1.SendCommandToDeviceRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getSendCommandToDeviceMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Associates the device with the gateway.
-     * 
- */ - public void bindDeviceToGateway( - com.google.cloud.iot.v1.BindDeviceToGatewayRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getBindDeviceToGatewayMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Deletes the association between the device and the gateway.
-     * 
- */ - public void unbindDeviceFromGateway( - com.google.cloud.iot.v1.UnbindDeviceFromGatewayRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getUnbindDeviceFromGatewayMethod(), getCallOptions()), - request, - responseObserver); - } - } - - /** - * - * - *
-   * Internet of Things (IoT) service. Securely connect and manage IoT devices.
-   * 
- */ - public static final class DeviceManagerBlockingStub - extends io.grpc.stub.AbstractBlockingStub { - private DeviceManagerBlockingStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - super(channel, callOptions); - } - - @java.lang.Override - protected DeviceManagerBlockingStub build( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new DeviceManagerBlockingStub(channel, callOptions); - } - - /** - * - * - *
-     * Creates a device registry that contains devices.
-     * 
- */ - public com.google.cloud.iot.v1.DeviceRegistry createDeviceRegistry( - com.google.cloud.iot.v1.CreateDeviceRegistryRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getCreateDeviceRegistryMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Gets a device registry configuration.
-     * 
- */ - public com.google.cloud.iot.v1.DeviceRegistry getDeviceRegistry( - com.google.cloud.iot.v1.GetDeviceRegistryRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getGetDeviceRegistryMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Updates a device registry configuration.
-     * 
- */ - public com.google.cloud.iot.v1.DeviceRegistry updateDeviceRegistry( - com.google.cloud.iot.v1.UpdateDeviceRegistryRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getUpdateDeviceRegistryMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Deletes a device registry configuration.
-     * 
- */ - public com.google.protobuf.Empty deleteDeviceRegistry( - com.google.cloud.iot.v1.DeleteDeviceRegistryRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getDeleteDeviceRegistryMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Lists device registries.
-     * 
- */ - public com.google.cloud.iot.v1.ListDeviceRegistriesResponse listDeviceRegistries( - com.google.cloud.iot.v1.ListDeviceRegistriesRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getListDeviceRegistriesMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Creates a device in a device registry.
-     * 
- */ - public com.google.cloud.iot.v1.Device createDevice( - com.google.cloud.iot.v1.CreateDeviceRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getCreateDeviceMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Gets details about a device.
-     * 
- */ - public com.google.cloud.iot.v1.Device getDevice( - com.google.cloud.iot.v1.GetDeviceRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getGetDeviceMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Updates a device.
-     * 
- */ - public com.google.cloud.iot.v1.Device updateDevice( - com.google.cloud.iot.v1.UpdateDeviceRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getUpdateDeviceMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Deletes a device.
-     * 
- */ - public com.google.protobuf.Empty deleteDevice( - com.google.cloud.iot.v1.DeleteDeviceRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getDeleteDeviceMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * List devices in a device registry.
-     * 
- */ - public com.google.cloud.iot.v1.ListDevicesResponse listDevices( - com.google.cloud.iot.v1.ListDevicesRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getListDevicesMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Modifies the configuration for the device, which is eventually sent from
-     * the Cloud IoT Core servers. Returns the modified configuration version and
-     * its metadata.
-     * 
- */ - public com.google.cloud.iot.v1.DeviceConfig modifyCloudToDeviceConfig( - com.google.cloud.iot.v1.ModifyCloudToDeviceConfigRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getModifyCloudToDeviceConfigMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Lists the last few versions of the device configuration in descending
-     * order (i.e.: newest first).
-     * 
- */ - public com.google.cloud.iot.v1.ListDeviceConfigVersionsResponse listDeviceConfigVersions( - com.google.cloud.iot.v1.ListDeviceConfigVersionsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getListDeviceConfigVersionsMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Lists the last few versions of the device state in descending order (i.e.:
-     * newest first).
-     * 
- */ - public com.google.cloud.iot.v1.ListDeviceStatesResponse listDeviceStates( - com.google.cloud.iot.v1.ListDeviceStatesRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getListDeviceStatesMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Sets the access control policy on the specified resource. Replaces any
-     * existing policy.
-     * 
- */ - public com.google.iam.v1.Policy setIamPolicy(com.google.iam.v1.SetIamPolicyRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getSetIamPolicyMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Gets the access control policy for a resource.
-     * Returns an empty policy if the resource exists and does not have a policy
-     * set.
-     * 
- */ - public com.google.iam.v1.Policy getIamPolicy(com.google.iam.v1.GetIamPolicyRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getGetIamPolicyMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Returns permissions that a caller has on the specified resource.
-     * If the resource does not exist, this will return an empty set of
-     * permissions, not a NOT_FOUND error.
-     * 
- */ - public com.google.iam.v1.TestIamPermissionsResponse testIamPermissions( - com.google.iam.v1.TestIamPermissionsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getTestIamPermissionsMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Sends a command to the specified device. In order for a device to be able
-     * to receive commands, it must:
-     * 1) be connected to Cloud IoT Core using the MQTT protocol, and
-     * 2) be subscribed to the group of MQTT topics specified by
-     *    /devices/{device-id}/commands/#. This subscription will receive commands
-     *    at the top-level topic /devices/{device-id}/commands as well as commands
-     *    for subfolders, like /devices/{device-id}/commands/subfolder.
-     *    Note that subscribing to specific subfolders is not supported.
-     * If the command could not be delivered to the device, this method will
-     * return an error; in particular, if the device is not subscribed, this
-     * method will return FAILED_PRECONDITION. Otherwise, this method will
-     * return OK. If the subscription is QoS 1, at least once delivery will be
-     * guaranteed; for QoS 0, no acknowledgment will be expected from the device.
-     * 
- */ - public com.google.cloud.iot.v1.SendCommandToDeviceResponse sendCommandToDevice( - com.google.cloud.iot.v1.SendCommandToDeviceRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getSendCommandToDeviceMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Associates the device with the gateway.
-     * 
- */ - public com.google.cloud.iot.v1.BindDeviceToGatewayResponse bindDeviceToGateway( - com.google.cloud.iot.v1.BindDeviceToGatewayRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getBindDeviceToGatewayMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Deletes the association between the device and the gateway.
-     * 
- */ - public com.google.cloud.iot.v1.UnbindDeviceFromGatewayResponse unbindDeviceFromGateway( - com.google.cloud.iot.v1.UnbindDeviceFromGatewayRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getUnbindDeviceFromGatewayMethod(), getCallOptions(), request); - } - } - - /** - * - * - *
-   * Internet of Things (IoT) service. Securely connect and manage IoT devices.
-   * 
- */ - public static final class DeviceManagerFutureStub - extends io.grpc.stub.AbstractFutureStub { - private DeviceManagerFutureStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - super(channel, callOptions); - } - - @java.lang.Override - protected DeviceManagerFutureStub build( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new DeviceManagerFutureStub(channel, callOptions); - } - - /** - * - * - *
-     * Creates a device registry that contains devices.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.iot.v1.DeviceRegistry> - createDeviceRegistry(com.google.cloud.iot.v1.CreateDeviceRegistryRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getCreateDeviceRegistryMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Gets a device registry configuration.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.iot.v1.DeviceRegistry> - getDeviceRegistry(com.google.cloud.iot.v1.GetDeviceRegistryRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getGetDeviceRegistryMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Updates a device registry configuration.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.iot.v1.DeviceRegistry> - updateDeviceRegistry(com.google.cloud.iot.v1.UpdateDeviceRegistryRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getUpdateDeviceRegistryMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Deletes a device registry configuration.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture - deleteDeviceRegistry(com.google.cloud.iot.v1.DeleteDeviceRegistryRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getDeleteDeviceRegistryMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Lists device registries.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.iot.v1.ListDeviceRegistriesResponse> - listDeviceRegistries(com.google.cloud.iot.v1.ListDeviceRegistriesRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getListDeviceRegistriesMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Creates a device in a device registry.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture - createDevice(com.google.cloud.iot.v1.CreateDeviceRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getCreateDeviceMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Gets details about a device.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture - getDevice(com.google.cloud.iot.v1.GetDeviceRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getGetDeviceMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Updates a device.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture - updateDevice(com.google.cloud.iot.v1.UpdateDeviceRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getUpdateDeviceMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Deletes a device.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture - deleteDevice(com.google.cloud.iot.v1.DeleteDeviceRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getDeleteDeviceMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * List devices in a device registry.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.iot.v1.ListDevicesResponse> - listDevices(com.google.cloud.iot.v1.ListDevicesRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getListDevicesMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Modifies the configuration for the device, which is eventually sent from
-     * the Cloud IoT Core servers. Returns the modified configuration version and
-     * its metadata.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture - modifyCloudToDeviceConfig( - com.google.cloud.iot.v1.ModifyCloudToDeviceConfigRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getModifyCloudToDeviceConfigMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Lists the last few versions of the device configuration in descending
-     * order (i.e.: newest first).
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.iot.v1.ListDeviceConfigVersionsResponse> - listDeviceConfigVersions(com.google.cloud.iot.v1.ListDeviceConfigVersionsRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getListDeviceConfigVersionsMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Lists the last few versions of the device state in descending order (i.e.:
-     * newest first).
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.iot.v1.ListDeviceStatesResponse> - listDeviceStates(com.google.cloud.iot.v1.ListDeviceStatesRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getListDeviceStatesMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Sets the access control policy on the specified resource. Replaces any
-     * existing policy.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture - setIamPolicy(com.google.iam.v1.SetIamPolicyRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getSetIamPolicyMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Gets the access control policy for a resource.
-     * Returns an empty policy if the resource exists and does not have a policy
-     * set.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture - getIamPolicy(com.google.iam.v1.GetIamPolicyRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getGetIamPolicyMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Returns permissions that a caller has on the specified resource.
-     * If the resource does not exist, this will return an empty set of
-     * permissions, not a NOT_FOUND error.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture< - com.google.iam.v1.TestIamPermissionsResponse> - testIamPermissions(com.google.iam.v1.TestIamPermissionsRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getTestIamPermissionsMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Sends a command to the specified device. In order for a device to be able
-     * to receive commands, it must:
-     * 1) be connected to Cloud IoT Core using the MQTT protocol, and
-     * 2) be subscribed to the group of MQTT topics specified by
-     *    /devices/{device-id}/commands/#. This subscription will receive commands
-     *    at the top-level topic /devices/{device-id}/commands as well as commands
-     *    for subfolders, like /devices/{device-id}/commands/subfolder.
-     *    Note that subscribing to specific subfolders is not supported.
-     * If the command could not be delivered to the device, this method will
-     * return an error; in particular, if the device is not subscribed, this
-     * method will return FAILED_PRECONDITION. Otherwise, this method will
-     * return OK. If the subscription is QoS 1, at least once delivery will be
-     * guaranteed; for QoS 0, no acknowledgment will be expected from the device.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.iot.v1.SendCommandToDeviceResponse> - sendCommandToDevice(com.google.cloud.iot.v1.SendCommandToDeviceRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getSendCommandToDeviceMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Associates the device with the gateway.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.iot.v1.BindDeviceToGatewayResponse> - bindDeviceToGateway(com.google.cloud.iot.v1.BindDeviceToGatewayRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getBindDeviceToGatewayMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Deletes the association between the device and the gateway.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.iot.v1.UnbindDeviceFromGatewayResponse> - unbindDeviceFromGateway(com.google.cloud.iot.v1.UnbindDeviceFromGatewayRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getUnbindDeviceFromGatewayMethod(), getCallOptions()), request); - } - } - - private static final int METHODID_CREATE_DEVICE_REGISTRY = 0; - private static final int METHODID_GET_DEVICE_REGISTRY = 1; - private static final int METHODID_UPDATE_DEVICE_REGISTRY = 2; - private static final int METHODID_DELETE_DEVICE_REGISTRY = 3; - private static final int METHODID_LIST_DEVICE_REGISTRIES = 4; - private static final int METHODID_CREATE_DEVICE = 5; - private static final int METHODID_GET_DEVICE = 6; - private static final int METHODID_UPDATE_DEVICE = 7; - private static final int METHODID_DELETE_DEVICE = 8; - private static final int METHODID_LIST_DEVICES = 9; - private static final int METHODID_MODIFY_CLOUD_TO_DEVICE_CONFIG = 10; - private static final int METHODID_LIST_DEVICE_CONFIG_VERSIONS = 11; - private static final int METHODID_LIST_DEVICE_STATES = 12; - private static final int METHODID_SET_IAM_POLICY = 13; - private static final int METHODID_GET_IAM_POLICY = 14; - private static final int METHODID_TEST_IAM_PERMISSIONS = 15; - private static final int METHODID_SEND_COMMAND_TO_DEVICE = 16; - private static final int METHODID_BIND_DEVICE_TO_GATEWAY = 17; - private static final int METHODID_UNBIND_DEVICE_FROM_GATEWAY = 18; - - 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 DeviceManagerImplBase serviceImpl; - private final int methodId; - - MethodHandlers(DeviceManagerImplBase 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_CREATE_DEVICE_REGISTRY: - serviceImpl.createDeviceRegistry( - (com.google.cloud.iot.v1.CreateDeviceRegistryRequest) request, - (io.grpc.stub.StreamObserver) - responseObserver); - break; - case METHODID_GET_DEVICE_REGISTRY: - serviceImpl.getDeviceRegistry( - (com.google.cloud.iot.v1.GetDeviceRegistryRequest) request, - (io.grpc.stub.StreamObserver) - responseObserver); - break; - case METHODID_UPDATE_DEVICE_REGISTRY: - serviceImpl.updateDeviceRegistry( - (com.google.cloud.iot.v1.UpdateDeviceRegistryRequest) request, - (io.grpc.stub.StreamObserver) - responseObserver); - break; - case METHODID_DELETE_DEVICE_REGISTRY: - serviceImpl.deleteDeviceRegistry( - (com.google.cloud.iot.v1.DeleteDeviceRegistryRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_LIST_DEVICE_REGISTRIES: - serviceImpl.listDeviceRegistries( - (com.google.cloud.iot.v1.ListDeviceRegistriesRequest) request, - (io.grpc.stub.StreamObserver) - responseObserver); - break; - case METHODID_CREATE_DEVICE: - serviceImpl.createDevice( - (com.google.cloud.iot.v1.CreateDeviceRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_GET_DEVICE: - serviceImpl.getDevice( - (com.google.cloud.iot.v1.GetDeviceRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_UPDATE_DEVICE: - serviceImpl.updateDevice( - (com.google.cloud.iot.v1.UpdateDeviceRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_DELETE_DEVICE: - serviceImpl.deleteDevice( - (com.google.cloud.iot.v1.DeleteDeviceRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_LIST_DEVICES: - serviceImpl.listDevices( - (com.google.cloud.iot.v1.ListDevicesRequest) request, - (io.grpc.stub.StreamObserver) - responseObserver); - break; - case METHODID_MODIFY_CLOUD_TO_DEVICE_CONFIG: - serviceImpl.modifyCloudToDeviceConfig( - (com.google.cloud.iot.v1.ModifyCloudToDeviceConfigRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_LIST_DEVICE_CONFIG_VERSIONS: - serviceImpl.listDeviceConfigVersions( - (com.google.cloud.iot.v1.ListDeviceConfigVersionsRequest) request, - (io.grpc.stub.StreamObserver< - com.google.cloud.iot.v1.ListDeviceConfigVersionsResponse>) - responseObserver); - break; - case METHODID_LIST_DEVICE_STATES: - serviceImpl.listDeviceStates( - (com.google.cloud.iot.v1.ListDeviceStatesRequest) request, - (io.grpc.stub.StreamObserver) - responseObserver); - break; - case METHODID_SET_IAM_POLICY: - serviceImpl.setIamPolicy( - (com.google.iam.v1.SetIamPolicyRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_GET_IAM_POLICY: - serviceImpl.getIamPolicy( - (com.google.iam.v1.GetIamPolicyRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_TEST_IAM_PERMISSIONS: - serviceImpl.testIamPermissions( - (com.google.iam.v1.TestIamPermissionsRequest) request, - (io.grpc.stub.StreamObserver) - responseObserver); - break; - case METHODID_SEND_COMMAND_TO_DEVICE: - serviceImpl.sendCommandToDevice( - (com.google.cloud.iot.v1.SendCommandToDeviceRequest) request, - (io.grpc.stub.StreamObserver) - responseObserver); - break; - case METHODID_BIND_DEVICE_TO_GATEWAY: - serviceImpl.bindDeviceToGateway( - (com.google.cloud.iot.v1.BindDeviceToGatewayRequest) request, - (io.grpc.stub.StreamObserver) - responseObserver); - break; - case METHODID_UNBIND_DEVICE_FROM_GATEWAY: - serviceImpl.unbindDeviceFromGateway( - (com.google.cloud.iot.v1.UnbindDeviceFromGatewayRequest) 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 DeviceManagerBaseDescriptorSupplier - implements io.grpc.protobuf.ProtoFileDescriptorSupplier, - io.grpc.protobuf.ProtoServiceDescriptorSupplier { - DeviceManagerBaseDescriptorSupplier() {} - - @java.lang.Override - public com.google.protobuf.Descriptors.FileDescriptor getFileDescriptor() { - return com.google.cloud.iot.v1.DeviceManagerProto.getDescriptor(); - } - - @java.lang.Override - public com.google.protobuf.Descriptors.ServiceDescriptor getServiceDescriptor() { - return getFileDescriptor().findServiceByName("DeviceManager"); - } - } - - private static final class DeviceManagerFileDescriptorSupplier - extends DeviceManagerBaseDescriptorSupplier { - DeviceManagerFileDescriptorSupplier() {} - } - - private static final class DeviceManagerMethodDescriptorSupplier - extends DeviceManagerBaseDescriptorSupplier - implements io.grpc.protobuf.ProtoMethodDescriptorSupplier { - private final String methodName; - - DeviceManagerMethodDescriptorSupplier(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 (DeviceManagerGrpc.class) { - result = serviceDescriptor; - if (result == null) { - serviceDescriptor = - result = - io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) - .setSchemaDescriptor(new DeviceManagerFileDescriptorSupplier()) - .addMethod(getCreateDeviceRegistryMethod()) - .addMethod(getGetDeviceRegistryMethod()) - .addMethod(getUpdateDeviceRegistryMethod()) - .addMethod(getDeleteDeviceRegistryMethod()) - .addMethod(getListDeviceRegistriesMethod()) - .addMethod(getCreateDeviceMethod()) - .addMethod(getGetDeviceMethod()) - .addMethod(getUpdateDeviceMethod()) - .addMethod(getDeleteDeviceMethod()) - .addMethod(getListDevicesMethod()) - .addMethod(getModifyCloudToDeviceConfigMethod()) - .addMethod(getListDeviceConfigVersionsMethod()) - .addMethod(getListDeviceStatesMethod()) - .addMethod(getSetIamPolicyMethod()) - .addMethod(getGetIamPolicyMethod()) - .addMethod(getTestIamPermissionsMethod()) - .addMethod(getSendCommandToDeviceMethod()) - .addMethod(getBindDeviceToGatewayMethod()) - .addMethod(getUnbindDeviceFromGatewayMethod()) - .build(); - } - } - } - return result; - } -} diff --git a/google-cloud-iot/src/main/java/com/google/cloud/iot/v1/DeviceManagerClient.java b/owl-bot-staging/v1/google-cloud-iot/src/main/java/com/google/cloud/iot/v1/DeviceManagerClient.java similarity index 98% rename from google-cloud-iot/src/main/java/com/google/cloud/iot/v1/DeviceManagerClient.java rename to owl-bot-staging/v1/google-cloud-iot/src/main/java/com/google/cloud/iot/v1/DeviceManagerClient.java index c3ffaea1..a5151610 100644 --- a/google-cloud-iot/src/main/java/com/google/cloud/iot/v1/DeviceManagerClient.java +++ b/owl-bot-staging/v1/google-cloud-iot/src/main/java/com/google/cloud/iot/v1/DeviceManagerClient.java @@ -65,13 +65,13 @@ * methods: * *
    - *
  1. A "flattened" method. With this type of method, the fields of the request type have been + *
  2. A "flattened" method. With this type of method, the fields of the request type have been * converted into function parameters. It may be the case that not all fields are available as * parameters, and not every API method will have a flattened method entry point. - *
  3. A "request object" method. This type of method only takes one parameter, a request object, + *
  4. A "request object" method. This type of method only takes one parameter, a request object, * which must be constructed before the call. Not every API method will have a request object * method. - *
  5. A "callable" method. This type of method takes no parameters and returns an immutable API + *
  6. A "callable" method. This type of method takes no parameters and returns an immutable API * callable object, which can be used to initiate calls to the service. *
* @@ -106,6 +106,20 @@ * DeviceManagerClient deviceManagerClient = DeviceManagerClient.create(deviceManagerSettings); * } * + *

To use REST (HTTP1.1/JSON) transport (instead of gRPC) for sending and receiving requests over + * the wire: + * + *

{@code
+ * // This snippet has been automatically generated for illustrative purposes only.
+ * // It may require modifications to work in your environment.
+ * DeviceManagerSettings deviceManagerSettings =
+ *     DeviceManagerSettings.newBuilder()
+ *         .setTransportChannelProvider(
+ *             DeviceManagerSettings.defaultHttpJsonTransportProviderBuilder().build())
+ *         .build();
+ * DeviceManagerClient deviceManagerClient = DeviceManagerClient.create(deviceManagerSettings);
+ * }
+ * *

Please refer to the GitHub repository's samples for more quickstart code snippets. */ @Generated("by gapic-generator-java") @@ -2517,11 +2531,8 @@ public boolean awaitTermination(long duration, TimeUnit unit) throws Interrupted public static class ListDeviceRegistriesPagedResponse extends AbstractPagedListResponse< - ListDeviceRegistriesRequest, - ListDeviceRegistriesResponse, - DeviceRegistry, - ListDeviceRegistriesPage, - ListDeviceRegistriesFixedSizeCollection> { + ListDeviceRegistriesRequest, ListDeviceRegistriesResponse, DeviceRegistry, + ListDeviceRegistriesPage, ListDeviceRegistriesFixedSizeCollection> { public static ApiFuture createAsync( PageContext @@ -2542,9 +2553,7 @@ private ListDeviceRegistriesPagedResponse(ListDeviceRegistriesPage page) { public static class ListDeviceRegistriesPage extends AbstractPage< - ListDeviceRegistriesRequest, - ListDeviceRegistriesResponse, - DeviceRegistry, + ListDeviceRegistriesRequest, ListDeviceRegistriesResponse, DeviceRegistry, ListDeviceRegistriesPage> { private ListDeviceRegistriesPage( @@ -2577,11 +2586,8 @@ public ApiFuture createPageAsync( public static class ListDeviceRegistriesFixedSizeCollection extends AbstractFixedSizeCollection< - ListDeviceRegistriesRequest, - ListDeviceRegistriesResponse, - DeviceRegistry, - ListDeviceRegistriesPage, - ListDeviceRegistriesFixedSizeCollection> { + ListDeviceRegistriesRequest, ListDeviceRegistriesResponse, DeviceRegistry, + ListDeviceRegistriesPage, ListDeviceRegistriesFixedSizeCollection> { private ListDeviceRegistriesFixedSizeCollection( List pages, int collectionSize) { @@ -2601,10 +2607,7 @@ protected ListDeviceRegistriesFixedSizeCollection createCollection( public static class ListDevicesPagedResponse extends AbstractPagedListResponse< - ListDevicesRequest, - ListDevicesResponse, - Device, - ListDevicesPage, + ListDevicesRequest, ListDevicesResponse, Device, ListDevicesPage, ListDevicesFixedSizeCollection> { public static ApiFuture createAsync( @@ -2651,10 +2654,7 @@ public ApiFuture createPageAsync( public static class ListDevicesFixedSizeCollection extends AbstractFixedSizeCollection< - ListDevicesRequest, - ListDevicesResponse, - Device, - ListDevicesPage, + ListDevicesRequest, ListDevicesResponse, Device, ListDevicesPage, ListDevicesFixedSizeCollection> { private ListDevicesFixedSizeCollection(List pages, int collectionSize) { diff --git a/google-cloud-iot/src/main/java/com/google/cloud/iot/v1/DeviceManagerSettings.java b/owl-bot-staging/v1/google-cloud-iot/src/main/java/com/google/cloud/iot/v1/DeviceManagerSettings.java similarity index 93% rename from google-cloud-iot/src/main/java/com/google/cloud/iot/v1/DeviceManagerSettings.java rename to owl-bot-staging/v1/google-cloud-iot/src/main/java/com/google/cloud/iot/v1/DeviceManagerSettings.java index ff603de0..31a687e0 100644 --- a/google-cloud-iot/src/main/java/com/google/cloud/iot/v1/DeviceManagerSettings.java +++ b/owl-bot-staging/v1/google-cloud-iot/src/main/java/com/google/cloud/iot/v1/DeviceManagerSettings.java @@ -24,10 +24,12 @@ import com.google.api.gax.core.GoogleCredentialsProvider; import com.google.api.gax.core.InstantiatingExecutorProvider; import com.google.api.gax.grpc.InstantiatingGrpcChannelProvider; +import com.google.api.gax.httpjson.InstantiatingHttpJsonChannelProvider; import com.google.api.gax.rpc.ApiClientHeaderProvider; import com.google.api.gax.rpc.ClientContext; import com.google.api.gax.rpc.ClientSettings; import com.google.api.gax.rpc.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.iot.v1.stub.DeviceManagerStubSettings; @@ -48,9 +50,9 @@ *

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

    - *
  • The default service address (cloudiot.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 (cloudiot.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 @@ -101,8 +103,7 @@ public UnaryCallSettings deleteDeviceRegistr /** Returns the object with the settings used for calls to listDeviceRegistries. */ public PagedCallSettings< - ListDeviceRegistriesRequest, - ListDeviceRegistriesResponse, + ListDeviceRegistriesRequest, ListDeviceRegistriesResponse, ListDeviceRegistriesPagedResponse> listDeviceRegistriesSettings() { return ((DeviceManagerStubSettings) getStubSettings()).listDeviceRegistriesSettings(); @@ -211,11 +212,18 @@ public static GoogleCredentialsProvider.Builder defaultCredentialsProviderBuilde return DeviceManagerStubSettings.defaultCredentialsProviderBuilder(); } - /** Returns a builder for the default ChannelProvider for this service. */ + /** Returns a builder for the default gRPC ChannelProvider for this service. */ public static InstantiatingGrpcChannelProvider.Builder defaultGrpcTransportProviderBuilder() { return DeviceManagerStubSettings.defaultGrpcTransportProviderBuilder(); } + /** Returns a builder for the default REST ChannelProvider for this service. */ + @BetaApi + public static InstantiatingHttpJsonChannelProvider.Builder + defaultHttpJsonTransportProviderBuilder() { + return DeviceManagerStubSettings.defaultHttpJsonTransportProviderBuilder(); + } + public static TransportChannelProvider defaultTransportChannelProvider() { return DeviceManagerStubSettings.defaultTransportChannelProvider(); } @@ -225,11 +233,17 @@ public static ApiClientHeaderProvider.Builder defaultApiClientHeaderProviderBuil return DeviceManagerStubSettings.defaultApiClientHeaderProviderBuilder(); } - /** Returns a new builder for this class. */ + /** Returns a new gRPC builder for this class. */ public static Builder newBuilder() { return Builder.createDefault(); } + /** Returns a new REST builder for this class. */ + @BetaApi + public static Builder newHttpJsonBuilder() { + return Builder.createHttpJsonDefault(); + } + /** Returns a new builder for this class. */ public static Builder newBuilder(ClientContext clientContext) { return new Builder(clientContext); @@ -267,6 +281,11 @@ private static Builder createDefault() { return new Builder(DeviceManagerStubSettings.newBuilder()); } + @BetaApi + private static Builder createHttpJsonDefault() { + return new Builder(DeviceManagerStubSettings.newHttpJsonBuilder()); + } + public DeviceManagerStubSettings.Builder getStubSettingsBuilder() { return ((DeviceManagerStubSettings.Builder) getStubSettings()); } @@ -309,8 +328,7 @@ public Builder applyToAllUnaryMethods( /** Returns the builder for the settings used for calls to listDeviceRegistries. */ public PagedCallSettings.Builder< - ListDeviceRegistriesRequest, - ListDeviceRegistriesResponse, + ListDeviceRegistriesRequest, ListDeviceRegistriesResponse, ListDeviceRegistriesPagedResponse> listDeviceRegistriesSettings() { return getStubSettingsBuilder().listDeviceRegistriesSettings(); diff --git a/google-cloud-iot/src/main/java/com/google/cloud/iot/v1/gapic_metadata.json b/owl-bot-staging/v1/google-cloud-iot/src/main/java/com/google/cloud/iot/v1/gapic_metadata.json similarity index 100% rename from google-cloud-iot/src/main/java/com/google/cloud/iot/v1/gapic_metadata.json rename to owl-bot-staging/v1/google-cloud-iot/src/main/java/com/google/cloud/iot/v1/gapic_metadata.json diff --git a/google-cloud-iot/src/main/java/com/google/cloud/iot/v1/package-info.java b/owl-bot-staging/v1/google-cloud-iot/src/main/java/com/google/cloud/iot/v1/package-info.java similarity index 100% rename from google-cloud-iot/src/main/java/com/google/cloud/iot/v1/package-info.java rename to owl-bot-staging/v1/google-cloud-iot/src/main/java/com/google/cloud/iot/v1/package-info.java diff --git a/google-cloud-iot/src/main/java/com/google/cloud/iot/v1/stub/DeviceManagerStub.java b/owl-bot-staging/v1/google-cloud-iot/src/main/java/com/google/cloud/iot/v1/stub/DeviceManagerStub.java similarity index 100% rename from google-cloud-iot/src/main/java/com/google/cloud/iot/v1/stub/DeviceManagerStub.java rename to owl-bot-staging/v1/google-cloud-iot/src/main/java/com/google/cloud/iot/v1/stub/DeviceManagerStub.java diff --git a/google-cloud-iot/src/main/java/com/google/cloud/iot/v1/stub/DeviceManagerStubSettings.java b/owl-bot-staging/v1/google-cloud-iot/src/main/java/com/google/cloud/iot/v1/stub/DeviceManagerStubSettings.java similarity index 93% rename from google-cloud-iot/src/main/java/com/google/cloud/iot/v1/stub/DeviceManagerStubSettings.java rename to owl-bot-staging/v1/google-cloud-iot/src/main/java/com/google/cloud/iot/v1/stub/DeviceManagerStubSettings.java index 8bb5b522..64545fec 100644 --- a/google-cloud-iot/src/main/java/com/google/cloud/iot/v1/stub/DeviceManagerStubSettings.java +++ b/owl-bot-staging/v1/google-cloud-iot/src/main/java/com/google/cloud/iot/v1/stub/DeviceManagerStubSettings.java @@ -28,6 +28,9 @@ import com.google.api.gax.grpc.GaxGrpcProperties; import com.google.api.gax.grpc.GrpcTransportChannel; import com.google.api.gax.grpc.InstantiatingGrpcChannelProvider; +import com.google.api.gax.httpjson.GaxHttpJsonProperties; +import com.google.api.gax.httpjson.HttpJsonTransportChannel; +import com.google.api.gax.httpjson.InstantiatingHttpJsonChannelProvider; import com.google.api.gax.retrying.RetrySettings; import com.google.api.gax.rpc.ApiCallContext; import com.google.api.gax.rpc.ApiClientHeaderProvider; @@ -89,9 +92,9 @@ *

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

    - *
  • The default service address (cloudiot.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 (cloudiot.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 @@ -133,8 +136,7 @@ public class DeviceManagerStubSettings extends StubSettings deleteDeviceRegistrySettings; private final PagedCallSettings< - ListDeviceRegistriesRequest, - ListDeviceRegistriesResponse, + ListDeviceRegistriesRequest, ListDeviceRegistriesResponse, ListDeviceRegistriesPagedResponse> listDeviceRegistriesSettings; private final UnaryCallSettings createDeviceSettings; @@ -237,13 +239,11 @@ public Iterable extractResources(ListDevicesResponse payload) { }; private static final PagedListResponseFactory< - ListDeviceRegistriesRequest, - ListDeviceRegistriesResponse, + ListDeviceRegistriesRequest, ListDeviceRegistriesResponse, ListDeviceRegistriesPagedResponse> LIST_DEVICE_REGISTRIES_PAGE_STR_FACT = new PagedListResponseFactory< - ListDeviceRegistriesRequest, - ListDeviceRegistriesResponse, + ListDeviceRegistriesRequest, ListDeviceRegistriesResponse, ListDeviceRegistriesPagedResponse>() { @Override public ApiFuture getFuturePagedResponse( @@ -300,8 +300,7 @@ public UnaryCallSettings deleteDeviceRegistr /** Returns the object with the settings used for calls to listDeviceRegistries. */ public PagedCallSettings< - ListDeviceRegistriesRequest, - ListDeviceRegistriesResponse, + ListDeviceRegistriesRequest, ListDeviceRegistriesResponse, ListDeviceRegistriesPagedResponse> listDeviceRegistriesSettings() { return listDeviceRegistriesSettings; @@ -391,6 +390,11 @@ public DeviceManagerStub createStub() throws IOException { .equals(GrpcTransportChannel.getGrpcTransportName())) { return GrpcDeviceManagerStub.create(this); } + if (getTransportChannelProvider() + .getTransportName() + .equals(HttpJsonTransportChannel.getHttpJsonTransportName())) { + return HttpJsonDeviceManagerStub.create(this); + } throw new UnsupportedOperationException( String.format( "Transport not supported: %s", getTransportChannelProvider().getTransportName())); @@ -423,18 +427,25 @@ public static GoogleCredentialsProvider.Builder defaultCredentialsProviderBuilde .setUseJwtAccessWithScope(true); } - /** Returns a builder for the default ChannelProvider for this service. */ + /** Returns a builder for the default gRPC ChannelProvider for this service. */ public static InstantiatingGrpcChannelProvider.Builder defaultGrpcTransportProviderBuilder() { return InstantiatingGrpcChannelProvider.newBuilder() .setMaxInboundMessageSize(Integer.MAX_VALUE); } + /** Returns a builder for the default REST ChannelProvider for this service. */ + @BetaApi + public static InstantiatingHttpJsonChannelProvider.Builder + defaultHttpJsonTransportProviderBuilder() { + return InstantiatingHttpJsonChannelProvider.newBuilder(); + } + public static TransportChannelProvider defaultTransportChannelProvider() { return defaultGrpcTransportProviderBuilder().build(); } @BetaApi("The surface for customizing headers is not stable yet and may change in the future.") - public static ApiClientHeaderProvider.Builder defaultApiClientHeaderProviderBuilder() { + public static ApiClientHeaderProvider.Builder defaultGrpcApiClientHeaderProviderBuilder() { return ApiClientHeaderProvider.newBuilder() .setGeneratedLibToken( "gapic", GaxProperties.getLibraryVersion(DeviceManagerStubSettings.class)) @@ -442,11 +453,30 @@ public static ApiClientHeaderProvider.Builder defaultApiClientHeaderProviderBuil GaxGrpcProperties.getGrpcTokenName(), GaxGrpcProperties.getGrpcVersion()); } - /** Returns a new builder for this class. */ + @BetaApi("The surface for customizing headers is not stable yet and may change in the future.") + public static ApiClientHeaderProvider.Builder defaultHttpJsonApiClientHeaderProviderBuilder() { + return ApiClientHeaderProvider.newBuilder() + .setGeneratedLibToken( + "gapic", GaxProperties.getLibraryVersion(DeviceManagerStubSettings.class)) + .setTransportToken( + GaxHttpJsonProperties.getHttpJsonTokenName(), + GaxHttpJsonProperties.getHttpJsonVersion()); + } + + public static ApiClientHeaderProvider.Builder defaultApiClientHeaderProviderBuilder() { + return DeviceManagerStubSettings.defaultGrpcApiClientHeaderProviderBuilder(); + } + + /** Returns a new gRPC builder for this class. */ public static Builder newBuilder() { return Builder.createDefault(); } + /** Returns a new REST builder for this class. */ + public static Builder newHttpJsonBuilder() { + return Builder.createHttpJsonDefault(); + } + /** Returns a new builder for this class. */ public static Builder newBuilder(ClientContext clientContext) { return new Builder(clientContext); @@ -493,8 +523,7 @@ public static class Builder extends StubSettings.Builder deleteDeviceRegistrySettings; private final PagedCallSettings.Builder< - ListDeviceRegistriesRequest, - ListDeviceRegistriesResponse, + ListDeviceRegistriesRequest, ListDeviceRegistriesResponse, ListDeviceRegistriesPagedResponse> listDeviceRegistriesSettings; private final UnaryCallSettings.Builder createDeviceSettings; @@ -694,6 +723,19 @@ private static Builder createDefault() { return initDefaults(builder); } + private static Builder createHttpJsonDefault() { + Builder builder = new Builder(((ClientContext) null)); + + builder.setTransportChannelProvider(defaultHttpJsonTransportProviderBuilder().build()); + builder.setCredentialsProvider(defaultCredentialsProviderBuilder().build()); + builder.setInternalHeaderProvider(defaultHttpJsonApiClientHeaderProviderBuilder().build()); + builder.setEndpoint(getDefaultEndpoint()); + builder.setMtlsEndpoint(getDefaultMtlsEndpoint()); + builder.setSwitchToMtlsEndpointAllowed(true); + + return initDefaults(builder); + } + private static Builder initDefaults(Builder builder) { builder .createDeviceRegistrySettings() @@ -834,8 +876,7 @@ public Builder applyToAllUnaryMethods( /** Returns the builder for the settings used for calls to listDeviceRegistries. */ public PagedCallSettings.Builder< - ListDeviceRegistriesRequest, - ListDeviceRegistriesResponse, + ListDeviceRegistriesRequest, ListDeviceRegistriesResponse, ListDeviceRegistriesPagedResponse> listDeviceRegistriesSettings() { return listDeviceRegistriesSettings; diff --git a/google-cloud-iot/src/main/java/com/google/cloud/iot/v1/stub/GrpcDeviceManagerCallableFactory.java b/owl-bot-staging/v1/google-cloud-iot/src/main/java/com/google/cloud/iot/v1/stub/GrpcDeviceManagerCallableFactory.java similarity index 100% rename from google-cloud-iot/src/main/java/com/google/cloud/iot/v1/stub/GrpcDeviceManagerCallableFactory.java rename to owl-bot-staging/v1/google-cloud-iot/src/main/java/com/google/cloud/iot/v1/stub/GrpcDeviceManagerCallableFactory.java diff --git a/google-cloud-iot/src/main/java/com/google/cloud/iot/v1/stub/GrpcDeviceManagerStub.java b/owl-bot-staging/v1/google-cloud-iot/src/main/java/com/google/cloud/iot/v1/stub/GrpcDeviceManagerStub.java similarity index 99% rename from google-cloud-iot/src/main/java/com/google/cloud/iot/v1/stub/GrpcDeviceManagerStub.java rename to owl-bot-staging/v1/google-cloud-iot/src/main/java/com/google/cloud/iot/v1/stub/GrpcDeviceManagerStub.java index 2641a62f..a2a8ef01 100644 --- a/google-cloud-iot/src/main/java/com/google/cloud/iot/v1/stub/GrpcDeviceManagerStub.java +++ b/owl-bot-staging/v1/google-cloud-iot/src/main/java/com/google/cloud/iot/v1/stub/GrpcDeviceManagerStub.java @@ -62,6 +62,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/owl-bot-staging/v1/google-cloud-iot/src/main/java/com/google/cloud/iot/v1/stub/HttpJsonDeviceManagerCallableFactory.java b/owl-bot-staging/v1/google-cloud-iot/src/main/java/com/google/cloud/iot/v1/stub/HttpJsonDeviceManagerCallableFactory.java new file mode 100644 index 00000000..58d6577e --- /dev/null +++ b/owl-bot-staging/v1/google-cloud-iot/src/main/java/com/google/cloud/iot/v1/stub/HttpJsonDeviceManagerCallableFactory.java @@ -0,0 +1,105 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.iot.v1.stub; + +import com.google.api.core.BetaApi; +import com.google.api.gax.httpjson.HttpJsonCallSettings; +import com.google.api.gax.httpjson.HttpJsonCallableFactory; +import com.google.api.gax.httpjson.HttpJsonOperationSnapshotCallable; +import com.google.api.gax.httpjson.HttpJsonStubCallableFactory; +import com.google.api.gax.httpjson.longrunning.stub.OperationsStub; +import com.google.api.gax.rpc.BatchingCallSettings; +import com.google.api.gax.rpc.ClientContext; +import com.google.api.gax.rpc.OperationCallSettings; +import com.google.api.gax.rpc.OperationCallable; +import com.google.api.gax.rpc.PagedCallSettings; +import com.google.api.gax.rpc.ServerStreamingCallSettings; +import com.google.api.gax.rpc.ServerStreamingCallable; +import com.google.api.gax.rpc.UnaryCallSettings; +import com.google.api.gax.rpc.UnaryCallable; +import com.google.longrunning.Operation; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * REST callable factory implementation for the DeviceManager service API. + * + *

This class is for advanced usage. + */ +@Generated("by gapic-generator-java") +@BetaApi +public class HttpJsonDeviceManagerCallableFactory + implements HttpJsonStubCallableFactory { + + @Override + public UnaryCallable createUnaryCallable( + HttpJsonCallSettings httpJsonCallSettings, + UnaryCallSettings callSettings, + ClientContext clientContext) { + return HttpJsonCallableFactory.createUnaryCallable( + httpJsonCallSettings, callSettings, clientContext); + } + + @Override + public + UnaryCallable createPagedCallable( + HttpJsonCallSettings httpJsonCallSettings, + PagedCallSettings callSettings, + ClientContext clientContext) { + return HttpJsonCallableFactory.createPagedCallable( + httpJsonCallSettings, callSettings, clientContext); + } + + @Override + public UnaryCallable createBatchingCallable( + HttpJsonCallSettings httpJsonCallSettings, + BatchingCallSettings callSettings, + ClientContext clientContext) { + return HttpJsonCallableFactory.createBatchingCallable( + httpJsonCallSettings, callSettings, clientContext); + } + + @BetaApi( + "The surface for long-running operations is not stable yet and may change in the future.") + @Override + public + OperationCallable createOperationCallable( + HttpJsonCallSettings httpJsonCallSettings, + OperationCallSettings callSettings, + ClientContext clientContext, + OperationsStub operationsStub) { + UnaryCallable innerCallable = + HttpJsonCallableFactory.createBaseUnaryCallable( + httpJsonCallSettings, callSettings.getInitialCallSettings(), clientContext); + HttpJsonOperationSnapshotCallable initialCallable = + new HttpJsonOperationSnapshotCallable( + innerCallable, + httpJsonCallSettings.getMethodDescriptor().getOperationSnapshotFactory()); + return HttpJsonCallableFactory.createOperationCallable( + callSettings, clientContext, operationsStub.longRunningClient(), initialCallable); + } + + @Override + public + ServerStreamingCallable createServerStreamingCallable( + HttpJsonCallSettings httpJsonCallSettings, + ServerStreamingCallSettings callSettings, + ClientContext clientContext) { + return HttpJsonCallableFactory.createServerStreamingCallable( + httpJsonCallSettings, callSettings, clientContext); + } +} diff --git a/owl-bot-staging/v1/google-cloud-iot/src/main/java/com/google/cloud/iot/v1/stub/HttpJsonDeviceManagerStub.java b/owl-bot-staging/v1/google-cloud-iot/src/main/java/com/google/cloud/iot/v1/stub/HttpJsonDeviceManagerStub.java new file mode 100644 index 00000000..1506c3f9 --- /dev/null +++ b/owl-bot-staging/v1/google-cloud-iot/src/main/java/com/google/cloud/iot/v1/stub/HttpJsonDeviceManagerStub.java @@ -0,0 +1,1248 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.iot.v1.stub; + +import static com.google.cloud.iot.v1.DeviceManagerClient.ListDeviceRegistriesPagedResponse; +import static com.google.cloud.iot.v1.DeviceManagerClient.ListDevicesPagedResponse; + +import com.google.api.core.BetaApi; +import com.google.api.core.InternalApi; +import com.google.api.gax.core.BackgroundResource; +import com.google.api.gax.core.BackgroundResourceAggregation; +import com.google.api.gax.httpjson.ApiMethodDescriptor; +import com.google.api.gax.httpjson.HttpJsonCallSettings; +import com.google.api.gax.httpjson.HttpJsonStubCallableFactory; +import com.google.api.gax.httpjson.ProtoMessageRequestFormatter; +import com.google.api.gax.httpjson.ProtoMessageResponseParser; +import com.google.api.gax.httpjson.ProtoRestSerializer; +import com.google.api.gax.rpc.ClientContext; +import com.google.api.gax.rpc.UnaryCallable; +import com.google.cloud.iot.v1.BindDeviceToGatewayRequest; +import com.google.cloud.iot.v1.BindDeviceToGatewayResponse; +import com.google.cloud.iot.v1.CreateDeviceRegistryRequest; +import com.google.cloud.iot.v1.CreateDeviceRequest; +import com.google.cloud.iot.v1.DeleteDeviceRegistryRequest; +import com.google.cloud.iot.v1.DeleteDeviceRequest; +import com.google.cloud.iot.v1.Device; +import com.google.cloud.iot.v1.DeviceConfig; +import com.google.cloud.iot.v1.DeviceRegistry; +import com.google.cloud.iot.v1.GetDeviceRegistryRequest; +import com.google.cloud.iot.v1.GetDeviceRequest; +import com.google.cloud.iot.v1.ListDeviceConfigVersionsRequest; +import com.google.cloud.iot.v1.ListDeviceConfigVersionsResponse; +import com.google.cloud.iot.v1.ListDeviceRegistriesRequest; +import com.google.cloud.iot.v1.ListDeviceRegistriesResponse; +import com.google.cloud.iot.v1.ListDeviceStatesRequest; +import com.google.cloud.iot.v1.ListDeviceStatesResponse; +import com.google.cloud.iot.v1.ListDevicesRequest; +import com.google.cloud.iot.v1.ListDevicesResponse; +import com.google.cloud.iot.v1.ModifyCloudToDeviceConfigRequest; +import com.google.cloud.iot.v1.SendCommandToDeviceRequest; +import com.google.cloud.iot.v1.SendCommandToDeviceResponse; +import com.google.cloud.iot.v1.UnbindDeviceFromGatewayRequest; +import com.google.cloud.iot.v1.UnbindDeviceFromGatewayResponse; +import com.google.cloud.iot.v1.UpdateDeviceRegistryRequest; +import com.google.cloud.iot.v1.UpdateDeviceRequest; +import com.google.iam.v1.GetIamPolicyRequest; +import com.google.iam.v1.Policy; +import com.google.iam.v1.SetIamPolicyRequest; +import com.google.iam.v1.TestIamPermissionsRequest; +import com.google.iam.v1.TestIamPermissionsResponse; +import com.google.protobuf.Empty; +import com.google.protobuf.TypeRegistry; +import java.io.IOException; +import java.util.ArrayList; +import java.util.HashMap; +import java.util.List; +import java.util.Map; +import java.util.concurrent.TimeUnit; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * REST stub implementation for the DeviceManager service API. + * + *

This class is for advanced usage and reflects the underlying API directly. + */ +@Generated("by gapic-generator-java") +@BetaApi +public class HttpJsonDeviceManagerStub extends DeviceManagerStub { + private static final TypeRegistry typeRegistry = TypeRegistry.newBuilder().build(); + + private static final ApiMethodDescriptor + createDeviceRegistryMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.cloud.iot.v1.DeviceManager/CreateDeviceRegistry") + .setHttpMethod("POST") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/{parent=projects/*/locations/*}/registries", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "parent", request.getParent()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + return fields; + }) + .setRequestBodyExtractor( + request -> + ProtoRestSerializer.create() + .toBody("deviceRegistry", request.getDeviceRegistry())) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(DeviceRegistry.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor + getDeviceRegistryMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.cloud.iot.v1.DeviceManager/GetDeviceRegistry") + .setHttpMethod("GET") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/{name=projects/*/locations/*/registries/*}", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "name", request.getName()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + return fields; + }) + .setRequestBodyExtractor(request -> null) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(DeviceRegistry.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor + updateDeviceRegistryMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.cloud.iot.v1.DeviceManager/UpdateDeviceRegistry") + .setHttpMethod("PATCH") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/{deviceRegistry.name=projects/*/locations/*/registries/*}", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam( + fields, + "deviceRegistry.name", + request.getDeviceRegistry().getName()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putQueryParam(fields, "updateMask", request.getUpdateMask()); + return fields; + }) + .setRequestBodyExtractor( + request -> + ProtoRestSerializer.create() + .toBody("deviceRegistry", request.getDeviceRegistry())) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(DeviceRegistry.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor + deleteDeviceRegistryMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.cloud.iot.v1.DeviceManager/DeleteDeviceRegistry") + .setHttpMethod("DELETE") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/{name=projects/*/locations/*/registries/*}", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "name", request.getName()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + return fields; + }) + .setRequestBodyExtractor(request -> null) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(Empty.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor< + ListDeviceRegistriesRequest, ListDeviceRegistriesResponse> + listDeviceRegistriesMethodDescriptor = + ApiMethodDescriptor + .newBuilder() + .setFullMethodName("google.cloud.iot.v1.DeviceManager/ListDeviceRegistries") + .setHttpMethod("GET") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/{parent=projects/*/locations/*}/registries", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "parent", request.getParent()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putQueryParam(fields, "pageSize", request.getPageSize()); + serializer.putQueryParam(fields, "pageToken", request.getPageToken()); + return fields; + }) + .setRequestBodyExtractor(request -> null) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(ListDeviceRegistriesResponse.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor + createDeviceMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.cloud.iot.v1.DeviceManager/CreateDevice") + .setHttpMethod("POST") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/{parent=projects/*/locations/*/registries/*}/devices", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "parent", request.getParent()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + return fields; + }) + .setRequestBodyExtractor( + request -> + ProtoRestSerializer.create().toBody("device", request.getDevice())) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(Device.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor getDeviceMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.cloud.iot.v1.DeviceManager/GetDevice") + .setHttpMethod("GET") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/{name=projects/*/locations/*/registries/*/devices/*}", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "name", request.getName()); + return fields; + }) + .setAdditionalPaths( + "/v1/{name=projects/*/locations/*/registries/*/groups/*/devices/*}") + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putQueryParam(fields, "fieldMask", request.getFieldMask()); + return fields; + }) + .setRequestBodyExtractor(request -> null) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(Device.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor + updateDeviceMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.cloud.iot.v1.DeviceManager/UpdateDevice") + .setHttpMethod("PATCH") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/{device.name=projects/*/locations/*/registries/*/devices/*}", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam( + fields, "device.name", request.getDevice().getName()); + return fields; + }) + .setAdditionalPaths( + "/v1/{device.name=projects/*/locations/*/registries/*/groups/*/devices/*}") + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putQueryParam(fields, "updateMask", request.getUpdateMask()); + return fields; + }) + .setRequestBodyExtractor( + request -> + ProtoRestSerializer.create().toBody("device", request.getDevice())) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(Device.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor + deleteDeviceMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.cloud.iot.v1.DeviceManager/DeleteDevice") + .setHttpMethod("DELETE") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/{name=projects/*/locations/*/registries/*/devices/*}", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "name", request.getName()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + return fields; + }) + .setRequestBodyExtractor(request -> null) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(Empty.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor + listDevicesMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.cloud.iot.v1.DeviceManager/ListDevices") + .setHttpMethod("GET") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/{parent=projects/*/locations/*/registries/*}/devices", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "parent", request.getParent()); + return fields; + }) + .setAdditionalPaths( + "/v1/{parent=projects/*/locations/*/registries/*/groups/*}/devices") + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putQueryParam( + fields, "deviceIds", request.getDeviceIdsList()); + serializer.putQueryParam( + fields, "deviceNumIds", request.getDeviceNumIdsList()); + serializer.putQueryParam(fields, "fieldMask", request.getFieldMask()); + serializer.putQueryParam( + fields, "gatewayListOptions", request.getGatewayListOptions()); + serializer.putQueryParam(fields, "pageSize", request.getPageSize()); + serializer.putQueryParam(fields, "pageToken", request.getPageToken()); + return fields; + }) + .setRequestBodyExtractor(request -> null) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(ListDevicesResponse.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor + modifyCloudToDeviceConfigMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.cloud.iot.v1.DeviceManager/ModifyCloudToDeviceConfig") + .setHttpMethod("POST") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/{name=projects/*/locations/*/registries/*/devices/*}:modifyCloudToDeviceConfig", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "name", request.getName()); + return fields; + }) + .setAdditionalPaths( + "/v1/{name=projects/*/locations/*/registries/*/groups/*/devices/*}:modifyCloudToDeviceConfig") + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + return fields; + }) + .setRequestBodyExtractor( + request -> + ProtoRestSerializer.create() + .toBody("*", request.toBuilder().clearName().build())) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(DeviceConfig.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor< + ListDeviceConfigVersionsRequest, ListDeviceConfigVersionsResponse> + listDeviceConfigVersionsMethodDescriptor = + ApiMethodDescriptor + .newBuilder() + .setFullMethodName("google.cloud.iot.v1.DeviceManager/ListDeviceConfigVersions") + .setHttpMethod("GET") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/{name=projects/*/locations/*/registries/*/devices/*}/configVersions", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "name", request.getName()); + return fields; + }) + .setAdditionalPaths( + "/v1/{name=projects/*/locations/*/registries/*/groups/*/devices/*}/configVersions") + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putQueryParam( + fields, "numVersions", request.getNumVersions()); + return fields; + }) + .setRequestBodyExtractor(request -> null) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(ListDeviceConfigVersionsResponse.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor + listDeviceStatesMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.cloud.iot.v1.DeviceManager/ListDeviceStates") + .setHttpMethod("GET") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/{name=projects/*/locations/*/registries/*/devices/*}/states", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "name", request.getName()); + return fields; + }) + .setAdditionalPaths( + "/v1/{name=projects/*/locations/*/registries/*/groups/*/devices/*}/states") + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putQueryParam(fields, "numStates", request.getNumStates()); + return fields; + }) + .setRequestBodyExtractor(request -> null) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(ListDeviceStatesResponse.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor + setIamPolicyMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.cloud.iot.v1.DeviceManager/SetIamPolicy") + .setHttpMethod("POST") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/{resource=projects/*/locations/*/registries/*}:setIamPolicy", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "resource", request.getResource()); + return fields; + }) + .setAdditionalPaths( + "/v1/{resource=projects/*/locations/*/registries/*/groups/*}:setIamPolicy") + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + return fields; + }) + .setRequestBodyExtractor( + request -> + ProtoRestSerializer.create() + .toBody("*", request.toBuilder().clearResource().build())) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(Policy.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor + getIamPolicyMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.cloud.iot.v1.DeviceManager/GetIamPolicy") + .setHttpMethod("POST") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/{resource=projects/*/locations/*/registries/*}:getIamPolicy", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "resource", request.getResource()); + return fields; + }) + .setAdditionalPaths( + "/v1/{resource=projects/*/locations/*/registries/*/groups/*}:getIamPolicy") + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + return fields; + }) + .setRequestBodyExtractor( + request -> + ProtoRestSerializer.create() + .toBody("*", request.toBuilder().clearResource().build())) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(Policy.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor + testIamPermissionsMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.cloud.iot.v1.DeviceManager/TestIamPermissions") + .setHttpMethod("POST") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/{resource=projects/*/locations/*/registries/*}:testIamPermissions", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "resource", request.getResource()); + return fields; + }) + .setAdditionalPaths( + "/v1/{resource=projects/*/locations/*/registries/*/groups/*}:testIamPermissions") + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + return fields; + }) + .setRequestBodyExtractor( + request -> + ProtoRestSerializer.create() + .toBody("*", request.toBuilder().clearResource().build())) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(TestIamPermissionsResponse.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor + sendCommandToDeviceMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.cloud.iot.v1.DeviceManager/SendCommandToDevice") + .setHttpMethod("POST") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/{name=projects/*/locations/*/registries/*/devices/*}:sendCommandToDevice", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "name", request.getName()); + return fields; + }) + .setAdditionalPaths( + "/v1/{name=projects/*/locations/*/registries/*/groups/*/devices/*}:sendCommandToDevice") + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + return fields; + }) + .setRequestBodyExtractor( + request -> + ProtoRestSerializer.create() + .toBody("*", request.toBuilder().clearName().build())) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(SendCommandToDeviceResponse.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor + bindDeviceToGatewayMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.cloud.iot.v1.DeviceManager/BindDeviceToGateway") + .setHttpMethod("POST") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/{parent=projects/*/locations/*/registries/*}:bindDeviceToGateway", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "parent", request.getParent()); + return fields; + }) + .setAdditionalPaths( + "/v1/{parent=projects/*/locations/*/registries/*/groups/*}:bindDeviceToGateway") + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + return fields; + }) + .setRequestBodyExtractor( + request -> + ProtoRestSerializer.create() + .toBody("*", request.toBuilder().clearParent().build())) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(BindDeviceToGatewayResponse.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor< + UnbindDeviceFromGatewayRequest, UnbindDeviceFromGatewayResponse> + unbindDeviceFromGatewayMethodDescriptor = + ApiMethodDescriptor + .newBuilder() + .setFullMethodName("google.cloud.iot.v1.DeviceManager/UnbindDeviceFromGateway") + .setHttpMethod("POST") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/{parent=projects/*/locations/*/registries/*}:unbindDeviceFromGateway", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "parent", request.getParent()); + return fields; + }) + .setAdditionalPaths( + "/v1/{parent=projects/*/locations/*/registries/*/groups/*}:unbindDeviceFromGateway") + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + return fields; + }) + .setRequestBodyExtractor( + request -> + ProtoRestSerializer.create() + .toBody("*", request.toBuilder().clearParent().build())) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(UnbindDeviceFromGatewayResponse.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private final UnaryCallable + createDeviceRegistryCallable; + private final UnaryCallable getDeviceRegistryCallable; + private final UnaryCallable + updateDeviceRegistryCallable; + private final UnaryCallable deleteDeviceRegistryCallable; + private final UnaryCallable + listDeviceRegistriesCallable; + private final UnaryCallable + listDeviceRegistriesPagedCallable; + private final UnaryCallable createDeviceCallable; + private final UnaryCallable getDeviceCallable; + private final UnaryCallable updateDeviceCallable; + private final UnaryCallable deleteDeviceCallable; + private final UnaryCallable listDevicesCallable; + private final UnaryCallable + listDevicesPagedCallable; + private final UnaryCallable + modifyCloudToDeviceConfigCallable; + private final UnaryCallable + listDeviceConfigVersionsCallable; + private final UnaryCallable + listDeviceStatesCallable; + private final UnaryCallable setIamPolicyCallable; + private final UnaryCallable getIamPolicyCallable; + private final UnaryCallable + testIamPermissionsCallable; + private final UnaryCallable + sendCommandToDeviceCallable; + private final UnaryCallable + bindDeviceToGatewayCallable; + private final UnaryCallable + unbindDeviceFromGatewayCallable; + + private final BackgroundResource backgroundResources; + private final HttpJsonStubCallableFactory callableFactory; + + public static final HttpJsonDeviceManagerStub create(DeviceManagerStubSettings settings) + throws IOException { + return new HttpJsonDeviceManagerStub(settings, ClientContext.create(settings)); + } + + public static final HttpJsonDeviceManagerStub create(ClientContext clientContext) + throws IOException { + return new HttpJsonDeviceManagerStub( + DeviceManagerStubSettings.newHttpJsonBuilder().build(), clientContext); + } + + public static final HttpJsonDeviceManagerStub create( + ClientContext clientContext, HttpJsonStubCallableFactory callableFactory) throws IOException { + return new HttpJsonDeviceManagerStub( + DeviceManagerStubSettings.newHttpJsonBuilder().build(), clientContext, callableFactory); + } + + /** + * Constructs an instance of HttpJsonDeviceManagerStub, using the given settings. This is + * protected so that it is easy to make a subclass, but otherwise, the static factory methods + * should be preferred. + */ + protected HttpJsonDeviceManagerStub( + DeviceManagerStubSettings settings, ClientContext clientContext) throws IOException { + this(settings, clientContext, new HttpJsonDeviceManagerCallableFactory()); + } + + /** + * Constructs an instance of HttpJsonDeviceManagerStub, using the given settings. This is + * protected so that it is easy to make a subclass, but otherwise, the static factory methods + * should be preferred. + */ + protected HttpJsonDeviceManagerStub( + DeviceManagerStubSettings settings, + ClientContext clientContext, + HttpJsonStubCallableFactory callableFactory) + throws IOException { + this.callableFactory = callableFactory; + + HttpJsonCallSettings + createDeviceRegistryTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(createDeviceRegistryMethodDescriptor) + .setTypeRegistry(typeRegistry) + .build(); + HttpJsonCallSettings + getDeviceRegistryTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(getDeviceRegistryMethodDescriptor) + .setTypeRegistry(typeRegistry) + .build(); + HttpJsonCallSettings + updateDeviceRegistryTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(updateDeviceRegistryMethodDescriptor) + .setTypeRegistry(typeRegistry) + .build(); + HttpJsonCallSettings deleteDeviceRegistryTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(deleteDeviceRegistryMethodDescriptor) + .setTypeRegistry(typeRegistry) + .build(); + HttpJsonCallSettings + listDeviceRegistriesTransportSettings = + HttpJsonCallSettings + .newBuilder() + .setMethodDescriptor(listDeviceRegistriesMethodDescriptor) + .setTypeRegistry(typeRegistry) + .build(); + HttpJsonCallSettings createDeviceTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(createDeviceMethodDescriptor) + .setTypeRegistry(typeRegistry) + .build(); + HttpJsonCallSettings getDeviceTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(getDeviceMethodDescriptor) + .setTypeRegistry(typeRegistry) + .build(); + HttpJsonCallSettings updateDeviceTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(updateDeviceMethodDescriptor) + .setTypeRegistry(typeRegistry) + .build(); + HttpJsonCallSettings deleteDeviceTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(deleteDeviceMethodDescriptor) + .setTypeRegistry(typeRegistry) + .build(); + HttpJsonCallSettings listDevicesTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(listDevicesMethodDescriptor) + .setTypeRegistry(typeRegistry) + .build(); + HttpJsonCallSettings + modifyCloudToDeviceConfigTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(modifyCloudToDeviceConfigMethodDescriptor) + .setTypeRegistry(typeRegistry) + .build(); + HttpJsonCallSettings + listDeviceConfigVersionsTransportSettings = + HttpJsonCallSettings + .newBuilder() + .setMethodDescriptor(listDeviceConfigVersionsMethodDescriptor) + .setTypeRegistry(typeRegistry) + .build(); + HttpJsonCallSettings + listDeviceStatesTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(listDeviceStatesMethodDescriptor) + .setTypeRegistry(typeRegistry) + .build(); + HttpJsonCallSettings setIamPolicyTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(setIamPolicyMethodDescriptor) + .setTypeRegistry(typeRegistry) + .build(); + HttpJsonCallSettings getIamPolicyTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(getIamPolicyMethodDescriptor) + .setTypeRegistry(typeRegistry) + .build(); + HttpJsonCallSettings + testIamPermissionsTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(testIamPermissionsMethodDescriptor) + .setTypeRegistry(typeRegistry) + .build(); + HttpJsonCallSettings + sendCommandToDeviceTransportSettings = + HttpJsonCallSettings + .newBuilder() + .setMethodDescriptor(sendCommandToDeviceMethodDescriptor) + .setTypeRegistry(typeRegistry) + .build(); + HttpJsonCallSettings + bindDeviceToGatewayTransportSettings = + HttpJsonCallSettings + .newBuilder() + .setMethodDescriptor(bindDeviceToGatewayMethodDescriptor) + .setTypeRegistry(typeRegistry) + .build(); + HttpJsonCallSettings + unbindDeviceFromGatewayTransportSettings = + HttpJsonCallSettings + .newBuilder() + .setMethodDescriptor(unbindDeviceFromGatewayMethodDescriptor) + .setTypeRegistry(typeRegistry) + .build(); + + this.createDeviceRegistryCallable = + callableFactory.createUnaryCallable( + createDeviceRegistryTransportSettings, + settings.createDeviceRegistrySettings(), + clientContext); + this.getDeviceRegistryCallable = + callableFactory.createUnaryCallable( + getDeviceRegistryTransportSettings, + settings.getDeviceRegistrySettings(), + clientContext); + this.updateDeviceRegistryCallable = + callableFactory.createUnaryCallable( + updateDeviceRegistryTransportSettings, + settings.updateDeviceRegistrySettings(), + clientContext); + this.deleteDeviceRegistryCallable = + callableFactory.createUnaryCallable( + deleteDeviceRegistryTransportSettings, + settings.deleteDeviceRegistrySettings(), + clientContext); + this.listDeviceRegistriesCallable = + callableFactory.createUnaryCallable( + listDeviceRegistriesTransportSettings, + settings.listDeviceRegistriesSettings(), + clientContext); + this.listDeviceRegistriesPagedCallable = + callableFactory.createPagedCallable( + listDeviceRegistriesTransportSettings, + settings.listDeviceRegistriesSettings(), + clientContext); + this.createDeviceCallable = + callableFactory.createUnaryCallable( + createDeviceTransportSettings, settings.createDeviceSettings(), clientContext); + this.getDeviceCallable = + callableFactory.createUnaryCallable( + getDeviceTransportSettings, settings.getDeviceSettings(), clientContext); + this.updateDeviceCallable = + callableFactory.createUnaryCallable( + updateDeviceTransportSettings, settings.updateDeviceSettings(), clientContext); + this.deleteDeviceCallable = + callableFactory.createUnaryCallable( + deleteDeviceTransportSettings, settings.deleteDeviceSettings(), clientContext); + this.listDevicesCallable = + callableFactory.createUnaryCallable( + listDevicesTransportSettings, settings.listDevicesSettings(), clientContext); + this.listDevicesPagedCallable = + callableFactory.createPagedCallable( + listDevicesTransportSettings, settings.listDevicesSettings(), clientContext); + this.modifyCloudToDeviceConfigCallable = + callableFactory.createUnaryCallable( + modifyCloudToDeviceConfigTransportSettings, + settings.modifyCloudToDeviceConfigSettings(), + clientContext); + this.listDeviceConfigVersionsCallable = + callableFactory.createUnaryCallable( + listDeviceConfigVersionsTransportSettings, + settings.listDeviceConfigVersionsSettings(), + clientContext); + this.listDeviceStatesCallable = + callableFactory.createUnaryCallable( + listDeviceStatesTransportSettings, settings.listDeviceStatesSettings(), clientContext); + this.setIamPolicyCallable = + callableFactory.createUnaryCallable( + setIamPolicyTransportSettings, settings.setIamPolicySettings(), clientContext); + this.getIamPolicyCallable = + callableFactory.createUnaryCallable( + getIamPolicyTransportSettings, settings.getIamPolicySettings(), clientContext); + this.testIamPermissionsCallable = + callableFactory.createUnaryCallable( + testIamPermissionsTransportSettings, + settings.testIamPermissionsSettings(), + clientContext); + this.sendCommandToDeviceCallable = + callableFactory.createUnaryCallable( + sendCommandToDeviceTransportSettings, + settings.sendCommandToDeviceSettings(), + clientContext); + this.bindDeviceToGatewayCallable = + callableFactory.createUnaryCallable( + bindDeviceToGatewayTransportSettings, + settings.bindDeviceToGatewaySettings(), + clientContext); + this.unbindDeviceFromGatewayCallable = + callableFactory.createUnaryCallable( + unbindDeviceFromGatewayTransportSettings, + settings.unbindDeviceFromGatewaySettings(), + clientContext); + + this.backgroundResources = + new BackgroundResourceAggregation(clientContext.getBackgroundResources()); + } + + @InternalApi + public static List getMethodDescriptors() { + List methodDescriptors = new ArrayList<>(); + methodDescriptors.add(createDeviceRegistryMethodDescriptor); + methodDescriptors.add(getDeviceRegistryMethodDescriptor); + methodDescriptors.add(updateDeviceRegistryMethodDescriptor); + methodDescriptors.add(deleteDeviceRegistryMethodDescriptor); + methodDescriptors.add(listDeviceRegistriesMethodDescriptor); + methodDescriptors.add(createDeviceMethodDescriptor); + methodDescriptors.add(getDeviceMethodDescriptor); + methodDescriptors.add(updateDeviceMethodDescriptor); + methodDescriptors.add(deleteDeviceMethodDescriptor); + methodDescriptors.add(listDevicesMethodDescriptor); + methodDescriptors.add(modifyCloudToDeviceConfigMethodDescriptor); + methodDescriptors.add(listDeviceConfigVersionsMethodDescriptor); + methodDescriptors.add(listDeviceStatesMethodDescriptor); + methodDescriptors.add(setIamPolicyMethodDescriptor); + methodDescriptors.add(getIamPolicyMethodDescriptor); + methodDescriptors.add(testIamPermissionsMethodDescriptor); + methodDescriptors.add(sendCommandToDeviceMethodDescriptor); + methodDescriptors.add(bindDeviceToGatewayMethodDescriptor); + methodDescriptors.add(unbindDeviceFromGatewayMethodDescriptor); + return methodDescriptors; + } + + @Override + public UnaryCallable createDeviceRegistryCallable() { + return createDeviceRegistryCallable; + } + + @Override + public UnaryCallable getDeviceRegistryCallable() { + return getDeviceRegistryCallable; + } + + @Override + public UnaryCallable updateDeviceRegistryCallable() { + return updateDeviceRegistryCallable; + } + + @Override + public UnaryCallable deleteDeviceRegistryCallable() { + return deleteDeviceRegistryCallable; + } + + @Override + public UnaryCallable + listDeviceRegistriesCallable() { + return listDeviceRegistriesCallable; + } + + @Override + public UnaryCallable + listDeviceRegistriesPagedCallable() { + return listDeviceRegistriesPagedCallable; + } + + @Override + public UnaryCallable createDeviceCallable() { + return createDeviceCallable; + } + + @Override + public UnaryCallable getDeviceCallable() { + return getDeviceCallable; + } + + @Override + public UnaryCallable updateDeviceCallable() { + return updateDeviceCallable; + } + + @Override + public UnaryCallable deleteDeviceCallable() { + return deleteDeviceCallable; + } + + @Override + public UnaryCallable listDevicesCallable() { + return listDevicesCallable; + } + + @Override + public UnaryCallable listDevicesPagedCallable() { + return listDevicesPagedCallable; + } + + @Override + public UnaryCallable + modifyCloudToDeviceConfigCallable() { + return modifyCloudToDeviceConfigCallable; + } + + @Override + public UnaryCallable + listDeviceConfigVersionsCallable() { + return listDeviceConfigVersionsCallable; + } + + @Override + public UnaryCallable + listDeviceStatesCallable() { + return listDeviceStatesCallable; + } + + @Override + public UnaryCallable setIamPolicyCallable() { + return setIamPolicyCallable; + } + + @Override + public UnaryCallable getIamPolicyCallable() { + return getIamPolicyCallable; + } + + @Override + public UnaryCallable + testIamPermissionsCallable() { + return testIamPermissionsCallable; + } + + @Override + public UnaryCallable + sendCommandToDeviceCallable() { + return sendCommandToDeviceCallable; + } + + @Override + public UnaryCallable + bindDeviceToGatewayCallable() { + return bindDeviceToGatewayCallable; + } + + @Override + public UnaryCallable + unbindDeviceFromGatewayCallable() { + return unbindDeviceFromGatewayCallable; + } + + @Override + public final void close() { + try { + backgroundResources.close(); + } catch (RuntimeException e) { + throw e; + } catch (Exception e) { + throw new IllegalStateException("Failed to close resource", e); + } + } + + @Override + public void shutdown() { + backgroundResources.shutdown(); + } + + @Override + public boolean isShutdown() { + return backgroundResources.isShutdown(); + } + + @Override + public boolean isTerminated() { + return backgroundResources.isTerminated(); + } + + @Override + public void shutdownNow() { + backgroundResources.shutdownNow(); + } + + @Override + public boolean awaitTermination(long duration, TimeUnit unit) throws InterruptedException { + return backgroundResources.awaitTermination(duration, unit); + } +} diff --git a/owl-bot-staging/v1/google-cloud-iot/src/test/java/com/google/cloud/iot/v1/DeviceManagerClientHttpJsonTest.java b/owl-bot-staging/v1/google-cloud-iot/src/test/java/com/google/cloud/iot/v1/DeviceManagerClientHttpJsonTest.java new file mode 100644 index 00000000..5878f0fb --- /dev/null +++ b/owl-bot-staging/v1/google-cloud-iot/src/test/java/com/google/cloud/iot/v1/DeviceManagerClientHttpJsonTest.java @@ -0,0 +1,2008 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.iot.v1; + +import static com.google.cloud.iot.v1.DeviceManagerClient.ListDeviceRegistriesPagedResponse; +import static com.google.cloud.iot.v1.DeviceManagerClient.ListDevicesPagedResponse; + +import com.google.api.gax.core.NoCredentialsProvider; +import com.google.api.gax.httpjson.GaxHttpJsonProperties; +import com.google.api.gax.httpjson.testing.MockHttpService; +import com.google.api.gax.rpc.ApiClientHeaderProvider; +import com.google.api.gax.rpc.ApiException; +import com.google.api.gax.rpc.ApiExceptionFactory; +import com.google.api.gax.rpc.InvalidArgumentException; +import com.google.api.gax.rpc.StatusCode; +import com.google.api.gax.rpc.testing.FakeStatusCode; +import com.google.api.resourcenames.ResourceName; +import com.google.cloud.iot.v1.stub.HttpJsonDeviceManagerStub; +import com.google.common.collect.Lists; +import com.google.iam.v1.AuditConfig; +import com.google.iam.v1.Binding; +import com.google.iam.v1.Policy; +import com.google.iam.v1.TestIamPermissionsResponse; +import com.google.protobuf.ByteString; +import com.google.protobuf.Empty; +import com.google.protobuf.FieldMask; +import com.google.protobuf.Timestamp; +import com.google.rpc.Status; +import java.io.IOException; +import java.util.ArrayList; +import java.util.Arrays; +import java.util.HashMap; +import java.util.List; +import javax.annotation.Generated; +import org.junit.After; +import org.junit.AfterClass; +import org.junit.Assert; +import org.junit.Before; +import org.junit.BeforeClass; +import org.junit.Test; + +@Generated("by gapic-generator-java") +public class DeviceManagerClientHttpJsonTest { + private static MockHttpService mockService; + private static DeviceManagerClient client; + + @BeforeClass + public static void startStaticServer() throws IOException { + mockService = + new MockHttpService( + HttpJsonDeviceManagerStub.getMethodDescriptors(), + DeviceManagerSettings.getDefaultEndpoint()); + DeviceManagerSettings settings = + DeviceManagerSettings.newHttpJsonBuilder() + .setTransportChannelProvider( + DeviceManagerSettings.defaultHttpJsonTransportProviderBuilder() + .setHttpTransport(mockService) + .build()) + .setCredentialsProvider(NoCredentialsProvider.create()) + .build(); + client = DeviceManagerClient.create(settings); + } + + @AfterClass + public static void stopServer() { + client.close(); + } + + @Before + public void setUp() {} + + @After + public void tearDown() throws Exception { + mockService.reset(); + } + + @Test + public void createDeviceRegistryTest() throws Exception { + DeviceRegistry expectedResponse = + DeviceRegistry.newBuilder() + .setId("id3355") + .setName(RegistryName.of("[PROJECT]", "[LOCATION]", "[REGISTRY]").toString()) + .addAllEventNotificationConfigs(new ArrayList()) + .setStateNotificationConfig(StateNotificationConfig.newBuilder().build()) + .setMqttConfig(MqttConfig.newBuilder().build()) + .setHttpConfig(HttpConfig.newBuilder().build()) + .setLogLevel(LogLevel.forNumber(0)) + .addAllCredentials(new ArrayList()) + .build(); + mockService.addResponse(expectedResponse); + + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + DeviceRegistry deviceRegistry = DeviceRegistry.newBuilder().build(); + + DeviceRegistry actualResponse = client.createDeviceRegistry(parent, deviceRegistry); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void createDeviceRegistryExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + DeviceRegistry deviceRegistry = DeviceRegistry.newBuilder().build(); + client.createDeviceRegistry(parent, deviceRegistry); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void createDeviceRegistryTest2() throws Exception { + DeviceRegistry expectedResponse = + DeviceRegistry.newBuilder() + .setId("id3355") + .setName(RegistryName.of("[PROJECT]", "[LOCATION]", "[REGISTRY]").toString()) + .addAllEventNotificationConfigs(new ArrayList()) + .setStateNotificationConfig(StateNotificationConfig.newBuilder().build()) + .setMqttConfig(MqttConfig.newBuilder().build()) + .setHttpConfig(HttpConfig.newBuilder().build()) + .setLogLevel(LogLevel.forNumber(0)) + .addAllCredentials(new ArrayList()) + .build(); + mockService.addResponse(expectedResponse); + + String parent = "projects/project-5833/locations/location-5833"; + DeviceRegistry deviceRegistry = DeviceRegistry.newBuilder().build(); + + DeviceRegistry actualResponse = client.createDeviceRegistry(parent, deviceRegistry); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void createDeviceRegistryExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String parent = "projects/project-5833/locations/location-5833"; + DeviceRegistry deviceRegistry = DeviceRegistry.newBuilder().build(); + client.createDeviceRegistry(parent, deviceRegistry); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getDeviceRegistryTest() throws Exception { + DeviceRegistry expectedResponse = + DeviceRegistry.newBuilder() + .setId("id3355") + .setName(RegistryName.of("[PROJECT]", "[LOCATION]", "[REGISTRY]").toString()) + .addAllEventNotificationConfigs(new ArrayList()) + .setStateNotificationConfig(StateNotificationConfig.newBuilder().build()) + .setMqttConfig(MqttConfig.newBuilder().build()) + .setHttpConfig(HttpConfig.newBuilder().build()) + .setLogLevel(LogLevel.forNumber(0)) + .addAllCredentials(new ArrayList()) + .build(); + mockService.addResponse(expectedResponse); + + RegistryName name = RegistryName.of("[PROJECT]", "[LOCATION]", "[REGISTRY]"); + + DeviceRegistry actualResponse = client.getDeviceRegistry(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void getDeviceRegistryExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + RegistryName name = RegistryName.of("[PROJECT]", "[LOCATION]", "[REGISTRY]"); + client.getDeviceRegistry(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getDeviceRegistryTest2() throws Exception { + DeviceRegistry expectedResponse = + DeviceRegistry.newBuilder() + .setId("id3355") + .setName(RegistryName.of("[PROJECT]", "[LOCATION]", "[REGISTRY]").toString()) + .addAllEventNotificationConfigs(new ArrayList()) + .setStateNotificationConfig(StateNotificationConfig.newBuilder().build()) + .setMqttConfig(MqttConfig.newBuilder().build()) + .setHttpConfig(HttpConfig.newBuilder().build()) + .setLogLevel(LogLevel.forNumber(0)) + .addAllCredentials(new ArrayList()) + .build(); + mockService.addResponse(expectedResponse); + + String name = "projects/project-5653/locations/location-5653/registries/registrie-5653"; + + DeviceRegistry actualResponse = client.getDeviceRegistry(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void getDeviceRegistryExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String name = "projects/project-5653/locations/location-5653/registries/registrie-5653"; + client.getDeviceRegistry(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void updateDeviceRegistryTest() throws Exception { + DeviceRegistry expectedResponse = + DeviceRegistry.newBuilder() + .setId("id3355") + .setName(RegistryName.of("[PROJECT]", "[LOCATION]", "[REGISTRY]").toString()) + .addAllEventNotificationConfigs(new ArrayList()) + .setStateNotificationConfig(StateNotificationConfig.newBuilder().build()) + .setMqttConfig(MqttConfig.newBuilder().build()) + .setHttpConfig(HttpConfig.newBuilder().build()) + .setLogLevel(LogLevel.forNumber(0)) + .addAllCredentials(new ArrayList()) + .build(); + mockService.addResponse(expectedResponse); + + DeviceRegistry deviceRegistry = + DeviceRegistry.newBuilder() + .setId("id3355") + .setName(RegistryName.of("[PROJECT]", "[LOCATION]", "[REGISTRY]").toString()) + .addAllEventNotificationConfigs(new ArrayList()) + .setStateNotificationConfig(StateNotificationConfig.newBuilder().build()) + .setMqttConfig(MqttConfig.newBuilder().build()) + .setHttpConfig(HttpConfig.newBuilder().build()) + .setLogLevel(LogLevel.forNumber(0)) + .addAllCredentials(new ArrayList()) + .build(); + FieldMask updateMask = FieldMask.newBuilder().build(); + + DeviceRegistry actualResponse = client.updateDeviceRegistry(deviceRegistry, updateMask); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void updateDeviceRegistryExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + DeviceRegistry deviceRegistry = + DeviceRegistry.newBuilder() + .setId("id3355") + .setName(RegistryName.of("[PROJECT]", "[LOCATION]", "[REGISTRY]").toString()) + .addAllEventNotificationConfigs(new ArrayList()) + .setStateNotificationConfig(StateNotificationConfig.newBuilder().build()) + .setMqttConfig(MqttConfig.newBuilder().build()) + .setHttpConfig(HttpConfig.newBuilder().build()) + .setLogLevel(LogLevel.forNumber(0)) + .addAllCredentials(new ArrayList()) + .build(); + FieldMask updateMask = FieldMask.newBuilder().build(); + client.updateDeviceRegistry(deviceRegistry, updateMask); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void deleteDeviceRegistryTest() throws Exception { + Empty expectedResponse = Empty.newBuilder().build(); + mockService.addResponse(expectedResponse); + + RegistryName name = RegistryName.of("[PROJECT]", "[LOCATION]", "[REGISTRY]"); + + client.deleteDeviceRegistry(name); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void deleteDeviceRegistryExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + RegistryName name = RegistryName.of("[PROJECT]", "[LOCATION]", "[REGISTRY]"); + client.deleteDeviceRegistry(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void deleteDeviceRegistryTest2() throws Exception { + Empty expectedResponse = Empty.newBuilder().build(); + mockService.addResponse(expectedResponse); + + String name = "projects/project-5653/locations/location-5653/registries/registrie-5653"; + + client.deleteDeviceRegistry(name); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void deleteDeviceRegistryExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String name = "projects/project-5653/locations/location-5653/registries/registrie-5653"; + client.deleteDeviceRegistry(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listDeviceRegistriesTest() throws Exception { + DeviceRegistry responsesElement = DeviceRegistry.newBuilder().build(); + ListDeviceRegistriesResponse expectedResponse = + ListDeviceRegistriesResponse.newBuilder() + .setNextPageToken("") + .addAllDeviceRegistries(Arrays.asList(responsesElement)) + .build(); + mockService.addResponse(expectedResponse); + + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + + ListDeviceRegistriesPagedResponse pagedListResponse = client.listDeviceRegistries(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getDeviceRegistriesList().get(0), resources.get(0)); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void listDeviceRegistriesExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + client.listDeviceRegistries(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listDeviceRegistriesTest2() throws Exception { + DeviceRegistry responsesElement = DeviceRegistry.newBuilder().build(); + ListDeviceRegistriesResponse expectedResponse = + ListDeviceRegistriesResponse.newBuilder() + .setNextPageToken("") + .addAllDeviceRegistries(Arrays.asList(responsesElement)) + .build(); + mockService.addResponse(expectedResponse); + + String parent = "projects/project-5833/locations/location-5833"; + + ListDeviceRegistriesPagedResponse pagedListResponse = client.listDeviceRegistries(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getDeviceRegistriesList().get(0), resources.get(0)); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void listDeviceRegistriesExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String parent = "projects/project-5833/locations/location-5833"; + client.listDeviceRegistries(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void createDeviceTest() throws Exception { + Device expectedResponse = + Device.newBuilder() + .setId("id3355") + .setName(DeviceName.of("[PROJECT]", "[LOCATION]", "[REGISTRY]", "[DEVICE]").toString()) + .setNumId(-1034366860) + .addAllCredentials(new ArrayList()) + .setLastHeartbeatTime(Timestamp.newBuilder().build()) + .setLastEventTime(Timestamp.newBuilder().build()) + .setLastStateTime(Timestamp.newBuilder().build()) + .setLastConfigAckTime(Timestamp.newBuilder().build()) + .setLastConfigSendTime(Timestamp.newBuilder().build()) + .setBlocked(true) + .setLastErrorTime(Timestamp.newBuilder().build()) + .setLastErrorStatus(Status.newBuilder().build()) + .setConfig(DeviceConfig.newBuilder().build()) + .setState(DeviceState.newBuilder().build()) + .setLogLevel(LogLevel.forNumber(0)) + .putAllMetadata(new HashMap()) + .setGatewayConfig(GatewayConfig.newBuilder().build()) + .build(); + mockService.addResponse(expectedResponse); + + RegistryName parent = RegistryName.of("[PROJECT]", "[LOCATION]", "[REGISTRY]"); + Device device = Device.newBuilder().build(); + + Device actualResponse = client.createDevice(parent, device); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void createDeviceExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + RegistryName parent = RegistryName.of("[PROJECT]", "[LOCATION]", "[REGISTRY]"); + Device device = Device.newBuilder().build(); + client.createDevice(parent, device); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void createDeviceTest2() throws Exception { + Device expectedResponse = + Device.newBuilder() + .setId("id3355") + .setName(DeviceName.of("[PROJECT]", "[LOCATION]", "[REGISTRY]", "[DEVICE]").toString()) + .setNumId(-1034366860) + .addAllCredentials(new ArrayList()) + .setLastHeartbeatTime(Timestamp.newBuilder().build()) + .setLastEventTime(Timestamp.newBuilder().build()) + .setLastStateTime(Timestamp.newBuilder().build()) + .setLastConfigAckTime(Timestamp.newBuilder().build()) + .setLastConfigSendTime(Timestamp.newBuilder().build()) + .setBlocked(true) + .setLastErrorTime(Timestamp.newBuilder().build()) + .setLastErrorStatus(Status.newBuilder().build()) + .setConfig(DeviceConfig.newBuilder().build()) + .setState(DeviceState.newBuilder().build()) + .setLogLevel(LogLevel.forNumber(0)) + .putAllMetadata(new HashMap()) + .setGatewayConfig(GatewayConfig.newBuilder().build()) + .build(); + mockService.addResponse(expectedResponse); + + String parent = "projects/project-6316/locations/location-6316/registries/registrie-6316"; + Device device = Device.newBuilder().build(); + + Device actualResponse = client.createDevice(parent, device); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void createDeviceExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String parent = "projects/project-6316/locations/location-6316/registries/registrie-6316"; + Device device = Device.newBuilder().build(); + client.createDevice(parent, device); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getDeviceTest() throws Exception { + Device expectedResponse = + Device.newBuilder() + .setId("id3355") + .setName(DeviceName.of("[PROJECT]", "[LOCATION]", "[REGISTRY]", "[DEVICE]").toString()) + .setNumId(-1034366860) + .addAllCredentials(new ArrayList()) + .setLastHeartbeatTime(Timestamp.newBuilder().build()) + .setLastEventTime(Timestamp.newBuilder().build()) + .setLastStateTime(Timestamp.newBuilder().build()) + .setLastConfigAckTime(Timestamp.newBuilder().build()) + .setLastConfigSendTime(Timestamp.newBuilder().build()) + .setBlocked(true) + .setLastErrorTime(Timestamp.newBuilder().build()) + .setLastErrorStatus(Status.newBuilder().build()) + .setConfig(DeviceConfig.newBuilder().build()) + .setState(DeviceState.newBuilder().build()) + .setLogLevel(LogLevel.forNumber(0)) + .putAllMetadata(new HashMap()) + .setGatewayConfig(GatewayConfig.newBuilder().build()) + .build(); + mockService.addResponse(expectedResponse); + + DeviceName name = DeviceName.of("[PROJECT]", "[LOCATION]", "[REGISTRY]", "[DEVICE]"); + + Device actualResponse = client.getDevice(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void getDeviceExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + DeviceName name = DeviceName.of("[PROJECT]", "[LOCATION]", "[REGISTRY]", "[DEVICE]"); + client.getDevice(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getDeviceTest2() throws Exception { + Device expectedResponse = + Device.newBuilder() + .setId("id3355") + .setName(DeviceName.of("[PROJECT]", "[LOCATION]", "[REGISTRY]", "[DEVICE]").toString()) + .setNumId(-1034366860) + .addAllCredentials(new ArrayList()) + .setLastHeartbeatTime(Timestamp.newBuilder().build()) + .setLastEventTime(Timestamp.newBuilder().build()) + .setLastStateTime(Timestamp.newBuilder().build()) + .setLastConfigAckTime(Timestamp.newBuilder().build()) + .setLastConfigSendTime(Timestamp.newBuilder().build()) + .setBlocked(true) + .setLastErrorTime(Timestamp.newBuilder().build()) + .setLastErrorStatus(Status.newBuilder().build()) + .setConfig(DeviceConfig.newBuilder().build()) + .setState(DeviceState.newBuilder().build()) + .setLogLevel(LogLevel.forNumber(0)) + .putAllMetadata(new HashMap()) + .setGatewayConfig(GatewayConfig.newBuilder().build()) + .build(); + mockService.addResponse(expectedResponse); + + String name = + "projects/project-6436/locations/location-6436/registries/registrie-6436/devices/device-6436"; + + Device actualResponse = client.getDevice(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void getDeviceExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String name = + "projects/project-6436/locations/location-6436/registries/registrie-6436/devices/device-6436"; + client.getDevice(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void updateDeviceTest() throws Exception { + Device expectedResponse = + Device.newBuilder() + .setId("id3355") + .setName(DeviceName.of("[PROJECT]", "[LOCATION]", "[REGISTRY]", "[DEVICE]").toString()) + .setNumId(-1034366860) + .addAllCredentials(new ArrayList()) + .setLastHeartbeatTime(Timestamp.newBuilder().build()) + .setLastEventTime(Timestamp.newBuilder().build()) + .setLastStateTime(Timestamp.newBuilder().build()) + .setLastConfigAckTime(Timestamp.newBuilder().build()) + .setLastConfigSendTime(Timestamp.newBuilder().build()) + .setBlocked(true) + .setLastErrorTime(Timestamp.newBuilder().build()) + .setLastErrorStatus(Status.newBuilder().build()) + .setConfig(DeviceConfig.newBuilder().build()) + .setState(DeviceState.newBuilder().build()) + .setLogLevel(LogLevel.forNumber(0)) + .putAllMetadata(new HashMap()) + .setGatewayConfig(GatewayConfig.newBuilder().build()) + .build(); + mockService.addResponse(expectedResponse); + + Device device = + Device.newBuilder() + .setId("id3355") + .setName(DeviceName.of("[PROJECT]", "[LOCATION]", "[REGISTRY]", "[DEVICE]").toString()) + .setNumId(-1034366860) + .addAllCredentials(new ArrayList()) + .setLastHeartbeatTime(Timestamp.newBuilder().build()) + .setLastEventTime(Timestamp.newBuilder().build()) + .setLastStateTime(Timestamp.newBuilder().build()) + .setLastConfigAckTime(Timestamp.newBuilder().build()) + .setLastConfigSendTime(Timestamp.newBuilder().build()) + .setBlocked(true) + .setLastErrorTime(Timestamp.newBuilder().build()) + .setLastErrorStatus(Status.newBuilder().build()) + .setConfig(DeviceConfig.newBuilder().build()) + .setState(DeviceState.newBuilder().build()) + .setLogLevel(LogLevel.forNumber(0)) + .putAllMetadata(new HashMap()) + .setGatewayConfig(GatewayConfig.newBuilder().build()) + .build(); + FieldMask updateMask = FieldMask.newBuilder().build(); + + Device actualResponse = client.updateDevice(device, updateMask); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void updateDeviceExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + Device device = + Device.newBuilder() + .setId("id3355") + .setName( + DeviceName.of("[PROJECT]", "[LOCATION]", "[REGISTRY]", "[DEVICE]").toString()) + .setNumId(-1034366860) + .addAllCredentials(new ArrayList()) + .setLastHeartbeatTime(Timestamp.newBuilder().build()) + .setLastEventTime(Timestamp.newBuilder().build()) + .setLastStateTime(Timestamp.newBuilder().build()) + .setLastConfigAckTime(Timestamp.newBuilder().build()) + .setLastConfigSendTime(Timestamp.newBuilder().build()) + .setBlocked(true) + .setLastErrorTime(Timestamp.newBuilder().build()) + .setLastErrorStatus(Status.newBuilder().build()) + .setConfig(DeviceConfig.newBuilder().build()) + .setState(DeviceState.newBuilder().build()) + .setLogLevel(LogLevel.forNumber(0)) + .putAllMetadata(new HashMap()) + .setGatewayConfig(GatewayConfig.newBuilder().build()) + .build(); + FieldMask updateMask = FieldMask.newBuilder().build(); + client.updateDevice(device, updateMask); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void deleteDeviceTest() throws Exception { + Empty expectedResponse = Empty.newBuilder().build(); + mockService.addResponse(expectedResponse); + + DeviceName name = DeviceName.of("[PROJECT]", "[LOCATION]", "[REGISTRY]", "[DEVICE]"); + + client.deleteDevice(name); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void deleteDeviceExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + DeviceName name = DeviceName.of("[PROJECT]", "[LOCATION]", "[REGISTRY]", "[DEVICE]"); + client.deleteDevice(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void deleteDeviceTest2() throws Exception { + Empty expectedResponse = Empty.newBuilder().build(); + mockService.addResponse(expectedResponse); + + String name = + "projects/project-6436/locations/location-6436/registries/registrie-6436/devices/device-6436"; + + client.deleteDevice(name); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void deleteDeviceExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String name = + "projects/project-6436/locations/location-6436/registries/registrie-6436/devices/device-6436"; + client.deleteDevice(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listDevicesTest() throws Exception { + Device responsesElement = Device.newBuilder().build(); + ListDevicesResponse expectedResponse = + ListDevicesResponse.newBuilder() + .setNextPageToken("") + .addAllDevices(Arrays.asList(responsesElement)) + .build(); + mockService.addResponse(expectedResponse); + + RegistryName parent = RegistryName.of("[PROJECT]", "[LOCATION]", "[REGISTRY]"); + + ListDevicesPagedResponse pagedListResponse = client.listDevices(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getDevicesList().get(0), resources.get(0)); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void listDevicesExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + RegistryName parent = RegistryName.of("[PROJECT]", "[LOCATION]", "[REGISTRY]"); + client.listDevices(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listDevicesTest2() throws Exception { + Device responsesElement = Device.newBuilder().build(); + ListDevicesResponse expectedResponse = + ListDevicesResponse.newBuilder() + .setNextPageToken("") + .addAllDevices(Arrays.asList(responsesElement)) + .build(); + mockService.addResponse(expectedResponse); + + String parent = "projects/project-6316/locations/location-6316/registries/registrie-6316"; + + ListDevicesPagedResponse pagedListResponse = client.listDevices(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getDevicesList().get(0), resources.get(0)); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void listDevicesExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String parent = "projects/project-6316/locations/location-6316/registries/registrie-6316"; + client.listDevices(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void modifyCloudToDeviceConfigTest() throws Exception { + DeviceConfig expectedResponse = + DeviceConfig.newBuilder() + .setVersion(351608024) + .setCloudUpdateTime(Timestamp.newBuilder().build()) + .setDeviceAckTime(Timestamp.newBuilder().build()) + .setBinaryData(ByteString.EMPTY) + .build(); + mockService.addResponse(expectedResponse); + + DeviceName name = DeviceName.of("[PROJECT]", "[LOCATION]", "[REGISTRY]", "[DEVICE]"); + ByteString binaryData = ByteString.EMPTY; + + DeviceConfig actualResponse = client.modifyCloudToDeviceConfig(name, binaryData); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void modifyCloudToDeviceConfigExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + DeviceName name = DeviceName.of("[PROJECT]", "[LOCATION]", "[REGISTRY]", "[DEVICE]"); + ByteString binaryData = ByteString.EMPTY; + client.modifyCloudToDeviceConfig(name, binaryData); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void modifyCloudToDeviceConfigTest2() throws Exception { + DeviceConfig expectedResponse = + DeviceConfig.newBuilder() + .setVersion(351608024) + .setCloudUpdateTime(Timestamp.newBuilder().build()) + .setDeviceAckTime(Timestamp.newBuilder().build()) + .setBinaryData(ByteString.EMPTY) + .build(); + mockService.addResponse(expectedResponse); + + String name = + "projects/project-6436/locations/location-6436/registries/registrie-6436/devices/device-6436"; + ByteString binaryData = ByteString.EMPTY; + + DeviceConfig actualResponse = client.modifyCloudToDeviceConfig(name, binaryData); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void modifyCloudToDeviceConfigExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String name = + "projects/project-6436/locations/location-6436/registries/registrie-6436/devices/device-6436"; + ByteString binaryData = ByteString.EMPTY; + client.modifyCloudToDeviceConfig(name, binaryData); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listDeviceConfigVersionsTest() throws Exception { + ListDeviceConfigVersionsResponse expectedResponse = + ListDeviceConfigVersionsResponse.newBuilder() + .addAllDeviceConfigs(new ArrayList()) + .build(); + mockService.addResponse(expectedResponse); + + DeviceName name = DeviceName.of("[PROJECT]", "[LOCATION]", "[REGISTRY]", "[DEVICE]"); + + ListDeviceConfigVersionsResponse actualResponse = client.listDeviceConfigVersions(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void listDeviceConfigVersionsExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + DeviceName name = DeviceName.of("[PROJECT]", "[LOCATION]", "[REGISTRY]", "[DEVICE]"); + client.listDeviceConfigVersions(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listDeviceConfigVersionsTest2() throws Exception { + ListDeviceConfigVersionsResponse expectedResponse = + ListDeviceConfigVersionsResponse.newBuilder() + .addAllDeviceConfigs(new ArrayList()) + .build(); + mockService.addResponse(expectedResponse); + + String name = + "projects/project-6436/locations/location-6436/registries/registrie-6436/devices/device-6436"; + + ListDeviceConfigVersionsResponse actualResponse = client.listDeviceConfigVersions(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void listDeviceConfigVersionsExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String name = + "projects/project-6436/locations/location-6436/registries/registrie-6436/devices/device-6436"; + client.listDeviceConfigVersions(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listDeviceStatesTest() throws Exception { + ListDeviceStatesResponse expectedResponse = + ListDeviceStatesResponse.newBuilder() + .addAllDeviceStates(new ArrayList()) + .build(); + mockService.addResponse(expectedResponse); + + DeviceName name = DeviceName.of("[PROJECT]", "[LOCATION]", "[REGISTRY]", "[DEVICE]"); + + ListDeviceStatesResponse actualResponse = client.listDeviceStates(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void listDeviceStatesExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + DeviceName name = DeviceName.of("[PROJECT]", "[LOCATION]", "[REGISTRY]", "[DEVICE]"); + client.listDeviceStates(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listDeviceStatesTest2() throws Exception { + ListDeviceStatesResponse expectedResponse = + ListDeviceStatesResponse.newBuilder() + .addAllDeviceStates(new ArrayList()) + .build(); + mockService.addResponse(expectedResponse); + + String name = + "projects/project-6436/locations/location-6436/registries/registrie-6436/devices/device-6436"; + + ListDeviceStatesResponse actualResponse = client.listDeviceStates(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void listDeviceStatesExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String name = + "projects/project-6436/locations/location-6436/registries/registrie-6436/devices/device-6436"; + client.listDeviceStates(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void setIamPolicyTest() throws Exception { + Policy expectedResponse = + Policy.newBuilder() + .setVersion(351608024) + .addAllBindings(new ArrayList()) + .addAllAuditConfigs(new ArrayList()) + .setEtag(ByteString.EMPTY) + .build(); + mockService.addResponse(expectedResponse); + + ResourceName resource = RegistryName.of("[PROJECT]", "[LOCATION]", "[REGISTRY]"); + Policy policy = Policy.newBuilder().build(); + + Policy actualResponse = client.setIamPolicy(resource, policy); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void setIamPolicyExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + ResourceName resource = RegistryName.of("[PROJECT]", "[LOCATION]", "[REGISTRY]"); + Policy policy = Policy.newBuilder().build(); + client.setIamPolicy(resource, policy); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void setIamPolicyTest2() throws Exception { + Policy expectedResponse = + Policy.newBuilder() + .setVersion(351608024) + .addAllBindings(new ArrayList()) + .addAllAuditConfigs(new ArrayList()) + .setEtag(ByteString.EMPTY) + .build(); + mockService.addResponse(expectedResponse); + + String resource = "projects/project-6248/locations/location-6248/registries/registrie-6248"; + Policy policy = Policy.newBuilder().build(); + + Policy actualResponse = client.setIamPolicy(resource, policy); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void setIamPolicyExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String resource = "projects/project-6248/locations/location-6248/registries/registrie-6248"; + Policy policy = Policy.newBuilder().build(); + client.setIamPolicy(resource, policy); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getIamPolicyTest() throws Exception { + Policy expectedResponse = + Policy.newBuilder() + .setVersion(351608024) + .addAllBindings(new ArrayList()) + .addAllAuditConfigs(new ArrayList()) + .setEtag(ByteString.EMPTY) + .build(); + mockService.addResponse(expectedResponse); + + ResourceName resource = RegistryName.of("[PROJECT]", "[LOCATION]", "[REGISTRY]"); + + Policy actualResponse = client.getIamPolicy(resource); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void getIamPolicyExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + ResourceName resource = RegistryName.of("[PROJECT]", "[LOCATION]", "[REGISTRY]"); + client.getIamPolicy(resource); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getIamPolicyTest2() throws Exception { + Policy expectedResponse = + Policy.newBuilder() + .setVersion(351608024) + .addAllBindings(new ArrayList()) + .addAllAuditConfigs(new ArrayList()) + .setEtag(ByteString.EMPTY) + .build(); + mockService.addResponse(expectedResponse); + + String resource = "projects/project-6248/locations/location-6248/registries/registrie-6248"; + + Policy actualResponse = client.getIamPolicy(resource); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void getIamPolicyExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String resource = "projects/project-6248/locations/location-6248/registries/registrie-6248"; + client.getIamPolicy(resource); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void testIamPermissionsTest() throws Exception { + TestIamPermissionsResponse expectedResponse = + TestIamPermissionsResponse.newBuilder().addAllPermissions(new ArrayList()).build(); + mockService.addResponse(expectedResponse); + + ResourceName resource = RegistryName.of("[PROJECT]", "[LOCATION]", "[REGISTRY]"); + List permissions = new ArrayList<>(); + + TestIamPermissionsResponse actualResponse = client.testIamPermissions(resource, permissions); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void testIamPermissionsExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + ResourceName resource = RegistryName.of("[PROJECT]", "[LOCATION]", "[REGISTRY]"); + List permissions = new ArrayList<>(); + client.testIamPermissions(resource, permissions); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void testIamPermissionsTest2() throws Exception { + TestIamPermissionsResponse expectedResponse = + TestIamPermissionsResponse.newBuilder().addAllPermissions(new ArrayList()).build(); + mockService.addResponse(expectedResponse); + + String resource = "projects/project-6248/locations/location-6248/registries/registrie-6248"; + List permissions = new ArrayList<>(); + + TestIamPermissionsResponse actualResponse = client.testIamPermissions(resource, permissions); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void testIamPermissionsExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String resource = "projects/project-6248/locations/location-6248/registries/registrie-6248"; + List permissions = new ArrayList<>(); + client.testIamPermissions(resource, permissions); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void sendCommandToDeviceTest() throws Exception { + SendCommandToDeviceResponse expectedResponse = SendCommandToDeviceResponse.newBuilder().build(); + mockService.addResponse(expectedResponse); + + DeviceName name = DeviceName.of("[PROJECT]", "[LOCATION]", "[REGISTRY]", "[DEVICE]"); + ByteString binaryData = ByteString.EMPTY; + + SendCommandToDeviceResponse actualResponse = client.sendCommandToDevice(name, binaryData); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void sendCommandToDeviceExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + DeviceName name = DeviceName.of("[PROJECT]", "[LOCATION]", "[REGISTRY]", "[DEVICE]"); + ByteString binaryData = ByteString.EMPTY; + client.sendCommandToDevice(name, binaryData); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void sendCommandToDeviceTest2() throws Exception { + SendCommandToDeviceResponse expectedResponse = SendCommandToDeviceResponse.newBuilder().build(); + mockService.addResponse(expectedResponse); + + String name = + "projects/project-6436/locations/location-6436/registries/registrie-6436/devices/device-6436"; + ByteString binaryData = ByteString.EMPTY; + + SendCommandToDeviceResponse actualResponse = client.sendCommandToDevice(name, binaryData); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void sendCommandToDeviceExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String name = + "projects/project-6436/locations/location-6436/registries/registrie-6436/devices/device-6436"; + ByteString binaryData = ByteString.EMPTY; + client.sendCommandToDevice(name, binaryData); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void sendCommandToDeviceTest3() throws Exception { + SendCommandToDeviceResponse expectedResponse = SendCommandToDeviceResponse.newBuilder().build(); + mockService.addResponse(expectedResponse); + + DeviceName name = DeviceName.of("[PROJECT]", "[LOCATION]", "[REGISTRY]", "[DEVICE]"); + ByteString binaryData = ByteString.EMPTY; + String subfolder = "subfolder153561774"; + + SendCommandToDeviceResponse actualResponse = + client.sendCommandToDevice(name, binaryData, subfolder); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void sendCommandToDeviceExceptionTest3() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + DeviceName name = DeviceName.of("[PROJECT]", "[LOCATION]", "[REGISTRY]", "[DEVICE]"); + ByteString binaryData = ByteString.EMPTY; + String subfolder = "subfolder153561774"; + client.sendCommandToDevice(name, binaryData, subfolder); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void sendCommandToDeviceTest4() throws Exception { + SendCommandToDeviceResponse expectedResponse = SendCommandToDeviceResponse.newBuilder().build(); + mockService.addResponse(expectedResponse); + + String name = + "projects/project-6436/locations/location-6436/registries/registrie-6436/devices/device-6436"; + ByteString binaryData = ByteString.EMPTY; + String subfolder = "subfolder153561774"; + + SendCommandToDeviceResponse actualResponse = + client.sendCommandToDevice(name, binaryData, subfolder); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void sendCommandToDeviceExceptionTest4() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String name = + "projects/project-6436/locations/location-6436/registries/registrie-6436/devices/device-6436"; + ByteString binaryData = ByteString.EMPTY; + String subfolder = "subfolder153561774"; + client.sendCommandToDevice(name, binaryData, subfolder); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void bindDeviceToGatewayTest() throws Exception { + BindDeviceToGatewayResponse expectedResponse = BindDeviceToGatewayResponse.newBuilder().build(); + mockService.addResponse(expectedResponse); + + RegistryName parent = RegistryName.of("[PROJECT]", "[LOCATION]", "[REGISTRY]"); + String gatewayId = "gatewayId-1354641793"; + String deviceId = "deviceId1109191185"; + + BindDeviceToGatewayResponse actualResponse = + client.bindDeviceToGateway(parent, gatewayId, deviceId); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void bindDeviceToGatewayExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + RegistryName parent = RegistryName.of("[PROJECT]", "[LOCATION]", "[REGISTRY]"); + String gatewayId = "gatewayId-1354641793"; + String deviceId = "deviceId1109191185"; + client.bindDeviceToGateway(parent, gatewayId, deviceId); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void bindDeviceToGatewayTest2() throws Exception { + BindDeviceToGatewayResponse expectedResponse = BindDeviceToGatewayResponse.newBuilder().build(); + mockService.addResponse(expectedResponse); + + String parent = "projects/project-6316/locations/location-6316/registries/registrie-6316"; + String gatewayId = "gatewayId-1354641793"; + String deviceId = "deviceId1109191185"; + + BindDeviceToGatewayResponse actualResponse = + client.bindDeviceToGateway(parent, gatewayId, deviceId); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void bindDeviceToGatewayExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String parent = "projects/project-6316/locations/location-6316/registries/registrie-6316"; + String gatewayId = "gatewayId-1354641793"; + String deviceId = "deviceId1109191185"; + client.bindDeviceToGateway(parent, gatewayId, deviceId); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void unbindDeviceFromGatewayTest() throws Exception { + UnbindDeviceFromGatewayResponse expectedResponse = + UnbindDeviceFromGatewayResponse.newBuilder().build(); + mockService.addResponse(expectedResponse); + + RegistryName parent = RegistryName.of("[PROJECT]", "[LOCATION]", "[REGISTRY]"); + String gatewayId = "gatewayId-1354641793"; + String deviceId = "deviceId1109191185"; + + UnbindDeviceFromGatewayResponse actualResponse = + client.unbindDeviceFromGateway(parent, gatewayId, deviceId); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void unbindDeviceFromGatewayExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + RegistryName parent = RegistryName.of("[PROJECT]", "[LOCATION]", "[REGISTRY]"); + String gatewayId = "gatewayId-1354641793"; + String deviceId = "deviceId1109191185"; + client.unbindDeviceFromGateway(parent, gatewayId, deviceId); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void unbindDeviceFromGatewayTest2() throws Exception { + UnbindDeviceFromGatewayResponse expectedResponse = + UnbindDeviceFromGatewayResponse.newBuilder().build(); + mockService.addResponse(expectedResponse); + + String parent = "projects/project-6316/locations/location-6316/registries/registrie-6316"; + String gatewayId = "gatewayId-1354641793"; + String deviceId = "deviceId1109191185"; + + UnbindDeviceFromGatewayResponse actualResponse = + client.unbindDeviceFromGateway(parent, gatewayId, deviceId); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void unbindDeviceFromGatewayExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String parent = "projects/project-6316/locations/location-6316/registries/registrie-6316"; + String gatewayId = "gatewayId-1354641793"; + String deviceId = "deviceId1109191185"; + client.unbindDeviceFromGateway(parent, gatewayId, deviceId); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } +} diff --git a/google-cloud-iot/src/test/java/com/google/cloud/iot/v1/DeviceManagerClientTest.java b/owl-bot-staging/v1/google-cloud-iot/src/test/java/com/google/cloud/iot/v1/DeviceManagerClientTest.java similarity index 100% rename from google-cloud-iot/src/test/java/com/google/cloud/iot/v1/DeviceManagerClientTest.java rename to owl-bot-staging/v1/google-cloud-iot/src/test/java/com/google/cloud/iot/v1/DeviceManagerClientTest.java diff --git a/google-cloud-iot/src/test/java/com/google/cloud/iot/v1/MockDeviceManager.java b/owl-bot-staging/v1/google-cloud-iot/src/test/java/com/google/cloud/iot/v1/MockDeviceManager.java similarity index 100% rename from google-cloud-iot/src/test/java/com/google/cloud/iot/v1/MockDeviceManager.java rename to owl-bot-staging/v1/google-cloud-iot/src/test/java/com/google/cloud/iot/v1/MockDeviceManager.java diff --git a/google-cloud-iot/src/test/java/com/google/cloud/iot/v1/MockDeviceManagerImpl.java b/owl-bot-staging/v1/google-cloud-iot/src/test/java/com/google/cloud/iot/v1/MockDeviceManagerImpl.java similarity index 100% rename from google-cloud-iot/src/test/java/com/google/cloud/iot/v1/MockDeviceManagerImpl.java rename to owl-bot-staging/v1/google-cloud-iot/src/test/java/com/google/cloud/iot/v1/MockDeviceManagerImpl.java diff --git a/owl-bot-staging/v1/grpc-google-cloud-iot-v1/src/main/java/com/google/cloud/iot/v1/DeviceManagerGrpc.java b/owl-bot-staging/v1/grpc-google-cloud-iot-v1/src/main/java/com/google/cloud/iot/v1/DeviceManagerGrpc.java new file mode 100644 index 00000000..e6984de9 --- /dev/null +++ b/owl-bot-staging/v1/grpc-google-cloud-iot-v1/src/main/java/com/google/cloud/iot/v1/DeviceManagerGrpc.java @@ -0,0 +1,1935 @@ +package com.google.cloud.iot.v1; + +import static io.grpc.MethodDescriptor.generateFullMethodName; + +/** + *

+ * Internet of Things (IoT) service. Securely connect and manage IoT devices.
+ * 
+ */ +@javax.annotation.Generated( + value = "by gRPC proto compiler", + comments = "Source: google/cloud/iot/v1/device_manager.proto") +@io.grpc.stub.annotations.GrpcGenerated +public final class DeviceManagerGrpc { + + private DeviceManagerGrpc() {} + + public static final String SERVICE_NAME = "google.cloud.iot.v1.DeviceManager"; + + // Static method descriptors that strictly reflect the proto. + private static volatile io.grpc.MethodDescriptor getCreateDeviceRegistryMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "CreateDeviceRegistry", + requestType = com.google.cloud.iot.v1.CreateDeviceRegistryRequest.class, + responseType = com.google.cloud.iot.v1.DeviceRegistry.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getCreateDeviceRegistryMethod() { + io.grpc.MethodDescriptor getCreateDeviceRegistryMethod; + if ((getCreateDeviceRegistryMethod = DeviceManagerGrpc.getCreateDeviceRegistryMethod) == null) { + synchronized (DeviceManagerGrpc.class) { + if ((getCreateDeviceRegistryMethod = DeviceManagerGrpc.getCreateDeviceRegistryMethod) == null) { + DeviceManagerGrpc.getCreateDeviceRegistryMethod = getCreateDeviceRegistryMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CreateDeviceRegistry")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.iot.v1.CreateDeviceRegistryRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.iot.v1.DeviceRegistry.getDefaultInstance())) + .setSchemaDescriptor(new DeviceManagerMethodDescriptorSupplier("CreateDeviceRegistry")) + .build(); + } + } + } + return getCreateDeviceRegistryMethod; + } + + private static volatile io.grpc.MethodDescriptor getGetDeviceRegistryMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "GetDeviceRegistry", + requestType = com.google.cloud.iot.v1.GetDeviceRegistryRequest.class, + responseType = com.google.cloud.iot.v1.DeviceRegistry.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getGetDeviceRegistryMethod() { + io.grpc.MethodDescriptor getGetDeviceRegistryMethod; + if ((getGetDeviceRegistryMethod = DeviceManagerGrpc.getGetDeviceRegistryMethod) == null) { + synchronized (DeviceManagerGrpc.class) { + if ((getGetDeviceRegistryMethod = DeviceManagerGrpc.getGetDeviceRegistryMethod) == null) { + DeviceManagerGrpc.getGetDeviceRegistryMethod = getGetDeviceRegistryMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetDeviceRegistry")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.iot.v1.GetDeviceRegistryRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.iot.v1.DeviceRegistry.getDefaultInstance())) + .setSchemaDescriptor(new DeviceManagerMethodDescriptorSupplier("GetDeviceRegistry")) + .build(); + } + } + } + return getGetDeviceRegistryMethod; + } + + private static volatile io.grpc.MethodDescriptor getUpdateDeviceRegistryMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "UpdateDeviceRegistry", + requestType = com.google.cloud.iot.v1.UpdateDeviceRegistryRequest.class, + responseType = com.google.cloud.iot.v1.DeviceRegistry.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getUpdateDeviceRegistryMethod() { + io.grpc.MethodDescriptor getUpdateDeviceRegistryMethod; + if ((getUpdateDeviceRegistryMethod = DeviceManagerGrpc.getUpdateDeviceRegistryMethod) == null) { + synchronized (DeviceManagerGrpc.class) { + if ((getUpdateDeviceRegistryMethod = DeviceManagerGrpc.getUpdateDeviceRegistryMethod) == null) { + DeviceManagerGrpc.getUpdateDeviceRegistryMethod = getUpdateDeviceRegistryMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "UpdateDeviceRegistry")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.iot.v1.UpdateDeviceRegistryRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.iot.v1.DeviceRegistry.getDefaultInstance())) + .setSchemaDescriptor(new DeviceManagerMethodDescriptorSupplier("UpdateDeviceRegistry")) + .build(); + } + } + } + return getUpdateDeviceRegistryMethod; + } + + private static volatile io.grpc.MethodDescriptor getDeleteDeviceRegistryMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "DeleteDeviceRegistry", + requestType = com.google.cloud.iot.v1.DeleteDeviceRegistryRequest.class, + responseType = com.google.protobuf.Empty.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getDeleteDeviceRegistryMethod() { + io.grpc.MethodDescriptor getDeleteDeviceRegistryMethod; + if ((getDeleteDeviceRegistryMethod = DeviceManagerGrpc.getDeleteDeviceRegistryMethod) == null) { + synchronized (DeviceManagerGrpc.class) { + if ((getDeleteDeviceRegistryMethod = DeviceManagerGrpc.getDeleteDeviceRegistryMethod) == null) { + DeviceManagerGrpc.getDeleteDeviceRegistryMethod = getDeleteDeviceRegistryMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "DeleteDeviceRegistry")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.iot.v1.DeleteDeviceRegistryRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.protobuf.Empty.getDefaultInstance())) + .setSchemaDescriptor(new DeviceManagerMethodDescriptorSupplier("DeleteDeviceRegistry")) + .build(); + } + } + } + return getDeleteDeviceRegistryMethod; + } + + private static volatile io.grpc.MethodDescriptor getListDeviceRegistriesMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "ListDeviceRegistries", + requestType = com.google.cloud.iot.v1.ListDeviceRegistriesRequest.class, + responseType = com.google.cloud.iot.v1.ListDeviceRegistriesResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getListDeviceRegistriesMethod() { + io.grpc.MethodDescriptor getListDeviceRegistriesMethod; + if ((getListDeviceRegistriesMethod = DeviceManagerGrpc.getListDeviceRegistriesMethod) == null) { + synchronized (DeviceManagerGrpc.class) { + if ((getListDeviceRegistriesMethod = DeviceManagerGrpc.getListDeviceRegistriesMethod) == null) { + DeviceManagerGrpc.getListDeviceRegistriesMethod = getListDeviceRegistriesMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListDeviceRegistries")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.iot.v1.ListDeviceRegistriesRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.iot.v1.ListDeviceRegistriesResponse.getDefaultInstance())) + .setSchemaDescriptor(new DeviceManagerMethodDescriptorSupplier("ListDeviceRegistries")) + .build(); + } + } + } + return getListDeviceRegistriesMethod; + } + + private static volatile io.grpc.MethodDescriptor getCreateDeviceMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "CreateDevice", + requestType = com.google.cloud.iot.v1.CreateDeviceRequest.class, + responseType = com.google.cloud.iot.v1.Device.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getCreateDeviceMethod() { + io.grpc.MethodDescriptor getCreateDeviceMethod; + if ((getCreateDeviceMethod = DeviceManagerGrpc.getCreateDeviceMethod) == null) { + synchronized (DeviceManagerGrpc.class) { + if ((getCreateDeviceMethod = DeviceManagerGrpc.getCreateDeviceMethod) == null) { + DeviceManagerGrpc.getCreateDeviceMethod = getCreateDeviceMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CreateDevice")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.iot.v1.CreateDeviceRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.iot.v1.Device.getDefaultInstance())) + .setSchemaDescriptor(new DeviceManagerMethodDescriptorSupplier("CreateDevice")) + .build(); + } + } + } + return getCreateDeviceMethod; + } + + private static volatile io.grpc.MethodDescriptor getGetDeviceMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "GetDevice", + requestType = com.google.cloud.iot.v1.GetDeviceRequest.class, + responseType = com.google.cloud.iot.v1.Device.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getGetDeviceMethod() { + io.grpc.MethodDescriptor getGetDeviceMethod; + if ((getGetDeviceMethod = DeviceManagerGrpc.getGetDeviceMethod) == null) { + synchronized (DeviceManagerGrpc.class) { + if ((getGetDeviceMethod = DeviceManagerGrpc.getGetDeviceMethod) == null) { + DeviceManagerGrpc.getGetDeviceMethod = getGetDeviceMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetDevice")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.iot.v1.GetDeviceRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.iot.v1.Device.getDefaultInstance())) + .setSchemaDescriptor(new DeviceManagerMethodDescriptorSupplier("GetDevice")) + .build(); + } + } + } + return getGetDeviceMethod; + } + + private static volatile io.grpc.MethodDescriptor getUpdateDeviceMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "UpdateDevice", + requestType = com.google.cloud.iot.v1.UpdateDeviceRequest.class, + responseType = com.google.cloud.iot.v1.Device.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getUpdateDeviceMethod() { + io.grpc.MethodDescriptor getUpdateDeviceMethod; + if ((getUpdateDeviceMethod = DeviceManagerGrpc.getUpdateDeviceMethod) == null) { + synchronized (DeviceManagerGrpc.class) { + if ((getUpdateDeviceMethod = DeviceManagerGrpc.getUpdateDeviceMethod) == null) { + DeviceManagerGrpc.getUpdateDeviceMethod = getUpdateDeviceMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "UpdateDevice")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.iot.v1.UpdateDeviceRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.iot.v1.Device.getDefaultInstance())) + .setSchemaDescriptor(new DeviceManagerMethodDescriptorSupplier("UpdateDevice")) + .build(); + } + } + } + return getUpdateDeviceMethod; + } + + private static volatile io.grpc.MethodDescriptor getDeleteDeviceMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "DeleteDevice", + requestType = com.google.cloud.iot.v1.DeleteDeviceRequest.class, + responseType = com.google.protobuf.Empty.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getDeleteDeviceMethod() { + io.grpc.MethodDescriptor getDeleteDeviceMethod; + if ((getDeleteDeviceMethod = DeviceManagerGrpc.getDeleteDeviceMethod) == null) { + synchronized (DeviceManagerGrpc.class) { + if ((getDeleteDeviceMethod = DeviceManagerGrpc.getDeleteDeviceMethod) == null) { + DeviceManagerGrpc.getDeleteDeviceMethod = getDeleteDeviceMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "DeleteDevice")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.iot.v1.DeleteDeviceRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.protobuf.Empty.getDefaultInstance())) + .setSchemaDescriptor(new DeviceManagerMethodDescriptorSupplier("DeleteDevice")) + .build(); + } + } + } + return getDeleteDeviceMethod; + } + + private static volatile io.grpc.MethodDescriptor getListDevicesMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "ListDevices", + requestType = com.google.cloud.iot.v1.ListDevicesRequest.class, + responseType = com.google.cloud.iot.v1.ListDevicesResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getListDevicesMethod() { + io.grpc.MethodDescriptor getListDevicesMethod; + if ((getListDevicesMethod = DeviceManagerGrpc.getListDevicesMethod) == null) { + synchronized (DeviceManagerGrpc.class) { + if ((getListDevicesMethod = DeviceManagerGrpc.getListDevicesMethod) == null) { + DeviceManagerGrpc.getListDevicesMethod = getListDevicesMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListDevices")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.iot.v1.ListDevicesRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.iot.v1.ListDevicesResponse.getDefaultInstance())) + .setSchemaDescriptor(new DeviceManagerMethodDescriptorSupplier("ListDevices")) + .build(); + } + } + } + return getListDevicesMethod; + } + + private static volatile io.grpc.MethodDescriptor getModifyCloudToDeviceConfigMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "ModifyCloudToDeviceConfig", + requestType = com.google.cloud.iot.v1.ModifyCloudToDeviceConfigRequest.class, + responseType = com.google.cloud.iot.v1.DeviceConfig.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getModifyCloudToDeviceConfigMethod() { + io.grpc.MethodDescriptor getModifyCloudToDeviceConfigMethod; + if ((getModifyCloudToDeviceConfigMethod = DeviceManagerGrpc.getModifyCloudToDeviceConfigMethod) == null) { + synchronized (DeviceManagerGrpc.class) { + if ((getModifyCloudToDeviceConfigMethod = DeviceManagerGrpc.getModifyCloudToDeviceConfigMethod) == null) { + DeviceManagerGrpc.getModifyCloudToDeviceConfigMethod = getModifyCloudToDeviceConfigMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ModifyCloudToDeviceConfig")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.iot.v1.ModifyCloudToDeviceConfigRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.iot.v1.DeviceConfig.getDefaultInstance())) + .setSchemaDescriptor(new DeviceManagerMethodDescriptorSupplier("ModifyCloudToDeviceConfig")) + .build(); + } + } + } + return getModifyCloudToDeviceConfigMethod; + } + + private static volatile io.grpc.MethodDescriptor getListDeviceConfigVersionsMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "ListDeviceConfigVersions", + requestType = com.google.cloud.iot.v1.ListDeviceConfigVersionsRequest.class, + responseType = com.google.cloud.iot.v1.ListDeviceConfigVersionsResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getListDeviceConfigVersionsMethod() { + io.grpc.MethodDescriptor getListDeviceConfigVersionsMethod; + if ((getListDeviceConfigVersionsMethod = DeviceManagerGrpc.getListDeviceConfigVersionsMethod) == null) { + synchronized (DeviceManagerGrpc.class) { + if ((getListDeviceConfigVersionsMethod = DeviceManagerGrpc.getListDeviceConfigVersionsMethod) == null) { + DeviceManagerGrpc.getListDeviceConfigVersionsMethod = getListDeviceConfigVersionsMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListDeviceConfigVersions")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.iot.v1.ListDeviceConfigVersionsRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.iot.v1.ListDeviceConfigVersionsResponse.getDefaultInstance())) + .setSchemaDescriptor(new DeviceManagerMethodDescriptorSupplier("ListDeviceConfigVersions")) + .build(); + } + } + } + return getListDeviceConfigVersionsMethod; + } + + private static volatile io.grpc.MethodDescriptor getListDeviceStatesMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "ListDeviceStates", + requestType = com.google.cloud.iot.v1.ListDeviceStatesRequest.class, + responseType = com.google.cloud.iot.v1.ListDeviceStatesResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getListDeviceStatesMethod() { + io.grpc.MethodDescriptor getListDeviceStatesMethod; + if ((getListDeviceStatesMethod = DeviceManagerGrpc.getListDeviceStatesMethod) == null) { + synchronized (DeviceManagerGrpc.class) { + if ((getListDeviceStatesMethod = DeviceManagerGrpc.getListDeviceStatesMethod) == null) { + DeviceManagerGrpc.getListDeviceStatesMethod = getListDeviceStatesMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListDeviceStates")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.iot.v1.ListDeviceStatesRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.iot.v1.ListDeviceStatesResponse.getDefaultInstance())) + .setSchemaDescriptor(new DeviceManagerMethodDescriptorSupplier("ListDeviceStates")) + .build(); + } + } + } + return getListDeviceStatesMethod; + } + + private static volatile io.grpc.MethodDescriptor getSetIamPolicyMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "SetIamPolicy", + requestType = com.google.iam.v1.SetIamPolicyRequest.class, + responseType = com.google.iam.v1.Policy.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getSetIamPolicyMethod() { + io.grpc.MethodDescriptor getSetIamPolicyMethod; + if ((getSetIamPolicyMethod = DeviceManagerGrpc.getSetIamPolicyMethod) == null) { + synchronized (DeviceManagerGrpc.class) { + if ((getSetIamPolicyMethod = DeviceManagerGrpc.getSetIamPolicyMethod) == null) { + DeviceManagerGrpc.getSetIamPolicyMethod = getSetIamPolicyMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "SetIamPolicy")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.iam.v1.SetIamPolicyRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.iam.v1.Policy.getDefaultInstance())) + .setSchemaDescriptor(new DeviceManagerMethodDescriptorSupplier("SetIamPolicy")) + .build(); + } + } + } + return getSetIamPolicyMethod; + } + + private static volatile io.grpc.MethodDescriptor getGetIamPolicyMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "GetIamPolicy", + requestType = com.google.iam.v1.GetIamPolicyRequest.class, + responseType = com.google.iam.v1.Policy.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getGetIamPolicyMethod() { + io.grpc.MethodDescriptor getGetIamPolicyMethod; + if ((getGetIamPolicyMethod = DeviceManagerGrpc.getGetIamPolicyMethod) == null) { + synchronized (DeviceManagerGrpc.class) { + if ((getGetIamPolicyMethod = DeviceManagerGrpc.getGetIamPolicyMethod) == null) { + DeviceManagerGrpc.getGetIamPolicyMethod = getGetIamPolicyMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetIamPolicy")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.iam.v1.GetIamPolicyRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.iam.v1.Policy.getDefaultInstance())) + .setSchemaDescriptor(new DeviceManagerMethodDescriptorSupplier("GetIamPolicy")) + .build(); + } + } + } + return getGetIamPolicyMethod; + } + + private static volatile io.grpc.MethodDescriptor getTestIamPermissionsMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "TestIamPermissions", + requestType = com.google.iam.v1.TestIamPermissionsRequest.class, + responseType = com.google.iam.v1.TestIamPermissionsResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getTestIamPermissionsMethod() { + io.grpc.MethodDescriptor getTestIamPermissionsMethod; + if ((getTestIamPermissionsMethod = DeviceManagerGrpc.getTestIamPermissionsMethod) == null) { + synchronized (DeviceManagerGrpc.class) { + if ((getTestIamPermissionsMethod = DeviceManagerGrpc.getTestIamPermissionsMethod) == null) { + DeviceManagerGrpc.getTestIamPermissionsMethod = getTestIamPermissionsMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "TestIamPermissions")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.iam.v1.TestIamPermissionsRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.iam.v1.TestIamPermissionsResponse.getDefaultInstance())) + .setSchemaDescriptor(new DeviceManagerMethodDescriptorSupplier("TestIamPermissions")) + .build(); + } + } + } + return getTestIamPermissionsMethod; + } + + private static volatile io.grpc.MethodDescriptor getSendCommandToDeviceMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "SendCommandToDevice", + requestType = com.google.cloud.iot.v1.SendCommandToDeviceRequest.class, + responseType = com.google.cloud.iot.v1.SendCommandToDeviceResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getSendCommandToDeviceMethod() { + io.grpc.MethodDescriptor getSendCommandToDeviceMethod; + if ((getSendCommandToDeviceMethod = DeviceManagerGrpc.getSendCommandToDeviceMethod) == null) { + synchronized (DeviceManagerGrpc.class) { + if ((getSendCommandToDeviceMethod = DeviceManagerGrpc.getSendCommandToDeviceMethod) == null) { + DeviceManagerGrpc.getSendCommandToDeviceMethod = getSendCommandToDeviceMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "SendCommandToDevice")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.iot.v1.SendCommandToDeviceRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.iot.v1.SendCommandToDeviceResponse.getDefaultInstance())) + .setSchemaDescriptor(new DeviceManagerMethodDescriptorSupplier("SendCommandToDevice")) + .build(); + } + } + } + return getSendCommandToDeviceMethod; + } + + private static volatile io.grpc.MethodDescriptor getBindDeviceToGatewayMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "BindDeviceToGateway", + requestType = com.google.cloud.iot.v1.BindDeviceToGatewayRequest.class, + responseType = com.google.cloud.iot.v1.BindDeviceToGatewayResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getBindDeviceToGatewayMethod() { + io.grpc.MethodDescriptor getBindDeviceToGatewayMethod; + if ((getBindDeviceToGatewayMethod = DeviceManagerGrpc.getBindDeviceToGatewayMethod) == null) { + synchronized (DeviceManagerGrpc.class) { + if ((getBindDeviceToGatewayMethod = DeviceManagerGrpc.getBindDeviceToGatewayMethod) == null) { + DeviceManagerGrpc.getBindDeviceToGatewayMethod = getBindDeviceToGatewayMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "BindDeviceToGateway")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.iot.v1.BindDeviceToGatewayRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.iot.v1.BindDeviceToGatewayResponse.getDefaultInstance())) + .setSchemaDescriptor(new DeviceManagerMethodDescriptorSupplier("BindDeviceToGateway")) + .build(); + } + } + } + return getBindDeviceToGatewayMethod; + } + + private static volatile io.grpc.MethodDescriptor getUnbindDeviceFromGatewayMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "UnbindDeviceFromGateway", + requestType = com.google.cloud.iot.v1.UnbindDeviceFromGatewayRequest.class, + responseType = com.google.cloud.iot.v1.UnbindDeviceFromGatewayResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getUnbindDeviceFromGatewayMethod() { + io.grpc.MethodDescriptor getUnbindDeviceFromGatewayMethod; + if ((getUnbindDeviceFromGatewayMethod = DeviceManagerGrpc.getUnbindDeviceFromGatewayMethod) == null) { + synchronized (DeviceManagerGrpc.class) { + if ((getUnbindDeviceFromGatewayMethod = DeviceManagerGrpc.getUnbindDeviceFromGatewayMethod) == null) { + DeviceManagerGrpc.getUnbindDeviceFromGatewayMethod = getUnbindDeviceFromGatewayMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "UnbindDeviceFromGateway")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.iot.v1.UnbindDeviceFromGatewayRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.iot.v1.UnbindDeviceFromGatewayResponse.getDefaultInstance())) + .setSchemaDescriptor(new DeviceManagerMethodDescriptorSupplier("UnbindDeviceFromGateway")) + .build(); + } + } + } + return getUnbindDeviceFromGatewayMethod; + } + + /** + * Creates a new async stub that supports all call types for the service + */ + public static DeviceManagerStub newStub(io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public DeviceManagerStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new DeviceManagerStub(channel, callOptions); + } + }; + return DeviceManagerStub.newStub(factory, channel); + } + + /** + * Creates a new blocking-style stub that supports unary and streaming output calls on the service + */ + public static DeviceManagerBlockingStub newBlockingStub( + io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public DeviceManagerBlockingStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new DeviceManagerBlockingStub(channel, callOptions); + } + }; + return DeviceManagerBlockingStub.newStub(factory, channel); + } + + /** + * Creates a new ListenableFuture-style stub that supports unary calls on the service + */ + public static DeviceManagerFutureStub newFutureStub( + io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public DeviceManagerFutureStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new DeviceManagerFutureStub(channel, callOptions); + } + }; + return DeviceManagerFutureStub.newStub(factory, channel); + } + + /** + *
+   * Internet of Things (IoT) service. Securely connect and manage IoT devices.
+   * 
+ */ + public static abstract class DeviceManagerImplBase implements io.grpc.BindableService { + + /** + *
+     * Creates a device registry that contains devices.
+     * 
+ */ + public void createDeviceRegistry(com.google.cloud.iot.v1.CreateDeviceRegistryRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getCreateDeviceRegistryMethod(), responseObserver); + } + + /** + *
+     * Gets a device registry configuration.
+     * 
+ */ + public void getDeviceRegistry(com.google.cloud.iot.v1.GetDeviceRegistryRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetDeviceRegistryMethod(), responseObserver); + } + + /** + *
+     * Updates a device registry configuration.
+     * 
+ */ + public void updateDeviceRegistry(com.google.cloud.iot.v1.UpdateDeviceRegistryRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getUpdateDeviceRegistryMethod(), responseObserver); + } + + /** + *
+     * Deletes a device registry configuration.
+     * 
+ */ + public void deleteDeviceRegistry(com.google.cloud.iot.v1.DeleteDeviceRegistryRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getDeleteDeviceRegistryMethod(), responseObserver); + } + + /** + *
+     * Lists device registries.
+     * 
+ */ + public void listDeviceRegistries(com.google.cloud.iot.v1.ListDeviceRegistriesRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getListDeviceRegistriesMethod(), responseObserver); + } + + /** + *
+     * Creates a device in a device registry.
+     * 
+ */ + public void createDevice(com.google.cloud.iot.v1.CreateDeviceRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getCreateDeviceMethod(), responseObserver); + } + + /** + *
+     * Gets details about a device.
+     * 
+ */ + public void getDevice(com.google.cloud.iot.v1.GetDeviceRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetDeviceMethod(), responseObserver); + } + + /** + *
+     * Updates a device.
+     * 
+ */ + public void updateDevice(com.google.cloud.iot.v1.UpdateDeviceRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getUpdateDeviceMethod(), responseObserver); + } + + /** + *
+     * Deletes a device.
+     * 
+ */ + public void deleteDevice(com.google.cloud.iot.v1.DeleteDeviceRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getDeleteDeviceMethod(), responseObserver); + } + + /** + *
+     * List devices in a device registry.
+     * 
+ */ + public void listDevices(com.google.cloud.iot.v1.ListDevicesRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getListDevicesMethod(), responseObserver); + } + + /** + *
+     * Modifies the configuration for the device, which is eventually sent from
+     * the Cloud IoT Core servers. Returns the modified configuration version and
+     * its metadata.
+     * 
+ */ + public void modifyCloudToDeviceConfig(com.google.cloud.iot.v1.ModifyCloudToDeviceConfigRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getModifyCloudToDeviceConfigMethod(), responseObserver); + } + + /** + *
+     * Lists the last few versions of the device configuration in descending
+     * order (i.e.: newest first).
+     * 
+ */ + public void listDeviceConfigVersions(com.google.cloud.iot.v1.ListDeviceConfigVersionsRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getListDeviceConfigVersionsMethod(), responseObserver); + } + + /** + *
+     * Lists the last few versions of the device state in descending order (i.e.:
+     * newest first).
+     * 
+ */ + public void listDeviceStates(com.google.cloud.iot.v1.ListDeviceStatesRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getListDeviceStatesMethod(), responseObserver); + } + + /** + *
+     * Sets the access control policy on the specified resource. Replaces any
+     * existing policy.
+     * 
+ */ + public void setIamPolicy(com.google.iam.v1.SetIamPolicyRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getSetIamPolicyMethod(), responseObserver); + } + + /** + *
+     * Gets the access control policy for a resource.
+     * Returns an empty policy if the resource exists and does not have a policy
+     * set.
+     * 
+ */ + public void getIamPolicy(com.google.iam.v1.GetIamPolicyRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetIamPolicyMethod(), responseObserver); + } + + /** + *
+     * Returns permissions that a caller has on the specified resource.
+     * If the resource does not exist, this will return an empty set of
+     * permissions, not a NOT_FOUND error.
+     * 
+ */ + public void testIamPermissions(com.google.iam.v1.TestIamPermissionsRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getTestIamPermissionsMethod(), responseObserver); + } + + /** + *
+     * Sends a command to the specified device. In order for a device to be able
+     * to receive commands, it must:
+     * 1) be connected to Cloud IoT Core using the MQTT protocol, and
+     * 2) be subscribed to the group of MQTT topics specified by
+     *    /devices/{device-id}/commands/#. This subscription will receive commands
+     *    at the top-level topic /devices/{device-id}/commands as well as commands
+     *    for subfolders, like /devices/{device-id}/commands/subfolder.
+     *    Note that subscribing to specific subfolders is not supported.
+     * If the command could not be delivered to the device, this method will
+     * return an error; in particular, if the device is not subscribed, this
+     * method will return FAILED_PRECONDITION. Otherwise, this method will
+     * return OK. If the subscription is QoS 1, at least once delivery will be
+     * guaranteed; for QoS 0, no acknowledgment will be expected from the device.
+     * 
+ */ + public void sendCommandToDevice(com.google.cloud.iot.v1.SendCommandToDeviceRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getSendCommandToDeviceMethod(), responseObserver); + } + + /** + *
+     * Associates the device with the gateway.
+     * 
+ */ + public void bindDeviceToGateway(com.google.cloud.iot.v1.BindDeviceToGatewayRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getBindDeviceToGatewayMethod(), responseObserver); + } + + /** + *
+     * Deletes the association between the device and the gateway.
+     * 
+ */ + public void unbindDeviceFromGateway(com.google.cloud.iot.v1.UnbindDeviceFromGatewayRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getUnbindDeviceFromGatewayMethod(), responseObserver); + } + + @java.lang.Override public final io.grpc.ServerServiceDefinition bindService() { + return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor()) + .addMethod( + getCreateDeviceRegistryMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.iot.v1.CreateDeviceRegistryRequest, + com.google.cloud.iot.v1.DeviceRegistry>( + this, METHODID_CREATE_DEVICE_REGISTRY))) + .addMethod( + getGetDeviceRegistryMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.iot.v1.GetDeviceRegistryRequest, + com.google.cloud.iot.v1.DeviceRegistry>( + this, METHODID_GET_DEVICE_REGISTRY))) + .addMethod( + getUpdateDeviceRegistryMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.iot.v1.UpdateDeviceRegistryRequest, + com.google.cloud.iot.v1.DeviceRegistry>( + this, METHODID_UPDATE_DEVICE_REGISTRY))) + .addMethod( + getDeleteDeviceRegistryMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.iot.v1.DeleteDeviceRegistryRequest, + com.google.protobuf.Empty>( + this, METHODID_DELETE_DEVICE_REGISTRY))) + .addMethod( + getListDeviceRegistriesMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.iot.v1.ListDeviceRegistriesRequest, + com.google.cloud.iot.v1.ListDeviceRegistriesResponse>( + this, METHODID_LIST_DEVICE_REGISTRIES))) + .addMethod( + getCreateDeviceMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.iot.v1.CreateDeviceRequest, + com.google.cloud.iot.v1.Device>( + this, METHODID_CREATE_DEVICE))) + .addMethod( + getGetDeviceMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.iot.v1.GetDeviceRequest, + com.google.cloud.iot.v1.Device>( + this, METHODID_GET_DEVICE))) + .addMethod( + getUpdateDeviceMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.iot.v1.UpdateDeviceRequest, + com.google.cloud.iot.v1.Device>( + this, METHODID_UPDATE_DEVICE))) + .addMethod( + getDeleteDeviceMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.iot.v1.DeleteDeviceRequest, + com.google.protobuf.Empty>( + this, METHODID_DELETE_DEVICE))) + .addMethod( + getListDevicesMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.iot.v1.ListDevicesRequest, + com.google.cloud.iot.v1.ListDevicesResponse>( + this, METHODID_LIST_DEVICES))) + .addMethod( + getModifyCloudToDeviceConfigMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.iot.v1.ModifyCloudToDeviceConfigRequest, + com.google.cloud.iot.v1.DeviceConfig>( + this, METHODID_MODIFY_CLOUD_TO_DEVICE_CONFIG))) + .addMethod( + getListDeviceConfigVersionsMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.iot.v1.ListDeviceConfigVersionsRequest, + com.google.cloud.iot.v1.ListDeviceConfigVersionsResponse>( + this, METHODID_LIST_DEVICE_CONFIG_VERSIONS))) + .addMethod( + getListDeviceStatesMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.iot.v1.ListDeviceStatesRequest, + com.google.cloud.iot.v1.ListDeviceStatesResponse>( + this, METHODID_LIST_DEVICE_STATES))) + .addMethod( + getSetIamPolicyMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.iam.v1.SetIamPolicyRequest, + com.google.iam.v1.Policy>( + this, METHODID_SET_IAM_POLICY))) + .addMethod( + getGetIamPolicyMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.iam.v1.GetIamPolicyRequest, + com.google.iam.v1.Policy>( + this, METHODID_GET_IAM_POLICY))) + .addMethod( + getTestIamPermissionsMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.iam.v1.TestIamPermissionsRequest, + com.google.iam.v1.TestIamPermissionsResponse>( + this, METHODID_TEST_IAM_PERMISSIONS))) + .addMethod( + getSendCommandToDeviceMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.iot.v1.SendCommandToDeviceRequest, + com.google.cloud.iot.v1.SendCommandToDeviceResponse>( + this, METHODID_SEND_COMMAND_TO_DEVICE))) + .addMethod( + getBindDeviceToGatewayMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.iot.v1.BindDeviceToGatewayRequest, + com.google.cloud.iot.v1.BindDeviceToGatewayResponse>( + this, METHODID_BIND_DEVICE_TO_GATEWAY))) + .addMethod( + getUnbindDeviceFromGatewayMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.iot.v1.UnbindDeviceFromGatewayRequest, + com.google.cloud.iot.v1.UnbindDeviceFromGatewayResponse>( + this, METHODID_UNBIND_DEVICE_FROM_GATEWAY))) + .build(); + } + } + + /** + *
+   * Internet of Things (IoT) service. Securely connect and manage IoT devices.
+   * 
+ */ + public static final class DeviceManagerStub extends io.grpc.stub.AbstractAsyncStub { + private DeviceManagerStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected DeviceManagerStub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new DeviceManagerStub(channel, callOptions); + } + + /** + *
+     * Creates a device registry that contains devices.
+     * 
+ */ + public void createDeviceRegistry(com.google.cloud.iot.v1.CreateDeviceRegistryRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getCreateDeviceRegistryMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Gets a device registry configuration.
+     * 
+ */ + public void getDeviceRegistry(com.google.cloud.iot.v1.GetDeviceRegistryRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getGetDeviceRegistryMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Updates a device registry configuration.
+     * 
+ */ + public void updateDeviceRegistry(com.google.cloud.iot.v1.UpdateDeviceRegistryRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getUpdateDeviceRegistryMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Deletes a device registry configuration.
+     * 
+ */ + public void deleteDeviceRegistry(com.google.cloud.iot.v1.DeleteDeviceRegistryRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getDeleteDeviceRegistryMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Lists device registries.
+     * 
+ */ + public void listDeviceRegistries(com.google.cloud.iot.v1.ListDeviceRegistriesRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getListDeviceRegistriesMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Creates a device in a device registry.
+     * 
+ */ + public void createDevice(com.google.cloud.iot.v1.CreateDeviceRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getCreateDeviceMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Gets details about a device.
+     * 
+ */ + public void getDevice(com.google.cloud.iot.v1.GetDeviceRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getGetDeviceMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Updates a device.
+     * 
+ */ + public void updateDevice(com.google.cloud.iot.v1.UpdateDeviceRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getUpdateDeviceMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Deletes a device.
+     * 
+ */ + public void deleteDevice(com.google.cloud.iot.v1.DeleteDeviceRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getDeleteDeviceMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * List devices in a device registry.
+     * 
+ */ + public void listDevices(com.google.cloud.iot.v1.ListDevicesRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getListDevicesMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Modifies the configuration for the device, which is eventually sent from
+     * the Cloud IoT Core servers. Returns the modified configuration version and
+     * its metadata.
+     * 
+ */ + public void modifyCloudToDeviceConfig(com.google.cloud.iot.v1.ModifyCloudToDeviceConfigRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getModifyCloudToDeviceConfigMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Lists the last few versions of the device configuration in descending
+     * order (i.e.: newest first).
+     * 
+ */ + public void listDeviceConfigVersions(com.google.cloud.iot.v1.ListDeviceConfigVersionsRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getListDeviceConfigVersionsMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Lists the last few versions of the device state in descending order (i.e.:
+     * newest first).
+     * 
+ */ + public void listDeviceStates(com.google.cloud.iot.v1.ListDeviceStatesRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getListDeviceStatesMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Sets the access control policy on the specified resource. Replaces any
+     * existing policy.
+     * 
+ */ + public void setIamPolicy(com.google.iam.v1.SetIamPolicyRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getSetIamPolicyMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Gets the access control policy for a resource.
+     * Returns an empty policy if the resource exists and does not have a policy
+     * set.
+     * 
+ */ + public void getIamPolicy(com.google.iam.v1.GetIamPolicyRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getGetIamPolicyMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Returns permissions that a caller has on the specified resource.
+     * If the resource does not exist, this will return an empty set of
+     * permissions, not a NOT_FOUND error.
+     * 
+ */ + public void testIamPermissions(com.google.iam.v1.TestIamPermissionsRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getTestIamPermissionsMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Sends a command to the specified device. In order for a device to be able
+     * to receive commands, it must:
+     * 1) be connected to Cloud IoT Core using the MQTT protocol, and
+     * 2) be subscribed to the group of MQTT topics specified by
+     *    /devices/{device-id}/commands/#. This subscription will receive commands
+     *    at the top-level topic /devices/{device-id}/commands as well as commands
+     *    for subfolders, like /devices/{device-id}/commands/subfolder.
+     *    Note that subscribing to specific subfolders is not supported.
+     * If the command could not be delivered to the device, this method will
+     * return an error; in particular, if the device is not subscribed, this
+     * method will return FAILED_PRECONDITION. Otherwise, this method will
+     * return OK. If the subscription is QoS 1, at least once delivery will be
+     * guaranteed; for QoS 0, no acknowledgment will be expected from the device.
+     * 
+ */ + public void sendCommandToDevice(com.google.cloud.iot.v1.SendCommandToDeviceRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getSendCommandToDeviceMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Associates the device with the gateway.
+     * 
+ */ + public void bindDeviceToGateway(com.google.cloud.iot.v1.BindDeviceToGatewayRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getBindDeviceToGatewayMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Deletes the association between the device and the gateway.
+     * 
+ */ + public void unbindDeviceFromGateway(com.google.cloud.iot.v1.UnbindDeviceFromGatewayRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getUnbindDeviceFromGatewayMethod(), getCallOptions()), request, responseObserver); + } + } + + /** + *
+   * Internet of Things (IoT) service. Securely connect and manage IoT devices.
+   * 
+ */ + public static final class DeviceManagerBlockingStub extends io.grpc.stub.AbstractBlockingStub { + private DeviceManagerBlockingStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected DeviceManagerBlockingStub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new DeviceManagerBlockingStub(channel, callOptions); + } + + /** + *
+     * Creates a device registry that contains devices.
+     * 
+ */ + public com.google.cloud.iot.v1.DeviceRegistry createDeviceRegistry(com.google.cloud.iot.v1.CreateDeviceRegistryRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getCreateDeviceRegistryMethod(), getCallOptions(), request); + } + + /** + *
+     * Gets a device registry configuration.
+     * 
+ */ + public com.google.cloud.iot.v1.DeviceRegistry getDeviceRegistry(com.google.cloud.iot.v1.GetDeviceRegistryRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getGetDeviceRegistryMethod(), getCallOptions(), request); + } + + /** + *
+     * Updates a device registry configuration.
+     * 
+ */ + public com.google.cloud.iot.v1.DeviceRegistry updateDeviceRegistry(com.google.cloud.iot.v1.UpdateDeviceRegistryRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getUpdateDeviceRegistryMethod(), getCallOptions(), request); + } + + /** + *
+     * Deletes a device registry configuration.
+     * 
+ */ + public com.google.protobuf.Empty deleteDeviceRegistry(com.google.cloud.iot.v1.DeleteDeviceRegistryRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getDeleteDeviceRegistryMethod(), getCallOptions(), request); + } + + /** + *
+     * Lists device registries.
+     * 
+ */ + public com.google.cloud.iot.v1.ListDeviceRegistriesResponse listDeviceRegistries(com.google.cloud.iot.v1.ListDeviceRegistriesRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getListDeviceRegistriesMethod(), getCallOptions(), request); + } + + /** + *
+     * Creates a device in a device registry.
+     * 
+ */ + public com.google.cloud.iot.v1.Device createDevice(com.google.cloud.iot.v1.CreateDeviceRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getCreateDeviceMethod(), getCallOptions(), request); + } + + /** + *
+     * Gets details about a device.
+     * 
+ */ + public com.google.cloud.iot.v1.Device getDevice(com.google.cloud.iot.v1.GetDeviceRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getGetDeviceMethod(), getCallOptions(), request); + } + + /** + *
+     * Updates a device.
+     * 
+ */ + public com.google.cloud.iot.v1.Device updateDevice(com.google.cloud.iot.v1.UpdateDeviceRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getUpdateDeviceMethod(), getCallOptions(), request); + } + + /** + *
+     * Deletes a device.
+     * 
+ */ + public com.google.protobuf.Empty deleteDevice(com.google.cloud.iot.v1.DeleteDeviceRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getDeleteDeviceMethod(), getCallOptions(), request); + } + + /** + *
+     * List devices in a device registry.
+     * 
+ */ + public com.google.cloud.iot.v1.ListDevicesResponse listDevices(com.google.cloud.iot.v1.ListDevicesRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getListDevicesMethod(), getCallOptions(), request); + } + + /** + *
+     * Modifies the configuration for the device, which is eventually sent from
+     * the Cloud IoT Core servers. Returns the modified configuration version and
+     * its metadata.
+     * 
+ */ + public com.google.cloud.iot.v1.DeviceConfig modifyCloudToDeviceConfig(com.google.cloud.iot.v1.ModifyCloudToDeviceConfigRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getModifyCloudToDeviceConfigMethod(), getCallOptions(), request); + } + + /** + *
+     * Lists the last few versions of the device configuration in descending
+     * order (i.e.: newest first).
+     * 
+ */ + public com.google.cloud.iot.v1.ListDeviceConfigVersionsResponse listDeviceConfigVersions(com.google.cloud.iot.v1.ListDeviceConfigVersionsRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getListDeviceConfigVersionsMethod(), getCallOptions(), request); + } + + /** + *
+     * Lists the last few versions of the device state in descending order (i.e.:
+     * newest first).
+     * 
+ */ + public com.google.cloud.iot.v1.ListDeviceStatesResponse listDeviceStates(com.google.cloud.iot.v1.ListDeviceStatesRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getListDeviceStatesMethod(), getCallOptions(), request); + } + + /** + *
+     * Sets the access control policy on the specified resource. Replaces any
+     * existing policy.
+     * 
+ */ + public com.google.iam.v1.Policy setIamPolicy(com.google.iam.v1.SetIamPolicyRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getSetIamPolicyMethod(), getCallOptions(), request); + } + + /** + *
+     * Gets the access control policy for a resource.
+     * Returns an empty policy if the resource exists and does not have a policy
+     * set.
+     * 
+ */ + public com.google.iam.v1.Policy getIamPolicy(com.google.iam.v1.GetIamPolicyRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getGetIamPolicyMethod(), getCallOptions(), request); + } + + /** + *
+     * Returns permissions that a caller has on the specified resource.
+     * If the resource does not exist, this will return an empty set of
+     * permissions, not a NOT_FOUND error.
+     * 
+ */ + public com.google.iam.v1.TestIamPermissionsResponse testIamPermissions(com.google.iam.v1.TestIamPermissionsRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getTestIamPermissionsMethod(), getCallOptions(), request); + } + + /** + *
+     * Sends a command to the specified device. In order for a device to be able
+     * to receive commands, it must:
+     * 1) be connected to Cloud IoT Core using the MQTT protocol, and
+     * 2) be subscribed to the group of MQTT topics specified by
+     *    /devices/{device-id}/commands/#. This subscription will receive commands
+     *    at the top-level topic /devices/{device-id}/commands as well as commands
+     *    for subfolders, like /devices/{device-id}/commands/subfolder.
+     *    Note that subscribing to specific subfolders is not supported.
+     * If the command could not be delivered to the device, this method will
+     * return an error; in particular, if the device is not subscribed, this
+     * method will return FAILED_PRECONDITION. Otherwise, this method will
+     * return OK. If the subscription is QoS 1, at least once delivery will be
+     * guaranteed; for QoS 0, no acknowledgment will be expected from the device.
+     * 
+ */ + public com.google.cloud.iot.v1.SendCommandToDeviceResponse sendCommandToDevice(com.google.cloud.iot.v1.SendCommandToDeviceRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getSendCommandToDeviceMethod(), getCallOptions(), request); + } + + /** + *
+     * Associates the device with the gateway.
+     * 
+ */ + public com.google.cloud.iot.v1.BindDeviceToGatewayResponse bindDeviceToGateway(com.google.cloud.iot.v1.BindDeviceToGatewayRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getBindDeviceToGatewayMethod(), getCallOptions(), request); + } + + /** + *
+     * Deletes the association between the device and the gateway.
+     * 
+ */ + public com.google.cloud.iot.v1.UnbindDeviceFromGatewayResponse unbindDeviceFromGateway(com.google.cloud.iot.v1.UnbindDeviceFromGatewayRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getUnbindDeviceFromGatewayMethod(), getCallOptions(), request); + } + } + + /** + *
+   * Internet of Things (IoT) service. Securely connect and manage IoT devices.
+   * 
+ */ + public static final class DeviceManagerFutureStub extends io.grpc.stub.AbstractFutureStub { + private DeviceManagerFutureStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected DeviceManagerFutureStub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new DeviceManagerFutureStub(channel, callOptions); + } + + /** + *
+     * Creates a device registry that contains devices.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture createDeviceRegistry( + com.google.cloud.iot.v1.CreateDeviceRegistryRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getCreateDeviceRegistryMethod(), getCallOptions()), request); + } + + /** + *
+     * Gets a device registry configuration.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture getDeviceRegistry( + com.google.cloud.iot.v1.GetDeviceRegistryRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getGetDeviceRegistryMethod(), getCallOptions()), request); + } + + /** + *
+     * Updates a device registry configuration.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture updateDeviceRegistry( + com.google.cloud.iot.v1.UpdateDeviceRegistryRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getUpdateDeviceRegistryMethod(), getCallOptions()), request); + } + + /** + *
+     * Deletes a device registry configuration.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture deleteDeviceRegistry( + com.google.cloud.iot.v1.DeleteDeviceRegistryRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getDeleteDeviceRegistryMethod(), getCallOptions()), request); + } + + /** + *
+     * Lists device registries.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture listDeviceRegistries( + com.google.cloud.iot.v1.ListDeviceRegistriesRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getListDeviceRegistriesMethod(), getCallOptions()), request); + } + + /** + *
+     * Creates a device in a device registry.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture createDevice( + com.google.cloud.iot.v1.CreateDeviceRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getCreateDeviceMethod(), getCallOptions()), request); + } + + /** + *
+     * Gets details about a device.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture getDevice( + com.google.cloud.iot.v1.GetDeviceRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getGetDeviceMethod(), getCallOptions()), request); + } + + /** + *
+     * Updates a device.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture updateDevice( + com.google.cloud.iot.v1.UpdateDeviceRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getUpdateDeviceMethod(), getCallOptions()), request); + } + + /** + *
+     * Deletes a device.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture deleteDevice( + com.google.cloud.iot.v1.DeleteDeviceRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getDeleteDeviceMethod(), getCallOptions()), request); + } + + /** + *
+     * List devices in a device registry.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture listDevices( + com.google.cloud.iot.v1.ListDevicesRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getListDevicesMethod(), getCallOptions()), request); + } + + /** + *
+     * Modifies the configuration for the device, which is eventually sent from
+     * the Cloud IoT Core servers. Returns the modified configuration version and
+     * its metadata.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture modifyCloudToDeviceConfig( + com.google.cloud.iot.v1.ModifyCloudToDeviceConfigRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getModifyCloudToDeviceConfigMethod(), getCallOptions()), request); + } + + /** + *
+     * Lists the last few versions of the device configuration in descending
+     * order (i.e.: newest first).
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture listDeviceConfigVersions( + com.google.cloud.iot.v1.ListDeviceConfigVersionsRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getListDeviceConfigVersionsMethod(), getCallOptions()), request); + } + + /** + *
+     * Lists the last few versions of the device state in descending order (i.e.:
+     * newest first).
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture listDeviceStates( + com.google.cloud.iot.v1.ListDeviceStatesRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getListDeviceStatesMethod(), getCallOptions()), request); + } + + /** + *
+     * Sets the access control policy on the specified resource. Replaces any
+     * existing policy.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture setIamPolicy( + com.google.iam.v1.SetIamPolicyRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getSetIamPolicyMethod(), getCallOptions()), request); + } + + /** + *
+     * Gets the access control policy for a resource.
+     * Returns an empty policy if the resource exists and does not have a policy
+     * set.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture getIamPolicy( + com.google.iam.v1.GetIamPolicyRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getGetIamPolicyMethod(), getCallOptions()), request); + } + + /** + *
+     * Returns permissions that a caller has on the specified resource.
+     * If the resource does not exist, this will return an empty set of
+     * permissions, not a NOT_FOUND error.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture testIamPermissions( + com.google.iam.v1.TestIamPermissionsRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getTestIamPermissionsMethod(), getCallOptions()), request); + } + + /** + *
+     * Sends a command to the specified device. In order for a device to be able
+     * to receive commands, it must:
+     * 1) be connected to Cloud IoT Core using the MQTT protocol, and
+     * 2) be subscribed to the group of MQTT topics specified by
+     *    /devices/{device-id}/commands/#. This subscription will receive commands
+     *    at the top-level topic /devices/{device-id}/commands as well as commands
+     *    for subfolders, like /devices/{device-id}/commands/subfolder.
+     *    Note that subscribing to specific subfolders is not supported.
+     * If the command could not be delivered to the device, this method will
+     * return an error; in particular, if the device is not subscribed, this
+     * method will return FAILED_PRECONDITION. Otherwise, this method will
+     * return OK. If the subscription is QoS 1, at least once delivery will be
+     * guaranteed; for QoS 0, no acknowledgment will be expected from the device.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture sendCommandToDevice( + com.google.cloud.iot.v1.SendCommandToDeviceRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getSendCommandToDeviceMethod(), getCallOptions()), request); + } + + /** + *
+     * Associates the device with the gateway.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture bindDeviceToGateway( + com.google.cloud.iot.v1.BindDeviceToGatewayRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getBindDeviceToGatewayMethod(), getCallOptions()), request); + } + + /** + *
+     * Deletes the association between the device and the gateway.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture unbindDeviceFromGateway( + com.google.cloud.iot.v1.UnbindDeviceFromGatewayRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getUnbindDeviceFromGatewayMethod(), getCallOptions()), request); + } + } + + private static final int METHODID_CREATE_DEVICE_REGISTRY = 0; + private static final int METHODID_GET_DEVICE_REGISTRY = 1; + private static final int METHODID_UPDATE_DEVICE_REGISTRY = 2; + private static final int METHODID_DELETE_DEVICE_REGISTRY = 3; + private static final int METHODID_LIST_DEVICE_REGISTRIES = 4; + private static final int METHODID_CREATE_DEVICE = 5; + private static final int METHODID_GET_DEVICE = 6; + private static final int METHODID_UPDATE_DEVICE = 7; + private static final int METHODID_DELETE_DEVICE = 8; + private static final int METHODID_LIST_DEVICES = 9; + private static final int METHODID_MODIFY_CLOUD_TO_DEVICE_CONFIG = 10; + private static final int METHODID_LIST_DEVICE_CONFIG_VERSIONS = 11; + private static final int METHODID_LIST_DEVICE_STATES = 12; + private static final int METHODID_SET_IAM_POLICY = 13; + private static final int METHODID_GET_IAM_POLICY = 14; + private static final int METHODID_TEST_IAM_PERMISSIONS = 15; + private static final int METHODID_SEND_COMMAND_TO_DEVICE = 16; + private static final int METHODID_BIND_DEVICE_TO_GATEWAY = 17; + private static final int METHODID_UNBIND_DEVICE_FROM_GATEWAY = 18; + + 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 DeviceManagerImplBase serviceImpl; + private final int methodId; + + MethodHandlers(DeviceManagerImplBase 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_CREATE_DEVICE_REGISTRY: + serviceImpl.createDeviceRegistry((com.google.cloud.iot.v1.CreateDeviceRegistryRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_GET_DEVICE_REGISTRY: + serviceImpl.getDeviceRegistry((com.google.cloud.iot.v1.GetDeviceRegistryRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_UPDATE_DEVICE_REGISTRY: + serviceImpl.updateDeviceRegistry((com.google.cloud.iot.v1.UpdateDeviceRegistryRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_DELETE_DEVICE_REGISTRY: + serviceImpl.deleteDeviceRegistry((com.google.cloud.iot.v1.DeleteDeviceRegistryRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_LIST_DEVICE_REGISTRIES: + serviceImpl.listDeviceRegistries((com.google.cloud.iot.v1.ListDeviceRegistriesRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_CREATE_DEVICE: + serviceImpl.createDevice((com.google.cloud.iot.v1.CreateDeviceRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_GET_DEVICE: + serviceImpl.getDevice((com.google.cloud.iot.v1.GetDeviceRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_UPDATE_DEVICE: + serviceImpl.updateDevice((com.google.cloud.iot.v1.UpdateDeviceRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_DELETE_DEVICE: + serviceImpl.deleteDevice((com.google.cloud.iot.v1.DeleteDeviceRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_LIST_DEVICES: + serviceImpl.listDevices((com.google.cloud.iot.v1.ListDevicesRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_MODIFY_CLOUD_TO_DEVICE_CONFIG: + serviceImpl.modifyCloudToDeviceConfig((com.google.cloud.iot.v1.ModifyCloudToDeviceConfigRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_LIST_DEVICE_CONFIG_VERSIONS: + serviceImpl.listDeviceConfigVersions((com.google.cloud.iot.v1.ListDeviceConfigVersionsRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_LIST_DEVICE_STATES: + serviceImpl.listDeviceStates((com.google.cloud.iot.v1.ListDeviceStatesRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_SET_IAM_POLICY: + serviceImpl.setIamPolicy((com.google.iam.v1.SetIamPolicyRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_GET_IAM_POLICY: + serviceImpl.getIamPolicy((com.google.iam.v1.GetIamPolicyRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_TEST_IAM_PERMISSIONS: + serviceImpl.testIamPermissions((com.google.iam.v1.TestIamPermissionsRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_SEND_COMMAND_TO_DEVICE: + serviceImpl.sendCommandToDevice((com.google.cloud.iot.v1.SendCommandToDeviceRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_BIND_DEVICE_TO_GATEWAY: + serviceImpl.bindDeviceToGateway((com.google.cloud.iot.v1.BindDeviceToGatewayRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_UNBIND_DEVICE_FROM_GATEWAY: + serviceImpl.unbindDeviceFromGateway((com.google.cloud.iot.v1.UnbindDeviceFromGatewayRequest) 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 DeviceManagerBaseDescriptorSupplier + implements io.grpc.protobuf.ProtoFileDescriptorSupplier, io.grpc.protobuf.ProtoServiceDescriptorSupplier { + DeviceManagerBaseDescriptorSupplier() {} + + @java.lang.Override + public com.google.protobuf.Descriptors.FileDescriptor getFileDescriptor() { + return com.google.cloud.iot.v1.DeviceManagerProto.getDescriptor(); + } + + @java.lang.Override + public com.google.protobuf.Descriptors.ServiceDescriptor getServiceDescriptor() { + return getFileDescriptor().findServiceByName("DeviceManager"); + } + } + + private static final class DeviceManagerFileDescriptorSupplier + extends DeviceManagerBaseDescriptorSupplier { + DeviceManagerFileDescriptorSupplier() {} + } + + private static final class DeviceManagerMethodDescriptorSupplier + extends DeviceManagerBaseDescriptorSupplier + implements io.grpc.protobuf.ProtoMethodDescriptorSupplier { + private final String methodName; + + DeviceManagerMethodDescriptorSupplier(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 (DeviceManagerGrpc.class) { + result = serviceDescriptor; + if (result == null) { + serviceDescriptor = result = io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) + .setSchemaDescriptor(new DeviceManagerFileDescriptorSupplier()) + .addMethod(getCreateDeviceRegistryMethod()) + .addMethod(getGetDeviceRegistryMethod()) + .addMethod(getUpdateDeviceRegistryMethod()) + .addMethod(getDeleteDeviceRegistryMethod()) + .addMethod(getListDeviceRegistriesMethod()) + .addMethod(getCreateDeviceMethod()) + .addMethod(getGetDeviceMethod()) + .addMethod(getUpdateDeviceMethod()) + .addMethod(getDeleteDeviceMethod()) + .addMethod(getListDevicesMethod()) + .addMethod(getModifyCloudToDeviceConfigMethod()) + .addMethod(getListDeviceConfigVersionsMethod()) + .addMethod(getListDeviceStatesMethod()) + .addMethod(getSetIamPolicyMethod()) + .addMethod(getGetIamPolicyMethod()) + .addMethod(getTestIamPermissionsMethod()) + .addMethod(getSendCommandToDeviceMethod()) + .addMethod(getBindDeviceToGatewayMethod()) + .addMethod(getUnbindDeviceFromGatewayMethod()) + .build(); + } + } + } + return result; + } +} diff --git a/proto-google-cloud-iot-v1/src/main/java/com/google/cloud/iot/v1/BindDeviceToGatewayRequest.java b/owl-bot-staging/v1/proto-google-cloud-iot-v1/src/main/java/com/google/cloud/iot/v1/BindDeviceToGatewayRequest.java similarity index 70% rename from proto-google-cloud-iot-v1/src/main/java/com/google/cloud/iot/v1/BindDeviceToGatewayRequest.java rename to owl-bot-staging/v1/proto-google-cloud-iot-v1/src/main/java/com/google/cloud/iot/v1/BindDeviceToGatewayRequest.java index 572703bf..646c3ce6 100644 --- a/proto-google-cloud-iot-v1/src/main/java/com/google/cloud/iot/v1/BindDeviceToGatewayRequest.java +++ b/owl-bot-staging/v1/proto-google-cloud-iot-v1/src/main/java/com/google/cloud/iot/v1/BindDeviceToGatewayRequest.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/iot/v1/device_manager.proto package com.google.cloud.iot.v1; /** - * - * *
  * Request for `BindDeviceToGateway`.
  * 
* * Protobuf type {@code google.cloud.iot.v1.BindDeviceToGatewayRequest} */ -public final class BindDeviceToGatewayRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class BindDeviceToGatewayRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.iot.v1.BindDeviceToGatewayRequest) BindDeviceToGatewayRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use BindDeviceToGatewayRequest.newBuilder() to construct. private BindDeviceToGatewayRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private BindDeviceToGatewayRequest() { parent_ = ""; gatewayId_ = ""; @@ -45,15 +27,16 @@ private BindDeviceToGatewayRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new BindDeviceToGatewayRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private BindDeviceToGatewayRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -72,34 +55,31 @@ private BindDeviceToGatewayRequest( 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(); - gatewayId_ = s; - break; - } - case 26: - { - java.lang.String s = input.readStringRequireUtf8(); + gatewayId_ = s; + break; + } + case 26: { + java.lang.String s = input.readStringRequireUtf8(); - deviceId_ = s; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + deviceId_ = s; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -107,42 +87,35 @@ private BindDeviceToGatewayRequest( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.iot.v1.DeviceManagerProto - .internal_static_google_cloud_iot_v1_BindDeviceToGatewayRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.iot.v1.DeviceManagerProto.internal_static_google_cloud_iot_v1_BindDeviceToGatewayRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.iot.v1.DeviceManagerProto - .internal_static_google_cloud_iot_v1_BindDeviceToGatewayRequest_fieldAccessorTable + return com.google.cloud.iot.v1.DeviceManagerProto.internal_static_google_cloud_iot_v1_BindDeviceToGatewayRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.iot.v1.BindDeviceToGatewayRequest.class, - com.google.cloud.iot.v1.BindDeviceToGatewayRequest.Builder.class); + com.google.cloud.iot.v1.BindDeviceToGatewayRequest.class, com.google.cloud.iot.v1.BindDeviceToGatewayRequest.Builder.class); } public static final int PARENT_FIELD_NUMBER = 1; private volatile java.lang.Object parent_; /** - * - * *
    * Required. The name of the registry. For example,
    * `projects/example-project/locations/us-central1/registries/my-registry`.
    * 
* - * - * string parent = 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 @@ -151,32 +124,30 @@ public java.lang.String getParent() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; } } /** - * - * *
    * Required. The name of the registry. For example,
    * `projects/example-project/locations/us-central1/registries/my-registry`.
    * 
* - * - * string parent = 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 { @@ -187,15 +158,12 @@ public com.google.protobuf.ByteString getParentBytes() { public static final int GATEWAY_ID_FIELD_NUMBER = 2; private volatile java.lang.Object gatewayId_; /** - * - * *
    * Required. The value of `gateway_id` can be either the device numeric ID or the
    * user-defined device identifier.
    * 
* * string gateway_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The gatewayId. */ @java.lang.Override @@ -204,30 +172,30 @@ public java.lang.String getGatewayId() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); gatewayId_ = s; return s; } } /** - * - * *
    * Required. The value of `gateway_id` can be either the device numeric ID or the
    * user-defined device identifier.
    * 
* * string gateway_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for gatewayId. */ @java.lang.Override - public com.google.protobuf.ByteString getGatewayIdBytes() { + public com.google.protobuf.ByteString + getGatewayIdBytes() { java.lang.Object ref = gatewayId_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); gatewayId_ = b; return b; } else { @@ -238,8 +206,6 @@ public com.google.protobuf.ByteString getGatewayIdBytes() { public static final int DEVICE_ID_FIELD_NUMBER = 3; private volatile java.lang.Object deviceId_; /** - * - * *
    * Required. The device to associate with the specified gateway. The value of
    * `device_id` can be either the device numeric ID or the user-defined device
@@ -247,7 +213,6 @@ public com.google.protobuf.ByteString getGatewayIdBytes() {
    * 
* * string device_id = 3 [(.google.api.field_behavior) = REQUIRED]; - * * @return The deviceId. */ @java.lang.Override @@ -256,15 +221,14 @@ public java.lang.String getDeviceId() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); deviceId_ = s; return s; } } /** - * - * *
    * Required. The device to associate with the specified gateway. The value of
    * `device_id` can be either the device numeric ID or the user-defined device
@@ -272,15 +236,16 @@ public java.lang.String getDeviceId() {
    * 
* * string device_id = 3 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for deviceId. */ @java.lang.Override - public com.google.protobuf.ByteString getDeviceIdBytes() { + public com.google.protobuf.ByteString + getDeviceIdBytes() { java.lang.Object ref = deviceId_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); deviceId_ = b; return b; } else { @@ -289,7 +254,6 @@ public com.google.protobuf.ByteString getDeviceIdBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -301,7 +265,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_); } @@ -337,17 +302,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.iot.v1.BindDeviceToGatewayRequest)) { return super.equals(obj); } - com.google.cloud.iot.v1.BindDeviceToGatewayRequest other = - (com.google.cloud.iot.v1.BindDeviceToGatewayRequest) obj; + com.google.cloud.iot.v1.BindDeviceToGatewayRequest other = (com.google.cloud.iot.v1.BindDeviceToGatewayRequest) obj; - if (!getParent().equals(other.getParent())) return false; - if (!getGatewayId().equals(other.getGatewayId())) return false; - if (!getDeviceId().equals(other.getDeviceId())) return false; + if (!getParent() + .equals(other.getParent())) return false; + if (!getGatewayId() + .equals(other.getGatewayId())) return false; + if (!getDeviceId() + .equals(other.getDeviceId())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -371,126 +338,117 @@ public int hashCode() { } public static com.google.cloud.iot.v1.BindDeviceToGatewayRequest parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.iot.v1.BindDeviceToGatewayRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.iot.v1.BindDeviceToGatewayRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.iot.v1.BindDeviceToGatewayRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.iot.v1.BindDeviceToGatewayRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.iot.v1.BindDeviceToGatewayRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.iot.v1.BindDeviceToGatewayRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.iot.v1.BindDeviceToGatewayRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.iot.v1.BindDeviceToGatewayRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.iot.v1.BindDeviceToGatewayRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.iot.v1.BindDeviceToGatewayRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.iot.v1.BindDeviceToGatewayRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.iot.v1.BindDeviceToGatewayRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.iot.v1.BindDeviceToGatewayRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.iot.v1.BindDeviceToGatewayRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected 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 `BindDeviceToGateway`.
    * 
* * Protobuf type {@code google.cloud.iot.v1.BindDeviceToGatewayRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.iot.v1.BindDeviceToGatewayRequest) com.google.cloud.iot.v1.BindDeviceToGatewayRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.iot.v1.DeviceManagerProto - .internal_static_google_cloud_iot_v1_BindDeviceToGatewayRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.iot.v1.DeviceManagerProto.internal_static_google_cloud_iot_v1_BindDeviceToGatewayRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.iot.v1.DeviceManagerProto - .internal_static_google_cloud_iot_v1_BindDeviceToGatewayRequest_fieldAccessorTable + return com.google.cloud.iot.v1.DeviceManagerProto.internal_static_google_cloud_iot_v1_BindDeviceToGatewayRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.iot.v1.BindDeviceToGatewayRequest.class, - com.google.cloud.iot.v1.BindDeviceToGatewayRequest.Builder.class); + com.google.cloud.iot.v1.BindDeviceToGatewayRequest.class, com.google.cloud.iot.v1.BindDeviceToGatewayRequest.Builder.class); } // Construct using com.google.cloud.iot.v1.BindDeviceToGatewayRequest.newBuilder() @@ -498,15 +456,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(); @@ -520,9 +479,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.iot.v1.DeviceManagerProto - .internal_static_google_cloud_iot_v1_BindDeviceToGatewayRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.iot.v1.DeviceManagerProto.internal_static_google_cloud_iot_v1_BindDeviceToGatewayRequest_descriptor; } @java.lang.Override @@ -541,8 +500,7 @@ public com.google.cloud.iot.v1.BindDeviceToGatewayRequest build() { @java.lang.Override public com.google.cloud.iot.v1.BindDeviceToGatewayRequest buildPartial() { - com.google.cloud.iot.v1.BindDeviceToGatewayRequest result = - new com.google.cloud.iot.v1.BindDeviceToGatewayRequest(this); + com.google.cloud.iot.v1.BindDeviceToGatewayRequest result = new com.google.cloud.iot.v1.BindDeviceToGatewayRequest(this); result.parent_ = parent_; result.gatewayId_ = gatewayId_; result.deviceId_ = deviceId_; @@ -554,39 +512,38 @@ public com.google.cloud.iot.v1.BindDeviceToGatewayRequest buildPartial() { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.iot.v1.BindDeviceToGatewayRequest) { - return mergeFrom((com.google.cloud.iot.v1.BindDeviceToGatewayRequest) other); + return mergeFrom((com.google.cloud.iot.v1.BindDeviceToGatewayRequest)other); } else { super.mergeFrom(other); return this; @@ -594,8 +551,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.iot.v1.BindDeviceToGatewayRequest other) { - if (other == com.google.cloud.iot.v1.BindDeviceToGatewayRequest.getDefaultInstance()) - return this; + if (other == com.google.cloud.iot.v1.BindDeviceToGatewayRequest.getDefaultInstance()) return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; onChanged(); @@ -627,8 +583,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.iot.v1.BindDeviceToGatewayRequest) e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.iot.v1.BindDeviceToGatewayRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -640,23 +595,19 @@ public Builder mergeFrom( private java.lang.Object parent_ = ""; /** - * - * *
      * Required. The name of the registry. For example,
      * `projects/example-project/locations/us-central1/registries/my-registry`.
      * 
* - * - * string parent = 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; @@ -665,24 +616,21 @@ public java.lang.String getParent() { } } /** - * - * *
      * Required. The name of the registry. For example,
      * `projects/example-project/locations/us-central1/registries/my-registry`.
      * 
* - * - * string parent = 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 { @@ -690,70 +638,57 @@ public com.google.protobuf.ByteString getParentBytes() { } } /** - * - * *
      * Required. The name of the registry. For example,
      * `projects/example-project/locations/us-central1/registries/my-registry`.
      * 
* - * - * 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 name of the registry. For example,
      * `projects/example-project/locations/us-central1/registries/my-registry`.
      * 
* - * - * string 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 name of the registry. For example,
      * `projects/example-project/locations/us-central1/registries/my-registry`.
      * 
* - * - * 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; @@ -761,21 +696,19 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { private java.lang.Object gatewayId_ = ""; /** - * - * *
      * Required. The value of `gateway_id` can be either the device numeric ID or the
      * user-defined device identifier.
      * 
* * string gateway_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The gatewayId. */ public java.lang.String getGatewayId() { java.lang.Object ref = gatewayId_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); gatewayId_ = s; return s; @@ -784,22 +717,21 @@ public java.lang.String getGatewayId() { } } /** - * - * *
      * Required. The value of `gateway_id` can be either the device numeric ID or the
      * user-defined device identifier.
      * 
* * string gateway_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for gatewayId. */ - public com.google.protobuf.ByteString getGatewayIdBytes() { + public com.google.protobuf.ByteString + getGatewayIdBytes() { java.lang.Object ref = gatewayId_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); gatewayId_ = b; return b; } else { @@ -807,64 +739,57 @@ public com.google.protobuf.ByteString getGatewayIdBytes() { } } /** - * - * *
      * Required. The value of `gateway_id` can be either the device numeric ID or the
      * user-defined device identifier.
      * 
* * string gateway_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The gatewayId to set. * @return This builder for chaining. */ - public Builder setGatewayId(java.lang.String value) { + public Builder setGatewayId( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + gatewayId_ = value; onChanged(); return this; } /** - * - * *
      * Required. The value of `gateway_id` can be either the device numeric ID or the
      * user-defined device identifier.
      * 
* * string gateway_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return This builder for chaining. */ public Builder clearGatewayId() { - + gatewayId_ = getDefaultInstance().getGatewayId(); onChanged(); return this; } /** - * - * *
      * Required. The value of `gateway_id` can be either the device numeric ID or the
      * user-defined device identifier.
      * 
* * string gateway_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The bytes for gatewayId to set. * @return This builder for chaining. */ - public Builder setGatewayIdBytes(com.google.protobuf.ByteString value) { + public Builder setGatewayIdBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + gatewayId_ = value; onChanged(); return this; @@ -872,8 +797,6 @@ public Builder setGatewayIdBytes(com.google.protobuf.ByteString value) { private java.lang.Object deviceId_ = ""; /** - * - * *
      * Required. The device to associate with the specified gateway. The value of
      * `device_id` can be either the device numeric ID or the user-defined device
@@ -881,13 +804,13 @@ public Builder setGatewayIdBytes(com.google.protobuf.ByteString value) {
      * 
* * string device_id = 3 [(.google.api.field_behavior) = REQUIRED]; - * * @return The deviceId. */ public java.lang.String getDeviceId() { java.lang.Object ref = deviceId_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); deviceId_ = s; return s; @@ -896,8 +819,6 @@ public java.lang.String getDeviceId() { } } /** - * - * *
      * Required. The device to associate with the specified gateway. The value of
      * `device_id` can be either the device numeric ID or the user-defined device
@@ -905,14 +826,15 @@ public java.lang.String getDeviceId() {
      * 
* * string device_id = 3 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for deviceId. */ - public com.google.protobuf.ByteString getDeviceIdBytes() { + public com.google.protobuf.ByteString + getDeviceIdBytes() { java.lang.Object ref = deviceId_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); deviceId_ = b; return b; } else { @@ -920,8 +842,6 @@ public com.google.protobuf.ByteString getDeviceIdBytes() { } } /** - * - * *
      * Required. The device to associate with the specified gateway. The value of
      * `device_id` can be either the device numeric ID or the user-defined device
@@ -929,22 +849,20 @@ public com.google.protobuf.ByteString getDeviceIdBytes() {
      * 
* * string device_id = 3 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The deviceId to set. * @return This builder for chaining. */ - public Builder setDeviceId(java.lang.String value) { + public Builder setDeviceId( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + deviceId_ = value; onChanged(); return this; } /** - * - * *
      * Required. The device to associate with the specified gateway. The value of
      * `device_id` can be either the device numeric ID or the user-defined device
@@ -952,18 +870,15 @@ public Builder setDeviceId(java.lang.String value) {
      * 
* * string device_id = 3 [(.google.api.field_behavior) = REQUIRED]; - * * @return This builder for chaining. */ public Builder clearDeviceId() { - + deviceId_ = getDefaultInstance().getDeviceId(); onChanged(); return this; } /** - * - * *
      * Required. The device to associate with the specified gateway. The value of
      * `device_id` can be either the device numeric ID or the user-defined device
@@ -971,23 +886,23 @@ public Builder clearDeviceId() {
      * 
* * string device_id = 3 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The bytes for deviceId to set. * @return This builder for chaining. */ - public Builder setDeviceIdBytes(com.google.protobuf.ByteString value) { + public Builder setDeviceIdBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + deviceId_ = value; onChanged(); return this; } - @java.lang.Override - 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 +912,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.iot.v1.BindDeviceToGatewayRequest) } // @@protoc_insertion_point(class_scope:google.cloud.iot.v1.BindDeviceToGatewayRequest) private static final com.google.cloud.iot.v1.BindDeviceToGatewayRequest DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.iot.v1.BindDeviceToGatewayRequest(); } @@ -1011,16 +926,16 @@ public static com.google.cloud.iot.v1.BindDeviceToGatewayRequest getDefaultInsta return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public BindDeviceToGatewayRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new BindDeviceToGatewayRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public BindDeviceToGatewayRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new BindDeviceToGatewayRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1035,4 +950,6 @@ public com.google.protobuf.Parser getParserForType() public com.google.cloud.iot.v1.BindDeviceToGatewayRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-iot-v1/src/main/java/com/google/cloud/iot/v1/BindDeviceToGatewayRequestOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-iot-v1/src/main/java/com/google/cloud/iot/v1/BindDeviceToGatewayRequestOrBuilder.java similarity index 63% rename from proto-google-cloud-iot-v1/src/main/java/com/google/cloud/iot/v1/BindDeviceToGatewayRequestOrBuilder.java rename to owl-bot-staging/v1/proto-google-cloud-iot-v1/src/main/java/com/google/cloud/iot/v1/BindDeviceToGatewayRequestOrBuilder.java index 4476be56..5bca7cba 100644 --- a/proto-google-cloud-iot-v1/src/main/java/com/google/cloud/iot/v1/BindDeviceToGatewayRequestOrBuilder.java +++ b/owl-bot-staging/v1/proto-google-cloud-iot-v1/src/main/java/com/google/cloud/iot/v1/BindDeviceToGatewayRequestOrBuilder.java @@ -1,89 +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/iot/v1/device_manager.proto package com.google.cloud.iot.v1; -public interface BindDeviceToGatewayRequestOrBuilder - extends +public interface BindDeviceToGatewayRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.iot.v1.BindDeviceToGatewayRequest) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Required. The name of the registry. For example,
    * `projects/example-project/locations/us-central1/registries/my-registry`.
    * 
* - * - * string parent = 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 name of the registry. For example,
    * `projects/example-project/locations/us-central1/registries/my-registry`.
    * 
* - * - * string parent = 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 value of `gateway_id` can be either the device numeric ID or the
    * user-defined device identifier.
    * 
* * string gateway_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The gatewayId. */ java.lang.String getGatewayId(); /** - * - * *
    * Required. The value of `gateway_id` can be either the device numeric ID or the
    * user-defined device identifier.
    * 
* * string gateway_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for gatewayId. */ - com.google.protobuf.ByteString getGatewayIdBytes(); + com.google.protobuf.ByteString + getGatewayIdBytes(); /** - * - * *
    * Required. The device to associate with the specified gateway. The value of
    * `device_id` can be either the device numeric ID or the user-defined device
@@ -91,13 +59,10 @@ public interface BindDeviceToGatewayRequestOrBuilder
    * 
* * string device_id = 3 [(.google.api.field_behavior) = REQUIRED]; - * * @return The deviceId. */ java.lang.String getDeviceId(); /** - * - * *
    * Required. The device to associate with the specified gateway. The value of
    * `device_id` can be either the device numeric ID or the user-defined device
@@ -105,8 +70,8 @@ public interface BindDeviceToGatewayRequestOrBuilder
    * 
* * string device_id = 3 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for deviceId. */ - com.google.protobuf.ByteString getDeviceIdBytes(); + com.google.protobuf.ByteString + getDeviceIdBytes(); } diff --git a/proto-google-cloud-iot-v1/src/main/java/com/google/cloud/iot/v1/BindDeviceToGatewayResponse.java b/owl-bot-staging/v1/proto-google-cloud-iot-v1/src/main/java/com/google/cloud/iot/v1/BindDeviceToGatewayResponse.java similarity index 65% rename from proto-google-cloud-iot-v1/src/main/java/com/google/cloud/iot/v1/BindDeviceToGatewayResponse.java rename to owl-bot-staging/v1/proto-google-cloud-iot-v1/src/main/java/com/google/cloud/iot/v1/BindDeviceToGatewayResponse.java index 40602ac1..7fafea0d 100644 --- a/proto-google-cloud-iot-v1/src/main/java/com/google/cloud/iot/v1/BindDeviceToGatewayResponse.java +++ b/owl-bot-staging/v1/proto-google-cloud-iot-v1/src/main/java/com/google/cloud/iot/v1/BindDeviceToGatewayResponse.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/iot/v1/device_manager.proto package com.google.cloud.iot.v1; /** - * - * *
  * Response for `BindDeviceToGateway`.
  * 
* * Protobuf type {@code google.cloud.iot.v1.BindDeviceToGatewayResponse} */ -public final class BindDeviceToGatewayResponse extends com.google.protobuf.GeneratedMessageV3 - implements +public final class BindDeviceToGatewayResponse extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.iot.v1.BindDeviceToGatewayResponse) BindDeviceToGatewayResponseOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use BindDeviceToGatewayResponse.newBuilder() to construct. private BindDeviceToGatewayResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - - private BindDeviceToGatewayResponse() {} + private BindDeviceToGatewayResponse() { + } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new BindDeviceToGatewayResponse(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private BindDeviceToGatewayResponse( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -68,13 +52,13 @@ private BindDeviceToGatewayResponse( 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) { @@ -82,30 +66,27 @@ private BindDeviceToGatewayResponse( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.iot.v1.DeviceManagerProto - .internal_static_google_cloud_iot_v1_BindDeviceToGatewayResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.iot.v1.DeviceManagerProto.internal_static_google_cloud_iot_v1_BindDeviceToGatewayResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.iot.v1.DeviceManagerProto - .internal_static_google_cloud_iot_v1_BindDeviceToGatewayResponse_fieldAccessorTable + return com.google.cloud.iot.v1.DeviceManagerProto.internal_static_google_cloud_iot_v1_BindDeviceToGatewayResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.iot.v1.BindDeviceToGatewayResponse.class, - com.google.cloud.iot.v1.BindDeviceToGatewayResponse.Builder.class); + com.google.cloud.iot.v1.BindDeviceToGatewayResponse.class, com.google.cloud.iot.v1.BindDeviceToGatewayResponse.Builder.class); } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -117,7 +98,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); } @@ -135,13 +117,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.iot.v1.BindDeviceToGatewayResponse)) { return super.equals(obj); } - com.google.cloud.iot.v1.BindDeviceToGatewayResponse other = - (com.google.cloud.iot.v1.BindDeviceToGatewayResponse) obj; + com.google.cloud.iot.v1.BindDeviceToGatewayResponse other = (com.google.cloud.iot.v1.BindDeviceToGatewayResponse) obj; if (!unknownFields.equals(other.unknownFields)) return false; return true; @@ -160,126 +141,117 @@ public int hashCode() { } public static com.google.cloud.iot.v1.BindDeviceToGatewayResponse parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.iot.v1.BindDeviceToGatewayResponse parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.iot.v1.BindDeviceToGatewayResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.iot.v1.BindDeviceToGatewayResponse parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.iot.v1.BindDeviceToGatewayResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.iot.v1.BindDeviceToGatewayResponse parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.iot.v1.BindDeviceToGatewayResponse parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.iot.v1.BindDeviceToGatewayResponse parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.iot.v1.BindDeviceToGatewayResponse parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.iot.v1.BindDeviceToGatewayResponse parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.iot.v1.BindDeviceToGatewayResponse parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.iot.v1.BindDeviceToGatewayResponse parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.iot.v1.BindDeviceToGatewayResponse parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.iot.v1.BindDeviceToGatewayResponse parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.iot.v1.BindDeviceToGatewayResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected 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 `BindDeviceToGateway`.
    * 
* * Protobuf type {@code google.cloud.iot.v1.BindDeviceToGatewayResponse} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.iot.v1.BindDeviceToGatewayResponse) com.google.cloud.iot.v1.BindDeviceToGatewayResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.iot.v1.DeviceManagerProto - .internal_static_google_cloud_iot_v1_BindDeviceToGatewayResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.iot.v1.DeviceManagerProto.internal_static_google_cloud_iot_v1_BindDeviceToGatewayResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.iot.v1.DeviceManagerProto - .internal_static_google_cloud_iot_v1_BindDeviceToGatewayResponse_fieldAccessorTable + return com.google.cloud.iot.v1.DeviceManagerProto.internal_static_google_cloud_iot_v1_BindDeviceToGatewayResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.iot.v1.BindDeviceToGatewayResponse.class, - com.google.cloud.iot.v1.BindDeviceToGatewayResponse.Builder.class); + com.google.cloud.iot.v1.BindDeviceToGatewayResponse.class, com.google.cloud.iot.v1.BindDeviceToGatewayResponse.Builder.class); } // Construct using com.google.cloud.iot.v1.BindDeviceToGatewayResponse.newBuilder() @@ -287,15 +259,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(); @@ -303,9 +276,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.iot.v1.DeviceManagerProto - .internal_static_google_cloud_iot_v1_BindDeviceToGatewayResponse_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.iot.v1.DeviceManagerProto.internal_static_google_cloud_iot_v1_BindDeviceToGatewayResponse_descriptor; } @java.lang.Override @@ -324,8 +297,7 @@ public com.google.cloud.iot.v1.BindDeviceToGatewayResponse build() { @java.lang.Override public com.google.cloud.iot.v1.BindDeviceToGatewayResponse buildPartial() { - com.google.cloud.iot.v1.BindDeviceToGatewayResponse result = - new com.google.cloud.iot.v1.BindDeviceToGatewayResponse(this); + com.google.cloud.iot.v1.BindDeviceToGatewayResponse result = new com.google.cloud.iot.v1.BindDeviceToGatewayResponse(this); onBuilt(); return result; } @@ -334,39 +306,38 @@ public com.google.cloud.iot.v1.BindDeviceToGatewayResponse buildPartial() { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.iot.v1.BindDeviceToGatewayResponse) { - return mergeFrom((com.google.cloud.iot.v1.BindDeviceToGatewayResponse) other); + return mergeFrom((com.google.cloud.iot.v1.BindDeviceToGatewayResponse)other); } else { super.mergeFrom(other); return this; @@ -374,8 +345,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.iot.v1.BindDeviceToGatewayResponse other) { - if (other == com.google.cloud.iot.v1.BindDeviceToGatewayResponse.getDefaultInstance()) - return this; + if (other == com.google.cloud.iot.v1.BindDeviceToGatewayResponse.getDefaultInstance()) return this; this.mergeUnknownFields(other.unknownFields); onChanged(); return this; @@ -395,8 +365,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.iot.v1.BindDeviceToGatewayResponse) e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.iot.v1.BindDeviceToGatewayResponse) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -405,9 +374,9 @@ public Builder mergeFrom( } return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -417,12 +386,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.iot.v1.BindDeviceToGatewayResponse) } // @@protoc_insertion_point(class_scope:google.cloud.iot.v1.BindDeviceToGatewayResponse) private static final com.google.cloud.iot.v1.BindDeviceToGatewayResponse DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.iot.v1.BindDeviceToGatewayResponse(); } @@ -431,16 +400,16 @@ public static com.google.cloud.iot.v1.BindDeviceToGatewayResponse getDefaultInst return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public BindDeviceToGatewayResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new BindDeviceToGatewayResponse(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public BindDeviceToGatewayResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new BindDeviceToGatewayResponse(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -455,4 +424,6 @@ public com.google.protobuf.Parser getParserForType( public com.google.cloud.iot.v1.BindDeviceToGatewayResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/owl-bot-staging/v1/proto-google-cloud-iot-v1/src/main/java/com/google/cloud/iot/v1/BindDeviceToGatewayResponseOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-iot-v1/src/main/java/com/google/cloud/iot/v1/BindDeviceToGatewayResponseOrBuilder.java new file mode 100644 index 00000000..2e4113e4 --- /dev/null +++ b/owl-bot-staging/v1/proto-google-cloud-iot-v1/src/main/java/com/google/cloud/iot/v1/BindDeviceToGatewayResponseOrBuilder.java @@ -0,0 +1,9 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/iot/v1/device_manager.proto + +package com.google.cloud.iot.v1; + +public interface BindDeviceToGatewayResponseOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.cloud.iot.v1.BindDeviceToGatewayResponse) + com.google.protobuf.MessageOrBuilder { +} diff --git a/proto-google-cloud-iot-v1/src/main/java/com/google/cloud/iot/v1/CreateDeviceRegistryRequest.java b/owl-bot-staging/v1/proto-google-cloud-iot-v1/src/main/java/com/google/cloud/iot/v1/CreateDeviceRegistryRequest.java similarity index 65% rename from proto-google-cloud-iot-v1/src/main/java/com/google/cloud/iot/v1/CreateDeviceRegistryRequest.java rename to owl-bot-staging/v1/proto-google-cloud-iot-v1/src/main/java/com/google/cloud/iot/v1/CreateDeviceRegistryRequest.java index edc2adb1..c464495f 100644 --- a/proto-google-cloud-iot-v1/src/main/java/com/google/cloud/iot/v1/CreateDeviceRegistryRequest.java +++ b/owl-bot-staging/v1/proto-google-cloud-iot-v1/src/main/java/com/google/cloud/iot/v1/CreateDeviceRegistryRequest.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/iot/v1/device_manager.proto package com.google.cloud.iot.v1; /** - * - * *
  * Request for `CreateDeviceRegistry`.
  * 
* * Protobuf type {@code google.cloud.iot.v1.CreateDeviceRegistryRequest} */ -public final class CreateDeviceRegistryRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class CreateDeviceRegistryRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.iot.v1.CreateDeviceRegistryRequest) CreateDeviceRegistryRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use CreateDeviceRegistryRequest.newBuilder() to construct. private CreateDeviceRegistryRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private CreateDeviceRegistryRequest() { parent_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new CreateDeviceRegistryRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private CreateDeviceRegistryRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -70,36 +53,32 @@ private CreateDeviceRegistryRequest( case 0: done = true; break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); + case 10: { + java.lang.String s = input.readStringRequireUtf8(); - parent_ = s; - break; + parent_ = s; + break; + } + case 18: { + com.google.cloud.iot.v1.DeviceRegistry.Builder subBuilder = null; + if (deviceRegistry_ != null) { + subBuilder = deviceRegistry_.toBuilder(); } - case 18: - { - com.google.cloud.iot.v1.DeviceRegistry.Builder subBuilder = null; - if (deviceRegistry_ != null) { - subBuilder = deviceRegistry_.toBuilder(); - } - deviceRegistry_ = - input.readMessage( - com.google.cloud.iot.v1.DeviceRegistry.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(deviceRegistry_); - deviceRegistry_ = subBuilder.buildPartial(); - } - - break; + deviceRegistry_ = input.readMessage(com.google.cloud.iot.v1.DeviceRegistry.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(deviceRegistry_); + deviceRegistry_ = subBuilder.buildPartial(); } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -107,42 +86,35 @@ private CreateDeviceRegistryRequest( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.iot.v1.DeviceManagerProto - .internal_static_google_cloud_iot_v1_CreateDeviceRegistryRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.iot.v1.DeviceManagerProto.internal_static_google_cloud_iot_v1_CreateDeviceRegistryRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.iot.v1.DeviceManagerProto - .internal_static_google_cloud_iot_v1_CreateDeviceRegistryRequest_fieldAccessorTable + return com.google.cloud.iot.v1.DeviceManagerProto.internal_static_google_cloud_iot_v1_CreateDeviceRegistryRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.iot.v1.CreateDeviceRegistryRequest.class, - com.google.cloud.iot.v1.CreateDeviceRegistryRequest.Builder.class); + com.google.cloud.iot.v1.CreateDeviceRegistryRequest.class, com.google.cloud.iot.v1.CreateDeviceRegistryRequest.Builder.class); } public static final int PARENT_FIELD_NUMBER = 1; private volatile java.lang.Object parent_; /** - * - * *
    * Required. The project and cloud region where this device registry must be created.
    * For example, `projects/example-project/locations/us-central1`.
    * 
* - * - * string parent = 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 @@ -151,32 +123,30 @@ public java.lang.String getParent() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; } } /** - * - * *
    * Required. The project and cloud region where this device registry must be created.
    * For example, `projects/example-project/locations/us-central1`.
    * 
* - * - * string parent = 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 { @@ -187,18 +157,13 @@ public com.google.protobuf.ByteString getParentBytes() { public static final int DEVICE_REGISTRY_FIELD_NUMBER = 2; private com.google.cloud.iot.v1.DeviceRegistry deviceRegistry_; /** - * - * *
    * Required. The device registry. The field `name` must be empty. The server will
    * generate that field from the device registry `id` provided and the
    * `parent` field.
    * 
* - * - * .google.cloud.iot.v1.DeviceRegistry device_registry = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.iot.v1.DeviceRegistry device_registry = 2 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the deviceRegistry field is set. */ @java.lang.Override @@ -206,38 +171,27 @@ public boolean hasDeviceRegistry() { return deviceRegistry_ != null; } /** - * - * *
    * Required. The device registry. The field `name` must be empty. The server will
    * generate that field from the device registry `id` provided and the
    * `parent` field.
    * 
* - * - * .google.cloud.iot.v1.DeviceRegistry device_registry = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.iot.v1.DeviceRegistry device_registry = 2 [(.google.api.field_behavior) = REQUIRED]; * @return The deviceRegistry. */ @java.lang.Override public com.google.cloud.iot.v1.DeviceRegistry getDeviceRegistry() { - return deviceRegistry_ == null - ? com.google.cloud.iot.v1.DeviceRegistry.getDefaultInstance() - : deviceRegistry_; + return deviceRegistry_ == null ? com.google.cloud.iot.v1.DeviceRegistry.getDefaultInstance() : deviceRegistry_; } /** - * - * *
    * Required. The device registry. The field `name` must be empty. The server will
    * generate that field from the device registry `id` provided and the
    * `parent` field.
    * 
* - * - * .google.cloud.iot.v1.DeviceRegistry device_registry = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.iot.v1.DeviceRegistry device_registry = 2 [(.google.api.field_behavior) = REQUIRED]; */ @java.lang.Override public com.google.cloud.iot.v1.DeviceRegistryOrBuilder getDeviceRegistryOrBuilder() { @@ -245,7 +199,6 @@ public com.google.cloud.iot.v1.DeviceRegistryOrBuilder getDeviceRegistryOrBuilde } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -257,7 +210,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_); } @@ -277,7 +231,8 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); } if (deviceRegistry_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getDeviceRegistry()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getDeviceRegistry()); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -287,18 +242,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.iot.v1.CreateDeviceRegistryRequest)) { return super.equals(obj); } - com.google.cloud.iot.v1.CreateDeviceRegistryRequest other = - (com.google.cloud.iot.v1.CreateDeviceRegistryRequest) obj; + com.google.cloud.iot.v1.CreateDeviceRegistryRequest other = (com.google.cloud.iot.v1.CreateDeviceRegistryRequest) obj; - if (!getParent().equals(other.getParent())) return false; + if (!getParent() + .equals(other.getParent())) return false; if (hasDeviceRegistry() != other.hasDeviceRegistry()) return false; if (hasDeviceRegistry()) { - if (!getDeviceRegistry().equals(other.getDeviceRegistry())) return false; + if (!getDeviceRegistry() + .equals(other.getDeviceRegistry())) return false; } if (!unknownFields.equals(other.unknownFields)) return false; return true; @@ -323,126 +279,117 @@ public int hashCode() { } public static com.google.cloud.iot.v1.CreateDeviceRegistryRequest parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.iot.v1.CreateDeviceRegistryRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.iot.v1.CreateDeviceRegistryRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.iot.v1.CreateDeviceRegistryRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.iot.v1.CreateDeviceRegistryRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.iot.v1.CreateDeviceRegistryRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.iot.v1.CreateDeviceRegistryRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.iot.v1.CreateDeviceRegistryRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.iot.v1.CreateDeviceRegistryRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.iot.v1.CreateDeviceRegistryRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.iot.v1.CreateDeviceRegistryRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.iot.v1.CreateDeviceRegistryRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.iot.v1.CreateDeviceRegistryRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.iot.v1.CreateDeviceRegistryRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.iot.v1.CreateDeviceRegistryRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected 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 `CreateDeviceRegistry`.
    * 
* * Protobuf type {@code google.cloud.iot.v1.CreateDeviceRegistryRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.iot.v1.CreateDeviceRegistryRequest) com.google.cloud.iot.v1.CreateDeviceRegistryRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.iot.v1.DeviceManagerProto - .internal_static_google_cloud_iot_v1_CreateDeviceRegistryRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.iot.v1.DeviceManagerProto.internal_static_google_cloud_iot_v1_CreateDeviceRegistryRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.iot.v1.DeviceManagerProto - .internal_static_google_cloud_iot_v1_CreateDeviceRegistryRequest_fieldAccessorTable + return com.google.cloud.iot.v1.DeviceManagerProto.internal_static_google_cloud_iot_v1_CreateDeviceRegistryRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.iot.v1.CreateDeviceRegistryRequest.class, - com.google.cloud.iot.v1.CreateDeviceRegistryRequest.Builder.class); + com.google.cloud.iot.v1.CreateDeviceRegistryRequest.class, com.google.cloud.iot.v1.CreateDeviceRegistryRequest.Builder.class); } // Construct using com.google.cloud.iot.v1.CreateDeviceRegistryRequest.newBuilder() @@ -450,15 +397,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(); @@ -474,9 +422,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.iot.v1.DeviceManagerProto - .internal_static_google_cloud_iot_v1_CreateDeviceRegistryRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.iot.v1.DeviceManagerProto.internal_static_google_cloud_iot_v1_CreateDeviceRegistryRequest_descriptor; } @java.lang.Override @@ -495,8 +443,7 @@ public com.google.cloud.iot.v1.CreateDeviceRegistryRequest build() { @java.lang.Override public com.google.cloud.iot.v1.CreateDeviceRegistryRequest buildPartial() { - com.google.cloud.iot.v1.CreateDeviceRegistryRequest result = - new com.google.cloud.iot.v1.CreateDeviceRegistryRequest(this); + com.google.cloud.iot.v1.CreateDeviceRegistryRequest result = new com.google.cloud.iot.v1.CreateDeviceRegistryRequest(this); result.parent_ = parent_; if (deviceRegistryBuilder_ == null) { result.deviceRegistry_ = deviceRegistry_; @@ -511,39 +458,38 @@ public com.google.cloud.iot.v1.CreateDeviceRegistryRequest buildPartial() { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.iot.v1.CreateDeviceRegistryRequest) { - return mergeFrom((com.google.cloud.iot.v1.CreateDeviceRegistryRequest) other); + return mergeFrom((com.google.cloud.iot.v1.CreateDeviceRegistryRequest)other); } else { super.mergeFrom(other); return this; @@ -551,8 +497,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.iot.v1.CreateDeviceRegistryRequest other) { - if (other == com.google.cloud.iot.v1.CreateDeviceRegistryRequest.getDefaultInstance()) - return this; + if (other == com.google.cloud.iot.v1.CreateDeviceRegistryRequest.getDefaultInstance()) return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; onChanged(); @@ -579,8 +524,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.iot.v1.CreateDeviceRegistryRequest) e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.iot.v1.CreateDeviceRegistryRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -592,23 +536,19 @@ public Builder mergeFrom( private java.lang.Object parent_ = ""; /** - * - * *
      * Required. The project and cloud region where this device registry must be created.
      * For example, `projects/example-project/locations/us-central1`.
      * 
* - * - * string parent = 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; @@ -617,24 +557,21 @@ public java.lang.String getParent() { } } /** - * - * *
      * Required. The project and cloud region where this device registry must be created.
      * For example, `projects/example-project/locations/us-central1`.
      * 
* - * - * string parent = 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 { @@ -642,70 +579,57 @@ public com.google.protobuf.ByteString getParentBytes() { } } /** - * - * *
      * Required. The project and cloud region where this device registry must be created.
      * For example, `projects/example-project/locations/us-central1`.
      * 
* - * - * 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 project and cloud region where this device registry must be created.
      * For example, `projects/example-project/locations/us-central1`.
      * 
* - * - * string 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 project and cloud region where this device registry must be created.
      * For example, `projects/example-project/locations/us-central1`.
      * 
* - * - * 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; @@ -713,64 +637,45 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { private com.google.cloud.iot.v1.DeviceRegistry deviceRegistry_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.iot.v1.DeviceRegistry, - com.google.cloud.iot.v1.DeviceRegistry.Builder, - com.google.cloud.iot.v1.DeviceRegistryOrBuilder> - deviceRegistryBuilder_; + com.google.cloud.iot.v1.DeviceRegistry, com.google.cloud.iot.v1.DeviceRegistry.Builder, com.google.cloud.iot.v1.DeviceRegistryOrBuilder> deviceRegistryBuilder_; /** - * - * *
      * Required. The device registry. The field `name` must be empty. The server will
      * generate that field from the device registry `id` provided and the
      * `parent` field.
      * 
* - * - * .google.cloud.iot.v1.DeviceRegistry device_registry = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.iot.v1.DeviceRegistry device_registry = 2 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the deviceRegistry field is set. */ public boolean hasDeviceRegistry() { return deviceRegistryBuilder_ != null || deviceRegistry_ != null; } /** - * - * *
      * Required. The device registry. The field `name` must be empty. The server will
      * generate that field from the device registry `id` provided and the
      * `parent` field.
      * 
* - * - * .google.cloud.iot.v1.DeviceRegistry device_registry = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.iot.v1.DeviceRegistry device_registry = 2 [(.google.api.field_behavior) = REQUIRED]; * @return The deviceRegistry. */ public com.google.cloud.iot.v1.DeviceRegistry getDeviceRegistry() { if (deviceRegistryBuilder_ == null) { - return deviceRegistry_ == null - ? com.google.cloud.iot.v1.DeviceRegistry.getDefaultInstance() - : deviceRegistry_; + return deviceRegistry_ == null ? com.google.cloud.iot.v1.DeviceRegistry.getDefaultInstance() : deviceRegistry_; } else { return deviceRegistryBuilder_.getMessage(); } } /** - * - * *
      * Required. The device registry. The field `name` must be empty. The server will
      * generate that field from the device registry `id` provided and the
      * `parent` field.
      * 
* - * - * .google.cloud.iot.v1.DeviceRegistry device_registry = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.iot.v1.DeviceRegistry device_registry = 2 [(.google.api.field_behavior) = REQUIRED]; */ public Builder setDeviceRegistry(com.google.cloud.iot.v1.DeviceRegistry value) { if (deviceRegistryBuilder_ == null) { @@ -786,17 +691,13 @@ public Builder setDeviceRegistry(com.google.cloud.iot.v1.DeviceRegistry value) { return this; } /** - * - * *
      * Required. The device registry. The field `name` must be empty. The server will
      * generate that field from the device registry `id` provided and the
      * `parent` field.
      * 
* - * - * .google.cloud.iot.v1.DeviceRegistry device_registry = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.iot.v1.DeviceRegistry device_registry = 2 [(.google.api.field_behavior) = REQUIRED]; */ public Builder setDeviceRegistry( com.google.cloud.iot.v1.DeviceRegistry.Builder builderForValue) { @@ -810,25 +711,19 @@ public Builder setDeviceRegistry( return this; } /** - * - * *
      * Required. The device registry. The field `name` must be empty. The server will
      * generate that field from the device registry `id` provided and the
      * `parent` field.
      * 
* - * - * .google.cloud.iot.v1.DeviceRegistry device_registry = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.iot.v1.DeviceRegistry device_registry = 2 [(.google.api.field_behavior) = REQUIRED]; */ public Builder mergeDeviceRegistry(com.google.cloud.iot.v1.DeviceRegistry value) { if (deviceRegistryBuilder_ == null) { if (deviceRegistry_ != null) { deviceRegistry_ = - com.google.cloud.iot.v1.DeviceRegistry.newBuilder(deviceRegistry_) - .mergeFrom(value) - .buildPartial(); + com.google.cloud.iot.v1.DeviceRegistry.newBuilder(deviceRegistry_).mergeFrom(value).buildPartial(); } else { deviceRegistry_ = value; } @@ -840,17 +735,13 @@ public Builder mergeDeviceRegistry(com.google.cloud.iot.v1.DeviceRegistry value) return this; } /** - * - * *
      * Required. The device registry. The field `name` must be empty. The server will
      * generate that field from the device registry `id` provided and the
      * `parent` field.
      * 
* - * - * .google.cloud.iot.v1.DeviceRegistry device_registry = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.iot.v1.DeviceRegistry device_registry = 2 [(.google.api.field_behavior) = REQUIRED]; */ public Builder clearDeviceRegistry() { if (deviceRegistryBuilder_ == null) { @@ -864,77 +755,61 @@ public Builder clearDeviceRegistry() { return this; } /** - * - * *
      * Required. The device registry. The field `name` must be empty. The server will
      * generate that field from the device registry `id` provided and the
      * `parent` field.
      * 
* - * - * .google.cloud.iot.v1.DeviceRegistry device_registry = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.iot.v1.DeviceRegistry device_registry = 2 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.cloud.iot.v1.DeviceRegistry.Builder getDeviceRegistryBuilder() { - + onChanged(); return getDeviceRegistryFieldBuilder().getBuilder(); } /** - * - * *
      * Required. The device registry. The field `name` must be empty. The server will
      * generate that field from the device registry `id` provided and the
      * `parent` field.
      * 
* - * - * .google.cloud.iot.v1.DeviceRegistry device_registry = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.iot.v1.DeviceRegistry device_registry = 2 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.cloud.iot.v1.DeviceRegistryOrBuilder getDeviceRegistryOrBuilder() { if (deviceRegistryBuilder_ != null) { return deviceRegistryBuilder_.getMessageOrBuilder(); } else { - return deviceRegistry_ == null - ? com.google.cloud.iot.v1.DeviceRegistry.getDefaultInstance() - : deviceRegistry_; + return deviceRegistry_ == null ? + com.google.cloud.iot.v1.DeviceRegistry.getDefaultInstance() : deviceRegistry_; } } /** - * - * *
      * Required. The device registry. The field `name` must be empty. The server will
      * generate that field from the device registry `id` provided and the
      * `parent` field.
      * 
* - * - * .google.cloud.iot.v1.DeviceRegistry device_registry = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.iot.v1.DeviceRegistry device_registry = 2 [(.google.api.field_behavior) = REQUIRED]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.iot.v1.DeviceRegistry, - com.google.cloud.iot.v1.DeviceRegistry.Builder, - com.google.cloud.iot.v1.DeviceRegistryOrBuilder> + com.google.cloud.iot.v1.DeviceRegistry, com.google.cloud.iot.v1.DeviceRegistry.Builder, com.google.cloud.iot.v1.DeviceRegistryOrBuilder> getDeviceRegistryFieldBuilder() { if (deviceRegistryBuilder_ == null) { - deviceRegistryBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.iot.v1.DeviceRegistry, - com.google.cloud.iot.v1.DeviceRegistry.Builder, - com.google.cloud.iot.v1.DeviceRegistryOrBuilder>( - getDeviceRegistry(), getParentForChildren(), isClean()); + deviceRegistryBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.iot.v1.DeviceRegistry, com.google.cloud.iot.v1.DeviceRegistry.Builder, com.google.cloud.iot.v1.DeviceRegistryOrBuilder>( + getDeviceRegistry(), + getParentForChildren(), + isClean()); deviceRegistry_ = null; } return deviceRegistryBuilder_; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -944,12 +819,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.iot.v1.CreateDeviceRegistryRequest) } // @@protoc_insertion_point(class_scope:google.cloud.iot.v1.CreateDeviceRegistryRequest) private static final com.google.cloud.iot.v1.CreateDeviceRegistryRequest DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.iot.v1.CreateDeviceRegistryRequest(); } @@ -958,16 +833,16 @@ public static com.google.cloud.iot.v1.CreateDeviceRegistryRequest getDefaultInst return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public CreateDeviceRegistryRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new CreateDeviceRegistryRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CreateDeviceRegistryRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new CreateDeviceRegistryRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -982,4 +857,6 @@ public com.google.protobuf.Parser getParserForType( public com.google.cloud.iot.v1.CreateDeviceRegistryRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-iot-v1/src/main/java/com/google/cloud/iot/v1/CreateDeviceRegistryRequestOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-iot-v1/src/main/java/com/google/cloud/iot/v1/CreateDeviceRegistryRequestOrBuilder.java similarity index 54% rename from proto-google-cloud-iot-v1/src/main/java/com/google/cloud/iot/v1/CreateDeviceRegistryRequestOrBuilder.java rename to owl-bot-staging/v1/proto-google-cloud-iot-v1/src/main/java/com/google/cloud/iot/v1/CreateDeviceRegistryRequestOrBuilder.java index 260d95a0..730739dd 100644 --- a/proto-google-cloud-iot-v1/src/main/java/com/google/cloud/iot/v1/CreateDeviceRegistryRequestOrBuilder.java +++ b/owl-bot-staging/v1/proto-google-cloud-iot-v1/src/main/java/com/google/cloud/iot/v1/CreateDeviceRegistryRequestOrBuilder.java @@ -1,103 +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/iot/v1/device_manager.proto package com.google.cloud.iot.v1; -public interface CreateDeviceRegistryRequestOrBuilder - extends +public interface CreateDeviceRegistryRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.iot.v1.CreateDeviceRegistryRequest) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Required. The project and cloud region where this device registry must be created.
    * For example, `projects/example-project/locations/us-central1`.
    * 
* - * - * string parent = 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 project and cloud region where this device registry must be created.
    * For example, `projects/example-project/locations/us-central1`.
    * 
* - * - * string parent = 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 device registry. The field `name` must be empty. The server will
    * generate that field from the device registry `id` provided and the
    * `parent` field.
    * 
* - * - * .google.cloud.iot.v1.DeviceRegistry device_registry = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.iot.v1.DeviceRegistry device_registry = 2 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the deviceRegistry field is set. */ boolean hasDeviceRegistry(); /** - * - * *
    * Required. The device registry. The field `name` must be empty. The server will
    * generate that field from the device registry `id` provided and the
    * `parent` field.
    * 
* - * - * .google.cloud.iot.v1.DeviceRegistry device_registry = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.iot.v1.DeviceRegistry device_registry = 2 [(.google.api.field_behavior) = REQUIRED]; * @return The deviceRegistry. */ com.google.cloud.iot.v1.DeviceRegistry getDeviceRegistry(); /** - * - * *
    * Required. The device registry. The field `name` must be empty. The server will
    * generate that field from the device registry `id` provided and the
    * `parent` field.
    * 
* - * - * .google.cloud.iot.v1.DeviceRegistry device_registry = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.iot.v1.DeviceRegistry device_registry = 2 [(.google.api.field_behavior) = REQUIRED]; */ com.google.cloud.iot.v1.DeviceRegistryOrBuilder getDeviceRegistryOrBuilder(); } diff --git a/proto-google-cloud-iot-v1/src/main/java/com/google/cloud/iot/v1/CreateDeviceRequest.java b/owl-bot-staging/v1/proto-google-cloud-iot-v1/src/main/java/com/google/cloud/iot/v1/CreateDeviceRequest.java similarity index 69% rename from proto-google-cloud-iot-v1/src/main/java/com/google/cloud/iot/v1/CreateDeviceRequest.java rename to owl-bot-staging/v1/proto-google-cloud-iot-v1/src/main/java/com/google/cloud/iot/v1/CreateDeviceRequest.java index 1de4defd..ce100f3c 100644 --- a/proto-google-cloud-iot-v1/src/main/java/com/google/cloud/iot/v1/CreateDeviceRequest.java +++ b/owl-bot-staging/v1/proto-google-cloud-iot-v1/src/main/java/com/google/cloud/iot/v1/CreateDeviceRequest.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/iot/v1/device_manager.proto package com.google.cloud.iot.v1; /** - * - * *
  * Request for `CreateDevice`.
  * 
* * Protobuf type {@code google.cloud.iot.v1.CreateDeviceRequest} */ -public final class CreateDeviceRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class CreateDeviceRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.iot.v1.CreateDeviceRequest) CreateDeviceRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use CreateDeviceRequest.newBuilder() to construct. private CreateDeviceRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private CreateDeviceRequest() { parent_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new CreateDeviceRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private CreateDeviceRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -70,35 +53,32 @@ private CreateDeviceRequest( case 0: done = true; break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); + case 10: { + java.lang.String s = input.readStringRequireUtf8(); - parent_ = s; - break; + parent_ = s; + break; + } + case 18: { + com.google.cloud.iot.v1.Device.Builder subBuilder = null; + if (device_ != null) { + subBuilder = device_.toBuilder(); } - case 18: - { - com.google.cloud.iot.v1.Device.Builder subBuilder = null; - if (device_ != null) { - subBuilder = device_.toBuilder(); - } - device_ = - input.readMessage(com.google.cloud.iot.v1.Device.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(device_); - device_ = subBuilder.buildPartial(); - } - - break; + device_ = input.readMessage(com.google.cloud.iot.v1.Device.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(device_); + device_ = 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) { @@ -106,43 +86,36 @@ private CreateDeviceRequest( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.iot.v1.DeviceManagerProto - .internal_static_google_cloud_iot_v1_CreateDeviceRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.iot.v1.DeviceManagerProto.internal_static_google_cloud_iot_v1_CreateDeviceRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.iot.v1.DeviceManagerProto - .internal_static_google_cloud_iot_v1_CreateDeviceRequest_fieldAccessorTable + return com.google.cloud.iot.v1.DeviceManagerProto.internal_static_google_cloud_iot_v1_CreateDeviceRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.iot.v1.CreateDeviceRequest.class, - com.google.cloud.iot.v1.CreateDeviceRequest.Builder.class); + com.google.cloud.iot.v1.CreateDeviceRequest.class, com.google.cloud.iot.v1.CreateDeviceRequest.Builder.class); } public static final int PARENT_FIELD_NUMBER = 1; private volatile java.lang.Object parent_; /** - * - * *
    * Required. The name of the device registry where this device should be created.
    * For example,
    * `projects/example-project/locations/us-central1/registries/my-registry`.
    * 
* - * - * string parent = 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 @@ -151,33 +124,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 name of the device registry where this device should be created.
    * For example,
    * `projects/example-project/locations/us-central1/registries/my-registry`.
    * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for parent. */ @java.lang.Override - public com.google.protobuf.ByteString getParentBytes() { + public com.google.protobuf.ByteString + getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); parent_ = b; return b; } else { @@ -188,8 +159,6 @@ public com.google.protobuf.ByteString getParentBytes() { public static final int DEVICE_FIELD_NUMBER = 2; private com.google.cloud.iot.v1.Device device_; /** - * - * *
    * Required. The device registration details. The field `name` must be empty. The server
    * generates `name` from the device registry `id` and the
@@ -197,7 +166,6 @@ public com.google.protobuf.ByteString getParentBytes() {
    * 
* * .google.cloud.iot.v1.Device device = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return Whether the device field is set. */ @java.lang.Override @@ -205,8 +173,6 @@ public boolean hasDevice() { return device_ != null; } /** - * - * *
    * Required. The device registration details. The field `name` must be empty. The server
    * generates `name` from the device registry `id` and the
@@ -214,7 +180,6 @@ public boolean hasDevice() {
    * 
* * .google.cloud.iot.v1.Device device = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The device. */ @java.lang.Override @@ -222,8 +187,6 @@ public com.google.cloud.iot.v1.Device getDevice() { return device_ == null ? com.google.cloud.iot.v1.Device.getDefaultInstance() : device_; } /** - * - * *
    * Required. The device registration details. The field `name` must be empty. The server
    * generates `name` from the device registry `id` and the
@@ -238,7 +201,6 @@ public com.google.cloud.iot.v1.DeviceOrBuilder getDeviceOrBuilder() {
   }
 
   private byte memoizedIsInitialized = -1;
-
   @java.lang.Override
   public final boolean isInitialized() {
     byte isInitialized = memoizedIsInitialized;
@@ -250,7 +212,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_);
     }
@@ -270,7 +233,8 @@ public int getSerializedSize() {
       size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_);
     }
     if (device_ != null) {
-      size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getDevice());
+      size += com.google.protobuf.CodedOutputStream
+        .computeMessageSize(2, getDevice());
     }
     size += unknownFields.getSerializedSize();
     memoizedSize = size;
@@ -280,18 +244,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.iot.v1.CreateDeviceRequest)) {
       return super.equals(obj);
     }
-    com.google.cloud.iot.v1.CreateDeviceRequest other =
-        (com.google.cloud.iot.v1.CreateDeviceRequest) obj;
+    com.google.cloud.iot.v1.CreateDeviceRequest other = (com.google.cloud.iot.v1.CreateDeviceRequest) obj;
 
-    if (!getParent().equals(other.getParent())) return false;
+    if (!getParent()
+        .equals(other.getParent())) return false;
     if (hasDevice() != other.hasDevice()) return false;
     if (hasDevice()) {
-      if (!getDevice().equals(other.getDevice())) return false;
+      if (!getDevice()
+          .equals(other.getDevice())) return false;
     }
     if (!unknownFields.equals(other.unknownFields)) return false;
     return true;
@@ -315,127 +280,118 @@ public int hashCode() {
     return hash;
   }
 
-  public static com.google.cloud.iot.v1.CreateDeviceRequest parseFrom(java.nio.ByteBuffer data)
+  public static com.google.cloud.iot.v1.CreateDeviceRequest parseFrom(
+      java.nio.ByteBuffer data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-
   public static com.google.cloud.iot.v1.CreateDeviceRequest parseFrom(
-      java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.nio.ByteBuffer data,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-
   public static com.google.cloud.iot.v1.CreateDeviceRequest parseFrom(
       com.google.protobuf.ByteString data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-
   public static com.google.cloud.iot.v1.CreateDeviceRequest parseFrom(
       com.google.protobuf.ByteString data,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-
   public static com.google.cloud.iot.v1.CreateDeviceRequest parseFrom(byte[] data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-
   public static com.google.cloud.iot.v1.CreateDeviceRequest parseFrom(
-      byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      byte[] data,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-
   public static com.google.cloud.iot.v1.CreateDeviceRequest 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.iot.v1.CreateDeviceRequest parseFrom(
-      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.io.InputStream input,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
-        PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input, extensionRegistry);
   }
-
-  public static com.google.cloud.iot.v1.CreateDeviceRequest parseDelimitedFrom(
-      java.io.InputStream input) throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
+  public static com.google.cloud.iot.v1.CreateDeviceRequest parseDelimitedFrom(java.io.InputStream input)
+      throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3
+        .parseDelimitedWithIOException(PARSER, input);
   }
-
   public static com.google.cloud.iot.v1.CreateDeviceRequest parseDelimitedFrom(
-      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.io.InputStream input,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
-        PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3
+        .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
   }
-
   public static com.google.cloud.iot.v1.CreateDeviceRequest parseFrom(
-      com.google.protobuf.CodedInputStream input) throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+      com.google.protobuf.CodedInputStream input)
+      throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input);
   }
-
   public static com.google.cloud.iot.v1.CreateDeviceRequest parseFrom(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
-        PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input, extensionRegistry);
   }
 
   @java.lang.Override
-  public Builder newBuilderForType() {
-    return newBuilder();
-  }
-
+  public Builder newBuilderForType() { return newBuilder(); }
   public static Builder newBuilder() {
     return DEFAULT_INSTANCE.toBuilder();
   }
-
   public static Builder newBuilder(com.google.cloud.iot.v1.CreateDeviceRequest prototype) {
     return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
   }
-
   @java.lang.Override
   public Builder toBuilder() {
-    return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
+    return this == DEFAULT_INSTANCE
+        ? new Builder() : new Builder().mergeFrom(this);
   }
 
   @java.lang.Override
-  protected 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 `CreateDevice`.
    * 
* * Protobuf type {@code google.cloud.iot.v1.CreateDeviceRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.iot.v1.CreateDeviceRequest) com.google.cloud.iot.v1.CreateDeviceRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.iot.v1.DeviceManagerProto - .internal_static_google_cloud_iot_v1_CreateDeviceRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.iot.v1.DeviceManagerProto.internal_static_google_cloud_iot_v1_CreateDeviceRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.iot.v1.DeviceManagerProto - .internal_static_google_cloud_iot_v1_CreateDeviceRequest_fieldAccessorTable + return com.google.cloud.iot.v1.DeviceManagerProto.internal_static_google_cloud_iot_v1_CreateDeviceRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.iot.v1.CreateDeviceRequest.class, - com.google.cloud.iot.v1.CreateDeviceRequest.Builder.class); + com.google.cloud.iot.v1.CreateDeviceRequest.class, com.google.cloud.iot.v1.CreateDeviceRequest.Builder.class); } // Construct using com.google.cloud.iot.v1.CreateDeviceRequest.newBuilder() @@ -443,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(); @@ -467,9 +424,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.iot.v1.DeviceManagerProto - .internal_static_google_cloud_iot_v1_CreateDeviceRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.iot.v1.DeviceManagerProto.internal_static_google_cloud_iot_v1_CreateDeviceRequest_descriptor; } @java.lang.Override @@ -488,8 +445,7 @@ public com.google.cloud.iot.v1.CreateDeviceRequest build() { @java.lang.Override public com.google.cloud.iot.v1.CreateDeviceRequest buildPartial() { - com.google.cloud.iot.v1.CreateDeviceRequest result = - new com.google.cloud.iot.v1.CreateDeviceRequest(this); + com.google.cloud.iot.v1.CreateDeviceRequest result = new com.google.cloud.iot.v1.CreateDeviceRequest(this); result.parent_ = parent_; if (deviceBuilder_ == null) { result.device_ = device_; @@ -504,39 +460,38 @@ public com.google.cloud.iot.v1.CreateDeviceRequest buildPartial() { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.iot.v1.CreateDeviceRequest) { - return mergeFrom((com.google.cloud.iot.v1.CreateDeviceRequest) other); + return mergeFrom((com.google.cloud.iot.v1.CreateDeviceRequest)other); } else { super.mergeFrom(other); return this; @@ -583,24 +538,20 @@ public Builder mergeFrom( private java.lang.Object parent_ = ""; /** - * - * *
      * Required. The name of the device registry where this device should be created.
      * For example,
      * `projects/example-project/locations/us-central1/registries/my-registry`.
      * 
* - * - * string parent = 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; @@ -609,25 +560,22 @@ public java.lang.String getParent() { } } /** - * - * *
      * Required. The name of the device registry where this device should be created.
      * For example,
      * `projects/example-project/locations/us-central1/registries/my-registry`.
      * 
* - * - * string parent = 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 { @@ -635,73 +583,60 @@ public com.google.protobuf.ByteString getParentBytes() { } } /** - * - * *
      * Required. The name of the device registry where this device should be created.
      * For example,
      * `projects/example-project/locations/us-central1/registries/my-registry`.
      * 
* - * - * 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 name of the device registry where this device should be created.
      * For example,
      * `projects/example-project/locations/us-central1/registries/my-registry`.
      * 
* - * - * string 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 name of the device registry where this device should be created.
      * For example,
      * `projects/example-project/locations/us-central1/registries/my-registry`.
      * 
* - * - * 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; @@ -709,39 +644,28 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { private com.google.cloud.iot.v1.Device device_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.iot.v1.Device, - com.google.cloud.iot.v1.Device.Builder, - com.google.cloud.iot.v1.DeviceOrBuilder> - deviceBuilder_; + com.google.cloud.iot.v1.Device, com.google.cloud.iot.v1.Device.Builder, com.google.cloud.iot.v1.DeviceOrBuilder> deviceBuilder_; /** - * - * *
      * Required. The device registration details. The field `name` must be empty. The server
      * generates `name` from the device registry `id` and the
      * `parent` field.
      * 
* - * .google.cloud.iot.v1.Device device = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.iot.v1.Device device = 2 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the device field is set. */ public boolean hasDevice() { return deviceBuilder_ != null || device_ != null; } /** - * - * *
      * Required. The device registration details. The field `name` must be empty. The server
      * generates `name` from the device registry `id` and the
      * `parent` field.
      * 
* - * .google.cloud.iot.v1.Device device = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.iot.v1.Device device = 2 [(.google.api.field_behavior) = REQUIRED]; * @return The device. */ public com.google.cloud.iot.v1.Device getDevice() { @@ -752,16 +676,13 @@ public com.google.cloud.iot.v1.Device getDevice() { } } /** - * - * *
      * Required. The device registration details. The field `name` must be empty. The server
      * generates `name` from the device registry `id` and the
      * `parent` field.
      * 
* - * .google.cloud.iot.v1.Device device = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.iot.v1.Device device = 2 [(.google.api.field_behavior) = REQUIRED]; */ public Builder setDevice(com.google.cloud.iot.v1.Device value) { if (deviceBuilder_ == null) { @@ -777,18 +698,16 @@ public Builder setDevice(com.google.cloud.iot.v1.Device value) { return this; } /** - * - * *
      * Required. The device registration details. The field `name` must be empty. The server
      * generates `name` from the device registry `id` and the
      * `parent` field.
      * 
* - * .google.cloud.iot.v1.Device device = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.iot.v1.Device device = 2 [(.google.api.field_behavior) = REQUIRED]; */ - public Builder setDevice(com.google.cloud.iot.v1.Device.Builder builderForValue) { + public Builder setDevice( + com.google.cloud.iot.v1.Device.Builder builderForValue) { if (deviceBuilder_ == null) { device_ = builderForValue.build(); onChanged(); @@ -799,22 +718,19 @@ public Builder setDevice(com.google.cloud.iot.v1.Device.Builder builderForValue) return this; } /** - * - * *
      * Required. The device registration details. The field `name` must be empty. The server
      * generates `name` from the device registry `id` and the
      * `parent` field.
      * 
* - * .google.cloud.iot.v1.Device device = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.iot.v1.Device device = 2 [(.google.api.field_behavior) = REQUIRED]; */ public Builder mergeDevice(com.google.cloud.iot.v1.Device value) { if (deviceBuilder_ == null) { if (device_ != null) { device_ = - com.google.cloud.iot.v1.Device.newBuilder(device_).mergeFrom(value).buildPartial(); + com.google.cloud.iot.v1.Device.newBuilder(device_).mergeFrom(value).buildPartial(); } else { device_ = value; } @@ -826,16 +742,13 @@ public Builder mergeDevice(com.google.cloud.iot.v1.Device value) { return this; } /** - * - * *
      * Required. The device registration details. The field `name` must be empty. The server
      * generates `name` from the device registry `id` and the
      * `parent` field.
      * 
* - * .google.cloud.iot.v1.Device device = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.iot.v1.Device device = 2 [(.google.api.field_behavior) = REQUIRED]; */ public Builder clearDevice() { if (deviceBuilder_ == null) { @@ -849,72 +762,61 @@ public Builder clearDevice() { return this; } /** - * - * *
      * Required. The device registration details. The field `name` must be empty. The server
      * generates `name` from the device registry `id` and the
      * `parent` field.
      * 
* - * .google.cloud.iot.v1.Device device = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.iot.v1.Device device = 2 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.cloud.iot.v1.Device.Builder getDeviceBuilder() { - + onChanged(); return getDeviceFieldBuilder().getBuilder(); } /** - * - * *
      * Required. The device registration details. The field `name` must be empty. The server
      * generates `name` from the device registry `id` and the
      * `parent` field.
      * 
* - * .google.cloud.iot.v1.Device device = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.iot.v1.Device device = 2 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.cloud.iot.v1.DeviceOrBuilder getDeviceOrBuilder() { if (deviceBuilder_ != null) { return deviceBuilder_.getMessageOrBuilder(); } else { - return device_ == null ? com.google.cloud.iot.v1.Device.getDefaultInstance() : device_; + return device_ == null ? + com.google.cloud.iot.v1.Device.getDefaultInstance() : device_; } } /** - * - * *
      * Required. The device registration details. The field `name` must be empty. The server
      * generates `name` from the device registry `id` and the
      * `parent` field.
      * 
* - * .google.cloud.iot.v1.Device device = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.iot.v1.Device device = 2 [(.google.api.field_behavior) = REQUIRED]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.iot.v1.Device, - com.google.cloud.iot.v1.Device.Builder, - com.google.cloud.iot.v1.DeviceOrBuilder> + com.google.cloud.iot.v1.Device, com.google.cloud.iot.v1.Device.Builder, com.google.cloud.iot.v1.DeviceOrBuilder> getDeviceFieldBuilder() { if (deviceBuilder_ == null) { - deviceBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.iot.v1.Device, - com.google.cloud.iot.v1.Device.Builder, - com.google.cloud.iot.v1.DeviceOrBuilder>( - getDevice(), getParentForChildren(), isClean()); + deviceBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.iot.v1.Device, com.google.cloud.iot.v1.Device.Builder, com.google.cloud.iot.v1.DeviceOrBuilder>( + getDevice(), + getParentForChildren(), + isClean()); device_ = null; } return deviceBuilder_; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -924,12 +826,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.iot.v1.CreateDeviceRequest) } // @@protoc_insertion_point(class_scope:google.cloud.iot.v1.CreateDeviceRequest) private static final com.google.cloud.iot.v1.CreateDeviceRequest DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.iot.v1.CreateDeviceRequest(); } @@ -938,16 +840,16 @@ public static com.google.cloud.iot.v1.CreateDeviceRequest getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public CreateDeviceRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new CreateDeviceRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CreateDeviceRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new CreateDeviceRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -962,4 +864,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.iot.v1.CreateDeviceRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-iot-v1/src/main/java/com/google/cloud/iot/v1/CreateDeviceRequestOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-iot-v1/src/main/java/com/google/cloud/iot/v1/CreateDeviceRequestOrBuilder.java similarity index 65% rename from proto-google-cloud-iot-v1/src/main/java/com/google/cloud/iot/v1/CreateDeviceRequestOrBuilder.java rename to owl-bot-staging/v1/proto-google-cloud-iot-v1/src/main/java/com/google/cloud/iot/v1/CreateDeviceRequestOrBuilder.java index 764d45cf..bd02b513 100644 --- a/proto-google-cloud-iot-v1/src/main/java/com/google/cloud/iot/v1/CreateDeviceRequestOrBuilder.java +++ b/owl-bot-staging/v1/proto-google-cloud-iot-v1/src/main/java/com/google/cloud/iot/v1/CreateDeviceRequestOrBuilder.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/iot/v1/device_manager.proto package com.google.cloud.iot.v1; -public interface CreateDeviceRequestOrBuilder - extends +public interface CreateDeviceRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.iot.v1.CreateDeviceRequest) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Required. The name of the device registry where this device should be created.
    * For example,
    * `projects/example-project/locations/us-central1/registries/my-registry`.
    * 
* - * - * string parent = 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 name of the device registry where this device should be created.
    * For example,
    * `projects/example-project/locations/us-central1/registries/my-registry`.
    * 
* - * - * string parent = 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 device registration details. The field `name` must be empty. The server
    * generates `name` from the device registry `id` and the
@@ -66,13 +39,10 @@ public interface CreateDeviceRequestOrBuilder
    * 
* * .google.cloud.iot.v1.Device device = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return Whether the device field is set. */ boolean hasDevice(); /** - * - * *
    * Required. The device registration details. The field `name` must be empty. The server
    * generates `name` from the device registry `id` and the
@@ -80,13 +50,10 @@ public interface CreateDeviceRequestOrBuilder
    * 
* * .google.cloud.iot.v1.Device device = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The device. */ com.google.cloud.iot.v1.Device getDevice(); /** - * - * *
    * Required. The device registration details. The field `name` must be empty. The server
    * generates `name` from the device registry `id` and the
diff --git a/proto-google-cloud-iot-v1/src/main/java/com/google/cloud/iot/v1/DeleteDeviceRegistryRequest.java b/owl-bot-staging/v1/proto-google-cloud-iot-v1/src/main/java/com/google/cloud/iot/v1/DeleteDeviceRegistryRequest.java
similarity index 65%
rename from proto-google-cloud-iot-v1/src/main/java/com/google/cloud/iot/v1/DeleteDeviceRegistryRequest.java
rename to owl-bot-staging/v1/proto-google-cloud-iot-v1/src/main/java/com/google/cloud/iot/v1/DeleteDeviceRegistryRequest.java
index a07e32af..74c9bf0b 100644
--- a/proto-google-cloud-iot-v1/src/main/java/com/google/cloud/iot/v1/DeleteDeviceRegistryRequest.java
+++ b/owl-bot-staging/v1/proto-google-cloud-iot-v1/src/main/java/com/google/cloud/iot/v1/DeleteDeviceRegistryRequest.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/iot/v1/device_manager.proto
 
 package com.google.cloud.iot.v1;
 
 /**
- *
- *
  * 
  * Request for `DeleteDeviceRegistry`.
  * 
* * Protobuf type {@code google.cloud.iot.v1.DeleteDeviceRegistryRequest} */ -public final class DeleteDeviceRegistryRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class DeleteDeviceRegistryRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.iot.v1.DeleteDeviceRegistryRequest) DeleteDeviceRegistryRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use DeleteDeviceRegistryRequest.newBuilder() to construct. private DeleteDeviceRegistryRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private DeleteDeviceRegistryRequest() { name_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new DeleteDeviceRegistryRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private DeleteDeviceRegistryRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -70,20 +53,19 @@ private DeleteDeviceRegistryRequest( 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,42 +73,35 @@ private DeleteDeviceRegistryRequest( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.iot.v1.DeviceManagerProto - .internal_static_google_cloud_iot_v1_DeleteDeviceRegistryRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.iot.v1.DeviceManagerProto.internal_static_google_cloud_iot_v1_DeleteDeviceRegistryRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.iot.v1.DeviceManagerProto - .internal_static_google_cloud_iot_v1_DeleteDeviceRegistryRequest_fieldAccessorTable + return com.google.cloud.iot.v1.DeviceManagerProto.internal_static_google_cloud_iot_v1_DeleteDeviceRegistryRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.iot.v1.DeleteDeviceRegistryRequest.class, - com.google.cloud.iot.v1.DeleteDeviceRegistryRequest.Builder.class); + com.google.cloud.iot.v1.DeleteDeviceRegistryRequest.class, com.google.cloud.iot.v1.DeleteDeviceRegistryRequest.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** - * - * *
    * Required. The name of the device registry. For example,
    * `projects/example-project/locations/us-central1/registries/my-registry`.
    * 
* - * - * string name = 1 [(.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 @@ -135,32 +110,30 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** - * - * *
    * Required. The name of the device registry. For example,
    * `projects/example-project/locations/us-central1/registries/my-registry`.
    * 
* - * - * string name = 1 [(.google.api.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 { @@ -169,7 +142,6 @@ public com.google.protobuf.ByteString getNameBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -181,7 +153,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -205,15 +178,15 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.iot.v1.DeleteDeviceRegistryRequest)) { return super.equals(obj); } - com.google.cloud.iot.v1.DeleteDeviceRegistryRequest other = - (com.google.cloud.iot.v1.DeleteDeviceRegistryRequest) obj; + com.google.cloud.iot.v1.DeleteDeviceRegistryRequest other = (com.google.cloud.iot.v1.DeleteDeviceRegistryRequest) obj; - if (!getName().equals(other.getName())) return false; + if (!getName() + .equals(other.getName())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -233,126 +206,117 @@ public int hashCode() { } public static com.google.cloud.iot.v1.DeleteDeviceRegistryRequest parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.iot.v1.DeleteDeviceRegistryRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.iot.v1.DeleteDeviceRegistryRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.iot.v1.DeleteDeviceRegistryRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.iot.v1.DeleteDeviceRegistryRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.iot.v1.DeleteDeviceRegistryRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.iot.v1.DeleteDeviceRegistryRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.iot.v1.DeleteDeviceRegistryRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.iot.v1.DeleteDeviceRegistryRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.iot.v1.DeleteDeviceRegistryRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.iot.v1.DeleteDeviceRegistryRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.iot.v1.DeleteDeviceRegistryRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.iot.v1.DeleteDeviceRegistryRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.iot.v1.DeleteDeviceRegistryRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.iot.v1.DeleteDeviceRegistryRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected 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 `DeleteDeviceRegistry`.
    * 
* * Protobuf type {@code google.cloud.iot.v1.DeleteDeviceRegistryRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.iot.v1.DeleteDeviceRegistryRequest) com.google.cloud.iot.v1.DeleteDeviceRegistryRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.iot.v1.DeviceManagerProto - .internal_static_google_cloud_iot_v1_DeleteDeviceRegistryRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.iot.v1.DeviceManagerProto.internal_static_google_cloud_iot_v1_DeleteDeviceRegistryRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.iot.v1.DeviceManagerProto - .internal_static_google_cloud_iot_v1_DeleteDeviceRegistryRequest_fieldAccessorTable + return com.google.cloud.iot.v1.DeviceManagerProto.internal_static_google_cloud_iot_v1_DeleteDeviceRegistryRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.iot.v1.DeleteDeviceRegistryRequest.class, - com.google.cloud.iot.v1.DeleteDeviceRegistryRequest.Builder.class); + com.google.cloud.iot.v1.DeleteDeviceRegistryRequest.class, com.google.cloud.iot.v1.DeleteDeviceRegistryRequest.Builder.class); } // Construct using com.google.cloud.iot.v1.DeleteDeviceRegistryRequest.newBuilder() @@ -360,15 +324,16 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -378,9 +343,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.iot.v1.DeviceManagerProto - .internal_static_google_cloud_iot_v1_DeleteDeviceRegistryRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.iot.v1.DeviceManagerProto.internal_static_google_cloud_iot_v1_DeleteDeviceRegistryRequest_descriptor; } @java.lang.Override @@ -399,8 +364,7 @@ public com.google.cloud.iot.v1.DeleteDeviceRegistryRequest build() { @java.lang.Override public com.google.cloud.iot.v1.DeleteDeviceRegistryRequest buildPartial() { - com.google.cloud.iot.v1.DeleteDeviceRegistryRequest result = - new com.google.cloud.iot.v1.DeleteDeviceRegistryRequest(this); + com.google.cloud.iot.v1.DeleteDeviceRegistryRequest result = new com.google.cloud.iot.v1.DeleteDeviceRegistryRequest(this); result.name_ = name_; onBuilt(); return result; @@ -410,39 +374,38 @@ public com.google.cloud.iot.v1.DeleteDeviceRegistryRequest buildPartial() { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.iot.v1.DeleteDeviceRegistryRequest) { - return mergeFrom((com.google.cloud.iot.v1.DeleteDeviceRegistryRequest) other); + return mergeFrom((com.google.cloud.iot.v1.DeleteDeviceRegistryRequest)other); } else { super.mergeFrom(other); return this; @@ -450,8 +413,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.iot.v1.DeleteDeviceRegistryRequest other) { - if (other == com.google.cloud.iot.v1.DeleteDeviceRegistryRequest.getDefaultInstance()) - return this; + if (other == com.google.cloud.iot.v1.DeleteDeviceRegistryRequest.getDefaultInstance()) return this; if (!other.getName().isEmpty()) { name_ = other.name_; onChanged(); @@ -475,8 +437,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.iot.v1.DeleteDeviceRegistryRequest) e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.iot.v1.DeleteDeviceRegistryRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -488,23 +449,19 @@ public Builder mergeFrom( private java.lang.Object name_ = ""; /** - * - * *
      * Required. The name of the device registry. For example,
      * `projects/example-project/locations/us-central1/registries/my-registry`.
      * 
* - * - * string name = 1 [(.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; @@ -513,24 +470,21 @@ public java.lang.String getName() { } } /** - * - * *
      * Required. The name of the device registry. For example,
      * `projects/example-project/locations/us-central1/registries/my-registry`.
      * 
* - * - * string name = 1 [(.google.api.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 { @@ -538,77 +492,64 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
      * Required. The name of the device registry. For example,
      * `projects/example-project/locations/us-central1/registries/my-registry`.
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The name to set. * @return This builder for chaining. */ - public Builder setName(java.lang.String value) { + public Builder setName( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + name_ = value; onChanged(); return this; } /** - * - * *
      * Required. The name of the device registry. For example,
      * `projects/example-project/locations/us-central1/registries/my-registry`.
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return This builder for chaining. */ public Builder clearName() { - + name_ = getDefaultInstance().getName(); onChanged(); return this; } /** - * - * *
      * Required. The name of the device registry. For example,
      * `projects/example-project/locations/us-central1/registries/my-registry`.
      * 
* - * - * 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); } @@ -618,12 +559,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.iot.v1.DeleteDeviceRegistryRequest) } // @@protoc_insertion_point(class_scope:google.cloud.iot.v1.DeleteDeviceRegistryRequest) private static final com.google.cloud.iot.v1.DeleteDeviceRegistryRequest DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.iot.v1.DeleteDeviceRegistryRequest(); } @@ -632,16 +573,16 @@ public static com.google.cloud.iot.v1.DeleteDeviceRegistryRequest getDefaultInst return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public DeleteDeviceRegistryRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new DeleteDeviceRegistryRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DeleteDeviceRegistryRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new DeleteDeviceRegistryRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -656,4 +597,6 @@ public com.google.protobuf.Parser getParserForType( public com.google.cloud.iot.v1.DeleteDeviceRegistryRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/owl-bot-staging/v1/proto-google-cloud-iot-v1/src/main/java/com/google/cloud/iot/v1/DeleteDeviceRegistryRequestOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-iot-v1/src/main/java/com/google/cloud/iot/v1/DeleteDeviceRegistryRequestOrBuilder.java new file mode 100644 index 00000000..fc026cf3 --- /dev/null +++ b/owl-bot-staging/v1/proto-google-cloud-iot-v1/src/main/java/com/google/cloud/iot/v1/DeleteDeviceRegistryRequestOrBuilder.java @@ -0,0 +1,31 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/iot/v1/device_manager.proto + +package com.google.cloud.iot.v1; + +public interface DeleteDeviceRegistryRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.cloud.iot.v1.DeleteDeviceRegistryRequest) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * Required. The name of the device registry. For example,
+   * `projects/example-project/locations/us-central1/registries/my-registry`.
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The name. + */ + java.lang.String getName(); + /** + *
+   * Required. The name of the device registry. For example,
+   * `projects/example-project/locations/us-central1/registries/my-registry`.
+   * 
+ * + * 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-iot-v1/src/main/java/com/google/cloud/iot/v1/DeleteDeviceRequest.java b/owl-bot-staging/v1/proto-google-cloud-iot-v1/src/main/java/com/google/cloud/iot/v1/DeleteDeviceRequest.java similarity index 67% rename from proto-google-cloud-iot-v1/src/main/java/com/google/cloud/iot/v1/DeleteDeviceRequest.java rename to owl-bot-staging/v1/proto-google-cloud-iot-v1/src/main/java/com/google/cloud/iot/v1/DeleteDeviceRequest.java index 6bf41a45..a20fa259 100644 --- a/proto-google-cloud-iot-v1/src/main/java/com/google/cloud/iot/v1/DeleteDeviceRequest.java +++ b/owl-bot-staging/v1/proto-google-cloud-iot-v1/src/main/java/com/google/cloud/iot/v1/DeleteDeviceRequest.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/iot/v1/device_manager.proto package com.google.cloud.iot.v1; /** - * - * *
  * Request for `DeleteDevice`.
  * 
* * Protobuf type {@code google.cloud.iot.v1.DeleteDeviceRequest} */ -public final class DeleteDeviceRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class DeleteDeviceRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.iot.v1.DeleteDeviceRequest) DeleteDeviceRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use DeleteDeviceRequest.newBuilder() to construct. private DeleteDeviceRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private DeleteDeviceRequest() { name_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new DeleteDeviceRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private DeleteDeviceRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -70,20 +53,19 @@ private DeleteDeviceRequest( 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 DeleteDeviceRequest( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.iot.v1.DeviceManagerProto - .internal_static_google_cloud_iot_v1_DeleteDeviceRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.iot.v1.DeviceManagerProto.internal_static_google_cloud_iot_v1_DeleteDeviceRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.iot.v1.DeviceManagerProto - .internal_static_google_cloud_iot_v1_DeleteDeviceRequest_fieldAccessorTable + return com.google.cloud.iot.v1.DeviceManagerProto.internal_static_google_cloud_iot_v1_DeleteDeviceRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.iot.v1.DeleteDeviceRequest.class, - com.google.cloud.iot.v1.DeleteDeviceRequest.Builder.class); + com.google.cloud.iot.v1.DeleteDeviceRequest.class, com.google.cloud.iot.v1.DeleteDeviceRequest.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** - * - * *
    * Required. The name of the device. For example,
    * `projects/p0/locations/us-central1/registries/registry0/devices/device0` or
    * `projects/p0/locations/us-central1/registries/registry0/devices/{num_id}`.
    * 
* - * - * string name = 1 [(.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. The name of the device. For example,
    * `projects/p0/locations/us-central1/registries/registry0/devices/device0` or
    * `projects/p0/locations/us-central1/registries/registry0/devices/{num_id}`.
    * 
* - * - * string name = 1 [(.google.api.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.iot.v1.DeleteDeviceRequest)) { return super.equals(obj); } - com.google.cloud.iot.v1.DeleteDeviceRequest other = - (com.google.cloud.iot.v1.DeleteDeviceRequest) obj; + com.google.cloud.iot.v1.DeleteDeviceRequest other = (com.google.cloud.iot.v1.DeleteDeviceRequest) 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.iot.v1.DeleteDeviceRequest parseFrom(java.nio.ByteBuffer data) + public static com.google.cloud.iot.v1.DeleteDeviceRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.iot.v1.DeleteDeviceRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.iot.v1.DeleteDeviceRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.iot.v1.DeleteDeviceRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.iot.v1.DeleteDeviceRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.iot.v1.DeleteDeviceRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.iot.v1.DeleteDeviceRequest 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.iot.v1.DeleteDeviceRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.iot.v1.DeleteDeviceRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.iot.v1.DeleteDeviceRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.iot.v1.DeleteDeviceRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.iot.v1.DeleteDeviceRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.iot.v1.DeleteDeviceRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.iot.v1.DeleteDeviceRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected 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 `DeleteDevice`.
    * 
* * Protobuf type {@code google.cloud.iot.v1.DeleteDeviceRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.iot.v1.DeleteDeviceRequest) com.google.cloud.iot.v1.DeleteDeviceRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.iot.v1.DeviceManagerProto - .internal_static_google_cloud_iot_v1_DeleteDeviceRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.iot.v1.DeviceManagerProto.internal_static_google_cloud_iot_v1_DeleteDeviceRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.iot.v1.DeviceManagerProto - .internal_static_google_cloud_iot_v1_DeleteDeviceRequest_fieldAccessorTable + return com.google.cloud.iot.v1.DeviceManagerProto.internal_static_google_cloud_iot_v1_DeleteDeviceRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.iot.v1.DeleteDeviceRequest.class, - com.google.cloud.iot.v1.DeleteDeviceRequest.Builder.class); + com.google.cloud.iot.v1.DeleteDeviceRequest.class, com.google.cloud.iot.v1.DeleteDeviceRequest.Builder.class); } // Construct using com.google.cloud.iot.v1.DeleteDeviceRequest.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.iot.v1.DeviceManagerProto - .internal_static_google_cloud_iot_v1_DeleteDeviceRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.iot.v1.DeviceManagerProto.internal_static_google_cloud_iot_v1_DeleteDeviceRequest_descriptor; } @java.lang.Override @@ -401,8 +366,7 @@ public com.google.cloud.iot.v1.DeleteDeviceRequest build() { @java.lang.Override public com.google.cloud.iot.v1.DeleteDeviceRequest buildPartial() { - com.google.cloud.iot.v1.DeleteDeviceRequest result = - new com.google.cloud.iot.v1.DeleteDeviceRequest(this); + com.google.cloud.iot.v1.DeleteDeviceRequest result = new com.google.cloud.iot.v1.DeleteDeviceRequest(this); result.name_ = name_; onBuilt(); return result; @@ -412,39 +376,38 @@ public com.google.cloud.iot.v1.DeleteDeviceRequest buildPartial() { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.iot.v1.DeleteDeviceRequest) { - return mergeFrom((com.google.cloud.iot.v1.DeleteDeviceRequest) other); + return mergeFrom((com.google.cloud.iot.v1.DeleteDeviceRequest)other); } else { super.mergeFrom(other); return this; @@ -488,24 +451,20 @@ public Builder mergeFrom( private java.lang.Object name_ = ""; /** - * - * *
      * Required. The name of the device. For example,
      * `projects/p0/locations/us-central1/registries/registry0/devices/device0` or
      * `projects/p0/locations/us-central1/registries/registry0/devices/{num_id}`.
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -514,25 +473,22 @@ public java.lang.String getName() { } } /** - * - * *
      * Required. The name of the device. For example,
      * `projects/p0/locations/us-central1/registries/registry0/devices/device0` or
      * `projects/p0/locations/us-central1/registries/registry0/devices/{num_id}`.
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for name. */ - public com.google.protobuf.ByteString getNameBytes() { + public com.google.protobuf.ByteString + getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -540,80 +496,67 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
      * Required. The name of the device. For example,
      * `projects/p0/locations/us-central1/registries/registry0/devices/device0` or
      * `projects/p0/locations/us-central1/registries/registry0/devices/{num_id}`.
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The name to set. * @return This builder for chaining. */ - public Builder setName(java.lang.String value) { + public Builder setName( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + name_ = value; onChanged(); return this; } /** - * - * *
      * Required. The name of the device. For example,
      * `projects/p0/locations/us-central1/registries/registry0/devices/device0` or
      * `projects/p0/locations/us-central1/registries/registry0/devices/{num_id}`.
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return This builder for chaining. */ public Builder clearName() { - + name_ = getDefaultInstance().getName(); onChanged(); return this; } /** - * - * *
      * Required. The name of the device. For example,
      * `projects/p0/locations/us-central1/registries/registry0/devices/device0` or
      * `projects/p0/locations/us-central1/registries/registry0/devices/{num_id}`.
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes(com.google.protobuf.ByteString value) { + public Builder setNameBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -623,12 +566,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.iot.v1.DeleteDeviceRequest) } // @@protoc_insertion_point(class_scope:google.cloud.iot.v1.DeleteDeviceRequest) private static final com.google.cloud.iot.v1.DeleteDeviceRequest DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.iot.v1.DeleteDeviceRequest(); } @@ -637,16 +580,16 @@ public static com.google.cloud.iot.v1.DeleteDeviceRequest getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public DeleteDeviceRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new DeleteDeviceRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DeleteDeviceRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new DeleteDeviceRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -661,4 +604,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.iot.v1.DeleteDeviceRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/owl-bot-staging/v1/proto-google-cloud-iot-v1/src/main/java/com/google/cloud/iot/v1/DeleteDeviceRequestOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-iot-v1/src/main/java/com/google/cloud/iot/v1/DeleteDeviceRequestOrBuilder.java new file mode 100644 index 00000000..931d57ca --- /dev/null +++ b/owl-bot-staging/v1/proto-google-cloud-iot-v1/src/main/java/com/google/cloud/iot/v1/DeleteDeviceRequestOrBuilder.java @@ -0,0 +1,33 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/iot/v1/device_manager.proto + +package com.google.cloud.iot.v1; + +public interface DeleteDeviceRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.cloud.iot.v1.DeleteDeviceRequest) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * Required. The name of the device. For example,
+   * `projects/p0/locations/us-central1/registries/registry0/devices/device0` or
+   * `projects/p0/locations/us-central1/registries/registry0/devices/{num_id}`.
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The name. + */ + java.lang.String getName(); + /** + *
+   * Required. The name of the device. For example,
+   * `projects/p0/locations/us-central1/registries/registry0/devices/device0` or
+   * `projects/p0/locations/us-central1/registries/registry0/devices/{num_id}`.
+   * 
+ * + * 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-iot-v1/src/main/java/com/google/cloud/iot/v1/Device.java b/owl-bot-staging/v1/proto-google-cloud-iot-v1/src/main/java/com/google/cloud/iot/v1/Device.java similarity index 78% rename from proto-google-cloud-iot-v1/src/main/java/com/google/cloud/iot/v1/Device.java rename to owl-bot-staging/v1/proto-google-cloud-iot-v1/src/main/java/com/google/cloud/iot/v1/Device.java index 89348c10..a86b452b 100644 --- a/proto-google-cloud-iot-v1/src/main/java/com/google/cloud/iot/v1/Device.java +++ b/owl-bot-staging/v1/proto-google-cloud-iot-v1/src/main/java/com/google/cloud/iot/v1/Device.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/iot/v1/resources.proto package com.google.cloud.iot.v1; /** - * - * *
  * The device resource.
  * 
* * Protobuf type {@code google.cloud.iot.v1.Device} */ -public final class Device extends com.google.protobuf.GeneratedMessageV3 - implements +public final class Device extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.iot.v1.Device) DeviceOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use Device.newBuilder() to construct. private Device(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private Device() { id_ = ""; name_ = ""; @@ -46,15 +28,16 @@ private Device() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new Device(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private Device( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -74,223 +57,193 @@ private Device( case 0: done = true; break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); + case 10: { + java.lang.String s = input.readStringRequireUtf8(); + + id_ = s; + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); + + name_ = s; + break; + } + case 24: { - id_ = s; - break; + numId_ = input.readUInt64(); + break; + } + case 58: { + com.google.protobuf.Timestamp.Builder subBuilder = null; + if (lastHeartbeatTime_ != null) { + subBuilder = lastHeartbeatTime_.toBuilder(); + } + lastHeartbeatTime_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(lastHeartbeatTime_); + lastHeartbeatTime_ = subBuilder.buildPartial(); } - case 18: - { - java.lang.String s = input.readStringRequireUtf8(); - name_ = s; - break; + break; + } + case 66: { + com.google.protobuf.Timestamp.Builder subBuilder = null; + if (lastEventTime_ != null) { + subBuilder = lastEventTime_.toBuilder(); } - case 24: - { - numId_ = input.readUInt64(); - break; + lastEventTime_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(lastEventTime_); + lastEventTime_ = subBuilder.buildPartial(); } - case 58: - { - com.google.protobuf.Timestamp.Builder subBuilder = null; - if (lastHeartbeatTime_ != null) { - subBuilder = lastHeartbeatTime_.toBuilder(); - } - lastHeartbeatTime_ = - input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(lastHeartbeatTime_); - lastHeartbeatTime_ = subBuilder.buildPartial(); - } - - break; + + break; + } + case 82: { + com.google.protobuf.Timestamp.Builder subBuilder = null; + if (lastErrorTime_ != null) { + subBuilder = lastErrorTime_.toBuilder(); } - case 66: - { - com.google.protobuf.Timestamp.Builder subBuilder = null; - if (lastEventTime_ != null) { - subBuilder = lastEventTime_.toBuilder(); - } - lastEventTime_ = - input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(lastEventTime_); - lastEventTime_ = subBuilder.buildPartial(); - } - - break; + lastErrorTime_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(lastErrorTime_); + lastErrorTime_ = subBuilder.buildPartial(); } - case 82: - { - com.google.protobuf.Timestamp.Builder subBuilder = null; - if (lastErrorTime_ != null) { - subBuilder = lastErrorTime_.toBuilder(); - } - lastErrorTime_ = - input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(lastErrorTime_); - lastErrorTime_ = subBuilder.buildPartial(); - } - - break; + + break; + } + case 90: { + com.google.rpc.Status.Builder subBuilder = null; + if (lastErrorStatus_ != null) { + subBuilder = lastErrorStatus_.toBuilder(); } - case 90: - { - com.google.rpc.Status.Builder subBuilder = null; - if (lastErrorStatus_ != null) { - subBuilder = lastErrorStatus_.toBuilder(); - } - lastErrorStatus_ = - input.readMessage(com.google.rpc.Status.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(lastErrorStatus_); - lastErrorStatus_ = subBuilder.buildPartial(); - } - - break; + lastErrorStatus_ = input.readMessage(com.google.rpc.Status.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(lastErrorStatus_); + lastErrorStatus_ = subBuilder.buildPartial(); } - case 98: - { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - credentials_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; - } - credentials_.add( - input.readMessage( - com.google.cloud.iot.v1.DeviceCredential.parser(), extensionRegistry)); - break; + + break; + } + case 98: { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + credentials_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; } - case 106: - { - com.google.cloud.iot.v1.DeviceConfig.Builder subBuilder = null; - if (config_ != null) { - subBuilder = config_.toBuilder(); - } - config_ = - input.readMessage( - com.google.cloud.iot.v1.DeviceConfig.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(config_); - config_ = subBuilder.buildPartial(); - } - - break; + credentials_.add( + input.readMessage(com.google.cloud.iot.v1.DeviceCredential.parser(), extensionRegistry)); + break; + } + case 106: { + com.google.cloud.iot.v1.DeviceConfig.Builder subBuilder = null; + if (config_ != null) { + subBuilder = config_.toBuilder(); } - case 114: - { - com.google.protobuf.Timestamp.Builder subBuilder = null; - if (lastConfigAckTime_ != null) { - subBuilder = lastConfigAckTime_.toBuilder(); - } - lastConfigAckTime_ = - input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(lastConfigAckTime_); - lastConfigAckTime_ = subBuilder.buildPartial(); - } - - break; + config_ = input.readMessage(com.google.cloud.iot.v1.DeviceConfig.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(config_); + config_ = subBuilder.buildPartial(); } - case 130: - { - com.google.cloud.iot.v1.DeviceState.Builder subBuilder = null; - if (state_ != null) { - subBuilder = state_.toBuilder(); - } - state_ = - input.readMessage( - com.google.cloud.iot.v1.DeviceState.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(state_); - state_ = subBuilder.buildPartial(); - } - - break; + + break; + } + case 114: { + com.google.protobuf.Timestamp.Builder subBuilder = null; + if (lastConfigAckTime_ != null) { + subBuilder = lastConfigAckTime_.toBuilder(); } - case 138: - { - if (!((mutable_bitField0_ & 0x00000002) != 0)) { - metadata_ = - com.google.protobuf.MapField.newMapField( - MetadataDefaultEntryHolder.defaultEntry); - mutable_bitField0_ |= 0x00000002; - } - com.google.protobuf.MapEntry metadata__ = - input.readMessage( - MetadataDefaultEntryHolder.defaultEntry.getParserForType(), - extensionRegistry); - metadata_.getMutableMap().put(metadata__.getKey(), metadata__.getValue()); - break; + lastConfigAckTime_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(lastConfigAckTime_); + lastConfigAckTime_ = subBuilder.buildPartial(); } - case 146: - { - com.google.protobuf.Timestamp.Builder subBuilder = null; - if (lastConfigSendTime_ != null) { - subBuilder = lastConfigSendTime_.toBuilder(); - } - lastConfigSendTime_ = - input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(lastConfigSendTime_); - lastConfigSendTime_ = subBuilder.buildPartial(); - } - - break; + + break; + } + case 130: { + com.google.cloud.iot.v1.DeviceState.Builder subBuilder = null; + if (state_ != null) { + subBuilder = state_.toBuilder(); } - case 152: - { - blocked_ = input.readBool(); - break; + state_ = input.readMessage(com.google.cloud.iot.v1.DeviceState.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(state_); + state_ = subBuilder.buildPartial(); } - case 162: - { - com.google.protobuf.Timestamp.Builder subBuilder = null; - if (lastStateTime_ != null) { - subBuilder = lastStateTime_.toBuilder(); - } - lastStateTime_ = - input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(lastStateTime_); - lastStateTime_ = subBuilder.buildPartial(); - } - - break; + + break; + } + case 138: { + if (!((mutable_bitField0_ & 0x00000002) != 0)) { + metadata_ = com.google.protobuf.MapField.newMapField( + MetadataDefaultEntryHolder.defaultEntry); + mutable_bitField0_ |= 0x00000002; + } + com.google.protobuf.MapEntry + metadata__ = input.readMessage( + MetadataDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); + metadata_.getMutableMap().put( + metadata__.getKey(), metadata__.getValue()); + break; + } + case 146: { + com.google.protobuf.Timestamp.Builder subBuilder = null; + if (lastConfigSendTime_ != null) { + subBuilder = lastConfigSendTime_.toBuilder(); + } + lastConfigSendTime_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(lastConfigSendTime_); + lastConfigSendTime_ = subBuilder.buildPartial(); } - case 168: - { - int rawValue = input.readEnum(); - logLevel_ = rawValue; - break; + break; + } + case 152: { + + blocked_ = input.readBool(); + break; + } + case 162: { + com.google.protobuf.Timestamp.Builder subBuilder = null; + if (lastStateTime_ != null) { + subBuilder = lastStateTime_.toBuilder(); + } + lastStateTime_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(lastStateTime_); + lastStateTime_ = subBuilder.buildPartial(); + } + + break; + } + case 168: { + int rawValue = input.readEnum(); + + logLevel_ = rawValue; + break; + } + case 194: { + com.google.cloud.iot.v1.GatewayConfig.Builder subBuilder = null; + if (gatewayConfig_ != null) { + subBuilder = gatewayConfig_.toBuilder(); } - case 194: - { - com.google.cloud.iot.v1.GatewayConfig.Builder subBuilder = null; - if (gatewayConfig_ != null) { - subBuilder = gatewayConfig_.toBuilder(); - } - gatewayConfig_ = - input.readMessage( - com.google.cloud.iot.v1.GatewayConfig.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(gatewayConfig_); - gatewayConfig_ = subBuilder.buildPartial(); - } - - break; + gatewayConfig_ = input.readMessage(com.google.cloud.iot.v1.GatewayConfig.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(gatewayConfig_); + gatewayConfig_ = 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) { @@ -298,7 +251,8 @@ private Device( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } 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)) { credentials_ = java.util.Collections.unmodifiableList(credentials_); @@ -307,28 +261,27 @@ private Device( makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.iot.v1.ResourcesProto - .internal_static_google_cloud_iot_v1_Device_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.iot.v1.ResourcesProto.internal_static_google_cloud_iot_v1_Device_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 17: return internalGetMetadata(); default: - throw new RuntimeException("Invalid map field number: " + number); + throw new RuntimeException( + "Invalid map field number: " + number); } } - @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.iot.v1.ResourcesProto - .internal_static_google_cloud_iot_v1_Device_fieldAccessorTable + return com.google.cloud.iot.v1.ResourcesProto.internal_static_google_cloud_iot_v1_Device_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.cloud.iot.v1.Device.class, com.google.cloud.iot.v1.Device.Builder.class); } @@ -336,15 +289,12 @@ protected com.google.protobuf.MapField internalGetMapField(int number) { public static final int ID_FIELD_NUMBER = 1; private volatile java.lang.Object id_; /** - * - * *
    * The user-defined device identifier. The device ID must be unique
    * within a device registry.
    * 
* * string id = 1; - * * @return The id. */ @java.lang.Override @@ -353,30 +303,30 @@ 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; } } /** - * - * *
    * The user-defined device identifier. The device ID must be unique
    * within a device registry.
    * 
* * string id = 1; - * * @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 { @@ -387,8 +337,6 @@ public com.google.protobuf.ByteString getIdBytes() { public static final int NAME_FIELD_NUMBER = 2; private volatile java.lang.Object name_; /** - * - * *
    * The resource path name. For example,
    * `projects/p1/locations/us-central1/registries/registry0/devices/dev0` or
@@ -398,7 +346,6 @@ public com.google.protobuf.ByteString getIdBytes() {
    * 
* * string name = 2; - * * @return The name. */ @java.lang.Override @@ -407,15 +354,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; } } /** - * - * *
    * The resource path name. For example,
    * `projects/p1/locations/us-central1/registries/registry0/devices/dev0` or
@@ -425,15 +371,16 @@ public java.lang.String getName() {
    * 
* * string name = 2; - * * @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 { @@ -444,15 +391,12 @@ public com.google.protobuf.ByteString getNameBytes() { public static final int NUM_ID_FIELD_NUMBER = 3; private long numId_; /** - * - * *
    * [Output only] A server-defined unique numeric ID for the device. This is a
    * more compact way to identify devices, and it is globally unique.
    * 
* * uint64 num_id = 3; - * * @return The numId. */ @java.lang.Override @@ -463,8 +407,6 @@ public long getNumId() { public static final int CREDENTIALS_FIELD_NUMBER = 12; private java.util.List credentials_; /** - * - * *
    * The credentials used to authenticate this device. To allow credential
    * rotation without interruption, multiple device credentials can be bound to
@@ -481,8 +423,6 @@ public java.util.List getCredentialsLi
     return credentials_;
   }
   /**
-   *
-   *
    * 
    * The credentials used to authenticate this device. To allow credential
    * rotation without interruption, multiple device credentials can be bound to
@@ -495,13 +435,11 @@ public java.util.List getCredentialsLi
    * repeated .google.cloud.iot.v1.DeviceCredential credentials = 12;
    */
   @java.lang.Override
-  public java.util.List
+  public java.util.List 
       getCredentialsOrBuilderList() {
     return credentials_;
   }
   /**
-   *
-   *
    * 
    * The credentials used to authenticate this device. To allow credential
    * rotation without interruption, multiple device credentials can be bound to
@@ -518,8 +456,6 @@ public int getCredentialsCount() {
     return credentials_.size();
   }
   /**
-   *
-   *
    * 
    * The credentials used to authenticate this device. To allow credential
    * rotation without interruption, multiple device credentials can be bound to
@@ -536,8 +472,6 @@ public com.google.cloud.iot.v1.DeviceCredential getCredentials(int index) {
     return credentials_.get(index);
   }
   /**
-   *
-   *
    * 
    * The credentials used to authenticate this device. To allow credential
    * rotation without interruption, multiple device credentials can be bound to
@@ -550,15 +484,14 @@ public com.google.cloud.iot.v1.DeviceCredential getCredentials(int index) {
    * repeated .google.cloud.iot.v1.DeviceCredential credentials = 12;
    */
   @java.lang.Override
-  public com.google.cloud.iot.v1.DeviceCredentialOrBuilder getCredentialsOrBuilder(int index) {
+  public com.google.cloud.iot.v1.DeviceCredentialOrBuilder getCredentialsOrBuilder(
+      int index) {
     return credentials_.get(index);
   }
 
   public static final int LAST_HEARTBEAT_TIME_FIELD_NUMBER = 7;
   private com.google.protobuf.Timestamp lastHeartbeatTime_;
   /**
-   *
-   *
    * 
    * [Output only] The last time an MQTT `PINGREQ` was received. This field
    * applies only to devices connecting through MQTT. MQTT clients usually only
@@ -568,7 +501,6 @@ public com.google.cloud.iot.v1.DeviceCredentialOrBuilder getCredentialsOrBuilder
    * 
* * .google.protobuf.Timestamp last_heartbeat_time = 7; - * * @return Whether the lastHeartbeatTime field is set. */ @java.lang.Override @@ -576,8 +508,6 @@ public boolean hasLastHeartbeatTime() { return lastHeartbeatTime_ != null; } /** - * - * *
    * [Output only] The last time an MQTT `PINGREQ` was received. This field
    * applies only to devices connecting through MQTT. MQTT clients usually only
@@ -587,18 +517,13 @@ public boolean hasLastHeartbeatTime() {
    * 
* * .google.protobuf.Timestamp last_heartbeat_time = 7; - * * @return The lastHeartbeatTime. */ @java.lang.Override public com.google.protobuf.Timestamp getLastHeartbeatTime() { - return lastHeartbeatTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : lastHeartbeatTime_; + return lastHeartbeatTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : lastHeartbeatTime_; } /** - * - * *
    * [Output only] The last time an MQTT `PINGREQ` was received. This field
    * applies only to devices connecting through MQTT. MQTT clients usually only
@@ -617,8 +542,6 @@ public com.google.protobuf.TimestampOrBuilder getLastHeartbeatTimeOrBuilder() {
   public static final int LAST_EVENT_TIME_FIELD_NUMBER = 8;
   private com.google.protobuf.Timestamp lastEventTime_;
   /**
-   *
-   *
    * 
    * [Output only] The last time a telemetry event was received. Timestamps are
    * periodically collected and written to storage; they may be stale by a few
@@ -626,7 +549,6 @@ public com.google.protobuf.TimestampOrBuilder getLastHeartbeatTimeOrBuilder() {
    * 
* * .google.protobuf.Timestamp last_event_time = 8; - * * @return Whether the lastEventTime field is set. */ @java.lang.Override @@ -634,8 +556,6 @@ public boolean hasLastEventTime() { return lastEventTime_ != null; } /** - * - * *
    * [Output only] The last time a telemetry event was received. Timestamps are
    * periodically collected and written to storage; they may be stale by a few
@@ -643,18 +563,13 @@ public boolean hasLastEventTime() {
    * 
* * .google.protobuf.Timestamp last_event_time = 8; - * * @return The lastEventTime. */ @java.lang.Override public com.google.protobuf.Timestamp getLastEventTime() { - return lastEventTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : lastEventTime_; + return lastEventTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : lastEventTime_; } /** - * - * *
    * [Output only] The last time a telemetry event was received. Timestamps are
    * periodically collected and written to storage; they may be stale by a few
@@ -671,8 +586,6 @@ public com.google.protobuf.TimestampOrBuilder getLastEventTimeOrBuilder() {
   public static final int LAST_STATE_TIME_FIELD_NUMBER = 20;
   private com.google.protobuf.Timestamp lastStateTime_;
   /**
-   *
-   *
    * 
    * [Output only] The last time a state event was received. Timestamps are
    * periodically collected and written to storage; they may be stale by a few
@@ -680,7 +593,6 @@ public com.google.protobuf.TimestampOrBuilder getLastEventTimeOrBuilder() {
    * 
* * .google.protobuf.Timestamp last_state_time = 20; - * * @return Whether the lastStateTime field is set. */ @java.lang.Override @@ -688,8 +600,6 @@ public boolean hasLastStateTime() { return lastStateTime_ != null; } /** - * - * *
    * [Output only] The last time a state event was received. Timestamps are
    * periodically collected and written to storage; they may be stale by a few
@@ -697,18 +607,13 @@ public boolean hasLastStateTime() {
    * 
* * .google.protobuf.Timestamp last_state_time = 20; - * * @return The lastStateTime. */ @java.lang.Override public com.google.protobuf.Timestamp getLastStateTime() { - return lastStateTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : lastStateTime_; + return lastStateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : lastStateTime_; } /** - * - * *
    * [Output only] The last time a state event was received. Timestamps are
    * periodically collected and written to storage; they may be stale by a few
@@ -725,8 +630,6 @@ public com.google.protobuf.TimestampOrBuilder getLastStateTimeOrBuilder() {
   public static final int LAST_CONFIG_ACK_TIME_FIELD_NUMBER = 14;
   private com.google.protobuf.Timestamp lastConfigAckTime_;
   /**
-   *
-   *
    * 
    * [Output only] The last time a cloud-to-device config version acknowledgment
    * was received from the device. This field is only for configurations
@@ -734,7 +637,6 @@ public com.google.protobuf.TimestampOrBuilder getLastStateTimeOrBuilder() {
    * 
* * .google.protobuf.Timestamp last_config_ack_time = 14; - * * @return Whether the lastConfigAckTime field is set. */ @java.lang.Override @@ -742,8 +644,6 @@ public boolean hasLastConfigAckTime() { return lastConfigAckTime_ != null; } /** - * - * *
    * [Output only] The last time a cloud-to-device config version acknowledgment
    * was received from the device. This field is only for configurations
@@ -751,18 +651,13 @@ public boolean hasLastConfigAckTime() {
    * 
* * .google.protobuf.Timestamp last_config_ack_time = 14; - * * @return The lastConfigAckTime. */ @java.lang.Override public com.google.protobuf.Timestamp getLastConfigAckTime() { - return lastConfigAckTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : lastConfigAckTime_; + return lastConfigAckTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : lastConfigAckTime_; } /** - * - * *
    * [Output only] The last time a cloud-to-device config version acknowledgment
    * was received from the device. This field is only for configurations
@@ -779,15 +674,12 @@ public com.google.protobuf.TimestampOrBuilder getLastConfigAckTimeOrBuilder() {
   public static final int LAST_CONFIG_SEND_TIME_FIELD_NUMBER = 18;
   private com.google.protobuf.Timestamp lastConfigSendTime_;
   /**
-   *
-   *
    * 
    * [Output only] The last time a cloud-to-device config version was sent to
    * the device.
    * 
* * .google.protobuf.Timestamp last_config_send_time = 18; - * * @return Whether the lastConfigSendTime field is set. */ @java.lang.Override @@ -795,26 +687,19 @@ public boolean hasLastConfigSendTime() { return lastConfigSendTime_ != null; } /** - * - * *
    * [Output only] The last time a cloud-to-device config version was sent to
    * the device.
    * 
* * .google.protobuf.Timestamp last_config_send_time = 18; - * * @return The lastConfigSendTime. */ @java.lang.Override public com.google.protobuf.Timestamp getLastConfigSendTime() { - return lastConfigSendTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : lastConfigSendTime_; + return lastConfigSendTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : lastConfigSendTime_; } /** - * - * *
    * [Output only] The last time a cloud-to-device config version was sent to
    * the device.
@@ -830,8 +715,6 @@ public com.google.protobuf.TimestampOrBuilder getLastConfigSendTimeOrBuilder() {
   public static final int BLOCKED_FIELD_NUMBER = 19;
   private boolean blocked_;
   /**
-   *
-   *
    * 
    * If a device is blocked, connections or requests from this device will fail.
    * Can be used to temporarily prevent the device from connecting if, for
@@ -839,7 +722,6 @@ public com.google.protobuf.TimestampOrBuilder getLastConfigSendTimeOrBuilder() {
    * 
* * bool blocked = 19; - * * @return The blocked. */ @java.lang.Override @@ -850,8 +732,6 @@ public boolean getBlocked() { public static final int LAST_ERROR_TIME_FIELD_NUMBER = 10; private com.google.protobuf.Timestamp lastErrorTime_; /** - * - * *
    * [Output only] The time the most recent error occurred, such as a failure to
    * publish to Cloud Pub/Sub. This field is the timestamp of
@@ -859,7 +739,6 @@ public boolean getBlocked() {
    * 
* * .google.protobuf.Timestamp last_error_time = 10; - * * @return Whether the lastErrorTime field is set. */ @java.lang.Override @@ -867,8 +746,6 @@ public boolean hasLastErrorTime() { return lastErrorTime_ != null; } /** - * - * *
    * [Output only] The time the most recent error occurred, such as a failure to
    * publish to Cloud Pub/Sub. This field is the timestamp of
@@ -876,18 +753,13 @@ public boolean hasLastErrorTime() {
    * 
* * .google.protobuf.Timestamp last_error_time = 10; - * * @return The lastErrorTime. */ @java.lang.Override public com.google.protobuf.Timestamp getLastErrorTime() { - return lastErrorTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : lastErrorTime_; + return lastErrorTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : lastErrorTime_; } /** - * - * *
    * [Output only] The time the most recent error occurred, such as a failure to
    * publish to Cloud Pub/Sub. This field is the timestamp of
@@ -904,8 +776,6 @@ public com.google.protobuf.TimestampOrBuilder getLastErrorTimeOrBuilder() {
   public static final int LAST_ERROR_STATUS_FIELD_NUMBER = 11;
   private com.google.rpc.Status lastErrorStatus_;
   /**
-   *
-   *
    * 
    * [Output only] The error message of the most recent error, such as a failure
    * to publish to Cloud Pub/Sub. 'last_error_time' is the timestamp of this
@@ -915,7 +785,6 @@ public com.google.protobuf.TimestampOrBuilder getLastErrorTimeOrBuilder() {
    * 
* * .google.rpc.Status last_error_status = 11; - * * @return Whether the lastErrorStatus field is set. */ @java.lang.Override @@ -923,8 +792,6 @@ public boolean hasLastErrorStatus() { return lastErrorStatus_ != null; } /** - * - * *
    * [Output only] The error message of the most recent error, such as a failure
    * to publish to Cloud Pub/Sub. 'last_error_time' is the timestamp of this
@@ -934,7 +801,6 @@ public boolean hasLastErrorStatus() {
    * 
* * .google.rpc.Status last_error_status = 11; - * * @return The lastErrorStatus. */ @java.lang.Override @@ -942,8 +808,6 @@ public com.google.rpc.Status getLastErrorStatus() { return lastErrorStatus_ == null ? com.google.rpc.Status.getDefaultInstance() : lastErrorStatus_; } /** - * - * *
    * [Output only] The error message of the most recent error, such as a failure
    * to publish to Cloud Pub/Sub. 'last_error_time' is the timestamp of this
@@ -962,8 +826,6 @@ public com.google.rpc.StatusOrBuilder getLastErrorStatusOrBuilder() {
   public static final int CONFIG_FIELD_NUMBER = 13;
   private com.google.cloud.iot.v1.DeviceConfig config_;
   /**
-   *
-   *
    * 
    * The most recent device configuration, which is eventually sent from
    * Cloud IoT Core to the device. If not present on creation, the
@@ -973,7 +835,6 @@ public com.google.rpc.StatusOrBuilder getLastErrorStatusOrBuilder() {
    * 
* * .google.cloud.iot.v1.DeviceConfig config = 13; - * * @return Whether the config field is set. */ @java.lang.Override @@ -981,8 +842,6 @@ public boolean hasConfig() { return config_ != null; } /** - * - * *
    * The most recent device configuration, which is eventually sent from
    * Cloud IoT Core to the device. If not present on creation, the
@@ -992,7 +851,6 @@ public boolean hasConfig() {
    * 
* * .google.cloud.iot.v1.DeviceConfig config = 13; - * * @return The config. */ @java.lang.Override @@ -1000,8 +858,6 @@ public com.google.cloud.iot.v1.DeviceConfig getConfig() { return config_ == null ? com.google.cloud.iot.v1.DeviceConfig.getDefaultInstance() : config_; } /** - * - * *
    * The most recent device configuration, which is eventually sent from
    * Cloud IoT Core to the device. If not present on creation, the
@@ -1020,15 +876,12 @@ public com.google.cloud.iot.v1.DeviceConfigOrBuilder getConfigOrBuilder() {
   public static final int STATE_FIELD_NUMBER = 16;
   private com.google.cloud.iot.v1.DeviceState state_;
   /**
-   *
-   *
    * 
    * [Output only] The state most recently received from the device. If no state
    * has been reported, this field is not present.
    * 
* * .google.cloud.iot.v1.DeviceState state = 16; - * * @return Whether the state field is set. */ @java.lang.Override @@ -1036,15 +889,12 @@ public boolean hasState() { return state_ != null; } /** - * - * *
    * [Output only] The state most recently received from the device. If no state
    * has been reported, this field is not present.
    * 
* * .google.cloud.iot.v1.DeviceState state = 16; - * * @return The state. */ @java.lang.Override @@ -1052,8 +902,6 @@ public com.google.cloud.iot.v1.DeviceState getState() { return state_ == null ? com.google.cloud.iot.v1.DeviceState.getDefaultInstance() : state_; } /** - * - * *
    * [Output only] The state most recently received from the device. If no state
    * has been reported, this field is not present.
@@ -1069,8 +917,6 @@ public com.google.cloud.iot.v1.DeviceStateOrBuilder getStateOrBuilder() {
   public static final int LOG_LEVEL_FIELD_NUMBER = 21;
   private int logLevel_;
   /**
-   *
-   *
    * 
    * **Beta Feature**
    * The logging verbosity for device activity. If unspecified,
@@ -1078,16 +924,12 @@ public com.google.cloud.iot.v1.DeviceStateOrBuilder getStateOrBuilder() {
    * 
* * .google.cloud.iot.v1.LogLevel log_level = 21; - * * @return The enum numeric value on the wire for logLevel. */ - @java.lang.Override - public int getLogLevelValue() { + @java.lang.Override public int getLogLevelValue() { return logLevel_; } /** - * - * *
    * **Beta Feature**
    * The logging verbosity for device activity. If unspecified,
@@ -1095,34 +937,33 @@ public int getLogLevelValue() {
    * 
* * .google.cloud.iot.v1.LogLevel log_level = 21; - * * @return The logLevel. */ - @java.lang.Override - public com.google.cloud.iot.v1.LogLevel getLogLevel() { + @java.lang.Override public com.google.cloud.iot.v1.LogLevel getLogLevel() { @SuppressWarnings("deprecation") com.google.cloud.iot.v1.LogLevel result = com.google.cloud.iot.v1.LogLevel.valueOf(logLevel_); return result == null ? com.google.cloud.iot.v1.LogLevel.UNRECOGNIZED : result; } public static final int METADATA_FIELD_NUMBER = 17; - private static final class MetadataDefaultEntryHolder { - static final com.google.protobuf.MapEntry defaultEntry = - com.google.protobuf.MapEntry.newDefaultInstance( - com.google.cloud.iot.v1.ResourcesProto - .internal_static_google_cloud_iot_v1_Device_MetadataEntry_descriptor, - com.google.protobuf.WireFormat.FieldType.STRING, - "", - com.google.protobuf.WireFormat.FieldType.STRING, - ""); + static final com.google.protobuf.MapEntry< + java.lang.String, java.lang.String> defaultEntry = + com.google.protobuf.MapEntry + .newDefaultInstance( + com.google.cloud.iot.v1.ResourcesProto.internal_static_google_cloud_iot_v1_Device_MetadataEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.STRING, + "", + com.google.protobuf.WireFormat.FieldType.STRING, + ""); } - - private com.google.protobuf.MapField metadata_; - - private com.google.protobuf.MapField internalGetMetadata() { + private com.google.protobuf.MapField< + java.lang.String, java.lang.String> metadata_; + private com.google.protobuf.MapField + internalGetMetadata() { if (metadata_ == null) { - return com.google.protobuf.MapField.emptyMapField(MetadataDefaultEntryHolder.defaultEntry); + return com.google.protobuf.MapField.emptyMapField( + MetadataDefaultEntryHolder.defaultEntry); } return metadata_; } @@ -1131,8 +972,6 @@ public int getMetadataCount() { return internalGetMetadata().getMap().size(); } /** - * - * *
    * The metadata key-value pairs assigned to the device. This metadata is not
    * interpreted or indexed by Cloud IoT Core. It can be used to add contextual
@@ -1147,22 +986,22 @@ public int getMetadataCount() {
    *
    * map<string, string> metadata = 17;
    */
+
   @java.lang.Override
-  public boolean containsMetadata(java.lang.String key) {
-    if (key == null) {
-      throw new NullPointerException("map key");
-    }
+  public boolean containsMetadata(
+      java.lang.String key) {
+    if (key == null) { throw new NullPointerException("map key"); }
     return internalGetMetadata().getMap().containsKey(key);
   }
-  /** Use {@link #getMetadataMap()} instead. */
+  /**
+   * Use {@link #getMetadataMap()} instead.
+   */
   @java.lang.Override
   @java.lang.Deprecated
   public java.util.Map getMetadata() {
     return getMetadataMap();
   }
   /**
-   *
-   *
    * 
    * The metadata key-value pairs assigned to the device. This metadata is not
    * interpreted or indexed by Cloud IoT Core. It can be used to add contextual
@@ -1178,12 +1017,11 @@ public java.util.Map getMetadata() {
    * map<string, string> metadata = 17;
    */
   @java.lang.Override
+
   public java.util.Map getMetadataMap() {
     return internalGetMetadata().getMap();
   }
   /**
-   *
-   *
    * 
    * The metadata key-value pairs assigned to the device. This metadata is not
    * interpreted or indexed by Cloud IoT Core. It can be used to add contextual
@@ -1199,17 +1037,16 @@ public java.util.Map getMetadataMap() {
    * map<string, string> metadata = 17;
    */
   @java.lang.Override
+
   public java.lang.String getMetadataOrDefault(
-      java.lang.String key, java.lang.String defaultValue) {
-    if (key == null) {
-      throw new NullPointerException("map key");
-    }
-    java.util.Map map = internalGetMetadata().getMap();
+      java.lang.String key,
+      java.lang.String defaultValue) {
+    if (key == null) { throw new NullPointerException("map key"); }
+    java.util.Map map =
+        internalGetMetadata().getMap();
     return map.containsKey(key) ? map.get(key) : defaultValue;
   }
   /**
-   *
-   *
    * 
    * The metadata key-value pairs assigned to the device. This metadata is not
    * interpreted or indexed by Cloud IoT Core. It can be used to add contextual
@@ -1225,11 +1062,12 @@ public java.lang.String getMetadataOrDefault(
    * map<string, string> metadata = 17;
    */
   @java.lang.Override
-  public java.lang.String getMetadataOrThrow(java.lang.String key) {
-    if (key == null) {
-      throw new NullPointerException("map key");
-    }
-    java.util.Map map = internalGetMetadata().getMap();
+
+  public java.lang.String getMetadataOrThrow(
+      java.lang.String key) {
+    if (key == null) { throw new NullPointerException("map key"); }
+    java.util.Map map =
+        internalGetMetadata().getMap();
     if (!map.containsKey(key)) {
       throw new java.lang.IllegalArgumentException();
     }
@@ -1239,14 +1077,11 @@ public java.lang.String getMetadataOrThrow(java.lang.String key) {
   public static final int GATEWAY_CONFIG_FIELD_NUMBER = 24;
   private com.google.cloud.iot.v1.GatewayConfig gatewayConfig_;
   /**
-   *
-   *
    * 
    * Gateway-related configuration and state.
    * 
* * .google.cloud.iot.v1.GatewayConfig gateway_config = 24; - * * @return Whether the gatewayConfig field is set. */ @java.lang.Override @@ -1254,25 +1089,18 @@ public boolean hasGatewayConfig() { return gatewayConfig_ != null; } /** - * - * *
    * Gateway-related configuration and state.
    * 
* * .google.cloud.iot.v1.GatewayConfig gateway_config = 24; - * * @return The gatewayConfig. */ @java.lang.Override public com.google.cloud.iot.v1.GatewayConfig getGatewayConfig() { - return gatewayConfig_ == null - ? com.google.cloud.iot.v1.GatewayConfig.getDefaultInstance() - : gatewayConfig_; + return gatewayConfig_ == null ? com.google.cloud.iot.v1.GatewayConfig.getDefaultInstance() : gatewayConfig_; } /** - * - * *
    * Gateway-related configuration and state.
    * 
@@ -1285,7 +1113,6 @@ public com.google.cloud.iot.v1.GatewayConfigOrBuilder getGatewayConfigOrBuilder( } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -1297,7 +1124,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(id_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, id_); } @@ -1331,8 +1159,12 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (state_ != null) { output.writeMessage(16, getState()); } - com.google.protobuf.GeneratedMessageV3.serializeStringMapTo( - output, internalGetMetadata(), MetadataDefaultEntryHolder.defaultEntry, 17); + com.google.protobuf.GeneratedMessageV3 + .serializeStringMapTo( + output, + internalGetMetadata(), + MetadataDefaultEntryHolder.defaultEntry, + 17); if (lastConfigSendTime_ != null) { output.writeMessage(18, getLastConfigSendTime()); } @@ -1364,56 +1196,70 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, name_); } if (numId_ != 0L) { - size += com.google.protobuf.CodedOutputStream.computeUInt64Size(3, numId_); + size += com.google.protobuf.CodedOutputStream + .computeUInt64Size(3, numId_); } if (lastHeartbeatTime_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(7, getLastHeartbeatTime()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(7, getLastHeartbeatTime()); } if (lastEventTime_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(8, getLastEventTime()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(8, getLastEventTime()); } if (lastErrorTime_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(10, getLastErrorTime()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(10, getLastErrorTime()); } if (lastErrorStatus_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(11, getLastErrorStatus()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(11, getLastErrorStatus()); } for (int i = 0; i < credentials_.size(); i++) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(12, credentials_.get(i)); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(12, credentials_.get(i)); } if (config_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(13, getConfig()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(13, getConfig()); } if (lastConfigAckTime_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(14, getLastConfigAckTime()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(14, getLastConfigAckTime()); } if (state_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(16, getState()); - } - for (java.util.Map.Entry entry : - internalGetMetadata().getMap().entrySet()) { - com.google.protobuf.MapEntry metadata__ = - MetadataDefaultEntryHolder.defaultEntry - .newBuilderForType() - .setKey(entry.getKey()) - .setValue(entry.getValue()) - .build(); - size += com.google.protobuf.CodedOutputStream.computeMessageSize(17, metadata__); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(16, getState()); + } + for (java.util.Map.Entry entry + : internalGetMetadata().getMap().entrySet()) { + com.google.protobuf.MapEntry + metadata__ = MetadataDefaultEntryHolder.defaultEntry.newBuilderForType() + .setKey(entry.getKey()) + .setValue(entry.getValue()) + .build(); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(17, metadata__); } if (lastConfigSendTime_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(18, getLastConfigSendTime()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(18, getLastConfigSendTime()); } if (blocked_ != false) { - size += com.google.protobuf.CodedOutputStream.computeBoolSize(19, blocked_); + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(19, blocked_); } if (lastStateTime_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(20, getLastStateTime()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(20, getLastStateTime()); } if (logLevel_ != com.google.cloud.iot.v1.LogLevel.LOG_LEVEL_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream.computeEnumSize(21, logLevel_); + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(21, logLevel_); } if (gatewayConfig_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(24, getGatewayConfig()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(24, getGatewayConfig()); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -1423,59 +1269,75 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.iot.v1.Device)) { return super.equals(obj); } com.google.cloud.iot.v1.Device other = (com.google.cloud.iot.v1.Device) obj; - if (!getId().equals(other.getId())) return false; - if (!getName().equals(other.getName())) return false; - if (getNumId() != other.getNumId()) return false; - if (!getCredentialsList().equals(other.getCredentialsList())) return false; + if (!getId() + .equals(other.getId())) return false; + if (!getName() + .equals(other.getName())) return false; + if (getNumId() + != other.getNumId()) return false; + if (!getCredentialsList() + .equals(other.getCredentialsList())) return false; if (hasLastHeartbeatTime() != other.hasLastHeartbeatTime()) return false; if (hasLastHeartbeatTime()) { - if (!getLastHeartbeatTime().equals(other.getLastHeartbeatTime())) return false; + if (!getLastHeartbeatTime() + .equals(other.getLastHeartbeatTime())) return false; } if (hasLastEventTime() != other.hasLastEventTime()) return false; if (hasLastEventTime()) { - if (!getLastEventTime().equals(other.getLastEventTime())) return false; + if (!getLastEventTime() + .equals(other.getLastEventTime())) return false; } if (hasLastStateTime() != other.hasLastStateTime()) return false; if (hasLastStateTime()) { - if (!getLastStateTime().equals(other.getLastStateTime())) return false; + if (!getLastStateTime() + .equals(other.getLastStateTime())) return false; } if (hasLastConfigAckTime() != other.hasLastConfigAckTime()) return false; if (hasLastConfigAckTime()) { - if (!getLastConfigAckTime().equals(other.getLastConfigAckTime())) return false; + if (!getLastConfigAckTime() + .equals(other.getLastConfigAckTime())) return false; } if (hasLastConfigSendTime() != other.hasLastConfigSendTime()) return false; if (hasLastConfigSendTime()) { - if (!getLastConfigSendTime().equals(other.getLastConfigSendTime())) return false; + if (!getLastConfigSendTime() + .equals(other.getLastConfigSendTime())) return false; } - if (getBlocked() != other.getBlocked()) return false; + if (getBlocked() + != other.getBlocked()) return false; if (hasLastErrorTime() != other.hasLastErrorTime()) return false; if (hasLastErrorTime()) { - if (!getLastErrorTime().equals(other.getLastErrorTime())) return false; + if (!getLastErrorTime() + .equals(other.getLastErrorTime())) return false; } if (hasLastErrorStatus() != other.hasLastErrorStatus()) return false; if (hasLastErrorStatus()) { - if (!getLastErrorStatus().equals(other.getLastErrorStatus())) return false; + if (!getLastErrorStatus() + .equals(other.getLastErrorStatus())) return false; } if (hasConfig() != other.hasConfig()) return false; if (hasConfig()) { - if (!getConfig().equals(other.getConfig())) return false; + if (!getConfig() + .equals(other.getConfig())) return false; } if (hasState() != other.hasState()) return false; if (hasState()) { - if (!getState().equals(other.getState())) return false; + if (!getState() + .equals(other.getState())) return false; } if (logLevel_ != other.logLevel_) return false; - if (!internalGetMetadata().equals(other.internalGetMetadata())) return false; + if (!internalGetMetadata().equals( + other.internalGetMetadata())) return false; if (hasGatewayConfig() != other.hasGatewayConfig()) return false; if (hasGatewayConfig()) { - if (!getGatewayConfig().equals(other.getGatewayConfig())) return false; + if (!getGatewayConfig() + .equals(other.getGatewayConfig())) return false; } if (!unknownFields.equals(other.unknownFields)) return false; return true; @@ -1493,7 +1355,8 @@ public int hashCode() { hash = (37 * hash) + NAME_FIELD_NUMBER; hash = (53 * hash) + getName().hashCode(); hash = (37 * hash) + NUM_ID_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getNumId()); + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getNumId()); if (getCredentialsCount() > 0) { hash = (37 * hash) + CREDENTIALS_FIELD_NUMBER; hash = (53 * hash) + getCredentialsList().hashCode(); @@ -1519,7 +1382,8 @@ public int hashCode() { hash = (53 * hash) + getLastConfigSendTime().hashCode(); } hash = (37 * hash) + BLOCKED_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getBlocked()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getBlocked()); if (hasLastErrorTime()) { hash = (37 * hash) + LAST_ERROR_TIME_FIELD_NUMBER; hash = (53 * hash) + getLastErrorTime().hashCode(); @@ -1551,143 +1415,138 @@ public int hashCode() { return hash; } - public static com.google.cloud.iot.v1.Device parseFrom(java.nio.ByteBuffer data) + public static com.google.cloud.iot.v1.Device parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.iot.v1.Device parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.iot.v1.Device parseFrom(com.google.protobuf.ByteString data) + public static com.google.cloud.iot.v1.Device parseFrom( + com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.iot.v1.Device parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.iot.v1.Device parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.iot.v1.Device parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.iot.v1.Device 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.iot.v1.Device parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.iot.v1.Device 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.iot.v1.Device parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.iot.v1.Device parseFrom(com.google.protobuf.CodedInputStream input) + public static com.google.cloud.iot.v1.Device parseFrom( + com.google.protobuf.CodedInputStream 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.iot.v1.Device parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.iot.v1.Device prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected 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 device resource.
    * 
* * Protobuf type {@code google.cloud.iot.v1.Device} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.iot.v1.Device) com.google.cloud.iot.v1.DeviceOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.iot.v1.ResourcesProto - .internal_static_google_cloud_iot_v1_Device_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.iot.v1.ResourcesProto.internal_static_google_cloud_iot_v1_Device_descriptor; } @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapField internalGetMapField(int number) { + protected com.google.protobuf.MapField internalGetMapField( + int number) { switch (number) { case 17: return internalGetMetadata(); default: - throw new RuntimeException("Invalid map field number: " + number); + throw new RuntimeException( + "Invalid map field number: " + number); } } - @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapField internalGetMutableMapField(int number) { + protected com.google.protobuf.MapField internalGetMutableMapField( + int number) { switch (number) { case 17: return internalGetMutableMetadata(); default: - throw new RuntimeException("Invalid map field number: " + number); + throw new RuntimeException( + "Invalid map field number: " + number); } } - @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.iot.v1.ResourcesProto - .internal_static_google_cloud_iot_v1_Device_fieldAccessorTable + return com.google.cloud.iot.v1.ResourcesProto.internal_static_google_cloud_iot_v1_Device_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.cloud.iot.v1.Device.class, com.google.cloud.iot.v1.Device.Builder.class); } @@ -1697,17 +1556,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) { getCredentialsFieldBuilder(); } } - @java.lang.Override public Builder clear() { super.clear(); @@ -1792,9 +1651,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.iot.v1.ResourcesProto - .internal_static_google_cloud_iot_v1_Device_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.iot.v1.ResourcesProto.internal_static_google_cloud_iot_v1_Device_descriptor; } @java.lang.Override @@ -1889,39 +1748,38 @@ public com.google.cloud.iot.v1.Device buildPartial() { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.iot.v1.Device) { - return mergeFrom((com.google.cloud.iot.v1.Device) other); + return mergeFrom((com.google.cloud.iot.v1.Device)other); } else { super.mergeFrom(other); return this; @@ -1959,10 +1817,9 @@ public Builder mergeFrom(com.google.cloud.iot.v1.Device other) { credentialsBuilder_ = null; credentials_ = other.credentials_; bitField0_ = (bitField0_ & ~0x00000001); - credentialsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getCredentialsFieldBuilder() - : null; + credentialsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getCredentialsFieldBuilder() : null; } else { credentialsBuilder_.addAllMessages(other.credentials_); } @@ -2001,7 +1858,8 @@ public Builder mergeFrom(com.google.cloud.iot.v1.Device other) { if (other.logLevel_ != 0) { setLogLevelValue(other.getLogLevelValue()); } - internalGetMutableMetadata().mergeFrom(other.internalGetMetadata()); + internalGetMutableMetadata().mergeFrom( + other.internalGetMetadata()); if (other.hasGatewayConfig()) { mergeGatewayConfig(other.getGatewayConfig()); } @@ -2033,26 +1891,23 @@ public Builder mergeFrom( } return this; } - private int bitField0_; private java.lang.Object id_ = ""; /** - * - * *
      * The user-defined device identifier. The device ID must be unique
      * within a device registry.
      * 
* * string id = 1; - * * @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; @@ -2061,22 +1916,21 @@ public java.lang.String getId() { } } /** - * - * *
      * The user-defined device identifier. The device ID must be unique
      * within a device registry.
      * 
* * string id = 1; - * * @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 { @@ -2084,64 +1938,57 @@ public com.google.protobuf.ByteString getIdBytes() { } } /** - * - * *
      * The user-defined device identifier. The device ID must be unique
      * within a device registry.
      * 
* * string id = 1; - * * @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; } /** - * - * *
      * The user-defined device identifier. The device ID must be unique
      * within a device registry.
      * 
* * string id = 1; - * * @return This builder for chaining. */ public Builder clearId() { - + id_ = getDefaultInstance().getId(); onChanged(); return this; } /** - * - * *
      * The user-defined device identifier. The device ID must be unique
      * within a device registry.
      * 
* * string id = 1; - * * @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; @@ -2149,8 +1996,6 @@ public Builder setIdBytes(com.google.protobuf.ByteString value) { private java.lang.Object name_ = ""; /** - * - * *
      * The resource path name. For example,
      * `projects/p1/locations/us-central1/registries/registry0/devices/dev0` or
@@ -2160,13 +2005,13 @@ public Builder setIdBytes(com.google.protobuf.ByteString value) {
      * 
* * string name = 2; - * * @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; @@ -2175,8 +2020,6 @@ public java.lang.String getName() { } } /** - * - * *
      * The resource path name. For example,
      * `projects/p1/locations/us-central1/registries/registry0/devices/dev0` or
@@ -2186,14 +2029,15 @@ public java.lang.String getName() {
      * 
* * string name = 2; - * * @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 { @@ -2201,8 +2045,6 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
      * The resource path name. For example,
      * `projects/p1/locations/us-central1/registries/registry0/devices/dev0` or
@@ -2212,22 +2054,20 @@ public com.google.protobuf.ByteString getNameBytes() {
      * 
* * string name = 2; - * * @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; } /** - * - * *
      * The resource path name. For example,
      * `projects/p1/locations/us-central1/registries/registry0/devices/dev0` or
@@ -2237,18 +2077,15 @@ public Builder setName(java.lang.String value) {
      * 
* * string name = 2; - * * @return This builder for chaining. */ public Builder clearName() { - + name_ = getDefaultInstance().getName(); onChanged(); return this; } /** - * - * *
      * The resource path name. For example,
      * `projects/p1/locations/us-central1/registries/registry0/devices/dev0` or
@@ -2258,32 +2095,29 @@ public Builder clearName() {
      * 
* * string name = 2; - * * @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 long numId_; + private long numId_ ; /** - * - * *
      * [Output only] A server-defined unique numeric ID for the device. This is a
      * more compact way to identify devices, and it is globally unique.
      * 
* * uint64 num_id = 3; - * * @return The numId. */ @java.lang.Override @@ -2291,63 +2125,50 @@ public long getNumId() { return numId_; } /** - * - * *
      * [Output only] A server-defined unique numeric ID for the device. This is a
      * more compact way to identify devices, and it is globally unique.
      * 
* * uint64 num_id = 3; - * * @param value The numId to set. * @return This builder for chaining. */ public Builder setNumId(long value) { - + numId_ = value; onChanged(); return this; } /** - * - * *
      * [Output only] A server-defined unique numeric ID for the device. This is a
      * more compact way to identify devices, and it is globally unique.
      * 
* * uint64 num_id = 3; - * * @return This builder for chaining. */ public Builder clearNumId() { - + numId_ = 0L; onChanged(); return this; } private java.util.List credentials_ = - java.util.Collections.emptyList(); - + java.util.Collections.emptyList(); private void ensureCredentialsIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { - credentials_ = - new java.util.ArrayList(credentials_); + credentials_ = new java.util.ArrayList(credentials_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.iot.v1.DeviceCredential, - com.google.cloud.iot.v1.DeviceCredential.Builder, - com.google.cloud.iot.v1.DeviceCredentialOrBuilder> - credentialsBuilder_; + com.google.cloud.iot.v1.DeviceCredential, com.google.cloud.iot.v1.DeviceCredential.Builder, com.google.cloud.iot.v1.DeviceCredentialOrBuilder> credentialsBuilder_; /** - * - * *
      * The credentials used to authenticate this device. To allow credential
      * rotation without interruption, multiple device credentials can be bound to
@@ -2367,8 +2188,6 @@ public java.util.List getCredentialsLi
       }
     }
     /**
-     *
-     *
      * 
      * The credentials used to authenticate this device. To allow credential
      * rotation without interruption, multiple device credentials can be bound to
@@ -2388,8 +2207,6 @@ public int getCredentialsCount() {
       }
     }
     /**
-     *
-     *
      * 
      * The credentials used to authenticate this device. To allow credential
      * rotation without interruption, multiple device credentials can be bound to
@@ -2409,8 +2226,6 @@ public com.google.cloud.iot.v1.DeviceCredential getCredentials(int index) {
       }
     }
     /**
-     *
-     *
      * 
      * The credentials used to authenticate this device. To allow credential
      * rotation without interruption, multiple device credentials can be bound to
@@ -2422,7 +2237,8 @@ public com.google.cloud.iot.v1.DeviceCredential getCredentials(int index) {
      *
      * repeated .google.cloud.iot.v1.DeviceCredential credentials = 12;
      */
-    public Builder setCredentials(int index, com.google.cloud.iot.v1.DeviceCredential value) {
+    public Builder setCredentials(
+        int index, com.google.cloud.iot.v1.DeviceCredential value) {
       if (credentialsBuilder_ == null) {
         if (value == null) {
           throw new NullPointerException();
@@ -2436,8 +2252,6 @@ public Builder setCredentials(int index, com.google.cloud.iot.v1.DeviceCredentia
       return this;
     }
     /**
-     *
-     *
      * 
      * The credentials used to authenticate this device. To allow credential
      * rotation without interruption, multiple device credentials can be bound to
@@ -2461,8 +2275,6 @@ public Builder setCredentials(
       return this;
     }
     /**
-     *
-     *
      * 
      * The credentials used to authenticate this device. To allow credential
      * rotation without interruption, multiple device credentials can be bound to
@@ -2488,8 +2300,6 @@ public Builder addCredentials(com.google.cloud.iot.v1.DeviceCredential value) {
       return this;
     }
     /**
-     *
-     *
      * 
      * The credentials used to authenticate this device. To allow credential
      * rotation without interruption, multiple device credentials can be bound to
@@ -2501,7 +2311,8 @@ public Builder addCredentials(com.google.cloud.iot.v1.DeviceCredential value) {
      *
      * repeated .google.cloud.iot.v1.DeviceCredential credentials = 12;
      */
-    public Builder addCredentials(int index, com.google.cloud.iot.v1.DeviceCredential value) {
+    public Builder addCredentials(
+        int index, com.google.cloud.iot.v1.DeviceCredential value) {
       if (credentialsBuilder_ == null) {
         if (value == null) {
           throw new NullPointerException();
@@ -2515,8 +2326,6 @@ public Builder addCredentials(int index, com.google.cloud.iot.v1.DeviceCredentia
       return this;
     }
     /**
-     *
-     *
      * 
      * The credentials used to authenticate this device. To allow credential
      * rotation without interruption, multiple device credentials can be bound to
@@ -2540,8 +2349,6 @@ public Builder addCredentials(
       return this;
     }
     /**
-     *
-     *
      * 
      * The credentials used to authenticate this device. To allow credential
      * rotation without interruption, multiple device credentials can be bound to
@@ -2565,8 +2372,6 @@ public Builder addCredentials(
       return this;
     }
     /**
-     *
-     *
      * 
      * The credentials used to authenticate this device. To allow credential
      * rotation without interruption, multiple device credentials can be bound to
@@ -2582,7 +2387,8 @@ public Builder addAllCredentials(
         java.lang.Iterable values) {
       if (credentialsBuilder_ == null) {
         ensureCredentialsIsMutable();
-        com.google.protobuf.AbstractMessageLite.Builder.addAll(values, credentials_);
+        com.google.protobuf.AbstractMessageLite.Builder.addAll(
+            values, credentials_);
         onChanged();
       } else {
         credentialsBuilder_.addAllMessages(values);
@@ -2590,8 +2396,6 @@ public Builder addAllCredentials(
       return this;
     }
     /**
-     *
-     *
      * 
      * The credentials used to authenticate this device. To allow credential
      * rotation without interruption, multiple device credentials can be bound to
@@ -2614,8 +2418,6 @@ public Builder clearCredentials() {
       return this;
     }
     /**
-     *
-     *
      * 
      * The credentials used to authenticate this device. To allow credential
      * rotation without interruption, multiple device credentials can be bound to
@@ -2638,8 +2440,6 @@ public Builder removeCredentials(int index) {
       return this;
     }
     /**
-     *
-     *
      * 
      * The credentials used to authenticate this device. To allow credential
      * rotation without interruption, multiple device credentials can be bound to
@@ -2651,12 +2451,11 @@ public Builder removeCredentials(int index) {
      *
      * repeated .google.cloud.iot.v1.DeviceCredential credentials = 12;
      */
-    public com.google.cloud.iot.v1.DeviceCredential.Builder getCredentialsBuilder(int index) {
+    public com.google.cloud.iot.v1.DeviceCredential.Builder getCredentialsBuilder(
+        int index) {
       return getCredentialsFieldBuilder().getBuilder(index);
     }
     /**
-     *
-     *
      * 
      * The credentials used to authenticate this device. To allow credential
      * rotation without interruption, multiple device credentials can be bound to
@@ -2668,16 +2467,14 @@ public com.google.cloud.iot.v1.DeviceCredential.Builder getCredentialsBuilder(in
      *
      * repeated .google.cloud.iot.v1.DeviceCredential credentials = 12;
      */
-    public com.google.cloud.iot.v1.DeviceCredentialOrBuilder getCredentialsOrBuilder(int index) {
+    public com.google.cloud.iot.v1.DeviceCredentialOrBuilder getCredentialsOrBuilder(
+        int index) {
       if (credentialsBuilder_ == null) {
-        return credentials_.get(index);
-      } else {
+        return credentials_.get(index);  } else {
         return credentialsBuilder_.getMessageOrBuilder(index);
       }
     }
     /**
-     *
-     *
      * 
      * The credentials used to authenticate this device. To allow credential
      * rotation without interruption, multiple device credentials can be bound to
@@ -2689,8 +2486,8 @@ public com.google.cloud.iot.v1.DeviceCredentialOrBuilder getCredentialsOrBuilder
      *
      * repeated .google.cloud.iot.v1.DeviceCredential credentials = 12;
      */
-    public java.util.List
-        getCredentialsOrBuilderList() {
+    public java.util.List 
+         getCredentialsOrBuilderList() {
       if (credentialsBuilder_ != null) {
         return credentialsBuilder_.getMessageOrBuilderList();
       } else {
@@ -2698,8 +2495,6 @@ public com.google.cloud.iot.v1.DeviceCredentialOrBuilder getCredentialsOrBuilder
       }
     }
     /**
-     *
-     *
      * 
      * The credentials used to authenticate this device. To allow credential
      * rotation without interruption, multiple device credentials can be bound to
@@ -2712,12 +2507,10 @@ public com.google.cloud.iot.v1.DeviceCredentialOrBuilder getCredentialsOrBuilder
      * repeated .google.cloud.iot.v1.DeviceCredential credentials = 12;
      */
     public com.google.cloud.iot.v1.DeviceCredential.Builder addCredentialsBuilder() {
-      return getCredentialsFieldBuilder()
-          .addBuilder(com.google.cloud.iot.v1.DeviceCredential.getDefaultInstance());
+      return getCredentialsFieldBuilder().addBuilder(
+          com.google.cloud.iot.v1.DeviceCredential.getDefaultInstance());
     }
     /**
-     *
-     *
      * 
      * The credentials used to authenticate this device. To allow credential
      * rotation without interruption, multiple device credentials can be bound to
@@ -2729,13 +2522,12 @@ public com.google.cloud.iot.v1.DeviceCredential.Builder addCredentialsBuilder()
      *
      * repeated .google.cloud.iot.v1.DeviceCredential credentials = 12;
      */
-    public com.google.cloud.iot.v1.DeviceCredential.Builder addCredentialsBuilder(int index) {
-      return getCredentialsFieldBuilder()
-          .addBuilder(index, com.google.cloud.iot.v1.DeviceCredential.getDefaultInstance());
+    public com.google.cloud.iot.v1.DeviceCredential.Builder addCredentialsBuilder(
+        int index) {
+      return getCredentialsFieldBuilder().addBuilder(
+          index, com.google.cloud.iot.v1.DeviceCredential.getDefaultInstance());
     }
     /**
-     *
-     *
      * 
      * The credentials used to authenticate this device. To allow credential
      * rotation without interruption, multiple device credentials can be bound to
@@ -2747,23 +2539,20 @@ public com.google.cloud.iot.v1.DeviceCredential.Builder addCredentialsBuilder(in
      *
      * repeated .google.cloud.iot.v1.DeviceCredential credentials = 12;
      */
-    public java.util.List
-        getCredentialsBuilderList() {
+    public java.util.List 
+         getCredentialsBuilderList() {
       return getCredentialsFieldBuilder().getBuilderList();
     }
-
     private com.google.protobuf.RepeatedFieldBuilderV3<
-            com.google.cloud.iot.v1.DeviceCredential,
-            com.google.cloud.iot.v1.DeviceCredential.Builder,
-            com.google.cloud.iot.v1.DeviceCredentialOrBuilder>
+        com.google.cloud.iot.v1.DeviceCredential, com.google.cloud.iot.v1.DeviceCredential.Builder, com.google.cloud.iot.v1.DeviceCredentialOrBuilder> 
         getCredentialsFieldBuilder() {
       if (credentialsBuilder_ == null) {
-        credentialsBuilder_ =
-            new com.google.protobuf.RepeatedFieldBuilderV3<
-                com.google.cloud.iot.v1.DeviceCredential,
-                com.google.cloud.iot.v1.DeviceCredential.Builder,
-                com.google.cloud.iot.v1.DeviceCredentialOrBuilder>(
-                credentials_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean());
+        credentialsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
+            com.google.cloud.iot.v1.DeviceCredential, com.google.cloud.iot.v1.DeviceCredential.Builder, com.google.cloud.iot.v1.DeviceCredentialOrBuilder>(
+                credentials_,
+                ((bitField0_ & 0x00000001) != 0),
+                getParentForChildren(),
+                isClean());
         credentials_ = null;
       }
       return credentialsBuilder_;
@@ -2771,13 +2560,8 @@ public com.google.cloud.iot.v1.DeviceCredential.Builder addCredentialsBuilder(in
 
     private com.google.protobuf.Timestamp lastHeartbeatTime_;
     private com.google.protobuf.SingleFieldBuilderV3<
-            com.google.protobuf.Timestamp,
-            com.google.protobuf.Timestamp.Builder,
-            com.google.protobuf.TimestampOrBuilder>
-        lastHeartbeatTimeBuilder_;
+        com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> lastHeartbeatTimeBuilder_;
     /**
-     *
-     *
      * 
      * [Output only] The last time an MQTT `PINGREQ` was received. This field
      * applies only to devices connecting through MQTT. MQTT clients usually only
@@ -2787,15 +2571,12 @@ public com.google.cloud.iot.v1.DeviceCredential.Builder addCredentialsBuilder(in
      * 
* * .google.protobuf.Timestamp last_heartbeat_time = 7; - * * @return Whether the lastHeartbeatTime field is set. */ public boolean hasLastHeartbeatTime() { return lastHeartbeatTimeBuilder_ != null || lastHeartbeatTime_ != null; } /** - * - * *
      * [Output only] The last time an MQTT `PINGREQ` was received. This field
      * applies only to devices connecting through MQTT. MQTT clients usually only
@@ -2805,21 +2586,16 @@ public boolean hasLastHeartbeatTime() {
      * 
* * .google.protobuf.Timestamp last_heartbeat_time = 7; - * * @return The lastHeartbeatTime. */ public com.google.protobuf.Timestamp getLastHeartbeatTime() { if (lastHeartbeatTimeBuilder_ == null) { - return lastHeartbeatTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : lastHeartbeatTime_; + return lastHeartbeatTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : lastHeartbeatTime_; } else { return lastHeartbeatTimeBuilder_.getMessage(); } } /** - * - * *
      * [Output only] The last time an MQTT `PINGREQ` was received. This field
      * applies only to devices connecting through MQTT. MQTT clients usually only
@@ -2844,8 +2620,6 @@ public Builder setLastHeartbeatTime(com.google.protobuf.Timestamp value) {
       return this;
     }
     /**
-     *
-     *
      * 
      * [Output only] The last time an MQTT `PINGREQ` was received. This field
      * applies only to devices connecting through MQTT. MQTT clients usually only
@@ -2856,7 +2630,8 @@ public Builder setLastHeartbeatTime(com.google.protobuf.Timestamp value) {
      *
      * .google.protobuf.Timestamp last_heartbeat_time = 7;
      */
-    public Builder setLastHeartbeatTime(com.google.protobuf.Timestamp.Builder builderForValue) {
+    public Builder setLastHeartbeatTime(
+        com.google.protobuf.Timestamp.Builder builderForValue) {
       if (lastHeartbeatTimeBuilder_ == null) {
         lastHeartbeatTime_ = builderForValue.build();
         onChanged();
@@ -2867,8 +2642,6 @@ public Builder setLastHeartbeatTime(com.google.protobuf.Timestamp.Builder builde
       return this;
     }
     /**
-     *
-     *
      * 
      * [Output only] The last time an MQTT `PINGREQ` was received. This field
      * applies only to devices connecting through MQTT. MQTT clients usually only
@@ -2883,9 +2656,7 @@ public Builder mergeLastHeartbeatTime(com.google.protobuf.Timestamp value) {
       if (lastHeartbeatTimeBuilder_ == null) {
         if (lastHeartbeatTime_ != null) {
           lastHeartbeatTime_ =
-              com.google.protobuf.Timestamp.newBuilder(lastHeartbeatTime_)
-                  .mergeFrom(value)
-                  .buildPartial();
+            com.google.protobuf.Timestamp.newBuilder(lastHeartbeatTime_).mergeFrom(value).buildPartial();
         } else {
           lastHeartbeatTime_ = value;
         }
@@ -2897,8 +2668,6 @@ public Builder mergeLastHeartbeatTime(com.google.protobuf.Timestamp value) {
       return this;
     }
     /**
-     *
-     *
      * 
      * [Output only] The last time an MQTT `PINGREQ` was received. This field
      * applies only to devices connecting through MQTT. MQTT clients usually only
@@ -2921,8 +2690,6 @@ public Builder clearLastHeartbeatTime() {
       return this;
     }
     /**
-     *
-     *
      * 
      * [Output only] The last time an MQTT `PINGREQ` was received. This field
      * applies only to devices connecting through MQTT. MQTT clients usually only
@@ -2934,13 +2701,11 @@ public Builder clearLastHeartbeatTime() {
      * .google.protobuf.Timestamp last_heartbeat_time = 7;
      */
     public com.google.protobuf.Timestamp.Builder getLastHeartbeatTimeBuilder() {
-
+      
       onChanged();
       return getLastHeartbeatTimeFieldBuilder().getBuilder();
     }
     /**
-     *
-     *
      * 
      * [Output only] The last time an MQTT `PINGREQ` was received. This field
      * applies only to devices connecting through MQTT. MQTT clients usually only
@@ -2955,14 +2720,11 @@ public com.google.protobuf.TimestampOrBuilder getLastHeartbeatTimeOrBuilder() {
       if (lastHeartbeatTimeBuilder_ != null) {
         return lastHeartbeatTimeBuilder_.getMessageOrBuilder();
       } else {
-        return lastHeartbeatTime_ == null
-            ? com.google.protobuf.Timestamp.getDefaultInstance()
-            : lastHeartbeatTime_;
+        return lastHeartbeatTime_ == null ?
+            com.google.protobuf.Timestamp.getDefaultInstance() : lastHeartbeatTime_;
       }
     }
     /**
-     *
-     *
      * 
      * [Output only] The last time an MQTT `PINGREQ` was received. This field
      * applies only to devices connecting through MQTT. MQTT clients usually only
@@ -2974,17 +2736,14 @@ public com.google.protobuf.TimestampOrBuilder getLastHeartbeatTimeOrBuilder() {
      * .google.protobuf.Timestamp last_heartbeat_time = 7;
      */
     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> 
         getLastHeartbeatTimeFieldBuilder() {
       if (lastHeartbeatTimeBuilder_ == null) {
-        lastHeartbeatTimeBuilder_ =
-            new com.google.protobuf.SingleFieldBuilderV3<
-                com.google.protobuf.Timestamp,
-                com.google.protobuf.Timestamp.Builder,
-                com.google.protobuf.TimestampOrBuilder>(
-                getLastHeartbeatTime(), getParentForChildren(), isClean());
+        lastHeartbeatTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
+            com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>(
+                getLastHeartbeatTime(),
+                getParentForChildren(),
+                isClean());
         lastHeartbeatTime_ = null;
       }
       return lastHeartbeatTimeBuilder_;
@@ -2992,13 +2751,8 @@ public com.google.protobuf.TimestampOrBuilder getLastHeartbeatTimeOrBuilder() {
 
     private com.google.protobuf.Timestamp lastEventTime_;
     private com.google.protobuf.SingleFieldBuilderV3<
-            com.google.protobuf.Timestamp,
-            com.google.protobuf.Timestamp.Builder,
-            com.google.protobuf.TimestampOrBuilder>
-        lastEventTimeBuilder_;
+        com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> lastEventTimeBuilder_;
     /**
-     *
-     *
      * 
      * [Output only] The last time a telemetry event was received. Timestamps are
      * periodically collected and written to storage; they may be stale by a few
@@ -3006,15 +2760,12 @@ public com.google.protobuf.TimestampOrBuilder getLastHeartbeatTimeOrBuilder() {
      * 
* * .google.protobuf.Timestamp last_event_time = 8; - * * @return Whether the lastEventTime field is set. */ public boolean hasLastEventTime() { return lastEventTimeBuilder_ != null || lastEventTime_ != null; } /** - * - * *
      * [Output only] The last time a telemetry event was received. Timestamps are
      * periodically collected and written to storage; they may be stale by a few
@@ -3022,21 +2773,16 @@ public boolean hasLastEventTime() {
      * 
* * .google.protobuf.Timestamp last_event_time = 8; - * * @return The lastEventTime. */ public com.google.protobuf.Timestamp getLastEventTime() { if (lastEventTimeBuilder_ == null) { - return lastEventTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : lastEventTime_; + return lastEventTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : lastEventTime_; } else { return lastEventTimeBuilder_.getMessage(); } } /** - * - * *
      * [Output only] The last time a telemetry event was received. Timestamps are
      * periodically collected and written to storage; they may be stale by a few
@@ -3059,8 +2805,6 @@ public Builder setLastEventTime(com.google.protobuf.Timestamp value) {
       return this;
     }
     /**
-     *
-     *
      * 
      * [Output only] The last time a telemetry event was received. Timestamps are
      * periodically collected and written to storage; they may be stale by a few
@@ -3069,7 +2813,8 @@ public Builder setLastEventTime(com.google.protobuf.Timestamp value) {
      *
      * .google.protobuf.Timestamp last_event_time = 8;
      */
-    public Builder setLastEventTime(com.google.protobuf.Timestamp.Builder builderForValue) {
+    public Builder setLastEventTime(
+        com.google.protobuf.Timestamp.Builder builderForValue) {
       if (lastEventTimeBuilder_ == null) {
         lastEventTime_ = builderForValue.build();
         onChanged();
@@ -3080,8 +2825,6 @@ public Builder setLastEventTime(com.google.protobuf.Timestamp.Builder builderFor
       return this;
     }
     /**
-     *
-     *
      * 
      * [Output only] The last time a telemetry event was received. Timestamps are
      * periodically collected and written to storage; they may be stale by a few
@@ -3094,9 +2837,7 @@ public Builder mergeLastEventTime(com.google.protobuf.Timestamp value) {
       if (lastEventTimeBuilder_ == null) {
         if (lastEventTime_ != null) {
           lastEventTime_ =
-              com.google.protobuf.Timestamp.newBuilder(lastEventTime_)
-                  .mergeFrom(value)
-                  .buildPartial();
+            com.google.protobuf.Timestamp.newBuilder(lastEventTime_).mergeFrom(value).buildPartial();
         } else {
           lastEventTime_ = value;
         }
@@ -3108,8 +2849,6 @@ public Builder mergeLastEventTime(com.google.protobuf.Timestamp value) {
       return this;
     }
     /**
-     *
-     *
      * 
      * [Output only] The last time a telemetry event was received. Timestamps are
      * periodically collected and written to storage; they may be stale by a few
@@ -3130,8 +2869,6 @@ public Builder clearLastEventTime() {
       return this;
     }
     /**
-     *
-     *
      * 
      * [Output only] The last time a telemetry event was received. Timestamps are
      * periodically collected and written to storage; they may be stale by a few
@@ -3141,13 +2878,11 @@ public Builder clearLastEventTime() {
      * .google.protobuf.Timestamp last_event_time = 8;
      */
     public com.google.protobuf.Timestamp.Builder getLastEventTimeBuilder() {
-
+      
       onChanged();
       return getLastEventTimeFieldBuilder().getBuilder();
     }
     /**
-     *
-     *
      * 
      * [Output only] The last time a telemetry event was received. Timestamps are
      * periodically collected and written to storage; they may be stale by a few
@@ -3160,14 +2895,11 @@ public com.google.protobuf.TimestampOrBuilder getLastEventTimeOrBuilder() {
       if (lastEventTimeBuilder_ != null) {
         return lastEventTimeBuilder_.getMessageOrBuilder();
       } else {
-        return lastEventTime_ == null
-            ? com.google.protobuf.Timestamp.getDefaultInstance()
-            : lastEventTime_;
+        return lastEventTime_ == null ?
+            com.google.protobuf.Timestamp.getDefaultInstance() : lastEventTime_;
       }
     }
     /**
-     *
-     *
      * 
      * [Output only] The last time a telemetry event was received. Timestamps are
      * periodically collected and written to storage; they may be stale by a few
@@ -3177,17 +2909,14 @@ public com.google.protobuf.TimestampOrBuilder getLastEventTimeOrBuilder() {
      * .google.protobuf.Timestamp last_event_time = 8;
      */
     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> 
         getLastEventTimeFieldBuilder() {
       if (lastEventTimeBuilder_ == null) {
-        lastEventTimeBuilder_ =
-            new com.google.protobuf.SingleFieldBuilderV3<
-                com.google.protobuf.Timestamp,
-                com.google.protobuf.Timestamp.Builder,
-                com.google.protobuf.TimestampOrBuilder>(
-                getLastEventTime(), getParentForChildren(), isClean());
+        lastEventTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
+            com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>(
+                getLastEventTime(),
+                getParentForChildren(),
+                isClean());
         lastEventTime_ = null;
       }
       return lastEventTimeBuilder_;
@@ -3195,13 +2924,8 @@ public com.google.protobuf.TimestampOrBuilder getLastEventTimeOrBuilder() {
 
     private com.google.protobuf.Timestamp lastStateTime_;
     private com.google.protobuf.SingleFieldBuilderV3<
-            com.google.protobuf.Timestamp,
-            com.google.protobuf.Timestamp.Builder,
-            com.google.protobuf.TimestampOrBuilder>
-        lastStateTimeBuilder_;
+        com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> lastStateTimeBuilder_;
     /**
-     *
-     *
      * 
      * [Output only] The last time a state event was received. Timestamps are
      * periodically collected and written to storage; they may be stale by a few
@@ -3209,15 +2933,12 @@ public com.google.protobuf.TimestampOrBuilder getLastEventTimeOrBuilder() {
      * 
* * .google.protobuf.Timestamp last_state_time = 20; - * * @return Whether the lastStateTime field is set. */ public boolean hasLastStateTime() { return lastStateTimeBuilder_ != null || lastStateTime_ != null; } /** - * - * *
      * [Output only] The last time a state event was received. Timestamps are
      * periodically collected and written to storage; they may be stale by a few
@@ -3225,21 +2946,16 @@ public boolean hasLastStateTime() {
      * 
* * .google.protobuf.Timestamp last_state_time = 20; - * * @return The lastStateTime. */ public com.google.protobuf.Timestamp getLastStateTime() { if (lastStateTimeBuilder_ == null) { - return lastStateTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : lastStateTime_; + return lastStateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : lastStateTime_; } else { return lastStateTimeBuilder_.getMessage(); } } /** - * - * *
      * [Output only] The last time a state event was received. Timestamps are
      * periodically collected and written to storage; they may be stale by a few
@@ -3262,8 +2978,6 @@ public Builder setLastStateTime(com.google.protobuf.Timestamp value) {
       return this;
     }
     /**
-     *
-     *
      * 
      * [Output only] The last time a state event was received. Timestamps are
      * periodically collected and written to storage; they may be stale by a few
@@ -3272,7 +2986,8 @@ public Builder setLastStateTime(com.google.protobuf.Timestamp value) {
      *
      * .google.protobuf.Timestamp last_state_time = 20;
      */
-    public Builder setLastStateTime(com.google.protobuf.Timestamp.Builder builderForValue) {
+    public Builder setLastStateTime(
+        com.google.protobuf.Timestamp.Builder builderForValue) {
       if (lastStateTimeBuilder_ == null) {
         lastStateTime_ = builderForValue.build();
         onChanged();
@@ -3283,8 +2998,6 @@ public Builder setLastStateTime(com.google.protobuf.Timestamp.Builder builderFor
       return this;
     }
     /**
-     *
-     *
      * 
      * [Output only] The last time a state event was received. Timestamps are
      * periodically collected and written to storage; they may be stale by a few
@@ -3297,9 +3010,7 @@ public Builder mergeLastStateTime(com.google.protobuf.Timestamp value) {
       if (lastStateTimeBuilder_ == null) {
         if (lastStateTime_ != null) {
           lastStateTime_ =
-              com.google.protobuf.Timestamp.newBuilder(lastStateTime_)
-                  .mergeFrom(value)
-                  .buildPartial();
+            com.google.protobuf.Timestamp.newBuilder(lastStateTime_).mergeFrom(value).buildPartial();
         } else {
           lastStateTime_ = value;
         }
@@ -3311,8 +3022,6 @@ public Builder mergeLastStateTime(com.google.protobuf.Timestamp value) {
       return this;
     }
     /**
-     *
-     *
      * 
      * [Output only] The last time a state event was received. Timestamps are
      * periodically collected and written to storage; they may be stale by a few
@@ -3333,8 +3042,6 @@ public Builder clearLastStateTime() {
       return this;
     }
     /**
-     *
-     *
      * 
      * [Output only] The last time a state event was received. Timestamps are
      * periodically collected and written to storage; they may be stale by a few
@@ -3344,13 +3051,11 @@ public Builder clearLastStateTime() {
      * .google.protobuf.Timestamp last_state_time = 20;
      */
     public com.google.protobuf.Timestamp.Builder getLastStateTimeBuilder() {
-
+      
       onChanged();
       return getLastStateTimeFieldBuilder().getBuilder();
     }
     /**
-     *
-     *
      * 
      * [Output only] The last time a state event was received. Timestamps are
      * periodically collected and written to storage; they may be stale by a few
@@ -3363,14 +3068,11 @@ public com.google.protobuf.TimestampOrBuilder getLastStateTimeOrBuilder() {
       if (lastStateTimeBuilder_ != null) {
         return lastStateTimeBuilder_.getMessageOrBuilder();
       } else {
-        return lastStateTime_ == null
-            ? com.google.protobuf.Timestamp.getDefaultInstance()
-            : lastStateTime_;
+        return lastStateTime_ == null ?
+            com.google.protobuf.Timestamp.getDefaultInstance() : lastStateTime_;
       }
     }
     /**
-     *
-     *
      * 
      * [Output only] The last time a state event was received. Timestamps are
      * periodically collected and written to storage; they may be stale by a few
@@ -3380,17 +3082,14 @@ public com.google.protobuf.TimestampOrBuilder getLastStateTimeOrBuilder() {
      * .google.protobuf.Timestamp last_state_time = 20;
      */
     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> 
         getLastStateTimeFieldBuilder() {
       if (lastStateTimeBuilder_ == null) {
-        lastStateTimeBuilder_ =
-            new com.google.protobuf.SingleFieldBuilderV3<
-                com.google.protobuf.Timestamp,
-                com.google.protobuf.Timestamp.Builder,
-                com.google.protobuf.TimestampOrBuilder>(
-                getLastStateTime(), getParentForChildren(), isClean());
+        lastStateTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
+            com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>(
+                getLastStateTime(),
+                getParentForChildren(),
+                isClean());
         lastStateTime_ = null;
       }
       return lastStateTimeBuilder_;
@@ -3398,13 +3097,8 @@ public com.google.protobuf.TimestampOrBuilder getLastStateTimeOrBuilder() {
 
     private com.google.protobuf.Timestamp lastConfigAckTime_;
     private com.google.protobuf.SingleFieldBuilderV3<
-            com.google.protobuf.Timestamp,
-            com.google.protobuf.Timestamp.Builder,
-            com.google.protobuf.TimestampOrBuilder>
-        lastConfigAckTimeBuilder_;
+        com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> lastConfigAckTimeBuilder_;
     /**
-     *
-     *
      * 
      * [Output only] The last time a cloud-to-device config version acknowledgment
      * was received from the device. This field is only for configurations
@@ -3412,15 +3106,12 @@ public com.google.protobuf.TimestampOrBuilder getLastStateTimeOrBuilder() {
      * 
* * .google.protobuf.Timestamp last_config_ack_time = 14; - * * @return Whether the lastConfigAckTime field is set. */ public boolean hasLastConfigAckTime() { return lastConfigAckTimeBuilder_ != null || lastConfigAckTime_ != null; } /** - * - * *
      * [Output only] The last time a cloud-to-device config version acknowledgment
      * was received from the device. This field is only for configurations
@@ -3428,21 +3119,16 @@ public boolean hasLastConfigAckTime() {
      * 
* * .google.protobuf.Timestamp last_config_ack_time = 14; - * * @return The lastConfigAckTime. */ public com.google.protobuf.Timestamp getLastConfigAckTime() { if (lastConfigAckTimeBuilder_ == null) { - return lastConfigAckTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : lastConfigAckTime_; + return lastConfigAckTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : lastConfigAckTime_; } else { return lastConfigAckTimeBuilder_.getMessage(); } } /** - * - * *
      * [Output only] The last time a cloud-to-device config version acknowledgment
      * was received from the device. This field is only for configurations
@@ -3465,8 +3151,6 @@ public Builder setLastConfigAckTime(com.google.protobuf.Timestamp value) {
       return this;
     }
     /**
-     *
-     *
      * 
      * [Output only] The last time a cloud-to-device config version acknowledgment
      * was received from the device. This field is only for configurations
@@ -3475,7 +3159,8 @@ public Builder setLastConfigAckTime(com.google.protobuf.Timestamp value) {
      *
      * .google.protobuf.Timestamp last_config_ack_time = 14;
      */
-    public Builder setLastConfigAckTime(com.google.protobuf.Timestamp.Builder builderForValue) {
+    public Builder setLastConfigAckTime(
+        com.google.protobuf.Timestamp.Builder builderForValue) {
       if (lastConfigAckTimeBuilder_ == null) {
         lastConfigAckTime_ = builderForValue.build();
         onChanged();
@@ -3486,8 +3171,6 @@ public Builder setLastConfigAckTime(com.google.protobuf.Timestamp.Builder builde
       return this;
     }
     /**
-     *
-     *
      * 
      * [Output only] The last time a cloud-to-device config version acknowledgment
      * was received from the device. This field is only for configurations
@@ -3500,9 +3183,7 @@ public Builder mergeLastConfigAckTime(com.google.protobuf.Timestamp value) {
       if (lastConfigAckTimeBuilder_ == null) {
         if (lastConfigAckTime_ != null) {
           lastConfigAckTime_ =
-              com.google.protobuf.Timestamp.newBuilder(lastConfigAckTime_)
-                  .mergeFrom(value)
-                  .buildPartial();
+            com.google.protobuf.Timestamp.newBuilder(lastConfigAckTime_).mergeFrom(value).buildPartial();
         } else {
           lastConfigAckTime_ = value;
         }
@@ -3514,8 +3195,6 @@ public Builder mergeLastConfigAckTime(com.google.protobuf.Timestamp value) {
       return this;
     }
     /**
-     *
-     *
      * 
      * [Output only] The last time a cloud-to-device config version acknowledgment
      * was received from the device. This field is only for configurations
@@ -3536,8 +3215,6 @@ public Builder clearLastConfigAckTime() {
       return this;
     }
     /**
-     *
-     *
      * 
      * [Output only] The last time a cloud-to-device config version acknowledgment
      * was received from the device. This field is only for configurations
@@ -3547,13 +3224,11 @@ public Builder clearLastConfigAckTime() {
      * .google.protobuf.Timestamp last_config_ack_time = 14;
      */
     public com.google.protobuf.Timestamp.Builder getLastConfigAckTimeBuilder() {
-
+      
       onChanged();
       return getLastConfigAckTimeFieldBuilder().getBuilder();
     }
     /**
-     *
-     *
      * 
      * [Output only] The last time a cloud-to-device config version acknowledgment
      * was received from the device. This field is only for configurations
@@ -3566,14 +3241,11 @@ public com.google.protobuf.TimestampOrBuilder getLastConfigAckTimeOrBuilder() {
       if (lastConfigAckTimeBuilder_ != null) {
         return lastConfigAckTimeBuilder_.getMessageOrBuilder();
       } else {
-        return lastConfigAckTime_ == null
-            ? com.google.protobuf.Timestamp.getDefaultInstance()
-            : lastConfigAckTime_;
+        return lastConfigAckTime_ == null ?
+            com.google.protobuf.Timestamp.getDefaultInstance() : lastConfigAckTime_;
       }
     }
     /**
-     *
-     *
      * 
      * [Output only] The last time a cloud-to-device config version acknowledgment
      * was received from the device. This field is only for configurations
@@ -3583,17 +3255,14 @@ public com.google.protobuf.TimestampOrBuilder getLastConfigAckTimeOrBuilder() {
      * .google.protobuf.Timestamp last_config_ack_time = 14;
      */
     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> 
         getLastConfigAckTimeFieldBuilder() {
       if (lastConfigAckTimeBuilder_ == null) {
-        lastConfigAckTimeBuilder_ =
-            new com.google.protobuf.SingleFieldBuilderV3<
-                com.google.protobuf.Timestamp,
-                com.google.protobuf.Timestamp.Builder,
-                com.google.protobuf.TimestampOrBuilder>(
-                getLastConfigAckTime(), getParentForChildren(), isClean());
+        lastConfigAckTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
+            com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>(
+                getLastConfigAckTime(),
+                getParentForChildren(),
+                isClean());
         lastConfigAckTime_ = null;
       }
       return lastConfigAckTimeBuilder_;
@@ -3601,49 +3270,36 @@ public com.google.protobuf.TimestampOrBuilder getLastConfigAckTimeOrBuilder() {
 
     private com.google.protobuf.Timestamp lastConfigSendTime_;
     private com.google.protobuf.SingleFieldBuilderV3<
-            com.google.protobuf.Timestamp,
-            com.google.protobuf.Timestamp.Builder,
-            com.google.protobuf.TimestampOrBuilder>
-        lastConfigSendTimeBuilder_;
+        com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> lastConfigSendTimeBuilder_;
     /**
-     *
-     *
      * 
      * [Output only] The last time a cloud-to-device config version was sent to
      * the device.
      * 
* * .google.protobuf.Timestamp last_config_send_time = 18; - * * @return Whether the lastConfigSendTime field is set. */ public boolean hasLastConfigSendTime() { return lastConfigSendTimeBuilder_ != null || lastConfigSendTime_ != null; } /** - * - * *
      * [Output only] The last time a cloud-to-device config version was sent to
      * the device.
      * 
* * .google.protobuf.Timestamp last_config_send_time = 18; - * * @return The lastConfigSendTime. */ public com.google.protobuf.Timestamp getLastConfigSendTime() { if (lastConfigSendTimeBuilder_ == null) { - return lastConfigSendTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : lastConfigSendTime_; + return lastConfigSendTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : lastConfigSendTime_; } else { return lastConfigSendTimeBuilder_.getMessage(); } } /** - * - * *
      * [Output only] The last time a cloud-to-device config version was sent to
      * the device.
@@ -3665,8 +3321,6 @@ public Builder setLastConfigSendTime(com.google.protobuf.Timestamp value) {
       return this;
     }
     /**
-     *
-     *
      * 
      * [Output only] The last time a cloud-to-device config version was sent to
      * the device.
@@ -3674,7 +3328,8 @@ public Builder setLastConfigSendTime(com.google.protobuf.Timestamp value) {
      *
      * .google.protobuf.Timestamp last_config_send_time = 18;
      */
-    public Builder setLastConfigSendTime(com.google.protobuf.Timestamp.Builder builderForValue) {
+    public Builder setLastConfigSendTime(
+        com.google.protobuf.Timestamp.Builder builderForValue) {
       if (lastConfigSendTimeBuilder_ == null) {
         lastConfigSendTime_ = builderForValue.build();
         onChanged();
@@ -3685,8 +3340,6 @@ public Builder setLastConfigSendTime(com.google.protobuf.Timestamp.Builder build
       return this;
     }
     /**
-     *
-     *
      * 
      * [Output only] The last time a cloud-to-device config version was sent to
      * the device.
@@ -3698,9 +3351,7 @@ public Builder mergeLastConfigSendTime(com.google.protobuf.Timestamp value) {
       if (lastConfigSendTimeBuilder_ == null) {
         if (lastConfigSendTime_ != null) {
           lastConfigSendTime_ =
-              com.google.protobuf.Timestamp.newBuilder(lastConfigSendTime_)
-                  .mergeFrom(value)
-                  .buildPartial();
+            com.google.protobuf.Timestamp.newBuilder(lastConfigSendTime_).mergeFrom(value).buildPartial();
         } else {
           lastConfigSendTime_ = value;
         }
@@ -3712,8 +3363,6 @@ public Builder mergeLastConfigSendTime(com.google.protobuf.Timestamp value) {
       return this;
     }
     /**
-     *
-     *
      * 
      * [Output only] The last time a cloud-to-device config version was sent to
      * the device.
@@ -3733,8 +3382,6 @@ public Builder clearLastConfigSendTime() {
       return this;
     }
     /**
-     *
-     *
      * 
      * [Output only] The last time a cloud-to-device config version was sent to
      * the device.
@@ -3743,13 +3390,11 @@ public Builder clearLastConfigSendTime() {
      * .google.protobuf.Timestamp last_config_send_time = 18;
      */
     public com.google.protobuf.Timestamp.Builder getLastConfigSendTimeBuilder() {
-
+      
       onChanged();
       return getLastConfigSendTimeFieldBuilder().getBuilder();
     }
     /**
-     *
-     *
      * 
      * [Output only] The last time a cloud-to-device config version was sent to
      * the device.
@@ -3761,14 +3406,11 @@ public com.google.protobuf.TimestampOrBuilder getLastConfigSendTimeOrBuilder() {
       if (lastConfigSendTimeBuilder_ != null) {
         return lastConfigSendTimeBuilder_.getMessageOrBuilder();
       } else {
-        return lastConfigSendTime_ == null
-            ? com.google.protobuf.Timestamp.getDefaultInstance()
-            : lastConfigSendTime_;
+        return lastConfigSendTime_ == null ?
+            com.google.protobuf.Timestamp.getDefaultInstance() : lastConfigSendTime_;
       }
     }
     /**
-     *
-     *
      * 
      * [Output only] The last time a cloud-to-device config version was sent to
      * the device.
@@ -3777,26 +3419,21 @@ public com.google.protobuf.TimestampOrBuilder getLastConfigSendTimeOrBuilder() {
      * .google.protobuf.Timestamp last_config_send_time = 18;
      */
     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> 
         getLastConfigSendTimeFieldBuilder() {
       if (lastConfigSendTimeBuilder_ == null) {
-        lastConfigSendTimeBuilder_ =
-            new com.google.protobuf.SingleFieldBuilderV3<
-                com.google.protobuf.Timestamp,
-                com.google.protobuf.Timestamp.Builder,
-                com.google.protobuf.TimestampOrBuilder>(
-                getLastConfigSendTime(), getParentForChildren(), isClean());
+        lastConfigSendTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
+            com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>(
+                getLastConfigSendTime(),
+                getParentForChildren(),
+                isClean());
         lastConfigSendTime_ = null;
       }
       return lastConfigSendTimeBuilder_;
     }
 
-    private boolean blocked_;
+    private boolean blocked_ ;
     /**
-     *
-     *
      * 
      * If a device is blocked, connections or requests from this device will fail.
      * Can be used to temporarily prevent the device from connecting if, for
@@ -3804,7 +3441,6 @@ public com.google.protobuf.TimestampOrBuilder getLastConfigSendTimeOrBuilder() {
      * 
* * bool blocked = 19; - * * @return The blocked. */ @java.lang.Override @@ -3812,8 +3448,6 @@ public boolean getBlocked() { return blocked_; } /** - * - * *
      * If a device is blocked, connections or requests from this device will fail.
      * Can be used to temporarily prevent the device from connecting if, for
@@ -3821,19 +3455,16 @@ public boolean getBlocked() {
      * 
* * bool blocked = 19; - * * @param value The blocked to set. * @return This builder for chaining. */ public Builder setBlocked(boolean value) { - + blocked_ = value; onChanged(); return this; } /** - * - * *
      * If a device is blocked, connections or requests from this device will fail.
      * Can be used to temporarily prevent the device from connecting if, for
@@ -3841,11 +3472,10 @@ public Builder setBlocked(boolean value) {
      * 
* * bool blocked = 19; - * * @return This builder for chaining. */ public Builder clearBlocked() { - + blocked_ = false; onChanged(); return this; @@ -3853,13 +3483,8 @@ public Builder clearBlocked() { private com.google.protobuf.Timestamp lastErrorTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> - lastErrorTimeBuilder_; + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> lastErrorTimeBuilder_; /** - * - * *
      * [Output only] The time the most recent error occurred, such as a failure to
      * publish to Cloud Pub/Sub. This field is the timestamp of
@@ -3867,15 +3492,12 @@ public Builder clearBlocked() {
      * 
* * .google.protobuf.Timestamp last_error_time = 10; - * * @return Whether the lastErrorTime field is set. */ public boolean hasLastErrorTime() { return lastErrorTimeBuilder_ != null || lastErrorTime_ != null; } /** - * - * *
      * [Output only] The time the most recent error occurred, such as a failure to
      * publish to Cloud Pub/Sub. This field is the timestamp of
@@ -3883,21 +3505,16 @@ public boolean hasLastErrorTime() {
      * 
* * .google.protobuf.Timestamp last_error_time = 10; - * * @return The lastErrorTime. */ public com.google.protobuf.Timestamp getLastErrorTime() { if (lastErrorTimeBuilder_ == null) { - return lastErrorTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : lastErrorTime_; + return lastErrorTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : lastErrorTime_; } else { return lastErrorTimeBuilder_.getMessage(); } } /** - * - * *
      * [Output only] The time the most recent error occurred, such as a failure to
      * publish to Cloud Pub/Sub. This field is the timestamp of
@@ -3920,8 +3537,6 @@ public Builder setLastErrorTime(com.google.protobuf.Timestamp value) {
       return this;
     }
     /**
-     *
-     *
      * 
      * [Output only] The time the most recent error occurred, such as a failure to
      * publish to Cloud Pub/Sub. This field is the timestamp of
@@ -3930,7 +3545,8 @@ public Builder setLastErrorTime(com.google.protobuf.Timestamp value) {
      *
      * .google.protobuf.Timestamp last_error_time = 10;
      */
-    public Builder setLastErrorTime(com.google.protobuf.Timestamp.Builder builderForValue) {
+    public Builder setLastErrorTime(
+        com.google.protobuf.Timestamp.Builder builderForValue) {
       if (lastErrorTimeBuilder_ == null) {
         lastErrorTime_ = builderForValue.build();
         onChanged();
@@ -3941,8 +3557,6 @@ public Builder setLastErrorTime(com.google.protobuf.Timestamp.Builder builderFor
       return this;
     }
     /**
-     *
-     *
      * 
      * [Output only] The time the most recent error occurred, such as a failure to
      * publish to Cloud Pub/Sub. This field is the timestamp of
@@ -3955,9 +3569,7 @@ public Builder mergeLastErrorTime(com.google.protobuf.Timestamp value) {
       if (lastErrorTimeBuilder_ == null) {
         if (lastErrorTime_ != null) {
           lastErrorTime_ =
-              com.google.protobuf.Timestamp.newBuilder(lastErrorTime_)
-                  .mergeFrom(value)
-                  .buildPartial();
+            com.google.protobuf.Timestamp.newBuilder(lastErrorTime_).mergeFrom(value).buildPartial();
         } else {
           lastErrorTime_ = value;
         }
@@ -3969,8 +3581,6 @@ public Builder mergeLastErrorTime(com.google.protobuf.Timestamp value) {
       return this;
     }
     /**
-     *
-     *
      * 
      * [Output only] The time the most recent error occurred, such as a failure to
      * publish to Cloud Pub/Sub. This field is the timestamp of
@@ -3991,8 +3601,6 @@ public Builder clearLastErrorTime() {
       return this;
     }
     /**
-     *
-     *
      * 
      * [Output only] The time the most recent error occurred, such as a failure to
      * publish to Cloud Pub/Sub. This field is the timestamp of
@@ -4002,13 +3610,11 @@ public Builder clearLastErrorTime() {
      * .google.protobuf.Timestamp last_error_time = 10;
      */
     public com.google.protobuf.Timestamp.Builder getLastErrorTimeBuilder() {
-
+      
       onChanged();
       return getLastErrorTimeFieldBuilder().getBuilder();
     }
     /**
-     *
-     *
      * 
      * [Output only] The time the most recent error occurred, such as a failure to
      * publish to Cloud Pub/Sub. This field is the timestamp of
@@ -4021,14 +3627,11 @@ public com.google.protobuf.TimestampOrBuilder getLastErrorTimeOrBuilder() {
       if (lastErrorTimeBuilder_ != null) {
         return lastErrorTimeBuilder_.getMessageOrBuilder();
       } else {
-        return lastErrorTime_ == null
-            ? com.google.protobuf.Timestamp.getDefaultInstance()
-            : lastErrorTime_;
+        return lastErrorTime_ == null ?
+            com.google.protobuf.Timestamp.getDefaultInstance() : lastErrorTime_;
       }
     }
     /**
-     *
-     *
      * 
      * [Output only] The time the most recent error occurred, such as a failure to
      * publish to Cloud Pub/Sub. This field is the timestamp of
@@ -4038,17 +3641,14 @@ public com.google.protobuf.TimestampOrBuilder getLastErrorTimeOrBuilder() {
      * .google.protobuf.Timestamp last_error_time = 10;
      */
     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> 
         getLastErrorTimeFieldBuilder() {
       if (lastErrorTimeBuilder_ == null) {
-        lastErrorTimeBuilder_ =
-            new com.google.protobuf.SingleFieldBuilderV3<
-                com.google.protobuf.Timestamp,
-                com.google.protobuf.Timestamp.Builder,
-                com.google.protobuf.TimestampOrBuilder>(
-                getLastErrorTime(), getParentForChildren(), isClean());
+        lastErrorTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
+            com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>(
+                getLastErrorTime(),
+                getParentForChildren(),
+                isClean());
         lastErrorTime_ = null;
       }
       return lastErrorTimeBuilder_;
@@ -4056,11 +3656,8 @@ public com.google.protobuf.TimestampOrBuilder getLastErrorTimeOrBuilder() {
 
     private com.google.rpc.Status lastErrorStatus_;
     private com.google.protobuf.SingleFieldBuilderV3<
-            com.google.rpc.Status, com.google.rpc.Status.Builder, com.google.rpc.StatusOrBuilder>
-        lastErrorStatusBuilder_;
+        com.google.rpc.Status, com.google.rpc.Status.Builder, com.google.rpc.StatusOrBuilder> lastErrorStatusBuilder_;
     /**
-     *
-     *
      * 
      * [Output only] The error message of the most recent error, such as a failure
      * to publish to Cloud Pub/Sub. 'last_error_time' is the timestamp of this
@@ -4070,15 +3667,12 @@ public com.google.protobuf.TimestampOrBuilder getLastErrorTimeOrBuilder() {
      * 
* * .google.rpc.Status last_error_status = 11; - * * @return Whether the lastErrorStatus field is set. */ public boolean hasLastErrorStatus() { return lastErrorStatusBuilder_ != null || lastErrorStatus_ != null; } /** - * - * *
      * [Output only] The error message of the most recent error, such as a failure
      * to publish to Cloud Pub/Sub. 'last_error_time' is the timestamp of this
@@ -4088,21 +3682,16 @@ public boolean hasLastErrorStatus() {
      * 
* * .google.rpc.Status last_error_status = 11; - * * @return The lastErrorStatus. */ public com.google.rpc.Status getLastErrorStatus() { if (lastErrorStatusBuilder_ == null) { - return lastErrorStatus_ == null - ? com.google.rpc.Status.getDefaultInstance() - : lastErrorStatus_; + return lastErrorStatus_ == null ? com.google.rpc.Status.getDefaultInstance() : lastErrorStatus_; } else { return lastErrorStatusBuilder_.getMessage(); } } /** - * - * *
      * [Output only] The error message of the most recent error, such as a failure
      * to publish to Cloud Pub/Sub. 'last_error_time' is the timestamp of this
@@ -4127,8 +3716,6 @@ public Builder setLastErrorStatus(com.google.rpc.Status value) {
       return this;
     }
     /**
-     *
-     *
      * 
      * [Output only] The error message of the most recent error, such as a failure
      * to publish to Cloud Pub/Sub. 'last_error_time' is the timestamp of this
@@ -4139,7 +3726,8 @@ public Builder setLastErrorStatus(com.google.rpc.Status value) {
      *
      * .google.rpc.Status last_error_status = 11;
      */
-    public Builder setLastErrorStatus(com.google.rpc.Status.Builder builderForValue) {
+    public Builder setLastErrorStatus(
+        com.google.rpc.Status.Builder builderForValue) {
       if (lastErrorStatusBuilder_ == null) {
         lastErrorStatus_ = builderForValue.build();
         onChanged();
@@ -4150,8 +3738,6 @@ public Builder setLastErrorStatus(com.google.rpc.Status.Builder builderForValue)
       return this;
     }
     /**
-     *
-     *
      * 
      * [Output only] The error message of the most recent error, such as a failure
      * to publish to Cloud Pub/Sub. 'last_error_time' is the timestamp of this
@@ -4166,7 +3752,7 @@ public Builder mergeLastErrorStatus(com.google.rpc.Status value) {
       if (lastErrorStatusBuilder_ == null) {
         if (lastErrorStatus_ != null) {
           lastErrorStatus_ =
-              com.google.rpc.Status.newBuilder(lastErrorStatus_).mergeFrom(value).buildPartial();
+            com.google.rpc.Status.newBuilder(lastErrorStatus_).mergeFrom(value).buildPartial();
         } else {
           lastErrorStatus_ = value;
         }
@@ -4178,8 +3764,6 @@ public Builder mergeLastErrorStatus(com.google.rpc.Status value) {
       return this;
     }
     /**
-     *
-     *
      * 
      * [Output only] The error message of the most recent error, such as a failure
      * to publish to Cloud Pub/Sub. 'last_error_time' is the timestamp of this
@@ -4202,8 +3786,6 @@ public Builder clearLastErrorStatus() {
       return this;
     }
     /**
-     *
-     *
      * 
      * [Output only] The error message of the most recent error, such as a failure
      * to publish to Cloud Pub/Sub. 'last_error_time' is the timestamp of this
@@ -4215,13 +3797,11 @@ public Builder clearLastErrorStatus() {
      * .google.rpc.Status last_error_status = 11;
      */
     public com.google.rpc.Status.Builder getLastErrorStatusBuilder() {
-
+      
       onChanged();
       return getLastErrorStatusFieldBuilder().getBuilder();
     }
     /**
-     *
-     *
      * 
      * [Output only] The error message of the most recent error, such as a failure
      * to publish to Cloud Pub/Sub. 'last_error_time' is the timestamp of this
@@ -4236,14 +3816,11 @@ public com.google.rpc.StatusOrBuilder getLastErrorStatusOrBuilder() {
       if (lastErrorStatusBuilder_ != null) {
         return lastErrorStatusBuilder_.getMessageOrBuilder();
       } else {
-        return lastErrorStatus_ == null
-            ? com.google.rpc.Status.getDefaultInstance()
-            : lastErrorStatus_;
+        return lastErrorStatus_ == null ?
+            com.google.rpc.Status.getDefaultInstance() : lastErrorStatus_;
       }
     }
     /**
-     *
-     *
      * 
      * [Output only] The error message of the most recent error, such as a failure
      * to publish to Cloud Pub/Sub. 'last_error_time' is the timestamp of this
@@ -4255,15 +3832,14 @@ public com.google.rpc.StatusOrBuilder getLastErrorStatusOrBuilder() {
      * .google.rpc.Status last_error_status = 11;
      */
     private com.google.protobuf.SingleFieldBuilderV3<
-            com.google.rpc.Status, com.google.rpc.Status.Builder, com.google.rpc.StatusOrBuilder>
+        com.google.rpc.Status, com.google.rpc.Status.Builder, com.google.rpc.StatusOrBuilder> 
         getLastErrorStatusFieldBuilder() {
       if (lastErrorStatusBuilder_ == null) {
-        lastErrorStatusBuilder_ =
-            new com.google.protobuf.SingleFieldBuilderV3<
-                com.google.rpc.Status,
-                com.google.rpc.Status.Builder,
-                com.google.rpc.StatusOrBuilder>(
-                getLastErrorStatus(), getParentForChildren(), isClean());
+        lastErrorStatusBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
+            com.google.rpc.Status, com.google.rpc.Status.Builder, com.google.rpc.StatusOrBuilder>(
+                getLastErrorStatus(),
+                getParentForChildren(),
+                isClean());
         lastErrorStatus_ = null;
       }
       return lastErrorStatusBuilder_;
@@ -4271,13 +3847,8 @@ public com.google.rpc.StatusOrBuilder getLastErrorStatusOrBuilder() {
 
     private com.google.cloud.iot.v1.DeviceConfig config_;
     private com.google.protobuf.SingleFieldBuilderV3<
-            com.google.cloud.iot.v1.DeviceConfig,
-            com.google.cloud.iot.v1.DeviceConfig.Builder,
-            com.google.cloud.iot.v1.DeviceConfigOrBuilder>
-        configBuilder_;
+        com.google.cloud.iot.v1.DeviceConfig, com.google.cloud.iot.v1.DeviceConfig.Builder, com.google.cloud.iot.v1.DeviceConfigOrBuilder> configBuilder_;
     /**
-     *
-     *
      * 
      * The most recent device configuration, which is eventually sent from
      * Cloud IoT Core to the device. If not present on creation, the
@@ -4287,15 +3858,12 @@ public com.google.rpc.StatusOrBuilder getLastErrorStatusOrBuilder() {
      * 
* * .google.cloud.iot.v1.DeviceConfig config = 13; - * * @return Whether the config field is set. */ public boolean hasConfig() { return configBuilder_ != null || config_ != null; } /** - * - * *
      * The most recent device configuration, which is eventually sent from
      * Cloud IoT Core to the device. If not present on creation, the
@@ -4305,21 +3873,16 @@ public boolean hasConfig() {
      * 
* * .google.cloud.iot.v1.DeviceConfig config = 13; - * * @return The config. */ public com.google.cloud.iot.v1.DeviceConfig getConfig() { if (configBuilder_ == null) { - return config_ == null - ? com.google.cloud.iot.v1.DeviceConfig.getDefaultInstance() - : config_; + return config_ == null ? com.google.cloud.iot.v1.DeviceConfig.getDefaultInstance() : config_; } else { return configBuilder_.getMessage(); } } /** - * - * *
      * The most recent device configuration, which is eventually sent from
      * Cloud IoT Core to the device. If not present on creation, the
@@ -4344,8 +3907,6 @@ public Builder setConfig(com.google.cloud.iot.v1.DeviceConfig value) {
       return this;
     }
     /**
-     *
-     *
      * 
      * The most recent device configuration, which is eventually sent from
      * Cloud IoT Core to the device. If not present on creation, the
@@ -4356,7 +3917,8 @@ public Builder setConfig(com.google.cloud.iot.v1.DeviceConfig value) {
      *
      * .google.cloud.iot.v1.DeviceConfig config = 13;
      */
-    public Builder setConfig(com.google.cloud.iot.v1.DeviceConfig.Builder builderForValue) {
+    public Builder setConfig(
+        com.google.cloud.iot.v1.DeviceConfig.Builder builderForValue) {
       if (configBuilder_ == null) {
         config_ = builderForValue.build();
         onChanged();
@@ -4367,8 +3929,6 @@ public Builder setConfig(com.google.cloud.iot.v1.DeviceConfig.Builder builderFor
       return this;
     }
     /**
-     *
-     *
      * 
      * The most recent device configuration, which is eventually sent from
      * Cloud IoT Core to the device. If not present on creation, the
@@ -4383,9 +3943,7 @@ public Builder mergeConfig(com.google.cloud.iot.v1.DeviceConfig value) {
       if (configBuilder_ == null) {
         if (config_ != null) {
           config_ =
-              com.google.cloud.iot.v1.DeviceConfig.newBuilder(config_)
-                  .mergeFrom(value)
-                  .buildPartial();
+            com.google.cloud.iot.v1.DeviceConfig.newBuilder(config_).mergeFrom(value).buildPartial();
         } else {
           config_ = value;
         }
@@ -4397,8 +3955,6 @@ public Builder mergeConfig(com.google.cloud.iot.v1.DeviceConfig value) {
       return this;
     }
     /**
-     *
-     *
      * 
      * The most recent device configuration, which is eventually sent from
      * Cloud IoT Core to the device. If not present on creation, the
@@ -4421,8 +3977,6 @@ public Builder clearConfig() {
       return this;
     }
     /**
-     *
-     *
      * 
      * The most recent device configuration, which is eventually sent from
      * Cloud IoT Core to the device. If not present on creation, the
@@ -4434,13 +3988,11 @@ public Builder clearConfig() {
      * .google.cloud.iot.v1.DeviceConfig config = 13;
      */
     public com.google.cloud.iot.v1.DeviceConfig.Builder getConfigBuilder() {
-
+      
       onChanged();
       return getConfigFieldBuilder().getBuilder();
     }
     /**
-     *
-     *
      * 
      * The most recent device configuration, which is eventually sent from
      * Cloud IoT Core to the device. If not present on creation, the
@@ -4455,14 +4007,11 @@ public com.google.cloud.iot.v1.DeviceConfigOrBuilder getConfigOrBuilder() {
       if (configBuilder_ != null) {
         return configBuilder_.getMessageOrBuilder();
       } else {
-        return config_ == null
-            ? com.google.cloud.iot.v1.DeviceConfig.getDefaultInstance()
-            : config_;
+        return config_ == null ?
+            com.google.cloud.iot.v1.DeviceConfig.getDefaultInstance() : config_;
       }
     }
     /**
-     *
-     *
      * 
      * The most recent device configuration, which is eventually sent from
      * Cloud IoT Core to the device. If not present on creation, the
@@ -4474,17 +4023,14 @@ public com.google.cloud.iot.v1.DeviceConfigOrBuilder getConfigOrBuilder() {
      * .google.cloud.iot.v1.DeviceConfig config = 13;
      */
     private com.google.protobuf.SingleFieldBuilderV3<
-            com.google.cloud.iot.v1.DeviceConfig,
-            com.google.cloud.iot.v1.DeviceConfig.Builder,
-            com.google.cloud.iot.v1.DeviceConfigOrBuilder>
+        com.google.cloud.iot.v1.DeviceConfig, com.google.cloud.iot.v1.DeviceConfig.Builder, com.google.cloud.iot.v1.DeviceConfigOrBuilder> 
         getConfigFieldBuilder() {
       if (configBuilder_ == null) {
-        configBuilder_ =
-            new com.google.protobuf.SingleFieldBuilderV3<
-                com.google.cloud.iot.v1.DeviceConfig,
-                com.google.cloud.iot.v1.DeviceConfig.Builder,
-                com.google.cloud.iot.v1.DeviceConfigOrBuilder>(
-                getConfig(), getParentForChildren(), isClean());
+        configBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
+            com.google.cloud.iot.v1.DeviceConfig, com.google.cloud.iot.v1.DeviceConfig.Builder, com.google.cloud.iot.v1.DeviceConfigOrBuilder>(
+                getConfig(),
+                getParentForChildren(),
+                isClean());
         config_ = null;
       }
       return configBuilder_;
@@ -4492,35 +4038,26 @@ public com.google.cloud.iot.v1.DeviceConfigOrBuilder getConfigOrBuilder() {
 
     private com.google.cloud.iot.v1.DeviceState state_;
     private com.google.protobuf.SingleFieldBuilderV3<
-            com.google.cloud.iot.v1.DeviceState,
-            com.google.cloud.iot.v1.DeviceState.Builder,
-            com.google.cloud.iot.v1.DeviceStateOrBuilder>
-        stateBuilder_;
+        com.google.cloud.iot.v1.DeviceState, com.google.cloud.iot.v1.DeviceState.Builder, com.google.cloud.iot.v1.DeviceStateOrBuilder> stateBuilder_;
     /**
-     *
-     *
      * 
      * [Output only] The state most recently received from the device. If no state
      * has been reported, this field is not present.
      * 
* * .google.cloud.iot.v1.DeviceState state = 16; - * * @return Whether the state field is set. */ public boolean hasState() { return stateBuilder_ != null || state_ != null; } /** - * - * *
      * [Output only] The state most recently received from the device. If no state
      * has been reported, this field is not present.
      * 
* * .google.cloud.iot.v1.DeviceState state = 16; - * * @return The state. */ public com.google.cloud.iot.v1.DeviceState getState() { @@ -4531,8 +4068,6 @@ public com.google.cloud.iot.v1.DeviceState getState() { } } /** - * - * *
      * [Output only] The state most recently received from the device. If no state
      * has been reported, this field is not present.
@@ -4554,8 +4089,6 @@ public Builder setState(com.google.cloud.iot.v1.DeviceState value) {
       return this;
     }
     /**
-     *
-     *
      * 
      * [Output only] The state most recently received from the device. If no state
      * has been reported, this field is not present.
@@ -4563,7 +4096,8 @@ public Builder setState(com.google.cloud.iot.v1.DeviceState value) {
      *
      * .google.cloud.iot.v1.DeviceState state = 16;
      */
-    public Builder setState(com.google.cloud.iot.v1.DeviceState.Builder builderForValue) {
+    public Builder setState(
+        com.google.cloud.iot.v1.DeviceState.Builder builderForValue) {
       if (stateBuilder_ == null) {
         state_ = builderForValue.build();
         onChanged();
@@ -4574,8 +4108,6 @@ public Builder setState(com.google.cloud.iot.v1.DeviceState.Builder builderForVa
       return this;
     }
     /**
-     *
-     *
      * 
      * [Output only] The state most recently received from the device. If no state
      * has been reported, this field is not present.
@@ -4587,9 +4119,7 @@ public Builder mergeState(com.google.cloud.iot.v1.DeviceState value) {
       if (stateBuilder_ == null) {
         if (state_ != null) {
           state_ =
-              com.google.cloud.iot.v1.DeviceState.newBuilder(state_)
-                  .mergeFrom(value)
-                  .buildPartial();
+            com.google.cloud.iot.v1.DeviceState.newBuilder(state_).mergeFrom(value).buildPartial();
         } else {
           state_ = value;
         }
@@ -4601,8 +4131,6 @@ public Builder mergeState(com.google.cloud.iot.v1.DeviceState value) {
       return this;
     }
     /**
-     *
-     *
      * 
      * [Output only] The state most recently received from the device. If no state
      * has been reported, this field is not present.
@@ -4622,8 +4150,6 @@ public Builder clearState() {
       return this;
     }
     /**
-     *
-     *
      * 
      * [Output only] The state most recently received from the device. If no state
      * has been reported, this field is not present.
@@ -4632,13 +4158,11 @@ public Builder clearState() {
      * .google.cloud.iot.v1.DeviceState state = 16;
      */
     public com.google.cloud.iot.v1.DeviceState.Builder getStateBuilder() {
-
+      
       onChanged();
       return getStateFieldBuilder().getBuilder();
     }
     /**
-     *
-     *
      * 
      * [Output only] The state most recently received from the device. If no state
      * has been reported, this field is not present.
@@ -4650,12 +4174,11 @@ public com.google.cloud.iot.v1.DeviceStateOrBuilder getStateOrBuilder() {
       if (stateBuilder_ != null) {
         return stateBuilder_.getMessageOrBuilder();
       } else {
-        return state_ == null ? com.google.cloud.iot.v1.DeviceState.getDefaultInstance() : state_;
+        return state_ == null ?
+            com.google.cloud.iot.v1.DeviceState.getDefaultInstance() : state_;
       }
     }
     /**
-     *
-     *
      * 
      * [Output only] The state most recently received from the device. If no state
      * has been reported, this field is not present.
@@ -4664,17 +4187,14 @@ public com.google.cloud.iot.v1.DeviceStateOrBuilder getStateOrBuilder() {
      * .google.cloud.iot.v1.DeviceState state = 16;
      */
     private com.google.protobuf.SingleFieldBuilderV3<
-            com.google.cloud.iot.v1.DeviceState,
-            com.google.cloud.iot.v1.DeviceState.Builder,
-            com.google.cloud.iot.v1.DeviceStateOrBuilder>
+        com.google.cloud.iot.v1.DeviceState, com.google.cloud.iot.v1.DeviceState.Builder, com.google.cloud.iot.v1.DeviceStateOrBuilder> 
         getStateFieldBuilder() {
       if (stateBuilder_ == null) {
-        stateBuilder_ =
-            new com.google.protobuf.SingleFieldBuilderV3<
-                com.google.cloud.iot.v1.DeviceState,
-                com.google.cloud.iot.v1.DeviceState.Builder,
-                com.google.cloud.iot.v1.DeviceStateOrBuilder>(
-                getState(), getParentForChildren(), isClean());
+        stateBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
+            com.google.cloud.iot.v1.DeviceState, com.google.cloud.iot.v1.DeviceState.Builder, com.google.cloud.iot.v1.DeviceStateOrBuilder>(
+                getState(),
+                getParentForChildren(),
+                isClean());
         state_ = null;
       }
       return stateBuilder_;
@@ -4682,8 +4202,6 @@ public com.google.cloud.iot.v1.DeviceStateOrBuilder getStateOrBuilder() {
 
     private int logLevel_ = 0;
     /**
-     *
-     *
      * 
      * **Beta Feature**
      * The logging verbosity for device activity. If unspecified,
@@ -4691,16 +4209,12 @@ public com.google.cloud.iot.v1.DeviceStateOrBuilder getStateOrBuilder() {
      * 
* * .google.cloud.iot.v1.LogLevel log_level = 21; - * * @return The enum numeric value on the wire for logLevel. */ - @java.lang.Override - public int getLogLevelValue() { + @java.lang.Override public int getLogLevelValue() { return logLevel_; } /** - * - * *
      * **Beta Feature**
      * The logging verbosity for device activity. If unspecified,
@@ -4708,19 +4222,16 @@ public int getLogLevelValue() {
      * 
* * .google.cloud.iot.v1.LogLevel log_level = 21; - * * @param value The enum numeric value on the wire for logLevel to set. * @return This builder for chaining. */ public Builder setLogLevelValue(int value) { - + logLevel_ = value; onChanged(); return this; } /** - * - * *
      * **Beta Feature**
      * The logging verbosity for device activity. If unspecified,
@@ -4728,7 +4239,6 @@ public Builder setLogLevelValue(int value) {
      * 
* * .google.cloud.iot.v1.LogLevel log_level = 21; - * * @return The logLevel. */ @java.lang.Override @@ -4738,8 +4248,6 @@ public com.google.cloud.iot.v1.LogLevel getLogLevel() { return result == null ? com.google.cloud.iot.v1.LogLevel.UNRECOGNIZED : result; } /** - * - * *
      * **Beta Feature**
      * The logging verbosity for device activity. If unspecified,
@@ -4747,7 +4255,6 @@ public com.google.cloud.iot.v1.LogLevel getLogLevel() {
      * 
* * .google.cloud.iot.v1.LogLevel log_level = 21; - * * @param value The logLevel to set. * @return This builder for chaining. */ @@ -4755,14 +4262,12 @@ public Builder setLogLevel(com.google.cloud.iot.v1.LogLevel value) { if (value == null) { throw new NullPointerException(); } - + logLevel_ = value.getNumber(); onChanged(); return this; } /** - * - * *
      * **Beta Feature**
      * The logging verbosity for device activity. If unspecified,
@@ -4770,32 +4275,31 @@ public Builder setLogLevel(com.google.cloud.iot.v1.LogLevel value) {
      * 
* * .google.cloud.iot.v1.LogLevel log_level = 21; - * * @return This builder for chaining. */ public Builder clearLogLevel() { - + logLevel_ = 0; onChanged(); return this; } - private com.google.protobuf.MapField metadata_; - - private com.google.protobuf.MapField internalGetMetadata() { + private com.google.protobuf.MapField< + java.lang.String, java.lang.String> metadata_; + private com.google.protobuf.MapField + internalGetMetadata() { if (metadata_ == null) { - return com.google.protobuf.MapField.emptyMapField(MetadataDefaultEntryHolder.defaultEntry); + return com.google.protobuf.MapField.emptyMapField( + MetadataDefaultEntryHolder.defaultEntry); } return metadata_; } - private com.google.protobuf.MapField - internalGetMutableMetadata() { - onChanged(); - ; + internalGetMutableMetadata() { + onChanged();; if (metadata_ == null) { - metadata_ = - com.google.protobuf.MapField.newMapField(MetadataDefaultEntryHolder.defaultEntry); + metadata_ = com.google.protobuf.MapField.newMapField( + MetadataDefaultEntryHolder.defaultEntry); } if (!metadata_.isMutable()) { metadata_ = metadata_.copy(); @@ -4807,8 +4311,6 @@ public int getMetadataCount() { return internalGetMetadata().getMap().size(); } /** - * - * *
      * The metadata key-value pairs assigned to the device. This metadata is not
      * interpreted or indexed by Cloud IoT Core. It can be used to add contextual
@@ -4823,22 +4325,22 @@ public int getMetadataCount() {
      *
      * map<string, string> metadata = 17;
      */
+
     @java.lang.Override
-    public boolean containsMetadata(java.lang.String key) {
-      if (key == null) {
-        throw new NullPointerException("map key");
-      }
+    public boolean containsMetadata(
+        java.lang.String key) {
+      if (key == null) { throw new NullPointerException("map key"); }
       return internalGetMetadata().getMap().containsKey(key);
     }
-    /** Use {@link #getMetadataMap()} instead. */
+    /**
+     * Use {@link #getMetadataMap()} instead.
+     */
     @java.lang.Override
     @java.lang.Deprecated
     public java.util.Map getMetadata() {
       return getMetadataMap();
     }
     /**
-     *
-     *
      * 
      * The metadata key-value pairs assigned to the device. This metadata is not
      * interpreted or indexed by Cloud IoT Core. It can be used to add contextual
@@ -4854,12 +4356,11 @@ public java.util.Map getMetadata() {
      * map<string, string> metadata = 17;
      */
     @java.lang.Override
+
     public java.util.Map getMetadataMap() {
       return internalGetMetadata().getMap();
     }
     /**
-     *
-     *
      * 
      * The metadata key-value pairs assigned to the device. This metadata is not
      * interpreted or indexed by Cloud IoT Core. It can be used to add contextual
@@ -4875,17 +4376,16 @@ public java.util.Map getMetadataMap() {
      * map<string, string> metadata = 17;
      */
     @java.lang.Override
+
     public java.lang.String getMetadataOrDefault(
-        java.lang.String key, java.lang.String defaultValue) {
-      if (key == null) {
-        throw new NullPointerException("map key");
-      }
-      java.util.Map map = internalGetMetadata().getMap();
+        java.lang.String key,
+        java.lang.String defaultValue) {
+      if (key == null) { throw new NullPointerException("map key"); }
+      java.util.Map map =
+          internalGetMetadata().getMap();
       return map.containsKey(key) ? map.get(key) : defaultValue;
     }
     /**
-     *
-     *
      * 
      * The metadata key-value pairs assigned to the device. This metadata is not
      * interpreted or indexed by Cloud IoT Core. It can be used to add contextual
@@ -4901,11 +4401,12 @@ public java.lang.String getMetadataOrDefault(
      * map<string, string> metadata = 17;
      */
     @java.lang.Override
-    public java.lang.String getMetadataOrThrow(java.lang.String key) {
-      if (key == null) {
-        throw new NullPointerException("map key");
-      }
-      java.util.Map map = internalGetMetadata().getMap();
+
+    public java.lang.String getMetadataOrThrow(
+        java.lang.String key) {
+      if (key == null) { throw new NullPointerException("map key"); }
+      java.util.Map map =
+          internalGetMetadata().getMap();
       if (!map.containsKey(key)) {
         throw new java.lang.IllegalArgumentException();
       }
@@ -4913,12 +4414,11 @@ public java.lang.String getMetadataOrThrow(java.lang.String key) {
     }
 
     public Builder clearMetadata() {
-      internalGetMutableMetadata().getMutableMap().clear();
+      internalGetMutableMetadata().getMutableMap()
+          .clear();
       return this;
     }
     /**
-     *
-     *
      * 
      * The metadata key-value pairs assigned to the device. This metadata is not
      * interpreted or indexed by Cloud IoT Core. It can be used to add contextual
@@ -4933,21 +4433,23 @@ public Builder clearMetadata() {
      *
      * map<string, string> metadata = 17;
      */
-    public Builder removeMetadata(java.lang.String key) {
-      if (key == null) {
-        throw new NullPointerException("map key");
-      }
-      internalGetMutableMetadata().getMutableMap().remove(key);
+
+    public Builder removeMetadata(
+        java.lang.String key) {
+      if (key == null) { throw new NullPointerException("map key"); }
+      internalGetMutableMetadata().getMutableMap()
+          .remove(key);
       return this;
     }
-    /** Use alternate mutation accessors instead. */
+    /**
+     * Use alternate mutation accessors instead.
+     */
     @java.lang.Deprecated
-    public java.util.Map getMutableMetadata() {
+    public java.util.Map
+    getMutableMetadata() {
       return internalGetMutableMetadata().getMutableMap();
     }
     /**
-     *
-     *
      * 
      * The metadata key-value pairs assigned to the device. This metadata is not
      * interpreted or indexed by Cloud IoT Core. It can be used to add contextual
@@ -4962,20 +4464,19 @@ public java.util.Map getMutableMetadata() {
      *
      * map<string, string> metadata = 17;
      */
-    public Builder putMetadata(java.lang.String key, java.lang.String value) {
-      if (key == null) {
-        throw new NullPointerException("map key");
-      }
+    public Builder putMetadata(
+        java.lang.String key,
+        java.lang.String value) {
+      if (key == null) { throw new NullPointerException("map key"); }
       if (value == null) {
-        throw new NullPointerException("map value");
-      }
+  throw new NullPointerException("map value");
+}
 
-      internalGetMutableMetadata().getMutableMap().put(key, value);
+      internalGetMutableMetadata().getMutableMap()
+          .put(key, value);
       return this;
     }
     /**
-     *
-     *
      * 
      * The metadata key-value pairs assigned to the device. This metadata is not
      * interpreted or indexed by Cloud IoT Core. It can be used to add contextual
@@ -4990,54 +4491,44 @@ public Builder putMetadata(java.lang.String key, java.lang.String value) {
      *
      * map<string, string> metadata = 17;
      */
-    public Builder putAllMetadata(java.util.Map values) {
-      internalGetMutableMetadata().getMutableMap().putAll(values);
+
+    public Builder putAllMetadata(
+        java.util.Map values) {
+      internalGetMutableMetadata().getMutableMap()
+          .putAll(values);
       return this;
     }
 
     private com.google.cloud.iot.v1.GatewayConfig gatewayConfig_;
     private com.google.protobuf.SingleFieldBuilderV3<
-            com.google.cloud.iot.v1.GatewayConfig,
-            com.google.cloud.iot.v1.GatewayConfig.Builder,
-            com.google.cloud.iot.v1.GatewayConfigOrBuilder>
-        gatewayConfigBuilder_;
+        com.google.cloud.iot.v1.GatewayConfig, com.google.cloud.iot.v1.GatewayConfig.Builder, com.google.cloud.iot.v1.GatewayConfigOrBuilder> gatewayConfigBuilder_;
     /**
-     *
-     *
      * 
      * Gateway-related configuration and state.
      * 
* * .google.cloud.iot.v1.GatewayConfig gateway_config = 24; - * * @return Whether the gatewayConfig field is set. */ public boolean hasGatewayConfig() { return gatewayConfigBuilder_ != null || gatewayConfig_ != null; } /** - * - * *
      * Gateway-related configuration and state.
      * 
* * .google.cloud.iot.v1.GatewayConfig gateway_config = 24; - * * @return The gatewayConfig. */ public com.google.cloud.iot.v1.GatewayConfig getGatewayConfig() { if (gatewayConfigBuilder_ == null) { - return gatewayConfig_ == null - ? com.google.cloud.iot.v1.GatewayConfig.getDefaultInstance() - : gatewayConfig_; + return gatewayConfig_ == null ? com.google.cloud.iot.v1.GatewayConfig.getDefaultInstance() : gatewayConfig_; } else { return gatewayConfigBuilder_.getMessage(); } } /** - * - * *
      * Gateway-related configuration and state.
      * 
@@ -5058,15 +4549,14 @@ public Builder setGatewayConfig(com.google.cloud.iot.v1.GatewayConfig value) { return this; } /** - * - * *
      * Gateway-related configuration and state.
      * 
* * .google.cloud.iot.v1.GatewayConfig gateway_config = 24; */ - public Builder setGatewayConfig(com.google.cloud.iot.v1.GatewayConfig.Builder builderForValue) { + public Builder setGatewayConfig( + com.google.cloud.iot.v1.GatewayConfig.Builder builderForValue) { if (gatewayConfigBuilder_ == null) { gatewayConfig_ = builderForValue.build(); onChanged(); @@ -5077,8 +4567,6 @@ public Builder setGatewayConfig(com.google.cloud.iot.v1.GatewayConfig.Builder bu return this; } /** - * - * *
      * Gateway-related configuration and state.
      * 
@@ -5089,9 +4577,7 @@ public Builder mergeGatewayConfig(com.google.cloud.iot.v1.GatewayConfig value) { if (gatewayConfigBuilder_ == null) { if (gatewayConfig_ != null) { gatewayConfig_ = - com.google.cloud.iot.v1.GatewayConfig.newBuilder(gatewayConfig_) - .mergeFrom(value) - .buildPartial(); + com.google.cloud.iot.v1.GatewayConfig.newBuilder(gatewayConfig_).mergeFrom(value).buildPartial(); } else { gatewayConfig_ = value; } @@ -5103,8 +4589,6 @@ public Builder mergeGatewayConfig(com.google.cloud.iot.v1.GatewayConfig value) { return this; } /** - * - * *
      * Gateway-related configuration and state.
      * 
@@ -5123,8 +4607,6 @@ public Builder clearGatewayConfig() { return this; } /** - * - * *
      * Gateway-related configuration and state.
      * 
@@ -5132,13 +4614,11 @@ public Builder clearGatewayConfig() { * .google.cloud.iot.v1.GatewayConfig gateway_config = 24; */ public com.google.cloud.iot.v1.GatewayConfig.Builder getGatewayConfigBuilder() { - + onChanged(); return getGatewayConfigFieldBuilder().getBuilder(); } /** - * - * *
      * Gateway-related configuration and state.
      * 
@@ -5149,14 +4629,11 @@ public com.google.cloud.iot.v1.GatewayConfigOrBuilder getGatewayConfigOrBuilder( if (gatewayConfigBuilder_ != null) { return gatewayConfigBuilder_.getMessageOrBuilder(); } else { - return gatewayConfig_ == null - ? com.google.cloud.iot.v1.GatewayConfig.getDefaultInstance() - : gatewayConfig_; + return gatewayConfig_ == null ? + com.google.cloud.iot.v1.GatewayConfig.getDefaultInstance() : gatewayConfig_; } } /** - * - * *
      * Gateway-related configuration and state.
      * 
@@ -5164,24 +4641,21 @@ public com.google.cloud.iot.v1.GatewayConfigOrBuilder getGatewayConfigOrBuilder( * .google.cloud.iot.v1.GatewayConfig gateway_config = 24; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.iot.v1.GatewayConfig, - com.google.cloud.iot.v1.GatewayConfig.Builder, - com.google.cloud.iot.v1.GatewayConfigOrBuilder> + com.google.cloud.iot.v1.GatewayConfig, com.google.cloud.iot.v1.GatewayConfig.Builder, com.google.cloud.iot.v1.GatewayConfigOrBuilder> getGatewayConfigFieldBuilder() { if (gatewayConfigBuilder_ == null) { - gatewayConfigBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.iot.v1.GatewayConfig, - com.google.cloud.iot.v1.GatewayConfig.Builder, - com.google.cloud.iot.v1.GatewayConfigOrBuilder>( - getGatewayConfig(), getParentForChildren(), isClean()); + gatewayConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.iot.v1.GatewayConfig, com.google.cloud.iot.v1.GatewayConfig.Builder, com.google.cloud.iot.v1.GatewayConfigOrBuilder>( + getGatewayConfig(), + getParentForChildren(), + isClean()); gatewayConfig_ = null; } return gatewayConfigBuilder_; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -5191,12 +4665,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.iot.v1.Device) } // @@protoc_insertion_point(class_scope:google.cloud.iot.v1.Device) private static final com.google.cloud.iot.v1.Device DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.iot.v1.Device(); } @@ -5205,16 +4679,16 @@ public static com.google.cloud.iot.v1.Device getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Device parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new Device(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Device parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new Device(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -5229,4 +4703,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.iot.v1.Device getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-iot-v1/src/main/java/com/google/cloud/iot/v1/DeviceConfig.java b/owl-bot-staging/v1/proto-google-cloud-iot-v1/src/main/java/com/google/cloud/iot/v1/DeviceConfig.java similarity index 77% rename from proto-google-cloud-iot-v1/src/main/java/com/google/cloud/iot/v1/DeviceConfig.java rename to owl-bot-staging/v1/proto-google-cloud-iot-v1/src/main/java/com/google/cloud/iot/v1/DeviceConfig.java index 81b81142..f928f166 100644 --- a/proto-google-cloud-iot-v1/src/main/java/com/google/cloud/iot/v1/DeviceConfig.java +++ b/owl-bot-staging/v1/proto-google-cloud-iot-v1/src/main/java/com/google/cloud/iot/v1/DeviceConfig.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/iot/v1/resources.proto package com.google.cloud.iot.v1; /** - * - * *
  * The device configuration. Eventually delivered to devices.
  * 
* * Protobuf type {@code google.cloud.iot.v1.DeviceConfig} */ -public final class DeviceConfig extends com.google.protobuf.GeneratedMessageV3 - implements +public final class DeviceConfig extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.iot.v1.DeviceConfig) DeviceConfigOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use DeviceConfig.newBuilder() to construct. private DeviceConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private DeviceConfig() { binaryData_ = com.google.protobuf.ByteString.EMPTY; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new DeviceConfig(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private DeviceConfig( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -70,53 +53,49 @@ private DeviceConfig( case 0: done = true; break; - case 8: - { - version_ = input.readInt64(); - break; - } - case 18: - { - com.google.protobuf.Timestamp.Builder subBuilder = null; - if (cloudUpdateTime_ != null) { - subBuilder = cloudUpdateTime_.toBuilder(); - } - cloudUpdateTime_ = - input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(cloudUpdateTime_); - cloudUpdateTime_ = subBuilder.buildPartial(); - } + case 8: { - break; + version_ = input.readInt64(); + break; + } + case 18: { + com.google.protobuf.Timestamp.Builder subBuilder = null; + if (cloudUpdateTime_ != null) { + subBuilder = cloudUpdateTime_.toBuilder(); + } + cloudUpdateTime_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(cloudUpdateTime_); + cloudUpdateTime_ = subBuilder.buildPartial(); } - case 26: - { - com.google.protobuf.Timestamp.Builder subBuilder = null; - if (deviceAckTime_ != null) { - subBuilder = deviceAckTime_.toBuilder(); - } - deviceAckTime_ = - input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(deviceAckTime_); - deviceAckTime_ = subBuilder.buildPartial(); - } - break; + break; + } + case 26: { + com.google.protobuf.Timestamp.Builder subBuilder = null; + if (deviceAckTime_ != null) { + subBuilder = deviceAckTime_.toBuilder(); } - case 34: - { - binaryData_ = input.readBytes(); - break; + deviceAckTime_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(deviceAckTime_); + deviceAckTime_ = subBuilder.buildPartial(); } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + + break; + } + case 34: { + + binaryData_ = input.readBytes(); + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -124,33 +103,29 @@ private DeviceConfig( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.iot.v1.ResourcesProto - .internal_static_google_cloud_iot_v1_DeviceConfig_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.iot.v1.ResourcesProto.internal_static_google_cloud_iot_v1_DeviceConfig_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.iot.v1.ResourcesProto - .internal_static_google_cloud_iot_v1_DeviceConfig_fieldAccessorTable + return com.google.cloud.iot.v1.ResourcesProto.internal_static_google_cloud_iot_v1_DeviceConfig_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.iot.v1.DeviceConfig.class, - com.google.cloud.iot.v1.DeviceConfig.Builder.class); + com.google.cloud.iot.v1.DeviceConfig.class, com.google.cloud.iot.v1.DeviceConfig.Builder.class); } public static final int VERSION_FIELD_NUMBER = 1; private long version_; /** - * - * *
    * [Output only] The version of this update. The version number is assigned by
    * the server, and is always greater than 0 after device creation. The
@@ -159,7 +134,6 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
    * 
* * int64 version = 1; - * * @return The version. */ @java.lang.Override @@ -170,15 +144,12 @@ public long getVersion() { public static final int CLOUD_UPDATE_TIME_FIELD_NUMBER = 2; private com.google.protobuf.Timestamp cloudUpdateTime_; /** - * - * *
    * [Output only] The time at which this configuration version was updated in
    * Cloud IoT Core. This timestamp is set by the server.
    * 
* * .google.protobuf.Timestamp cloud_update_time = 2; - * * @return Whether the cloudUpdateTime field is set. */ @java.lang.Override @@ -186,26 +157,19 @@ public boolean hasCloudUpdateTime() { return cloudUpdateTime_ != null; } /** - * - * *
    * [Output only] The time at which this configuration version was updated in
    * Cloud IoT Core. This timestamp is set by the server.
    * 
* * .google.protobuf.Timestamp cloud_update_time = 2; - * * @return The cloudUpdateTime. */ @java.lang.Override public com.google.protobuf.Timestamp getCloudUpdateTime() { - return cloudUpdateTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : cloudUpdateTime_; + return cloudUpdateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : cloudUpdateTime_; } /** - * - * *
    * [Output only] The time at which this configuration version was updated in
    * Cloud IoT Core. This timestamp is set by the server.
@@ -221,8 +185,6 @@ public com.google.protobuf.TimestampOrBuilder getCloudUpdateTimeOrBuilder() {
   public static final int DEVICE_ACK_TIME_FIELD_NUMBER = 3;
   private com.google.protobuf.Timestamp deviceAckTime_;
   /**
-   *
-   *
    * 
    * [Output only] The time at which Cloud IoT Core received the
    * acknowledgment from the device, indicating that the device has received
@@ -236,7 +198,6 @@ public com.google.protobuf.TimestampOrBuilder getCloudUpdateTimeOrBuilder() {
    * 
* * .google.protobuf.Timestamp device_ack_time = 3; - * * @return Whether the deviceAckTime field is set. */ @java.lang.Override @@ -244,8 +205,6 @@ public boolean hasDeviceAckTime() { return deviceAckTime_ != null; } /** - * - * *
    * [Output only] The time at which Cloud IoT Core received the
    * acknowledgment from the device, indicating that the device has received
@@ -259,18 +218,13 @@ public boolean hasDeviceAckTime() {
    * 
* * .google.protobuf.Timestamp device_ack_time = 3; - * * @return The deviceAckTime. */ @java.lang.Override public com.google.protobuf.Timestamp getDeviceAckTime() { - return deviceAckTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : deviceAckTime_; + return deviceAckTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : deviceAckTime_; } /** - * - * *
    * [Output only] The time at which Cloud IoT Core received the
    * acknowledgment from the device, indicating that the device has received
@@ -293,14 +247,11 @@ public com.google.protobuf.TimestampOrBuilder getDeviceAckTimeOrBuilder() {
   public static final int BINARY_DATA_FIELD_NUMBER = 4;
   private com.google.protobuf.ByteString binaryData_;
   /**
-   *
-   *
    * 
    * The device configuration data.
    * 
* * bytes binary_data = 4; - * * @return The binaryData. */ @java.lang.Override @@ -309,7 +260,6 @@ public com.google.protobuf.ByteString getBinaryData() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -321,7 +271,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (version_ != 0L) { output.writeInt64(1, version_); } @@ -344,16 +295,20 @@ public int getSerializedSize() { size = 0; if (version_ != 0L) { - size += com.google.protobuf.CodedOutputStream.computeInt64Size(1, version_); + size += com.google.protobuf.CodedOutputStream + .computeInt64Size(1, version_); } if (cloudUpdateTime_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getCloudUpdateTime()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getCloudUpdateTime()); } if (deviceAckTime_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getDeviceAckTime()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(3, getDeviceAckTime()); } if (!binaryData_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream.computeBytesSize(4, binaryData_); + size += com.google.protobuf.CodedOutputStream + .computeBytesSize(4, binaryData_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -363,23 +318,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.iot.v1.DeviceConfig)) { return super.equals(obj); } com.google.cloud.iot.v1.DeviceConfig other = (com.google.cloud.iot.v1.DeviceConfig) obj; - if (getVersion() != other.getVersion()) return false; + if (getVersion() + != other.getVersion()) return false; if (hasCloudUpdateTime() != other.hasCloudUpdateTime()) return false; if (hasCloudUpdateTime()) { - if (!getCloudUpdateTime().equals(other.getCloudUpdateTime())) return false; + if (!getCloudUpdateTime() + .equals(other.getCloudUpdateTime())) return false; } if (hasDeviceAckTime() != other.hasDeviceAckTime()) return false; if (hasDeviceAckTime()) { - if (!getDeviceAckTime().equals(other.getDeviceAckTime())) return false; + if (!getDeviceAckTime() + .equals(other.getDeviceAckTime())) return false; } - if (!getBinaryData().equals(other.getBinaryData())) return false; + if (!getBinaryData() + .equals(other.getBinaryData())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -392,7 +351,8 @@ public int hashCode() { int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + VERSION_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getVersion()); + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getVersion()); if (hasCloudUpdateTime()) { hash = (37 * hash) + CLOUD_UPDATE_TIME_FIELD_NUMBER; hash = (53 * hash) + getCloudUpdateTime().hashCode(); @@ -408,126 +368,118 @@ public int hashCode() { return hash; } - public static com.google.cloud.iot.v1.DeviceConfig parseFrom(java.nio.ByteBuffer data) + public static com.google.cloud.iot.v1.DeviceConfig parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.iot.v1.DeviceConfig parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.iot.v1.DeviceConfig parseFrom(com.google.protobuf.ByteString data) + public static com.google.cloud.iot.v1.DeviceConfig parseFrom( + com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.iot.v1.DeviceConfig parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.iot.v1.DeviceConfig parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.iot.v1.DeviceConfig parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.iot.v1.DeviceConfig 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.iot.v1.DeviceConfig parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.iot.v1.DeviceConfig 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.iot.v1.DeviceConfig parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.iot.v1.DeviceConfig parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.iot.v1.DeviceConfig parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.iot.v1.DeviceConfig prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected 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 device configuration. Eventually delivered to devices.
    * 
* * Protobuf type {@code google.cloud.iot.v1.DeviceConfig} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.iot.v1.DeviceConfig) com.google.cloud.iot.v1.DeviceConfigOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.iot.v1.ResourcesProto - .internal_static_google_cloud_iot_v1_DeviceConfig_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.iot.v1.ResourcesProto.internal_static_google_cloud_iot_v1_DeviceConfig_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.iot.v1.ResourcesProto - .internal_static_google_cloud_iot_v1_DeviceConfig_fieldAccessorTable + return com.google.cloud.iot.v1.ResourcesProto.internal_static_google_cloud_iot_v1_DeviceConfig_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.iot.v1.DeviceConfig.class, - com.google.cloud.iot.v1.DeviceConfig.Builder.class); + com.google.cloud.iot.v1.DeviceConfig.class, com.google.cloud.iot.v1.DeviceConfig.Builder.class); } // Construct using com.google.cloud.iot.v1.DeviceConfig.newBuilder() @@ -535,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(); @@ -567,9 +520,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.iot.v1.ResourcesProto - .internal_static_google_cloud_iot_v1_DeviceConfig_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.iot.v1.ResourcesProto.internal_static_google_cloud_iot_v1_DeviceConfig_descriptor; } @java.lang.Override @@ -609,39 +562,38 @@ public com.google.cloud.iot.v1.DeviceConfig buildPartial() { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.iot.v1.DeviceConfig) { - return mergeFrom((com.google.cloud.iot.v1.DeviceConfig) other); + return mergeFrom((com.google.cloud.iot.v1.DeviceConfig)other); } else { super.mergeFrom(other); return this; @@ -691,10 +643,8 @@ public Builder mergeFrom( return this; } - private long version_; + private long version_ ; /** - * - * *
      * [Output only] The version of this update. The version number is assigned by
      * the server, and is always greater than 0 after device creation. The
@@ -703,7 +653,6 @@ public Builder mergeFrom(
      * 
* * int64 version = 1; - * * @return The version. */ @java.lang.Override @@ -711,8 +660,6 @@ public long getVersion() { return version_; } /** - * - * *
      * [Output only] The version of this update. The version number is assigned by
      * the server, and is always greater than 0 after device creation. The
@@ -721,19 +668,16 @@ public long getVersion() {
      * 
* * int64 version = 1; - * * @param value The version to set. * @return This builder for chaining. */ public Builder setVersion(long value) { - + version_ = value; onChanged(); return this; } /** - * - * *
      * [Output only] The version of this update. The version number is assigned by
      * the server, and is always greater than 0 after device creation. The
@@ -742,11 +686,10 @@ public Builder setVersion(long value) {
      * 
* * int64 version = 1; - * * @return This builder for chaining. */ public Builder clearVersion() { - + version_ = 0L; onChanged(); return this; @@ -754,49 +697,36 @@ public Builder clearVersion() { private com.google.protobuf.Timestamp cloudUpdateTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> - cloudUpdateTimeBuilder_; + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> cloudUpdateTimeBuilder_; /** - * - * *
      * [Output only] The time at which this configuration version was updated in
      * Cloud IoT Core. This timestamp is set by the server.
      * 
* * .google.protobuf.Timestamp cloud_update_time = 2; - * * @return Whether the cloudUpdateTime field is set. */ public boolean hasCloudUpdateTime() { return cloudUpdateTimeBuilder_ != null || cloudUpdateTime_ != null; } /** - * - * *
      * [Output only] The time at which this configuration version was updated in
      * Cloud IoT Core. This timestamp is set by the server.
      * 
* * .google.protobuf.Timestamp cloud_update_time = 2; - * * @return The cloudUpdateTime. */ public com.google.protobuf.Timestamp getCloudUpdateTime() { if (cloudUpdateTimeBuilder_ == null) { - return cloudUpdateTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : cloudUpdateTime_; + return cloudUpdateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : cloudUpdateTime_; } else { return cloudUpdateTimeBuilder_.getMessage(); } } /** - * - * *
      * [Output only] The time at which this configuration version was updated in
      * Cloud IoT Core. This timestamp is set by the server.
@@ -818,8 +748,6 @@ public Builder setCloudUpdateTime(com.google.protobuf.Timestamp value) {
       return this;
     }
     /**
-     *
-     *
      * 
      * [Output only] The time at which this configuration version was updated in
      * Cloud IoT Core. This timestamp is set by the server.
@@ -827,7 +755,8 @@ public Builder setCloudUpdateTime(com.google.protobuf.Timestamp value) {
      *
      * .google.protobuf.Timestamp cloud_update_time = 2;
      */
-    public Builder setCloudUpdateTime(com.google.protobuf.Timestamp.Builder builderForValue) {
+    public Builder setCloudUpdateTime(
+        com.google.protobuf.Timestamp.Builder builderForValue) {
       if (cloudUpdateTimeBuilder_ == null) {
         cloudUpdateTime_ = builderForValue.build();
         onChanged();
@@ -838,8 +767,6 @@ public Builder setCloudUpdateTime(com.google.protobuf.Timestamp.Builder builderF
       return this;
     }
     /**
-     *
-     *
      * 
      * [Output only] The time at which this configuration version was updated in
      * Cloud IoT Core. This timestamp is set by the server.
@@ -851,9 +778,7 @@ public Builder mergeCloudUpdateTime(com.google.protobuf.Timestamp value) {
       if (cloudUpdateTimeBuilder_ == null) {
         if (cloudUpdateTime_ != null) {
           cloudUpdateTime_ =
-              com.google.protobuf.Timestamp.newBuilder(cloudUpdateTime_)
-                  .mergeFrom(value)
-                  .buildPartial();
+            com.google.protobuf.Timestamp.newBuilder(cloudUpdateTime_).mergeFrom(value).buildPartial();
         } else {
           cloudUpdateTime_ = value;
         }
@@ -865,8 +790,6 @@ public Builder mergeCloudUpdateTime(com.google.protobuf.Timestamp value) {
       return this;
     }
     /**
-     *
-     *
      * 
      * [Output only] The time at which this configuration version was updated in
      * Cloud IoT Core. This timestamp is set by the server.
@@ -886,8 +809,6 @@ public Builder clearCloudUpdateTime() {
       return this;
     }
     /**
-     *
-     *
      * 
      * [Output only] The time at which this configuration version was updated in
      * Cloud IoT Core. This timestamp is set by the server.
@@ -896,13 +817,11 @@ public Builder clearCloudUpdateTime() {
      * .google.protobuf.Timestamp cloud_update_time = 2;
      */
     public com.google.protobuf.Timestamp.Builder getCloudUpdateTimeBuilder() {
-
+      
       onChanged();
       return getCloudUpdateTimeFieldBuilder().getBuilder();
     }
     /**
-     *
-     *
      * 
      * [Output only] The time at which this configuration version was updated in
      * Cloud IoT Core. This timestamp is set by the server.
@@ -914,14 +833,11 @@ public com.google.protobuf.TimestampOrBuilder getCloudUpdateTimeOrBuilder() {
       if (cloudUpdateTimeBuilder_ != null) {
         return cloudUpdateTimeBuilder_.getMessageOrBuilder();
       } else {
-        return cloudUpdateTime_ == null
-            ? com.google.protobuf.Timestamp.getDefaultInstance()
-            : cloudUpdateTime_;
+        return cloudUpdateTime_ == null ?
+            com.google.protobuf.Timestamp.getDefaultInstance() : cloudUpdateTime_;
       }
     }
     /**
-     *
-     *
      * 
      * [Output only] The time at which this configuration version was updated in
      * Cloud IoT Core. This timestamp is set by the server.
@@ -930,17 +846,14 @@ public com.google.protobuf.TimestampOrBuilder getCloudUpdateTimeOrBuilder() {
      * .google.protobuf.Timestamp cloud_update_time = 2;
      */
     private com.google.protobuf.SingleFieldBuilderV3<
-            com.google.protobuf.Timestamp,
-            com.google.protobuf.Timestamp.Builder,
-            com.google.protobuf.TimestampOrBuilder>
+        com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> 
         getCloudUpdateTimeFieldBuilder() {
       if (cloudUpdateTimeBuilder_ == null) {
-        cloudUpdateTimeBuilder_ =
-            new com.google.protobuf.SingleFieldBuilderV3<
-                com.google.protobuf.Timestamp,
-                com.google.protobuf.Timestamp.Builder,
-                com.google.protobuf.TimestampOrBuilder>(
-                getCloudUpdateTime(), getParentForChildren(), isClean());
+        cloudUpdateTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
+            com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>(
+                getCloudUpdateTime(),
+                getParentForChildren(),
+                isClean());
         cloudUpdateTime_ = null;
       }
       return cloudUpdateTimeBuilder_;
@@ -948,13 +861,8 @@ public com.google.protobuf.TimestampOrBuilder getCloudUpdateTimeOrBuilder() {
 
     private com.google.protobuf.Timestamp deviceAckTime_;
     private com.google.protobuf.SingleFieldBuilderV3<
-            com.google.protobuf.Timestamp,
-            com.google.protobuf.Timestamp.Builder,
-            com.google.protobuf.TimestampOrBuilder>
-        deviceAckTimeBuilder_;
+        com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> deviceAckTimeBuilder_;
     /**
-     *
-     *
      * 
      * [Output only] The time at which Cloud IoT Core received the
      * acknowledgment from the device, indicating that the device has received
@@ -968,15 +876,12 @@ public com.google.protobuf.TimestampOrBuilder getCloudUpdateTimeOrBuilder() {
      * 
* * .google.protobuf.Timestamp device_ack_time = 3; - * * @return Whether the deviceAckTime field is set. */ public boolean hasDeviceAckTime() { return deviceAckTimeBuilder_ != null || deviceAckTime_ != null; } /** - * - * *
      * [Output only] The time at which Cloud IoT Core received the
      * acknowledgment from the device, indicating that the device has received
@@ -990,21 +895,16 @@ public boolean hasDeviceAckTime() {
      * 
* * .google.protobuf.Timestamp device_ack_time = 3; - * * @return The deviceAckTime. */ public com.google.protobuf.Timestamp getDeviceAckTime() { if (deviceAckTimeBuilder_ == null) { - return deviceAckTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : deviceAckTime_; + return deviceAckTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : deviceAckTime_; } else { return deviceAckTimeBuilder_.getMessage(); } } /** - * - * *
      * [Output only] The time at which Cloud IoT Core received the
      * acknowledgment from the device, indicating that the device has received
@@ -1033,8 +933,6 @@ public Builder setDeviceAckTime(com.google.protobuf.Timestamp value) {
       return this;
     }
     /**
-     *
-     *
      * 
      * [Output only] The time at which Cloud IoT Core received the
      * acknowledgment from the device, indicating that the device has received
@@ -1049,7 +947,8 @@ public Builder setDeviceAckTime(com.google.protobuf.Timestamp value) {
      *
      * .google.protobuf.Timestamp device_ack_time = 3;
      */
-    public Builder setDeviceAckTime(com.google.protobuf.Timestamp.Builder builderForValue) {
+    public Builder setDeviceAckTime(
+        com.google.protobuf.Timestamp.Builder builderForValue) {
       if (deviceAckTimeBuilder_ == null) {
         deviceAckTime_ = builderForValue.build();
         onChanged();
@@ -1060,8 +959,6 @@ public Builder setDeviceAckTime(com.google.protobuf.Timestamp.Builder builderFor
       return this;
     }
     /**
-     *
-     *
      * 
      * [Output only] The time at which Cloud IoT Core received the
      * acknowledgment from the device, indicating that the device has received
@@ -1080,9 +977,7 @@ public Builder mergeDeviceAckTime(com.google.protobuf.Timestamp value) {
       if (deviceAckTimeBuilder_ == null) {
         if (deviceAckTime_ != null) {
           deviceAckTime_ =
-              com.google.protobuf.Timestamp.newBuilder(deviceAckTime_)
-                  .mergeFrom(value)
-                  .buildPartial();
+            com.google.protobuf.Timestamp.newBuilder(deviceAckTime_).mergeFrom(value).buildPartial();
         } else {
           deviceAckTime_ = value;
         }
@@ -1094,8 +989,6 @@ public Builder mergeDeviceAckTime(com.google.protobuf.Timestamp value) {
       return this;
     }
     /**
-     *
-     *
      * 
      * [Output only] The time at which Cloud IoT Core received the
      * acknowledgment from the device, indicating that the device has received
@@ -1122,8 +1015,6 @@ public Builder clearDeviceAckTime() {
       return this;
     }
     /**
-     *
-     *
      * 
      * [Output only] The time at which Cloud IoT Core received the
      * acknowledgment from the device, indicating that the device has received
@@ -1139,13 +1030,11 @@ public Builder clearDeviceAckTime() {
      * .google.protobuf.Timestamp device_ack_time = 3;
      */
     public com.google.protobuf.Timestamp.Builder getDeviceAckTimeBuilder() {
-
+      
       onChanged();
       return getDeviceAckTimeFieldBuilder().getBuilder();
     }
     /**
-     *
-     *
      * 
      * [Output only] The time at which Cloud IoT Core received the
      * acknowledgment from the device, indicating that the device has received
@@ -1164,14 +1053,11 @@ public com.google.protobuf.TimestampOrBuilder getDeviceAckTimeOrBuilder() {
       if (deviceAckTimeBuilder_ != null) {
         return deviceAckTimeBuilder_.getMessageOrBuilder();
       } else {
-        return deviceAckTime_ == null
-            ? com.google.protobuf.Timestamp.getDefaultInstance()
-            : deviceAckTime_;
+        return deviceAckTime_ == null ?
+            com.google.protobuf.Timestamp.getDefaultInstance() : deviceAckTime_;
       }
     }
     /**
-     *
-     *
      * 
      * [Output only] The time at which Cloud IoT Core received the
      * acknowledgment from the device, indicating that the device has received
@@ -1187,17 +1073,14 @@ public com.google.protobuf.TimestampOrBuilder getDeviceAckTimeOrBuilder() {
      * .google.protobuf.Timestamp device_ack_time = 3;
      */
     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> 
         getDeviceAckTimeFieldBuilder() {
       if (deviceAckTimeBuilder_ == null) {
-        deviceAckTimeBuilder_ =
-            new com.google.protobuf.SingleFieldBuilderV3<
-                com.google.protobuf.Timestamp,
-                com.google.protobuf.Timestamp.Builder,
-                com.google.protobuf.TimestampOrBuilder>(
-                getDeviceAckTime(), getParentForChildren(), isClean());
+        deviceAckTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
+            com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>(
+                getDeviceAckTime(),
+                getParentForChildren(),
+                isClean());
         deviceAckTime_ = null;
       }
       return deviceAckTimeBuilder_;
@@ -1205,14 +1088,11 @@ public com.google.protobuf.TimestampOrBuilder getDeviceAckTimeOrBuilder() {
 
     private com.google.protobuf.ByteString binaryData_ = com.google.protobuf.ByteString.EMPTY;
     /**
-     *
-     *
      * 
      * The device configuration data.
      * 
* * bytes binary_data = 4; - * * @return The binaryData. */ @java.lang.Override @@ -1220,46 +1100,40 @@ public com.google.protobuf.ByteString getBinaryData() { return binaryData_; } /** - * - * *
      * The device configuration data.
      * 
* * bytes binary_data = 4; - * * @param value The binaryData to set. * @return This builder for chaining. */ public Builder setBinaryData(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + binaryData_ = value; onChanged(); return this; } /** - * - * *
      * The device configuration data.
      * 
* * bytes binary_data = 4; - * * @return This builder for chaining. */ public Builder clearBinaryData() { - + binaryData_ = getDefaultInstance().getBinaryData(); onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1269,12 +1143,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.iot.v1.DeviceConfig) } // @@protoc_insertion_point(class_scope:google.cloud.iot.v1.DeviceConfig) private static final com.google.cloud.iot.v1.DeviceConfig DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.iot.v1.DeviceConfig(); } @@ -1283,16 +1157,16 @@ public static com.google.cloud.iot.v1.DeviceConfig getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public DeviceConfig parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new DeviceConfig(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DeviceConfig parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new DeviceConfig(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1307,4 +1181,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.iot.v1.DeviceConfig getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-iot-v1/src/main/java/com/google/cloud/iot/v1/DeviceConfigOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-iot-v1/src/main/java/com/google/cloud/iot/v1/DeviceConfigOrBuilder.java similarity index 85% rename from proto-google-cloud-iot-v1/src/main/java/com/google/cloud/iot/v1/DeviceConfigOrBuilder.java rename to owl-bot-staging/v1/proto-google-cloud-iot-v1/src/main/java/com/google/cloud/iot/v1/DeviceConfigOrBuilder.java index 762a4f2d..489097f3 100644 --- a/proto-google-cloud-iot-v1/src/main/java/com/google/cloud/iot/v1/DeviceConfigOrBuilder.java +++ b/owl-bot-staging/v1/proto-google-cloud-iot-v1/src/main/java/com/google/cloud/iot/v1/DeviceConfigOrBuilder.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/iot/v1/resources.proto package com.google.cloud.iot.v1; -public interface DeviceConfigOrBuilder - extends +public interface DeviceConfigOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.iot.v1.DeviceConfig) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * [Output only] The version of this update. The version number is assigned by
    * the server, and is always greater than 0 after device creation. The
@@ -34,40 +16,31 @@ public interface DeviceConfigOrBuilder
    * 
* * int64 version = 1; - * * @return The version. */ long getVersion(); /** - * - * *
    * [Output only] The time at which this configuration version was updated in
    * Cloud IoT Core. This timestamp is set by the server.
    * 
* * .google.protobuf.Timestamp cloud_update_time = 2; - * * @return Whether the cloudUpdateTime field is set. */ boolean hasCloudUpdateTime(); /** - * - * *
    * [Output only] The time at which this configuration version was updated in
    * Cloud IoT Core. This timestamp is set by the server.
    * 
* * .google.protobuf.Timestamp cloud_update_time = 2; - * * @return The cloudUpdateTime. */ com.google.protobuf.Timestamp getCloudUpdateTime(); /** - * - * *
    * [Output only] The time at which this configuration version was updated in
    * Cloud IoT Core. This timestamp is set by the server.
@@ -78,8 +51,6 @@ public interface DeviceConfigOrBuilder
   com.google.protobuf.TimestampOrBuilder getCloudUpdateTimeOrBuilder();
 
   /**
-   *
-   *
    * 
    * [Output only] The time at which Cloud IoT Core received the
    * acknowledgment from the device, indicating that the device has received
@@ -93,13 +64,10 @@ public interface DeviceConfigOrBuilder
    * 
* * .google.protobuf.Timestamp device_ack_time = 3; - * * @return Whether the deviceAckTime field is set. */ boolean hasDeviceAckTime(); /** - * - * *
    * [Output only] The time at which Cloud IoT Core received the
    * acknowledgment from the device, indicating that the device has received
@@ -113,13 +81,10 @@ public interface DeviceConfigOrBuilder
    * 
* * .google.protobuf.Timestamp device_ack_time = 3; - * * @return The deviceAckTime. */ com.google.protobuf.Timestamp getDeviceAckTime(); /** - * - * *
    * [Output only] The time at which Cloud IoT Core received the
    * acknowledgment from the device, indicating that the device has received
@@ -137,14 +102,11 @@ public interface DeviceConfigOrBuilder
   com.google.protobuf.TimestampOrBuilder getDeviceAckTimeOrBuilder();
 
   /**
-   *
-   *
    * 
    * The device configuration data.
    * 
* * bytes binary_data = 4; - * * @return The binaryData. */ com.google.protobuf.ByteString getBinaryData(); diff --git a/proto-google-cloud-iot-v1/src/main/java/com/google/cloud/iot/v1/DeviceCredential.java b/owl-bot-staging/v1/proto-google-cloud-iot-v1/src/main/java/com/google/cloud/iot/v1/DeviceCredential.java similarity index 77% rename from proto-google-cloud-iot-v1/src/main/java/com/google/cloud/iot/v1/DeviceCredential.java rename to owl-bot-staging/v1/proto-google-cloud-iot-v1/src/main/java/com/google/cloud/iot/v1/DeviceCredential.java index 13fac301..d1f8233e 100644 --- a/proto-google-cloud-iot-v1/src/main/java/com/google/cloud/iot/v1/DeviceCredential.java +++ b/owl-bot-staging/v1/proto-google-cloud-iot-v1/src/main/java/com/google/cloud/iot/v1/DeviceCredential.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/iot/v1/resources.proto package com.google.cloud.iot.v1; /** - * - * *
  * A server-stored device credential used for authentication.
  * 
* * Protobuf type {@code google.cloud.iot.v1.DeviceCredential} */ -public final class DeviceCredential extends com.google.protobuf.GeneratedMessageV3 - implements +public final class DeviceCredential extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.iot.v1.DeviceCredential) DeviceCredentialOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use DeviceCredential.newBuilder() to construct. private DeviceCredential(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - - private DeviceCredential() {} + private DeviceCredential() { + } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new DeviceCredential(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private DeviceCredential( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -68,45 +52,40 @@ private DeviceCredential( case 0: done = true; break; - case 18: - { - com.google.cloud.iot.v1.PublicKeyCredential.Builder subBuilder = null; - if (credentialCase_ == 2) { - subBuilder = - ((com.google.cloud.iot.v1.PublicKeyCredential) credential_).toBuilder(); - } - credential_ = - input.readMessage( - com.google.cloud.iot.v1.PublicKeyCredential.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom((com.google.cloud.iot.v1.PublicKeyCredential) credential_); - credential_ = subBuilder.buildPartial(); - } - credentialCase_ = 2; - break; + case 18: { + com.google.cloud.iot.v1.PublicKeyCredential.Builder subBuilder = null; + if (credentialCase_ == 2) { + subBuilder = ((com.google.cloud.iot.v1.PublicKeyCredential) credential_).toBuilder(); } - case 50: - { - com.google.protobuf.Timestamp.Builder subBuilder = null; - if (expirationTime_ != null) { - subBuilder = expirationTime_.toBuilder(); - } - expirationTime_ = - input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(expirationTime_); - expirationTime_ = subBuilder.buildPartial(); - } - - break; + credential_ = + input.readMessage(com.google.cloud.iot.v1.PublicKeyCredential.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom((com.google.cloud.iot.v1.PublicKeyCredential) credential_); + credential_ = subBuilder.buildPartial(); } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + credentialCase_ = 2; + break; + } + case 50: { + com.google.protobuf.Timestamp.Builder subBuilder = null; + if (expirationTime_ != null) { + subBuilder = expirationTime_.toBuilder(); } + expirationTime_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(expirationTime_); + expirationTime_ = subBuilder.buildPartial(); + } + + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -114,39 +93,34 @@ private DeviceCredential( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.iot.v1.ResourcesProto - .internal_static_google_cloud_iot_v1_DeviceCredential_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.iot.v1.ResourcesProto.internal_static_google_cloud_iot_v1_DeviceCredential_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.iot.v1.ResourcesProto - .internal_static_google_cloud_iot_v1_DeviceCredential_fieldAccessorTable + return com.google.cloud.iot.v1.ResourcesProto.internal_static_google_cloud_iot_v1_DeviceCredential_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.iot.v1.DeviceCredential.class, - com.google.cloud.iot.v1.DeviceCredential.Builder.class); + com.google.cloud.iot.v1.DeviceCredential.class, com.google.cloud.iot.v1.DeviceCredential.Builder.class); } private int credentialCase_ = 0; private java.lang.Object credential_; - public enum CredentialCase - implements - com.google.protobuf.Internal.EnumLite, + implements com.google.protobuf.Internal.EnumLite, com.google.protobuf.AbstractMessage.InternalOneOfEnum { PUBLIC_KEY(2), CREDENTIAL_NOT_SET(0); private final int value; - private CredentialCase(int value) { this.value = value; } @@ -162,28 +136,24 @@ public static CredentialCase valueOf(int value) { public static CredentialCase forNumber(int value) { switch (value) { - case 2: - return PUBLIC_KEY; - case 0: - return CREDENTIAL_NOT_SET; - default: - return null; + case 2: return PUBLIC_KEY; + case 0: return CREDENTIAL_NOT_SET; + default: return null; } } - public int getNumber() { return this.value; } }; - public CredentialCase getCredentialCase() { - return CredentialCase.forNumber(credentialCase_); + public CredentialCase + getCredentialCase() { + return CredentialCase.forNumber( + credentialCase_); } public static final int PUBLIC_KEY_FIELD_NUMBER = 2; /** - * - * *
    * A public key used to verify the signature of JSON Web Tokens (JWTs).
    * When adding a new device credential, either via device creation or via
@@ -199,7 +169,6 @@ public CredentialCase getCredentialCase() {
    * 
* * .google.cloud.iot.v1.PublicKeyCredential public_key = 2; - * * @return Whether the publicKey field is set. */ @java.lang.Override @@ -207,8 +176,6 @@ public boolean hasPublicKey() { return credentialCase_ == 2; } /** - * - * *
    * A public key used to verify the signature of JSON Web Tokens (JWTs).
    * When adding a new device credential, either via device creation or via
@@ -224,19 +191,16 @@ public boolean hasPublicKey() {
    * 
* * .google.cloud.iot.v1.PublicKeyCredential public_key = 2; - * * @return The publicKey. */ @java.lang.Override public com.google.cloud.iot.v1.PublicKeyCredential getPublicKey() { if (credentialCase_ == 2) { - return (com.google.cloud.iot.v1.PublicKeyCredential) credential_; + return (com.google.cloud.iot.v1.PublicKeyCredential) credential_; } return com.google.cloud.iot.v1.PublicKeyCredential.getDefaultInstance(); } /** - * - * *
    * A public key used to verify the signature of JSON Web Tokens (JWTs).
    * When adding a new device credential, either via device creation or via
@@ -256,7 +220,7 @@ public com.google.cloud.iot.v1.PublicKeyCredential getPublicKey() {
   @java.lang.Override
   public com.google.cloud.iot.v1.PublicKeyCredentialOrBuilder getPublicKeyOrBuilder() {
     if (credentialCase_ == 2) {
-      return (com.google.cloud.iot.v1.PublicKeyCredential) credential_;
+       return (com.google.cloud.iot.v1.PublicKeyCredential) credential_;
     }
     return com.google.cloud.iot.v1.PublicKeyCredential.getDefaultInstance();
   }
@@ -264,8 +228,6 @@ public com.google.cloud.iot.v1.PublicKeyCredentialOrBuilder getPublicKeyOrBuilde
   public static final int EXPIRATION_TIME_FIELD_NUMBER = 6;
   private com.google.protobuf.Timestamp expirationTime_;
   /**
-   *
-   *
    * 
    * [Optional] The time at which this credential becomes invalid. This
    * credential will be ignored for new client authentication requests after
@@ -273,7 +235,6 @@ public com.google.cloud.iot.v1.PublicKeyCredentialOrBuilder getPublicKeyOrBuilde
    * 
* * .google.protobuf.Timestamp expiration_time = 6; - * * @return Whether the expirationTime field is set. */ @java.lang.Override @@ -281,8 +242,6 @@ public boolean hasExpirationTime() { return expirationTime_ != null; } /** - * - * *
    * [Optional] The time at which this credential becomes invalid. This
    * credential will be ignored for new client authentication requests after
@@ -290,18 +249,13 @@ public boolean hasExpirationTime() {
    * 
* * .google.protobuf.Timestamp expiration_time = 6; - * * @return The expirationTime. */ @java.lang.Override public com.google.protobuf.Timestamp getExpirationTime() { - return expirationTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : expirationTime_; + return expirationTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : expirationTime_; } /** - * - * *
    * [Optional] The time at which this credential becomes invalid. This
    * credential will be ignored for new client authentication requests after
@@ -316,7 +270,6 @@ public com.google.protobuf.TimestampOrBuilder getExpirationTimeOrBuilder() {
   }
 
   private byte memoizedIsInitialized = -1;
-
   @java.lang.Override
   public final boolean isInitialized() {
     byte isInitialized = memoizedIsInitialized;
@@ -328,7 +281,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 (credentialCase_ == 2) {
       output.writeMessage(2, (com.google.cloud.iot.v1.PublicKeyCredential) credential_);
     }
@@ -345,12 +299,12 @@ public int getSerializedSize() {
 
     size = 0;
     if (credentialCase_ == 2) {
-      size +=
-          com.google.protobuf.CodedOutputStream.computeMessageSize(
-              2, (com.google.cloud.iot.v1.PublicKeyCredential) credential_);
+      size += com.google.protobuf.CodedOutputStream
+        .computeMessageSize(2, (com.google.cloud.iot.v1.PublicKeyCredential) credential_);
     }
     if (expirationTime_ != null) {
-      size += com.google.protobuf.CodedOutputStream.computeMessageSize(6, getExpirationTime());
+      size += com.google.protobuf.CodedOutputStream
+        .computeMessageSize(6, getExpirationTime());
     }
     size += unknownFields.getSerializedSize();
     memoizedSize = size;
@@ -360,7 +314,7 @@ public int getSerializedSize() {
   @java.lang.Override
   public boolean equals(final java.lang.Object obj) {
     if (obj == this) {
-      return true;
+     return true;
     }
     if (!(obj instanceof com.google.cloud.iot.v1.DeviceCredential)) {
       return super.equals(obj);
@@ -369,12 +323,14 @@ public boolean equals(final java.lang.Object obj) {
 
     if (hasExpirationTime() != other.hasExpirationTime()) return false;
     if (hasExpirationTime()) {
-      if (!getExpirationTime().equals(other.getExpirationTime())) return false;
+      if (!getExpirationTime()
+          .equals(other.getExpirationTime())) return false;
     }
     if (!getCredentialCase().equals(other.getCredentialCase())) return false;
     switch (credentialCase_) {
       case 2:
-        if (!getPublicKey().equals(other.getPublicKey())) return false;
+        if (!getPublicKey()
+            .equals(other.getPublicKey())) return false;
         break;
       case 0:
       default:
@@ -407,127 +363,118 @@ public int hashCode() {
     return hash;
   }
 
-  public static com.google.cloud.iot.v1.DeviceCredential parseFrom(java.nio.ByteBuffer data)
+  public static com.google.cloud.iot.v1.DeviceCredential parseFrom(
+      java.nio.ByteBuffer data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-
   public static com.google.cloud.iot.v1.DeviceCredential parseFrom(
-      java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.nio.ByteBuffer data,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-
   public static com.google.cloud.iot.v1.DeviceCredential parseFrom(
       com.google.protobuf.ByteString data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-
   public static com.google.cloud.iot.v1.DeviceCredential parseFrom(
       com.google.protobuf.ByteString data,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-
   public static com.google.cloud.iot.v1.DeviceCredential parseFrom(byte[] data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-
   public static com.google.cloud.iot.v1.DeviceCredential parseFrom(
-      byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      byte[] data,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-
   public static com.google.cloud.iot.v1.DeviceCredential 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.iot.v1.DeviceCredential parseFrom(
-      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.io.InputStream input,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
-        PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input, extensionRegistry);
   }
-
-  public static com.google.cloud.iot.v1.DeviceCredential parseDelimitedFrom(
-      java.io.InputStream input) throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
+  public static com.google.cloud.iot.v1.DeviceCredential parseDelimitedFrom(java.io.InputStream input)
+      throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3
+        .parseDelimitedWithIOException(PARSER, input);
   }
-
   public static com.google.cloud.iot.v1.DeviceCredential parseDelimitedFrom(
-      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.io.InputStream input,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
-        PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3
+        .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
   }
-
   public static com.google.cloud.iot.v1.DeviceCredential parseFrom(
-      com.google.protobuf.CodedInputStream input) throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+      com.google.protobuf.CodedInputStream input)
+      throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input);
   }
-
   public static com.google.cloud.iot.v1.DeviceCredential parseFrom(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
-        PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input, extensionRegistry);
   }
 
   @java.lang.Override
-  public Builder newBuilderForType() {
-    return newBuilder();
-  }
-
+  public Builder newBuilderForType() { return newBuilder(); }
   public static Builder newBuilder() {
     return DEFAULT_INSTANCE.toBuilder();
   }
-
   public static Builder newBuilder(com.google.cloud.iot.v1.DeviceCredential prototype) {
     return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
   }
-
   @java.lang.Override
   public Builder toBuilder() {
-    return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
+    return this == DEFAULT_INSTANCE
+        ? new Builder() : new Builder().mergeFrom(this);
   }
 
   @java.lang.Override
-  protected 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 server-stored device credential used for authentication.
    * 
* * Protobuf type {@code google.cloud.iot.v1.DeviceCredential} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.iot.v1.DeviceCredential) com.google.cloud.iot.v1.DeviceCredentialOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.iot.v1.ResourcesProto - .internal_static_google_cloud_iot_v1_DeviceCredential_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.iot.v1.ResourcesProto.internal_static_google_cloud_iot_v1_DeviceCredential_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.iot.v1.ResourcesProto - .internal_static_google_cloud_iot_v1_DeviceCredential_fieldAccessorTable + return com.google.cloud.iot.v1.ResourcesProto.internal_static_google_cloud_iot_v1_DeviceCredential_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.iot.v1.DeviceCredential.class, - com.google.cloud.iot.v1.DeviceCredential.Builder.class); + com.google.cloud.iot.v1.DeviceCredential.class, com.google.cloud.iot.v1.DeviceCredential.Builder.class); } // Construct using com.google.cloud.iot.v1.DeviceCredential.newBuilder() @@ -535,15 +482,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(); @@ -559,9 +507,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.iot.v1.ResourcesProto - .internal_static_google_cloud_iot_v1_DeviceCredential_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.iot.v1.ResourcesProto.internal_static_google_cloud_iot_v1_DeviceCredential_descriptor; } @java.lang.Override @@ -580,8 +528,7 @@ public com.google.cloud.iot.v1.DeviceCredential build() { @java.lang.Override public com.google.cloud.iot.v1.DeviceCredential buildPartial() { - com.google.cloud.iot.v1.DeviceCredential result = - new com.google.cloud.iot.v1.DeviceCredential(this); + com.google.cloud.iot.v1.DeviceCredential result = new com.google.cloud.iot.v1.DeviceCredential(this); if (credentialCase_ == 2) { if (publicKeyBuilder_ == null) { result.credential_ = credential_; @@ -603,39 +550,38 @@ public com.google.cloud.iot.v1.DeviceCredential buildPartial() { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.iot.v1.DeviceCredential) { - return mergeFrom((com.google.cloud.iot.v1.DeviceCredential) other); + return mergeFrom((com.google.cloud.iot.v1.DeviceCredential)other); } else { super.mergeFrom(other); return this; @@ -648,15 +594,13 @@ public Builder mergeFrom(com.google.cloud.iot.v1.DeviceCredential other) { mergeExpirationTime(other.getExpirationTime()); } switch (other.getCredentialCase()) { - case PUBLIC_KEY: - { - mergePublicKey(other.getPublicKey()); - break; - } - case CREDENTIAL_NOT_SET: - { - break; - } + case PUBLIC_KEY: { + mergePublicKey(other.getPublicKey()); + break; + } + case CREDENTIAL_NOT_SET: { + break; + } } this.mergeUnknownFields(other.unknownFields); onChanged(); @@ -686,12 +630,12 @@ public Builder mergeFrom( } return this; } - private int credentialCase_ = 0; private java.lang.Object credential_; - - public CredentialCase getCredentialCase() { - return CredentialCase.forNumber(credentialCase_); + public CredentialCase + getCredentialCase() { + return CredentialCase.forNumber( + credentialCase_); } public Builder clearCredential() { @@ -701,14 +645,10 @@ public Builder clearCredential() { return this; } + private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.iot.v1.PublicKeyCredential, - com.google.cloud.iot.v1.PublicKeyCredential.Builder, - com.google.cloud.iot.v1.PublicKeyCredentialOrBuilder> - publicKeyBuilder_; + com.google.cloud.iot.v1.PublicKeyCredential, com.google.cloud.iot.v1.PublicKeyCredential.Builder, com.google.cloud.iot.v1.PublicKeyCredentialOrBuilder> publicKeyBuilder_; /** - * - * *
      * A public key used to verify the signature of JSON Web Tokens (JWTs).
      * When adding a new device credential, either via device creation or via
@@ -724,7 +664,6 @@ public Builder clearCredential() {
      * 
* * .google.cloud.iot.v1.PublicKeyCredential public_key = 2; - * * @return Whether the publicKey field is set. */ @java.lang.Override @@ -732,8 +671,6 @@ public boolean hasPublicKey() { return credentialCase_ == 2; } /** - * - * *
      * A public key used to verify the signature of JSON Web Tokens (JWTs).
      * When adding a new device credential, either via device creation or via
@@ -749,7 +686,6 @@ public boolean hasPublicKey() {
      * 
* * .google.cloud.iot.v1.PublicKeyCredential public_key = 2; - * * @return The publicKey. */ @java.lang.Override @@ -767,8 +703,6 @@ public com.google.cloud.iot.v1.PublicKeyCredential getPublicKey() { } } /** - * - * *
      * A public key used to verify the signature of JSON Web Tokens (JWTs).
      * When adding a new device credential, either via device creation or via
@@ -799,8 +733,6 @@ public Builder setPublicKey(com.google.cloud.iot.v1.PublicKeyCredential value) {
       return this;
     }
     /**
-     *
-     *
      * 
      * A public key used to verify the signature of JSON Web Tokens (JWTs).
      * When adding a new device credential, either via device creation or via
@@ -829,8 +761,6 @@ public Builder setPublicKey(
       return this;
     }
     /**
-     *
-     *
      * 
      * A public key used to verify the signature of JSON Web Tokens (JWTs).
      * When adding a new device credential, either via device creation or via
@@ -849,13 +779,10 @@ public Builder setPublicKey(
      */
     public Builder mergePublicKey(com.google.cloud.iot.v1.PublicKeyCredential value) {
       if (publicKeyBuilder_ == null) {
-        if (credentialCase_ == 2
-            && credential_ != com.google.cloud.iot.v1.PublicKeyCredential.getDefaultInstance()) {
-          credential_ =
-              com.google.cloud.iot.v1.PublicKeyCredential.newBuilder(
-                      (com.google.cloud.iot.v1.PublicKeyCredential) credential_)
-                  .mergeFrom(value)
-                  .buildPartial();
+        if (credentialCase_ == 2 &&
+            credential_ != com.google.cloud.iot.v1.PublicKeyCredential.getDefaultInstance()) {
+          credential_ = com.google.cloud.iot.v1.PublicKeyCredential.newBuilder((com.google.cloud.iot.v1.PublicKeyCredential) credential_)
+              .mergeFrom(value).buildPartial();
         } else {
           credential_ = value;
         }
@@ -871,8 +798,6 @@ public Builder mergePublicKey(com.google.cloud.iot.v1.PublicKeyCredential value)
       return this;
     }
     /**
-     *
-     *
      * 
      * A public key used to verify the signature of JSON Web Tokens (JWTs).
      * When adding a new device credential, either via device creation or via
@@ -906,8 +831,6 @@ public Builder clearPublicKey() {
       return this;
     }
     /**
-     *
-     *
      * 
      * A public key used to verify the signature of JSON Web Tokens (JWTs).
      * When adding a new device credential, either via device creation or via
@@ -928,8 +851,6 @@ public com.google.cloud.iot.v1.PublicKeyCredential.Builder getPublicKeyBuilder()
       return getPublicKeyFieldBuilder().getBuilder();
     }
     /**
-     *
-     *
      * 
      * A public key used to verify the signature of JSON Web Tokens (JWTs).
      * When adding a new device credential, either via device creation or via
@@ -958,8 +879,6 @@ public com.google.cloud.iot.v1.PublicKeyCredentialOrBuilder getPublicKeyOrBuilde
       }
     }
     /**
-     *
-     *
      * 
      * A public key used to verify the signature of JSON Web Tokens (JWTs).
      * When adding a new device credential, either via device creation or via
@@ -977,39 +896,28 @@ public com.google.cloud.iot.v1.PublicKeyCredentialOrBuilder getPublicKeyOrBuilde
      * .google.cloud.iot.v1.PublicKeyCredential public_key = 2;
      */
     private com.google.protobuf.SingleFieldBuilderV3<
-            com.google.cloud.iot.v1.PublicKeyCredential,
-            com.google.cloud.iot.v1.PublicKeyCredential.Builder,
-            com.google.cloud.iot.v1.PublicKeyCredentialOrBuilder>
+        com.google.cloud.iot.v1.PublicKeyCredential, com.google.cloud.iot.v1.PublicKeyCredential.Builder, com.google.cloud.iot.v1.PublicKeyCredentialOrBuilder> 
         getPublicKeyFieldBuilder() {
       if (publicKeyBuilder_ == null) {
         if (!(credentialCase_ == 2)) {
           credential_ = com.google.cloud.iot.v1.PublicKeyCredential.getDefaultInstance();
         }
-        publicKeyBuilder_ =
-            new com.google.protobuf.SingleFieldBuilderV3<
-                com.google.cloud.iot.v1.PublicKeyCredential,
-                com.google.cloud.iot.v1.PublicKeyCredential.Builder,
-                com.google.cloud.iot.v1.PublicKeyCredentialOrBuilder>(
+        publicKeyBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
+            com.google.cloud.iot.v1.PublicKeyCredential, com.google.cloud.iot.v1.PublicKeyCredential.Builder, com.google.cloud.iot.v1.PublicKeyCredentialOrBuilder>(
                 (com.google.cloud.iot.v1.PublicKeyCredential) credential_,
                 getParentForChildren(),
                 isClean());
         credential_ = null;
       }
       credentialCase_ = 2;
-      onChanged();
-      ;
+      onChanged();;
       return publicKeyBuilder_;
     }
 
     private com.google.protobuf.Timestamp expirationTime_;
     private com.google.protobuf.SingleFieldBuilderV3<
-            com.google.protobuf.Timestamp,
-            com.google.protobuf.Timestamp.Builder,
-            com.google.protobuf.TimestampOrBuilder>
-        expirationTimeBuilder_;
+        com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> expirationTimeBuilder_;
     /**
-     *
-     *
      * 
      * [Optional] The time at which this credential becomes invalid. This
      * credential will be ignored for new client authentication requests after
@@ -1017,15 +925,12 @@ public com.google.cloud.iot.v1.PublicKeyCredentialOrBuilder getPublicKeyOrBuilde
      * 
* * .google.protobuf.Timestamp expiration_time = 6; - * * @return Whether the expirationTime field is set. */ public boolean hasExpirationTime() { return expirationTimeBuilder_ != null || expirationTime_ != null; } /** - * - * *
      * [Optional] The time at which this credential becomes invalid. This
      * credential will be ignored for new client authentication requests after
@@ -1033,21 +938,16 @@ public boolean hasExpirationTime() {
      * 
* * .google.protobuf.Timestamp expiration_time = 6; - * * @return The expirationTime. */ public com.google.protobuf.Timestamp getExpirationTime() { if (expirationTimeBuilder_ == null) { - return expirationTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : expirationTime_; + return expirationTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : expirationTime_; } else { return expirationTimeBuilder_.getMessage(); } } /** - * - * *
      * [Optional] The time at which this credential becomes invalid. This
      * credential will be ignored for new client authentication requests after
@@ -1070,8 +970,6 @@ public Builder setExpirationTime(com.google.protobuf.Timestamp value) {
       return this;
     }
     /**
-     *
-     *
      * 
      * [Optional] The time at which this credential becomes invalid. This
      * credential will be ignored for new client authentication requests after
@@ -1080,7 +978,8 @@ public Builder setExpirationTime(com.google.protobuf.Timestamp value) {
      *
      * .google.protobuf.Timestamp expiration_time = 6;
      */
-    public Builder setExpirationTime(com.google.protobuf.Timestamp.Builder builderForValue) {
+    public Builder setExpirationTime(
+        com.google.protobuf.Timestamp.Builder builderForValue) {
       if (expirationTimeBuilder_ == null) {
         expirationTime_ = builderForValue.build();
         onChanged();
@@ -1091,8 +990,6 @@ public Builder setExpirationTime(com.google.protobuf.Timestamp.Builder builderFo
       return this;
     }
     /**
-     *
-     *
      * 
      * [Optional] The time at which this credential becomes invalid. This
      * credential will be ignored for new client authentication requests after
@@ -1105,9 +1002,7 @@ public Builder mergeExpirationTime(com.google.protobuf.Timestamp value) {
       if (expirationTimeBuilder_ == null) {
         if (expirationTime_ != null) {
           expirationTime_ =
-              com.google.protobuf.Timestamp.newBuilder(expirationTime_)
-                  .mergeFrom(value)
-                  .buildPartial();
+            com.google.protobuf.Timestamp.newBuilder(expirationTime_).mergeFrom(value).buildPartial();
         } else {
           expirationTime_ = value;
         }
@@ -1119,8 +1014,6 @@ public Builder mergeExpirationTime(com.google.protobuf.Timestamp value) {
       return this;
     }
     /**
-     *
-     *
      * 
      * [Optional] The time at which this credential becomes invalid. This
      * credential will be ignored for new client authentication requests after
@@ -1141,8 +1034,6 @@ public Builder clearExpirationTime() {
       return this;
     }
     /**
-     *
-     *
      * 
      * [Optional] The time at which this credential becomes invalid. This
      * credential will be ignored for new client authentication requests after
@@ -1152,13 +1043,11 @@ public Builder clearExpirationTime() {
      * .google.protobuf.Timestamp expiration_time = 6;
      */
     public com.google.protobuf.Timestamp.Builder getExpirationTimeBuilder() {
-
+      
       onChanged();
       return getExpirationTimeFieldBuilder().getBuilder();
     }
     /**
-     *
-     *
      * 
      * [Optional] The time at which this credential becomes invalid. This
      * credential will be ignored for new client authentication requests after
@@ -1171,14 +1060,11 @@ public com.google.protobuf.TimestampOrBuilder getExpirationTimeOrBuilder() {
       if (expirationTimeBuilder_ != null) {
         return expirationTimeBuilder_.getMessageOrBuilder();
       } else {
-        return expirationTime_ == null
-            ? com.google.protobuf.Timestamp.getDefaultInstance()
-            : expirationTime_;
+        return expirationTime_ == null ?
+            com.google.protobuf.Timestamp.getDefaultInstance() : expirationTime_;
       }
     }
     /**
-     *
-     *
      * 
      * [Optional] The time at which this credential becomes invalid. This
      * credential will be ignored for new client authentication requests after
@@ -1188,24 +1074,21 @@ public com.google.protobuf.TimestampOrBuilder getExpirationTimeOrBuilder() {
      * .google.protobuf.Timestamp expiration_time = 6;
      */
     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> 
         getExpirationTimeFieldBuilder() {
       if (expirationTimeBuilder_ == null) {
-        expirationTimeBuilder_ =
-            new com.google.protobuf.SingleFieldBuilderV3<
-                com.google.protobuf.Timestamp,
-                com.google.protobuf.Timestamp.Builder,
-                com.google.protobuf.TimestampOrBuilder>(
-                getExpirationTime(), getParentForChildren(), isClean());
+        expirationTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
+            com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>(
+                getExpirationTime(),
+                getParentForChildren(),
+                isClean());
         expirationTime_ = null;
       }
       return expirationTimeBuilder_;
     }
-
     @java.lang.Override
-    public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) {
+    public final Builder setUnknownFields(
+        final com.google.protobuf.UnknownFieldSet unknownFields) {
       return super.setUnknownFields(unknownFields);
     }
 
@@ -1215,12 +1098,12 @@ public final Builder mergeUnknownFields(
       return super.mergeUnknownFields(unknownFields);
     }
 
+
     // @@protoc_insertion_point(builder_scope:google.cloud.iot.v1.DeviceCredential)
   }
 
   // @@protoc_insertion_point(class_scope:google.cloud.iot.v1.DeviceCredential)
   private static final com.google.cloud.iot.v1.DeviceCredential DEFAULT_INSTANCE;
-
   static {
     DEFAULT_INSTANCE = new com.google.cloud.iot.v1.DeviceCredential();
   }
@@ -1229,16 +1112,16 @@ public static com.google.cloud.iot.v1.DeviceCredential getDefaultInstance() {
     return DEFAULT_INSTANCE;
   }
 
-  private static final com.google.protobuf.Parser PARSER =
-      new com.google.protobuf.AbstractParser() {
-        @java.lang.Override
-        public DeviceCredential parsePartialFrom(
-            com.google.protobuf.CodedInputStream input,
-            com.google.protobuf.ExtensionRegistryLite extensionRegistry)
-            throws com.google.protobuf.InvalidProtocolBufferException {
-          return new DeviceCredential(input, extensionRegistry);
-        }
-      };
+  private static final com.google.protobuf.Parser
+      PARSER = new com.google.protobuf.AbstractParser() {
+    @java.lang.Override
+    public DeviceCredential parsePartialFrom(
+        com.google.protobuf.CodedInputStream input,
+        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+        throws com.google.protobuf.InvalidProtocolBufferException {
+      return new DeviceCredential(input, extensionRegistry);
+    }
+  };
 
   public static com.google.protobuf.Parser parser() {
     return PARSER;
@@ -1253,4 +1136,6 @@ public com.google.protobuf.Parser getParserForType() {
   public com.google.cloud.iot.v1.DeviceCredential getDefaultInstanceForType() {
     return DEFAULT_INSTANCE;
   }
+
 }
+
diff --git a/proto-google-cloud-iot-v1/src/main/java/com/google/cloud/iot/v1/DeviceCredentialOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-iot-v1/src/main/java/com/google/cloud/iot/v1/DeviceCredentialOrBuilder.java
similarity index 85%
rename from proto-google-cloud-iot-v1/src/main/java/com/google/cloud/iot/v1/DeviceCredentialOrBuilder.java
rename to owl-bot-staging/v1/proto-google-cloud-iot-v1/src/main/java/com/google/cloud/iot/v1/DeviceCredentialOrBuilder.java
index 6f59a8f7..7d26081a 100644
--- a/proto-google-cloud-iot-v1/src/main/java/com/google/cloud/iot/v1/DeviceCredentialOrBuilder.java
+++ b/owl-bot-staging/v1/proto-google-cloud-iot-v1/src/main/java/com/google/cloud/iot/v1/DeviceCredentialOrBuilder.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/iot/v1/resources.proto
 
 package com.google.cloud.iot.v1;
 
-public interface DeviceCredentialOrBuilder
-    extends
+public interface DeviceCredentialOrBuilder extends
     // @@protoc_insertion_point(interface_extends:google.cloud.iot.v1.DeviceCredential)
     com.google.protobuf.MessageOrBuilder {
 
   /**
-   *
-   *
    * 
    * A public key used to verify the signature of JSON Web Tokens (JWTs).
    * When adding a new device credential, either via device creation or via
@@ -41,13 +23,10 @@ public interface DeviceCredentialOrBuilder
    * 
* * .google.cloud.iot.v1.PublicKeyCredential public_key = 2; - * * @return Whether the publicKey field is set. */ boolean hasPublicKey(); /** - * - * *
    * A public key used to verify the signature of JSON Web Tokens (JWTs).
    * When adding a new device credential, either via device creation or via
@@ -63,13 +42,10 @@ public interface DeviceCredentialOrBuilder
    * 
* * .google.cloud.iot.v1.PublicKeyCredential public_key = 2; - * * @return The publicKey. */ com.google.cloud.iot.v1.PublicKeyCredential getPublicKey(); /** - * - * *
    * A public key used to verify the signature of JSON Web Tokens (JWTs).
    * When adding a new device credential, either via device creation or via
@@ -89,8 +65,6 @@ public interface DeviceCredentialOrBuilder
   com.google.cloud.iot.v1.PublicKeyCredentialOrBuilder getPublicKeyOrBuilder();
 
   /**
-   *
-   *
    * 
    * [Optional] The time at which this credential becomes invalid. This
    * credential will be ignored for new client authentication requests after
@@ -98,13 +72,10 @@ public interface DeviceCredentialOrBuilder
    * 
* * .google.protobuf.Timestamp expiration_time = 6; - * * @return Whether the expirationTime field is set. */ boolean hasExpirationTime(); /** - * - * *
    * [Optional] The time at which this credential becomes invalid. This
    * credential will be ignored for new client authentication requests after
@@ -112,13 +83,10 @@ public interface DeviceCredentialOrBuilder
    * 
* * .google.protobuf.Timestamp expiration_time = 6; - * * @return The expirationTime. */ com.google.protobuf.Timestamp getExpirationTime(); /** - * - * *
    * [Optional] The time at which this credential becomes invalid. This
    * credential will be ignored for new client authentication requests after
diff --git a/owl-bot-staging/v1/proto-google-cloud-iot-v1/src/main/java/com/google/cloud/iot/v1/DeviceManagerProto.java b/owl-bot-staging/v1/proto-google-cloud-iot-v1/src/main/java/com/google/cloud/iot/v1/DeviceManagerProto.java
new file mode 100644
index 00000000..ca6ef5d9
--- /dev/null
+++ b/owl-bot-staging/v1/proto-google-cloud-iot-v1/src/main/java/com/google/cloud/iot/v1/DeviceManagerProto.java
@@ -0,0 +1,532 @@
+// Generated by the protocol buffer compiler.  DO NOT EDIT!
+// source: google/cloud/iot/v1/device_manager.proto
+
+package com.google.cloud.iot.v1;
+
+public final class DeviceManagerProto {
+  private DeviceManagerProto() {}
+  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_iot_v1_CreateDeviceRegistryRequest_descriptor;
+  static final 
+    com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_cloud_iot_v1_CreateDeviceRegistryRequest_fieldAccessorTable;
+  static final com.google.protobuf.Descriptors.Descriptor
+    internal_static_google_cloud_iot_v1_GetDeviceRegistryRequest_descriptor;
+  static final 
+    com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_cloud_iot_v1_GetDeviceRegistryRequest_fieldAccessorTable;
+  static final com.google.protobuf.Descriptors.Descriptor
+    internal_static_google_cloud_iot_v1_DeleteDeviceRegistryRequest_descriptor;
+  static final 
+    com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_cloud_iot_v1_DeleteDeviceRegistryRequest_fieldAccessorTable;
+  static final com.google.protobuf.Descriptors.Descriptor
+    internal_static_google_cloud_iot_v1_UpdateDeviceRegistryRequest_descriptor;
+  static final 
+    com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_cloud_iot_v1_UpdateDeviceRegistryRequest_fieldAccessorTable;
+  static final com.google.protobuf.Descriptors.Descriptor
+    internal_static_google_cloud_iot_v1_ListDeviceRegistriesRequest_descriptor;
+  static final 
+    com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_cloud_iot_v1_ListDeviceRegistriesRequest_fieldAccessorTable;
+  static final com.google.protobuf.Descriptors.Descriptor
+    internal_static_google_cloud_iot_v1_ListDeviceRegistriesResponse_descriptor;
+  static final 
+    com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_cloud_iot_v1_ListDeviceRegistriesResponse_fieldAccessorTable;
+  static final com.google.protobuf.Descriptors.Descriptor
+    internal_static_google_cloud_iot_v1_CreateDeviceRequest_descriptor;
+  static final 
+    com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_cloud_iot_v1_CreateDeviceRequest_fieldAccessorTable;
+  static final com.google.protobuf.Descriptors.Descriptor
+    internal_static_google_cloud_iot_v1_GetDeviceRequest_descriptor;
+  static final 
+    com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_cloud_iot_v1_GetDeviceRequest_fieldAccessorTable;
+  static final com.google.protobuf.Descriptors.Descriptor
+    internal_static_google_cloud_iot_v1_UpdateDeviceRequest_descriptor;
+  static final 
+    com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_cloud_iot_v1_UpdateDeviceRequest_fieldAccessorTable;
+  static final com.google.protobuf.Descriptors.Descriptor
+    internal_static_google_cloud_iot_v1_DeleteDeviceRequest_descriptor;
+  static final 
+    com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_cloud_iot_v1_DeleteDeviceRequest_fieldAccessorTable;
+  static final com.google.protobuf.Descriptors.Descriptor
+    internal_static_google_cloud_iot_v1_ListDevicesRequest_descriptor;
+  static final 
+    com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_cloud_iot_v1_ListDevicesRequest_fieldAccessorTable;
+  static final com.google.protobuf.Descriptors.Descriptor
+    internal_static_google_cloud_iot_v1_GatewayListOptions_descriptor;
+  static final 
+    com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_cloud_iot_v1_GatewayListOptions_fieldAccessorTable;
+  static final com.google.protobuf.Descriptors.Descriptor
+    internal_static_google_cloud_iot_v1_ListDevicesResponse_descriptor;
+  static final 
+    com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_cloud_iot_v1_ListDevicesResponse_fieldAccessorTable;
+  static final com.google.protobuf.Descriptors.Descriptor
+    internal_static_google_cloud_iot_v1_ModifyCloudToDeviceConfigRequest_descriptor;
+  static final 
+    com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_cloud_iot_v1_ModifyCloudToDeviceConfigRequest_fieldAccessorTable;
+  static final com.google.protobuf.Descriptors.Descriptor
+    internal_static_google_cloud_iot_v1_ListDeviceConfigVersionsRequest_descriptor;
+  static final 
+    com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_cloud_iot_v1_ListDeviceConfigVersionsRequest_fieldAccessorTable;
+  static final com.google.protobuf.Descriptors.Descriptor
+    internal_static_google_cloud_iot_v1_ListDeviceConfigVersionsResponse_descriptor;
+  static final 
+    com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_cloud_iot_v1_ListDeviceConfigVersionsResponse_fieldAccessorTable;
+  static final com.google.protobuf.Descriptors.Descriptor
+    internal_static_google_cloud_iot_v1_ListDeviceStatesRequest_descriptor;
+  static final 
+    com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_cloud_iot_v1_ListDeviceStatesRequest_fieldAccessorTable;
+  static final com.google.protobuf.Descriptors.Descriptor
+    internal_static_google_cloud_iot_v1_ListDeviceStatesResponse_descriptor;
+  static final 
+    com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_cloud_iot_v1_ListDeviceStatesResponse_fieldAccessorTable;
+  static final com.google.protobuf.Descriptors.Descriptor
+    internal_static_google_cloud_iot_v1_SendCommandToDeviceRequest_descriptor;
+  static final 
+    com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_cloud_iot_v1_SendCommandToDeviceRequest_fieldAccessorTable;
+  static final com.google.protobuf.Descriptors.Descriptor
+    internal_static_google_cloud_iot_v1_SendCommandToDeviceResponse_descriptor;
+  static final 
+    com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_cloud_iot_v1_SendCommandToDeviceResponse_fieldAccessorTable;
+  static final com.google.protobuf.Descriptors.Descriptor
+    internal_static_google_cloud_iot_v1_BindDeviceToGatewayRequest_descriptor;
+  static final 
+    com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_cloud_iot_v1_BindDeviceToGatewayRequest_fieldAccessorTable;
+  static final com.google.protobuf.Descriptors.Descriptor
+    internal_static_google_cloud_iot_v1_BindDeviceToGatewayResponse_descriptor;
+  static final 
+    com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_cloud_iot_v1_BindDeviceToGatewayResponse_fieldAccessorTable;
+  static final com.google.protobuf.Descriptors.Descriptor
+    internal_static_google_cloud_iot_v1_UnbindDeviceFromGatewayRequest_descriptor;
+  static final 
+    com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_cloud_iot_v1_UnbindDeviceFromGatewayRequest_fieldAccessorTable;
+  static final com.google.protobuf.Descriptors.Descriptor
+    internal_static_google_cloud_iot_v1_UnbindDeviceFromGatewayResponse_descriptor;
+  static final 
+    com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_cloud_iot_v1_UnbindDeviceFromGatewayResponse_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/iot/v1/device_manager.pro" +
+      "to\022\023google.cloud.iot.v1\032\034google/api/anno" +
+      "tations.proto\032\027google/api/client.proto\032\037" +
+      "google/api/field_behavior.proto\032\031google/" +
+      "api/resource.proto\032#google/cloud/iot/v1/" +
+      "resources.proto\032\036google/iam/v1/iam_polic" +
+      "y.proto\032\032google/iam/v1/policy.proto\032\033goo" +
+      "gle/protobuf/empty.proto\032 google/protobu" +
+      "f/field_mask.proto\032\027google/rpc/status.pr" +
+      "oto\"\233\001\n\033CreateDeviceRegistryRequest\0229\n\006p" +
+      "arent\030\001 \001(\tB)\340A\002\372A#\n!locations.googleapi" +
+      "s.com/Location\022A\n\017device_registry\030\002 \001(\0132" +
+      "#.google.cloud.iot.v1.DeviceRegistryB\003\340A" +
+      "\002\"R\n\030GetDeviceRegistryRequest\0226\n\004name\030\001 " +
+      "\001(\tB(\340A\002\372A\"\n cloudiot.googleapis.com/Reg" +
+      "istry\"U\n\033DeleteDeviceRegistryRequest\0226\n\004" +
+      "name\030\001 \001(\tB(\340A\002\372A\"\n cloudiot.googleapis." +
+      "com/Registry\"\226\001\n\033UpdateDeviceRegistryReq" +
+      "uest\022A\n\017device_registry\030\001 \001(\0132#.google.c" +
+      "loud.iot.v1.DeviceRegistryB\003\340A\002\0224\n\013updat" +
+      "e_mask\030\002 \001(\0132\032.google.protobuf.FieldMask" +
+      "B\003\340A\002\"\177\n\033ListDeviceRegistriesRequest\0229\n\006" +
+      "parent\030\001 \001(\tB)\340A\002\372A#\n!locations.googleap" +
+      "is.com/Location\022\021\n\tpage_size\030\002 \001(\005\022\022\n\npa" +
+      "ge_token\030\003 \001(\t\"w\n\034ListDeviceRegistriesRe" +
+      "sponse\022>\n\021device_registries\030\001 \003(\0132#.goog" +
+      "le.cloud.iot.v1.DeviceRegistry\022\027\n\017next_p" +
+      "age_token\030\002 \001(\t\"\201\001\n\023CreateDeviceRequest\022" +
+      "8\n\006parent\030\001 \001(\tB(\340A\002\372A\"\n cloudiot.google" +
+      "apis.com/Registry\0220\n\006device\030\002 \001(\0132\033.goog" +
+      "le.cloud.iot.v1.DeviceB\003\340A\002\"x\n\020GetDevice" +
+      "Request\0224\n\004name\030\001 \001(\tB&\340A\002\372A \n\036cloudiot." +
+      "googleapis.com/Device\022.\n\nfield_mask\030\002 \001(" +
+      "\0132\032.google.protobuf.FieldMask\"}\n\023UpdateD" +
+      "eviceRequest\0220\n\006device\030\002 \001(\0132\033.google.cl" +
+      "oud.iot.v1.DeviceB\003\340A\002\0224\n\013update_mask\030\003 " +
+      "\001(\0132\032.google.protobuf.FieldMaskB\003\340A\002\"K\n\023" +
+      "DeleteDeviceRequest\0224\n\004name\030\001 \001(\tB&\340A\002\372A" +
+      " \n\036cloudiot.googleapis.com/Device\"\230\002\n\022Li" +
+      "stDevicesRequest\0228\n\006parent\030\001 \001(\tB(\340A\002\372A\"" +
+      "\n cloudiot.googleapis.com/Registry\022\026\n\016de" +
+      "vice_num_ids\030\002 \003(\004\022\022\n\ndevice_ids\030\003 \003(\t\022." +
+      "\n\nfield_mask\030\004 \001(\0132\032.google.protobuf.Fie" +
+      "ldMask\022E\n\024gateway_list_options\030\006 \001(\0132\'.g" +
+      "oogle.cloud.iot.v1.GatewayListOptions\022\021\n" +
+      "\tpage_size\030d \001(\005\022\022\n\npage_token\030e \001(\t\"\235\001\n" +
+      "\022GatewayListOptions\0228\n\014gateway_type\030\001 \001(" +
+      "\0162 .google.cloud.iot.v1.GatewayTypeH\000\022!\n" +
+      "\027associations_gateway_id\030\002 \001(\tH\000\022 \n\026asso" +
+      "ciations_device_id\030\003 \001(\tH\000B\010\n\006filter\"\\\n\023" +
+      "ListDevicesResponse\022,\n\007devices\030\001 \003(\0132\033.g" +
+      "oogle.cloud.iot.v1.Device\022\027\n\017next_page_t" +
+      "oken\030\002 \001(\t\"\215\001\n ModifyCloudToDeviceConfig" +
+      "Request\0224\n\004name\030\001 \001(\tB&\340A\002\372A \n\036cloudiot." +
+      "googleapis.com/Device\022\031\n\021version_to_upda" +
+      "te\030\002 \001(\003\022\030\n\013binary_data\030\003 \001(\014B\003\340A\002\"m\n\037Li" +
+      "stDeviceConfigVersionsRequest\0224\n\004name\030\001 " +
+      "\001(\tB&\340A\002\372A \n\036cloudiot.googleapis.com/Dev" +
+      "ice\022\024\n\014num_versions\030\002 \001(\005\"]\n ListDeviceC" +
+      "onfigVersionsResponse\0229\n\016device_configs\030" +
+      "\001 \003(\0132!.google.cloud.iot.v1.DeviceConfig" +
+      "\"c\n\027ListDeviceStatesRequest\0224\n\004name\030\001 \001(" +
+      "\tB&\340A\002\372A \n\036cloudiot.googleapis.com/Devic" +
+      "e\022\022\n\nnum_states\030\002 \001(\005\"S\n\030ListDeviceState" +
+      "sResponse\0227\n\rdevice_states\030\001 \003(\0132 .googl" +
+      "e.cloud.iot.v1.DeviceState\"\177\n\032SendComman" +
+      "dToDeviceRequest\0224\n\004name\030\001 \001(\tB&\340A\002\372A \n\036" +
+      "cloudiot.googleapis.com/Device\022\030\n\013binary" +
+      "_data\030\002 \001(\014B\003\340A\002\022\021\n\tsubfolder\030\003 \001(\t\"\035\n\033S" +
+      "endCommandToDeviceResponse\"\207\001\n\032BindDevic" +
+      "eToGatewayRequest\0228\n\006parent\030\001 \001(\tB(\340A\002\372A" +
+      "\"\n cloudiot.googleapis.com/Registry\022\027\n\ng" +
+      "ateway_id\030\002 \001(\tB\003\340A\002\022\026\n\tdevice_id\030\003 \001(\tB" +
+      "\003\340A\002\"\035\n\033BindDeviceToGatewayResponse\"\213\001\n\036" +
+      "UnbindDeviceFromGatewayRequest\0228\n\006parent" +
+      "\030\001 \001(\tB(\340A\002\372A\"\n cloudiot.googleapis.com/" +
+      "Registry\022\027\n\ngateway_id\030\002 \001(\tB\003\340A\002\022\026\n\tdev" +
+      "ice_id\030\003 \001(\tB\003\340A\002\"!\n\037UnbindDeviceFromGat" +
+      "ewayResponse2\246&\n\rDeviceManager\022\317\001\n\024Creat" +
+      "eDeviceRegistry\0220.google.cloud.iot.v1.Cr" +
+      "eateDeviceRegistryRequest\032#.google.cloud" +
+      ".iot.v1.DeviceRegistry\"`\202\323\344\223\002A\"./v1/{par" +
+      "ent=projects/*/locations/*}/registries:\017" +
+      "device_registry\332A\026parent,device_registry" +
+      "\022\246\001\n\021GetDeviceRegistry\022-.google.cloud.io" +
+      "t.v1.GetDeviceRegistryRequest\032#.google.c" +
+      "loud.iot.v1.DeviceRegistry\"=\202\323\344\223\0020\022./v1/" +
+      "{name=projects/*/locations/*/registries/" +
+      "*}\332A\004name\022\344\001\n\024UpdateDeviceRegistry\0220.goo" +
+      "gle.cloud.iot.v1.UpdateDeviceRegistryReq" +
+      "uest\032#.google.cloud.iot.v1.DeviceRegistr" +
+      "y\"u\202\323\344\223\002Q2>/v1/{device_registry.name=pro" +
+      "jects/*/locations/*/registries/*}:\017devic" +
+      "e_registry\332A\033device_registry,update_mask" +
+      "\022\237\001\n\024DeleteDeviceRegistry\0220.google.cloud" +
+      ".iot.v1.DeleteDeviceRegistryRequest\032\026.go" +
+      "ogle.protobuf.Empty\"=\202\323\344\223\0020*./v1/{name=p" +
+      "rojects/*/locations/*/registries/*}\332A\004na" +
+      "me\022\274\001\n\024ListDeviceRegistries\0220.google.clo" +
+      "ud.iot.v1.ListDeviceRegistriesRequest\0321." +
+      "google.cloud.iot.v1.ListDeviceRegistries" +
+      "Response\"?\202\323\344\223\0020\022./v1/{parent=projects/*" +
+      "/locations/*}/registries\332A\006parent\022\257\001\n\014Cr" +
+      "eateDevice\022(.google.cloud.iot.v1.CreateD" +
+      "eviceRequest\032\033.google.cloud.iot.v1.Devic" +
+      "e\"X\202\323\344\223\002B\"8/v1/{parent=projects/*/locati" +
+      "ons/*/registries/*}/devices:\006device\332A\rpa" +
+      "rent,device\022\336\001\n\tGetDevice\022%.google.cloud" +
+      ".iot.v1.GetDeviceRequest\032\033.google.cloud." +
+      "iot.v1.Device\"\214\001\202\323\344\223\002\177\0228/v1/{name=projec" +
+      "ts/*/locations/*/registries/*/devices/*}" +
+      "ZC\022A/v1/{name=projects/*/locations/*/reg" +
+      "istries/*/groups/*/devices/*}\332A\004name\022\221\002\n" +
+      "\014UpdateDevice\022(.google.cloud.iot.v1.Upda" +
+      "teDeviceRequest\032\033.google.cloud.iot.v1.De" +
+      "vice\"\271\001\202\323\344\223\002\235\0012?/v1/{device.name=project" +
+      "s/*/locations/*/registries/*/devices/*}:" +
+      "\006deviceZR2H/v1/{device.name=projects/*/l" +
+      "ocations/*/registries/*/groups/*/devices" +
+      "/*}:\006device\332A\022device,update_mask\022\231\001\n\014Del" +
+      "eteDevice\022(.google.cloud.iot.v1.DeleteDe" +
+      "viceRequest\032\026.google.protobuf.Empty\"G\202\323\344" +
+      "\223\002:*8/v1/{name=projects/*/locations/*/re" +
+      "gistries/*/devices/*}\332A\004name\022\361\001\n\013ListDev" +
+      "ices\022\'.google.cloud.iot.v1.ListDevicesRe" +
+      "quest\032(.google.cloud.iot.v1.ListDevicesR" +
+      "esponse\"\216\001\202\323\344\223\002\177\0228/v1/{parent=projects/*" +
+      "/locations/*/registries/*}/devicesZC\022A/v" +
+      "1/{parent=projects/*/locations/*/registr" +
+      "ies/*/groups/*}/devices\332A\006parent\022\313\002\n\031Mod" +
+      "ifyCloudToDeviceConfig\0225.google.cloud.io" +
+      "t.v1.ModifyCloudToDeviceConfigRequest\032!." +
+      "google.cloud.iot.v1.DeviceConfig\"\323\001\202\323\344\223\002" +
+      "\271\001\"R/v1/{name=projects/*/locations/*/reg" +
+      "istries/*/devices/*}:modifyCloudToDevice" +
+      "Config:\001*Z`\"[/v1/{name=projects/*/locati" +
+      "ons/*/registries/*/groups/*/devices/*}:m" +
+      "odifyCloudToDeviceConfig:\001*\332A\020name,binar" +
+      "y_data\022\265\002\n\030ListDeviceConfigVersions\0224.go" +
+      "ogle.cloud.iot.v1.ListDeviceConfigVersio" +
+      "nsRequest\0325.google.cloud.iot.v1.ListDevi" +
+      "ceConfigVersionsResponse\"\253\001\202\323\344\223\002\235\001\022G/v1/" +
+      "{name=projects/*/locations/*/registries/" +
+      "*/devices/*}/configVersionsZR\022P/v1/{name" +
+      "=projects/*/locations/*/registries/*/gro" +
+      "ups/*/devices/*}/configVersions\332A\004name\022\215" +
+      "\002\n\020ListDeviceStates\022,.google.cloud.iot.v" +
+      "1.ListDeviceStatesRequest\032-.google.cloud" +
+      ".iot.v1.ListDeviceStatesResponse\"\233\001\202\323\344\223\002" +
+      "\215\001\022?/v1/{name=projects/*/locations/*/reg" +
+      "istries/*/devices/*}/statesZJ\022H/v1/{name" +
+      "=projects/*/locations/*/registries/*/gro" +
+      "ups/*/devices/*}/states\332A\004name\022\370\001\n\014SetIa" +
+      "mPolicy\022\".google.iam.v1.SetIamPolicyRequ" +
+      "est\032\025.google.iam.v1.Policy\"\254\001\202\323\344\223\002\223\001\"?/v" +
+      "1/{resource=projects/*/locations/*/regis" +
+      "tries/*}:setIamPolicy:\001*ZM\"H/v1/{resourc" +
+      "e=projects/*/locations/*/registries/*/gr" +
+      "oups/*}:setIamPolicy:\001*\332A\017resource,polic" +
+      "y\022\361\001\n\014GetIamPolicy\022\".google.iam.v1.GetIa" +
+      "mPolicyRequest\032\025.google.iam.v1.Policy\"\245\001" +
+      "\202\323\344\223\002\223\001\"?/v1/{resource=projects/*/locati" +
+      "ons/*/registries/*}:getIamPolicy:\001*ZM\"H/" +
+      "v1/{resource=projects/*/locations/*/regi" +
+      "stries/*/groups/*}:getIamPolicy:\001*\332A\010res" +
+      "ource\022\251\002\n\022TestIamPermissions\022(.google.ia" +
+      "m.v1.TestIamPermissionsRequest\032).google." +
+      "iam.v1.TestIamPermissionsResponse\"\275\001\202\323\344\223" +
+      "\002\237\001\"E/v1/{resource=projects/*/locations/" +
+      "*/registries/*}:testIamPermissions:\001*ZS\"" +
+      "N/v1/{resource=projects/*/locations/*/re" +
+      "gistries/*/groups/*}:testIamPermissions:" +
+      "\001*\332A\024resource,permissions\022\337\002\n\023SendComman" +
+      "dToDevice\022/.google.cloud.iot.v1.SendComm" +
+      "andToDeviceRequest\0320.google.cloud.iot.v1" +
+      ".SendCommandToDeviceResponse\"\344\001\202\323\344\223\002\255\001\"L" +
+      "/v1/{name=projects/*/locations/*/registr" +
+      "ies/*/devices/*}:sendCommandToDevice:\001*Z" +
+      "Z\"U/v1/{name=projects/*/locations/*/regi" +
+      "stries/*/groups/*/devices/*}:sendCommand" +
+      "ToDevice:\001*\332A\020name,binary_data\332A\032name,bi" +
+      "nary_data,subfolder\022\275\002\n\023BindDeviceToGate" +
+      "way\022/.google.cloud.iot.v1.BindDeviceToGa" +
+      "tewayRequest\0320.google.cloud.iot.v1.BindD" +
+      "eviceToGatewayResponse\"\302\001\202\323\344\223\002\235\001\"D/v1/{p" +
+      "arent=projects/*/locations/*/registries/" +
+      "*}:bindDeviceToGateway:\001*ZR\"M/v1/{parent" +
+      "=projects/*/locations/*/registries/*/gro" +
+      "ups/*}:bindDeviceToGateway:\001*\332A\033parent,g" +
+      "ateway_id,device_id\022\321\002\n\027UnbindDeviceFrom" +
+      "Gateway\0223.google.cloud.iot.v1.UnbindDevi" +
+      "ceFromGatewayRequest\0324.google.cloud.iot." +
+      "v1.UnbindDeviceFromGatewayResponse\"\312\001\202\323\344" +
+      "\223\002\245\001\"H/v1/{parent=projects/*/locations/*" +
+      "/registries/*}:unbindDeviceFromGateway:\001" +
+      "*ZV\"Q/v1/{parent=projects/*/locations/*/" +
+      "registries/*/groups/*}:unbindDeviceFromG" +
+      "ateway:\001*\332A\033parent,gateway_id,device_id\032" +
+      "t\312A\027cloudiot.googleapis.com\322AWhttps://ww" +
+      "w.googleapis.com/auth/cloud-platform,htt" +
+      "ps://www.googleapis.com/auth/cloudiotBj\n" +
+      "\027com.google.cloud.iot.v1B\022DeviceManagerP" +
+      "rotoP\001Z6google.golang.org/genproto/googl" +
+      "eapis/cloud/iot/v1;iot\370\001\001b\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.cloud.iot.v1.ResourcesProto.getDescriptor(),
+          com.google.iam.v1.IamPolicyProto.getDescriptor(),
+          com.google.iam.v1.PolicyProto.getDescriptor(),
+          com.google.protobuf.EmptyProto.getDescriptor(),
+          com.google.protobuf.FieldMaskProto.getDescriptor(),
+          com.google.rpc.StatusProto.getDescriptor(),
+        });
+    internal_static_google_cloud_iot_v1_CreateDeviceRegistryRequest_descriptor =
+      getDescriptor().getMessageTypes().get(0);
+    internal_static_google_cloud_iot_v1_CreateDeviceRegistryRequest_fieldAccessorTable = new
+      com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+        internal_static_google_cloud_iot_v1_CreateDeviceRegistryRequest_descriptor,
+        new java.lang.String[] { "Parent", "DeviceRegistry", });
+    internal_static_google_cloud_iot_v1_GetDeviceRegistryRequest_descriptor =
+      getDescriptor().getMessageTypes().get(1);
+    internal_static_google_cloud_iot_v1_GetDeviceRegistryRequest_fieldAccessorTable = new
+      com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+        internal_static_google_cloud_iot_v1_GetDeviceRegistryRequest_descriptor,
+        new java.lang.String[] { "Name", });
+    internal_static_google_cloud_iot_v1_DeleteDeviceRegistryRequest_descriptor =
+      getDescriptor().getMessageTypes().get(2);
+    internal_static_google_cloud_iot_v1_DeleteDeviceRegistryRequest_fieldAccessorTable = new
+      com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+        internal_static_google_cloud_iot_v1_DeleteDeviceRegistryRequest_descriptor,
+        new java.lang.String[] { "Name", });
+    internal_static_google_cloud_iot_v1_UpdateDeviceRegistryRequest_descriptor =
+      getDescriptor().getMessageTypes().get(3);
+    internal_static_google_cloud_iot_v1_UpdateDeviceRegistryRequest_fieldAccessorTable = new
+      com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+        internal_static_google_cloud_iot_v1_UpdateDeviceRegistryRequest_descriptor,
+        new java.lang.String[] { "DeviceRegistry", "UpdateMask", });
+    internal_static_google_cloud_iot_v1_ListDeviceRegistriesRequest_descriptor =
+      getDescriptor().getMessageTypes().get(4);
+    internal_static_google_cloud_iot_v1_ListDeviceRegistriesRequest_fieldAccessorTable = new
+      com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+        internal_static_google_cloud_iot_v1_ListDeviceRegistriesRequest_descriptor,
+        new java.lang.String[] { "Parent", "PageSize", "PageToken", });
+    internal_static_google_cloud_iot_v1_ListDeviceRegistriesResponse_descriptor =
+      getDescriptor().getMessageTypes().get(5);
+    internal_static_google_cloud_iot_v1_ListDeviceRegistriesResponse_fieldAccessorTable = new
+      com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+        internal_static_google_cloud_iot_v1_ListDeviceRegistriesResponse_descriptor,
+        new java.lang.String[] { "DeviceRegistries", "NextPageToken", });
+    internal_static_google_cloud_iot_v1_CreateDeviceRequest_descriptor =
+      getDescriptor().getMessageTypes().get(6);
+    internal_static_google_cloud_iot_v1_CreateDeviceRequest_fieldAccessorTable = new
+      com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+        internal_static_google_cloud_iot_v1_CreateDeviceRequest_descriptor,
+        new java.lang.String[] { "Parent", "Device", });
+    internal_static_google_cloud_iot_v1_GetDeviceRequest_descriptor =
+      getDescriptor().getMessageTypes().get(7);
+    internal_static_google_cloud_iot_v1_GetDeviceRequest_fieldAccessorTable = new
+      com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+        internal_static_google_cloud_iot_v1_GetDeviceRequest_descriptor,
+        new java.lang.String[] { "Name", "FieldMask", });
+    internal_static_google_cloud_iot_v1_UpdateDeviceRequest_descriptor =
+      getDescriptor().getMessageTypes().get(8);
+    internal_static_google_cloud_iot_v1_UpdateDeviceRequest_fieldAccessorTable = new
+      com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+        internal_static_google_cloud_iot_v1_UpdateDeviceRequest_descriptor,
+        new java.lang.String[] { "Device", "UpdateMask", });
+    internal_static_google_cloud_iot_v1_DeleteDeviceRequest_descriptor =
+      getDescriptor().getMessageTypes().get(9);
+    internal_static_google_cloud_iot_v1_DeleteDeviceRequest_fieldAccessorTable = new
+      com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+        internal_static_google_cloud_iot_v1_DeleteDeviceRequest_descriptor,
+        new java.lang.String[] { "Name", });
+    internal_static_google_cloud_iot_v1_ListDevicesRequest_descriptor =
+      getDescriptor().getMessageTypes().get(10);
+    internal_static_google_cloud_iot_v1_ListDevicesRequest_fieldAccessorTable = new
+      com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+        internal_static_google_cloud_iot_v1_ListDevicesRequest_descriptor,
+        new java.lang.String[] { "Parent", "DeviceNumIds", "DeviceIds", "FieldMask", "GatewayListOptions", "PageSize", "PageToken", });
+    internal_static_google_cloud_iot_v1_GatewayListOptions_descriptor =
+      getDescriptor().getMessageTypes().get(11);
+    internal_static_google_cloud_iot_v1_GatewayListOptions_fieldAccessorTable = new
+      com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+        internal_static_google_cloud_iot_v1_GatewayListOptions_descriptor,
+        new java.lang.String[] { "GatewayType", "AssociationsGatewayId", "AssociationsDeviceId", "Filter", });
+    internal_static_google_cloud_iot_v1_ListDevicesResponse_descriptor =
+      getDescriptor().getMessageTypes().get(12);
+    internal_static_google_cloud_iot_v1_ListDevicesResponse_fieldAccessorTable = new
+      com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+        internal_static_google_cloud_iot_v1_ListDevicesResponse_descriptor,
+        new java.lang.String[] { "Devices", "NextPageToken", });
+    internal_static_google_cloud_iot_v1_ModifyCloudToDeviceConfigRequest_descriptor =
+      getDescriptor().getMessageTypes().get(13);
+    internal_static_google_cloud_iot_v1_ModifyCloudToDeviceConfigRequest_fieldAccessorTable = new
+      com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+        internal_static_google_cloud_iot_v1_ModifyCloudToDeviceConfigRequest_descriptor,
+        new java.lang.String[] { "Name", "VersionToUpdate", "BinaryData", });
+    internal_static_google_cloud_iot_v1_ListDeviceConfigVersionsRequest_descriptor =
+      getDescriptor().getMessageTypes().get(14);
+    internal_static_google_cloud_iot_v1_ListDeviceConfigVersionsRequest_fieldAccessorTable = new
+      com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+        internal_static_google_cloud_iot_v1_ListDeviceConfigVersionsRequest_descriptor,
+        new java.lang.String[] { "Name", "NumVersions", });
+    internal_static_google_cloud_iot_v1_ListDeviceConfigVersionsResponse_descriptor =
+      getDescriptor().getMessageTypes().get(15);
+    internal_static_google_cloud_iot_v1_ListDeviceConfigVersionsResponse_fieldAccessorTable = new
+      com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+        internal_static_google_cloud_iot_v1_ListDeviceConfigVersionsResponse_descriptor,
+        new java.lang.String[] { "DeviceConfigs", });
+    internal_static_google_cloud_iot_v1_ListDeviceStatesRequest_descriptor =
+      getDescriptor().getMessageTypes().get(16);
+    internal_static_google_cloud_iot_v1_ListDeviceStatesRequest_fieldAccessorTable = new
+      com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+        internal_static_google_cloud_iot_v1_ListDeviceStatesRequest_descriptor,
+        new java.lang.String[] { "Name", "NumStates", });
+    internal_static_google_cloud_iot_v1_ListDeviceStatesResponse_descriptor =
+      getDescriptor().getMessageTypes().get(17);
+    internal_static_google_cloud_iot_v1_ListDeviceStatesResponse_fieldAccessorTable = new
+      com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+        internal_static_google_cloud_iot_v1_ListDeviceStatesResponse_descriptor,
+        new java.lang.String[] { "DeviceStates", });
+    internal_static_google_cloud_iot_v1_SendCommandToDeviceRequest_descriptor =
+      getDescriptor().getMessageTypes().get(18);
+    internal_static_google_cloud_iot_v1_SendCommandToDeviceRequest_fieldAccessorTable = new
+      com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+        internal_static_google_cloud_iot_v1_SendCommandToDeviceRequest_descriptor,
+        new java.lang.String[] { "Name", "BinaryData", "Subfolder", });
+    internal_static_google_cloud_iot_v1_SendCommandToDeviceResponse_descriptor =
+      getDescriptor().getMessageTypes().get(19);
+    internal_static_google_cloud_iot_v1_SendCommandToDeviceResponse_fieldAccessorTable = new
+      com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+        internal_static_google_cloud_iot_v1_SendCommandToDeviceResponse_descriptor,
+        new java.lang.String[] { });
+    internal_static_google_cloud_iot_v1_BindDeviceToGatewayRequest_descriptor =
+      getDescriptor().getMessageTypes().get(20);
+    internal_static_google_cloud_iot_v1_BindDeviceToGatewayRequest_fieldAccessorTable = new
+      com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+        internal_static_google_cloud_iot_v1_BindDeviceToGatewayRequest_descriptor,
+        new java.lang.String[] { "Parent", "GatewayId", "DeviceId", });
+    internal_static_google_cloud_iot_v1_BindDeviceToGatewayResponse_descriptor =
+      getDescriptor().getMessageTypes().get(21);
+    internal_static_google_cloud_iot_v1_BindDeviceToGatewayResponse_fieldAccessorTable = new
+      com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+        internal_static_google_cloud_iot_v1_BindDeviceToGatewayResponse_descriptor,
+        new java.lang.String[] { });
+    internal_static_google_cloud_iot_v1_UnbindDeviceFromGatewayRequest_descriptor =
+      getDescriptor().getMessageTypes().get(22);
+    internal_static_google_cloud_iot_v1_UnbindDeviceFromGatewayRequest_fieldAccessorTable = new
+      com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+        internal_static_google_cloud_iot_v1_UnbindDeviceFromGatewayRequest_descriptor,
+        new java.lang.String[] { "Parent", "GatewayId", "DeviceId", });
+    internal_static_google_cloud_iot_v1_UnbindDeviceFromGatewayResponse_descriptor =
+      getDescriptor().getMessageTypes().get(23);
+    internal_static_google_cloud_iot_v1_UnbindDeviceFromGatewayResponse_fieldAccessorTable = new
+      com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+        internal_static_google_cloud_iot_v1_UnbindDeviceFromGatewayResponse_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.resourceReference);
+    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.cloud.iot.v1.ResourcesProto.getDescriptor();
+    com.google.iam.v1.IamPolicyProto.getDescriptor();
+    com.google.iam.v1.PolicyProto.getDescriptor();
+    com.google.protobuf.EmptyProto.getDescriptor();
+    com.google.protobuf.FieldMaskProto.getDescriptor();
+    com.google.rpc.StatusProto.getDescriptor();
+  }
+
+  // @@protoc_insertion_point(outer_class_scope)
+}
diff --git a/proto-google-cloud-iot-v1/src/main/java/com/google/cloud/iot/v1/DeviceName.java b/owl-bot-staging/v1/proto-google-cloud-iot-v1/src/main/java/com/google/cloud/iot/v1/DeviceName.java
similarity index 100%
rename from proto-google-cloud-iot-v1/src/main/java/com/google/cloud/iot/v1/DeviceName.java
rename to owl-bot-staging/v1/proto-google-cloud-iot-v1/src/main/java/com/google/cloud/iot/v1/DeviceName.java
diff --git a/proto-google-cloud-iot-v1/src/main/java/com/google/cloud/iot/v1/DeviceOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-iot-v1/src/main/java/com/google/cloud/iot/v1/DeviceOrBuilder.java
similarity index 91%
rename from proto-google-cloud-iot-v1/src/main/java/com/google/cloud/iot/v1/DeviceOrBuilder.java
rename to owl-bot-staging/v1/proto-google-cloud-iot-v1/src/main/java/com/google/cloud/iot/v1/DeviceOrBuilder.java
index 7596ff3f..2d80813c 100644
--- a/proto-google-cloud-iot-v1/src/main/java/com/google/cloud/iot/v1/DeviceOrBuilder.java
+++ b/owl-bot-staging/v1/proto-google-cloud-iot-v1/src/main/java/com/google/cloud/iot/v1/DeviceOrBuilder.java
@@ -1,58 +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/iot/v1/resources.proto
 
 package com.google.cloud.iot.v1;
 
-public interface DeviceOrBuilder
-    extends
+public interface DeviceOrBuilder extends
     // @@protoc_insertion_point(interface_extends:google.cloud.iot.v1.Device)
     com.google.protobuf.MessageOrBuilder {
 
   /**
-   *
-   *
    * 
    * The user-defined device identifier. The device ID must be unique
    * within a device registry.
    * 
* * string id = 1; - * * @return The id. */ java.lang.String getId(); /** - * - * *
    * The user-defined device identifier. The device ID must be unique
    * within a device registry.
    * 
* * string id = 1; - * * @return The bytes for id. */ - com.google.protobuf.ByteString getIdBytes(); + com.google.protobuf.ByteString + getIdBytes(); /** - * - * *
    * The resource path name. For example,
    * `projects/p1/locations/us-central1/registries/registry0/devices/dev0` or
@@ -62,13 +39,10 @@ public interface DeviceOrBuilder
    * 
* * string name = 2; - * * @return The name. */ java.lang.String getName(); /** - * - * *
    * The resource path name. For example,
    * `projects/p1/locations/us-central1/registries/registry0/devices/dev0` or
@@ -78,28 +52,23 @@ public interface DeviceOrBuilder
    * 
* * string name = 2; - * * @return The bytes for name. */ - com.google.protobuf.ByteString getNameBytes(); + com.google.protobuf.ByteString + getNameBytes(); /** - * - * *
    * [Output only] A server-defined unique numeric ID for the device. This is a
    * more compact way to identify devices, and it is globally unique.
    * 
* * uint64 num_id = 3; - * * @return The numId. */ long getNumId(); /** - * - * *
    * The credentials used to authenticate this device. To allow credential
    * rotation without interruption, multiple device credentials can be bound to
@@ -111,10 +80,9 @@ public interface DeviceOrBuilder
    *
    * repeated .google.cloud.iot.v1.DeviceCredential credentials = 12;
    */
-  java.util.List getCredentialsList();
+  java.util.List 
+      getCredentialsList();
   /**
-   *
-   *
    * 
    * The credentials used to authenticate this device. To allow credential
    * rotation without interruption, multiple device credentials can be bound to
@@ -128,8 +96,6 @@ public interface DeviceOrBuilder
    */
   com.google.cloud.iot.v1.DeviceCredential getCredentials(int index);
   /**
-   *
-   *
    * 
    * The credentials used to authenticate this device. To allow credential
    * rotation without interruption, multiple device credentials can be bound to
@@ -143,8 +109,6 @@ public interface DeviceOrBuilder
    */
   int getCredentialsCount();
   /**
-   *
-   *
    * 
    * The credentials used to authenticate this device. To allow credential
    * rotation without interruption, multiple device credentials can be bound to
@@ -156,11 +120,9 @@ public interface DeviceOrBuilder
    *
    * repeated .google.cloud.iot.v1.DeviceCredential credentials = 12;
    */
-  java.util.List
+  java.util.List 
       getCredentialsOrBuilderList();
   /**
-   *
-   *
    * 
    * The credentials used to authenticate this device. To allow credential
    * rotation without interruption, multiple device credentials can be bound to
@@ -172,11 +134,10 @@ public interface DeviceOrBuilder
    *
    * repeated .google.cloud.iot.v1.DeviceCredential credentials = 12;
    */
-  com.google.cloud.iot.v1.DeviceCredentialOrBuilder getCredentialsOrBuilder(int index);
+  com.google.cloud.iot.v1.DeviceCredentialOrBuilder getCredentialsOrBuilder(
+      int index);
 
   /**
-   *
-   *
    * 
    * [Output only] The last time an MQTT `PINGREQ` was received. This field
    * applies only to devices connecting through MQTT. MQTT clients usually only
@@ -186,13 +147,10 @@ public interface DeviceOrBuilder
    * 
* * .google.protobuf.Timestamp last_heartbeat_time = 7; - * * @return Whether the lastHeartbeatTime field is set. */ boolean hasLastHeartbeatTime(); /** - * - * *
    * [Output only] The last time an MQTT `PINGREQ` was received. This field
    * applies only to devices connecting through MQTT. MQTT clients usually only
@@ -202,13 +160,10 @@ public interface DeviceOrBuilder
    * 
* * .google.protobuf.Timestamp last_heartbeat_time = 7; - * * @return The lastHeartbeatTime. */ com.google.protobuf.Timestamp getLastHeartbeatTime(); /** - * - * *
    * [Output only] The last time an MQTT `PINGREQ` was received. This field
    * applies only to devices connecting through MQTT. MQTT clients usually only
@@ -222,8 +177,6 @@ public interface DeviceOrBuilder
   com.google.protobuf.TimestampOrBuilder getLastHeartbeatTimeOrBuilder();
 
   /**
-   *
-   *
    * 
    * [Output only] The last time a telemetry event was received. Timestamps are
    * periodically collected and written to storage; they may be stale by a few
@@ -231,13 +184,10 @@ public interface DeviceOrBuilder
    * 
* * .google.protobuf.Timestamp last_event_time = 8; - * * @return Whether the lastEventTime field is set. */ boolean hasLastEventTime(); /** - * - * *
    * [Output only] The last time a telemetry event was received. Timestamps are
    * periodically collected and written to storage; they may be stale by a few
@@ -245,13 +195,10 @@ public interface DeviceOrBuilder
    * 
* * .google.protobuf.Timestamp last_event_time = 8; - * * @return The lastEventTime. */ com.google.protobuf.Timestamp getLastEventTime(); /** - * - * *
    * [Output only] The last time a telemetry event was received. Timestamps are
    * periodically collected and written to storage; they may be stale by a few
@@ -263,8 +210,6 @@ public interface DeviceOrBuilder
   com.google.protobuf.TimestampOrBuilder getLastEventTimeOrBuilder();
 
   /**
-   *
-   *
    * 
    * [Output only] The last time a state event was received. Timestamps are
    * periodically collected and written to storage; they may be stale by a few
@@ -272,13 +217,10 @@ public interface DeviceOrBuilder
    * 
* * .google.protobuf.Timestamp last_state_time = 20; - * * @return Whether the lastStateTime field is set. */ boolean hasLastStateTime(); /** - * - * *
    * [Output only] The last time a state event was received. Timestamps are
    * periodically collected and written to storage; they may be stale by a few
@@ -286,13 +228,10 @@ public interface DeviceOrBuilder
    * 
* * .google.protobuf.Timestamp last_state_time = 20; - * * @return The lastStateTime. */ com.google.protobuf.Timestamp getLastStateTime(); /** - * - * *
    * [Output only] The last time a state event was received. Timestamps are
    * periodically collected and written to storage; they may be stale by a few
@@ -304,8 +243,6 @@ public interface DeviceOrBuilder
   com.google.protobuf.TimestampOrBuilder getLastStateTimeOrBuilder();
 
   /**
-   *
-   *
    * 
    * [Output only] The last time a cloud-to-device config version acknowledgment
    * was received from the device. This field is only for configurations
@@ -313,13 +250,10 @@ public interface DeviceOrBuilder
    * 
* * .google.protobuf.Timestamp last_config_ack_time = 14; - * * @return Whether the lastConfigAckTime field is set. */ boolean hasLastConfigAckTime(); /** - * - * *
    * [Output only] The last time a cloud-to-device config version acknowledgment
    * was received from the device. This field is only for configurations
@@ -327,13 +261,10 @@ public interface DeviceOrBuilder
    * 
* * .google.protobuf.Timestamp last_config_ack_time = 14; - * * @return The lastConfigAckTime. */ com.google.protobuf.Timestamp getLastConfigAckTime(); /** - * - * *
    * [Output only] The last time a cloud-to-device config version acknowledgment
    * was received from the device. This field is only for configurations
@@ -345,34 +276,26 @@ public interface DeviceOrBuilder
   com.google.protobuf.TimestampOrBuilder getLastConfigAckTimeOrBuilder();
 
   /**
-   *
-   *
    * 
    * [Output only] The last time a cloud-to-device config version was sent to
    * the device.
    * 
* * .google.protobuf.Timestamp last_config_send_time = 18; - * * @return Whether the lastConfigSendTime field is set. */ boolean hasLastConfigSendTime(); /** - * - * *
    * [Output only] The last time a cloud-to-device config version was sent to
    * the device.
    * 
* * .google.protobuf.Timestamp last_config_send_time = 18; - * * @return The lastConfigSendTime. */ com.google.protobuf.Timestamp getLastConfigSendTime(); /** - * - * *
    * [Output only] The last time a cloud-to-device config version was sent to
    * the device.
@@ -383,8 +306,6 @@ public interface DeviceOrBuilder
   com.google.protobuf.TimestampOrBuilder getLastConfigSendTimeOrBuilder();
 
   /**
-   *
-   *
    * 
    * If a device is blocked, connections or requests from this device will fail.
    * Can be used to temporarily prevent the device from connecting if, for
@@ -392,14 +313,11 @@ public interface DeviceOrBuilder
    * 
* * bool blocked = 19; - * * @return The blocked. */ boolean getBlocked(); /** - * - * *
    * [Output only] The time the most recent error occurred, such as a failure to
    * publish to Cloud Pub/Sub. This field is the timestamp of
@@ -407,13 +325,10 @@ public interface DeviceOrBuilder
    * 
* * .google.protobuf.Timestamp last_error_time = 10; - * * @return Whether the lastErrorTime field is set. */ boolean hasLastErrorTime(); /** - * - * *
    * [Output only] The time the most recent error occurred, such as a failure to
    * publish to Cloud Pub/Sub. This field is the timestamp of
@@ -421,13 +336,10 @@ public interface DeviceOrBuilder
    * 
* * .google.protobuf.Timestamp last_error_time = 10; - * * @return The lastErrorTime. */ com.google.protobuf.Timestamp getLastErrorTime(); /** - * - * *
    * [Output only] The time the most recent error occurred, such as a failure to
    * publish to Cloud Pub/Sub. This field is the timestamp of
@@ -439,8 +351,6 @@ public interface DeviceOrBuilder
   com.google.protobuf.TimestampOrBuilder getLastErrorTimeOrBuilder();
 
   /**
-   *
-   *
    * 
    * [Output only] The error message of the most recent error, such as a failure
    * to publish to Cloud Pub/Sub. 'last_error_time' is the timestamp of this
@@ -450,13 +360,10 @@ public interface DeviceOrBuilder
    * 
* * .google.rpc.Status last_error_status = 11; - * * @return Whether the lastErrorStatus field is set. */ boolean hasLastErrorStatus(); /** - * - * *
    * [Output only] The error message of the most recent error, such as a failure
    * to publish to Cloud Pub/Sub. 'last_error_time' is the timestamp of this
@@ -466,13 +373,10 @@ public interface DeviceOrBuilder
    * 
* * .google.rpc.Status last_error_status = 11; - * * @return The lastErrorStatus. */ com.google.rpc.Status getLastErrorStatus(); /** - * - * *
    * [Output only] The error message of the most recent error, such as a failure
    * to publish to Cloud Pub/Sub. 'last_error_time' is the timestamp of this
@@ -486,8 +390,6 @@ public interface DeviceOrBuilder
   com.google.rpc.StatusOrBuilder getLastErrorStatusOrBuilder();
 
   /**
-   *
-   *
    * 
    * The most recent device configuration, which is eventually sent from
    * Cloud IoT Core to the device. If not present on creation, the
@@ -497,13 +399,10 @@ public interface DeviceOrBuilder
    * 
* * .google.cloud.iot.v1.DeviceConfig config = 13; - * * @return Whether the config field is set. */ boolean hasConfig(); /** - * - * *
    * The most recent device configuration, which is eventually sent from
    * Cloud IoT Core to the device. If not present on creation, the
@@ -513,13 +412,10 @@ public interface DeviceOrBuilder
    * 
* * .google.cloud.iot.v1.DeviceConfig config = 13; - * * @return The config. */ com.google.cloud.iot.v1.DeviceConfig getConfig(); /** - * - * *
    * The most recent device configuration, which is eventually sent from
    * Cloud IoT Core to the device. If not present on creation, the
@@ -533,34 +429,26 @@ public interface DeviceOrBuilder
   com.google.cloud.iot.v1.DeviceConfigOrBuilder getConfigOrBuilder();
 
   /**
-   *
-   *
    * 
    * [Output only] The state most recently received from the device. If no state
    * has been reported, this field is not present.
    * 
* * .google.cloud.iot.v1.DeviceState state = 16; - * * @return Whether the state field is set. */ boolean hasState(); /** - * - * *
    * [Output only] The state most recently received from the device. If no state
    * has been reported, this field is not present.
    * 
* * .google.cloud.iot.v1.DeviceState state = 16; - * * @return The state. */ com.google.cloud.iot.v1.DeviceState getState(); /** - * - * *
    * [Output only] The state most recently received from the device. If no state
    * has been reported, this field is not present.
@@ -571,8 +459,6 @@ public interface DeviceOrBuilder
   com.google.cloud.iot.v1.DeviceStateOrBuilder getStateOrBuilder();
 
   /**
-   *
-   *
    * 
    * **Beta Feature**
    * The logging verbosity for device activity. If unspecified,
@@ -580,13 +466,10 @@ public interface DeviceOrBuilder
    * 
* * .google.cloud.iot.v1.LogLevel log_level = 21; - * * @return The enum numeric value on the wire for logLevel. */ int getLogLevelValue(); /** - * - * *
    * **Beta Feature**
    * The logging verbosity for device activity. If unspecified,
@@ -594,14 +477,11 @@ public interface DeviceOrBuilder
    * 
* * .google.cloud.iot.v1.LogLevel log_level = 21; - * * @return The logLevel. */ com.google.cloud.iot.v1.LogLevel getLogLevel(); /** - * - * *
    * The metadata key-value pairs assigned to the device. This metadata is not
    * interpreted or indexed by Cloud IoT Core. It can be used to add contextual
@@ -618,8 +498,6 @@ public interface DeviceOrBuilder
    */
   int getMetadataCount();
   /**
-   *
-   *
    * 
    * The metadata key-value pairs assigned to the device. This metadata is not
    * interpreted or indexed by Cloud IoT Core. It can be used to add contextual
@@ -634,13 +512,15 @@ public interface DeviceOrBuilder
    *
    * map<string, string> metadata = 17;
    */
-  boolean containsMetadata(java.lang.String key);
-  /** Use {@link #getMetadataMap()} instead. */
+  boolean containsMetadata(
+      java.lang.String key);
+  /**
+   * Use {@link #getMetadataMap()} instead.
+   */
   @java.lang.Deprecated
-  java.util.Map getMetadata();
+  java.util.Map
+  getMetadata();
   /**
-   *
-   *
    * 
    * The metadata key-value pairs assigned to the device. This metadata is not
    * interpreted or indexed by Cloud IoT Core. It can be used to add contextual
@@ -655,10 +535,9 @@ public interface DeviceOrBuilder
    *
    * map<string, string> metadata = 17;
    */
-  java.util.Map getMetadataMap();
+  java.util.Map
+  getMetadataMap();
   /**
-   *
-   *
    * 
    * The metadata key-value pairs assigned to the device. This metadata is not
    * interpreted or indexed by Cloud IoT Core. It can be used to add contextual
@@ -675,13 +554,11 @@ public interface DeviceOrBuilder
    */
 
   /* nullable */
-  java.lang.String getMetadataOrDefault(
+java.lang.String getMetadataOrDefault(
       java.lang.String key,
       /* nullable */
-      java.lang.String defaultValue);
+java.lang.String defaultValue);
   /**
-   *
-   *
    * 
    * The metadata key-value pairs assigned to the device. This metadata is not
    * interpreted or indexed by Cloud IoT Core. It can be used to add contextual
@@ -696,35 +573,29 @@ java.lang.String getMetadataOrDefault(
    *
    * map<string, string> metadata = 17;
    */
-  java.lang.String getMetadataOrThrow(java.lang.String key);
+
+  java.lang.String getMetadataOrThrow(
+      java.lang.String key);
 
   /**
-   *
-   *
    * 
    * Gateway-related configuration and state.
    * 
* * .google.cloud.iot.v1.GatewayConfig gateway_config = 24; - * * @return Whether the gatewayConfig field is set. */ boolean hasGatewayConfig(); /** - * - * *
    * Gateway-related configuration and state.
    * 
* * .google.cloud.iot.v1.GatewayConfig gateway_config = 24; - * * @return The gatewayConfig. */ com.google.cloud.iot.v1.GatewayConfig getGatewayConfig(); /** - * - * *
    * Gateway-related configuration and state.
    * 
diff --git a/proto-google-cloud-iot-v1/src/main/java/com/google/cloud/iot/v1/DeviceRegistry.java b/owl-bot-staging/v1/proto-google-cloud-iot-v1/src/main/java/com/google/cloud/iot/v1/DeviceRegistry.java similarity index 81% rename from proto-google-cloud-iot-v1/src/main/java/com/google/cloud/iot/v1/DeviceRegistry.java rename to owl-bot-staging/v1/proto-google-cloud-iot-v1/src/main/java/com/google/cloud/iot/v1/DeviceRegistry.java index 7f79e37f..279f0d2a 100644 --- a/proto-google-cloud-iot-v1/src/main/java/com/google/cloud/iot/v1/DeviceRegistry.java +++ b/owl-bot-staging/v1/proto-google-cloud-iot-v1/src/main/java/com/google/cloud/iot/v1/DeviceRegistry.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/iot/v1/resources.proto package com.google.cloud.iot.v1; /** - * - * *
  * A container for a group of devices.
  * 
* * Protobuf type {@code google.cloud.iot.v1.DeviceRegistry} */ -public final class DeviceRegistry extends com.google.protobuf.GeneratedMessageV3 - implements +public final class DeviceRegistry extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.iot.v1.DeviceRegistry) DeviceRegistryOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use DeviceRegistry.newBuilder() to construct. private DeviceRegistry(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private DeviceRegistry() { id_ = ""; name_ = ""; @@ -47,15 +29,16 @@ private DeviceRegistry() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new DeviceRegistry(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private DeviceRegistry( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -75,104 +58,88 @@ private DeviceRegistry( case 0: done = true; break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); + case 10: { + java.lang.String s = input.readStringRequireUtf8(); - id_ = s; - break; - } - case 18: - { - java.lang.String s = input.readStringRequireUtf8(); + id_ = s; + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); - name_ = s; - break; + name_ = s; + break; + } + case 34: { + com.google.cloud.iot.v1.MqttConfig.Builder subBuilder = null; + if (mqttConfig_ != null) { + subBuilder = mqttConfig_.toBuilder(); } - case 34: - { - com.google.cloud.iot.v1.MqttConfig.Builder subBuilder = null; - if (mqttConfig_ != null) { - subBuilder = mqttConfig_.toBuilder(); - } - mqttConfig_ = - input.readMessage(com.google.cloud.iot.v1.MqttConfig.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(mqttConfig_); - mqttConfig_ = subBuilder.buildPartial(); - } - - break; + mqttConfig_ = input.readMessage(com.google.cloud.iot.v1.MqttConfig.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(mqttConfig_); + mqttConfig_ = subBuilder.buildPartial(); } - case 58: - { - com.google.cloud.iot.v1.StateNotificationConfig.Builder subBuilder = null; - if (stateNotificationConfig_ != null) { - subBuilder = stateNotificationConfig_.toBuilder(); - } - stateNotificationConfig_ = - input.readMessage( - com.google.cloud.iot.v1.StateNotificationConfig.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(stateNotificationConfig_); - stateNotificationConfig_ = subBuilder.buildPartial(); - } - - break; + + break; + } + case 58: { + com.google.cloud.iot.v1.StateNotificationConfig.Builder subBuilder = null; + if (stateNotificationConfig_ != null) { + subBuilder = stateNotificationConfig_.toBuilder(); } - case 66: - { - if (!((mutable_bitField0_ & 0x00000002) != 0)) { - credentials_ = - new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000002; - } - credentials_.add( - input.readMessage( - com.google.cloud.iot.v1.RegistryCredential.parser(), extensionRegistry)); - break; + stateNotificationConfig_ = input.readMessage(com.google.cloud.iot.v1.StateNotificationConfig.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(stateNotificationConfig_); + stateNotificationConfig_ = subBuilder.buildPartial(); } - case 74: - { - com.google.cloud.iot.v1.HttpConfig.Builder subBuilder = null; - if (httpConfig_ != null) { - subBuilder = httpConfig_.toBuilder(); - } - httpConfig_ = - input.readMessage(com.google.cloud.iot.v1.HttpConfig.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(httpConfig_); - httpConfig_ = subBuilder.buildPartial(); - } - - break; + + break; + } + case 66: { + if (!((mutable_bitField0_ & 0x00000002) != 0)) { + credentials_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000002; } - case 82: - { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - eventNotificationConfigs_ = - new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; - } - eventNotificationConfigs_.add( - input.readMessage( - com.google.cloud.iot.v1.EventNotificationConfig.parser(), extensionRegistry)); - break; + credentials_.add( + input.readMessage(com.google.cloud.iot.v1.RegistryCredential.parser(), extensionRegistry)); + break; + } + case 74: { + com.google.cloud.iot.v1.HttpConfig.Builder subBuilder = null; + if (httpConfig_ != null) { + subBuilder = httpConfig_.toBuilder(); + } + httpConfig_ = input.readMessage(com.google.cloud.iot.v1.HttpConfig.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(httpConfig_); + httpConfig_ = subBuilder.buildPartial(); } - case 88: - { - int rawValue = input.readEnum(); - logLevel_ = rawValue; - break; + break; + } + case 82: { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + eventNotificationConfigs_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + eventNotificationConfigs_.add( + input.readMessage(com.google.cloud.iot.v1.EventNotificationConfig.parser(), extensionRegistry)); + break; + } + case 88: { + int rawValue = input.readEnum(); + + logLevel_ = rawValue; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -180,46 +147,40 @@ private DeviceRegistry( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } 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)) { credentials_ = java.util.Collections.unmodifiableList(credentials_); } if (((mutable_bitField0_ & 0x00000001) != 0)) { - eventNotificationConfigs_ = - java.util.Collections.unmodifiableList(eventNotificationConfigs_); + eventNotificationConfigs_ = java.util.Collections.unmodifiableList(eventNotificationConfigs_); } this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.iot.v1.ResourcesProto - .internal_static_google_cloud_iot_v1_DeviceRegistry_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.iot.v1.ResourcesProto.internal_static_google_cloud_iot_v1_DeviceRegistry_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.iot.v1.ResourcesProto - .internal_static_google_cloud_iot_v1_DeviceRegistry_fieldAccessorTable + return com.google.cloud.iot.v1.ResourcesProto.internal_static_google_cloud_iot_v1_DeviceRegistry_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.iot.v1.DeviceRegistry.class, - com.google.cloud.iot.v1.DeviceRegistry.Builder.class); + com.google.cloud.iot.v1.DeviceRegistry.class, com.google.cloud.iot.v1.DeviceRegistry.Builder.class); } public static final int ID_FIELD_NUMBER = 1; private volatile java.lang.Object id_; /** - * - * *
    * The identifier of this device registry. For example, `myRegistry`.
    * 
* * string id = 1; - * * @return The id. */ @java.lang.Override @@ -228,29 +189,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; } } /** - * - * *
    * The identifier of this device registry. For example, `myRegistry`.
    * 
* * string id = 1; - * * @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 { @@ -261,15 +222,12 @@ public com.google.protobuf.ByteString getIdBytes() { public static final int NAME_FIELD_NUMBER = 2; private volatile java.lang.Object name_; /** - * - * *
    * The resource path name. For example,
    * `projects/example-project/locations/us-central1/registries/my-registry`.
    * 
* * string name = 2; - * * @return The name. */ @java.lang.Override @@ -278,30 +236,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; } } /** - * - * *
    * The resource path name. For example,
    * `projects/example-project/locations/us-central1/registries/my-registry`.
    * 
* * string name = 2; - * * @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 { @@ -312,8 +270,6 @@ public com.google.protobuf.ByteString getNameBytes() { public static final int EVENT_NOTIFICATION_CONFIGS_FIELD_NUMBER = 10; private java.util.List eventNotificationConfigs_; /** - * - * *
    * The configuration for notification of telemetry events received from the
    * device. All telemetry events that were successfully published by the
@@ -326,17 +282,13 @@ public com.google.protobuf.ByteString getNameBytes() {
    * configurations may be provided.
    * 
* - * repeated .google.cloud.iot.v1.EventNotificationConfig event_notification_configs = 10; - * + * repeated .google.cloud.iot.v1.EventNotificationConfig event_notification_configs = 10; */ @java.lang.Override - public java.util.List - getEventNotificationConfigsList() { + public java.util.List getEventNotificationConfigsList() { return eventNotificationConfigs_; } /** - * - * *
    * The configuration for notification of telemetry events received from the
    * device. All telemetry events that were successfully published by the
@@ -349,17 +301,14 @@ public com.google.protobuf.ByteString getNameBytes() {
    * configurations may be provided.
    * 
* - * repeated .google.cloud.iot.v1.EventNotificationConfig event_notification_configs = 10; - * + * repeated .google.cloud.iot.v1.EventNotificationConfig event_notification_configs = 10; */ @java.lang.Override - public java.util.List + public java.util.List getEventNotificationConfigsOrBuilderList() { return eventNotificationConfigs_; } /** - * - * *
    * The configuration for notification of telemetry events received from the
    * device. All telemetry events that were successfully published by the
@@ -372,16 +321,13 @@ public com.google.protobuf.ByteString getNameBytes() {
    * configurations may be provided.
    * 
* - * repeated .google.cloud.iot.v1.EventNotificationConfig event_notification_configs = 10; - * + * repeated .google.cloud.iot.v1.EventNotificationConfig event_notification_configs = 10; */ @java.lang.Override public int getEventNotificationConfigsCount() { return eventNotificationConfigs_.size(); } /** - * - * *
    * The configuration for notification of telemetry events received from the
    * device. All telemetry events that were successfully published by the
@@ -394,16 +340,13 @@ public int getEventNotificationConfigsCount() {
    * configurations may be provided.
    * 
* - * repeated .google.cloud.iot.v1.EventNotificationConfig event_notification_configs = 10; - * + * repeated .google.cloud.iot.v1.EventNotificationConfig event_notification_configs = 10; */ @java.lang.Override public com.google.cloud.iot.v1.EventNotificationConfig getEventNotificationConfigs(int index) { return eventNotificationConfigs_.get(index); } /** - * - * *
    * The configuration for notification of telemetry events received from the
    * device. All telemetry events that were successfully published by the
@@ -416,20 +359,17 @@ public com.google.cloud.iot.v1.EventNotificationConfig getEventNotificationConfi
    * configurations may be provided.
    * 
* - * repeated .google.cloud.iot.v1.EventNotificationConfig event_notification_configs = 10; - * + * repeated .google.cloud.iot.v1.EventNotificationConfig event_notification_configs = 10; */ @java.lang.Override - public com.google.cloud.iot.v1.EventNotificationConfigOrBuilder - getEventNotificationConfigsOrBuilder(int index) { + public com.google.cloud.iot.v1.EventNotificationConfigOrBuilder getEventNotificationConfigsOrBuilder( + int index) { return eventNotificationConfigs_.get(index); } public static final int STATE_NOTIFICATION_CONFIG_FIELD_NUMBER = 7; private com.google.cloud.iot.v1.StateNotificationConfig stateNotificationConfig_; /** - * - * *
    * The configuration for notification of new states received from the device.
    * State updates are guaranteed to be stored in the state history, but
@@ -440,7 +380,6 @@ public com.google.cloud.iot.v1.EventNotificationConfig getEventNotificationConfi
    * 
* * .google.cloud.iot.v1.StateNotificationConfig state_notification_config = 7; - * * @return Whether the stateNotificationConfig field is set. */ @java.lang.Override @@ -448,8 +387,6 @@ public boolean hasStateNotificationConfig() { return stateNotificationConfig_ != null; } /** - * - * *
    * The configuration for notification of new states received from the device.
    * State updates are guaranteed to be stored in the state history, but
@@ -460,18 +397,13 @@ public boolean hasStateNotificationConfig() {
    * 
* * .google.cloud.iot.v1.StateNotificationConfig state_notification_config = 7; - * * @return The stateNotificationConfig. */ @java.lang.Override public com.google.cloud.iot.v1.StateNotificationConfig getStateNotificationConfig() { - return stateNotificationConfig_ == null - ? com.google.cloud.iot.v1.StateNotificationConfig.getDefaultInstance() - : stateNotificationConfig_; + return stateNotificationConfig_ == null ? com.google.cloud.iot.v1.StateNotificationConfig.getDefaultInstance() : stateNotificationConfig_; } /** - * - * *
    * The configuration for notification of new states received from the device.
    * State updates are guaranteed to be stored in the state history, but
@@ -484,22 +416,18 @@ public com.google.cloud.iot.v1.StateNotificationConfig getStateNotificationConfi
    * .google.cloud.iot.v1.StateNotificationConfig state_notification_config = 7;
    */
   @java.lang.Override
-  public com.google.cloud.iot.v1.StateNotificationConfigOrBuilder
-      getStateNotificationConfigOrBuilder() {
+  public com.google.cloud.iot.v1.StateNotificationConfigOrBuilder getStateNotificationConfigOrBuilder() {
     return getStateNotificationConfig();
   }
 
   public static final int MQTT_CONFIG_FIELD_NUMBER = 4;
   private com.google.cloud.iot.v1.MqttConfig mqttConfig_;
   /**
-   *
-   *
    * 
    * The MQTT configuration for this device registry.
    * 
* * .google.cloud.iot.v1.MqttConfig mqtt_config = 4; - * * @return Whether the mqttConfig field is set. */ @java.lang.Override @@ -507,25 +435,18 @@ public boolean hasMqttConfig() { return mqttConfig_ != null; } /** - * - * *
    * The MQTT configuration for this device registry.
    * 
* * .google.cloud.iot.v1.MqttConfig mqtt_config = 4; - * * @return The mqttConfig. */ @java.lang.Override public com.google.cloud.iot.v1.MqttConfig getMqttConfig() { - return mqttConfig_ == null - ? com.google.cloud.iot.v1.MqttConfig.getDefaultInstance() - : mqttConfig_; + return mqttConfig_ == null ? com.google.cloud.iot.v1.MqttConfig.getDefaultInstance() : mqttConfig_; } /** - * - * *
    * The MQTT configuration for this device registry.
    * 
@@ -540,14 +461,11 @@ public com.google.cloud.iot.v1.MqttConfigOrBuilder getMqttConfigOrBuilder() { public static final int HTTP_CONFIG_FIELD_NUMBER = 9; private com.google.cloud.iot.v1.HttpConfig httpConfig_; /** - * - * *
    * The DeviceService (HTTP) configuration for this device registry.
    * 
* * .google.cloud.iot.v1.HttpConfig http_config = 9; - * * @return Whether the httpConfig field is set. */ @java.lang.Override @@ -555,25 +473,18 @@ public boolean hasHttpConfig() { return httpConfig_ != null; } /** - * - * *
    * The DeviceService (HTTP) configuration for this device registry.
    * 
* * .google.cloud.iot.v1.HttpConfig http_config = 9; - * * @return The httpConfig. */ @java.lang.Override public com.google.cloud.iot.v1.HttpConfig getHttpConfig() { - return httpConfig_ == null - ? com.google.cloud.iot.v1.HttpConfig.getDefaultInstance() - : httpConfig_; + return httpConfig_ == null ? com.google.cloud.iot.v1.HttpConfig.getDefaultInstance() : httpConfig_; } /** - * - * *
    * The DeviceService (HTTP) configuration for this device registry.
    * 
@@ -588,8 +499,6 @@ public com.google.cloud.iot.v1.HttpConfigOrBuilder getHttpConfigOrBuilder() { public static final int LOG_LEVEL_FIELD_NUMBER = 11; private int logLevel_; /** - * - * *
    * **Beta Feature**
    * The default logging verbosity for activity from devices in this registry.
@@ -597,16 +506,12 @@ public com.google.cloud.iot.v1.HttpConfigOrBuilder getHttpConfigOrBuilder() {
    * 
* * .google.cloud.iot.v1.LogLevel log_level = 11; - * * @return The enum numeric value on the wire for logLevel. */ - @java.lang.Override - public int getLogLevelValue() { + @java.lang.Override public int getLogLevelValue() { return logLevel_; } /** - * - * *
    * **Beta Feature**
    * The default logging verbosity for activity from devices in this registry.
@@ -614,11 +519,9 @@ public int getLogLevelValue() {
    * 
* * .google.cloud.iot.v1.LogLevel log_level = 11; - * * @return The logLevel. */ - @java.lang.Override - public com.google.cloud.iot.v1.LogLevel getLogLevel() { + @java.lang.Override public com.google.cloud.iot.v1.LogLevel getLogLevel() { @SuppressWarnings("deprecation") com.google.cloud.iot.v1.LogLevel result = com.google.cloud.iot.v1.LogLevel.valueOf(logLevel_); return result == null ? com.google.cloud.iot.v1.LogLevel.UNRECOGNIZED : result; @@ -627,8 +530,6 @@ public com.google.cloud.iot.v1.LogLevel getLogLevel() { public static final int CREDENTIALS_FIELD_NUMBER = 8; private java.util.List credentials_; /** - * - * *
    * The credentials used to verify the device credentials. No more than 10
    * credentials can be bound to a single registry at a time. The verification
@@ -649,8 +550,6 @@ public java.util.List getCredentials
     return credentials_;
   }
   /**
-   *
-   *
    * 
    * The credentials used to verify the device credentials. No more than 10
    * credentials can be bound to a single registry at a time. The verification
@@ -667,13 +566,11 @@ public java.util.List getCredentials
    * repeated .google.cloud.iot.v1.RegistryCredential credentials = 8;
    */
   @java.lang.Override
-  public java.util.List
+  public java.util.List 
       getCredentialsOrBuilderList() {
     return credentials_;
   }
   /**
-   *
-   *
    * 
    * The credentials used to verify the device credentials. No more than 10
    * credentials can be bound to a single registry at a time. The verification
@@ -694,8 +591,6 @@ public int getCredentialsCount() {
     return credentials_.size();
   }
   /**
-   *
-   *
    * 
    * The credentials used to verify the device credentials. No more than 10
    * credentials can be bound to a single registry at a time. The verification
@@ -716,8 +611,6 @@ public com.google.cloud.iot.v1.RegistryCredential getCredentials(int index) {
     return credentials_.get(index);
   }
   /**
-   *
-   *
    * 
    * The credentials used to verify the device credentials. No more than 10
    * credentials can be bound to a single registry at a time. The verification
@@ -734,12 +627,12 @@ public com.google.cloud.iot.v1.RegistryCredential getCredentials(int index) {
    * repeated .google.cloud.iot.v1.RegistryCredential credentials = 8;
    */
   @java.lang.Override
-  public com.google.cloud.iot.v1.RegistryCredentialOrBuilder getCredentialsOrBuilder(int index) {
+  public com.google.cloud.iot.v1.RegistryCredentialOrBuilder getCredentialsOrBuilder(
+      int index) {
     return credentials_.get(index);
   }
 
   private byte memoizedIsInitialized = -1;
-
   @java.lang.Override
   public final boolean isInitialized() {
     byte isInitialized = memoizedIsInitialized;
@@ -751,7 +644,8 @@ public final boolean isInitialized() {
   }
 
   @java.lang.Override
-  public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
+  public void writeTo(com.google.protobuf.CodedOutputStream output)
+                      throws java.io.IOException {
     if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(id_)) {
       com.google.protobuf.GeneratedMessageV3.writeString(output, 1, id_);
     }
@@ -792,25 +686,28 @@ public int getSerializedSize() {
       size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, name_);
     }
     if (mqttConfig_ != null) {
-      size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getMqttConfig());
+      size += com.google.protobuf.CodedOutputStream
+        .computeMessageSize(4, getMqttConfig());
     }
     if (stateNotificationConfig_ != null) {
-      size +=
-          com.google.protobuf.CodedOutputStream.computeMessageSize(7, getStateNotificationConfig());
+      size += com.google.protobuf.CodedOutputStream
+        .computeMessageSize(7, getStateNotificationConfig());
     }
     for (int i = 0; i < credentials_.size(); i++) {
-      size += com.google.protobuf.CodedOutputStream.computeMessageSize(8, credentials_.get(i));
+      size += com.google.protobuf.CodedOutputStream
+        .computeMessageSize(8, credentials_.get(i));
     }
     if (httpConfig_ != null) {
-      size += com.google.protobuf.CodedOutputStream.computeMessageSize(9, getHttpConfig());
+      size += com.google.protobuf.CodedOutputStream
+        .computeMessageSize(9, getHttpConfig());
     }
     for (int i = 0; i < eventNotificationConfigs_.size(); i++) {
-      size +=
-          com.google.protobuf.CodedOutputStream.computeMessageSize(
-              10, eventNotificationConfigs_.get(i));
+      size += com.google.protobuf.CodedOutputStream
+        .computeMessageSize(10, eventNotificationConfigs_.get(i));
     }
     if (logLevel_ != com.google.cloud.iot.v1.LogLevel.LOG_LEVEL_UNSPECIFIED.getNumber()) {
-      size += com.google.protobuf.CodedOutputStream.computeEnumSize(11, logLevel_);
+      size += com.google.protobuf.CodedOutputStream
+        .computeEnumSize(11, logLevel_);
     }
     size += unknownFields.getSerializedSize();
     memoizedSize = size;
@@ -820,31 +717,37 @@ public int getSerializedSize() {
   @java.lang.Override
   public boolean equals(final java.lang.Object obj) {
     if (obj == this) {
-      return true;
+     return true;
     }
     if (!(obj instanceof com.google.cloud.iot.v1.DeviceRegistry)) {
       return super.equals(obj);
     }
     com.google.cloud.iot.v1.DeviceRegistry other = (com.google.cloud.iot.v1.DeviceRegistry) obj;
 
-    if (!getId().equals(other.getId())) return false;
-    if (!getName().equals(other.getName())) return false;
-    if (!getEventNotificationConfigsList().equals(other.getEventNotificationConfigsList()))
-      return false;
+    if (!getId()
+        .equals(other.getId())) return false;
+    if (!getName()
+        .equals(other.getName())) return false;
+    if (!getEventNotificationConfigsList()
+        .equals(other.getEventNotificationConfigsList())) return false;
     if (hasStateNotificationConfig() != other.hasStateNotificationConfig()) return false;
     if (hasStateNotificationConfig()) {
-      if (!getStateNotificationConfig().equals(other.getStateNotificationConfig())) return false;
+      if (!getStateNotificationConfig()
+          .equals(other.getStateNotificationConfig())) return false;
     }
     if (hasMqttConfig() != other.hasMqttConfig()) return false;
     if (hasMqttConfig()) {
-      if (!getMqttConfig().equals(other.getMqttConfig())) return false;
+      if (!getMqttConfig()
+          .equals(other.getMqttConfig())) return false;
     }
     if (hasHttpConfig() != other.hasHttpConfig()) return false;
     if (hasHttpConfig()) {
-      if (!getHttpConfig().equals(other.getHttpConfig())) return false;
+      if (!getHttpConfig()
+          .equals(other.getHttpConfig())) return false;
     }
     if (logLevel_ != other.logLevel_) return false;
-    if (!getCredentialsList().equals(other.getCredentialsList())) return false;
+    if (!getCredentialsList()
+        .equals(other.getCredentialsList())) return false;
     if (!unknownFields.equals(other.unknownFields)) return false;
     return true;
   }
@@ -887,127 +790,118 @@ public int hashCode() {
     return hash;
   }
 
-  public static com.google.cloud.iot.v1.DeviceRegistry parseFrom(java.nio.ByteBuffer data)
+  public static com.google.cloud.iot.v1.DeviceRegistry parseFrom(
+      java.nio.ByteBuffer data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-
   public static com.google.cloud.iot.v1.DeviceRegistry parseFrom(
-      java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.nio.ByteBuffer data,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-
   public static com.google.cloud.iot.v1.DeviceRegistry parseFrom(
       com.google.protobuf.ByteString data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-
   public static com.google.cloud.iot.v1.DeviceRegistry parseFrom(
       com.google.protobuf.ByteString data,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-
   public static com.google.cloud.iot.v1.DeviceRegistry parseFrom(byte[] data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-
   public static com.google.cloud.iot.v1.DeviceRegistry parseFrom(
-      byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      byte[] data,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-
   public static com.google.cloud.iot.v1.DeviceRegistry 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.iot.v1.DeviceRegistry parseFrom(
-      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.io.InputStream input,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
-        PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input, extensionRegistry);
   }
-
   public static com.google.cloud.iot.v1.DeviceRegistry 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.iot.v1.DeviceRegistry parseDelimitedFrom(
-      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.io.InputStream input,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
-        PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3
+        .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
   }
-
   public static com.google.cloud.iot.v1.DeviceRegistry parseFrom(
-      com.google.protobuf.CodedInputStream input) throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+      com.google.protobuf.CodedInputStream input)
+      throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input);
   }
-
   public static com.google.cloud.iot.v1.DeviceRegistry parseFrom(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
-        PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input, extensionRegistry);
   }
 
   @java.lang.Override
-  public Builder newBuilderForType() {
-    return newBuilder();
-  }
-
+  public Builder newBuilderForType() { return newBuilder(); }
   public static Builder newBuilder() {
     return DEFAULT_INSTANCE.toBuilder();
   }
-
   public static Builder newBuilder(com.google.cloud.iot.v1.DeviceRegistry prototype) {
     return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
   }
-
   @java.lang.Override
   public Builder toBuilder() {
-    return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
+    return this == DEFAULT_INSTANCE
+        ? new Builder() : new Builder().mergeFrom(this);
   }
 
   @java.lang.Override
-  protected 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 container for a group of devices.
    * 
* * Protobuf type {@code google.cloud.iot.v1.DeviceRegistry} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.iot.v1.DeviceRegistry) com.google.cloud.iot.v1.DeviceRegistryOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.iot.v1.ResourcesProto - .internal_static_google_cloud_iot_v1_DeviceRegistry_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.iot.v1.ResourcesProto.internal_static_google_cloud_iot_v1_DeviceRegistry_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.iot.v1.ResourcesProto - .internal_static_google_cloud_iot_v1_DeviceRegistry_fieldAccessorTable + return com.google.cloud.iot.v1.ResourcesProto.internal_static_google_cloud_iot_v1_DeviceRegistry_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.iot.v1.DeviceRegistry.class, - com.google.cloud.iot.v1.DeviceRegistry.Builder.class); + com.google.cloud.iot.v1.DeviceRegistry.class, com.google.cloud.iot.v1.DeviceRegistry.Builder.class); } // Construct using com.google.cloud.iot.v1.DeviceRegistry.newBuilder() @@ -1015,18 +909,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) { getEventNotificationConfigsFieldBuilder(); getCredentialsFieldBuilder(); } } - @java.lang.Override public Builder clear() { super.clear(); @@ -1070,9 +964,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.iot.v1.ResourcesProto - .internal_static_google_cloud_iot_v1_DeviceRegistry_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.iot.v1.ResourcesProto.internal_static_google_cloud_iot_v1_DeviceRegistry_descriptor; } @java.lang.Override @@ -1091,15 +985,13 @@ public com.google.cloud.iot.v1.DeviceRegistry build() { @java.lang.Override public com.google.cloud.iot.v1.DeviceRegistry buildPartial() { - com.google.cloud.iot.v1.DeviceRegistry result = - new com.google.cloud.iot.v1.DeviceRegistry(this); + com.google.cloud.iot.v1.DeviceRegistry result = new com.google.cloud.iot.v1.DeviceRegistry(this); int from_bitField0_ = bitField0_; result.id_ = id_; result.name_ = name_; if (eventNotificationConfigsBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { - eventNotificationConfigs_ = - java.util.Collections.unmodifiableList(eventNotificationConfigs_); + eventNotificationConfigs_ = java.util.Collections.unmodifiableList(eventNotificationConfigs_); bitField0_ = (bitField0_ & ~0x00000001); } result.eventNotificationConfigs_ = eventNotificationConfigs_; @@ -1139,39 +1031,38 @@ public com.google.cloud.iot.v1.DeviceRegistry buildPartial() { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.iot.v1.DeviceRegistry) { - return mergeFrom((com.google.cloud.iot.v1.DeviceRegistry) other); + return mergeFrom((com.google.cloud.iot.v1.DeviceRegistry)other); } else { super.mergeFrom(other); return this; @@ -1206,10 +1097,9 @@ public Builder mergeFrom(com.google.cloud.iot.v1.DeviceRegistry other) { eventNotificationConfigsBuilder_ = null; eventNotificationConfigs_ = other.eventNotificationConfigs_; bitField0_ = (bitField0_ & ~0x00000001); - eventNotificationConfigsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getEventNotificationConfigsFieldBuilder() - : null; + eventNotificationConfigsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getEventNotificationConfigsFieldBuilder() : null; } else { eventNotificationConfigsBuilder_.addAllMessages(other.eventNotificationConfigs_); } @@ -1245,10 +1135,9 @@ public Builder mergeFrom(com.google.cloud.iot.v1.DeviceRegistry other) { credentialsBuilder_ = null; credentials_ = other.credentials_; bitField0_ = (bitField0_ & ~0x00000002); - credentialsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getCredentialsFieldBuilder() - : null; + credentialsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getCredentialsFieldBuilder() : null; } else { credentialsBuilder_.addAllMessages(other.credentials_); } @@ -1282,25 +1171,22 @@ public Builder mergeFrom( } return this; } - private int bitField0_; private java.lang.Object id_ = ""; /** - * - * *
      * The identifier of this device registry. For example, `myRegistry`.
      * 
* * string id = 1; - * * @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; @@ -1309,21 +1195,20 @@ public java.lang.String getId() { } } /** - * - * *
      * The identifier of this device registry. For example, `myRegistry`.
      * 
* * string id = 1; - * * @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 { @@ -1331,61 +1216,54 @@ public com.google.protobuf.ByteString getIdBytes() { } } /** - * - * *
      * The identifier of this device registry. For example, `myRegistry`.
      * 
* * string id = 1; - * * @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; } /** - * - * *
      * The identifier of this device registry. For example, `myRegistry`.
      * 
* * string id = 1; - * * @return This builder for chaining. */ public Builder clearId() { - + id_ = getDefaultInstance().getId(); onChanged(); return this; } /** - * - * *
      * The identifier of this device registry. For example, `myRegistry`.
      * 
* * string id = 1; - * * @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; @@ -1393,21 +1271,19 @@ public Builder setIdBytes(com.google.protobuf.ByteString value) { private java.lang.Object name_ = ""; /** - * - * *
      * The resource path name. For example,
      * `projects/example-project/locations/us-central1/registries/my-registry`.
      * 
* * string name = 2; - * * @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; @@ -1416,22 +1292,21 @@ public java.lang.String getName() { } } /** - * - * *
      * The resource path name. For example,
      * `projects/example-project/locations/us-central1/registries/my-registry`.
      * 
* * string name = 2; - * * @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 { @@ -1439,90 +1314,75 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
      * The resource path name. For example,
      * `projects/example-project/locations/us-central1/registries/my-registry`.
      * 
* * string name = 2; - * * @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; } /** - * - * *
      * The resource path name. For example,
      * `projects/example-project/locations/us-central1/registries/my-registry`.
      * 
* * string name = 2; - * * @return This builder for chaining. */ public Builder clearName() { - + name_ = getDefaultInstance().getName(); onChanged(); return this; } /** - * - * *
      * The resource path name. For example,
      * `projects/example-project/locations/us-central1/registries/my-registry`.
      * 
* * string name = 2; - * * @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 java.util.List - eventNotificationConfigs_ = java.util.Collections.emptyList(); - + private java.util.List eventNotificationConfigs_ = + java.util.Collections.emptyList(); private void ensureEventNotificationConfigsIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { - eventNotificationConfigs_ = - new java.util.ArrayList( - eventNotificationConfigs_); + eventNotificationConfigs_ = new java.util.ArrayList(eventNotificationConfigs_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.iot.v1.EventNotificationConfig, - com.google.cloud.iot.v1.EventNotificationConfig.Builder, - com.google.cloud.iot.v1.EventNotificationConfigOrBuilder> - eventNotificationConfigsBuilder_; + com.google.cloud.iot.v1.EventNotificationConfig, com.google.cloud.iot.v1.EventNotificationConfig.Builder, com.google.cloud.iot.v1.EventNotificationConfigOrBuilder> eventNotificationConfigsBuilder_; /** - * - * *
      * The configuration for notification of telemetry events received from the
      * device. All telemetry events that were successfully published by the
@@ -1535,11 +1395,9 @@ private void ensureEventNotificationConfigsIsMutable() {
      * configurations may be provided.
      * 
* - * repeated .google.cloud.iot.v1.EventNotificationConfig event_notification_configs = 10; - * + * repeated .google.cloud.iot.v1.EventNotificationConfig event_notification_configs = 10; */ - public java.util.List - getEventNotificationConfigsList() { + public java.util.List getEventNotificationConfigsList() { if (eventNotificationConfigsBuilder_ == null) { return java.util.Collections.unmodifiableList(eventNotificationConfigs_); } else { @@ -1547,8 +1405,6 @@ private void ensureEventNotificationConfigsIsMutable() { } } /** - * - * *
      * The configuration for notification of telemetry events received from the
      * device. All telemetry events that were successfully published by the
@@ -1561,8 +1417,7 @@ private void ensureEventNotificationConfigsIsMutable() {
      * configurations may be provided.
      * 
* - * repeated .google.cloud.iot.v1.EventNotificationConfig event_notification_configs = 10; - * + * repeated .google.cloud.iot.v1.EventNotificationConfig event_notification_configs = 10; */ public int getEventNotificationConfigsCount() { if (eventNotificationConfigsBuilder_ == null) { @@ -1572,8 +1427,6 @@ public int getEventNotificationConfigsCount() { } } /** - * - * *
      * The configuration for notification of telemetry events received from the
      * device. All telemetry events that were successfully published by the
@@ -1586,8 +1439,7 @@ public int getEventNotificationConfigsCount() {
      * configurations may be provided.
      * 
* - * repeated .google.cloud.iot.v1.EventNotificationConfig event_notification_configs = 10; - * + * repeated .google.cloud.iot.v1.EventNotificationConfig event_notification_configs = 10; */ public com.google.cloud.iot.v1.EventNotificationConfig getEventNotificationConfigs(int index) { if (eventNotificationConfigsBuilder_ == null) { @@ -1597,8 +1449,6 @@ public com.google.cloud.iot.v1.EventNotificationConfig getEventNotificationConfi } } /** - * - * *
      * The configuration for notification of telemetry events received from the
      * device. All telemetry events that were successfully published by the
@@ -1611,8 +1461,7 @@ public com.google.cloud.iot.v1.EventNotificationConfig getEventNotificationConfi
      * configurations may be provided.
      * 
* - * repeated .google.cloud.iot.v1.EventNotificationConfig event_notification_configs = 10; - * + * repeated .google.cloud.iot.v1.EventNotificationConfig event_notification_configs = 10; */ public Builder setEventNotificationConfigs( int index, com.google.cloud.iot.v1.EventNotificationConfig value) { @@ -1629,8 +1478,6 @@ public Builder setEventNotificationConfigs( return this; } /** - * - * *
      * The configuration for notification of telemetry events received from the
      * device. All telemetry events that were successfully published by the
@@ -1643,8 +1490,7 @@ public Builder setEventNotificationConfigs(
      * configurations may be provided.
      * 
* - * repeated .google.cloud.iot.v1.EventNotificationConfig event_notification_configs = 10; - * + * repeated .google.cloud.iot.v1.EventNotificationConfig event_notification_configs = 10; */ public Builder setEventNotificationConfigs( int index, com.google.cloud.iot.v1.EventNotificationConfig.Builder builderForValue) { @@ -1658,8 +1504,6 @@ public Builder setEventNotificationConfigs( return this; } /** - * - * *
      * The configuration for notification of telemetry events received from the
      * device. All telemetry events that were successfully published by the
@@ -1672,11 +1516,9 @@ public Builder setEventNotificationConfigs(
      * configurations may be provided.
      * 
* - * repeated .google.cloud.iot.v1.EventNotificationConfig event_notification_configs = 10; - * + * repeated .google.cloud.iot.v1.EventNotificationConfig event_notification_configs = 10; */ - public Builder addEventNotificationConfigs( - com.google.cloud.iot.v1.EventNotificationConfig value) { + public Builder addEventNotificationConfigs(com.google.cloud.iot.v1.EventNotificationConfig value) { if (eventNotificationConfigsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -1690,8 +1532,6 @@ public Builder addEventNotificationConfigs( return this; } /** - * - * *
      * The configuration for notification of telemetry events received from the
      * device. All telemetry events that were successfully published by the
@@ -1704,8 +1544,7 @@ public Builder addEventNotificationConfigs(
      * configurations may be provided.
      * 
* - * repeated .google.cloud.iot.v1.EventNotificationConfig event_notification_configs = 10; - * + * repeated .google.cloud.iot.v1.EventNotificationConfig event_notification_configs = 10; */ public Builder addEventNotificationConfigs( int index, com.google.cloud.iot.v1.EventNotificationConfig value) { @@ -1722,8 +1561,6 @@ public Builder addEventNotificationConfigs( return this; } /** - * - * *
      * The configuration for notification of telemetry events received from the
      * device. All telemetry events that were successfully published by the
@@ -1736,8 +1573,7 @@ public Builder addEventNotificationConfigs(
      * configurations may be provided.
      * 
* - * repeated .google.cloud.iot.v1.EventNotificationConfig event_notification_configs = 10; - * + * repeated .google.cloud.iot.v1.EventNotificationConfig event_notification_configs = 10; */ public Builder addEventNotificationConfigs( com.google.cloud.iot.v1.EventNotificationConfig.Builder builderForValue) { @@ -1751,8 +1587,6 @@ public Builder addEventNotificationConfigs( return this; } /** - * - * *
      * The configuration for notification of telemetry events received from the
      * device. All telemetry events that were successfully published by the
@@ -1765,8 +1599,7 @@ public Builder addEventNotificationConfigs(
      * configurations may be provided.
      * 
* - * repeated .google.cloud.iot.v1.EventNotificationConfig event_notification_configs = 10; - * + * repeated .google.cloud.iot.v1.EventNotificationConfig event_notification_configs = 10; */ public Builder addEventNotificationConfigs( int index, com.google.cloud.iot.v1.EventNotificationConfig.Builder builderForValue) { @@ -1780,8 +1613,6 @@ public Builder addEventNotificationConfigs( return this; } /** - * - * *
      * The configuration for notification of telemetry events received from the
      * device. All telemetry events that were successfully published by the
@@ -1794,14 +1625,14 @@ public Builder addEventNotificationConfigs(
      * configurations may be provided.
      * 
* - * repeated .google.cloud.iot.v1.EventNotificationConfig event_notification_configs = 10; - * + * repeated .google.cloud.iot.v1.EventNotificationConfig event_notification_configs = 10; */ public Builder addAllEventNotificationConfigs( java.lang.Iterable values) { if (eventNotificationConfigsBuilder_ == null) { ensureEventNotificationConfigsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, eventNotificationConfigs_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, eventNotificationConfigs_); onChanged(); } else { eventNotificationConfigsBuilder_.addAllMessages(values); @@ -1809,8 +1640,6 @@ public Builder addAllEventNotificationConfigs( return this; } /** - * - * *
      * The configuration for notification of telemetry events received from the
      * device. All telemetry events that were successfully published by the
@@ -1823,8 +1652,7 @@ public Builder addAllEventNotificationConfigs(
      * configurations may be provided.
      * 
* - * repeated .google.cloud.iot.v1.EventNotificationConfig event_notification_configs = 10; - * + * repeated .google.cloud.iot.v1.EventNotificationConfig event_notification_configs = 10; */ public Builder clearEventNotificationConfigs() { if (eventNotificationConfigsBuilder_ == null) { @@ -1837,8 +1665,6 @@ public Builder clearEventNotificationConfigs() { return this; } /** - * - * *
      * The configuration for notification of telemetry events received from the
      * device. All telemetry events that were successfully published by the
@@ -1851,8 +1677,7 @@ public Builder clearEventNotificationConfigs() {
      * configurations may be provided.
      * 
* - * repeated .google.cloud.iot.v1.EventNotificationConfig event_notification_configs = 10; - * + * repeated .google.cloud.iot.v1.EventNotificationConfig event_notification_configs = 10; */ public Builder removeEventNotificationConfigs(int index) { if (eventNotificationConfigsBuilder_ == null) { @@ -1865,8 +1690,6 @@ public Builder removeEventNotificationConfigs(int index) { return this; } /** - * - * *
      * The configuration for notification of telemetry events received from the
      * device. All telemetry events that were successfully published by the
@@ -1879,16 +1702,13 @@ public Builder removeEventNotificationConfigs(int index) {
      * configurations may be provided.
      * 
* - * repeated .google.cloud.iot.v1.EventNotificationConfig event_notification_configs = 10; - * + * repeated .google.cloud.iot.v1.EventNotificationConfig event_notification_configs = 10; */ - public com.google.cloud.iot.v1.EventNotificationConfig.Builder - getEventNotificationConfigsBuilder(int index) { + public com.google.cloud.iot.v1.EventNotificationConfig.Builder getEventNotificationConfigsBuilder( + int index) { return getEventNotificationConfigsFieldBuilder().getBuilder(index); } /** - * - * *
      * The configuration for notification of telemetry events received from the
      * device. All telemetry events that were successfully published by the
@@ -1901,20 +1721,16 @@ public Builder removeEventNotificationConfigs(int index) {
      * configurations may be provided.
      * 
* - * repeated .google.cloud.iot.v1.EventNotificationConfig event_notification_configs = 10; - * + * repeated .google.cloud.iot.v1.EventNotificationConfig event_notification_configs = 10; */ - public com.google.cloud.iot.v1.EventNotificationConfigOrBuilder - getEventNotificationConfigsOrBuilder(int index) { + public com.google.cloud.iot.v1.EventNotificationConfigOrBuilder getEventNotificationConfigsOrBuilder( + int index) { if (eventNotificationConfigsBuilder_ == null) { - return eventNotificationConfigs_.get(index); - } else { + return eventNotificationConfigs_.get(index); } else { return eventNotificationConfigsBuilder_.getMessageOrBuilder(index); } } /** - * - * *
      * The configuration for notification of telemetry events received from the
      * device. All telemetry events that were successfully published by the
@@ -1927,11 +1743,10 @@ public Builder removeEventNotificationConfigs(int index) {
      * configurations may be provided.
      * 
* - * repeated .google.cloud.iot.v1.EventNotificationConfig event_notification_configs = 10; - * + * repeated .google.cloud.iot.v1.EventNotificationConfig event_notification_configs = 10; */ - public java.util.List - getEventNotificationConfigsOrBuilderList() { + public java.util.List + getEventNotificationConfigsOrBuilderList() { if (eventNotificationConfigsBuilder_ != null) { return eventNotificationConfigsBuilder_.getMessageOrBuilderList(); } else { @@ -1939,8 +1754,6 @@ public Builder removeEventNotificationConfigs(int index) { } } /** - * - * *
      * The configuration for notification of telemetry events received from the
      * device. All telemetry events that were successfully published by the
@@ -1953,17 +1766,13 @@ public Builder removeEventNotificationConfigs(int index) {
      * configurations may be provided.
      * 
* - * repeated .google.cloud.iot.v1.EventNotificationConfig event_notification_configs = 10; - * + * repeated .google.cloud.iot.v1.EventNotificationConfig event_notification_configs = 10; */ - public com.google.cloud.iot.v1.EventNotificationConfig.Builder - addEventNotificationConfigsBuilder() { - return getEventNotificationConfigsFieldBuilder() - .addBuilder(com.google.cloud.iot.v1.EventNotificationConfig.getDefaultInstance()); + public com.google.cloud.iot.v1.EventNotificationConfig.Builder addEventNotificationConfigsBuilder() { + return getEventNotificationConfigsFieldBuilder().addBuilder( + com.google.cloud.iot.v1.EventNotificationConfig.getDefaultInstance()); } /** - * - * *
      * The configuration for notification of telemetry events received from the
      * device. All telemetry events that were successfully published by the
@@ -1976,17 +1785,14 @@ public Builder removeEventNotificationConfigs(int index) {
      * configurations may be provided.
      * 
* - * repeated .google.cloud.iot.v1.EventNotificationConfig event_notification_configs = 10; - * + * repeated .google.cloud.iot.v1.EventNotificationConfig event_notification_configs = 10; */ - public com.google.cloud.iot.v1.EventNotificationConfig.Builder - addEventNotificationConfigsBuilder(int index) { - return getEventNotificationConfigsFieldBuilder() - .addBuilder(index, com.google.cloud.iot.v1.EventNotificationConfig.getDefaultInstance()); + public com.google.cloud.iot.v1.EventNotificationConfig.Builder addEventNotificationConfigsBuilder( + int index) { + return getEventNotificationConfigsFieldBuilder().addBuilder( + index, com.google.cloud.iot.v1.EventNotificationConfig.getDefaultInstance()); } /** - * - * *
      * The configuration for notification of telemetry events received from the
      * device. All telemetry events that were successfully published by the
@@ -1999,25 +1805,18 @@ public Builder removeEventNotificationConfigs(int index) {
      * configurations may be provided.
      * 
* - * repeated .google.cloud.iot.v1.EventNotificationConfig event_notification_configs = 10; - * + * repeated .google.cloud.iot.v1.EventNotificationConfig event_notification_configs = 10; */ - public java.util.List - getEventNotificationConfigsBuilderList() { + public java.util.List + getEventNotificationConfigsBuilderList() { return getEventNotificationConfigsFieldBuilder().getBuilderList(); } - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.iot.v1.EventNotificationConfig, - com.google.cloud.iot.v1.EventNotificationConfig.Builder, - com.google.cloud.iot.v1.EventNotificationConfigOrBuilder> + com.google.cloud.iot.v1.EventNotificationConfig, com.google.cloud.iot.v1.EventNotificationConfig.Builder, com.google.cloud.iot.v1.EventNotificationConfigOrBuilder> getEventNotificationConfigsFieldBuilder() { if (eventNotificationConfigsBuilder_ == null) { - eventNotificationConfigsBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.iot.v1.EventNotificationConfig, - com.google.cloud.iot.v1.EventNotificationConfig.Builder, - com.google.cloud.iot.v1.EventNotificationConfigOrBuilder>( + eventNotificationConfigsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.iot.v1.EventNotificationConfig, com.google.cloud.iot.v1.EventNotificationConfig.Builder, com.google.cloud.iot.v1.EventNotificationConfigOrBuilder>( eventNotificationConfigs_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), @@ -2029,13 +1828,8 @@ public Builder removeEventNotificationConfigs(int index) { private com.google.cloud.iot.v1.StateNotificationConfig stateNotificationConfig_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.iot.v1.StateNotificationConfig, - com.google.cloud.iot.v1.StateNotificationConfig.Builder, - com.google.cloud.iot.v1.StateNotificationConfigOrBuilder> - stateNotificationConfigBuilder_; + com.google.cloud.iot.v1.StateNotificationConfig, com.google.cloud.iot.v1.StateNotificationConfig.Builder, com.google.cloud.iot.v1.StateNotificationConfigOrBuilder> stateNotificationConfigBuilder_; /** - * - * *
      * The configuration for notification of new states received from the device.
      * State updates are guaranteed to be stored in the state history, but
@@ -2046,15 +1840,12 @@ public Builder removeEventNotificationConfigs(int index) {
      * 
* * .google.cloud.iot.v1.StateNotificationConfig state_notification_config = 7; - * * @return Whether the stateNotificationConfig field is set. */ public boolean hasStateNotificationConfig() { return stateNotificationConfigBuilder_ != null || stateNotificationConfig_ != null; } /** - * - * *
      * The configuration for notification of new states received from the device.
      * State updates are guaranteed to be stored in the state history, but
@@ -2065,21 +1856,16 @@ public boolean hasStateNotificationConfig() {
      * 
* * .google.cloud.iot.v1.StateNotificationConfig state_notification_config = 7; - * * @return The stateNotificationConfig. */ public com.google.cloud.iot.v1.StateNotificationConfig getStateNotificationConfig() { if (stateNotificationConfigBuilder_ == null) { - return stateNotificationConfig_ == null - ? com.google.cloud.iot.v1.StateNotificationConfig.getDefaultInstance() - : stateNotificationConfig_; + return stateNotificationConfig_ == null ? com.google.cloud.iot.v1.StateNotificationConfig.getDefaultInstance() : stateNotificationConfig_; } else { return stateNotificationConfigBuilder_.getMessage(); } } /** - * - * *
      * The configuration for notification of new states received from the device.
      * State updates are guaranteed to be stored in the state history, but
@@ -2091,8 +1877,7 @@ public com.google.cloud.iot.v1.StateNotificationConfig getStateNotificationConfi
      *
      * .google.cloud.iot.v1.StateNotificationConfig state_notification_config = 7;
      */
-    public Builder setStateNotificationConfig(
-        com.google.cloud.iot.v1.StateNotificationConfig value) {
+    public Builder setStateNotificationConfig(com.google.cloud.iot.v1.StateNotificationConfig value) {
       if (stateNotificationConfigBuilder_ == null) {
         if (value == null) {
           throw new NullPointerException();
@@ -2106,8 +1891,6 @@ public Builder setStateNotificationConfig(
       return this;
     }
     /**
-     *
-     *
      * 
      * The configuration for notification of new states received from the device.
      * State updates are guaranteed to be stored in the state history, but
@@ -2131,8 +1914,6 @@ public Builder setStateNotificationConfig(
       return this;
     }
     /**
-     *
-     *
      * 
      * The configuration for notification of new states received from the device.
      * State updates are guaranteed to be stored in the state history, but
@@ -2144,14 +1925,11 @@ public Builder setStateNotificationConfig(
      *
      * .google.cloud.iot.v1.StateNotificationConfig state_notification_config = 7;
      */
-    public Builder mergeStateNotificationConfig(
-        com.google.cloud.iot.v1.StateNotificationConfig value) {
+    public Builder mergeStateNotificationConfig(com.google.cloud.iot.v1.StateNotificationConfig value) {
       if (stateNotificationConfigBuilder_ == null) {
         if (stateNotificationConfig_ != null) {
           stateNotificationConfig_ =
-              com.google.cloud.iot.v1.StateNotificationConfig.newBuilder(stateNotificationConfig_)
-                  .mergeFrom(value)
-                  .buildPartial();
+            com.google.cloud.iot.v1.StateNotificationConfig.newBuilder(stateNotificationConfig_).mergeFrom(value).buildPartial();
         } else {
           stateNotificationConfig_ = value;
         }
@@ -2163,8 +1941,6 @@ public Builder mergeStateNotificationConfig(
       return this;
     }
     /**
-     *
-     *
      * 
      * The configuration for notification of new states received from the device.
      * State updates are guaranteed to be stored in the state history, but
@@ -2188,8 +1964,6 @@ public Builder clearStateNotificationConfig() {
       return this;
     }
     /**
-     *
-     *
      * 
      * The configuration for notification of new states received from the device.
      * State updates are guaranteed to be stored in the state history, but
@@ -2201,15 +1975,12 @@ public Builder clearStateNotificationConfig() {
      *
      * .google.cloud.iot.v1.StateNotificationConfig state_notification_config = 7;
      */
-    public com.google.cloud.iot.v1.StateNotificationConfig.Builder
-        getStateNotificationConfigBuilder() {
-
+    public com.google.cloud.iot.v1.StateNotificationConfig.Builder getStateNotificationConfigBuilder() {
+      
       onChanged();
       return getStateNotificationConfigFieldBuilder().getBuilder();
     }
     /**
-     *
-     *
      * 
      * The configuration for notification of new states received from the device.
      * State updates are guaranteed to be stored in the state history, but
@@ -2221,19 +1992,15 @@ public Builder clearStateNotificationConfig() {
      *
      * .google.cloud.iot.v1.StateNotificationConfig state_notification_config = 7;
      */
-    public com.google.cloud.iot.v1.StateNotificationConfigOrBuilder
-        getStateNotificationConfigOrBuilder() {
+    public com.google.cloud.iot.v1.StateNotificationConfigOrBuilder getStateNotificationConfigOrBuilder() {
       if (stateNotificationConfigBuilder_ != null) {
         return stateNotificationConfigBuilder_.getMessageOrBuilder();
       } else {
-        return stateNotificationConfig_ == null
-            ? com.google.cloud.iot.v1.StateNotificationConfig.getDefaultInstance()
-            : stateNotificationConfig_;
+        return stateNotificationConfig_ == null ?
+            com.google.cloud.iot.v1.StateNotificationConfig.getDefaultInstance() : stateNotificationConfig_;
       }
     }
     /**
-     *
-     *
      * 
      * The configuration for notification of new states received from the device.
      * State updates are guaranteed to be stored in the state history, but
@@ -2246,17 +2013,14 @@ public Builder clearStateNotificationConfig() {
      * .google.cloud.iot.v1.StateNotificationConfig state_notification_config = 7;
      */
     private com.google.protobuf.SingleFieldBuilderV3<
-            com.google.cloud.iot.v1.StateNotificationConfig,
-            com.google.cloud.iot.v1.StateNotificationConfig.Builder,
-            com.google.cloud.iot.v1.StateNotificationConfigOrBuilder>
+        com.google.cloud.iot.v1.StateNotificationConfig, com.google.cloud.iot.v1.StateNotificationConfig.Builder, com.google.cloud.iot.v1.StateNotificationConfigOrBuilder> 
         getStateNotificationConfigFieldBuilder() {
       if (stateNotificationConfigBuilder_ == null) {
-        stateNotificationConfigBuilder_ =
-            new com.google.protobuf.SingleFieldBuilderV3<
-                com.google.cloud.iot.v1.StateNotificationConfig,
-                com.google.cloud.iot.v1.StateNotificationConfig.Builder,
-                com.google.cloud.iot.v1.StateNotificationConfigOrBuilder>(
-                getStateNotificationConfig(), getParentForChildren(), isClean());
+        stateNotificationConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
+            com.google.cloud.iot.v1.StateNotificationConfig, com.google.cloud.iot.v1.StateNotificationConfig.Builder, com.google.cloud.iot.v1.StateNotificationConfigOrBuilder>(
+                getStateNotificationConfig(),
+                getParentForChildren(),
+                isClean());
         stateNotificationConfig_ = null;
       }
       return stateNotificationConfigBuilder_;
@@ -2264,47 +2028,34 @@ public Builder clearStateNotificationConfig() {
 
     private com.google.cloud.iot.v1.MqttConfig mqttConfig_;
     private com.google.protobuf.SingleFieldBuilderV3<
-            com.google.cloud.iot.v1.MqttConfig,
-            com.google.cloud.iot.v1.MqttConfig.Builder,
-            com.google.cloud.iot.v1.MqttConfigOrBuilder>
-        mqttConfigBuilder_;
+        com.google.cloud.iot.v1.MqttConfig, com.google.cloud.iot.v1.MqttConfig.Builder, com.google.cloud.iot.v1.MqttConfigOrBuilder> mqttConfigBuilder_;
     /**
-     *
-     *
      * 
      * The MQTT configuration for this device registry.
      * 
* * .google.cloud.iot.v1.MqttConfig mqtt_config = 4; - * * @return Whether the mqttConfig field is set. */ public boolean hasMqttConfig() { return mqttConfigBuilder_ != null || mqttConfig_ != null; } /** - * - * *
      * The MQTT configuration for this device registry.
      * 
* * .google.cloud.iot.v1.MqttConfig mqtt_config = 4; - * * @return The mqttConfig. */ public com.google.cloud.iot.v1.MqttConfig getMqttConfig() { if (mqttConfigBuilder_ == null) { - return mqttConfig_ == null - ? com.google.cloud.iot.v1.MqttConfig.getDefaultInstance() - : mqttConfig_; + return mqttConfig_ == null ? com.google.cloud.iot.v1.MqttConfig.getDefaultInstance() : mqttConfig_; } else { return mqttConfigBuilder_.getMessage(); } } /** - * - * *
      * The MQTT configuration for this device registry.
      * 
@@ -2325,15 +2076,14 @@ public Builder setMqttConfig(com.google.cloud.iot.v1.MqttConfig value) { return this; } /** - * - * *
      * The MQTT configuration for this device registry.
      * 
* * .google.cloud.iot.v1.MqttConfig mqtt_config = 4; */ - public Builder setMqttConfig(com.google.cloud.iot.v1.MqttConfig.Builder builderForValue) { + public Builder setMqttConfig( + com.google.cloud.iot.v1.MqttConfig.Builder builderForValue) { if (mqttConfigBuilder_ == null) { mqttConfig_ = builderForValue.build(); onChanged(); @@ -2344,8 +2094,6 @@ public Builder setMqttConfig(com.google.cloud.iot.v1.MqttConfig.Builder builderF return this; } /** - * - * *
      * The MQTT configuration for this device registry.
      * 
@@ -2356,9 +2104,7 @@ public Builder mergeMqttConfig(com.google.cloud.iot.v1.MqttConfig value) { if (mqttConfigBuilder_ == null) { if (mqttConfig_ != null) { mqttConfig_ = - com.google.cloud.iot.v1.MqttConfig.newBuilder(mqttConfig_) - .mergeFrom(value) - .buildPartial(); + com.google.cloud.iot.v1.MqttConfig.newBuilder(mqttConfig_).mergeFrom(value).buildPartial(); } else { mqttConfig_ = value; } @@ -2370,8 +2116,6 @@ public Builder mergeMqttConfig(com.google.cloud.iot.v1.MqttConfig value) { return this; } /** - * - * *
      * The MQTT configuration for this device registry.
      * 
@@ -2390,8 +2134,6 @@ public Builder clearMqttConfig() { return this; } /** - * - * *
      * The MQTT configuration for this device registry.
      * 
@@ -2399,13 +2141,11 @@ public Builder clearMqttConfig() { * .google.cloud.iot.v1.MqttConfig mqtt_config = 4; */ public com.google.cloud.iot.v1.MqttConfig.Builder getMqttConfigBuilder() { - + onChanged(); return getMqttConfigFieldBuilder().getBuilder(); } /** - * - * *
      * The MQTT configuration for this device registry.
      * 
@@ -2416,14 +2156,11 @@ public com.google.cloud.iot.v1.MqttConfigOrBuilder getMqttConfigOrBuilder() { if (mqttConfigBuilder_ != null) { return mqttConfigBuilder_.getMessageOrBuilder(); } else { - return mqttConfig_ == null - ? com.google.cloud.iot.v1.MqttConfig.getDefaultInstance() - : mqttConfig_; + return mqttConfig_ == null ? + com.google.cloud.iot.v1.MqttConfig.getDefaultInstance() : mqttConfig_; } } /** - * - * *
      * The MQTT configuration for this device registry.
      * 
@@ -2431,17 +2168,14 @@ public com.google.cloud.iot.v1.MqttConfigOrBuilder getMqttConfigOrBuilder() { * .google.cloud.iot.v1.MqttConfig mqtt_config = 4; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.iot.v1.MqttConfig, - com.google.cloud.iot.v1.MqttConfig.Builder, - com.google.cloud.iot.v1.MqttConfigOrBuilder> + com.google.cloud.iot.v1.MqttConfig, com.google.cloud.iot.v1.MqttConfig.Builder, com.google.cloud.iot.v1.MqttConfigOrBuilder> getMqttConfigFieldBuilder() { if (mqttConfigBuilder_ == null) { - mqttConfigBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.iot.v1.MqttConfig, - com.google.cloud.iot.v1.MqttConfig.Builder, - com.google.cloud.iot.v1.MqttConfigOrBuilder>( - getMqttConfig(), getParentForChildren(), isClean()); + mqttConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.iot.v1.MqttConfig, com.google.cloud.iot.v1.MqttConfig.Builder, com.google.cloud.iot.v1.MqttConfigOrBuilder>( + getMqttConfig(), + getParentForChildren(), + isClean()); mqttConfig_ = null; } return mqttConfigBuilder_; @@ -2449,47 +2183,34 @@ public com.google.cloud.iot.v1.MqttConfigOrBuilder getMqttConfigOrBuilder() { private com.google.cloud.iot.v1.HttpConfig httpConfig_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.iot.v1.HttpConfig, - com.google.cloud.iot.v1.HttpConfig.Builder, - com.google.cloud.iot.v1.HttpConfigOrBuilder> - httpConfigBuilder_; + com.google.cloud.iot.v1.HttpConfig, com.google.cloud.iot.v1.HttpConfig.Builder, com.google.cloud.iot.v1.HttpConfigOrBuilder> httpConfigBuilder_; /** - * - * *
      * The DeviceService (HTTP) configuration for this device registry.
      * 
* * .google.cloud.iot.v1.HttpConfig http_config = 9; - * * @return Whether the httpConfig field is set. */ public boolean hasHttpConfig() { return httpConfigBuilder_ != null || httpConfig_ != null; } /** - * - * *
      * The DeviceService (HTTP) configuration for this device registry.
      * 
* * .google.cloud.iot.v1.HttpConfig http_config = 9; - * * @return The httpConfig. */ public com.google.cloud.iot.v1.HttpConfig getHttpConfig() { if (httpConfigBuilder_ == null) { - return httpConfig_ == null - ? com.google.cloud.iot.v1.HttpConfig.getDefaultInstance() - : httpConfig_; + return httpConfig_ == null ? com.google.cloud.iot.v1.HttpConfig.getDefaultInstance() : httpConfig_; } else { return httpConfigBuilder_.getMessage(); } } /** - * - * *
      * The DeviceService (HTTP) configuration for this device registry.
      * 
@@ -2510,15 +2231,14 @@ public Builder setHttpConfig(com.google.cloud.iot.v1.HttpConfig value) { return this; } /** - * - * *
      * The DeviceService (HTTP) configuration for this device registry.
      * 
* * .google.cloud.iot.v1.HttpConfig http_config = 9; */ - public Builder setHttpConfig(com.google.cloud.iot.v1.HttpConfig.Builder builderForValue) { + public Builder setHttpConfig( + com.google.cloud.iot.v1.HttpConfig.Builder builderForValue) { if (httpConfigBuilder_ == null) { httpConfig_ = builderForValue.build(); onChanged(); @@ -2529,8 +2249,6 @@ public Builder setHttpConfig(com.google.cloud.iot.v1.HttpConfig.Builder builderF return this; } /** - * - * *
      * The DeviceService (HTTP) configuration for this device registry.
      * 
@@ -2541,9 +2259,7 @@ public Builder mergeHttpConfig(com.google.cloud.iot.v1.HttpConfig value) { if (httpConfigBuilder_ == null) { if (httpConfig_ != null) { httpConfig_ = - com.google.cloud.iot.v1.HttpConfig.newBuilder(httpConfig_) - .mergeFrom(value) - .buildPartial(); + com.google.cloud.iot.v1.HttpConfig.newBuilder(httpConfig_).mergeFrom(value).buildPartial(); } else { httpConfig_ = value; } @@ -2555,8 +2271,6 @@ public Builder mergeHttpConfig(com.google.cloud.iot.v1.HttpConfig value) { return this; } /** - * - * *
      * The DeviceService (HTTP) configuration for this device registry.
      * 
@@ -2575,8 +2289,6 @@ public Builder clearHttpConfig() { return this; } /** - * - * *
      * The DeviceService (HTTP) configuration for this device registry.
      * 
@@ -2584,13 +2296,11 @@ public Builder clearHttpConfig() { * .google.cloud.iot.v1.HttpConfig http_config = 9; */ public com.google.cloud.iot.v1.HttpConfig.Builder getHttpConfigBuilder() { - + onChanged(); return getHttpConfigFieldBuilder().getBuilder(); } /** - * - * *
      * The DeviceService (HTTP) configuration for this device registry.
      * 
@@ -2601,14 +2311,11 @@ public com.google.cloud.iot.v1.HttpConfigOrBuilder getHttpConfigOrBuilder() { if (httpConfigBuilder_ != null) { return httpConfigBuilder_.getMessageOrBuilder(); } else { - return httpConfig_ == null - ? com.google.cloud.iot.v1.HttpConfig.getDefaultInstance() - : httpConfig_; + return httpConfig_ == null ? + com.google.cloud.iot.v1.HttpConfig.getDefaultInstance() : httpConfig_; } } /** - * - * *
      * The DeviceService (HTTP) configuration for this device registry.
      * 
@@ -2616,17 +2323,14 @@ public com.google.cloud.iot.v1.HttpConfigOrBuilder getHttpConfigOrBuilder() { * .google.cloud.iot.v1.HttpConfig http_config = 9; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.iot.v1.HttpConfig, - com.google.cloud.iot.v1.HttpConfig.Builder, - com.google.cloud.iot.v1.HttpConfigOrBuilder> + com.google.cloud.iot.v1.HttpConfig, com.google.cloud.iot.v1.HttpConfig.Builder, com.google.cloud.iot.v1.HttpConfigOrBuilder> getHttpConfigFieldBuilder() { if (httpConfigBuilder_ == null) { - httpConfigBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.iot.v1.HttpConfig, - com.google.cloud.iot.v1.HttpConfig.Builder, - com.google.cloud.iot.v1.HttpConfigOrBuilder>( - getHttpConfig(), getParentForChildren(), isClean()); + httpConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.iot.v1.HttpConfig, com.google.cloud.iot.v1.HttpConfig.Builder, com.google.cloud.iot.v1.HttpConfigOrBuilder>( + getHttpConfig(), + getParentForChildren(), + isClean()); httpConfig_ = null; } return httpConfigBuilder_; @@ -2634,8 +2338,6 @@ public com.google.cloud.iot.v1.HttpConfigOrBuilder getHttpConfigOrBuilder() { private int logLevel_ = 0; /** - * - * *
      * **Beta Feature**
      * The default logging verbosity for activity from devices in this registry.
@@ -2643,16 +2345,12 @@ public com.google.cloud.iot.v1.HttpConfigOrBuilder getHttpConfigOrBuilder() {
      * 
* * .google.cloud.iot.v1.LogLevel log_level = 11; - * * @return The enum numeric value on the wire for logLevel. */ - @java.lang.Override - public int getLogLevelValue() { + @java.lang.Override public int getLogLevelValue() { return logLevel_; } /** - * - * *
      * **Beta Feature**
      * The default logging verbosity for activity from devices in this registry.
@@ -2660,19 +2358,16 @@ public int getLogLevelValue() {
      * 
* * .google.cloud.iot.v1.LogLevel log_level = 11; - * * @param value The enum numeric value on the wire for logLevel to set. * @return This builder for chaining. */ public Builder setLogLevelValue(int value) { - + logLevel_ = value; onChanged(); return this; } /** - * - * *
      * **Beta Feature**
      * The default logging verbosity for activity from devices in this registry.
@@ -2680,7 +2375,6 @@ public Builder setLogLevelValue(int value) {
      * 
* * .google.cloud.iot.v1.LogLevel log_level = 11; - * * @return The logLevel. */ @java.lang.Override @@ -2690,8 +2384,6 @@ public com.google.cloud.iot.v1.LogLevel getLogLevel() { return result == null ? com.google.cloud.iot.v1.LogLevel.UNRECOGNIZED : result; } /** - * - * *
      * **Beta Feature**
      * The default logging verbosity for activity from devices in this registry.
@@ -2699,7 +2391,6 @@ public com.google.cloud.iot.v1.LogLevel getLogLevel() {
      * 
* * .google.cloud.iot.v1.LogLevel log_level = 11; - * * @param value The logLevel to set. * @return This builder for chaining. */ @@ -2707,14 +2398,12 @@ public Builder setLogLevel(com.google.cloud.iot.v1.LogLevel value) { if (value == null) { throw new NullPointerException(); } - + logLevel_ = value.getNumber(); onChanged(); return this; } /** - * - * *
      * **Beta Feature**
      * The default logging verbosity for activity from devices in this registry.
@@ -2722,36 +2411,28 @@ public Builder setLogLevel(com.google.cloud.iot.v1.LogLevel value) {
      * 
* * .google.cloud.iot.v1.LogLevel log_level = 11; - * * @return This builder for chaining. */ public Builder clearLogLevel() { - + logLevel_ = 0; onChanged(); return this; } private java.util.List credentials_ = - java.util.Collections.emptyList(); - + java.util.Collections.emptyList(); private void ensureCredentialsIsMutable() { if (!((bitField0_ & 0x00000002) != 0)) { - credentials_ = - new java.util.ArrayList(credentials_); + credentials_ = new java.util.ArrayList(credentials_); bitField0_ |= 0x00000002; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.iot.v1.RegistryCredential, - com.google.cloud.iot.v1.RegistryCredential.Builder, - com.google.cloud.iot.v1.RegistryCredentialOrBuilder> - credentialsBuilder_; + com.google.cloud.iot.v1.RegistryCredential, com.google.cloud.iot.v1.RegistryCredential.Builder, com.google.cloud.iot.v1.RegistryCredentialOrBuilder> credentialsBuilder_; /** - * - * *
      * The credentials used to verify the device credentials. No more than 10
      * credentials can be bound to a single registry at a time. The verification
@@ -2775,8 +2456,6 @@ public java.util.List getCredentials
       }
     }
     /**
-     *
-     *
      * 
      * The credentials used to verify the device credentials. No more than 10
      * credentials can be bound to a single registry at a time. The verification
@@ -2800,8 +2479,6 @@ public int getCredentialsCount() {
       }
     }
     /**
-     *
-     *
      * 
      * The credentials used to verify the device credentials. No more than 10
      * credentials can be bound to a single registry at a time. The verification
@@ -2825,8 +2502,6 @@ public com.google.cloud.iot.v1.RegistryCredential getCredentials(int index) {
       }
     }
     /**
-     *
-     *
      * 
      * The credentials used to verify the device credentials. No more than 10
      * credentials can be bound to a single registry at a time. The verification
@@ -2842,7 +2517,8 @@ public com.google.cloud.iot.v1.RegistryCredential getCredentials(int index) {
      *
      * repeated .google.cloud.iot.v1.RegistryCredential credentials = 8;
      */
-    public Builder setCredentials(int index, com.google.cloud.iot.v1.RegistryCredential value) {
+    public Builder setCredentials(
+        int index, com.google.cloud.iot.v1.RegistryCredential value) {
       if (credentialsBuilder_ == null) {
         if (value == null) {
           throw new NullPointerException();
@@ -2856,8 +2532,6 @@ public Builder setCredentials(int index, com.google.cloud.iot.v1.RegistryCredent
       return this;
     }
     /**
-     *
-     *
      * 
      * The credentials used to verify the device credentials. No more than 10
      * credentials can be bound to a single registry at a time. The verification
@@ -2885,8 +2559,6 @@ public Builder setCredentials(
       return this;
     }
     /**
-     *
-     *
      * 
      * The credentials used to verify the device credentials. No more than 10
      * credentials can be bound to a single registry at a time. The verification
@@ -2916,8 +2588,6 @@ public Builder addCredentials(com.google.cloud.iot.v1.RegistryCredential value)
       return this;
     }
     /**
-     *
-     *
      * 
      * The credentials used to verify the device credentials. No more than 10
      * credentials can be bound to a single registry at a time. The verification
@@ -2933,7 +2603,8 @@ public Builder addCredentials(com.google.cloud.iot.v1.RegistryCredential value)
      *
      * repeated .google.cloud.iot.v1.RegistryCredential credentials = 8;
      */
-    public Builder addCredentials(int index, com.google.cloud.iot.v1.RegistryCredential value) {
+    public Builder addCredentials(
+        int index, com.google.cloud.iot.v1.RegistryCredential value) {
       if (credentialsBuilder_ == null) {
         if (value == null) {
           throw new NullPointerException();
@@ -2947,8 +2618,6 @@ public Builder addCredentials(int index, com.google.cloud.iot.v1.RegistryCredent
       return this;
     }
     /**
-     *
-     *
      * 
      * The credentials used to verify the device credentials. No more than 10
      * credentials can be bound to a single registry at a time. The verification
@@ -2976,8 +2645,6 @@ public Builder addCredentials(
       return this;
     }
     /**
-     *
-     *
      * 
      * The credentials used to verify the device credentials. No more than 10
      * credentials can be bound to a single registry at a time. The verification
@@ -3005,8 +2672,6 @@ public Builder addCredentials(
       return this;
     }
     /**
-     *
-     *
      * 
      * The credentials used to verify the device credentials. No more than 10
      * credentials can be bound to a single registry at a time. The verification
@@ -3026,7 +2691,8 @@ public Builder addAllCredentials(
         java.lang.Iterable values) {
       if (credentialsBuilder_ == null) {
         ensureCredentialsIsMutable();
-        com.google.protobuf.AbstractMessageLite.Builder.addAll(values, credentials_);
+        com.google.protobuf.AbstractMessageLite.Builder.addAll(
+            values, credentials_);
         onChanged();
       } else {
         credentialsBuilder_.addAllMessages(values);
@@ -3034,8 +2700,6 @@ public Builder addAllCredentials(
       return this;
     }
     /**
-     *
-     *
      * 
      * The credentials used to verify the device credentials. No more than 10
      * credentials can be bound to a single registry at a time. The verification
@@ -3062,8 +2726,6 @@ public Builder clearCredentials() {
       return this;
     }
     /**
-     *
-     *
      * 
      * The credentials used to verify the device credentials. No more than 10
      * credentials can be bound to a single registry at a time. The verification
@@ -3090,8 +2752,6 @@ public Builder removeCredentials(int index) {
       return this;
     }
     /**
-     *
-     *
      * 
      * The credentials used to verify the device credentials. No more than 10
      * credentials can be bound to a single registry at a time. The verification
@@ -3107,12 +2767,11 @@ public Builder removeCredentials(int index) {
      *
      * repeated .google.cloud.iot.v1.RegistryCredential credentials = 8;
      */
-    public com.google.cloud.iot.v1.RegistryCredential.Builder getCredentialsBuilder(int index) {
+    public com.google.cloud.iot.v1.RegistryCredential.Builder getCredentialsBuilder(
+        int index) {
       return getCredentialsFieldBuilder().getBuilder(index);
     }
     /**
-     *
-     *
      * 
      * The credentials used to verify the device credentials. No more than 10
      * credentials can be bound to a single registry at a time. The verification
@@ -3128,16 +2787,14 @@ public com.google.cloud.iot.v1.RegistryCredential.Builder getCredentialsBuilder(
      *
      * repeated .google.cloud.iot.v1.RegistryCredential credentials = 8;
      */
-    public com.google.cloud.iot.v1.RegistryCredentialOrBuilder getCredentialsOrBuilder(int index) {
+    public com.google.cloud.iot.v1.RegistryCredentialOrBuilder getCredentialsOrBuilder(
+        int index) {
       if (credentialsBuilder_ == null) {
-        return credentials_.get(index);
-      } else {
+        return credentials_.get(index);  } else {
         return credentialsBuilder_.getMessageOrBuilder(index);
       }
     }
     /**
-     *
-     *
      * 
      * The credentials used to verify the device credentials. No more than 10
      * credentials can be bound to a single registry at a time. The verification
@@ -3153,8 +2810,8 @@ public com.google.cloud.iot.v1.RegistryCredentialOrBuilder getCredentialsOrBuild
      *
      * repeated .google.cloud.iot.v1.RegistryCredential credentials = 8;
      */
-    public java.util.List
-        getCredentialsOrBuilderList() {
+    public java.util.List 
+         getCredentialsOrBuilderList() {
       if (credentialsBuilder_ != null) {
         return credentialsBuilder_.getMessageOrBuilderList();
       } else {
@@ -3162,8 +2819,6 @@ public com.google.cloud.iot.v1.RegistryCredentialOrBuilder getCredentialsOrBuild
       }
     }
     /**
-     *
-     *
      * 
      * The credentials used to verify the device credentials. No more than 10
      * credentials can be bound to a single registry at a time. The verification
@@ -3180,12 +2835,10 @@ public com.google.cloud.iot.v1.RegistryCredentialOrBuilder getCredentialsOrBuild
      * repeated .google.cloud.iot.v1.RegistryCredential credentials = 8;
      */
     public com.google.cloud.iot.v1.RegistryCredential.Builder addCredentialsBuilder() {
-      return getCredentialsFieldBuilder()
-          .addBuilder(com.google.cloud.iot.v1.RegistryCredential.getDefaultInstance());
+      return getCredentialsFieldBuilder().addBuilder(
+          com.google.cloud.iot.v1.RegistryCredential.getDefaultInstance());
     }
     /**
-     *
-     *
      * 
      * The credentials used to verify the device credentials. No more than 10
      * credentials can be bound to a single registry at a time. The verification
@@ -3201,13 +2854,12 @@ public com.google.cloud.iot.v1.RegistryCredential.Builder addCredentialsBuilder(
      *
      * repeated .google.cloud.iot.v1.RegistryCredential credentials = 8;
      */
-    public com.google.cloud.iot.v1.RegistryCredential.Builder addCredentialsBuilder(int index) {
-      return getCredentialsFieldBuilder()
-          .addBuilder(index, com.google.cloud.iot.v1.RegistryCredential.getDefaultInstance());
+    public com.google.cloud.iot.v1.RegistryCredential.Builder addCredentialsBuilder(
+        int index) {
+      return getCredentialsFieldBuilder().addBuilder(
+          index, com.google.cloud.iot.v1.RegistryCredential.getDefaultInstance());
     }
     /**
-     *
-     *
      * 
      * The credentials used to verify the device credentials. No more than 10
      * credentials can be bound to a single registry at a time. The verification
@@ -3223,30 +2875,27 @@ public com.google.cloud.iot.v1.RegistryCredential.Builder addCredentialsBuilder(
      *
      * repeated .google.cloud.iot.v1.RegistryCredential credentials = 8;
      */
-    public java.util.List
-        getCredentialsBuilderList() {
+    public java.util.List 
+         getCredentialsBuilderList() {
       return getCredentialsFieldBuilder().getBuilderList();
     }
-
     private com.google.protobuf.RepeatedFieldBuilderV3<
-            com.google.cloud.iot.v1.RegistryCredential,
-            com.google.cloud.iot.v1.RegistryCredential.Builder,
-            com.google.cloud.iot.v1.RegistryCredentialOrBuilder>
+        com.google.cloud.iot.v1.RegistryCredential, com.google.cloud.iot.v1.RegistryCredential.Builder, com.google.cloud.iot.v1.RegistryCredentialOrBuilder> 
         getCredentialsFieldBuilder() {
       if (credentialsBuilder_ == null) {
-        credentialsBuilder_ =
-            new com.google.protobuf.RepeatedFieldBuilderV3<
-                com.google.cloud.iot.v1.RegistryCredential,
-                com.google.cloud.iot.v1.RegistryCredential.Builder,
-                com.google.cloud.iot.v1.RegistryCredentialOrBuilder>(
-                credentials_, ((bitField0_ & 0x00000002) != 0), getParentForChildren(), isClean());
+        credentialsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
+            com.google.cloud.iot.v1.RegistryCredential, com.google.cloud.iot.v1.RegistryCredential.Builder, com.google.cloud.iot.v1.RegistryCredentialOrBuilder>(
+                credentials_,
+                ((bitField0_ & 0x00000002) != 0),
+                getParentForChildren(),
+                isClean());
         credentials_ = null;
       }
       return credentialsBuilder_;
     }
-
     @java.lang.Override
-    public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) {
+    public final Builder setUnknownFields(
+        final com.google.protobuf.UnknownFieldSet unknownFields) {
       return super.setUnknownFields(unknownFields);
     }
 
@@ -3256,12 +2905,12 @@ public final Builder mergeUnknownFields(
       return super.mergeUnknownFields(unknownFields);
     }
 
+
     // @@protoc_insertion_point(builder_scope:google.cloud.iot.v1.DeviceRegistry)
   }
 
   // @@protoc_insertion_point(class_scope:google.cloud.iot.v1.DeviceRegistry)
   private static final com.google.cloud.iot.v1.DeviceRegistry DEFAULT_INSTANCE;
-
   static {
     DEFAULT_INSTANCE = new com.google.cloud.iot.v1.DeviceRegistry();
   }
@@ -3270,16 +2919,16 @@ public static com.google.cloud.iot.v1.DeviceRegistry getDefaultInstance() {
     return DEFAULT_INSTANCE;
   }
 
-  private static final com.google.protobuf.Parser PARSER =
-      new com.google.protobuf.AbstractParser() {
-        @java.lang.Override
-        public DeviceRegistry parsePartialFrom(
-            com.google.protobuf.CodedInputStream input,
-            com.google.protobuf.ExtensionRegistryLite extensionRegistry)
-            throws com.google.protobuf.InvalidProtocolBufferException {
-          return new DeviceRegistry(input, extensionRegistry);
-        }
-      };
+  private static final com.google.protobuf.Parser
+      PARSER = new com.google.protobuf.AbstractParser() {
+    @java.lang.Override
+    public DeviceRegistry parsePartialFrom(
+        com.google.protobuf.CodedInputStream input,
+        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+        throws com.google.protobuf.InvalidProtocolBufferException {
+      return new DeviceRegistry(input, extensionRegistry);
+    }
+  };
 
   public static com.google.protobuf.Parser parser() {
     return PARSER;
@@ -3294,4 +2943,6 @@ public com.google.protobuf.Parser getParserForType() {
   public com.google.cloud.iot.v1.DeviceRegistry getDefaultInstanceForType() {
     return DEFAULT_INSTANCE;
   }
+
 }
+
diff --git a/proto-google-cloud-iot-v1/src/main/java/com/google/cloud/iot/v1/DeviceRegistryOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-iot-v1/src/main/java/com/google/cloud/iot/v1/DeviceRegistryOrBuilder.java
similarity index 90%
rename from proto-google-cloud-iot-v1/src/main/java/com/google/cloud/iot/v1/DeviceRegistryOrBuilder.java
rename to owl-bot-staging/v1/proto-google-cloud-iot-v1/src/main/java/com/google/cloud/iot/v1/DeviceRegistryOrBuilder.java
index 21b4b684..a4108651 100644
--- a/proto-google-cloud-iot-v1/src/main/java/com/google/cloud/iot/v1/DeviceRegistryOrBuilder.java
+++ b/owl-bot-staging/v1/proto-google-cloud-iot-v1/src/main/java/com/google/cloud/iot/v1/DeviceRegistryOrBuilder.java
@@ -1,83 +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/iot/v1/resources.proto
 
 package com.google.cloud.iot.v1;
 
-public interface DeviceRegistryOrBuilder
-    extends
+public interface DeviceRegistryOrBuilder extends
     // @@protoc_insertion_point(interface_extends:google.cloud.iot.v1.DeviceRegistry)
     com.google.protobuf.MessageOrBuilder {
 
   /**
-   *
-   *
    * 
    * The identifier of this device registry. For example, `myRegistry`.
    * 
* * string id = 1; - * * @return The id. */ java.lang.String getId(); /** - * - * *
    * The identifier of this device registry. For example, `myRegistry`.
    * 
* * string id = 1; - * * @return The bytes for id. */ - com.google.protobuf.ByteString getIdBytes(); + com.google.protobuf.ByteString + getIdBytes(); /** - * - * *
    * The resource path name. For example,
    * `projects/example-project/locations/us-central1/registries/my-registry`.
    * 
* * string name = 2; - * * @return The name. */ java.lang.String getName(); /** - * - * *
    * The resource path name. For example,
    * `projects/example-project/locations/us-central1/registries/my-registry`.
    * 
* * string name = 2; - * * @return The bytes for name. */ - com.google.protobuf.ByteString getNameBytes(); + com.google.protobuf.ByteString + getNameBytes(); /** - * - * *
    * The configuration for notification of telemetry events received from the
    * device. All telemetry events that were successfully published by the
@@ -90,13 +62,11 @@ public interface DeviceRegistryOrBuilder
    * configurations may be provided.
    * 
* - * repeated .google.cloud.iot.v1.EventNotificationConfig event_notification_configs = 10; - * + * repeated .google.cloud.iot.v1.EventNotificationConfig event_notification_configs = 10; */ - java.util.List getEventNotificationConfigsList(); + java.util.List + getEventNotificationConfigsList(); /** - * - * *
    * The configuration for notification of telemetry events received from the
    * device. All telemetry events that were successfully published by the
@@ -109,13 +79,10 @@ public interface DeviceRegistryOrBuilder
    * configurations may be provided.
    * 
* - * repeated .google.cloud.iot.v1.EventNotificationConfig event_notification_configs = 10; - * + * repeated .google.cloud.iot.v1.EventNotificationConfig event_notification_configs = 10; */ com.google.cloud.iot.v1.EventNotificationConfig getEventNotificationConfigs(int index); /** - * - * *
    * The configuration for notification of telemetry events received from the
    * device. All telemetry events that were successfully published by the
@@ -128,13 +95,10 @@ public interface DeviceRegistryOrBuilder
    * configurations may be provided.
    * 
* - * repeated .google.cloud.iot.v1.EventNotificationConfig event_notification_configs = 10; - * + * repeated .google.cloud.iot.v1.EventNotificationConfig event_notification_configs = 10; */ int getEventNotificationConfigsCount(); /** - * - * *
    * The configuration for notification of telemetry events received from the
    * device. All telemetry events that were successfully published by the
@@ -147,14 +111,11 @@ public interface DeviceRegistryOrBuilder
    * configurations may be provided.
    * 
* - * repeated .google.cloud.iot.v1.EventNotificationConfig event_notification_configs = 10; - * + * repeated .google.cloud.iot.v1.EventNotificationConfig event_notification_configs = 10; */ - java.util.List + java.util.List getEventNotificationConfigsOrBuilderList(); /** - * - * *
    * The configuration for notification of telemetry events received from the
    * device. All telemetry events that were successfully published by the
@@ -167,15 +128,12 @@ public interface DeviceRegistryOrBuilder
    * configurations may be provided.
    * 
* - * repeated .google.cloud.iot.v1.EventNotificationConfig event_notification_configs = 10; - * + * repeated .google.cloud.iot.v1.EventNotificationConfig event_notification_configs = 10; */ com.google.cloud.iot.v1.EventNotificationConfigOrBuilder getEventNotificationConfigsOrBuilder( int index); /** - * - * *
    * The configuration for notification of new states received from the device.
    * State updates are guaranteed to be stored in the state history, but
@@ -186,13 +144,10 @@ com.google.cloud.iot.v1.EventNotificationConfigOrBuilder getEventNotificationCon
    * 
* * .google.cloud.iot.v1.StateNotificationConfig state_notification_config = 7; - * * @return Whether the stateNotificationConfig field is set. */ boolean hasStateNotificationConfig(); /** - * - * *
    * The configuration for notification of new states received from the device.
    * State updates are guaranteed to be stored in the state history, but
@@ -203,13 +158,10 @@ com.google.cloud.iot.v1.EventNotificationConfigOrBuilder getEventNotificationCon
    * 
* * .google.cloud.iot.v1.StateNotificationConfig state_notification_config = 7; - * * @return The stateNotificationConfig. */ com.google.cloud.iot.v1.StateNotificationConfig getStateNotificationConfig(); /** - * - * *
    * The configuration for notification of new states received from the device.
    * State updates are guaranteed to be stored in the state history, but
@@ -224,32 +176,24 @@ com.google.cloud.iot.v1.EventNotificationConfigOrBuilder getEventNotificationCon
   com.google.cloud.iot.v1.StateNotificationConfigOrBuilder getStateNotificationConfigOrBuilder();
 
   /**
-   *
-   *
    * 
    * The MQTT configuration for this device registry.
    * 
* * .google.cloud.iot.v1.MqttConfig mqtt_config = 4; - * * @return Whether the mqttConfig field is set. */ boolean hasMqttConfig(); /** - * - * *
    * The MQTT configuration for this device registry.
    * 
* * .google.cloud.iot.v1.MqttConfig mqtt_config = 4; - * * @return The mqttConfig. */ com.google.cloud.iot.v1.MqttConfig getMqttConfig(); /** - * - * *
    * The MQTT configuration for this device registry.
    * 
@@ -259,32 +203,24 @@ com.google.cloud.iot.v1.EventNotificationConfigOrBuilder getEventNotificationCon com.google.cloud.iot.v1.MqttConfigOrBuilder getMqttConfigOrBuilder(); /** - * - * *
    * The DeviceService (HTTP) configuration for this device registry.
    * 
* * .google.cloud.iot.v1.HttpConfig http_config = 9; - * * @return Whether the httpConfig field is set. */ boolean hasHttpConfig(); /** - * - * *
    * The DeviceService (HTTP) configuration for this device registry.
    * 
* * .google.cloud.iot.v1.HttpConfig http_config = 9; - * * @return The httpConfig. */ com.google.cloud.iot.v1.HttpConfig getHttpConfig(); /** - * - * *
    * The DeviceService (HTTP) configuration for this device registry.
    * 
@@ -294,8 +230,6 @@ com.google.cloud.iot.v1.EventNotificationConfigOrBuilder getEventNotificationCon com.google.cloud.iot.v1.HttpConfigOrBuilder getHttpConfigOrBuilder(); /** - * - * *
    * **Beta Feature**
    * The default logging verbosity for activity from devices in this registry.
@@ -303,13 +237,10 @@ com.google.cloud.iot.v1.EventNotificationConfigOrBuilder getEventNotificationCon
    * 
* * .google.cloud.iot.v1.LogLevel log_level = 11; - * * @return The enum numeric value on the wire for logLevel. */ int getLogLevelValue(); /** - * - * *
    * **Beta Feature**
    * The default logging verbosity for activity from devices in this registry.
@@ -317,14 +248,11 @@ com.google.cloud.iot.v1.EventNotificationConfigOrBuilder getEventNotificationCon
    * 
* * .google.cloud.iot.v1.LogLevel log_level = 11; - * * @return The logLevel. */ com.google.cloud.iot.v1.LogLevel getLogLevel(); /** - * - * *
    * The credentials used to verify the device credentials. No more than 10
    * credentials can be bound to a single registry at a time. The verification
@@ -340,10 +268,9 @@ com.google.cloud.iot.v1.EventNotificationConfigOrBuilder getEventNotificationCon
    *
    * repeated .google.cloud.iot.v1.RegistryCredential credentials = 8;
    */
-  java.util.List getCredentialsList();
+  java.util.List 
+      getCredentialsList();
   /**
-   *
-   *
    * 
    * The credentials used to verify the device credentials. No more than 10
    * credentials can be bound to a single registry at a time. The verification
@@ -361,8 +288,6 @@ com.google.cloud.iot.v1.EventNotificationConfigOrBuilder getEventNotificationCon
    */
   com.google.cloud.iot.v1.RegistryCredential getCredentials(int index);
   /**
-   *
-   *
    * 
    * The credentials used to verify the device credentials. No more than 10
    * credentials can be bound to a single registry at a time. The verification
@@ -380,8 +305,6 @@ com.google.cloud.iot.v1.EventNotificationConfigOrBuilder getEventNotificationCon
    */
   int getCredentialsCount();
   /**
-   *
-   *
    * 
    * The credentials used to verify the device credentials. No more than 10
    * credentials can be bound to a single registry at a time. The verification
@@ -397,11 +320,9 @@ com.google.cloud.iot.v1.EventNotificationConfigOrBuilder getEventNotificationCon
    *
    * repeated .google.cloud.iot.v1.RegistryCredential credentials = 8;
    */
-  java.util.List
+  java.util.List 
       getCredentialsOrBuilderList();
   /**
-   *
-   *
    * 
    * The credentials used to verify the device credentials. No more than 10
    * credentials can be bound to a single registry at a time. The verification
@@ -417,5 +338,6 @@ com.google.cloud.iot.v1.EventNotificationConfigOrBuilder getEventNotificationCon
    *
    * repeated .google.cloud.iot.v1.RegistryCredential credentials = 8;
    */
-  com.google.cloud.iot.v1.RegistryCredentialOrBuilder getCredentialsOrBuilder(int index);
+  com.google.cloud.iot.v1.RegistryCredentialOrBuilder getCredentialsOrBuilder(
+      int index);
 }
diff --git a/proto-google-cloud-iot-v1/src/main/java/com/google/cloud/iot/v1/DeviceState.java b/owl-bot-staging/v1/proto-google-cloud-iot-v1/src/main/java/com/google/cloud/iot/v1/DeviceState.java
similarity index 71%
rename from proto-google-cloud-iot-v1/src/main/java/com/google/cloud/iot/v1/DeviceState.java
rename to owl-bot-staging/v1/proto-google-cloud-iot-v1/src/main/java/com/google/cloud/iot/v1/DeviceState.java
index 5614b4bd..5c2a5074 100644
--- a/proto-google-cloud-iot-v1/src/main/java/com/google/cloud/iot/v1/DeviceState.java
+++ b/owl-bot-staging/v1/proto-google-cloud-iot-v1/src/main/java/com/google/cloud/iot/v1/DeviceState.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/iot/v1/resources.proto
 
 package com.google.cloud.iot.v1;
 
 /**
- *
- *
  * 
  * The device state, as reported by the device.
  * 
* * Protobuf type {@code google.cloud.iot.v1.DeviceState} */ -public final class DeviceState extends com.google.protobuf.GeneratedMessageV3 - implements +public final class DeviceState extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.iot.v1.DeviceState) DeviceStateOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use DeviceState.newBuilder() to construct. private DeviceState(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private DeviceState() { binaryData_ = com.google.protobuf.ByteString.EMPTY; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new DeviceState(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private DeviceState( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -70,33 +53,31 @@ private DeviceState( case 0: done = true; break; - case 10: - { - 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 10: { + com.google.protobuf.Timestamp.Builder subBuilder = null; + if (updateTime_ != null) { + subBuilder = updateTime_.toBuilder(); } - case 18: - { - binaryData_ = input.readBytes(); - break; + updateTime_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(updateTime_); + updateTime_ = subBuilder.buildPartial(); } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + + break; + } + case 18: { + + binaryData_ = input.readBytes(); + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -104,40 +85,35 @@ private DeviceState( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.iot.v1.ResourcesProto - .internal_static_google_cloud_iot_v1_DeviceState_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.iot.v1.ResourcesProto.internal_static_google_cloud_iot_v1_DeviceState_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.iot.v1.ResourcesProto - .internal_static_google_cloud_iot_v1_DeviceState_fieldAccessorTable + return com.google.cloud.iot.v1.ResourcesProto.internal_static_google_cloud_iot_v1_DeviceState_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.iot.v1.DeviceState.class, - com.google.cloud.iot.v1.DeviceState.Builder.class); + com.google.cloud.iot.v1.DeviceState.class, com.google.cloud.iot.v1.DeviceState.Builder.class); } public static final int UPDATE_TIME_FIELD_NUMBER = 1; private com.google.protobuf.Timestamp updateTime_; /** - * - * *
    * [Output only] The time at which this state version was updated in Cloud
    * IoT Core.
    * 
* * .google.protobuf.Timestamp update_time = 1; - * * @return Whether the updateTime field is set. */ @java.lang.Override @@ -145,15 +121,12 @@ public boolean hasUpdateTime() { return updateTime_ != null; } /** - * - * *
    * [Output only] The time at which this state version was updated in Cloud
    * IoT Core.
    * 
* * .google.protobuf.Timestamp update_time = 1; - * * @return The updateTime. */ @java.lang.Override @@ -161,8 +134,6 @@ public com.google.protobuf.Timestamp getUpdateTime() { return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; } /** - * - * *
    * [Output only] The time at which this state version was updated in Cloud
    * IoT Core.
@@ -178,14 +149,11 @@ public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() {
   public static final int BINARY_DATA_FIELD_NUMBER = 2;
   private com.google.protobuf.ByteString binaryData_;
   /**
-   *
-   *
    * 
    * The device state data.
    * 
* * bytes binary_data = 2; - * * @return The binaryData. */ @java.lang.Override @@ -194,7 +162,6 @@ public com.google.protobuf.ByteString getBinaryData() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -206,7 +173,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 (updateTime_ != null) { output.writeMessage(1, getUpdateTime()); } @@ -223,10 +191,12 @@ public int getSerializedSize() { size = 0; if (updateTime_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getUpdateTime()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getUpdateTime()); } if (!binaryData_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream.computeBytesSize(2, binaryData_); + size += com.google.protobuf.CodedOutputStream + .computeBytesSize(2, binaryData_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -236,7 +206,7 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.iot.v1.DeviceState)) { return super.equals(obj); @@ -245,9 +215,11 @@ public boolean equals(final java.lang.Object obj) { if (hasUpdateTime() != other.hasUpdateTime()) return false; if (hasUpdateTime()) { - if (!getUpdateTime().equals(other.getUpdateTime())) return false; + if (!getUpdateTime() + .equals(other.getUpdateTime())) return false; } - if (!getBinaryData().equals(other.getBinaryData())) return false; + if (!getBinaryData() + .equals(other.getBinaryData())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -270,126 +242,118 @@ public int hashCode() { return hash; } - public static com.google.cloud.iot.v1.DeviceState parseFrom(java.nio.ByteBuffer data) + public static com.google.cloud.iot.v1.DeviceState parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.iot.v1.DeviceState parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.iot.v1.DeviceState parseFrom(com.google.protobuf.ByteString data) + public static com.google.cloud.iot.v1.DeviceState parseFrom( + com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.iot.v1.DeviceState parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.iot.v1.DeviceState parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.iot.v1.DeviceState parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.iot.v1.DeviceState 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.iot.v1.DeviceState parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.iot.v1.DeviceState 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.iot.v1.DeviceState parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.iot.v1.DeviceState parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.iot.v1.DeviceState parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.iot.v1.DeviceState prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected 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 device state, as reported by the device.
    * 
* * Protobuf type {@code google.cloud.iot.v1.DeviceState} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.iot.v1.DeviceState) com.google.cloud.iot.v1.DeviceStateOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.iot.v1.ResourcesProto - .internal_static_google_cloud_iot_v1_DeviceState_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.iot.v1.ResourcesProto.internal_static_google_cloud_iot_v1_DeviceState_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.iot.v1.ResourcesProto - .internal_static_google_cloud_iot_v1_DeviceState_fieldAccessorTable + return com.google.cloud.iot.v1.ResourcesProto.internal_static_google_cloud_iot_v1_DeviceState_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.iot.v1.DeviceState.class, - com.google.cloud.iot.v1.DeviceState.Builder.class); + com.google.cloud.iot.v1.DeviceState.class, com.google.cloud.iot.v1.DeviceState.Builder.class); } // Construct using com.google.cloud.iot.v1.DeviceState.newBuilder() @@ -397,15 +361,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(); @@ -421,9 +386,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.iot.v1.ResourcesProto - .internal_static_google_cloud_iot_v1_DeviceState_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.iot.v1.ResourcesProto.internal_static_google_cloud_iot_v1_DeviceState_descriptor; } @java.lang.Override @@ -457,39 +422,38 @@ public com.google.cloud.iot.v1.DeviceState buildPartial() { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.iot.v1.DeviceState) { - return mergeFrom((com.google.cloud.iot.v1.DeviceState) other); + return mergeFrom((com.google.cloud.iot.v1.DeviceState)other); } else { super.mergeFrom(other); return this; @@ -535,49 +499,36 @@ public Builder mergeFrom( 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 at which this state version was updated in Cloud
      * IoT Core.
      * 
* * .google.protobuf.Timestamp update_time = 1; - * * @return Whether the updateTime field is set. */ public boolean hasUpdateTime() { return updateTimeBuilder_ != null || updateTime_ != null; } /** - * - * *
      * [Output only] The time at which this state version was updated in Cloud
      * IoT Core.
      * 
* * .google.protobuf.Timestamp update_time = 1; - * * @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 at which this state version was updated in Cloud
      * IoT Core.
@@ -599,8 +550,6 @@ public Builder setUpdateTime(com.google.protobuf.Timestamp value) {
       return this;
     }
     /**
-     *
-     *
      * 
      * [Output only] The time at which this state version was updated in Cloud
      * IoT Core.
@@ -608,7 +557,8 @@ public Builder setUpdateTime(com.google.protobuf.Timestamp value) {
      *
      * .google.protobuf.Timestamp update_time = 1;
      */
-    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();
@@ -619,8 +569,6 @@ public Builder setUpdateTime(com.google.protobuf.Timestamp.Builder builderForVal
       return this;
     }
     /**
-     *
-     *
      * 
      * [Output only] The time at which this state version was updated in Cloud
      * IoT Core.
@@ -632,7 +580,7 @@ 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;
         }
@@ -644,8 +592,6 @@ public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) {
       return this;
     }
     /**
-     *
-     *
      * 
      * [Output only] The time at which this state version was updated in Cloud
      * IoT Core.
@@ -665,8 +611,6 @@ public Builder clearUpdateTime() {
       return this;
     }
     /**
-     *
-     *
      * 
      * [Output only] The time at which this state version was updated in Cloud
      * IoT Core.
@@ -675,13 +619,11 @@ public Builder clearUpdateTime() {
      * .google.protobuf.Timestamp update_time = 1;
      */
     public com.google.protobuf.Timestamp.Builder getUpdateTimeBuilder() {
-
+      
       onChanged();
       return getUpdateTimeFieldBuilder().getBuilder();
     }
     /**
-     *
-     *
      * 
      * [Output only] The time at which this state version was updated in Cloud
      * IoT Core.
@@ -693,14 +635,11 @@ 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 at which this state version was updated in Cloud
      * IoT Core.
@@ -709,17 +648,14 @@ public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() {
      * .google.protobuf.Timestamp update_time = 1;
      */
     private com.google.protobuf.SingleFieldBuilderV3<
-            com.google.protobuf.Timestamp,
-            com.google.protobuf.Timestamp.Builder,
-            com.google.protobuf.TimestampOrBuilder>
+        com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> 
         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_;
@@ -727,14 +663,11 @@ public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() {
 
     private com.google.protobuf.ByteString binaryData_ = com.google.protobuf.ByteString.EMPTY;
     /**
-     *
-     *
      * 
      * The device state data.
      * 
* * bytes binary_data = 2; - * * @return The binaryData. */ @java.lang.Override @@ -742,46 +675,40 @@ public com.google.protobuf.ByteString getBinaryData() { return binaryData_; } /** - * - * *
      * The device state data.
      * 
* * bytes binary_data = 2; - * * @param value The binaryData to set. * @return This builder for chaining. */ public Builder setBinaryData(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + binaryData_ = value; onChanged(); return this; } /** - * - * *
      * The device state data.
      * 
* * bytes binary_data = 2; - * * @return This builder for chaining. */ public Builder clearBinaryData() { - + binaryData_ = getDefaultInstance().getBinaryData(); onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -791,12 +718,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.iot.v1.DeviceState) } // @@protoc_insertion_point(class_scope:google.cloud.iot.v1.DeviceState) private static final com.google.cloud.iot.v1.DeviceState DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.iot.v1.DeviceState(); } @@ -805,16 +732,16 @@ public static com.google.cloud.iot.v1.DeviceState getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public DeviceState parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new DeviceState(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DeviceState parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new DeviceState(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -829,4 +756,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.iot.v1.DeviceState getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-iot-v1/src/main/java/com/google/cloud/iot/v1/DeviceStateOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-iot-v1/src/main/java/com/google/cloud/iot/v1/DeviceStateOrBuilder.java similarity index 64% rename from proto-google-cloud-iot-v1/src/main/java/com/google/cloud/iot/v1/DeviceStateOrBuilder.java rename to owl-bot-staging/v1/proto-google-cloud-iot-v1/src/main/java/com/google/cloud/iot/v1/DeviceStateOrBuilder.java index e47221c1..4e14c143 100644 --- a/proto-google-cloud-iot-v1/src/main/java/com/google/cloud/iot/v1/DeviceStateOrBuilder.java +++ b/owl-bot-staging/v1/proto-google-cloud-iot-v1/src/main/java/com/google/cloud/iot/v1/DeviceStateOrBuilder.java @@ -1,57 +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/iot/v1/resources.proto package com.google.cloud.iot.v1; -public interface DeviceStateOrBuilder - extends +public interface DeviceStateOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.iot.v1.DeviceState) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * [Output only] The time at which this state version was updated in Cloud
    * IoT Core.
    * 
* * .google.protobuf.Timestamp update_time = 1; - * * @return Whether the updateTime field is set. */ boolean hasUpdateTime(); /** - * - * *
    * [Output only] The time at which this state version was updated in Cloud
    * IoT Core.
    * 
* * .google.protobuf.Timestamp update_time = 1; - * * @return The updateTime. */ com.google.protobuf.Timestamp getUpdateTime(); /** - * - * *
    * [Output only] The time at which this state version was updated in Cloud
    * IoT Core.
@@ -62,14 +38,11 @@ public interface DeviceStateOrBuilder
   com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder();
 
   /**
-   *
-   *
    * 
    * The device state data.
    * 
* * bytes binary_data = 2; - * * @return The binaryData. */ com.google.protobuf.ByteString getBinaryData(); diff --git a/proto-google-cloud-iot-v1/src/main/java/com/google/cloud/iot/v1/EventNotificationConfig.java b/owl-bot-staging/v1/proto-google-cloud-iot-v1/src/main/java/com/google/cloud/iot/v1/EventNotificationConfig.java similarity index 72% rename from proto-google-cloud-iot-v1/src/main/java/com/google/cloud/iot/v1/EventNotificationConfig.java rename to owl-bot-staging/v1/proto-google-cloud-iot-v1/src/main/java/com/google/cloud/iot/v1/EventNotificationConfig.java index d3a66188..640c3ed3 100644 --- a/proto-google-cloud-iot-v1/src/main/java/com/google/cloud/iot/v1/EventNotificationConfig.java +++ b/owl-bot-staging/v1/proto-google-cloud-iot-v1/src/main/java/com/google/cloud/iot/v1/EventNotificationConfig.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/iot/v1/resources.proto package com.google.cloud.iot.v1; /** - * - * *
  * The configuration for forwarding telemetry events.
  * 
* * Protobuf type {@code google.cloud.iot.v1.EventNotificationConfig} */ -public final class EventNotificationConfig extends com.google.protobuf.GeneratedMessageV3 - implements +public final class EventNotificationConfig extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.iot.v1.EventNotificationConfig) EventNotificationConfigOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use EventNotificationConfig.newBuilder() to construct. private EventNotificationConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private EventNotificationConfig() { subfolderMatches_ = ""; pubsubTopicName_ = ""; @@ -44,15 +26,16 @@ private EventNotificationConfig() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new EventNotificationConfig(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private EventNotificationConfig( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -71,27 +54,25 @@ private EventNotificationConfig( case 0: done = true; break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); + case 10: { + java.lang.String s = input.readStringRequireUtf8(); - pubsubTopicName_ = s; - break; - } - case 18: - { - java.lang.String s = input.readStringRequireUtf8(); + pubsubTopicName_ = s; + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); - subfolderMatches_ = s; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + subfolderMatches_ = s; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -99,33 +80,29 @@ private EventNotificationConfig( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.iot.v1.ResourcesProto - .internal_static_google_cloud_iot_v1_EventNotificationConfig_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.iot.v1.ResourcesProto.internal_static_google_cloud_iot_v1_EventNotificationConfig_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.iot.v1.ResourcesProto - .internal_static_google_cloud_iot_v1_EventNotificationConfig_fieldAccessorTable + return com.google.cloud.iot.v1.ResourcesProto.internal_static_google_cloud_iot_v1_EventNotificationConfig_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.iot.v1.EventNotificationConfig.class, - com.google.cloud.iot.v1.EventNotificationConfig.Builder.class); + com.google.cloud.iot.v1.EventNotificationConfig.class, com.google.cloud.iot.v1.EventNotificationConfig.Builder.class); } public static final int SUBFOLDER_MATCHES_FIELD_NUMBER = 2; private volatile java.lang.Object subfolderMatches_; /** - * - * *
    * If the subfolder name matches this string exactly, this configuration will
    * be used. The string must not include the leading '/' character. If empty,
@@ -134,7 +111,6 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
    * 
* * string subfolder_matches = 2; - * * @return The subfolderMatches. */ @java.lang.Override @@ -143,15 +119,14 @@ public java.lang.String getSubfolderMatches() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); subfolderMatches_ = s; return s; } } /** - * - * *
    * If the subfolder name matches this string exactly, this configuration will
    * be used. The string must not include the leading '/' character. If empty,
@@ -160,15 +135,16 @@ public java.lang.String getSubfolderMatches() {
    * 
* * string subfolder_matches = 2; - * * @return The bytes for subfolderMatches. */ @java.lang.Override - public com.google.protobuf.ByteString getSubfolderMatchesBytes() { + public com.google.protobuf.ByteString + getSubfolderMatchesBytes() { java.lang.Object ref = subfolderMatches_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); subfolderMatches_ = b; return b; } else { @@ -179,15 +155,12 @@ public com.google.protobuf.ByteString getSubfolderMatchesBytes() { public static final int PUBSUB_TOPIC_NAME_FIELD_NUMBER = 1; private volatile java.lang.Object pubsubTopicName_; /** - * - * *
    * A Cloud Pub/Sub topic name. For example,
    * `projects/myProject/topics/deviceEvents`.
    * 
* * string pubsub_topic_name = 1; - * * @return The pubsubTopicName. */ @java.lang.Override @@ -196,30 +169,30 @@ public java.lang.String getPubsubTopicName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); pubsubTopicName_ = s; return s; } } /** - * - * *
    * A Cloud Pub/Sub topic name. For example,
    * `projects/myProject/topics/deviceEvents`.
    * 
* * string pubsub_topic_name = 1; - * * @return The bytes for pubsubTopicName. */ @java.lang.Override - public com.google.protobuf.ByteString getPubsubTopicNameBytes() { + public com.google.protobuf.ByteString + getPubsubTopicNameBytes() { java.lang.Object ref = pubsubTopicName_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); pubsubTopicName_ = b; return b; } else { @@ -228,7 +201,6 @@ public com.google.protobuf.ByteString getPubsubTopicNameBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -240,7 +212,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(pubsubTopicName_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, pubsubTopicName_); } @@ -270,16 +243,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.iot.v1.EventNotificationConfig)) { return super.equals(obj); } - com.google.cloud.iot.v1.EventNotificationConfig other = - (com.google.cloud.iot.v1.EventNotificationConfig) obj; + com.google.cloud.iot.v1.EventNotificationConfig other = (com.google.cloud.iot.v1.EventNotificationConfig) obj; - if (!getSubfolderMatches().equals(other.getSubfolderMatches())) return false; - if (!getPubsubTopicName().equals(other.getPubsubTopicName())) return false; + if (!getSubfolderMatches() + .equals(other.getSubfolderMatches())) return false; + if (!getPubsubTopicName() + .equals(other.getPubsubTopicName())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -300,127 +274,118 @@ public int hashCode() { return hash; } - public static com.google.cloud.iot.v1.EventNotificationConfig parseFrom(java.nio.ByteBuffer data) + public static com.google.cloud.iot.v1.EventNotificationConfig parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.iot.v1.EventNotificationConfig parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.iot.v1.EventNotificationConfig parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.iot.v1.EventNotificationConfig parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.iot.v1.EventNotificationConfig parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.iot.v1.EventNotificationConfig parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.iot.v1.EventNotificationConfig 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.iot.v1.EventNotificationConfig parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.iot.v1.EventNotificationConfig parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.iot.v1.EventNotificationConfig parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.iot.v1.EventNotificationConfig parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.iot.v1.EventNotificationConfig parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.iot.v1.EventNotificationConfig parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.iot.v1.EventNotificationConfig prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * The configuration for forwarding telemetry events.
    * 
* * Protobuf type {@code google.cloud.iot.v1.EventNotificationConfig} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.iot.v1.EventNotificationConfig) com.google.cloud.iot.v1.EventNotificationConfigOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.iot.v1.ResourcesProto - .internal_static_google_cloud_iot_v1_EventNotificationConfig_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.iot.v1.ResourcesProto.internal_static_google_cloud_iot_v1_EventNotificationConfig_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.iot.v1.ResourcesProto - .internal_static_google_cloud_iot_v1_EventNotificationConfig_fieldAccessorTable + return com.google.cloud.iot.v1.ResourcesProto.internal_static_google_cloud_iot_v1_EventNotificationConfig_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.iot.v1.EventNotificationConfig.class, - com.google.cloud.iot.v1.EventNotificationConfig.Builder.class); + com.google.cloud.iot.v1.EventNotificationConfig.class, com.google.cloud.iot.v1.EventNotificationConfig.Builder.class); } // Construct using com.google.cloud.iot.v1.EventNotificationConfig.newBuilder() @@ -428,15 +393,16 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -448,9 +414,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.iot.v1.ResourcesProto - .internal_static_google_cloud_iot_v1_EventNotificationConfig_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.iot.v1.ResourcesProto.internal_static_google_cloud_iot_v1_EventNotificationConfig_descriptor; } @java.lang.Override @@ -469,8 +435,7 @@ public com.google.cloud.iot.v1.EventNotificationConfig build() { @java.lang.Override public com.google.cloud.iot.v1.EventNotificationConfig buildPartial() { - com.google.cloud.iot.v1.EventNotificationConfig result = - new com.google.cloud.iot.v1.EventNotificationConfig(this); + com.google.cloud.iot.v1.EventNotificationConfig result = new com.google.cloud.iot.v1.EventNotificationConfig(this); result.subfolderMatches_ = subfolderMatches_; result.pubsubTopicName_ = pubsubTopicName_; onBuilt(); @@ -481,39 +446,38 @@ public com.google.cloud.iot.v1.EventNotificationConfig buildPartial() { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.iot.v1.EventNotificationConfig) { - return mergeFrom((com.google.cloud.iot.v1.EventNotificationConfig) other); + return mergeFrom((com.google.cloud.iot.v1.EventNotificationConfig)other); } else { super.mergeFrom(other); return this; @@ -521,8 +485,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.iot.v1.EventNotificationConfig other) { - if (other == com.google.cloud.iot.v1.EventNotificationConfig.getDefaultInstance()) - return this; + if (other == com.google.cloud.iot.v1.EventNotificationConfig.getDefaultInstance()) return this; if (!other.getSubfolderMatches().isEmpty()) { subfolderMatches_ = other.subfolderMatches_; onChanged(); @@ -562,8 +525,6 @@ public Builder mergeFrom( private java.lang.Object subfolderMatches_ = ""; /** - * - * *
      * If the subfolder name matches this string exactly, this configuration will
      * be used. The string must not include the leading '/' character. If empty,
@@ -572,13 +533,13 @@ public Builder mergeFrom(
      * 
* * string subfolder_matches = 2; - * * @return The subfolderMatches. */ public java.lang.String getSubfolderMatches() { java.lang.Object ref = subfolderMatches_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); subfolderMatches_ = s; return s; @@ -587,8 +548,6 @@ public java.lang.String getSubfolderMatches() { } } /** - * - * *
      * If the subfolder name matches this string exactly, this configuration will
      * be used. The string must not include the leading '/' character. If empty,
@@ -597,14 +556,15 @@ public java.lang.String getSubfolderMatches() {
      * 
* * string subfolder_matches = 2; - * * @return The bytes for subfolderMatches. */ - public com.google.protobuf.ByteString getSubfolderMatchesBytes() { + public com.google.protobuf.ByteString + getSubfolderMatchesBytes() { java.lang.Object ref = subfolderMatches_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); subfolderMatches_ = b; return b; } else { @@ -612,8 +572,6 @@ public com.google.protobuf.ByteString getSubfolderMatchesBytes() { } } /** - * - * *
      * If the subfolder name matches this string exactly, this configuration will
      * be used. The string must not include the leading '/' character. If empty,
@@ -622,22 +580,20 @@ public com.google.protobuf.ByteString getSubfolderMatchesBytes() {
      * 
* * string subfolder_matches = 2; - * * @param value The subfolderMatches to set. * @return This builder for chaining. */ - public Builder setSubfolderMatches(java.lang.String value) { + public Builder setSubfolderMatches( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + subfolderMatches_ = value; onChanged(); return this; } /** - * - * *
      * If the subfolder name matches this string exactly, this configuration will
      * be used. The string must not include the leading '/' character. If empty,
@@ -646,18 +602,15 @@ public Builder setSubfolderMatches(java.lang.String value) {
      * 
* * string subfolder_matches = 2; - * * @return This builder for chaining. */ public Builder clearSubfolderMatches() { - + subfolderMatches_ = getDefaultInstance().getSubfolderMatches(); onChanged(); return this; } /** - * - * *
      * If the subfolder name matches this string exactly, this configuration will
      * be used. The string must not include the leading '/' character. If empty,
@@ -666,16 +619,16 @@ public Builder clearSubfolderMatches() {
      * 
* * string subfolder_matches = 2; - * * @param value The bytes for subfolderMatches to set. * @return This builder for chaining. */ - public Builder setSubfolderMatchesBytes(com.google.protobuf.ByteString value) { + public Builder setSubfolderMatchesBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + subfolderMatches_ = value; onChanged(); return this; @@ -683,21 +636,19 @@ public Builder setSubfolderMatchesBytes(com.google.protobuf.ByteString value) { private java.lang.Object pubsubTopicName_ = ""; /** - * - * *
      * A Cloud Pub/Sub topic name. For example,
      * `projects/myProject/topics/deviceEvents`.
      * 
* * string pubsub_topic_name = 1; - * * @return The pubsubTopicName. */ public java.lang.String getPubsubTopicName() { java.lang.Object ref = pubsubTopicName_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); pubsubTopicName_ = s; return s; @@ -706,22 +657,21 @@ public java.lang.String getPubsubTopicName() { } } /** - * - * *
      * A Cloud Pub/Sub topic name. For example,
      * `projects/myProject/topics/deviceEvents`.
      * 
* * string pubsub_topic_name = 1; - * * @return The bytes for pubsubTopicName. */ - public com.google.protobuf.ByteString getPubsubTopicNameBytes() { + public com.google.protobuf.ByteString + getPubsubTopicNameBytes() { java.lang.Object ref = pubsubTopicName_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); pubsubTopicName_ = b; return b; } else { @@ -729,71 +679,64 @@ public com.google.protobuf.ByteString getPubsubTopicNameBytes() { } } /** - * - * *
      * A Cloud Pub/Sub topic name. For example,
      * `projects/myProject/topics/deviceEvents`.
      * 
* * string pubsub_topic_name = 1; - * * @param value The pubsubTopicName to set. * @return This builder for chaining. */ - public Builder setPubsubTopicName(java.lang.String value) { + public Builder setPubsubTopicName( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + pubsubTopicName_ = value; onChanged(); return this; } /** - * - * *
      * A Cloud Pub/Sub topic name. For example,
      * `projects/myProject/topics/deviceEvents`.
      * 
* * string pubsub_topic_name = 1; - * * @return This builder for chaining. */ public Builder clearPubsubTopicName() { - + pubsubTopicName_ = getDefaultInstance().getPubsubTopicName(); onChanged(); return this; } /** - * - * *
      * A Cloud Pub/Sub topic name. For example,
      * `projects/myProject/topics/deviceEvents`.
      * 
* * string pubsub_topic_name = 1; - * * @param value The bytes for pubsubTopicName to set. * @return This builder for chaining. */ - public Builder setPubsubTopicNameBytes(com.google.protobuf.ByteString value) { + public Builder setPubsubTopicNameBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + pubsubTopicName_ = value; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -803,12 +746,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.iot.v1.EventNotificationConfig) } // @@protoc_insertion_point(class_scope:google.cloud.iot.v1.EventNotificationConfig) private static final com.google.cloud.iot.v1.EventNotificationConfig DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.iot.v1.EventNotificationConfig(); } @@ -817,16 +760,16 @@ public static com.google.cloud.iot.v1.EventNotificationConfig getDefaultInstance return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public EventNotificationConfig parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new EventNotificationConfig(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public EventNotificationConfig parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new EventNotificationConfig(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -841,4 +784,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.iot.v1.EventNotificationConfig getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-iot-v1/src/main/java/com/google/cloud/iot/v1/EventNotificationConfigOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-iot-v1/src/main/java/com/google/cloud/iot/v1/EventNotificationConfigOrBuilder.java similarity index 66% rename from proto-google-cloud-iot-v1/src/main/java/com/google/cloud/iot/v1/EventNotificationConfigOrBuilder.java rename to owl-bot-staging/v1/proto-google-cloud-iot-v1/src/main/java/com/google/cloud/iot/v1/EventNotificationConfigOrBuilder.java index 40cd05f7..473467fe 100644 --- a/proto-google-cloud-iot-v1/src/main/java/com/google/cloud/iot/v1/EventNotificationConfigOrBuilder.java +++ b/owl-bot-staging/v1/proto-google-cloud-iot-v1/src/main/java/com/google/cloud/iot/v1/EventNotificationConfigOrBuilder.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/iot/v1/resources.proto package com.google.cloud.iot.v1; -public interface EventNotificationConfigOrBuilder - extends +public interface EventNotificationConfigOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.iot.v1.EventNotificationConfig) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * If the subfolder name matches this string exactly, this configuration will
    * be used. The string must not include the leading '/' character. If empty,
@@ -34,13 +16,10 @@ public interface EventNotificationConfigOrBuilder
    * 
* * string subfolder_matches = 2; - * * @return The subfolderMatches. */ java.lang.String getSubfolderMatches(); /** - * - * *
    * If the subfolder name matches this string exactly, this configuration will
    * be used. The string must not include the leading '/' character. If empty,
@@ -49,35 +28,30 @@ public interface EventNotificationConfigOrBuilder
    * 
* * string subfolder_matches = 2; - * * @return The bytes for subfolderMatches. */ - com.google.protobuf.ByteString getSubfolderMatchesBytes(); + com.google.protobuf.ByteString + getSubfolderMatchesBytes(); /** - * - * *
    * A Cloud Pub/Sub topic name. For example,
    * `projects/myProject/topics/deviceEvents`.
    * 
* * string pubsub_topic_name = 1; - * * @return The pubsubTopicName. */ java.lang.String getPubsubTopicName(); /** - * - * *
    * A Cloud Pub/Sub topic name. For example,
    * `projects/myProject/topics/deviceEvents`.
    * 
* * string pubsub_topic_name = 1; - * * @return The bytes for pubsubTopicName. */ - com.google.protobuf.ByteString getPubsubTopicNameBytes(); + com.google.protobuf.ByteString + getPubsubTopicNameBytes(); } diff --git a/proto-google-cloud-iot-v1/src/main/java/com/google/cloud/iot/v1/GatewayAuthMethod.java b/owl-bot-staging/v1/proto-google-cloud-iot-v1/src/main/java/com/google/cloud/iot/v1/GatewayAuthMethod.java similarity index 73% rename from proto-google-cloud-iot-v1/src/main/java/com/google/cloud/iot/v1/GatewayAuthMethod.java rename to owl-bot-staging/v1/proto-google-cloud-iot-v1/src/main/java/com/google/cloud/iot/v1/GatewayAuthMethod.java index d4088e00..3a8f7dda 100644 --- a/proto-google-cloud-iot-v1/src/main/java/com/google/cloud/iot/v1/GatewayAuthMethod.java +++ b/owl-bot-staging/v1/proto-google-cloud-iot-v1/src/main/java/com/google/cloud/iot/v1/GatewayAuthMethod.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/iot/v1/resources.proto package com.google.cloud.iot.v1; /** - * - * *
  * The gateway authorization/authentication method. This setting determines how
  * Cloud IoT Core authorizes/authenticate devices to access the gateway.
@@ -28,10 +11,9 @@
  *
  * Protobuf enum {@code google.cloud.iot.v1.GatewayAuthMethod}
  */
-public enum GatewayAuthMethod implements com.google.protobuf.ProtocolMessageEnum {
+public enum GatewayAuthMethod
+    implements com.google.protobuf.ProtocolMessageEnum {
   /**
-   *
-   *
    * 
    * No authentication/authorization method specified. No devices are allowed to
    * access the gateway.
@@ -41,8 +23,6 @@ public enum GatewayAuthMethod implements com.google.protobuf.ProtocolMessageEnum
    */
   GATEWAY_AUTH_METHOD_UNSPECIFIED(0),
   /**
-   *
-   *
    * 
    * The device is authenticated through the gateway association only. Device
    * credentials are ignored even if provided.
@@ -52,8 +32,6 @@ public enum GatewayAuthMethod implements com.google.protobuf.ProtocolMessageEnum
    */
   ASSOCIATION_ONLY(1),
   /**
-   *
-   *
    * 
    * The device is authenticated through its own credentials. Gateway
    * association is not checked.
@@ -63,8 +41,6 @@ public enum GatewayAuthMethod implements com.google.protobuf.ProtocolMessageEnum
    */
   DEVICE_AUTH_TOKEN_ONLY(2),
   /**
-   *
-   *
    * 
    * The device is authenticated through both device credentials and gateway
    * association. The device must be bound to the gateway and must provide its
@@ -78,8 +54,6 @@ public enum GatewayAuthMethod implements com.google.protobuf.ProtocolMessageEnum
   ;
 
   /**
-   *
-   *
    * 
    * No authentication/authorization method specified. No devices are allowed to
    * access the gateway.
@@ -89,8 +63,6 @@ public enum GatewayAuthMethod implements com.google.protobuf.ProtocolMessageEnum
    */
   public static final int GATEWAY_AUTH_METHOD_UNSPECIFIED_VALUE = 0;
   /**
-   *
-   *
    * 
    * The device is authenticated through the gateway association only. Device
    * credentials are ignored even if provided.
@@ -100,8 +72,6 @@ public enum GatewayAuthMethod implements com.google.protobuf.ProtocolMessageEnum
    */
   public static final int ASSOCIATION_ONLY_VALUE = 1;
   /**
-   *
-   *
    * 
    * The device is authenticated through its own credentials. Gateway
    * association is not checked.
@@ -111,8 +81,6 @@ public enum GatewayAuthMethod implements com.google.protobuf.ProtocolMessageEnum
    */
   public static final int DEVICE_AUTH_TOKEN_ONLY_VALUE = 2;
   /**
-   *
-   *
    * 
    * The device is authenticated through both device credentials and gateway
    * association. The device must be bound to the gateway and must provide its
@@ -123,6 +91,7 @@ public enum GatewayAuthMethod implements com.google.protobuf.ProtocolMessageEnum
    */
   public static final int ASSOCIATION_AND_DEVICE_AUTH_TOKEN_VALUE = 3;
 
+
   public final int getNumber() {
     if (this == UNRECOGNIZED) {
       throw new java.lang.IllegalArgumentException(
@@ -147,44 +116,40 @@ public static GatewayAuthMethod valueOf(int value) {
    */
   public static GatewayAuthMethod forNumber(int value) {
     switch (value) {
-      case 0:
-        return GATEWAY_AUTH_METHOD_UNSPECIFIED;
-      case 1:
-        return ASSOCIATION_ONLY;
-      case 2:
-        return DEVICE_AUTH_TOKEN_ONLY;
-      case 3:
-        return ASSOCIATION_AND_DEVICE_AUTH_TOKEN;
-      default:
-        return null;
+      case 0: return GATEWAY_AUTH_METHOD_UNSPECIFIED;
+      case 1: return ASSOCIATION_ONLY;
+      case 2: return DEVICE_AUTH_TOKEN_ONLY;
+      case 3: return ASSOCIATION_AND_DEVICE_AUTH_TOKEN;
+      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 GatewayAuthMethod findValueByNumber(int number) {
-              return GatewayAuthMethod.forNumber(number);
-            }
-          };
-
-  public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() {
+  private static final com.google.protobuf.Internal.EnumLiteMap<
+      GatewayAuthMethod> internalValueMap =
+        new com.google.protobuf.Internal.EnumLiteMap() {
+          public GatewayAuthMethod findValueByNumber(int number) {
+            return GatewayAuthMethod.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.iot.v1.ResourcesProto.getDescriptor().getEnumTypes().get(4);
   }
 
@@ -193,7 +158,8 @@ public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor
   public static GatewayAuthMethod 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;
@@ -209,3 +175,4 @@ private GatewayAuthMethod(int value) {
 
   // @@protoc_insertion_point(enum_scope:google.cloud.iot.v1.GatewayAuthMethod)
 }
+
diff --git a/proto-google-cloud-iot-v1/src/main/java/com/google/cloud/iot/v1/GatewayConfig.java b/owl-bot-staging/v1/proto-google-cloud-iot-v1/src/main/java/com/google/cloud/iot/v1/GatewayConfig.java
similarity index 73%
rename from proto-google-cloud-iot-v1/src/main/java/com/google/cloud/iot/v1/GatewayConfig.java
rename to owl-bot-staging/v1/proto-google-cloud-iot-v1/src/main/java/com/google/cloud/iot/v1/GatewayConfig.java
index cae89af6..a10175f9 100644
--- a/proto-google-cloud-iot-v1/src/main/java/com/google/cloud/iot/v1/GatewayConfig.java
+++ b/owl-bot-staging/v1/proto-google-cloud-iot-v1/src/main/java/com/google/cloud/iot/v1/GatewayConfig.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/iot/v1/resources.proto
 
 package com.google.cloud.iot.v1;
 
 /**
- *
- *
  * 
  * Gateway-related configuration and state.
  * 
* * Protobuf type {@code google.cloud.iot.v1.GatewayConfig} */ -public final class GatewayConfig extends com.google.protobuf.GeneratedMessageV3 - implements +public final class GatewayConfig extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.iot.v1.GatewayConfig) GatewayConfigOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use GatewayConfig.newBuilder() to construct. private GatewayConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private GatewayConfig() { gatewayType_ = 0; gatewayAuthMethod_ = 0; @@ -45,15 +27,16 @@ private GatewayConfig() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new GatewayConfig(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private GatewayConfig( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -72,49 +55,44 @@ private GatewayConfig( case 0: done = true; break; - case 8: - { - int rawValue = input.readEnum(); + case 8: { + int rawValue = input.readEnum(); - gatewayType_ = rawValue; - break; - } - case 16: - { - int rawValue = input.readEnum(); + gatewayType_ = rawValue; + break; + } + case 16: { + int rawValue = input.readEnum(); - gatewayAuthMethod_ = rawValue; - break; - } - case 26: - { - java.lang.String s = input.readStringRequireUtf8(); + gatewayAuthMethod_ = rawValue; + break; + } + case 26: { + java.lang.String s = input.readStringRequireUtf8(); - lastAccessedGatewayId_ = s; - break; + lastAccessedGatewayId_ = s; + break; + } + case 34: { + com.google.protobuf.Timestamp.Builder subBuilder = null; + if (lastAccessedGatewayTime_ != null) { + subBuilder = lastAccessedGatewayTime_.toBuilder(); } - case 34: - { - com.google.protobuf.Timestamp.Builder subBuilder = null; - if (lastAccessedGatewayTime_ != null) { - subBuilder = lastAccessedGatewayTime_.toBuilder(); - } - lastAccessedGatewayTime_ = - input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(lastAccessedGatewayTime_); - lastAccessedGatewayTime_ = subBuilder.buildPartial(); - } - - break; + lastAccessedGatewayTime_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(lastAccessedGatewayTime_); + lastAccessedGatewayTime_ = 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) { @@ -122,113 +100,90 @@ private GatewayConfig( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.iot.v1.ResourcesProto - .internal_static_google_cloud_iot_v1_GatewayConfig_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.iot.v1.ResourcesProto.internal_static_google_cloud_iot_v1_GatewayConfig_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.iot.v1.ResourcesProto - .internal_static_google_cloud_iot_v1_GatewayConfig_fieldAccessorTable + return com.google.cloud.iot.v1.ResourcesProto.internal_static_google_cloud_iot_v1_GatewayConfig_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.iot.v1.GatewayConfig.class, - com.google.cloud.iot.v1.GatewayConfig.Builder.class); + com.google.cloud.iot.v1.GatewayConfig.class, com.google.cloud.iot.v1.GatewayConfig.Builder.class); } public static final int GATEWAY_TYPE_FIELD_NUMBER = 1; private int gatewayType_; /** - * - * *
    * Indicates whether the device is a gateway.
    * 
* * .google.cloud.iot.v1.GatewayType gateway_type = 1; - * * @return The enum numeric value on the wire for gatewayType. */ - @java.lang.Override - public int getGatewayTypeValue() { + @java.lang.Override public int getGatewayTypeValue() { return gatewayType_; } /** - * - * *
    * Indicates whether the device is a gateway.
    * 
* * .google.cloud.iot.v1.GatewayType gateway_type = 1; - * * @return The gatewayType. */ - @java.lang.Override - public com.google.cloud.iot.v1.GatewayType getGatewayType() { + @java.lang.Override public com.google.cloud.iot.v1.GatewayType getGatewayType() { @SuppressWarnings("deprecation") - com.google.cloud.iot.v1.GatewayType result = - com.google.cloud.iot.v1.GatewayType.valueOf(gatewayType_); + com.google.cloud.iot.v1.GatewayType result = com.google.cloud.iot.v1.GatewayType.valueOf(gatewayType_); return result == null ? com.google.cloud.iot.v1.GatewayType.UNRECOGNIZED : result; } public static final int GATEWAY_AUTH_METHOD_FIELD_NUMBER = 2; private int gatewayAuthMethod_; /** - * - * *
    * Indicates how to authorize and/or authenticate devices to access the
    * gateway.
    * 
* * .google.cloud.iot.v1.GatewayAuthMethod gateway_auth_method = 2; - * * @return The enum numeric value on the wire for gatewayAuthMethod. */ - @java.lang.Override - public int getGatewayAuthMethodValue() { + @java.lang.Override public int getGatewayAuthMethodValue() { return gatewayAuthMethod_; } /** - * - * *
    * Indicates how to authorize and/or authenticate devices to access the
    * gateway.
    * 
* * .google.cloud.iot.v1.GatewayAuthMethod gateway_auth_method = 2; - * * @return The gatewayAuthMethod. */ - @java.lang.Override - public com.google.cloud.iot.v1.GatewayAuthMethod getGatewayAuthMethod() { + @java.lang.Override public com.google.cloud.iot.v1.GatewayAuthMethod getGatewayAuthMethod() { @SuppressWarnings("deprecation") - com.google.cloud.iot.v1.GatewayAuthMethod result = - com.google.cloud.iot.v1.GatewayAuthMethod.valueOf(gatewayAuthMethod_); + com.google.cloud.iot.v1.GatewayAuthMethod result = com.google.cloud.iot.v1.GatewayAuthMethod.valueOf(gatewayAuthMethod_); return result == null ? com.google.cloud.iot.v1.GatewayAuthMethod.UNRECOGNIZED : result; } public static final int LAST_ACCESSED_GATEWAY_ID_FIELD_NUMBER = 3; private volatile java.lang.Object lastAccessedGatewayId_; /** - * - * *
    * [Output only] The ID of the gateway the device accessed most recently.
    * 
* * string last_accessed_gateway_id = 3; - * * @return The lastAccessedGatewayId. */ @java.lang.Override @@ -237,29 +192,29 @@ public java.lang.String getLastAccessedGatewayId() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); lastAccessedGatewayId_ = s; return s; } } /** - * - * *
    * [Output only] The ID of the gateway the device accessed most recently.
    * 
* * string last_accessed_gateway_id = 3; - * * @return The bytes for lastAccessedGatewayId. */ @java.lang.Override - public com.google.protobuf.ByteString getLastAccessedGatewayIdBytes() { + public com.google.protobuf.ByteString + getLastAccessedGatewayIdBytes() { java.lang.Object ref = lastAccessedGatewayId_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); lastAccessedGatewayId_ = b; return b; } else { @@ -270,15 +225,12 @@ public com.google.protobuf.ByteString getLastAccessedGatewayIdBytes() { public static final int LAST_ACCESSED_GATEWAY_TIME_FIELD_NUMBER = 4; private com.google.protobuf.Timestamp lastAccessedGatewayTime_; /** - * - * *
    * [Output only] The most recent time at which the device accessed the gateway
    * specified in `last_accessed_gateway`.
    * 
* * .google.protobuf.Timestamp last_accessed_gateway_time = 4; - * * @return Whether the lastAccessedGatewayTime field is set. */ @java.lang.Override @@ -286,26 +238,19 @@ public boolean hasLastAccessedGatewayTime() { return lastAccessedGatewayTime_ != null; } /** - * - * *
    * [Output only] The most recent time at which the device accessed the gateway
    * specified in `last_accessed_gateway`.
    * 
* * .google.protobuf.Timestamp last_accessed_gateway_time = 4; - * * @return The lastAccessedGatewayTime. */ @java.lang.Override public com.google.protobuf.Timestamp getLastAccessedGatewayTime() { - return lastAccessedGatewayTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : lastAccessedGatewayTime_; + return lastAccessedGatewayTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : lastAccessedGatewayTime_; } /** - * - * *
    * [Output only] The most recent time at which the device accessed the gateway
    * specified in `last_accessed_gateway`.
@@ -319,7 +264,6 @@ public com.google.protobuf.TimestampOrBuilder getLastAccessedGatewayTimeOrBuilde
   }
 
   private byte memoizedIsInitialized = -1;
-
   @java.lang.Override
   public final boolean isInitialized() {
     byte isInitialized = memoizedIsInitialized;
@@ -331,12 +275,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 (gatewayType_ != com.google.cloud.iot.v1.GatewayType.GATEWAY_TYPE_UNSPECIFIED.getNumber()) {
       output.writeEnum(1, gatewayType_);
     }
-    if (gatewayAuthMethod_
-        != com.google.cloud.iot.v1.GatewayAuthMethod.GATEWAY_AUTH_METHOD_UNSPECIFIED.getNumber()) {
+    if (gatewayAuthMethod_ != com.google.cloud.iot.v1.GatewayAuthMethod.GATEWAY_AUTH_METHOD_UNSPECIFIED.getNumber()) {
       output.writeEnum(2, gatewayAuthMethod_);
     }
     if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(lastAccessedGatewayId_)) {
@@ -355,18 +299,19 @@ public int getSerializedSize() {
 
     size = 0;
     if (gatewayType_ != com.google.cloud.iot.v1.GatewayType.GATEWAY_TYPE_UNSPECIFIED.getNumber()) {
-      size += com.google.protobuf.CodedOutputStream.computeEnumSize(1, gatewayType_);
+      size += com.google.protobuf.CodedOutputStream
+        .computeEnumSize(1, gatewayType_);
     }
-    if (gatewayAuthMethod_
-        != com.google.cloud.iot.v1.GatewayAuthMethod.GATEWAY_AUTH_METHOD_UNSPECIFIED.getNumber()) {
-      size += com.google.protobuf.CodedOutputStream.computeEnumSize(2, gatewayAuthMethod_);
+    if (gatewayAuthMethod_ != com.google.cloud.iot.v1.GatewayAuthMethod.GATEWAY_AUTH_METHOD_UNSPECIFIED.getNumber()) {
+      size += com.google.protobuf.CodedOutputStream
+        .computeEnumSize(2, gatewayAuthMethod_);
     }
     if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(lastAccessedGatewayId_)) {
       size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, lastAccessedGatewayId_);
     }
     if (lastAccessedGatewayTime_ != null) {
-      size +=
-          com.google.protobuf.CodedOutputStream.computeMessageSize(4, getLastAccessedGatewayTime());
+      size += com.google.protobuf.CodedOutputStream
+        .computeMessageSize(4, getLastAccessedGatewayTime());
     }
     size += unknownFields.getSerializedSize();
     memoizedSize = size;
@@ -376,7 +321,7 @@ public int getSerializedSize() {
   @java.lang.Override
   public boolean equals(final java.lang.Object obj) {
     if (obj == this) {
-      return true;
+     return true;
     }
     if (!(obj instanceof com.google.cloud.iot.v1.GatewayConfig)) {
       return super.equals(obj);
@@ -385,10 +330,12 @@ public boolean equals(final java.lang.Object obj) {
 
     if (gatewayType_ != other.gatewayType_) return false;
     if (gatewayAuthMethod_ != other.gatewayAuthMethod_) return false;
-    if (!getLastAccessedGatewayId().equals(other.getLastAccessedGatewayId())) return false;
+    if (!getLastAccessedGatewayId()
+        .equals(other.getLastAccessedGatewayId())) return false;
     if (hasLastAccessedGatewayTime() != other.hasLastAccessedGatewayTime()) return false;
     if (hasLastAccessedGatewayTime()) {
-      if (!getLastAccessedGatewayTime().equals(other.getLastAccessedGatewayTime())) return false;
+      if (!getLastAccessedGatewayTime()
+          .equals(other.getLastAccessedGatewayTime())) return false;
     }
     if (!unknownFields.equals(other.unknownFields)) return false;
     return true;
@@ -416,126 +363,118 @@ public int hashCode() {
     return hash;
   }
 
-  public static com.google.cloud.iot.v1.GatewayConfig parseFrom(java.nio.ByteBuffer data)
+  public static com.google.cloud.iot.v1.GatewayConfig parseFrom(
+      java.nio.ByteBuffer data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-
   public static com.google.cloud.iot.v1.GatewayConfig parseFrom(
-      java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.nio.ByteBuffer data,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-
-  public static com.google.cloud.iot.v1.GatewayConfig parseFrom(com.google.protobuf.ByteString data)
+  public static com.google.cloud.iot.v1.GatewayConfig parseFrom(
+      com.google.protobuf.ByteString data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-
   public static com.google.cloud.iot.v1.GatewayConfig parseFrom(
       com.google.protobuf.ByteString data,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-
   public static com.google.cloud.iot.v1.GatewayConfig parseFrom(byte[] data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-
   public static com.google.cloud.iot.v1.GatewayConfig parseFrom(
-      byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      byte[] data,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-
   public static com.google.cloud.iot.v1.GatewayConfig 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.iot.v1.GatewayConfig parseFrom(
-      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.io.InputStream input,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
-        PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input, extensionRegistry);
   }
-
   public static com.google.cloud.iot.v1.GatewayConfig 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.iot.v1.GatewayConfig parseDelimitedFrom(
-      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.io.InputStream input,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
-        PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3
+        .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
   }
-
   public static com.google.cloud.iot.v1.GatewayConfig parseFrom(
-      com.google.protobuf.CodedInputStream input) throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+      com.google.protobuf.CodedInputStream input)
+      throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input);
   }
-
   public static com.google.cloud.iot.v1.GatewayConfig parseFrom(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
-        PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input, extensionRegistry);
   }
 
   @java.lang.Override
-  public Builder newBuilderForType() {
-    return newBuilder();
-  }
-
+  public Builder newBuilderForType() { return newBuilder(); }
   public static Builder newBuilder() {
     return DEFAULT_INSTANCE.toBuilder();
   }
-
   public static Builder newBuilder(com.google.cloud.iot.v1.GatewayConfig prototype) {
     return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
   }
-
   @java.lang.Override
   public Builder toBuilder() {
-    return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
+    return this == DEFAULT_INSTANCE
+        ? new Builder() : new Builder().mergeFrom(this);
   }
 
   @java.lang.Override
-  protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+  protected Builder newBuilderForType(
+      com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
     Builder builder = new Builder(parent);
     return builder;
   }
   /**
-   *
-   *
    * 
    * Gateway-related configuration and state.
    * 
* * Protobuf type {@code google.cloud.iot.v1.GatewayConfig} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.iot.v1.GatewayConfig) com.google.cloud.iot.v1.GatewayConfigOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.iot.v1.ResourcesProto - .internal_static_google_cloud_iot_v1_GatewayConfig_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.iot.v1.ResourcesProto.internal_static_google_cloud_iot_v1_GatewayConfig_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.iot.v1.ResourcesProto - .internal_static_google_cloud_iot_v1_GatewayConfig_fieldAccessorTable + return com.google.cloud.iot.v1.ResourcesProto.internal_static_google_cloud_iot_v1_GatewayConfig_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.iot.v1.GatewayConfig.class, - com.google.cloud.iot.v1.GatewayConfig.Builder.class); + com.google.cloud.iot.v1.GatewayConfig.class, com.google.cloud.iot.v1.GatewayConfig.Builder.class); } // Construct using com.google.cloud.iot.v1.GatewayConfig.newBuilder() @@ -543,15 +482,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(); @@ -571,9 +511,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.iot.v1.ResourcesProto - .internal_static_google_cloud_iot_v1_GatewayConfig_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.iot.v1.ResourcesProto.internal_static_google_cloud_iot_v1_GatewayConfig_descriptor; } @java.lang.Override @@ -592,8 +532,7 @@ public com.google.cloud.iot.v1.GatewayConfig build() { @java.lang.Override public com.google.cloud.iot.v1.GatewayConfig buildPartial() { - com.google.cloud.iot.v1.GatewayConfig result = - new com.google.cloud.iot.v1.GatewayConfig(this); + com.google.cloud.iot.v1.GatewayConfig result = new com.google.cloud.iot.v1.GatewayConfig(this); result.gatewayType_ = gatewayType_; result.gatewayAuthMethod_ = gatewayAuthMethod_; result.lastAccessedGatewayId_ = lastAccessedGatewayId_; @@ -610,39 +549,38 @@ public com.google.cloud.iot.v1.GatewayConfig buildPartial() { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.iot.v1.GatewayConfig) { - return mergeFrom((com.google.cloud.iot.v1.GatewayConfig) other); + return mergeFrom((com.google.cloud.iot.v1.GatewayConfig)other); } else { super.mergeFrom(other); return this; @@ -695,65 +633,51 @@ public Builder mergeFrom( private int gatewayType_ = 0; /** - * - * *
      * Indicates whether the device is a gateway.
      * 
* * .google.cloud.iot.v1.GatewayType gateway_type = 1; - * * @return The enum numeric value on the wire for gatewayType. */ - @java.lang.Override - public int getGatewayTypeValue() { + @java.lang.Override public int getGatewayTypeValue() { return gatewayType_; } /** - * - * *
      * Indicates whether the device is a gateway.
      * 
* * .google.cloud.iot.v1.GatewayType gateway_type = 1; - * * @param value The enum numeric value on the wire for gatewayType to set. * @return This builder for chaining. */ public Builder setGatewayTypeValue(int value) { - + gatewayType_ = value; onChanged(); return this; } /** - * - * *
      * Indicates whether the device is a gateway.
      * 
* * .google.cloud.iot.v1.GatewayType gateway_type = 1; - * * @return The gatewayType. */ @java.lang.Override public com.google.cloud.iot.v1.GatewayType getGatewayType() { @SuppressWarnings("deprecation") - com.google.cloud.iot.v1.GatewayType result = - com.google.cloud.iot.v1.GatewayType.valueOf(gatewayType_); + com.google.cloud.iot.v1.GatewayType result = com.google.cloud.iot.v1.GatewayType.valueOf(gatewayType_); return result == null ? com.google.cloud.iot.v1.GatewayType.UNRECOGNIZED : result; } /** - * - * *
      * Indicates whether the device is a gateway.
      * 
* * .google.cloud.iot.v1.GatewayType gateway_type = 1; - * * @param value The gatewayType to set. * @return This builder for chaining. */ @@ -761,24 +685,21 @@ public Builder setGatewayType(com.google.cloud.iot.v1.GatewayType value) { if (value == null) { throw new NullPointerException(); } - + gatewayType_ = value.getNumber(); onChanged(); return this; } /** - * - * *
      * Indicates whether the device is a gateway.
      * 
* * .google.cloud.iot.v1.GatewayType gateway_type = 1; - * * @return This builder for chaining. */ public Builder clearGatewayType() { - + gatewayType_ = 0; onChanged(); return this; @@ -786,69 +707,55 @@ public Builder clearGatewayType() { private int gatewayAuthMethod_ = 0; /** - * - * *
      * Indicates how to authorize and/or authenticate devices to access the
      * gateway.
      * 
* * .google.cloud.iot.v1.GatewayAuthMethod gateway_auth_method = 2; - * * @return The enum numeric value on the wire for gatewayAuthMethod. */ - @java.lang.Override - public int getGatewayAuthMethodValue() { + @java.lang.Override public int getGatewayAuthMethodValue() { return gatewayAuthMethod_; } /** - * - * *
      * Indicates how to authorize and/or authenticate devices to access the
      * gateway.
      * 
* * .google.cloud.iot.v1.GatewayAuthMethod gateway_auth_method = 2; - * * @param value The enum numeric value on the wire for gatewayAuthMethod to set. * @return This builder for chaining. */ public Builder setGatewayAuthMethodValue(int value) { - + gatewayAuthMethod_ = value; onChanged(); return this; } /** - * - * *
      * Indicates how to authorize and/or authenticate devices to access the
      * gateway.
      * 
* * .google.cloud.iot.v1.GatewayAuthMethod gateway_auth_method = 2; - * * @return The gatewayAuthMethod. */ @java.lang.Override public com.google.cloud.iot.v1.GatewayAuthMethod getGatewayAuthMethod() { @SuppressWarnings("deprecation") - com.google.cloud.iot.v1.GatewayAuthMethod result = - com.google.cloud.iot.v1.GatewayAuthMethod.valueOf(gatewayAuthMethod_); + com.google.cloud.iot.v1.GatewayAuthMethod result = com.google.cloud.iot.v1.GatewayAuthMethod.valueOf(gatewayAuthMethod_); return result == null ? com.google.cloud.iot.v1.GatewayAuthMethod.UNRECOGNIZED : result; } /** - * - * *
      * Indicates how to authorize and/or authenticate devices to access the
      * gateway.
      * 
* * .google.cloud.iot.v1.GatewayAuthMethod gateway_auth_method = 2; - * * @param value The gatewayAuthMethod to set. * @return This builder for chaining. */ @@ -856,25 +763,22 @@ public Builder setGatewayAuthMethod(com.google.cloud.iot.v1.GatewayAuthMethod va if (value == null) { throw new NullPointerException(); } - + gatewayAuthMethod_ = value.getNumber(); onChanged(); return this; } /** - * - * *
      * Indicates how to authorize and/or authenticate devices to access the
      * gateway.
      * 
* * .google.cloud.iot.v1.GatewayAuthMethod gateway_auth_method = 2; - * * @return This builder for chaining. */ public Builder clearGatewayAuthMethod() { - + gatewayAuthMethod_ = 0; onChanged(); return this; @@ -882,20 +786,18 @@ public Builder clearGatewayAuthMethod() { private java.lang.Object lastAccessedGatewayId_ = ""; /** - * - * *
      * [Output only] The ID of the gateway the device accessed most recently.
      * 
* * string last_accessed_gateway_id = 3; - * * @return The lastAccessedGatewayId. */ public java.lang.String getLastAccessedGatewayId() { java.lang.Object ref = lastAccessedGatewayId_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); lastAccessedGatewayId_ = s; return s; @@ -904,21 +806,20 @@ public java.lang.String getLastAccessedGatewayId() { } } /** - * - * *
      * [Output only] The ID of the gateway the device accessed most recently.
      * 
* * string last_accessed_gateway_id = 3; - * * @return The bytes for lastAccessedGatewayId. */ - public com.google.protobuf.ByteString getLastAccessedGatewayIdBytes() { + public com.google.protobuf.ByteString + getLastAccessedGatewayIdBytes() { java.lang.Object ref = lastAccessedGatewayId_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); lastAccessedGatewayId_ = b; return b; } else { @@ -926,61 +827,54 @@ public com.google.protobuf.ByteString getLastAccessedGatewayIdBytes() { } } /** - * - * *
      * [Output only] The ID of the gateway the device accessed most recently.
      * 
* * string last_accessed_gateway_id = 3; - * * @param value The lastAccessedGatewayId to set. * @return This builder for chaining. */ - public Builder setLastAccessedGatewayId(java.lang.String value) { + public Builder setLastAccessedGatewayId( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + lastAccessedGatewayId_ = value; onChanged(); return this; } /** - * - * *
      * [Output only] The ID of the gateway the device accessed most recently.
      * 
* * string last_accessed_gateway_id = 3; - * * @return This builder for chaining. */ public Builder clearLastAccessedGatewayId() { - + lastAccessedGatewayId_ = getDefaultInstance().getLastAccessedGatewayId(); onChanged(); return this; } /** - * - * *
      * [Output only] The ID of the gateway the device accessed most recently.
      * 
* * string last_accessed_gateway_id = 3; - * * @param value The bytes for lastAccessedGatewayId to set. * @return This builder for chaining. */ - public Builder setLastAccessedGatewayIdBytes(com.google.protobuf.ByteString value) { + public Builder setLastAccessedGatewayIdBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + lastAccessedGatewayId_ = value; onChanged(); return this; @@ -988,49 +882,36 @@ public Builder setLastAccessedGatewayIdBytes(com.google.protobuf.ByteString valu private com.google.protobuf.Timestamp lastAccessedGatewayTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> - lastAccessedGatewayTimeBuilder_; + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> lastAccessedGatewayTimeBuilder_; /** - * - * *
      * [Output only] The most recent time at which the device accessed the gateway
      * specified in `last_accessed_gateway`.
      * 
* * .google.protobuf.Timestamp last_accessed_gateway_time = 4; - * * @return Whether the lastAccessedGatewayTime field is set. */ public boolean hasLastAccessedGatewayTime() { return lastAccessedGatewayTimeBuilder_ != null || lastAccessedGatewayTime_ != null; } /** - * - * *
      * [Output only] The most recent time at which the device accessed the gateway
      * specified in `last_accessed_gateway`.
      * 
* * .google.protobuf.Timestamp last_accessed_gateway_time = 4; - * * @return The lastAccessedGatewayTime. */ public com.google.protobuf.Timestamp getLastAccessedGatewayTime() { if (lastAccessedGatewayTimeBuilder_ == null) { - return lastAccessedGatewayTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : lastAccessedGatewayTime_; + return lastAccessedGatewayTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : lastAccessedGatewayTime_; } else { return lastAccessedGatewayTimeBuilder_.getMessage(); } } /** - * - * *
      * [Output only] The most recent time at which the device accessed the gateway
      * specified in `last_accessed_gateway`.
@@ -1052,8 +933,6 @@ public Builder setLastAccessedGatewayTime(com.google.protobuf.Timestamp value) {
       return this;
     }
     /**
-     *
-     *
      * 
      * [Output only] The most recent time at which the device accessed the gateway
      * specified in `last_accessed_gateway`.
@@ -1073,8 +952,6 @@ public Builder setLastAccessedGatewayTime(
       return this;
     }
     /**
-     *
-     *
      * 
      * [Output only] The most recent time at which the device accessed the gateway
      * specified in `last_accessed_gateway`.
@@ -1086,9 +963,7 @@ public Builder mergeLastAccessedGatewayTime(com.google.protobuf.Timestamp value)
       if (lastAccessedGatewayTimeBuilder_ == null) {
         if (lastAccessedGatewayTime_ != null) {
           lastAccessedGatewayTime_ =
-              com.google.protobuf.Timestamp.newBuilder(lastAccessedGatewayTime_)
-                  .mergeFrom(value)
-                  .buildPartial();
+            com.google.protobuf.Timestamp.newBuilder(lastAccessedGatewayTime_).mergeFrom(value).buildPartial();
         } else {
           lastAccessedGatewayTime_ = value;
         }
@@ -1100,8 +975,6 @@ public Builder mergeLastAccessedGatewayTime(com.google.protobuf.Timestamp value)
       return this;
     }
     /**
-     *
-     *
      * 
      * [Output only] The most recent time at which the device accessed the gateway
      * specified in `last_accessed_gateway`.
@@ -1121,8 +994,6 @@ public Builder clearLastAccessedGatewayTime() {
       return this;
     }
     /**
-     *
-     *
      * 
      * [Output only] The most recent time at which the device accessed the gateway
      * specified in `last_accessed_gateway`.
@@ -1131,13 +1002,11 @@ public Builder clearLastAccessedGatewayTime() {
      * .google.protobuf.Timestamp last_accessed_gateway_time = 4;
      */
     public com.google.protobuf.Timestamp.Builder getLastAccessedGatewayTimeBuilder() {
-
+      
       onChanged();
       return getLastAccessedGatewayTimeFieldBuilder().getBuilder();
     }
     /**
-     *
-     *
      * 
      * [Output only] The most recent time at which the device accessed the gateway
      * specified in `last_accessed_gateway`.
@@ -1149,14 +1018,11 @@ public com.google.protobuf.TimestampOrBuilder getLastAccessedGatewayTimeOrBuilde
       if (lastAccessedGatewayTimeBuilder_ != null) {
         return lastAccessedGatewayTimeBuilder_.getMessageOrBuilder();
       } else {
-        return lastAccessedGatewayTime_ == null
-            ? com.google.protobuf.Timestamp.getDefaultInstance()
-            : lastAccessedGatewayTime_;
+        return lastAccessedGatewayTime_ == null ?
+            com.google.protobuf.Timestamp.getDefaultInstance() : lastAccessedGatewayTime_;
       }
     }
     /**
-     *
-     *
      * 
      * [Output only] The most recent time at which the device accessed the gateway
      * specified in `last_accessed_gateway`.
@@ -1165,24 +1031,21 @@ public com.google.protobuf.TimestampOrBuilder getLastAccessedGatewayTimeOrBuilde
      * .google.protobuf.Timestamp last_accessed_gateway_time = 4;
      */
     private com.google.protobuf.SingleFieldBuilderV3<
-            com.google.protobuf.Timestamp,
-            com.google.protobuf.Timestamp.Builder,
-            com.google.protobuf.TimestampOrBuilder>
+        com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> 
         getLastAccessedGatewayTimeFieldBuilder() {
       if (lastAccessedGatewayTimeBuilder_ == null) {
-        lastAccessedGatewayTimeBuilder_ =
-            new com.google.protobuf.SingleFieldBuilderV3<
-                com.google.protobuf.Timestamp,
-                com.google.protobuf.Timestamp.Builder,
-                com.google.protobuf.TimestampOrBuilder>(
-                getLastAccessedGatewayTime(), getParentForChildren(), isClean());
+        lastAccessedGatewayTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
+            com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>(
+                getLastAccessedGatewayTime(),
+                getParentForChildren(),
+                isClean());
         lastAccessedGatewayTime_ = null;
       }
       return lastAccessedGatewayTimeBuilder_;
     }
-
     @java.lang.Override
-    public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) {
+    public final Builder setUnknownFields(
+        final com.google.protobuf.UnknownFieldSet unknownFields) {
       return super.setUnknownFields(unknownFields);
     }
 
@@ -1192,12 +1055,12 @@ public final Builder mergeUnknownFields(
       return super.mergeUnknownFields(unknownFields);
     }
 
+
     // @@protoc_insertion_point(builder_scope:google.cloud.iot.v1.GatewayConfig)
   }
 
   // @@protoc_insertion_point(class_scope:google.cloud.iot.v1.GatewayConfig)
   private static final com.google.cloud.iot.v1.GatewayConfig DEFAULT_INSTANCE;
-
   static {
     DEFAULT_INSTANCE = new com.google.cloud.iot.v1.GatewayConfig();
   }
@@ -1206,16 +1069,16 @@ public static com.google.cloud.iot.v1.GatewayConfig getDefaultInstance() {
     return DEFAULT_INSTANCE;
   }
 
-  private static final com.google.protobuf.Parser PARSER =
-      new com.google.protobuf.AbstractParser() {
-        @java.lang.Override
-        public GatewayConfig parsePartialFrom(
-            com.google.protobuf.CodedInputStream input,
-            com.google.protobuf.ExtensionRegistryLite extensionRegistry)
-            throws com.google.protobuf.InvalidProtocolBufferException {
-          return new GatewayConfig(input, extensionRegistry);
-        }
-      };
+  private static final com.google.protobuf.Parser
+      PARSER = new com.google.protobuf.AbstractParser() {
+    @java.lang.Override
+    public GatewayConfig parsePartialFrom(
+        com.google.protobuf.CodedInputStream input,
+        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+        throws com.google.protobuf.InvalidProtocolBufferException {
+      return new GatewayConfig(input, extensionRegistry);
+    }
+  };
 
   public static com.google.protobuf.Parser parser() {
     return PARSER;
@@ -1230,4 +1093,6 @@ public com.google.protobuf.Parser getParserForType() {
   public com.google.cloud.iot.v1.GatewayConfig getDefaultInstanceForType() {
     return DEFAULT_INSTANCE;
   }
+
 }
+
diff --git a/proto-google-cloud-iot-v1/src/main/java/com/google/cloud/iot/v1/GatewayConfigOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-iot-v1/src/main/java/com/google/cloud/iot/v1/GatewayConfigOrBuilder.java
similarity index 77%
rename from proto-google-cloud-iot-v1/src/main/java/com/google/cloud/iot/v1/GatewayConfigOrBuilder.java
rename to owl-bot-staging/v1/proto-google-cloud-iot-v1/src/main/java/com/google/cloud/iot/v1/GatewayConfigOrBuilder.java
index 1268e4a0..426014dc 100644
--- a/proto-google-cloud-iot-v1/src/main/java/com/google/cloud/iot/v1/GatewayConfigOrBuilder.java
+++ b/owl-bot-staging/v1/proto-google-cloud-iot-v1/src/main/java/com/google/cloud/iot/v1/GatewayConfigOrBuilder.java
@@ -1,134 +1,93 @@
-/*
- * Copyright 2020 Google LLC
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *     https://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/cloud/iot/v1/resources.proto
 
 package com.google.cloud.iot.v1;
 
-public interface GatewayConfigOrBuilder
-    extends
+public interface GatewayConfigOrBuilder extends
     // @@protoc_insertion_point(interface_extends:google.cloud.iot.v1.GatewayConfig)
     com.google.protobuf.MessageOrBuilder {
 
   /**
-   *
-   *
    * 
    * Indicates whether the device is a gateway.
    * 
* * .google.cloud.iot.v1.GatewayType gateway_type = 1; - * * @return The enum numeric value on the wire for gatewayType. */ int getGatewayTypeValue(); /** - * - * *
    * Indicates whether the device is a gateway.
    * 
* * .google.cloud.iot.v1.GatewayType gateway_type = 1; - * * @return The gatewayType. */ com.google.cloud.iot.v1.GatewayType getGatewayType(); /** - * - * *
    * Indicates how to authorize and/or authenticate devices to access the
    * gateway.
    * 
* * .google.cloud.iot.v1.GatewayAuthMethod gateway_auth_method = 2; - * * @return The enum numeric value on the wire for gatewayAuthMethod. */ int getGatewayAuthMethodValue(); /** - * - * *
    * Indicates how to authorize and/or authenticate devices to access the
    * gateway.
    * 
* * .google.cloud.iot.v1.GatewayAuthMethod gateway_auth_method = 2; - * * @return The gatewayAuthMethod. */ com.google.cloud.iot.v1.GatewayAuthMethod getGatewayAuthMethod(); /** - * - * *
    * [Output only] The ID of the gateway the device accessed most recently.
    * 
* * string last_accessed_gateway_id = 3; - * * @return The lastAccessedGatewayId. */ java.lang.String getLastAccessedGatewayId(); /** - * - * *
    * [Output only] The ID of the gateway the device accessed most recently.
    * 
* * string last_accessed_gateway_id = 3; - * * @return The bytes for lastAccessedGatewayId. */ - com.google.protobuf.ByteString getLastAccessedGatewayIdBytes(); + com.google.protobuf.ByteString + getLastAccessedGatewayIdBytes(); /** - * - * *
    * [Output only] The most recent time at which the device accessed the gateway
    * specified in `last_accessed_gateway`.
    * 
* * .google.protobuf.Timestamp last_accessed_gateway_time = 4; - * * @return Whether the lastAccessedGatewayTime field is set. */ boolean hasLastAccessedGatewayTime(); /** - * - * *
    * [Output only] The most recent time at which the device accessed the gateway
    * specified in `last_accessed_gateway`.
    * 
* * .google.protobuf.Timestamp last_accessed_gateway_time = 4; - * * @return The lastAccessedGatewayTime. */ com.google.protobuf.Timestamp getLastAccessedGatewayTime(); /** - * - * *
    * [Output only] The most recent time at which the device accessed the gateway
    * specified in `last_accessed_gateway`.
diff --git a/proto-google-cloud-iot-v1/src/main/java/com/google/cloud/iot/v1/GatewayListOptions.java b/owl-bot-staging/v1/proto-google-cloud-iot-v1/src/main/java/com/google/cloud/iot/v1/GatewayListOptions.java
similarity index 76%
rename from proto-google-cloud-iot-v1/src/main/java/com/google/cloud/iot/v1/GatewayListOptions.java
rename to owl-bot-staging/v1/proto-google-cloud-iot-v1/src/main/java/com/google/cloud/iot/v1/GatewayListOptions.java
index 8a9dceef..751d36ce 100644
--- a/proto-google-cloud-iot-v1/src/main/java/com/google/cloud/iot/v1/GatewayListOptions.java
+++ b/owl-bot-staging/v1/proto-google-cloud-iot-v1/src/main/java/com/google/cloud/iot/v1/GatewayListOptions.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/iot/v1/device_manager.proto
 
 package com.google.cloud.iot.v1;
 
 /**
- *
- *
  * 
  * Options for limiting the list based on gateway type and associations.
  * 
* * Protobuf type {@code google.cloud.iot.v1.GatewayListOptions} */ -public final class GatewayListOptions extends com.google.protobuf.GeneratedMessageV3 - implements +public final class GatewayListOptions extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.iot.v1.GatewayListOptions) GatewayListOptionsOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use GatewayListOptions.newBuilder() to construct. private GatewayListOptions(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - - private GatewayListOptions() {} + private GatewayListOptions() { + } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new GatewayListOptions(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private GatewayListOptions( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -68,34 +52,31 @@ private GatewayListOptions( case 0: done = true; break; - case 8: - { - int rawValue = input.readEnum(); - filterCase_ = 1; - filter_ = rawValue; - break; - } - case 18: - { - java.lang.String s = input.readStringRequireUtf8(); - filterCase_ = 2; - filter_ = s; - break; - } - case 26: - { - java.lang.String s = input.readStringRequireUtf8(); - filterCase_ = 3; - filter_ = s; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + case 8: { + int rawValue = input.readEnum(); + filterCase_ = 1; + filter_ = rawValue; + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); + filterCase_ = 2; + filter_ = s; + break; + } + case 26: { + java.lang.String s = input.readStringRequireUtf8(); + filterCase_ = 3; + filter_ = s; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -103,41 +84,36 @@ private GatewayListOptions( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.iot.v1.DeviceManagerProto - .internal_static_google_cloud_iot_v1_GatewayListOptions_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.iot.v1.DeviceManagerProto.internal_static_google_cloud_iot_v1_GatewayListOptions_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.iot.v1.DeviceManagerProto - .internal_static_google_cloud_iot_v1_GatewayListOptions_fieldAccessorTable + return com.google.cloud.iot.v1.DeviceManagerProto.internal_static_google_cloud_iot_v1_GatewayListOptions_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.iot.v1.GatewayListOptions.class, - com.google.cloud.iot.v1.GatewayListOptions.Builder.class); + com.google.cloud.iot.v1.GatewayListOptions.class, com.google.cloud.iot.v1.GatewayListOptions.Builder.class); } private int filterCase_ = 0; private java.lang.Object filter_; - public enum FilterCase - implements - com.google.protobuf.Internal.EnumLite, + implements com.google.protobuf.Internal.EnumLite, com.google.protobuf.AbstractMessage.InternalOneOfEnum { GATEWAY_TYPE(1), ASSOCIATIONS_GATEWAY_ID(2), ASSOCIATIONS_DEVICE_ID(3), FILTER_NOT_SET(0); private final int value; - private FilterCase(int value) { this.value = value; } @@ -153,32 +129,26 @@ public static FilterCase valueOf(int value) { public static FilterCase forNumber(int value) { switch (value) { - case 1: - return GATEWAY_TYPE; - case 2: - return ASSOCIATIONS_GATEWAY_ID; - case 3: - return ASSOCIATIONS_DEVICE_ID; - case 0: - return FILTER_NOT_SET; - default: - return null; + case 1: return GATEWAY_TYPE; + case 2: return ASSOCIATIONS_GATEWAY_ID; + case 3: return ASSOCIATIONS_DEVICE_ID; + case 0: return FILTER_NOT_SET; + default: return null; } } - public int getNumber() { return this.value; } }; - public FilterCase getFilterCase() { - return FilterCase.forNumber(filterCase_); + public FilterCase + getFilterCase() { + return FilterCase.forNumber( + filterCase_); } public static final int GATEWAY_TYPE_FIELD_NUMBER = 1; /** - * - * *
    * If `GATEWAY` is specified, only gateways are returned. If `NON_GATEWAY`
    * is specified, only non-gateway devices are returned. If
@@ -186,15 +156,12 @@ public FilterCase getFilterCase() {
    * 
* * .google.cloud.iot.v1.GatewayType gateway_type = 1; - * * @return Whether the gatewayType field is set. */ public boolean hasGatewayType() { return filterCase_ == 1; } /** - * - * *
    * If `GATEWAY` is specified, only gateways are returned. If `NON_GATEWAY`
    * is specified, only non-gateway devices are returned. If
@@ -202,7 +169,6 @@ public boolean hasGatewayType() {
    * 
* * .google.cloud.iot.v1.GatewayType gateway_type = 1; - * * @return The enum numeric value on the wire for gatewayType. */ public int getGatewayTypeValue() { @@ -212,8 +178,6 @@ public int getGatewayTypeValue() { return 0; } /** - * - * *
    * If `GATEWAY` is specified, only gateways are returned. If `NON_GATEWAY`
    * is specified, only non-gateway devices are returned. If
@@ -221,14 +185,13 @@ public int getGatewayTypeValue() {
    * 
* * .google.cloud.iot.v1.GatewayType gateway_type = 1; - * * @return The gatewayType. */ public com.google.cloud.iot.v1.GatewayType getGatewayType() { if (filterCase_ == 1) { @SuppressWarnings("deprecation") - com.google.cloud.iot.v1.GatewayType result = - com.google.cloud.iot.v1.GatewayType.valueOf((java.lang.Integer) filter_); + com.google.cloud.iot.v1.GatewayType result = com.google.cloud.iot.v1.GatewayType.valueOf( + (java.lang.Integer) filter_); return result == null ? com.google.cloud.iot.v1.GatewayType.UNRECOGNIZED : result; } return com.google.cloud.iot.v1.GatewayType.GATEWAY_TYPE_UNSPECIFIED; @@ -236,8 +199,6 @@ public com.google.cloud.iot.v1.GatewayType getGatewayType() { public static final int ASSOCIATIONS_GATEWAY_ID_FIELD_NUMBER = 2; /** - * - * *
    * If set, only devices associated with the specified gateway are returned.
    * The gateway ID can be numeric (`num_id`) or the user-defined string
@@ -246,15 +207,12 @@ public com.google.cloud.iot.v1.GatewayType getGatewayType() {
    * 
* * string associations_gateway_id = 2; - * * @return Whether the associationsGatewayId field is set. */ public boolean hasAssociationsGatewayId() { return filterCase_ == 2; } /** - * - * *
    * If set, only devices associated with the specified gateway are returned.
    * The gateway ID can be numeric (`num_id`) or the user-defined string
@@ -263,7 +221,6 @@ public boolean hasAssociationsGatewayId() {
    * 
* * string associations_gateway_id = 2; - * * @return The associationsGatewayId. */ public java.lang.String getAssociationsGatewayId() { @@ -274,7 +231,8 @@ public java.lang.String getAssociationsGatewayId() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (filterCase_ == 2) { filter_ = s; @@ -283,8 +241,6 @@ public java.lang.String getAssociationsGatewayId() { } } /** - * - * *
    * If set, only devices associated with the specified gateway are returned.
    * The gateway ID can be numeric (`num_id`) or the user-defined string
@@ -293,17 +249,18 @@ public java.lang.String getAssociationsGatewayId() {
    * 
* * string associations_gateway_id = 2; - * * @return The bytes for associationsGatewayId. */ - public com.google.protobuf.ByteString getAssociationsGatewayIdBytes() { + public com.google.protobuf.ByteString + getAssociationsGatewayIdBytes() { java.lang.Object ref = ""; if (filterCase_ == 2) { 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); if (filterCase_ == 2) { filter_ = b; } @@ -315,8 +272,6 @@ public com.google.protobuf.ByteString getAssociationsGatewayIdBytes() { public static final int ASSOCIATIONS_DEVICE_ID_FIELD_NUMBER = 3; /** - * - * *
    * If set, returns only the gateways with which the specified device is
    * associated. The device ID can be numeric (`num_id`) or the user-defined
@@ -325,15 +280,12 @@ public com.google.protobuf.ByteString getAssociationsGatewayIdBytes() {
    * 
* * string associations_device_id = 3; - * * @return Whether the associationsDeviceId field is set. */ public boolean hasAssociationsDeviceId() { return filterCase_ == 3; } /** - * - * *
    * If set, returns only the gateways with which the specified device is
    * associated. The device ID can be numeric (`num_id`) or the user-defined
@@ -342,7 +294,6 @@ public boolean hasAssociationsDeviceId() {
    * 
* * string associations_device_id = 3; - * * @return The associationsDeviceId. */ public java.lang.String getAssociationsDeviceId() { @@ -353,7 +304,8 @@ public java.lang.String getAssociationsDeviceId() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (filterCase_ == 3) { filter_ = s; @@ -362,8 +314,6 @@ public java.lang.String getAssociationsDeviceId() { } } /** - * - * *
    * If set, returns only the gateways with which the specified device is
    * associated. The device ID can be numeric (`num_id`) or the user-defined
@@ -372,17 +322,18 @@ public java.lang.String getAssociationsDeviceId() {
    * 
* * string associations_device_id = 3; - * * @return The bytes for associationsDeviceId. */ - public com.google.protobuf.ByteString getAssociationsDeviceIdBytes() { + public com.google.protobuf.ByteString + getAssociationsDeviceIdBytes() { java.lang.Object ref = ""; if (filterCase_ == 3) { 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); if (filterCase_ == 3) { filter_ = b; } @@ -393,7 +344,6 @@ public com.google.protobuf.ByteString getAssociationsDeviceIdBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -405,7 +355,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 (filterCase_ == 1) { output.writeEnum(1, ((java.lang.Integer) filter_)); } @@ -425,8 +376,8 @@ public int getSerializedSize() { size = 0; if (filterCase_ == 1) { - size += - com.google.protobuf.CodedOutputStream.computeEnumSize(1, ((java.lang.Integer) filter_)); + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(1, ((java.lang.Integer) filter_)); } if (filterCase_ == 2) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, filter_); @@ -442,24 +393,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.iot.v1.GatewayListOptions)) { return super.equals(obj); } - com.google.cloud.iot.v1.GatewayListOptions other = - (com.google.cloud.iot.v1.GatewayListOptions) obj; + com.google.cloud.iot.v1.GatewayListOptions other = (com.google.cloud.iot.v1.GatewayListOptions) obj; if (!getFilterCase().equals(other.getFilterCase())) return false; switch (filterCase_) { case 1: - if (getGatewayTypeValue() != other.getGatewayTypeValue()) return false; + if (getGatewayTypeValue() + != other.getGatewayTypeValue()) return false; break; case 2: - if (!getAssociationsGatewayId().equals(other.getAssociationsGatewayId())) return false; + if (!getAssociationsGatewayId() + .equals(other.getAssociationsGatewayId())) return false; break; case 3: - if (!getAssociationsDeviceId().equals(other.getAssociationsDeviceId())) return false; + if (!getAssociationsDeviceId() + .equals(other.getAssociationsDeviceId())) return false; break; case 0: default: @@ -496,127 +449,118 @@ public int hashCode() { return hash; } - public static com.google.cloud.iot.v1.GatewayListOptions parseFrom(java.nio.ByteBuffer data) + public static com.google.cloud.iot.v1.GatewayListOptions parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.iot.v1.GatewayListOptions parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.iot.v1.GatewayListOptions parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.iot.v1.GatewayListOptions parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.iot.v1.GatewayListOptions parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.iot.v1.GatewayListOptions parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.iot.v1.GatewayListOptions 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.iot.v1.GatewayListOptions parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.iot.v1.GatewayListOptions parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.iot.v1.GatewayListOptions parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.iot.v1.GatewayListOptions parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.iot.v1.GatewayListOptions parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.iot.v1.GatewayListOptions parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.iot.v1.GatewayListOptions prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Options for limiting the list based on gateway type and associations.
    * 
* * Protobuf type {@code google.cloud.iot.v1.GatewayListOptions} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.iot.v1.GatewayListOptions) com.google.cloud.iot.v1.GatewayListOptionsOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.iot.v1.DeviceManagerProto - .internal_static_google_cloud_iot_v1_GatewayListOptions_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.iot.v1.DeviceManagerProto.internal_static_google_cloud_iot_v1_GatewayListOptions_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.iot.v1.DeviceManagerProto - .internal_static_google_cloud_iot_v1_GatewayListOptions_fieldAccessorTable + return com.google.cloud.iot.v1.DeviceManagerProto.internal_static_google_cloud_iot_v1_GatewayListOptions_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.iot.v1.GatewayListOptions.class, - com.google.cloud.iot.v1.GatewayListOptions.Builder.class); + com.google.cloud.iot.v1.GatewayListOptions.class, com.google.cloud.iot.v1.GatewayListOptions.Builder.class); } // Construct using com.google.cloud.iot.v1.GatewayListOptions.newBuilder() @@ -624,15 +568,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(); @@ -642,9 +587,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.iot.v1.DeviceManagerProto - .internal_static_google_cloud_iot_v1_GatewayListOptions_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.iot.v1.DeviceManagerProto.internal_static_google_cloud_iot_v1_GatewayListOptions_descriptor; } @java.lang.Override @@ -663,8 +608,7 @@ public com.google.cloud.iot.v1.GatewayListOptions build() { @java.lang.Override public com.google.cloud.iot.v1.GatewayListOptions buildPartial() { - com.google.cloud.iot.v1.GatewayListOptions result = - new com.google.cloud.iot.v1.GatewayListOptions(this); + com.google.cloud.iot.v1.GatewayListOptions result = new com.google.cloud.iot.v1.GatewayListOptions(this); if (filterCase_ == 1) { result.filter_ = filter_; } @@ -683,39 +627,38 @@ public com.google.cloud.iot.v1.GatewayListOptions buildPartial() { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.iot.v1.GatewayListOptions) { - return mergeFrom((com.google.cloud.iot.v1.GatewayListOptions) other); + return mergeFrom((com.google.cloud.iot.v1.GatewayListOptions)other); } else { super.mergeFrom(other); return this; @@ -725,29 +668,25 @@ public Builder mergeFrom(com.google.protobuf.Message other) { public Builder mergeFrom(com.google.cloud.iot.v1.GatewayListOptions other) { if (other == com.google.cloud.iot.v1.GatewayListOptions.getDefaultInstance()) return this; switch (other.getFilterCase()) { - case GATEWAY_TYPE: - { - setGatewayTypeValue(other.getGatewayTypeValue()); - break; - } - case ASSOCIATIONS_GATEWAY_ID: - { - filterCase_ = 2; - filter_ = other.filter_; - onChanged(); - break; - } - case ASSOCIATIONS_DEVICE_ID: - { - filterCase_ = 3; - filter_ = other.filter_; - onChanged(); - break; - } - case FILTER_NOT_SET: - { - break; - } + case GATEWAY_TYPE: { + setGatewayTypeValue(other.getGatewayTypeValue()); + break; + } + case ASSOCIATIONS_GATEWAY_ID: { + filterCase_ = 2; + filter_ = other.filter_; + onChanged(); + break; + } + case ASSOCIATIONS_DEVICE_ID: { + filterCase_ = 3; + filter_ = other.filter_; + onChanged(); + break; + } + case FILTER_NOT_SET: { + break; + } } this.mergeUnknownFields(other.unknownFields); onChanged(); @@ -777,12 +716,12 @@ public Builder mergeFrom( } return this; } - private int filterCase_ = 0; private java.lang.Object filter_; - - public FilterCase getFilterCase() { - return FilterCase.forNumber(filterCase_); + public FilterCase + getFilterCase() { + return FilterCase.forNumber( + filterCase_); } public Builder clearFilter() { @@ -792,9 +731,8 @@ public Builder clearFilter() { return this; } + /** - * - * *
      * If `GATEWAY` is specified, only gateways are returned. If `NON_GATEWAY`
      * is specified, only non-gateway devices are returned. If
@@ -802,7 +740,6 @@ public Builder clearFilter() {
      * 
* * .google.cloud.iot.v1.GatewayType gateway_type = 1; - * * @return Whether the gatewayType field is set. */ @java.lang.Override @@ -810,8 +747,6 @@ public boolean hasGatewayType() { return filterCase_ == 1; } /** - * - * *
      * If `GATEWAY` is specified, only gateways are returned. If `NON_GATEWAY`
      * is specified, only non-gateway devices are returned. If
@@ -819,7 +754,6 @@ public boolean hasGatewayType() {
      * 
* * .google.cloud.iot.v1.GatewayType gateway_type = 1; - * * @return The enum numeric value on the wire for gatewayType. */ @java.lang.Override @@ -830,8 +764,6 @@ public int getGatewayTypeValue() { return 0; } /** - * - * *
      * If `GATEWAY` is specified, only gateways are returned. If `NON_GATEWAY`
      * is specified, only non-gateway devices are returned. If
@@ -839,7 +771,6 @@ public int getGatewayTypeValue() {
      * 
* * .google.cloud.iot.v1.GatewayType gateway_type = 1; - * * @param value The enum numeric value on the wire for gatewayType to set. * @return This builder for chaining. */ @@ -850,8 +781,6 @@ public Builder setGatewayTypeValue(int value) { return this; } /** - * - * *
      * If `GATEWAY` is specified, only gateways are returned. If `NON_GATEWAY`
      * is specified, only non-gateway devices are returned. If
@@ -859,22 +788,19 @@ public Builder setGatewayTypeValue(int value) {
      * 
* * .google.cloud.iot.v1.GatewayType gateway_type = 1; - * * @return The gatewayType. */ @java.lang.Override public com.google.cloud.iot.v1.GatewayType getGatewayType() { if (filterCase_ == 1) { @SuppressWarnings("deprecation") - com.google.cloud.iot.v1.GatewayType result = - com.google.cloud.iot.v1.GatewayType.valueOf((java.lang.Integer) filter_); + com.google.cloud.iot.v1.GatewayType result = com.google.cloud.iot.v1.GatewayType.valueOf( + (java.lang.Integer) filter_); return result == null ? com.google.cloud.iot.v1.GatewayType.UNRECOGNIZED : result; } return com.google.cloud.iot.v1.GatewayType.GATEWAY_TYPE_UNSPECIFIED; } /** - * - * *
      * If `GATEWAY` is specified, only gateways are returned. If `NON_GATEWAY`
      * is specified, only non-gateway devices are returned. If
@@ -882,7 +808,6 @@ public com.google.cloud.iot.v1.GatewayType getGatewayType() {
      * 
* * .google.cloud.iot.v1.GatewayType gateway_type = 1; - * * @param value The gatewayType to set. * @return This builder for chaining. */ @@ -896,8 +821,6 @@ public Builder setGatewayType(com.google.cloud.iot.v1.GatewayType value) { return this; } /** - * - * *
      * If `GATEWAY` is specified, only gateways are returned. If `NON_GATEWAY`
      * is specified, only non-gateway devices are returned. If
@@ -905,7 +828,6 @@ public Builder setGatewayType(com.google.cloud.iot.v1.GatewayType value) {
      * 
* * .google.cloud.iot.v1.GatewayType gateway_type = 1; - * * @return This builder for chaining. */ public Builder clearGatewayType() { @@ -918,8 +840,6 @@ public Builder clearGatewayType() { } /** - * - * *
      * If set, only devices associated with the specified gateway are returned.
      * The gateway ID can be numeric (`num_id`) or the user-defined string
@@ -928,7 +848,6 @@ public Builder clearGatewayType() {
      * 
* * string associations_gateway_id = 2; - * * @return Whether the associationsGatewayId field is set. */ @java.lang.Override @@ -936,8 +855,6 @@ public boolean hasAssociationsGatewayId() { return filterCase_ == 2; } /** - * - * *
      * If set, only devices associated with the specified gateway are returned.
      * The gateway ID can be numeric (`num_id`) or the user-defined string
@@ -946,7 +863,6 @@ public boolean hasAssociationsGatewayId() {
      * 
* * string associations_gateway_id = 2; - * * @return The associationsGatewayId. */ @java.lang.Override @@ -956,7 +872,8 @@ public java.lang.String getAssociationsGatewayId() { 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(); if (filterCase_ == 2) { filter_ = s; @@ -967,8 +884,6 @@ public java.lang.String getAssociationsGatewayId() { } } /** - * - * *
      * If set, only devices associated with the specified gateway are returned.
      * The gateway ID can be numeric (`num_id`) or the user-defined string
@@ -977,18 +892,19 @@ public java.lang.String getAssociationsGatewayId() {
      * 
* * string associations_gateway_id = 2; - * * @return The bytes for associationsGatewayId. */ @java.lang.Override - public com.google.protobuf.ByteString getAssociationsGatewayIdBytes() { + public com.google.protobuf.ByteString + getAssociationsGatewayIdBytes() { java.lang.Object ref = ""; if (filterCase_ == 2) { 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); if (filterCase_ == 2) { filter_ = b; } @@ -998,8 +914,6 @@ public com.google.protobuf.ByteString getAssociationsGatewayIdBytes() { } } /** - * - * *
      * If set, only devices associated with the specified gateway are returned.
      * The gateway ID can be numeric (`num_id`) or the user-defined string
@@ -1008,22 +922,20 @@ public com.google.protobuf.ByteString getAssociationsGatewayIdBytes() {
      * 
* * string associations_gateway_id = 2; - * * @param value The associationsGatewayId to set. * @return This builder for chaining. */ - public Builder setAssociationsGatewayId(java.lang.String value) { + public Builder setAssociationsGatewayId( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - filterCase_ = 2; + throw new NullPointerException(); + } + filterCase_ = 2; filter_ = value; onChanged(); return this; } /** - * - * *
      * If set, only devices associated with the specified gateway are returned.
      * The gateway ID can be numeric (`num_id`) or the user-defined string
@@ -1032,7 +944,6 @@ public Builder setAssociationsGatewayId(java.lang.String value) {
      * 
* * string associations_gateway_id = 2; - * * @return This builder for chaining. */ public Builder clearAssociationsGatewayId() { @@ -1044,8 +955,6 @@ public Builder clearAssociationsGatewayId() { return this; } /** - * - * *
      * If set, only devices associated with the specified gateway are returned.
      * The gateway ID can be numeric (`num_id`) or the user-defined string
@@ -1054,15 +963,15 @@ public Builder clearAssociationsGatewayId() {
      * 
* * string associations_gateway_id = 2; - * * @param value The bytes for associationsGatewayId to set. * @return This builder for chaining. */ - public Builder setAssociationsGatewayIdBytes(com.google.protobuf.ByteString value) { + public Builder setAssociationsGatewayIdBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); filterCase_ = 2; filter_ = value; onChanged(); @@ -1070,8 +979,6 @@ public Builder setAssociationsGatewayIdBytes(com.google.protobuf.ByteString valu } /** - * - * *
      * If set, returns only the gateways with which the specified device is
      * associated. The device ID can be numeric (`num_id`) or the user-defined
@@ -1080,7 +987,6 @@ public Builder setAssociationsGatewayIdBytes(com.google.protobuf.ByteString valu
      * 
* * string associations_device_id = 3; - * * @return Whether the associationsDeviceId field is set. */ @java.lang.Override @@ -1088,8 +994,6 @@ public boolean hasAssociationsDeviceId() { return filterCase_ == 3; } /** - * - * *
      * If set, returns only the gateways with which the specified device is
      * associated. The device ID can be numeric (`num_id`) or the user-defined
@@ -1098,7 +1002,6 @@ public boolean hasAssociationsDeviceId() {
      * 
* * string associations_device_id = 3; - * * @return The associationsDeviceId. */ @java.lang.Override @@ -1108,7 +1011,8 @@ public java.lang.String getAssociationsDeviceId() { 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(); if (filterCase_ == 3) { filter_ = s; @@ -1119,8 +1023,6 @@ public java.lang.String getAssociationsDeviceId() { } } /** - * - * *
      * If set, returns only the gateways with which the specified device is
      * associated. The device ID can be numeric (`num_id`) or the user-defined
@@ -1129,18 +1031,19 @@ public java.lang.String getAssociationsDeviceId() {
      * 
* * string associations_device_id = 3; - * * @return The bytes for associationsDeviceId. */ @java.lang.Override - public com.google.protobuf.ByteString getAssociationsDeviceIdBytes() { + public com.google.protobuf.ByteString + getAssociationsDeviceIdBytes() { java.lang.Object ref = ""; if (filterCase_ == 3) { 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); if (filterCase_ == 3) { filter_ = b; } @@ -1150,8 +1053,6 @@ public com.google.protobuf.ByteString getAssociationsDeviceIdBytes() { } } /** - * - * *
      * If set, returns only the gateways with which the specified device is
      * associated. The device ID can be numeric (`num_id`) or the user-defined
@@ -1160,22 +1061,20 @@ public com.google.protobuf.ByteString getAssociationsDeviceIdBytes() {
      * 
* * string associations_device_id = 3; - * * @param value The associationsDeviceId to set. * @return This builder for chaining. */ - public Builder setAssociationsDeviceId(java.lang.String value) { + public Builder setAssociationsDeviceId( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - filterCase_ = 3; + throw new NullPointerException(); + } + filterCase_ = 3; filter_ = value; onChanged(); return this; } /** - * - * *
      * If set, returns only the gateways with which the specified device is
      * associated. The device ID can be numeric (`num_id`) or the user-defined
@@ -1184,7 +1083,6 @@ public Builder setAssociationsDeviceId(java.lang.String value) {
      * 
* * string associations_device_id = 3; - * * @return This builder for chaining. */ public Builder clearAssociationsDeviceId() { @@ -1196,8 +1094,6 @@ public Builder clearAssociationsDeviceId() { return this; } /** - * - * *
      * If set, returns only the gateways with which the specified device is
      * associated. The device ID can be numeric (`num_id`) or the user-defined
@@ -1206,23 +1102,23 @@ public Builder clearAssociationsDeviceId() {
      * 
* * string associations_device_id = 3; - * * @param value The bytes for associationsDeviceId to set. * @return This builder for chaining. */ - public Builder setAssociationsDeviceIdBytes(com.google.protobuf.ByteString value) { + public Builder setAssociationsDeviceIdBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); filterCase_ = 3; filter_ = value; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1232,12 +1128,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.iot.v1.GatewayListOptions) } // @@protoc_insertion_point(class_scope:google.cloud.iot.v1.GatewayListOptions) private static final com.google.cloud.iot.v1.GatewayListOptions DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.iot.v1.GatewayListOptions(); } @@ -1246,16 +1142,16 @@ public static com.google.cloud.iot.v1.GatewayListOptions getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public GatewayListOptions parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new GatewayListOptions(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GatewayListOptions parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new GatewayListOptions(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1270,4 +1166,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.iot.v1.GatewayListOptions getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-iot-v1/src/main/java/com/google/cloud/iot/v1/GatewayListOptionsOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-iot-v1/src/main/java/com/google/cloud/iot/v1/GatewayListOptionsOrBuilder.java similarity index 82% rename from proto-google-cloud-iot-v1/src/main/java/com/google/cloud/iot/v1/GatewayListOptionsOrBuilder.java rename to owl-bot-staging/v1/proto-google-cloud-iot-v1/src/main/java/com/google/cloud/iot/v1/GatewayListOptionsOrBuilder.java index e0b4861e..bdf10aed 100644 --- a/proto-google-cloud-iot-v1/src/main/java/com/google/cloud/iot/v1/GatewayListOptionsOrBuilder.java +++ b/owl-bot-staging/v1/proto-google-cloud-iot-v1/src/main/java/com/google/cloud/iot/v1/GatewayListOptionsOrBuilder.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/iot/v1/device_manager.proto package com.google.cloud.iot.v1; -public interface GatewayListOptionsOrBuilder - extends +public interface GatewayListOptionsOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.iot.v1.GatewayListOptions) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * If `GATEWAY` is specified, only gateways are returned. If `NON_GATEWAY`
    * is specified, only non-gateway devices are returned. If
@@ -33,13 +15,10 @@ public interface GatewayListOptionsOrBuilder
    * 
* * .google.cloud.iot.v1.GatewayType gateway_type = 1; - * * @return Whether the gatewayType field is set. */ boolean hasGatewayType(); /** - * - * *
    * If `GATEWAY` is specified, only gateways are returned. If `NON_GATEWAY`
    * is specified, only non-gateway devices are returned. If
@@ -47,13 +26,10 @@ public interface GatewayListOptionsOrBuilder
    * 
* * .google.cloud.iot.v1.GatewayType gateway_type = 1; - * * @return The enum numeric value on the wire for gatewayType. */ int getGatewayTypeValue(); /** - * - * *
    * If `GATEWAY` is specified, only gateways are returned. If `NON_GATEWAY`
    * is specified, only non-gateway devices are returned. If
@@ -61,14 +37,11 @@ public interface GatewayListOptionsOrBuilder
    * 
* * .google.cloud.iot.v1.GatewayType gateway_type = 1; - * * @return The gatewayType. */ com.google.cloud.iot.v1.GatewayType getGatewayType(); /** - * - * *
    * If set, only devices associated with the specified gateway are returned.
    * The gateway ID can be numeric (`num_id`) or the user-defined string
@@ -77,13 +50,10 @@ public interface GatewayListOptionsOrBuilder
    * 
* * string associations_gateway_id = 2; - * * @return Whether the associationsGatewayId field is set. */ boolean hasAssociationsGatewayId(); /** - * - * *
    * If set, only devices associated with the specified gateway are returned.
    * The gateway ID can be numeric (`num_id`) or the user-defined string
@@ -92,13 +62,10 @@ public interface GatewayListOptionsOrBuilder
    * 
* * string associations_gateway_id = 2; - * * @return The associationsGatewayId. */ java.lang.String getAssociationsGatewayId(); /** - * - * *
    * If set, only devices associated with the specified gateway are returned.
    * The gateway ID can be numeric (`num_id`) or the user-defined string
@@ -107,14 +74,12 @@ public interface GatewayListOptionsOrBuilder
    * 
* * string associations_gateway_id = 2; - * * @return The bytes for associationsGatewayId. */ - com.google.protobuf.ByteString getAssociationsGatewayIdBytes(); + com.google.protobuf.ByteString + getAssociationsGatewayIdBytes(); /** - * - * *
    * If set, returns only the gateways with which the specified device is
    * associated. The device ID can be numeric (`num_id`) or the user-defined
@@ -123,13 +88,10 @@ public interface GatewayListOptionsOrBuilder
    * 
* * string associations_device_id = 3; - * * @return Whether the associationsDeviceId field is set. */ boolean hasAssociationsDeviceId(); /** - * - * *
    * If set, returns only the gateways with which the specified device is
    * associated. The device ID can be numeric (`num_id`) or the user-defined
@@ -138,13 +100,10 @@ public interface GatewayListOptionsOrBuilder
    * 
* * string associations_device_id = 3; - * * @return The associationsDeviceId. */ java.lang.String getAssociationsDeviceId(); /** - * - * *
    * If set, returns only the gateways with which the specified device is
    * associated. The device ID can be numeric (`num_id`) or the user-defined
@@ -153,10 +112,10 @@ public interface GatewayListOptionsOrBuilder
    * 
* * string associations_device_id = 3; - * * @return The bytes for associationsDeviceId. */ - com.google.protobuf.ByteString getAssociationsDeviceIdBytes(); + com.google.protobuf.ByteString + getAssociationsDeviceIdBytes(); public com.google.cloud.iot.v1.GatewayListOptions.FilterCase getFilterCase(); } diff --git a/proto-google-cloud-iot-v1/src/main/java/com/google/cloud/iot/v1/GatewayType.java b/owl-bot-staging/v1/proto-google-cloud-iot-v1/src/main/java/com/google/cloud/iot/v1/GatewayType.java similarity index 66% rename from proto-google-cloud-iot-v1/src/main/java/com/google/cloud/iot/v1/GatewayType.java rename to owl-bot-staging/v1/proto-google-cloud-iot-v1/src/main/java/com/google/cloud/iot/v1/GatewayType.java index 569e6959..0443a4ec 100644 --- a/proto-google-cloud-iot-v1/src/main/java/com/google/cloud/iot/v1/GatewayType.java +++ b/owl-bot-staging/v1/proto-google-cloud-iot-v1/src/main/java/com/google/cloud/iot/v1/GatewayType.java @@ -1,36 +1,18 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/iot/v1/resources.proto package com.google.cloud.iot.v1; /** - * - * *
  * Gateway type.
  * 
* * Protobuf enum {@code google.cloud.iot.v1.GatewayType} */ -public enum GatewayType implements com.google.protobuf.ProtocolMessageEnum { +public enum GatewayType + implements com.google.protobuf.ProtocolMessageEnum { /** - * - * *
    * If unspecified, the device is considered a non-gateway device.
    * 
@@ -39,8 +21,6 @@ public enum GatewayType implements com.google.protobuf.ProtocolMessageEnum { */ GATEWAY_TYPE_UNSPECIFIED(0), /** - * - * *
    * The device is a gateway.
    * 
@@ -49,8 +29,6 @@ public enum GatewayType implements com.google.protobuf.ProtocolMessageEnum { */ GATEWAY(1), /** - * - * *
    * The device is not a gateway.
    * 
@@ -62,8 +40,6 @@ public enum GatewayType implements com.google.protobuf.ProtocolMessageEnum { ; /** - * - * *
    * If unspecified, the device is considered a non-gateway device.
    * 
@@ -72,8 +48,6 @@ public enum GatewayType implements com.google.protobuf.ProtocolMessageEnum { */ public static final int GATEWAY_TYPE_UNSPECIFIED_VALUE = 0; /** - * - * *
    * The device is a gateway.
    * 
@@ -82,8 +56,6 @@ public enum GatewayType implements com.google.protobuf.ProtocolMessageEnum { */ public static final int GATEWAY_VALUE = 1; /** - * - * *
    * The device is not a gateway.
    * 
@@ -92,6 +64,7 @@ public enum GatewayType implements com.google.protobuf.ProtocolMessageEnum { */ public static final int NON_GATEWAY_VALUE = 2; + public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( @@ -116,49 +89,49 @@ public static GatewayType valueOf(int value) { */ public static GatewayType forNumber(int value) { switch (value) { - case 0: - return GATEWAY_TYPE_UNSPECIFIED; - case 1: - return GATEWAY; - case 2: - return NON_GATEWAY; - default: - return null; + case 0: return GATEWAY_TYPE_UNSPECIFIED; + case 1: return GATEWAY; + case 2: return NON_GATEWAY; + 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 GatewayType findValueByNumber(int number) { - return GatewayType.forNumber(number); - } - }; - - public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { + private static final com.google.protobuf.Internal.EnumLiteMap< + GatewayType> internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public GatewayType findValueByNumber(int number) { + return GatewayType.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.iot.v1.ResourcesProto.getDescriptor().getEnumTypes().get(3); } private static final GatewayType[] VALUES = values(); - public static GatewayType valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + public static GatewayType 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; @@ -174,3 +147,4 @@ private GatewayType(int value) { // @@protoc_insertion_point(enum_scope:google.cloud.iot.v1.GatewayType) } + diff --git a/proto-google-cloud-iot-v1/src/main/java/com/google/cloud/iot/v1/GetDeviceRegistryRequest.java b/owl-bot-staging/v1/proto-google-cloud-iot-v1/src/main/java/com/google/cloud/iot/v1/GetDeviceRegistryRequest.java similarity index 66% rename from proto-google-cloud-iot-v1/src/main/java/com/google/cloud/iot/v1/GetDeviceRegistryRequest.java rename to owl-bot-staging/v1/proto-google-cloud-iot-v1/src/main/java/com/google/cloud/iot/v1/GetDeviceRegistryRequest.java index 6fa2086d..4328dbcc 100644 --- a/proto-google-cloud-iot-v1/src/main/java/com/google/cloud/iot/v1/GetDeviceRegistryRequest.java +++ b/owl-bot-staging/v1/proto-google-cloud-iot-v1/src/main/java/com/google/cloud/iot/v1/GetDeviceRegistryRequest.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/iot/v1/device_manager.proto package com.google.cloud.iot.v1; /** - * - * *
  * Request for `GetDeviceRegistry`.
  * 
* * Protobuf type {@code google.cloud.iot.v1.GetDeviceRegistryRequest} */ -public final class GetDeviceRegistryRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class GetDeviceRegistryRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.iot.v1.GetDeviceRegistryRequest) GetDeviceRegistryRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use GetDeviceRegistryRequest.newBuilder() to construct. private GetDeviceRegistryRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private GetDeviceRegistryRequest() { name_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new GetDeviceRegistryRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private GetDeviceRegistryRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -70,20 +53,19 @@ private GetDeviceRegistryRequest( 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,42 +73,35 @@ private GetDeviceRegistryRequest( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.iot.v1.DeviceManagerProto - .internal_static_google_cloud_iot_v1_GetDeviceRegistryRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.iot.v1.DeviceManagerProto.internal_static_google_cloud_iot_v1_GetDeviceRegistryRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.iot.v1.DeviceManagerProto - .internal_static_google_cloud_iot_v1_GetDeviceRegistryRequest_fieldAccessorTable + return com.google.cloud.iot.v1.DeviceManagerProto.internal_static_google_cloud_iot_v1_GetDeviceRegistryRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.iot.v1.GetDeviceRegistryRequest.class, - com.google.cloud.iot.v1.GetDeviceRegistryRequest.Builder.class); + com.google.cloud.iot.v1.GetDeviceRegistryRequest.class, com.google.cloud.iot.v1.GetDeviceRegistryRequest.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** - * - * *
    * Required. The name of the device registry. For example,
    * `projects/example-project/locations/us-central1/registries/my-registry`.
    * 
* - * - * string name = 1 [(.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 @@ -135,32 +110,30 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** - * - * *
    * Required. The name of the device registry. For example,
    * `projects/example-project/locations/us-central1/registries/my-registry`.
    * 
* - * - * string name = 1 [(.google.api.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 { @@ -169,7 +142,6 @@ public com.google.protobuf.ByteString getNameBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -181,7 +153,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -205,15 +178,15 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.iot.v1.GetDeviceRegistryRequest)) { return super.equals(obj); } - com.google.cloud.iot.v1.GetDeviceRegistryRequest other = - (com.google.cloud.iot.v1.GetDeviceRegistryRequest) obj; + com.google.cloud.iot.v1.GetDeviceRegistryRequest other = (com.google.cloud.iot.v1.GetDeviceRegistryRequest) obj; - if (!getName().equals(other.getName())) return false; + if (!getName() + .equals(other.getName())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -232,127 +205,118 @@ public int hashCode() { return hash; } - public static com.google.cloud.iot.v1.GetDeviceRegistryRequest parseFrom(java.nio.ByteBuffer data) + public static com.google.cloud.iot.v1.GetDeviceRegistryRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.iot.v1.GetDeviceRegistryRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.iot.v1.GetDeviceRegistryRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.iot.v1.GetDeviceRegistryRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.iot.v1.GetDeviceRegistryRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.iot.v1.GetDeviceRegistryRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.iot.v1.GetDeviceRegistryRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.iot.v1.GetDeviceRegistryRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.iot.v1.GetDeviceRegistryRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.iot.v1.GetDeviceRegistryRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.iot.v1.GetDeviceRegistryRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.iot.v1.GetDeviceRegistryRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.iot.v1.GetDeviceRegistryRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.iot.v1.GetDeviceRegistryRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.iot.v1.GetDeviceRegistryRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected 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 `GetDeviceRegistry`.
    * 
* * Protobuf type {@code google.cloud.iot.v1.GetDeviceRegistryRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.iot.v1.GetDeviceRegistryRequest) com.google.cloud.iot.v1.GetDeviceRegistryRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.iot.v1.DeviceManagerProto - .internal_static_google_cloud_iot_v1_GetDeviceRegistryRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.iot.v1.DeviceManagerProto.internal_static_google_cloud_iot_v1_GetDeviceRegistryRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.iot.v1.DeviceManagerProto - .internal_static_google_cloud_iot_v1_GetDeviceRegistryRequest_fieldAccessorTable + return com.google.cloud.iot.v1.DeviceManagerProto.internal_static_google_cloud_iot_v1_GetDeviceRegistryRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.iot.v1.GetDeviceRegistryRequest.class, - com.google.cloud.iot.v1.GetDeviceRegistryRequest.Builder.class); + com.google.cloud.iot.v1.GetDeviceRegistryRequest.class, com.google.cloud.iot.v1.GetDeviceRegistryRequest.Builder.class); } // Construct using com.google.cloud.iot.v1.GetDeviceRegistryRequest.newBuilder() @@ -360,15 +324,16 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -378,9 +343,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.iot.v1.DeviceManagerProto - .internal_static_google_cloud_iot_v1_GetDeviceRegistryRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.iot.v1.DeviceManagerProto.internal_static_google_cloud_iot_v1_GetDeviceRegistryRequest_descriptor; } @java.lang.Override @@ -399,8 +364,7 @@ public com.google.cloud.iot.v1.GetDeviceRegistryRequest build() { @java.lang.Override public com.google.cloud.iot.v1.GetDeviceRegistryRequest buildPartial() { - com.google.cloud.iot.v1.GetDeviceRegistryRequest result = - new com.google.cloud.iot.v1.GetDeviceRegistryRequest(this); + com.google.cloud.iot.v1.GetDeviceRegistryRequest result = new com.google.cloud.iot.v1.GetDeviceRegistryRequest(this); result.name_ = name_; onBuilt(); return result; @@ -410,39 +374,38 @@ public com.google.cloud.iot.v1.GetDeviceRegistryRequest buildPartial() { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.iot.v1.GetDeviceRegistryRequest) { - return mergeFrom((com.google.cloud.iot.v1.GetDeviceRegistryRequest) other); + return mergeFrom((com.google.cloud.iot.v1.GetDeviceRegistryRequest)other); } else { super.mergeFrom(other); return this; @@ -450,8 +413,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.iot.v1.GetDeviceRegistryRequest other) { - if (other == com.google.cloud.iot.v1.GetDeviceRegistryRequest.getDefaultInstance()) - return this; + if (other == com.google.cloud.iot.v1.GetDeviceRegistryRequest.getDefaultInstance()) return this; if (!other.getName().isEmpty()) { name_ = other.name_; onChanged(); @@ -487,23 +449,19 @@ public Builder mergeFrom( private java.lang.Object name_ = ""; /** - * - * *
      * Required. The name of the device registry. For example,
      * `projects/example-project/locations/us-central1/registries/my-registry`.
      * 
* - * - * string name = 1 [(.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; @@ -512,24 +470,21 @@ public java.lang.String getName() { } } /** - * - * *
      * Required. The name of the device registry. For example,
      * `projects/example-project/locations/us-central1/registries/my-registry`.
      * 
* - * - * string name = 1 [(.google.api.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 { @@ -537,77 +492,64 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
      * Required. The name of the device registry. For example,
      * `projects/example-project/locations/us-central1/registries/my-registry`.
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The name to set. * @return This builder for chaining. */ - public Builder setName(java.lang.String value) { + public Builder setName( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + name_ = value; onChanged(); return this; } /** - * - * *
      * Required. The name of the device registry. For example,
      * `projects/example-project/locations/us-central1/registries/my-registry`.
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return This builder for chaining. */ public Builder clearName() { - + name_ = getDefaultInstance().getName(); onChanged(); return this; } /** - * - * *
      * Required. The name of the device registry. For example,
      * `projects/example-project/locations/us-central1/registries/my-registry`.
      * 
* - * - * 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); } @@ -617,12 +559,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.iot.v1.GetDeviceRegistryRequest) } // @@protoc_insertion_point(class_scope:google.cloud.iot.v1.GetDeviceRegistryRequest) private static final com.google.cloud.iot.v1.GetDeviceRegistryRequest DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.iot.v1.GetDeviceRegistryRequest(); } @@ -631,16 +573,16 @@ public static com.google.cloud.iot.v1.GetDeviceRegistryRequest getDefaultInstanc return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public GetDeviceRegistryRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new GetDeviceRegistryRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GetDeviceRegistryRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new GetDeviceRegistryRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -655,4 +597,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.iot.v1.GetDeviceRegistryRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/owl-bot-staging/v1/proto-google-cloud-iot-v1/src/main/java/com/google/cloud/iot/v1/GetDeviceRegistryRequestOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-iot-v1/src/main/java/com/google/cloud/iot/v1/GetDeviceRegistryRequestOrBuilder.java new file mode 100644 index 00000000..cc13fbb5 --- /dev/null +++ b/owl-bot-staging/v1/proto-google-cloud-iot-v1/src/main/java/com/google/cloud/iot/v1/GetDeviceRegistryRequestOrBuilder.java @@ -0,0 +1,31 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/iot/v1/device_manager.proto + +package com.google.cloud.iot.v1; + +public interface GetDeviceRegistryRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.cloud.iot.v1.GetDeviceRegistryRequest) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * Required. The name of the device registry. For example,
+   * `projects/example-project/locations/us-central1/registries/my-registry`.
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The name. + */ + java.lang.String getName(); + /** + *
+   * Required. The name of the device registry. For example,
+   * `projects/example-project/locations/us-central1/registries/my-registry`.
+   * 
+ * + * 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-iot-v1/src/main/java/com/google/cloud/iot/v1/GetDeviceRequest.java b/owl-bot-staging/v1/proto-google-cloud-iot-v1/src/main/java/com/google/cloud/iot/v1/GetDeviceRequest.java similarity index 71% rename from proto-google-cloud-iot-v1/src/main/java/com/google/cloud/iot/v1/GetDeviceRequest.java rename to owl-bot-staging/v1/proto-google-cloud-iot-v1/src/main/java/com/google/cloud/iot/v1/GetDeviceRequest.java index d4b8683f..c5d72a96 100644 --- a/proto-google-cloud-iot-v1/src/main/java/com/google/cloud/iot/v1/GetDeviceRequest.java +++ b/owl-bot-staging/v1/proto-google-cloud-iot-v1/src/main/java/com/google/cloud/iot/v1/GetDeviceRequest.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/iot/v1/device_manager.proto package com.google.cloud.iot.v1; /** - * - * *
  * Request for `GetDevice`.
  * 
* * Protobuf type {@code google.cloud.iot.v1.GetDeviceRequest} */ -public final class GetDeviceRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class GetDeviceRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.iot.v1.GetDeviceRequest) GetDeviceRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use GetDeviceRequest.newBuilder() to construct. private GetDeviceRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private GetDeviceRequest() { name_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new GetDeviceRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private GetDeviceRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -70,35 +53,32 @@ private GetDeviceRequest( 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 (fieldMask_ != null) { + subBuilder = fieldMask_.toBuilder(); } - case 18: - { - com.google.protobuf.FieldMask.Builder subBuilder = null; - if (fieldMask_ != null) { - subBuilder = fieldMask_.toBuilder(); - } - fieldMask_ = - input.readMessage(com.google.protobuf.FieldMask.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(fieldMask_); - fieldMask_ = subBuilder.buildPartial(); - } - - break; + fieldMask_ = input.readMessage(com.google.protobuf.FieldMask.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(fieldMask_); + fieldMask_ = 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) { @@ -106,43 +86,36 @@ private GetDeviceRequest( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.iot.v1.DeviceManagerProto - .internal_static_google_cloud_iot_v1_GetDeviceRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.iot.v1.DeviceManagerProto.internal_static_google_cloud_iot_v1_GetDeviceRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.iot.v1.DeviceManagerProto - .internal_static_google_cloud_iot_v1_GetDeviceRequest_fieldAccessorTable + return com.google.cloud.iot.v1.DeviceManagerProto.internal_static_google_cloud_iot_v1_GetDeviceRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.iot.v1.GetDeviceRequest.class, - com.google.cloud.iot.v1.GetDeviceRequest.Builder.class); + com.google.cloud.iot.v1.GetDeviceRequest.class, com.google.cloud.iot.v1.GetDeviceRequest.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** - * - * *
    * Required. The name of the device. For example,
    * `projects/p0/locations/us-central1/registries/registry0/devices/device0` or
    * `projects/p0/locations/us-central1/registries/registry0/devices/{num_id}`.
    * 
* - * - * string name = 1 [(.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 @@ -151,33 +124,31 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** - * - * *
    * Required. The name of the device. For example,
    * `projects/p0/locations/us-central1/registries/registry0/devices/device0` or
    * `projects/p0/locations/us-central1/registries/registry0/devices/{num_id}`.
    * 
* - * - * string name = 1 [(.google.api.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 { @@ -188,8 +159,6 @@ public com.google.protobuf.ByteString getNameBytes() { public static final int FIELD_MASK_FIELD_NUMBER = 2; private com.google.protobuf.FieldMask fieldMask_; /** - * - * *
    * The fields of the `Device` resource to be returned in the response. If the
    * field mask is unset or empty, all fields are returned. Fields have to be
@@ -197,7 +166,6 @@ public com.google.protobuf.ByteString getNameBytes() {
    * 
* * .google.protobuf.FieldMask field_mask = 2; - * * @return Whether the fieldMask field is set. */ @java.lang.Override @@ -205,8 +173,6 @@ public boolean hasFieldMask() { return fieldMask_ != null; } /** - * - * *
    * The fields of the `Device` resource to be returned in the response. If the
    * field mask is unset or empty, all fields are returned. Fields have to be
@@ -214,7 +180,6 @@ public boolean hasFieldMask() {
    * 
* * .google.protobuf.FieldMask field_mask = 2; - * * @return The fieldMask. */ @java.lang.Override @@ -222,8 +187,6 @@ public com.google.protobuf.FieldMask getFieldMask() { return fieldMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : fieldMask_; } /** - * - * *
    * The fields of the `Device` resource to be returned in the response. If the
    * field mask is unset or empty, all fields are returned. Fields have to be
@@ -238,7 +201,6 @@ public com.google.protobuf.FieldMaskOrBuilder getFieldMaskOrBuilder() {
   }
 
   private byte memoizedIsInitialized = -1;
-
   @java.lang.Override
   public final boolean isInitialized() {
     byte isInitialized = memoizedIsInitialized;
@@ -250,7 +212,8 @@ public final boolean isInitialized() {
   }
 
   @java.lang.Override
-  public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
+  public void writeTo(com.google.protobuf.CodedOutputStream output)
+                      throws java.io.IOException {
     if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) {
       com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_);
     }
@@ -270,7 +233,8 @@ public int getSerializedSize() {
       size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_);
     }
     if (fieldMask_ != null) {
-      size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getFieldMask());
+      size += com.google.protobuf.CodedOutputStream
+        .computeMessageSize(2, getFieldMask());
     }
     size += unknownFields.getSerializedSize();
     memoizedSize = size;
@@ -280,17 +244,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.iot.v1.GetDeviceRequest)) {
       return super.equals(obj);
     }
     com.google.cloud.iot.v1.GetDeviceRequest other = (com.google.cloud.iot.v1.GetDeviceRequest) obj;
 
-    if (!getName().equals(other.getName())) return false;
+    if (!getName()
+        .equals(other.getName())) return false;
     if (hasFieldMask() != other.hasFieldMask()) return false;
     if (hasFieldMask()) {
-      if (!getFieldMask().equals(other.getFieldMask())) return false;
+      if (!getFieldMask()
+          .equals(other.getFieldMask())) return false;
     }
     if (!unknownFields.equals(other.unknownFields)) return false;
     return true;
@@ -314,127 +280,118 @@ public int hashCode() {
     return hash;
   }
 
-  public static com.google.cloud.iot.v1.GetDeviceRequest parseFrom(java.nio.ByteBuffer data)
+  public static com.google.cloud.iot.v1.GetDeviceRequest parseFrom(
+      java.nio.ByteBuffer data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-
   public static com.google.cloud.iot.v1.GetDeviceRequest parseFrom(
-      java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.nio.ByteBuffer data,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-
   public static com.google.cloud.iot.v1.GetDeviceRequest parseFrom(
       com.google.protobuf.ByteString data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-
   public static com.google.cloud.iot.v1.GetDeviceRequest parseFrom(
       com.google.protobuf.ByteString data,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-
   public static com.google.cloud.iot.v1.GetDeviceRequest parseFrom(byte[] data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-
   public static com.google.cloud.iot.v1.GetDeviceRequest parseFrom(
-      byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      byte[] data,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-
   public static com.google.cloud.iot.v1.GetDeviceRequest 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.iot.v1.GetDeviceRequest parseFrom(
-      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.io.InputStream input,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
-        PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input, extensionRegistry);
   }
-
-  public static com.google.cloud.iot.v1.GetDeviceRequest parseDelimitedFrom(
-      java.io.InputStream input) throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
+  public static com.google.cloud.iot.v1.GetDeviceRequest parseDelimitedFrom(java.io.InputStream input)
+      throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3
+        .parseDelimitedWithIOException(PARSER, input);
   }
-
   public static com.google.cloud.iot.v1.GetDeviceRequest parseDelimitedFrom(
-      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.io.InputStream input,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
-        PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3
+        .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
   }
-
   public static com.google.cloud.iot.v1.GetDeviceRequest parseFrom(
-      com.google.protobuf.CodedInputStream input) throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+      com.google.protobuf.CodedInputStream input)
+      throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input);
   }
-
   public static com.google.cloud.iot.v1.GetDeviceRequest parseFrom(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
-        PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input, extensionRegistry);
   }
 
   @java.lang.Override
-  public Builder newBuilderForType() {
-    return newBuilder();
-  }
-
+  public Builder newBuilderForType() { return newBuilder(); }
   public static Builder newBuilder() {
     return DEFAULT_INSTANCE.toBuilder();
   }
-
   public static Builder newBuilder(com.google.cloud.iot.v1.GetDeviceRequest prototype) {
     return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
   }
-
   @java.lang.Override
   public Builder toBuilder() {
-    return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
+    return this == DEFAULT_INSTANCE
+        ? new Builder() : new Builder().mergeFrom(this);
   }
 
   @java.lang.Override
-  protected 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 `GetDevice`.
    * 
* * Protobuf type {@code google.cloud.iot.v1.GetDeviceRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.iot.v1.GetDeviceRequest) com.google.cloud.iot.v1.GetDeviceRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.iot.v1.DeviceManagerProto - .internal_static_google_cloud_iot_v1_GetDeviceRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.iot.v1.DeviceManagerProto.internal_static_google_cloud_iot_v1_GetDeviceRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.iot.v1.DeviceManagerProto - .internal_static_google_cloud_iot_v1_GetDeviceRequest_fieldAccessorTable + return com.google.cloud.iot.v1.DeviceManagerProto.internal_static_google_cloud_iot_v1_GetDeviceRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.iot.v1.GetDeviceRequest.class, - com.google.cloud.iot.v1.GetDeviceRequest.Builder.class); + com.google.cloud.iot.v1.GetDeviceRequest.class, com.google.cloud.iot.v1.GetDeviceRequest.Builder.class); } // Construct using com.google.cloud.iot.v1.GetDeviceRequest.newBuilder() @@ -442,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(); @@ -466,9 +424,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.iot.v1.DeviceManagerProto - .internal_static_google_cloud_iot_v1_GetDeviceRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.iot.v1.DeviceManagerProto.internal_static_google_cloud_iot_v1_GetDeviceRequest_descriptor; } @java.lang.Override @@ -487,8 +445,7 @@ public com.google.cloud.iot.v1.GetDeviceRequest build() { @java.lang.Override public com.google.cloud.iot.v1.GetDeviceRequest buildPartial() { - com.google.cloud.iot.v1.GetDeviceRequest result = - new com.google.cloud.iot.v1.GetDeviceRequest(this); + com.google.cloud.iot.v1.GetDeviceRequest result = new com.google.cloud.iot.v1.GetDeviceRequest(this); result.name_ = name_; if (fieldMaskBuilder_ == null) { result.fieldMask_ = fieldMask_; @@ -503,39 +460,38 @@ public com.google.cloud.iot.v1.GetDeviceRequest buildPartial() { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.iot.v1.GetDeviceRequest) { - return mergeFrom((com.google.cloud.iot.v1.GetDeviceRequest) other); + return mergeFrom((com.google.cloud.iot.v1.GetDeviceRequest)other); } else { super.mergeFrom(other); return this; @@ -582,24 +538,20 @@ public Builder mergeFrom( private java.lang.Object name_ = ""; /** - * - * *
      * Required. The name of the device. For example,
      * `projects/p0/locations/us-central1/registries/registry0/devices/device0` or
      * `projects/p0/locations/us-central1/registries/registry0/devices/{num_id}`.
      * 
* - * - * string name = 1 [(.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; @@ -608,25 +560,22 @@ public java.lang.String getName() { } } /** - * - * *
      * Required. The name of the device. For example,
      * `projects/p0/locations/us-central1/registries/registry0/devices/device0` or
      * `projects/p0/locations/us-central1/registries/registry0/devices/{num_id}`.
      * 
* - * - * string name = 1 [(.google.api.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 { @@ -634,73 +583,60 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
      * Required. The name of the device. For example,
      * `projects/p0/locations/us-central1/registries/registry0/devices/device0` or
      * `projects/p0/locations/us-central1/registries/registry0/devices/{num_id}`.
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The name to set. * @return This builder for chaining. */ - public Builder setName(java.lang.String value) { + public Builder setName( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + name_ = value; onChanged(); return this; } /** - * - * *
      * Required. The name of the device. For example,
      * `projects/p0/locations/us-central1/registries/registry0/devices/device0` or
      * `projects/p0/locations/us-central1/registries/registry0/devices/{num_id}`.
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return This builder for chaining. */ public Builder clearName() { - + name_ = getDefaultInstance().getName(); onChanged(); return this; } /** - * - * *
      * Required. The name of the device. For example,
      * `projects/p0/locations/us-central1/registries/registry0/devices/device0` or
      * `projects/p0/locations/us-central1/registries/registry0/devices/{num_id}`.
      * 
* - * - * 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; @@ -708,13 +644,8 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { private com.google.protobuf.FieldMask fieldMask_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.FieldMask, - com.google.protobuf.FieldMask.Builder, - com.google.protobuf.FieldMaskOrBuilder> - fieldMaskBuilder_; + com.google.protobuf.FieldMask, com.google.protobuf.FieldMask.Builder, com.google.protobuf.FieldMaskOrBuilder> fieldMaskBuilder_; /** - * - * *
      * The fields of the `Device` resource to be returned in the response. If the
      * field mask is unset or empty, all fields are returned. Fields have to be
@@ -722,15 +653,12 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) {
      * 
* * .google.protobuf.FieldMask field_mask = 2; - * * @return Whether the fieldMask field is set. */ public boolean hasFieldMask() { return fieldMaskBuilder_ != null || fieldMask_ != null; } /** - * - * *
      * The fields of the `Device` resource to be returned in the response. If the
      * field mask is unset or empty, all fields are returned. Fields have to be
@@ -738,7 +666,6 @@ public boolean hasFieldMask() {
      * 
* * .google.protobuf.FieldMask field_mask = 2; - * * @return The fieldMask. */ public com.google.protobuf.FieldMask getFieldMask() { @@ -749,8 +676,6 @@ public com.google.protobuf.FieldMask getFieldMask() { } } /** - * - * *
      * The fields of the `Device` resource to be returned in the response. If the
      * field mask is unset or empty, all fields are returned. Fields have to be
@@ -773,8 +698,6 @@ public Builder setFieldMask(com.google.protobuf.FieldMask value) {
       return this;
     }
     /**
-     *
-     *
      * 
      * The fields of the `Device` resource to be returned in the response. If the
      * field mask is unset or empty, all fields are returned. Fields have to be
@@ -783,7 +706,8 @@ public Builder setFieldMask(com.google.protobuf.FieldMask value) {
      *
      * .google.protobuf.FieldMask field_mask = 2;
      */
-    public Builder setFieldMask(com.google.protobuf.FieldMask.Builder builderForValue) {
+    public Builder setFieldMask(
+        com.google.protobuf.FieldMask.Builder builderForValue) {
       if (fieldMaskBuilder_ == null) {
         fieldMask_ = builderForValue.build();
         onChanged();
@@ -794,8 +718,6 @@ public Builder setFieldMask(com.google.protobuf.FieldMask.Builder builderForValu
       return this;
     }
     /**
-     *
-     *
      * 
      * The fields of the `Device` resource to be returned in the response. If the
      * field mask is unset or empty, all fields are returned. Fields have to be
@@ -808,7 +730,7 @@ public Builder mergeFieldMask(com.google.protobuf.FieldMask value) {
       if (fieldMaskBuilder_ == null) {
         if (fieldMask_ != null) {
           fieldMask_ =
-              com.google.protobuf.FieldMask.newBuilder(fieldMask_).mergeFrom(value).buildPartial();
+            com.google.protobuf.FieldMask.newBuilder(fieldMask_).mergeFrom(value).buildPartial();
         } else {
           fieldMask_ = value;
         }
@@ -820,8 +742,6 @@ public Builder mergeFieldMask(com.google.protobuf.FieldMask value) {
       return this;
     }
     /**
-     *
-     *
      * 
      * The fields of the `Device` resource to be returned in the response. If the
      * field mask is unset or empty, all fields are returned. Fields have to be
@@ -842,8 +762,6 @@ public Builder clearFieldMask() {
       return this;
     }
     /**
-     *
-     *
      * 
      * The fields of the `Device` resource to be returned in the response. If the
      * field mask is unset or empty, all fields are returned. Fields have to be
@@ -853,13 +771,11 @@ public Builder clearFieldMask() {
      * .google.protobuf.FieldMask field_mask = 2;
      */
     public com.google.protobuf.FieldMask.Builder getFieldMaskBuilder() {
-
+      
       onChanged();
       return getFieldMaskFieldBuilder().getBuilder();
     }
     /**
-     *
-     *
      * 
      * The fields of the `Device` resource to be returned in the response. If the
      * field mask is unset or empty, all fields are returned. Fields have to be
@@ -872,12 +788,11 @@ public com.google.protobuf.FieldMaskOrBuilder getFieldMaskOrBuilder() {
       if (fieldMaskBuilder_ != null) {
         return fieldMaskBuilder_.getMessageOrBuilder();
       } else {
-        return fieldMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : fieldMask_;
+        return fieldMask_ == null ?
+            com.google.protobuf.FieldMask.getDefaultInstance() : fieldMask_;
       }
     }
     /**
-     *
-     *
      * 
      * The fields of the `Device` resource to be returned in the response. If the
      * field mask is unset or empty, all fields are returned. Fields have to be
@@ -887,24 +802,21 @@ public com.google.protobuf.FieldMaskOrBuilder getFieldMaskOrBuilder() {
      * .google.protobuf.FieldMask field_mask = 2;
      */
     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> 
         getFieldMaskFieldBuilder() {
       if (fieldMaskBuilder_ == null) {
-        fieldMaskBuilder_ =
-            new com.google.protobuf.SingleFieldBuilderV3<
-                com.google.protobuf.FieldMask,
-                com.google.protobuf.FieldMask.Builder,
-                com.google.protobuf.FieldMaskOrBuilder>(
-                getFieldMask(), getParentForChildren(), isClean());
+        fieldMaskBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
+            com.google.protobuf.FieldMask, com.google.protobuf.FieldMask.Builder, com.google.protobuf.FieldMaskOrBuilder>(
+                getFieldMask(),
+                getParentForChildren(),
+                isClean());
         fieldMask_ = null;
       }
       return fieldMaskBuilder_;
     }
-
     @java.lang.Override
-    public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) {
+    public final Builder setUnknownFields(
+        final com.google.protobuf.UnknownFieldSet unknownFields) {
       return super.setUnknownFields(unknownFields);
     }
 
@@ -914,12 +826,12 @@ public final Builder mergeUnknownFields(
       return super.mergeUnknownFields(unknownFields);
     }
 
+
     // @@protoc_insertion_point(builder_scope:google.cloud.iot.v1.GetDeviceRequest)
   }
 
   // @@protoc_insertion_point(class_scope:google.cloud.iot.v1.GetDeviceRequest)
   private static final com.google.cloud.iot.v1.GetDeviceRequest DEFAULT_INSTANCE;
-
   static {
     DEFAULT_INSTANCE = new com.google.cloud.iot.v1.GetDeviceRequest();
   }
@@ -928,16 +840,16 @@ public static com.google.cloud.iot.v1.GetDeviceRequest getDefaultInstance() {
     return DEFAULT_INSTANCE;
   }
 
-  private static final com.google.protobuf.Parser PARSER =
-      new com.google.protobuf.AbstractParser() {
-        @java.lang.Override
-        public GetDeviceRequest parsePartialFrom(
-            com.google.protobuf.CodedInputStream input,
-            com.google.protobuf.ExtensionRegistryLite extensionRegistry)
-            throws com.google.protobuf.InvalidProtocolBufferException {
-          return new GetDeviceRequest(input, extensionRegistry);
-        }
-      };
+  private static final com.google.protobuf.Parser
+      PARSER = new com.google.protobuf.AbstractParser() {
+    @java.lang.Override
+    public GetDeviceRequest parsePartialFrom(
+        com.google.protobuf.CodedInputStream input,
+        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+        throws com.google.protobuf.InvalidProtocolBufferException {
+      return new GetDeviceRequest(input, extensionRegistry);
+    }
+  };
 
   public static com.google.protobuf.Parser parser() {
     return PARSER;
@@ -952,4 +864,6 @@ public com.google.protobuf.Parser getParserForType() {
   public com.google.cloud.iot.v1.GetDeviceRequest getDefaultInstanceForType() {
     return DEFAULT_INSTANCE;
   }
+
 }
+
diff --git a/proto-google-cloud-iot-v1/src/main/java/com/google/cloud/iot/v1/GetDeviceRequestOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-iot-v1/src/main/java/com/google/cloud/iot/v1/GetDeviceRequestOrBuilder.java
similarity index 66%
rename from proto-google-cloud-iot-v1/src/main/java/com/google/cloud/iot/v1/GetDeviceRequestOrBuilder.java
rename to owl-bot-staging/v1/proto-google-cloud-iot-v1/src/main/java/com/google/cloud/iot/v1/GetDeviceRequestOrBuilder.java
index 424790a6..dcfbf967 100644
--- a/proto-google-cloud-iot-v1/src/main/java/com/google/cloud/iot/v1/GetDeviceRequestOrBuilder.java
+++ b/owl-bot-staging/v1/proto-google-cloud-iot-v1/src/main/java/com/google/cloud/iot/v1/GetDeviceRequestOrBuilder.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/iot/v1/device_manager.proto
 
 package com.google.cloud.iot.v1;
 
-public interface GetDeviceRequestOrBuilder
-    extends
+public interface GetDeviceRequestOrBuilder extends
     // @@protoc_insertion_point(interface_extends:google.cloud.iot.v1.GetDeviceRequest)
     com.google.protobuf.MessageOrBuilder {
 
   /**
-   *
-   *
    * 
    * Required. The name of the device. For example,
    * `projects/p0/locations/us-central1/registries/registry0/devices/device0` or
    * `projects/p0/locations/us-central1/registries/registry0/devices/{num_id}`.
    * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The name. */ java.lang.String getName(); /** - * - * *
    * Required. The name of the device. For example,
    * `projects/p0/locations/us-central1/registries/registry0/devices/device0` or
    * `projects/p0/locations/us-central1/registries/registry0/devices/{num_id}`.
    * 
* - * - * string name = 1 [(.google.api.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(); /** - * - * *
    * The fields of the `Device` resource to be returned in the response. If the
    * field mask is unset or empty, all fields are returned. Fields have to be
@@ -66,13 +39,10 @@ public interface GetDeviceRequestOrBuilder
    * 
* * .google.protobuf.FieldMask field_mask = 2; - * * @return Whether the fieldMask field is set. */ boolean hasFieldMask(); /** - * - * *
    * The fields of the `Device` resource to be returned in the response. If the
    * field mask is unset or empty, all fields are returned. Fields have to be
@@ -80,13 +50,10 @@ public interface GetDeviceRequestOrBuilder
    * 
* * .google.protobuf.FieldMask field_mask = 2; - * * @return The fieldMask. */ com.google.protobuf.FieldMask getFieldMask(); /** - * - * *
    * The fields of the `Device` resource to be returned in the response. If the
    * field mask is unset or empty, all fields are returned. Fields have to be
diff --git a/proto-google-cloud-iot-v1/src/main/java/com/google/cloud/iot/v1/HttpConfig.java b/owl-bot-staging/v1/proto-google-cloud-iot-v1/src/main/java/com/google/cloud/iot/v1/HttpConfig.java
similarity index 70%
rename from proto-google-cloud-iot-v1/src/main/java/com/google/cloud/iot/v1/HttpConfig.java
rename to owl-bot-staging/v1/proto-google-cloud-iot-v1/src/main/java/com/google/cloud/iot/v1/HttpConfig.java
index e4838599..100ff6cb 100644
--- a/proto-google-cloud-iot-v1/src/main/java/com/google/cloud/iot/v1/HttpConfig.java
+++ b/owl-bot-staging/v1/proto-google-cloud-iot-v1/src/main/java/com/google/cloud/iot/v1/HttpConfig.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/iot/v1/resources.proto
 
 package com.google.cloud.iot.v1;
 
 /**
- *
- *
  * 
  * The configuration of the HTTP bridge for a device registry.
  * 
* * Protobuf type {@code google.cloud.iot.v1.HttpConfig} */ -public final class HttpConfig extends com.google.protobuf.GeneratedMessageV3 - implements +public final class HttpConfig extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.iot.v1.HttpConfig) HttpConfigOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use HttpConfig.newBuilder() to construct. private HttpConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private HttpConfig() { httpEnabledState_ = 0; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new HttpConfig(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private HttpConfig( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -70,20 +53,19 @@ private HttpConfig( case 0: done = true; break; - case 8: - { - int rawValue = input.readEnum(); + case 8: { + int rawValue = input.readEnum(); - httpEnabledState_ = rawValue; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + httpEnabledState_ = rawValue; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -91,68 +73,56 @@ private HttpConfig( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.iot.v1.ResourcesProto - .internal_static_google_cloud_iot_v1_HttpConfig_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.iot.v1.ResourcesProto.internal_static_google_cloud_iot_v1_HttpConfig_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.iot.v1.ResourcesProto - .internal_static_google_cloud_iot_v1_HttpConfig_fieldAccessorTable + return com.google.cloud.iot.v1.ResourcesProto.internal_static_google_cloud_iot_v1_HttpConfig_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.iot.v1.HttpConfig.class, - com.google.cloud.iot.v1.HttpConfig.Builder.class); + com.google.cloud.iot.v1.HttpConfig.class, com.google.cloud.iot.v1.HttpConfig.Builder.class); } public static final int HTTP_ENABLED_STATE_FIELD_NUMBER = 1; private int httpEnabledState_; /** - * - * *
    * If enabled, allows devices to use DeviceService via the HTTP protocol.
    * Otherwise, any requests to DeviceService will fail for this registry.
    * 
* * .google.cloud.iot.v1.HttpState http_enabled_state = 1; - * * @return The enum numeric value on the wire for httpEnabledState. */ - @java.lang.Override - public int getHttpEnabledStateValue() { + @java.lang.Override public int getHttpEnabledStateValue() { return httpEnabledState_; } /** - * - * *
    * If enabled, allows devices to use DeviceService via the HTTP protocol.
    * Otherwise, any requests to DeviceService will fail for this registry.
    * 
* * .google.cloud.iot.v1.HttpState http_enabled_state = 1; - * * @return The httpEnabledState. */ - @java.lang.Override - public com.google.cloud.iot.v1.HttpState getHttpEnabledState() { + @java.lang.Override public com.google.cloud.iot.v1.HttpState getHttpEnabledState() { @SuppressWarnings("deprecation") - com.google.cloud.iot.v1.HttpState result = - com.google.cloud.iot.v1.HttpState.valueOf(httpEnabledState_); + com.google.cloud.iot.v1.HttpState result = com.google.cloud.iot.v1.HttpState.valueOf(httpEnabledState_); return result == null ? com.google.cloud.iot.v1.HttpState.UNRECOGNIZED : result; } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -164,7 +134,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 (httpEnabledState_ != com.google.cloud.iot.v1.HttpState.HTTP_STATE_UNSPECIFIED.getNumber()) { output.writeEnum(1, httpEnabledState_); } @@ -178,7 +149,8 @@ public int getSerializedSize() { size = 0; if (httpEnabledState_ != com.google.cloud.iot.v1.HttpState.HTTP_STATE_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream.computeEnumSize(1, httpEnabledState_); + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(1, httpEnabledState_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -188,7 +160,7 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.iot.v1.HttpConfig)) { return super.equals(obj); @@ -214,126 +186,118 @@ public int hashCode() { return hash; } - public static com.google.cloud.iot.v1.HttpConfig parseFrom(java.nio.ByteBuffer data) + public static com.google.cloud.iot.v1.HttpConfig parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.iot.v1.HttpConfig parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.iot.v1.HttpConfig parseFrom(com.google.protobuf.ByteString data) + public static com.google.cloud.iot.v1.HttpConfig parseFrom( + com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.iot.v1.HttpConfig parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.iot.v1.HttpConfig parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.iot.v1.HttpConfig parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.iot.v1.HttpConfig 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.iot.v1.HttpConfig parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.iot.v1.HttpConfig 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.iot.v1.HttpConfig parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.iot.v1.HttpConfig parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.iot.v1.HttpConfig parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.iot.v1.HttpConfig prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * The configuration of the HTTP bridge for a device registry.
    * 
* * Protobuf type {@code google.cloud.iot.v1.HttpConfig} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.iot.v1.HttpConfig) com.google.cloud.iot.v1.HttpConfigOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.iot.v1.ResourcesProto - .internal_static_google_cloud_iot_v1_HttpConfig_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.iot.v1.ResourcesProto.internal_static_google_cloud_iot_v1_HttpConfig_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.iot.v1.ResourcesProto - .internal_static_google_cloud_iot_v1_HttpConfig_fieldAccessorTable + return com.google.cloud.iot.v1.ResourcesProto.internal_static_google_cloud_iot_v1_HttpConfig_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.iot.v1.HttpConfig.class, - com.google.cloud.iot.v1.HttpConfig.Builder.class); + com.google.cloud.iot.v1.HttpConfig.class, com.google.cloud.iot.v1.HttpConfig.Builder.class); } // Construct using com.google.cloud.iot.v1.HttpConfig.newBuilder() @@ -341,15 +305,16 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -359,9 +324,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.iot.v1.ResourcesProto - .internal_static_google_cloud_iot_v1_HttpConfig_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.iot.v1.ResourcesProto.internal_static_google_cloud_iot_v1_HttpConfig_descriptor; } @java.lang.Override @@ -390,39 +355,38 @@ public com.google.cloud.iot.v1.HttpConfig buildPartial() { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.iot.v1.HttpConfig) { - return mergeFrom((com.google.cloud.iot.v1.HttpConfig) other); + return mergeFrom((com.google.cloud.iot.v1.HttpConfig)other); } else { super.mergeFrom(other); return this; @@ -465,69 +429,55 @@ public Builder mergeFrom( private int httpEnabledState_ = 0; /** - * - * *
      * If enabled, allows devices to use DeviceService via the HTTP protocol.
      * Otherwise, any requests to DeviceService will fail for this registry.
      * 
* * .google.cloud.iot.v1.HttpState http_enabled_state = 1; - * * @return The enum numeric value on the wire for httpEnabledState. */ - @java.lang.Override - public int getHttpEnabledStateValue() { + @java.lang.Override public int getHttpEnabledStateValue() { return httpEnabledState_; } /** - * - * *
      * If enabled, allows devices to use DeviceService via the HTTP protocol.
      * Otherwise, any requests to DeviceService will fail for this registry.
      * 
* * .google.cloud.iot.v1.HttpState http_enabled_state = 1; - * * @param value The enum numeric value on the wire for httpEnabledState to set. * @return This builder for chaining. */ public Builder setHttpEnabledStateValue(int value) { - + httpEnabledState_ = value; onChanged(); return this; } /** - * - * *
      * If enabled, allows devices to use DeviceService via the HTTP protocol.
      * Otherwise, any requests to DeviceService will fail for this registry.
      * 
* * .google.cloud.iot.v1.HttpState http_enabled_state = 1; - * * @return The httpEnabledState. */ @java.lang.Override public com.google.cloud.iot.v1.HttpState getHttpEnabledState() { @SuppressWarnings("deprecation") - com.google.cloud.iot.v1.HttpState result = - com.google.cloud.iot.v1.HttpState.valueOf(httpEnabledState_); + com.google.cloud.iot.v1.HttpState result = com.google.cloud.iot.v1.HttpState.valueOf(httpEnabledState_); return result == null ? com.google.cloud.iot.v1.HttpState.UNRECOGNIZED : result; } /** - * - * *
      * If enabled, allows devices to use DeviceService via the HTTP protocol.
      * Otherwise, any requests to DeviceService will fail for this registry.
      * 
* * .google.cloud.iot.v1.HttpState http_enabled_state = 1; - * * @param value The httpEnabledState to set. * @return This builder for chaining. */ @@ -535,32 +485,29 @@ public Builder setHttpEnabledState(com.google.cloud.iot.v1.HttpState value) { if (value == null) { throw new NullPointerException(); } - + httpEnabledState_ = value.getNumber(); onChanged(); return this; } /** - * - * *
      * If enabled, allows devices to use DeviceService via the HTTP protocol.
      * Otherwise, any requests to DeviceService will fail for this registry.
      * 
* * .google.cloud.iot.v1.HttpState http_enabled_state = 1; - * * @return This builder for chaining. */ public Builder clearHttpEnabledState() { - + httpEnabledState_ = 0; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -570,12 +517,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.iot.v1.HttpConfig) } // @@protoc_insertion_point(class_scope:google.cloud.iot.v1.HttpConfig) private static final com.google.cloud.iot.v1.HttpConfig DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.iot.v1.HttpConfig(); } @@ -584,16 +531,16 @@ public static com.google.cloud.iot.v1.HttpConfig getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public HttpConfig parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new HttpConfig(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public HttpConfig parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new HttpConfig(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -608,4 +555,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.iot.v1.HttpConfig getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-iot-v1/src/main/java/com/google/cloud/iot/v1/HttpConfigOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-iot-v1/src/main/java/com/google/cloud/iot/v1/HttpConfigOrBuilder.java similarity index 59% rename from proto-google-cloud-iot-v1/src/main/java/com/google/cloud/iot/v1/HttpConfigOrBuilder.java rename to owl-bot-staging/v1/proto-google-cloud-iot-v1/src/main/java/com/google/cloud/iot/v1/HttpConfigOrBuilder.java index 843fcde6..df556d1e 100644 --- a/proto-google-cloud-iot-v1/src/main/java/com/google/cloud/iot/v1/HttpConfigOrBuilder.java +++ b/owl-bot-staging/v1/proto-google-cloud-iot-v1/src/main/java/com/google/cloud/iot/v1/HttpConfigOrBuilder.java @@ -1,51 +1,29 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/iot/v1/resources.proto package com.google.cloud.iot.v1; -public interface HttpConfigOrBuilder - extends +public interface HttpConfigOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.iot.v1.HttpConfig) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * If enabled, allows devices to use DeviceService via the HTTP protocol.
    * Otherwise, any requests to DeviceService will fail for this registry.
    * 
* * .google.cloud.iot.v1.HttpState http_enabled_state = 1; - * * @return The enum numeric value on the wire for httpEnabledState. */ int getHttpEnabledStateValue(); /** - * - * *
    * If enabled, allows devices to use DeviceService via the HTTP protocol.
    * Otherwise, any requests to DeviceService will fail for this registry.
    * 
* * .google.cloud.iot.v1.HttpState http_enabled_state = 1; - * * @return The httpEnabledState. */ com.google.cloud.iot.v1.HttpState getHttpEnabledState(); diff --git a/proto-google-cloud-iot-v1/src/main/java/com/google/cloud/iot/v1/HttpState.java b/owl-bot-staging/v1/proto-google-cloud-iot-v1/src/main/java/com/google/cloud/iot/v1/HttpState.java similarity index 68% rename from proto-google-cloud-iot-v1/src/main/java/com/google/cloud/iot/v1/HttpState.java rename to owl-bot-staging/v1/proto-google-cloud-iot-v1/src/main/java/com/google/cloud/iot/v1/HttpState.java index 10a5efb1..ec2efc71 100644 --- a/proto-google-cloud-iot-v1/src/main/java/com/google/cloud/iot/v1/HttpState.java +++ b/owl-bot-staging/v1/proto-google-cloud-iot-v1/src/main/java/com/google/cloud/iot/v1/HttpState.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/iot/v1/resources.proto package com.google.cloud.iot.v1; /** - * - * *
  * Indicates whether DeviceService (HTTP) is enabled or disabled for the
  * registry. See the field description for details.
@@ -28,10 +11,9 @@
  *
  * Protobuf enum {@code google.cloud.iot.v1.HttpState}
  */
-public enum HttpState implements com.google.protobuf.ProtocolMessageEnum {
+public enum HttpState
+    implements com.google.protobuf.ProtocolMessageEnum {
   /**
-   *
-   *
    * 
    * No HTTP state specified. If not specified, DeviceService will be
    * enabled by default.
@@ -41,8 +23,6 @@ public enum HttpState implements com.google.protobuf.ProtocolMessageEnum {
    */
   HTTP_STATE_UNSPECIFIED(0),
   /**
-   *
-   *
    * 
    * Enables DeviceService (HTTP) service for the registry.
    * 
@@ -51,8 +31,6 @@ public enum HttpState implements com.google.protobuf.ProtocolMessageEnum { */ HTTP_ENABLED(1), /** - * - * *
    * Disables DeviceService (HTTP) service for the registry.
    * 
@@ -64,8 +42,6 @@ public enum HttpState implements com.google.protobuf.ProtocolMessageEnum { ; /** - * - * *
    * No HTTP state specified. If not specified, DeviceService will be
    * enabled by default.
@@ -75,8 +51,6 @@ public enum HttpState implements com.google.protobuf.ProtocolMessageEnum {
    */
   public static final int HTTP_STATE_UNSPECIFIED_VALUE = 0;
   /**
-   *
-   *
    * 
    * Enables DeviceService (HTTP) service for the registry.
    * 
@@ -85,8 +59,6 @@ public enum HttpState implements com.google.protobuf.ProtocolMessageEnum { */ public static final int HTTP_ENABLED_VALUE = 1; /** - * - * *
    * Disables DeviceService (HTTP) service for the registry.
    * 
@@ -95,6 +67,7 @@ public enum HttpState implements com.google.protobuf.ProtocolMessageEnum { */ public static final int HTTP_DISABLED_VALUE = 2; + public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( @@ -119,49 +92,49 @@ public static HttpState valueOf(int value) { */ public static HttpState forNumber(int value) { switch (value) { - case 0: - return HTTP_STATE_UNSPECIFIED; - case 1: - return HTTP_ENABLED; - case 2: - return HTTP_DISABLED; - default: - return null; + case 0: return HTTP_STATE_UNSPECIFIED; + case 1: return HTTP_ENABLED; + case 2: return HTTP_DISABLED; + 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 HttpState findValueByNumber(int number) { - return HttpState.forNumber(number); - } - }; - - public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { + private static final com.google.protobuf.Internal.EnumLiteMap< + HttpState> internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public HttpState findValueByNumber(int number) { + return HttpState.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.iot.v1.ResourcesProto.getDescriptor().getEnumTypes().get(1); } private static final HttpState[] VALUES = values(); - public static HttpState valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + public static HttpState 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; @@ -177,3 +150,4 @@ private HttpState(int value) { // @@protoc_insertion_point(enum_scope:google.cloud.iot.v1.HttpState) } + diff --git a/proto-google-cloud-iot-v1/src/main/java/com/google/cloud/iot/v1/ListDeviceConfigVersionsRequest.java b/owl-bot-staging/v1/proto-google-cloud-iot-v1/src/main/java/com/google/cloud/iot/v1/ListDeviceConfigVersionsRequest.java similarity index 67% rename from proto-google-cloud-iot-v1/src/main/java/com/google/cloud/iot/v1/ListDeviceConfigVersionsRequest.java rename to owl-bot-staging/v1/proto-google-cloud-iot-v1/src/main/java/com/google/cloud/iot/v1/ListDeviceConfigVersionsRequest.java index 7a691015..4900a8e9 100644 --- a/proto-google-cloud-iot-v1/src/main/java/com/google/cloud/iot/v1/ListDeviceConfigVersionsRequest.java +++ b/owl-bot-staging/v1/proto-google-cloud-iot-v1/src/main/java/com/google/cloud/iot/v1/ListDeviceConfigVersionsRequest.java @@ -1,58 +1,40 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/iot/v1/device_manager.proto package com.google.cloud.iot.v1; /** - * - * *
  * Request for `ListDeviceConfigVersions`.
  * 
* * Protobuf type {@code google.cloud.iot.v1.ListDeviceConfigVersionsRequest} */ -public final class ListDeviceConfigVersionsRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class ListDeviceConfigVersionsRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.iot.v1.ListDeviceConfigVersionsRequest) ListDeviceConfigVersionsRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use ListDeviceConfigVersionsRequest.newBuilder() to construct. - private ListDeviceConfigVersionsRequest( - com.google.protobuf.GeneratedMessageV3.Builder builder) { + private ListDeviceConfigVersionsRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private ListDeviceConfigVersionsRequest() { name_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new ListDeviceConfigVersionsRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private ListDeviceConfigVersionsRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -71,25 +53,24 @@ private ListDeviceConfigVersionsRequest( case 0: done = true; break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); + case 10: { + java.lang.String s = input.readStringRequireUtf8(); - name_ = s; - break; - } - case 16: - { - numVersions_ = input.readInt32(); - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + name_ = s; + break; + } + case 16: { + + numVersions_ = input.readInt32(); + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -97,43 +78,36 @@ private ListDeviceConfigVersionsRequest( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.iot.v1.DeviceManagerProto - .internal_static_google_cloud_iot_v1_ListDeviceConfigVersionsRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.iot.v1.DeviceManagerProto.internal_static_google_cloud_iot_v1_ListDeviceConfigVersionsRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.iot.v1.DeviceManagerProto - .internal_static_google_cloud_iot_v1_ListDeviceConfigVersionsRequest_fieldAccessorTable + return com.google.cloud.iot.v1.DeviceManagerProto.internal_static_google_cloud_iot_v1_ListDeviceConfigVersionsRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.iot.v1.ListDeviceConfigVersionsRequest.class, - com.google.cloud.iot.v1.ListDeviceConfigVersionsRequest.Builder.class); + com.google.cloud.iot.v1.ListDeviceConfigVersionsRequest.class, com.google.cloud.iot.v1.ListDeviceConfigVersionsRequest.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** - * - * *
    * Required. The name of the device. For example,
    * `projects/p0/locations/us-central1/registries/registry0/devices/device0` or
    * `projects/p0/locations/us-central1/registries/registry0/devices/{num_id}`.
    * 
* - * - * string name = 1 [(.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 @@ -142,33 +116,31 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** - * - * *
    * Required. The name of the device. For example,
    * `projects/p0/locations/us-central1/registries/registry0/devices/device0` or
    * `projects/p0/locations/us-central1/registries/registry0/devices/{num_id}`.
    * 
* - * - * string name = 1 [(.google.api.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 { @@ -179,8 +151,6 @@ public com.google.protobuf.ByteString getNameBytes() { public static final int NUM_VERSIONS_FIELD_NUMBER = 2; private int numVersions_; /** - * - * *
    * The number of versions to list. Versions are listed in decreasing order of
    * the version number. The maximum number of versions retained is 10. If this
@@ -188,7 +158,6 @@ public com.google.protobuf.ByteString getNameBytes() {
    * 
* * int32 num_versions = 2; - * * @return The numVersions. */ @java.lang.Override @@ -197,7 +166,6 @@ public int getNumVersions() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -209,7 +177,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_); } @@ -229,7 +198,8 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); } if (numVersions_ != 0) { - size += com.google.protobuf.CodedOutputStream.computeInt32Size(2, numVersions_); + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(2, numVersions_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -239,16 +209,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.iot.v1.ListDeviceConfigVersionsRequest)) { return super.equals(obj); } - com.google.cloud.iot.v1.ListDeviceConfigVersionsRequest other = - (com.google.cloud.iot.v1.ListDeviceConfigVersionsRequest) obj; + com.google.cloud.iot.v1.ListDeviceConfigVersionsRequest other = (com.google.cloud.iot.v1.ListDeviceConfigVersionsRequest) obj; - if (!getName().equals(other.getName())) return false; - if (getNumVersions() != other.getNumVersions()) return false; + if (!getName() + .equals(other.getName())) return false; + if (getNumVersions() + != other.getNumVersions()) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -270,127 +241,117 @@ public int hashCode() { } public static com.google.cloud.iot.v1.ListDeviceConfigVersionsRequest parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.iot.v1.ListDeviceConfigVersionsRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.iot.v1.ListDeviceConfigVersionsRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.iot.v1.ListDeviceConfigVersionsRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.iot.v1.ListDeviceConfigVersionsRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.iot.v1.ListDeviceConfigVersionsRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.iot.v1.ListDeviceConfigVersionsRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.iot.v1.ListDeviceConfigVersionsRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.iot.v1.ListDeviceConfigVersionsRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.iot.v1.ListDeviceConfigVersionsRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.iot.v1.ListDeviceConfigVersionsRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.iot.v1.ListDeviceConfigVersionsRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.iot.v1.ListDeviceConfigVersionsRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.iot.v1.ListDeviceConfigVersionsRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.iot.v1.ListDeviceConfigVersionsRequest prototype) { + public static Builder newBuilder(com.google.cloud.iot.v1.ListDeviceConfigVersionsRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected 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 `ListDeviceConfigVersions`.
    * 
* * Protobuf type {@code google.cloud.iot.v1.ListDeviceConfigVersionsRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.iot.v1.ListDeviceConfigVersionsRequest) com.google.cloud.iot.v1.ListDeviceConfigVersionsRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.iot.v1.DeviceManagerProto - .internal_static_google_cloud_iot_v1_ListDeviceConfigVersionsRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.iot.v1.DeviceManagerProto.internal_static_google_cloud_iot_v1_ListDeviceConfigVersionsRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.iot.v1.DeviceManagerProto - .internal_static_google_cloud_iot_v1_ListDeviceConfigVersionsRequest_fieldAccessorTable + return com.google.cloud.iot.v1.DeviceManagerProto.internal_static_google_cloud_iot_v1_ListDeviceConfigVersionsRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.iot.v1.ListDeviceConfigVersionsRequest.class, - com.google.cloud.iot.v1.ListDeviceConfigVersionsRequest.Builder.class); + com.google.cloud.iot.v1.ListDeviceConfigVersionsRequest.class, com.google.cloud.iot.v1.ListDeviceConfigVersionsRequest.Builder.class); } // Construct using com.google.cloud.iot.v1.ListDeviceConfigVersionsRequest.newBuilder() @@ -398,15 +359,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(); @@ -418,9 +380,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.iot.v1.DeviceManagerProto - .internal_static_google_cloud_iot_v1_ListDeviceConfigVersionsRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.iot.v1.DeviceManagerProto.internal_static_google_cloud_iot_v1_ListDeviceConfigVersionsRequest_descriptor; } @java.lang.Override @@ -439,8 +401,7 @@ public com.google.cloud.iot.v1.ListDeviceConfigVersionsRequest build() { @java.lang.Override public com.google.cloud.iot.v1.ListDeviceConfigVersionsRequest buildPartial() { - com.google.cloud.iot.v1.ListDeviceConfigVersionsRequest result = - new com.google.cloud.iot.v1.ListDeviceConfigVersionsRequest(this); + com.google.cloud.iot.v1.ListDeviceConfigVersionsRequest result = new com.google.cloud.iot.v1.ListDeviceConfigVersionsRequest(this); result.name_ = name_; result.numVersions_ = numVersions_; onBuilt(); @@ -451,39 +412,38 @@ public com.google.cloud.iot.v1.ListDeviceConfigVersionsRequest buildPartial() { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.iot.v1.ListDeviceConfigVersionsRequest) { - return mergeFrom((com.google.cloud.iot.v1.ListDeviceConfigVersionsRequest) other); + return mergeFrom((com.google.cloud.iot.v1.ListDeviceConfigVersionsRequest)other); } else { super.mergeFrom(other); return this; @@ -491,8 +451,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.iot.v1.ListDeviceConfigVersionsRequest other) { - if (other == com.google.cloud.iot.v1.ListDeviceConfigVersionsRequest.getDefaultInstance()) - return this; + if (other == com.google.cloud.iot.v1.ListDeviceConfigVersionsRequest.getDefaultInstance()) return this; if (!other.getName().isEmpty()) { name_ = other.name_; onChanged(); @@ -519,8 +478,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.iot.v1.ListDeviceConfigVersionsRequest) e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.iot.v1.ListDeviceConfigVersionsRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -532,24 +490,20 @@ public Builder mergeFrom( private java.lang.Object name_ = ""; /** - * - * *
      * Required. The name of the device. For example,
      * `projects/p0/locations/us-central1/registries/registry0/devices/device0` or
      * `projects/p0/locations/us-central1/registries/registry0/devices/{num_id}`.
      * 
* - * - * string name = 1 [(.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; @@ -558,25 +512,22 @@ public java.lang.String getName() { } } /** - * - * *
      * Required. The name of the device. For example,
      * `projects/p0/locations/us-central1/registries/registry0/devices/device0` or
      * `projects/p0/locations/us-central1/registries/registry0/devices/{num_id}`.
      * 
* - * - * string name = 1 [(.google.api.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 { @@ -584,82 +535,67 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
      * Required. The name of the device. For example,
      * `projects/p0/locations/us-central1/registries/registry0/devices/device0` or
      * `projects/p0/locations/us-central1/registries/registry0/devices/{num_id}`.
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The name to set. * @return This builder for chaining. */ - public Builder setName(java.lang.String value) { + public Builder setName( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + name_ = value; onChanged(); return this; } /** - * - * *
      * Required. The name of the device. For example,
      * `projects/p0/locations/us-central1/registries/registry0/devices/device0` or
      * `projects/p0/locations/us-central1/registries/registry0/devices/{num_id}`.
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return This builder for chaining. */ public Builder clearName() { - + name_ = getDefaultInstance().getName(); onChanged(); return this; } /** - * - * *
      * Required. The name of the device. For example,
      * `projects/p0/locations/us-central1/registries/registry0/devices/device0` or
      * `projects/p0/locations/us-central1/registries/registry0/devices/{num_id}`.
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes(com.google.protobuf.ByteString value) { + public Builder setNameBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; onChanged(); return this; } - private int numVersions_; + private int numVersions_ ; /** - * - * *
      * The number of versions to list. Versions are listed in decreasing order of
      * the version number. The maximum number of versions retained is 10. If this
@@ -667,7 +603,6 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) {
      * 
* * int32 num_versions = 2; - * * @return The numVersions. */ @java.lang.Override @@ -675,8 +610,6 @@ public int getNumVersions() { return numVersions_; } /** - * - * *
      * The number of versions to list. Versions are listed in decreasing order of
      * the version number. The maximum number of versions retained is 10. If this
@@ -684,19 +617,16 @@ public int getNumVersions() {
      * 
* * int32 num_versions = 2; - * * @param value The numVersions to set. * @return This builder for chaining. */ public Builder setNumVersions(int value) { - + numVersions_ = value; onChanged(); return this; } /** - * - * *
      * The number of versions to list. Versions are listed in decreasing order of
      * the version number. The maximum number of versions retained is 10. If this
@@ -704,18 +634,17 @@ public Builder setNumVersions(int value) {
      * 
* * int32 num_versions = 2; - * * @return This builder for chaining. */ public Builder clearNumVersions() { - + numVersions_ = 0; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -725,12 +654,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.iot.v1.ListDeviceConfigVersionsRequest) } // @@protoc_insertion_point(class_scope:google.cloud.iot.v1.ListDeviceConfigVersionsRequest) private static final com.google.cloud.iot.v1.ListDeviceConfigVersionsRequest DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.iot.v1.ListDeviceConfigVersionsRequest(); } @@ -739,16 +668,16 @@ public static com.google.cloud.iot.v1.ListDeviceConfigVersionsRequest getDefault return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListDeviceConfigVersionsRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ListDeviceConfigVersionsRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListDeviceConfigVersionsRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ListDeviceConfigVersionsRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -763,4 +692,6 @@ public com.google.protobuf.Parser getParserForT public com.google.cloud.iot.v1.ListDeviceConfigVersionsRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-iot-v1/src/main/java/com/google/cloud/iot/v1/ListDeviceConfigVersionsRequestOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-iot-v1/src/main/java/com/google/cloud/iot/v1/ListDeviceConfigVersionsRequestOrBuilder.java similarity index 55% rename from proto-google-cloud-iot-v1/src/main/java/com/google/cloud/iot/v1/ListDeviceConfigVersionsRequestOrBuilder.java rename to owl-bot-staging/v1/proto-google-cloud-iot-v1/src/main/java/com/google/cloud/iot/v1/ListDeviceConfigVersionsRequestOrBuilder.java index ee1066be..4d01f538 100644 --- a/proto-google-cloud-iot-v1/src/main/java/com/google/cloud/iot/v1/ListDeviceConfigVersionsRequestOrBuilder.java +++ b/owl-bot-staging/v1/proto-google-cloud-iot-v1/src/main/java/com/google/cloud/iot/v1/ListDeviceConfigVersionsRequestOrBuilder.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/iot/v1/device_manager.proto package com.google.cloud.iot.v1; -public interface ListDeviceConfigVersionsRequestOrBuilder - extends +public interface ListDeviceConfigVersionsRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.iot.v1.ListDeviceConfigVersionsRequest) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Required. The name of the device. For example,
    * `projects/p0/locations/us-central1/registries/registry0/devices/device0` or
    * `projects/p0/locations/us-central1/registries/registry0/devices/{num_id}`.
    * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The name. */ java.lang.String getName(); /** - * - * *
    * Required. The name of the device. For example,
    * `projects/p0/locations/us-central1/registries/registry0/devices/device0` or
    * `projects/p0/locations/us-central1/registries/registry0/devices/{num_id}`.
    * 
* - * - * string name = 1 [(.google.api.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(); /** - * - * *
    * The number of versions to list. Versions are listed in decreasing order of
    * the version number. The maximum number of versions retained is 10. If this
@@ -66,7 +39,6 @@ public interface ListDeviceConfigVersionsRequestOrBuilder
    * 
* * int32 num_versions = 2; - * * @return The numVersions. */ int getNumVersions(); diff --git a/proto-google-cloud-iot-v1/src/main/java/com/google/cloud/iot/v1/ListDeviceConfigVersionsResponse.java b/owl-bot-staging/v1/proto-google-cloud-iot-v1/src/main/java/com/google/cloud/iot/v1/ListDeviceConfigVersionsResponse.java similarity index 74% rename from proto-google-cloud-iot-v1/src/main/java/com/google/cloud/iot/v1/ListDeviceConfigVersionsResponse.java rename to owl-bot-staging/v1/proto-google-cloud-iot-v1/src/main/java/com/google/cloud/iot/v1/ListDeviceConfigVersionsResponse.java index 0d894e24..c71e11d0 100644 --- a/proto-google-cloud-iot-v1/src/main/java/com/google/cloud/iot/v1/ListDeviceConfigVersionsResponse.java +++ b/owl-bot-staging/v1/proto-google-cloud-iot-v1/src/main/java/com/google/cloud/iot/v1/ListDeviceConfigVersionsResponse.java @@ -1,58 +1,40 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/iot/v1/device_manager.proto package com.google.cloud.iot.v1; /** - * - * *
  * Response for `ListDeviceConfigVersions`.
  * 
* * Protobuf type {@code google.cloud.iot.v1.ListDeviceConfigVersionsResponse} */ -public final class ListDeviceConfigVersionsResponse extends com.google.protobuf.GeneratedMessageV3 - implements +public final class ListDeviceConfigVersionsResponse extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.iot.v1.ListDeviceConfigVersionsResponse) ListDeviceConfigVersionsResponseOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use ListDeviceConfigVersionsResponse.newBuilder() to construct. - private ListDeviceConfigVersionsResponse( - com.google.protobuf.GeneratedMessageV3.Builder builder) { + private ListDeviceConfigVersionsResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private ListDeviceConfigVersionsResponse() { deviceConfigs_ = java.util.Collections.emptyList(); } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new ListDeviceConfigVersionsResponse(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private ListDeviceConfigVersionsResponse( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -72,24 +54,22 @@ private ListDeviceConfigVersionsResponse( case 0: done = true; break; - case 10: - { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - deviceConfigs_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; - } - deviceConfigs_.add( - input.readMessage( - com.google.cloud.iot.v1.DeviceConfig.parser(), extensionRegistry)); - break; + case 10: { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + deviceConfigs_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + deviceConfigs_.add( + input.readMessage(com.google.cloud.iot.v1.DeviceConfig.parser(), extensionRegistry)); + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -97,7 +77,8 @@ private ListDeviceConfigVersionsResponse( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } 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)) { deviceConfigs_ = java.util.Collections.unmodifiableList(deviceConfigs_); @@ -106,27 +87,22 @@ private ListDeviceConfigVersionsResponse( makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.iot.v1.DeviceManagerProto - .internal_static_google_cloud_iot_v1_ListDeviceConfigVersionsResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.iot.v1.DeviceManagerProto.internal_static_google_cloud_iot_v1_ListDeviceConfigVersionsResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.iot.v1.DeviceManagerProto - .internal_static_google_cloud_iot_v1_ListDeviceConfigVersionsResponse_fieldAccessorTable + return com.google.cloud.iot.v1.DeviceManagerProto.internal_static_google_cloud_iot_v1_ListDeviceConfigVersionsResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.iot.v1.ListDeviceConfigVersionsResponse.class, - com.google.cloud.iot.v1.ListDeviceConfigVersionsResponse.Builder.class); + com.google.cloud.iot.v1.ListDeviceConfigVersionsResponse.class, com.google.cloud.iot.v1.ListDeviceConfigVersionsResponse.Builder.class); } public static final int DEVICE_CONFIGS_FIELD_NUMBER = 1; private java.util.List deviceConfigs_; /** - * - * *
    * The device configuration for the last few versions. Versions are listed
    * in decreasing order, starting from the most recent one.
@@ -139,8 +115,6 @@ public java.util.List getDeviceConfigsList
     return deviceConfigs_;
   }
   /**
-   *
-   *
    * 
    * The device configuration for the last few versions. Versions are listed
    * in decreasing order, starting from the most recent one.
@@ -149,13 +123,11 @@ public java.util.List getDeviceConfigsList
    * repeated .google.cloud.iot.v1.DeviceConfig device_configs = 1;
    */
   @java.lang.Override
-  public java.util.List
+  public java.util.List 
       getDeviceConfigsOrBuilderList() {
     return deviceConfigs_;
   }
   /**
-   *
-   *
    * 
    * The device configuration for the last few versions. Versions are listed
    * in decreasing order, starting from the most recent one.
@@ -168,8 +140,6 @@ public int getDeviceConfigsCount() {
     return deviceConfigs_.size();
   }
   /**
-   *
-   *
    * 
    * The device configuration for the last few versions. Versions are listed
    * in decreasing order, starting from the most recent one.
@@ -182,8 +152,6 @@ public com.google.cloud.iot.v1.DeviceConfig getDeviceConfigs(int index) {
     return deviceConfigs_.get(index);
   }
   /**
-   *
-   *
    * 
    * The device configuration for the last few versions. Versions are listed
    * in decreasing order, starting from the most recent one.
@@ -192,12 +160,12 @@ public com.google.cloud.iot.v1.DeviceConfig getDeviceConfigs(int index) {
    * repeated .google.cloud.iot.v1.DeviceConfig device_configs = 1;
    */
   @java.lang.Override
-  public com.google.cloud.iot.v1.DeviceConfigOrBuilder getDeviceConfigsOrBuilder(int index) {
+  public com.google.cloud.iot.v1.DeviceConfigOrBuilder getDeviceConfigsOrBuilder(
+      int index) {
     return deviceConfigs_.get(index);
   }
 
   private byte memoizedIsInitialized = -1;
-
   @java.lang.Override
   public final boolean isInitialized() {
     byte isInitialized = memoizedIsInitialized;
@@ -209,7 +177,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 < deviceConfigs_.size(); i++) {
       output.writeMessage(1, deviceConfigs_.get(i));
     }
@@ -223,7 +192,8 @@ public int getSerializedSize() {
 
     size = 0;
     for (int i = 0; i < deviceConfigs_.size(); i++) {
-      size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, deviceConfigs_.get(i));
+      size += com.google.protobuf.CodedOutputStream
+        .computeMessageSize(1, deviceConfigs_.get(i));
     }
     size += unknownFields.getSerializedSize();
     memoizedSize = size;
@@ -233,15 +203,15 @@ public int getSerializedSize() {
   @java.lang.Override
   public boolean equals(final java.lang.Object obj) {
     if (obj == this) {
-      return true;
+     return true;
     }
     if (!(obj instanceof com.google.cloud.iot.v1.ListDeviceConfigVersionsResponse)) {
       return super.equals(obj);
     }
-    com.google.cloud.iot.v1.ListDeviceConfigVersionsResponse other =
-        (com.google.cloud.iot.v1.ListDeviceConfigVersionsResponse) obj;
+    com.google.cloud.iot.v1.ListDeviceConfigVersionsResponse other = (com.google.cloud.iot.v1.ListDeviceConfigVersionsResponse) obj;
 
-    if (!getDeviceConfigsList().equals(other.getDeviceConfigsList())) return false;
+    if (!getDeviceConfigsList()
+        .equals(other.getDeviceConfigsList())) return false;
     if (!unknownFields.equals(other.unknownFields)) return false;
     return true;
   }
@@ -263,127 +233,117 @@ public int hashCode() {
   }
 
   public static com.google.cloud.iot.v1.ListDeviceConfigVersionsResponse parseFrom(
-      java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException {
+      java.nio.ByteBuffer data)
+      throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-
   public static com.google.cloud.iot.v1.ListDeviceConfigVersionsResponse parseFrom(
-      java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.nio.ByteBuffer data,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-
   public static com.google.cloud.iot.v1.ListDeviceConfigVersionsResponse parseFrom(
       com.google.protobuf.ByteString data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-
   public static com.google.cloud.iot.v1.ListDeviceConfigVersionsResponse parseFrom(
       com.google.protobuf.ByteString data,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-
   public static com.google.cloud.iot.v1.ListDeviceConfigVersionsResponse parseFrom(byte[] data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-
   public static com.google.cloud.iot.v1.ListDeviceConfigVersionsResponse parseFrom(
-      byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      byte[] data,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-
-  public static com.google.cloud.iot.v1.ListDeviceConfigVersionsResponse parseFrom(
-      java.io.InputStream input) throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+  public static com.google.cloud.iot.v1.ListDeviceConfigVersionsResponse parseFrom(java.io.InputStream input)
+      throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input);
   }
-
   public static com.google.cloud.iot.v1.ListDeviceConfigVersionsResponse parseFrom(
-      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.io.InputStream input,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
-        PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input, extensionRegistry);
   }
-
-  public static com.google.cloud.iot.v1.ListDeviceConfigVersionsResponse parseDelimitedFrom(
-      java.io.InputStream input) throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
+  public static com.google.cloud.iot.v1.ListDeviceConfigVersionsResponse parseDelimitedFrom(java.io.InputStream input)
+      throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3
+        .parseDelimitedWithIOException(PARSER, input);
   }
-
   public static com.google.cloud.iot.v1.ListDeviceConfigVersionsResponse parseDelimitedFrom(
-      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.io.InputStream input,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
-        PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3
+        .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
   }
-
   public static com.google.cloud.iot.v1.ListDeviceConfigVersionsResponse parseFrom(
-      com.google.protobuf.CodedInputStream input) throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+      com.google.protobuf.CodedInputStream input)
+      throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input);
   }
-
   public static com.google.cloud.iot.v1.ListDeviceConfigVersionsResponse parseFrom(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
-        PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input, extensionRegistry);
   }
 
   @java.lang.Override
-  public Builder newBuilderForType() {
-    return newBuilder();
-  }
-
+  public Builder newBuilderForType() { return newBuilder(); }
   public static Builder newBuilder() {
     return DEFAULT_INSTANCE.toBuilder();
   }
-
-  public static Builder newBuilder(
-      com.google.cloud.iot.v1.ListDeviceConfigVersionsResponse prototype) {
+  public static Builder newBuilder(com.google.cloud.iot.v1.ListDeviceConfigVersionsResponse prototype) {
     return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
   }
-
   @java.lang.Override
   public Builder toBuilder() {
-    return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
+    return this == DEFAULT_INSTANCE
+        ? new Builder() : new Builder().mergeFrom(this);
   }
 
   @java.lang.Override
-  protected 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 `ListDeviceConfigVersions`.
    * 
* * Protobuf type {@code google.cloud.iot.v1.ListDeviceConfigVersionsResponse} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.iot.v1.ListDeviceConfigVersionsResponse) com.google.cloud.iot.v1.ListDeviceConfigVersionsResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.iot.v1.DeviceManagerProto - .internal_static_google_cloud_iot_v1_ListDeviceConfigVersionsResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.iot.v1.DeviceManagerProto.internal_static_google_cloud_iot_v1_ListDeviceConfigVersionsResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.iot.v1.DeviceManagerProto - .internal_static_google_cloud_iot_v1_ListDeviceConfigVersionsResponse_fieldAccessorTable + return com.google.cloud.iot.v1.DeviceManagerProto.internal_static_google_cloud_iot_v1_ListDeviceConfigVersionsResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.iot.v1.ListDeviceConfigVersionsResponse.class, - com.google.cloud.iot.v1.ListDeviceConfigVersionsResponse.Builder.class); + com.google.cloud.iot.v1.ListDeviceConfigVersionsResponse.class, com.google.cloud.iot.v1.ListDeviceConfigVersionsResponse.Builder.class); } // Construct using com.google.cloud.iot.v1.ListDeviceConfigVersionsResponse.newBuilder() @@ -391,17 +351,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) { getDeviceConfigsFieldBuilder(); } } - @java.lang.Override public Builder clear() { super.clear(); @@ -415,9 +375,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.iot.v1.DeviceManagerProto - .internal_static_google_cloud_iot_v1_ListDeviceConfigVersionsResponse_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.iot.v1.DeviceManagerProto.internal_static_google_cloud_iot_v1_ListDeviceConfigVersionsResponse_descriptor; } @java.lang.Override @@ -436,8 +396,7 @@ public com.google.cloud.iot.v1.ListDeviceConfigVersionsResponse build() { @java.lang.Override public com.google.cloud.iot.v1.ListDeviceConfigVersionsResponse buildPartial() { - com.google.cloud.iot.v1.ListDeviceConfigVersionsResponse result = - new com.google.cloud.iot.v1.ListDeviceConfigVersionsResponse(this); + com.google.cloud.iot.v1.ListDeviceConfigVersionsResponse result = new com.google.cloud.iot.v1.ListDeviceConfigVersionsResponse(this); int from_bitField0_ = bitField0_; if (deviceConfigsBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { @@ -456,39 +415,38 @@ public com.google.cloud.iot.v1.ListDeviceConfigVersionsResponse buildPartial() { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.iot.v1.ListDeviceConfigVersionsResponse) { - return mergeFrom((com.google.cloud.iot.v1.ListDeviceConfigVersionsResponse) other); + return mergeFrom((com.google.cloud.iot.v1.ListDeviceConfigVersionsResponse)other); } else { super.mergeFrom(other); return this; @@ -496,8 +454,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.iot.v1.ListDeviceConfigVersionsResponse other) { - if (other == com.google.cloud.iot.v1.ListDeviceConfigVersionsResponse.getDefaultInstance()) - return this; + if (other == com.google.cloud.iot.v1.ListDeviceConfigVersionsResponse.getDefaultInstance()) return this; if (deviceConfigsBuilder_ == null) { if (!other.deviceConfigs_.isEmpty()) { if (deviceConfigs_.isEmpty()) { @@ -516,10 +473,9 @@ public Builder mergeFrom(com.google.cloud.iot.v1.ListDeviceConfigVersionsRespons deviceConfigsBuilder_ = null; deviceConfigs_ = other.deviceConfigs_; bitField0_ = (bitField0_ & ~0x00000001); - deviceConfigsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getDeviceConfigsFieldBuilder() - : null; + deviceConfigsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getDeviceConfigsFieldBuilder() : null; } else { deviceConfigsBuilder_.addAllMessages(other.deviceConfigs_); } @@ -544,8 +500,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.iot.v1.ListDeviceConfigVersionsResponse) e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.iot.v1.ListDeviceConfigVersionsResponse) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -554,29 +509,21 @@ public Builder mergeFrom( } return this; } - private int bitField0_; private java.util.List deviceConfigs_ = - java.util.Collections.emptyList(); - + java.util.Collections.emptyList(); private void ensureDeviceConfigsIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { - deviceConfigs_ = - new java.util.ArrayList(deviceConfigs_); + deviceConfigs_ = new java.util.ArrayList(deviceConfigs_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.iot.v1.DeviceConfig, - com.google.cloud.iot.v1.DeviceConfig.Builder, - com.google.cloud.iot.v1.DeviceConfigOrBuilder> - deviceConfigsBuilder_; + com.google.cloud.iot.v1.DeviceConfig, com.google.cloud.iot.v1.DeviceConfig.Builder, com.google.cloud.iot.v1.DeviceConfigOrBuilder> deviceConfigsBuilder_; /** - * - * *
      * The device configuration for the last few versions. Versions are listed
      * in decreasing order, starting from the most recent one.
@@ -592,8 +539,6 @@ public java.util.List getDeviceConfigsList
       }
     }
     /**
-     *
-     *
      * 
      * The device configuration for the last few versions. Versions are listed
      * in decreasing order, starting from the most recent one.
@@ -609,8 +554,6 @@ public int getDeviceConfigsCount() {
       }
     }
     /**
-     *
-     *
      * 
      * The device configuration for the last few versions. Versions are listed
      * in decreasing order, starting from the most recent one.
@@ -626,8 +569,6 @@ public com.google.cloud.iot.v1.DeviceConfig getDeviceConfigs(int index) {
       }
     }
     /**
-     *
-     *
      * 
      * The device configuration for the last few versions. Versions are listed
      * in decreasing order, starting from the most recent one.
@@ -635,7 +576,8 @@ public com.google.cloud.iot.v1.DeviceConfig getDeviceConfigs(int index) {
      *
      * repeated .google.cloud.iot.v1.DeviceConfig device_configs = 1;
      */
-    public Builder setDeviceConfigs(int index, com.google.cloud.iot.v1.DeviceConfig value) {
+    public Builder setDeviceConfigs(
+        int index, com.google.cloud.iot.v1.DeviceConfig value) {
       if (deviceConfigsBuilder_ == null) {
         if (value == null) {
           throw new NullPointerException();
@@ -649,8 +591,6 @@ public Builder setDeviceConfigs(int index, com.google.cloud.iot.v1.DeviceConfig
       return this;
     }
     /**
-     *
-     *
      * 
      * The device configuration for the last few versions. Versions are listed
      * in decreasing order, starting from the most recent one.
@@ -670,8 +610,6 @@ public Builder setDeviceConfigs(
       return this;
     }
     /**
-     *
-     *
      * 
      * The device configuration for the last few versions. Versions are listed
      * in decreasing order, starting from the most recent one.
@@ -693,8 +631,6 @@ public Builder addDeviceConfigs(com.google.cloud.iot.v1.DeviceConfig value) {
       return this;
     }
     /**
-     *
-     *
      * 
      * The device configuration for the last few versions. Versions are listed
      * in decreasing order, starting from the most recent one.
@@ -702,7 +638,8 @@ public Builder addDeviceConfigs(com.google.cloud.iot.v1.DeviceConfig value) {
      *
      * repeated .google.cloud.iot.v1.DeviceConfig device_configs = 1;
      */
-    public Builder addDeviceConfigs(int index, com.google.cloud.iot.v1.DeviceConfig value) {
+    public Builder addDeviceConfigs(
+        int index, com.google.cloud.iot.v1.DeviceConfig value) {
       if (deviceConfigsBuilder_ == null) {
         if (value == null) {
           throw new NullPointerException();
@@ -716,8 +653,6 @@ public Builder addDeviceConfigs(int index, com.google.cloud.iot.v1.DeviceConfig
       return this;
     }
     /**
-     *
-     *
      * 
      * The device configuration for the last few versions. Versions are listed
      * in decreasing order, starting from the most recent one.
@@ -725,7 +660,8 @@ public Builder addDeviceConfigs(int index, com.google.cloud.iot.v1.DeviceConfig
      *
      * repeated .google.cloud.iot.v1.DeviceConfig device_configs = 1;
      */
-    public Builder addDeviceConfigs(com.google.cloud.iot.v1.DeviceConfig.Builder builderForValue) {
+    public Builder addDeviceConfigs(
+        com.google.cloud.iot.v1.DeviceConfig.Builder builderForValue) {
       if (deviceConfigsBuilder_ == null) {
         ensureDeviceConfigsIsMutable();
         deviceConfigs_.add(builderForValue.build());
@@ -736,8 +672,6 @@ public Builder addDeviceConfigs(com.google.cloud.iot.v1.DeviceConfig.Builder bui
       return this;
     }
     /**
-     *
-     *
      * 
      * The device configuration for the last few versions. Versions are listed
      * in decreasing order, starting from the most recent one.
@@ -757,8 +691,6 @@ public Builder addDeviceConfigs(
       return this;
     }
     /**
-     *
-     *
      * 
      * The device configuration for the last few versions. Versions are listed
      * in decreasing order, starting from the most recent one.
@@ -770,7 +702,8 @@ public Builder addAllDeviceConfigs(
         java.lang.Iterable values) {
       if (deviceConfigsBuilder_ == null) {
         ensureDeviceConfigsIsMutable();
-        com.google.protobuf.AbstractMessageLite.Builder.addAll(values, deviceConfigs_);
+        com.google.protobuf.AbstractMessageLite.Builder.addAll(
+            values, deviceConfigs_);
         onChanged();
       } else {
         deviceConfigsBuilder_.addAllMessages(values);
@@ -778,8 +711,6 @@ public Builder addAllDeviceConfigs(
       return this;
     }
     /**
-     *
-     *
      * 
      * The device configuration for the last few versions. Versions are listed
      * in decreasing order, starting from the most recent one.
@@ -798,8 +729,6 @@ public Builder clearDeviceConfigs() {
       return this;
     }
     /**
-     *
-     *
      * 
      * The device configuration for the last few versions. Versions are listed
      * in decreasing order, starting from the most recent one.
@@ -818,8 +747,6 @@ public Builder removeDeviceConfigs(int index) {
       return this;
     }
     /**
-     *
-     *
      * 
      * The device configuration for the last few versions. Versions are listed
      * in decreasing order, starting from the most recent one.
@@ -827,12 +754,11 @@ public Builder removeDeviceConfigs(int index) {
      *
      * repeated .google.cloud.iot.v1.DeviceConfig device_configs = 1;
      */
-    public com.google.cloud.iot.v1.DeviceConfig.Builder getDeviceConfigsBuilder(int index) {
+    public com.google.cloud.iot.v1.DeviceConfig.Builder getDeviceConfigsBuilder(
+        int index) {
       return getDeviceConfigsFieldBuilder().getBuilder(index);
     }
     /**
-     *
-     *
      * 
      * The device configuration for the last few versions. Versions are listed
      * in decreasing order, starting from the most recent one.
@@ -840,16 +766,14 @@ public com.google.cloud.iot.v1.DeviceConfig.Builder getDeviceConfigsBuilder(int
      *
      * repeated .google.cloud.iot.v1.DeviceConfig device_configs = 1;
      */
-    public com.google.cloud.iot.v1.DeviceConfigOrBuilder getDeviceConfigsOrBuilder(int index) {
+    public com.google.cloud.iot.v1.DeviceConfigOrBuilder getDeviceConfigsOrBuilder(
+        int index) {
       if (deviceConfigsBuilder_ == null) {
-        return deviceConfigs_.get(index);
-      } else {
+        return deviceConfigs_.get(index);  } else {
         return deviceConfigsBuilder_.getMessageOrBuilder(index);
       }
     }
     /**
-     *
-     *
      * 
      * The device configuration for the last few versions. Versions are listed
      * in decreasing order, starting from the most recent one.
@@ -857,8 +781,8 @@ public com.google.cloud.iot.v1.DeviceConfigOrBuilder getDeviceConfigsOrBuilder(i
      *
      * repeated .google.cloud.iot.v1.DeviceConfig device_configs = 1;
      */
-    public java.util.List
-        getDeviceConfigsOrBuilderList() {
+    public java.util.List 
+         getDeviceConfigsOrBuilderList() {
       if (deviceConfigsBuilder_ != null) {
         return deviceConfigsBuilder_.getMessageOrBuilderList();
       } else {
@@ -866,8 +790,6 @@ public com.google.cloud.iot.v1.DeviceConfigOrBuilder getDeviceConfigsOrBuilder(i
       }
     }
     /**
-     *
-     *
      * 
      * The device configuration for the last few versions. Versions are listed
      * in decreasing order, starting from the most recent one.
@@ -876,12 +798,10 @@ public com.google.cloud.iot.v1.DeviceConfigOrBuilder getDeviceConfigsOrBuilder(i
      * repeated .google.cloud.iot.v1.DeviceConfig device_configs = 1;
      */
     public com.google.cloud.iot.v1.DeviceConfig.Builder addDeviceConfigsBuilder() {
-      return getDeviceConfigsFieldBuilder()
-          .addBuilder(com.google.cloud.iot.v1.DeviceConfig.getDefaultInstance());
+      return getDeviceConfigsFieldBuilder().addBuilder(
+          com.google.cloud.iot.v1.DeviceConfig.getDefaultInstance());
     }
     /**
-     *
-     *
      * 
      * The device configuration for the last few versions. Versions are listed
      * in decreasing order, starting from the most recent one.
@@ -889,13 +809,12 @@ public com.google.cloud.iot.v1.DeviceConfig.Builder addDeviceConfigsBuilder() {
      *
      * repeated .google.cloud.iot.v1.DeviceConfig device_configs = 1;
      */
-    public com.google.cloud.iot.v1.DeviceConfig.Builder addDeviceConfigsBuilder(int index) {
-      return getDeviceConfigsFieldBuilder()
-          .addBuilder(index, com.google.cloud.iot.v1.DeviceConfig.getDefaultInstance());
+    public com.google.cloud.iot.v1.DeviceConfig.Builder addDeviceConfigsBuilder(
+        int index) {
+      return getDeviceConfigsFieldBuilder().addBuilder(
+          index, com.google.cloud.iot.v1.DeviceConfig.getDefaultInstance());
     }
     /**
-     *
-     *
      * 
      * The device configuration for the last few versions. Versions are listed
      * in decreasing order, starting from the most recent one.
@@ -903,22 +822,16 @@ public com.google.cloud.iot.v1.DeviceConfig.Builder addDeviceConfigsBuilder(int
      *
      * repeated .google.cloud.iot.v1.DeviceConfig device_configs = 1;
      */
-    public java.util.List
-        getDeviceConfigsBuilderList() {
+    public java.util.List 
+         getDeviceConfigsBuilderList() {
       return getDeviceConfigsFieldBuilder().getBuilderList();
     }
-
     private com.google.protobuf.RepeatedFieldBuilderV3<
-            com.google.cloud.iot.v1.DeviceConfig,
-            com.google.cloud.iot.v1.DeviceConfig.Builder,
-            com.google.cloud.iot.v1.DeviceConfigOrBuilder>
+        com.google.cloud.iot.v1.DeviceConfig, com.google.cloud.iot.v1.DeviceConfig.Builder, com.google.cloud.iot.v1.DeviceConfigOrBuilder> 
         getDeviceConfigsFieldBuilder() {
       if (deviceConfigsBuilder_ == null) {
-        deviceConfigsBuilder_ =
-            new com.google.protobuf.RepeatedFieldBuilderV3<
-                com.google.cloud.iot.v1.DeviceConfig,
-                com.google.cloud.iot.v1.DeviceConfig.Builder,
-                com.google.cloud.iot.v1.DeviceConfigOrBuilder>(
+        deviceConfigsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
+            com.google.cloud.iot.v1.DeviceConfig, com.google.cloud.iot.v1.DeviceConfig.Builder, com.google.cloud.iot.v1.DeviceConfigOrBuilder>(
                 deviceConfigs_,
                 ((bitField0_ & 0x00000001) != 0),
                 getParentForChildren(),
@@ -927,9 +840,9 @@ public com.google.cloud.iot.v1.DeviceConfig.Builder addDeviceConfigsBuilder(int
       }
       return deviceConfigsBuilder_;
     }
-
     @java.lang.Override
-    public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) {
+    public final Builder setUnknownFields(
+        final com.google.protobuf.UnknownFieldSet unknownFields) {
       return super.setUnknownFields(unknownFields);
     }
 
@@ -939,12 +852,12 @@ public final Builder mergeUnknownFields(
       return super.mergeUnknownFields(unknownFields);
     }
 
+
     // @@protoc_insertion_point(builder_scope:google.cloud.iot.v1.ListDeviceConfigVersionsResponse)
   }
 
   // @@protoc_insertion_point(class_scope:google.cloud.iot.v1.ListDeviceConfigVersionsResponse)
   private static final com.google.cloud.iot.v1.ListDeviceConfigVersionsResponse DEFAULT_INSTANCE;
-
   static {
     DEFAULT_INSTANCE = new com.google.cloud.iot.v1.ListDeviceConfigVersionsResponse();
   }
@@ -953,16 +866,16 @@ public static com.google.cloud.iot.v1.ListDeviceConfigVersionsResponse getDefaul
     return DEFAULT_INSTANCE;
   }
 
-  private static final com.google.protobuf.Parser PARSER =
-      new com.google.protobuf.AbstractParser() {
-        @java.lang.Override
-        public ListDeviceConfigVersionsResponse parsePartialFrom(
-            com.google.protobuf.CodedInputStream input,
-            com.google.protobuf.ExtensionRegistryLite extensionRegistry)
-            throws com.google.protobuf.InvalidProtocolBufferException {
-          return new ListDeviceConfigVersionsResponse(input, extensionRegistry);
-        }
-      };
+  private static final com.google.protobuf.Parser
+      PARSER = new com.google.protobuf.AbstractParser() {
+    @java.lang.Override
+    public ListDeviceConfigVersionsResponse parsePartialFrom(
+        com.google.protobuf.CodedInputStream input,
+        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+        throws com.google.protobuf.InvalidProtocolBufferException {
+      return new ListDeviceConfigVersionsResponse(input, extensionRegistry);
+    }
+  };
 
   public static com.google.protobuf.Parser parser() {
     return PARSER;
@@ -977,4 +890,6 @@ public com.google.protobuf.Parser getParserFor
   public com.google.cloud.iot.v1.ListDeviceConfigVersionsResponse getDefaultInstanceForType() {
     return DEFAULT_INSTANCE;
   }
+
 }
+
diff --git a/proto-google-cloud-iot-v1/src/main/java/com/google/cloud/iot/v1/ListDeviceConfigVersionsResponseOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-iot-v1/src/main/java/com/google/cloud/iot/v1/ListDeviceConfigVersionsResponseOrBuilder.java
similarity index 69%
rename from proto-google-cloud-iot-v1/src/main/java/com/google/cloud/iot/v1/ListDeviceConfigVersionsResponseOrBuilder.java
rename to owl-bot-staging/v1/proto-google-cloud-iot-v1/src/main/java/com/google/cloud/iot/v1/ListDeviceConfigVersionsResponseOrBuilder.java
index 2784e68a..78eb05c0 100644
--- a/proto-google-cloud-iot-v1/src/main/java/com/google/cloud/iot/v1/ListDeviceConfigVersionsResponseOrBuilder.java
+++ b/owl-bot-staging/v1/proto-google-cloud-iot-v1/src/main/java/com/google/cloud/iot/v1/ListDeviceConfigVersionsResponseOrBuilder.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/iot/v1/device_manager.proto
 
 package com.google.cloud.iot.v1;
 
-public interface ListDeviceConfigVersionsResponseOrBuilder
-    extends
+public interface ListDeviceConfigVersionsResponseOrBuilder extends
     // @@protoc_insertion_point(interface_extends:google.cloud.iot.v1.ListDeviceConfigVersionsResponse)
     com.google.protobuf.MessageOrBuilder {
 
   /**
-   *
-   *
    * 
    * The device configuration for the last few versions. Versions are listed
    * in decreasing order, starting from the most recent one.
@@ -33,10 +15,9 @@ public interface ListDeviceConfigVersionsResponseOrBuilder
    *
    * repeated .google.cloud.iot.v1.DeviceConfig device_configs = 1;
    */
-  java.util.List getDeviceConfigsList();
+  java.util.List 
+      getDeviceConfigsList();
   /**
-   *
-   *
    * 
    * The device configuration for the last few versions. Versions are listed
    * in decreasing order, starting from the most recent one.
@@ -46,8 +27,6 @@ public interface ListDeviceConfigVersionsResponseOrBuilder
    */
   com.google.cloud.iot.v1.DeviceConfig getDeviceConfigs(int index);
   /**
-   *
-   *
    * 
    * The device configuration for the last few versions. Versions are listed
    * in decreasing order, starting from the most recent one.
@@ -57,8 +36,6 @@ public interface ListDeviceConfigVersionsResponseOrBuilder
    */
   int getDeviceConfigsCount();
   /**
-   *
-   *
    * 
    * The device configuration for the last few versions. Versions are listed
    * in decreasing order, starting from the most recent one.
@@ -66,11 +43,9 @@ public interface ListDeviceConfigVersionsResponseOrBuilder
    *
    * repeated .google.cloud.iot.v1.DeviceConfig device_configs = 1;
    */
-  java.util.List
+  java.util.List 
       getDeviceConfigsOrBuilderList();
   /**
-   *
-   *
    * 
    * The device configuration for the last few versions. Versions are listed
    * in decreasing order, starting from the most recent one.
@@ -78,5 +53,6 @@ public interface ListDeviceConfigVersionsResponseOrBuilder
    *
    * repeated .google.cloud.iot.v1.DeviceConfig device_configs = 1;
    */
-  com.google.cloud.iot.v1.DeviceConfigOrBuilder getDeviceConfigsOrBuilder(int index);
+  com.google.cloud.iot.v1.DeviceConfigOrBuilder getDeviceConfigsOrBuilder(
+      int index);
 }
diff --git a/proto-google-cloud-iot-v1/src/main/java/com/google/cloud/iot/v1/ListDeviceRegistriesRequest.java b/owl-bot-staging/v1/proto-google-cloud-iot-v1/src/main/java/com/google/cloud/iot/v1/ListDeviceRegistriesRequest.java
similarity index 70%
rename from proto-google-cloud-iot-v1/src/main/java/com/google/cloud/iot/v1/ListDeviceRegistriesRequest.java
rename to owl-bot-staging/v1/proto-google-cloud-iot-v1/src/main/java/com/google/cloud/iot/v1/ListDeviceRegistriesRequest.java
index 749a3848..5ce4dc25 100644
--- a/proto-google-cloud-iot-v1/src/main/java/com/google/cloud/iot/v1/ListDeviceRegistriesRequest.java
+++ b/owl-bot-staging/v1/proto-google-cloud-iot-v1/src/main/java/com/google/cloud/iot/v1/ListDeviceRegistriesRequest.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/iot/v1/device_manager.proto
 
 package com.google.cloud.iot.v1;
 
 /**
- *
- *
  * 
  * Request for `ListDeviceRegistries`.
  * 
* * Protobuf type {@code google.cloud.iot.v1.ListDeviceRegistriesRequest} */ -public final class ListDeviceRegistriesRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class ListDeviceRegistriesRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.iot.v1.ListDeviceRegistriesRequest) ListDeviceRegistriesRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use ListDeviceRegistriesRequest.newBuilder() to construct. private ListDeviceRegistriesRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private ListDeviceRegistriesRequest() { parent_ = ""; pageToken_ = ""; @@ -44,15 +26,16 @@ private ListDeviceRegistriesRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new ListDeviceRegistriesRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private ListDeviceRegistriesRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -71,32 +54,30 @@ private ListDeviceRegistriesRequest( case 0: done = true; break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); + case 10: { + java.lang.String s = input.readStringRequireUtf8(); - parent_ = s; - break; - } - case 16: - { - pageSize_ = input.readInt32(); - break; - } - case 26: - { - java.lang.String s = input.readStringRequireUtf8(); + parent_ = s; + break; + } + case 16: { - pageToken_ = s; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + pageSize_ = input.readInt32(); + break; + } + case 26: { + java.lang.String s = input.readStringRequireUtf8(); + + pageToken_ = s; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -104,42 +85,35 @@ private ListDeviceRegistriesRequest( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.iot.v1.DeviceManagerProto - .internal_static_google_cloud_iot_v1_ListDeviceRegistriesRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.iot.v1.DeviceManagerProto.internal_static_google_cloud_iot_v1_ListDeviceRegistriesRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.iot.v1.DeviceManagerProto - .internal_static_google_cloud_iot_v1_ListDeviceRegistriesRequest_fieldAccessorTable + return com.google.cloud.iot.v1.DeviceManagerProto.internal_static_google_cloud_iot_v1_ListDeviceRegistriesRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.iot.v1.ListDeviceRegistriesRequest.class, - com.google.cloud.iot.v1.ListDeviceRegistriesRequest.Builder.class); + com.google.cloud.iot.v1.ListDeviceRegistriesRequest.class, com.google.cloud.iot.v1.ListDeviceRegistriesRequest.Builder.class); } public static final int PARENT_FIELD_NUMBER = 1; private volatile java.lang.Object parent_; /** - * - * *
    * Required. The project and cloud region path. For example,
    * `projects/example-project/locations/us-central1`.
    * 
* - * - * string parent = 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 @@ -148,32 +122,30 @@ public java.lang.String getParent() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; } } /** - * - * *
    * Required. The project and cloud region path. For example,
    * `projects/example-project/locations/us-central1`.
    * 
* - * - * string parent = 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 { @@ -184,8 +156,6 @@ public com.google.protobuf.ByteString getParentBytes() { public static final int PAGE_SIZE_FIELD_NUMBER = 2; private int pageSize_; /** - * - * *
    * The maximum number of registries to return in the response. If this value
    * is zero, the service will select a default size. A call may return fewer
@@ -194,7 +164,6 @@ public com.google.protobuf.ByteString getParentBytes() {
    * 
* * int32 page_size = 2; - * * @return The pageSize. */ @java.lang.Override @@ -205,8 +174,6 @@ public int getPageSize() { public static final int PAGE_TOKEN_FIELD_NUMBER = 3; private volatile java.lang.Object pageToken_; /** - * - * *
    * The value returned by the last `ListDeviceRegistriesResponse`; indicates
    * that this is a continuation of a prior `ListDeviceRegistries` call and
@@ -214,7 +181,6 @@ public int getPageSize() {
    * 
* * string page_token = 3; - * * @return The pageToken. */ @java.lang.Override @@ -223,15 +189,14 @@ public java.lang.String getPageToken() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); pageToken_ = s; return s; } } /** - * - * *
    * The value returned by the last `ListDeviceRegistriesResponse`; indicates
    * that this is a continuation of a prior `ListDeviceRegistries` call and
@@ -239,15 +204,16 @@ public java.lang.String getPageToken() {
    * 
* * string page_token = 3; - * * @return The bytes for pageToken. */ @java.lang.Override - public com.google.protobuf.ByteString getPageTokenBytes() { + public com.google.protobuf.ByteString + getPageTokenBytes() { java.lang.Object ref = pageToken_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); pageToken_ = b; return b; } else { @@ -256,7 +222,6 @@ public com.google.protobuf.ByteString getPageTokenBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -268,7 +233,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); } @@ -291,7 +257,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_); @@ -304,17 +271,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.iot.v1.ListDeviceRegistriesRequest)) { return super.equals(obj); } - com.google.cloud.iot.v1.ListDeviceRegistriesRequest other = - (com.google.cloud.iot.v1.ListDeviceRegistriesRequest) obj; + com.google.cloud.iot.v1.ListDeviceRegistriesRequest other = (com.google.cloud.iot.v1.ListDeviceRegistriesRequest) obj; - if (!getParent().equals(other.getParent())) return false; - if (getPageSize() != other.getPageSize()) return false; - if (!getPageToken().equals(other.getPageToken())) return false; + if (!getParent() + .equals(other.getParent())) return false; + if (getPageSize() + != other.getPageSize()) return false; + if (!getPageToken() + .equals(other.getPageToken())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -338,126 +307,117 @@ public int hashCode() { } public static com.google.cloud.iot.v1.ListDeviceRegistriesRequest parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.iot.v1.ListDeviceRegistriesRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.iot.v1.ListDeviceRegistriesRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.iot.v1.ListDeviceRegistriesRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.iot.v1.ListDeviceRegistriesRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.iot.v1.ListDeviceRegistriesRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.iot.v1.ListDeviceRegistriesRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.iot.v1.ListDeviceRegistriesRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.iot.v1.ListDeviceRegistriesRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.iot.v1.ListDeviceRegistriesRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.iot.v1.ListDeviceRegistriesRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.iot.v1.ListDeviceRegistriesRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.iot.v1.ListDeviceRegistriesRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.iot.v1.ListDeviceRegistriesRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.iot.v1.ListDeviceRegistriesRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected 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 `ListDeviceRegistries`.
    * 
* * Protobuf type {@code google.cloud.iot.v1.ListDeviceRegistriesRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.iot.v1.ListDeviceRegistriesRequest) com.google.cloud.iot.v1.ListDeviceRegistriesRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.iot.v1.DeviceManagerProto - .internal_static_google_cloud_iot_v1_ListDeviceRegistriesRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.iot.v1.DeviceManagerProto.internal_static_google_cloud_iot_v1_ListDeviceRegistriesRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.iot.v1.DeviceManagerProto - .internal_static_google_cloud_iot_v1_ListDeviceRegistriesRequest_fieldAccessorTable + return com.google.cloud.iot.v1.DeviceManagerProto.internal_static_google_cloud_iot_v1_ListDeviceRegistriesRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.iot.v1.ListDeviceRegistriesRequest.class, - com.google.cloud.iot.v1.ListDeviceRegistriesRequest.Builder.class); + com.google.cloud.iot.v1.ListDeviceRegistriesRequest.class, com.google.cloud.iot.v1.ListDeviceRegistriesRequest.Builder.class); } // Construct using com.google.cloud.iot.v1.ListDeviceRegistriesRequest.newBuilder() @@ -465,15 +425,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(); @@ -487,9 +448,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.iot.v1.DeviceManagerProto - .internal_static_google_cloud_iot_v1_ListDeviceRegistriesRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.iot.v1.DeviceManagerProto.internal_static_google_cloud_iot_v1_ListDeviceRegistriesRequest_descriptor; } @java.lang.Override @@ -508,8 +469,7 @@ public com.google.cloud.iot.v1.ListDeviceRegistriesRequest build() { @java.lang.Override public com.google.cloud.iot.v1.ListDeviceRegistriesRequest buildPartial() { - com.google.cloud.iot.v1.ListDeviceRegistriesRequest result = - new com.google.cloud.iot.v1.ListDeviceRegistriesRequest(this); + com.google.cloud.iot.v1.ListDeviceRegistriesRequest result = new com.google.cloud.iot.v1.ListDeviceRegistriesRequest(this); result.parent_ = parent_; result.pageSize_ = pageSize_; result.pageToken_ = pageToken_; @@ -521,39 +481,38 @@ public com.google.cloud.iot.v1.ListDeviceRegistriesRequest buildPartial() { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.iot.v1.ListDeviceRegistriesRequest) { - return mergeFrom((com.google.cloud.iot.v1.ListDeviceRegistriesRequest) other); + return mergeFrom((com.google.cloud.iot.v1.ListDeviceRegistriesRequest)other); } else { super.mergeFrom(other); return this; @@ -561,8 +520,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.iot.v1.ListDeviceRegistriesRequest other) { - if (other == com.google.cloud.iot.v1.ListDeviceRegistriesRequest.getDefaultInstance()) - return this; + if (other == com.google.cloud.iot.v1.ListDeviceRegistriesRequest.getDefaultInstance()) return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; onChanged(); @@ -593,8 +551,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.iot.v1.ListDeviceRegistriesRequest) e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.iot.v1.ListDeviceRegistriesRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -606,23 +563,19 @@ public Builder mergeFrom( private java.lang.Object parent_ = ""; /** - * - * *
      * Required. The project and cloud region path. For example,
      * `projects/example-project/locations/us-central1`.
      * 
* - * - * string parent = 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; @@ -631,24 +584,21 @@ public java.lang.String getParent() { } } /** - * - * *
      * Required. The project and cloud region path. For example,
      * `projects/example-project/locations/us-central1`.
      * 
* - * - * string parent = 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 { @@ -656,79 +606,64 @@ public com.google.protobuf.ByteString getParentBytes() { } } /** - * - * *
      * Required. The project and cloud region path. For example,
      * `projects/example-project/locations/us-central1`.
      * 
* - * - * 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 project and cloud region path. For example,
      * `projects/example-project/locations/us-central1`.
      * 
* - * - * string 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 project and cloud region path. For example,
      * `projects/example-project/locations/us-central1`.
      * 
* - * - * 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 registries to return in the response. If this value
      * is zero, the service will select a default size. A call may return fewer
@@ -737,7 +672,6 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) {
      * 
* * int32 page_size = 2; - * * @return The pageSize. */ @java.lang.Override @@ -745,8 +679,6 @@ public int getPageSize() { return pageSize_; } /** - * - * *
      * The maximum number of registries to return in the response. If this value
      * is zero, the service will select a default size. A call may return fewer
@@ -755,19 +687,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 registries to return in the response. If this value
      * is zero, the service will select a default size. A call may return fewer
@@ -776,11 +705,10 @@ public Builder setPageSize(int value) {
      * 
* * int32 page_size = 2; - * * @return This builder for chaining. */ public Builder clearPageSize() { - + pageSize_ = 0; onChanged(); return this; @@ -788,8 +716,6 @@ public Builder clearPageSize() { private java.lang.Object pageToken_ = ""; /** - * - * *
      * The value returned by the last `ListDeviceRegistriesResponse`; indicates
      * that this is a continuation of a prior `ListDeviceRegistries` call and
@@ -797,13 +723,13 @@ public Builder clearPageSize() {
      * 
* * string page_token = 3; - * * @return The pageToken. */ public java.lang.String getPageToken() { java.lang.Object ref = pageToken_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); pageToken_ = s; return s; @@ -812,8 +738,6 @@ public java.lang.String getPageToken() { } } /** - * - * *
      * The value returned by the last `ListDeviceRegistriesResponse`; indicates
      * that this is a continuation of a prior `ListDeviceRegistries` call and
@@ -821,14 +745,15 @@ public java.lang.String getPageToken() {
      * 
* * string page_token = 3; - * * @return The bytes for pageToken. */ - public com.google.protobuf.ByteString getPageTokenBytes() { + public com.google.protobuf.ByteString + getPageTokenBytes() { java.lang.Object ref = pageToken_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); pageToken_ = b; return b; } else { @@ -836,8 +761,6 @@ public com.google.protobuf.ByteString getPageTokenBytes() { } } /** - * - * *
      * The value returned by the last `ListDeviceRegistriesResponse`; indicates
      * that this is a continuation of a prior `ListDeviceRegistries` call and
@@ -845,22 +768,20 @@ public com.google.protobuf.ByteString getPageTokenBytes() {
      * 
* * string page_token = 3; - * * @param value The pageToken to set. * @return This builder for chaining. */ - public Builder setPageToken(java.lang.String value) { + public Builder setPageToken( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + pageToken_ = value; onChanged(); return this; } /** - * - * *
      * The value returned by the last `ListDeviceRegistriesResponse`; indicates
      * that this is a continuation of a prior `ListDeviceRegistries` call and
@@ -868,18 +789,15 @@ public Builder setPageToken(java.lang.String value) {
      * 
* * string page_token = 3; - * * @return This builder for chaining. */ public Builder clearPageToken() { - + pageToken_ = getDefaultInstance().getPageToken(); onChanged(); return this; } /** - * - * *
      * The value returned by the last `ListDeviceRegistriesResponse`; indicates
      * that this is a continuation of a prior `ListDeviceRegistries` call and
@@ -887,23 +805,23 @@ public Builder clearPageToken() {
      * 
* * string page_token = 3; - * * @param value The bytes for pageToken to set. * @return This builder for chaining. */ - public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { + public Builder setPageTokenBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + pageToken_ = value; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -913,12 +831,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.iot.v1.ListDeviceRegistriesRequest) } // @@protoc_insertion_point(class_scope:google.cloud.iot.v1.ListDeviceRegistriesRequest) private static final com.google.cloud.iot.v1.ListDeviceRegistriesRequest DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.iot.v1.ListDeviceRegistriesRequest(); } @@ -927,16 +845,16 @@ public static com.google.cloud.iot.v1.ListDeviceRegistriesRequest getDefaultInst return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListDeviceRegistriesRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ListDeviceRegistriesRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListDeviceRegistriesRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ListDeviceRegistriesRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -951,4 +869,6 @@ public com.google.protobuf.Parser getParserForType( public com.google.cloud.iot.v1.ListDeviceRegistriesRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-iot-v1/src/main/java/com/google/cloud/iot/v1/ListDeviceRegistriesRequestOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-iot-v1/src/main/java/com/google/cloud/iot/v1/ListDeviceRegistriesRequestOrBuilder.java similarity index 61% rename from proto-google-cloud-iot-v1/src/main/java/com/google/cloud/iot/v1/ListDeviceRegistriesRequestOrBuilder.java rename to owl-bot-staging/v1/proto-google-cloud-iot-v1/src/main/java/com/google/cloud/iot/v1/ListDeviceRegistriesRequestOrBuilder.java index df99ea40..a318f993 100644 --- a/proto-google-cloud-iot-v1/src/main/java/com/google/cloud/iot/v1/ListDeviceRegistriesRequestOrBuilder.java +++ b/owl-bot-staging/v1/proto-google-cloud-iot-v1/src/main/java/com/google/cloud/iot/v1/ListDeviceRegistriesRequestOrBuilder.java @@ -1,62 +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/iot/v1/device_manager.proto package com.google.cloud.iot.v1; -public interface ListDeviceRegistriesRequestOrBuilder - extends +public interface ListDeviceRegistriesRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.iot.v1.ListDeviceRegistriesRequest) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Required. The project and cloud region path. For example,
    * `projects/example-project/locations/us-central1`.
    * 
* - * - * string parent = 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 project and cloud region path. For example,
    * `projects/example-project/locations/us-central1`.
    * 
* - * - * string parent = 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 registries to return in the response. If this value
    * is zero, the service will select a default size. A call may return fewer
@@ -65,14 +38,11 @@ public interface ListDeviceRegistriesRequestOrBuilder
    * 
* * int32 page_size = 2; - * * @return The pageSize. */ int getPageSize(); /** - * - * *
    * The value returned by the last `ListDeviceRegistriesResponse`; indicates
    * that this is a continuation of a prior `ListDeviceRegistries` call and
@@ -80,13 +50,10 @@ public interface ListDeviceRegistriesRequestOrBuilder
    * 
* * string page_token = 3; - * * @return The pageToken. */ java.lang.String getPageToken(); /** - * - * *
    * The value returned by the last `ListDeviceRegistriesResponse`; indicates
    * that this is a continuation of a prior `ListDeviceRegistries` call and
@@ -94,8 +61,8 @@ public interface ListDeviceRegistriesRequestOrBuilder
    * 
* * string page_token = 3; - * * @return The bytes for pageToken. */ - com.google.protobuf.ByteString getPageTokenBytes(); + com.google.protobuf.ByteString + getPageTokenBytes(); } diff --git a/proto-google-cloud-iot-v1/src/main/java/com/google/cloud/iot/v1/ListDeviceRegistriesResponse.java b/owl-bot-staging/v1/proto-google-cloud-iot-v1/src/main/java/com/google/cloud/iot/v1/ListDeviceRegistriesResponse.java similarity index 74% rename from proto-google-cloud-iot-v1/src/main/java/com/google/cloud/iot/v1/ListDeviceRegistriesResponse.java rename to owl-bot-staging/v1/proto-google-cloud-iot-v1/src/main/java/com/google/cloud/iot/v1/ListDeviceRegistriesResponse.java index e6bd3272..6d9d6e5d 100644 --- a/proto-google-cloud-iot-v1/src/main/java/com/google/cloud/iot/v1/ListDeviceRegistriesResponse.java +++ b/owl-bot-staging/v1/proto-google-cloud-iot-v1/src/main/java/com/google/cloud/iot/v1/ListDeviceRegistriesResponse.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/iot/v1/device_manager.proto package com.google.cloud.iot.v1; /** - * - * *
  * Response for `ListDeviceRegistries`.
  * 
* * Protobuf type {@code google.cloud.iot.v1.ListDeviceRegistriesResponse} */ -public final class ListDeviceRegistriesResponse extends com.google.protobuf.GeneratedMessageV3 - implements +public final class ListDeviceRegistriesResponse extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.iot.v1.ListDeviceRegistriesResponse) ListDeviceRegistriesResponseOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use ListDeviceRegistriesResponse.newBuilder() to construct. private ListDeviceRegistriesResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private ListDeviceRegistriesResponse() { deviceRegistries_ = java.util.Collections.emptyList(); nextPageToken_ = ""; @@ -44,15 +26,16 @@ private ListDeviceRegistriesResponse() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new ListDeviceRegistriesResponse(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private ListDeviceRegistriesResponse( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -72,32 +55,28 @@ private ListDeviceRegistriesResponse( case 0: done = true; break; - case 10: - { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - deviceRegistries_ = - new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; - } - deviceRegistries_.add( - input.readMessage( - com.google.cloud.iot.v1.DeviceRegistry.parser(), extensionRegistry)); - break; + case 10: { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + deviceRegistries_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; } - case 18: - { - java.lang.String s = input.readStringRequireUtf8(); + deviceRegistries_.add( + input.readMessage(com.google.cloud.iot.v1.DeviceRegistry.parser(), extensionRegistry)); + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); - nextPageToken_ = s; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + nextPageToken_ = s; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -105,7 +84,8 @@ private ListDeviceRegistriesResponse( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } 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)) { deviceRegistries_ = java.util.Collections.unmodifiableList(deviceRegistries_); @@ -114,27 +94,22 @@ private ListDeviceRegistriesResponse( makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.iot.v1.DeviceManagerProto - .internal_static_google_cloud_iot_v1_ListDeviceRegistriesResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.iot.v1.DeviceManagerProto.internal_static_google_cloud_iot_v1_ListDeviceRegistriesResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.iot.v1.DeviceManagerProto - .internal_static_google_cloud_iot_v1_ListDeviceRegistriesResponse_fieldAccessorTable + return com.google.cloud.iot.v1.DeviceManagerProto.internal_static_google_cloud_iot_v1_ListDeviceRegistriesResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.iot.v1.ListDeviceRegistriesResponse.class, - com.google.cloud.iot.v1.ListDeviceRegistriesResponse.Builder.class); + com.google.cloud.iot.v1.ListDeviceRegistriesResponse.class, com.google.cloud.iot.v1.ListDeviceRegistriesResponse.Builder.class); } public static final int DEVICE_REGISTRIES_FIELD_NUMBER = 1; private java.util.List deviceRegistries_; /** - * - * *
    * The registries that matched the query.
    * 
@@ -146,8 +121,6 @@ public java.util.List getDeviceRegistrie return deviceRegistries_; } /** - * - * *
    * The registries that matched the query.
    * 
@@ -155,13 +128,11 @@ public java.util.List getDeviceRegistrie * repeated .google.cloud.iot.v1.DeviceRegistry device_registries = 1; */ @java.lang.Override - public java.util.List + public java.util.List getDeviceRegistriesOrBuilderList() { return deviceRegistries_; } /** - * - * *
    * The registries that matched the query.
    * 
@@ -173,8 +144,6 @@ public int getDeviceRegistriesCount() { return deviceRegistries_.size(); } /** - * - * *
    * The registries that matched the query.
    * 
@@ -186,8 +155,6 @@ public com.google.cloud.iot.v1.DeviceRegistry getDeviceRegistries(int index) { return deviceRegistries_.get(index); } /** - * - * *
    * The registries that matched the query.
    * 
@@ -195,15 +162,14 @@ public com.google.cloud.iot.v1.DeviceRegistry getDeviceRegistries(int index) { * repeated .google.cloud.iot.v1.DeviceRegistry device_registries = 1; */ @java.lang.Override - public com.google.cloud.iot.v1.DeviceRegistryOrBuilder getDeviceRegistriesOrBuilder(int index) { + public com.google.cloud.iot.v1.DeviceRegistryOrBuilder getDeviceRegistriesOrBuilder( + int index) { return deviceRegistries_.get(index); } public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; private volatile java.lang.Object nextPageToken_; /** - * - * *
    * If not empty, indicates that there may be more registries that match the
    * request; this value should be passed in a new
@@ -211,7 +177,6 @@ public com.google.cloud.iot.v1.DeviceRegistryOrBuilder getDeviceRegistriesOrBuil
    * 
* * string next_page_token = 2; - * * @return The nextPageToken. */ @java.lang.Override @@ -220,15 +185,14 @@ 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; } } /** - * - * *
    * If not empty, indicates that there may be more registries that match the
    * request; this value should be passed in a new
@@ -236,15 +200,16 @@ public java.lang.String getNextPageToken() {
    * 
* * 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 { @@ -253,7 +218,6 @@ public com.google.protobuf.ByteString getNextPageTokenBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -265,7 +229,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 < deviceRegistries_.size(); i++) { output.writeMessage(1, deviceRegistries_.get(i)); } @@ -282,7 +247,8 @@ public int getSerializedSize() { size = 0; for (int i = 0; i < deviceRegistries_.size(); i++) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, deviceRegistries_.get(i)); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, deviceRegistries_.get(i)); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextPageToken_); @@ -295,16 +261,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.iot.v1.ListDeviceRegistriesResponse)) { return super.equals(obj); } - com.google.cloud.iot.v1.ListDeviceRegistriesResponse other = - (com.google.cloud.iot.v1.ListDeviceRegistriesResponse) obj; + com.google.cloud.iot.v1.ListDeviceRegistriesResponse other = (com.google.cloud.iot.v1.ListDeviceRegistriesResponse) obj; - if (!getDeviceRegistriesList().equals(other.getDeviceRegistriesList())) return false; - if (!getNextPageToken().equals(other.getNextPageToken())) return false; + if (!getDeviceRegistriesList() + .equals(other.getDeviceRegistriesList())) return false; + if (!getNextPageToken() + .equals(other.getNextPageToken())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -328,126 +295,117 @@ public int hashCode() { } public static com.google.cloud.iot.v1.ListDeviceRegistriesResponse parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.iot.v1.ListDeviceRegistriesResponse parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.iot.v1.ListDeviceRegistriesResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.iot.v1.ListDeviceRegistriesResponse parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.iot.v1.ListDeviceRegistriesResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.iot.v1.ListDeviceRegistriesResponse parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.iot.v1.ListDeviceRegistriesResponse parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.iot.v1.ListDeviceRegistriesResponse parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.iot.v1.ListDeviceRegistriesResponse parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.iot.v1.ListDeviceRegistriesResponse parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.iot.v1.ListDeviceRegistriesResponse parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.iot.v1.ListDeviceRegistriesResponse parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.iot.v1.ListDeviceRegistriesResponse parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.iot.v1.ListDeviceRegistriesResponse parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.iot.v1.ListDeviceRegistriesResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected 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 `ListDeviceRegistries`.
    * 
* * Protobuf type {@code google.cloud.iot.v1.ListDeviceRegistriesResponse} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.iot.v1.ListDeviceRegistriesResponse) com.google.cloud.iot.v1.ListDeviceRegistriesResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.iot.v1.DeviceManagerProto - .internal_static_google_cloud_iot_v1_ListDeviceRegistriesResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.iot.v1.DeviceManagerProto.internal_static_google_cloud_iot_v1_ListDeviceRegistriesResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.iot.v1.DeviceManagerProto - .internal_static_google_cloud_iot_v1_ListDeviceRegistriesResponse_fieldAccessorTable + return com.google.cloud.iot.v1.DeviceManagerProto.internal_static_google_cloud_iot_v1_ListDeviceRegistriesResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.iot.v1.ListDeviceRegistriesResponse.class, - com.google.cloud.iot.v1.ListDeviceRegistriesResponse.Builder.class); + com.google.cloud.iot.v1.ListDeviceRegistriesResponse.class, com.google.cloud.iot.v1.ListDeviceRegistriesResponse.Builder.class); } // Construct using com.google.cloud.iot.v1.ListDeviceRegistriesResponse.newBuilder() @@ -455,17 +413,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) { getDeviceRegistriesFieldBuilder(); } } - @java.lang.Override public Builder clear() { super.clear(); @@ -481,9 +439,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.iot.v1.DeviceManagerProto - .internal_static_google_cloud_iot_v1_ListDeviceRegistriesResponse_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.iot.v1.DeviceManagerProto.internal_static_google_cloud_iot_v1_ListDeviceRegistriesResponse_descriptor; } @java.lang.Override @@ -502,8 +460,7 @@ public com.google.cloud.iot.v1.ListDeviceRegistriesResponse build() { @java.lang.Override public com.google.cloud.iot.v1.ListDeviceRegistriesResponse buildPartial() { - com.google.cloud.iot.v1.ListDeviceRegistriesResponse result = - new com.google.cloud.iot.v1.ListDeviceRegistriesResponse(this); + com.google.cloud.iot.v1.ListDeviceRegistriesResponse result = new com.google.cloud.iot.v1.ListDeviceRegistriesResponse(this); int from_bitField0_ = bitField0_; if (deviceRegistriesBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { @@ -523,39 +480,38 @@ public com.google.cloud.iot.v1.ListDeviceRegistriesResponse buildPartial() { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.iot.v1.ListDeviceRegistriesResponse) { - return mergeFrom((com.google.cloud.iot.v1.ListDeviceRegistriesResponse) other); + return mergeFrom((com.google.cloud.iot.v1.ListDeviceRegistriesResponse)other); } else { super.mergeFrom(other); return this; @@ -563,8 +519,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.iot.v1.ListDeviceRegistriesResponse other) { - if (other == com.google.cloud.iot.v1.ListDeviceRegistriesResponse.getDefaultInstance()) - return this; + if (other == com.google.cloud.iot.v1.ListDeviceRegistriesResponse.getDefaultInstance()) return this; if (deviceRegistriesBuilder_ == null) { if (!other.deviceRegistries_.isEmpty()) { if (deviceRegistries_.isEmpty()) { @@ -583,10 +538,9 @@ public Builder mergeFrom(com.google.cloud.iot.v1.ListDeviceRegistriesResponse ot deviceRegistriesBuilder_ = null; deviceRegistries_ = other.deviceRegistries_; bitField0_ = (bitField0_ & ~0x00000001); - deviceRegistriesBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getDeviceRegistriesFieldBuilder() - : null; + deviceRegistriesBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getDeviceRegistriesFieldBuilder() : null; } else { deviceRegistriesBuilder_.addAllMessages(other.deviceRegistries_); } @@ -615,8 +569,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.iot.v1.ListDeviceRegistriesResponse) e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.iot.v1.ListDeviceRegistriesResponse) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -625,29 +578,21 @@ public Builder mergeFrom( } return this; } - private int bitField0_; private java.util.List deviceRegistries_ = - java.util.Collections.emptyList(); - + java.util.Collections.emptyList(); private void ensureDeviceRegistriesIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { - deviceRegistries_ = - new java.util.ArrayList(deviceRegistries_); + deviceRegistries_ = new java.util.ArrayList(deviceRegistries_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.iot.v1.DeviceRegistry, - com.google.cloud.iot.v1.DeviceRegistry.Builder, - com.google.cloud.iot.v1.DeviceRegistryOrBuilder> - deviceRegistriesBuilder_; + com.google.cloud.iot.v1.DeviceRegistry, com.google.cloud.iot.v1.DeviceRegistry.Builder, com.google.cloud.iot.v1.DeviceRegistryOrBuilder> deviceRegistriesBuilder_; /** - * - * *
      * The registries that matched the query.
      * 
@@ -662,8 +607,6 @@ public java.util.List getDeviceRegistrie } } /** - * - * *
      * The registries that matched the query.
      * 
@@ -678,8 +621,6 @@ public int getDeviceRegistriesCount() { } } /** - * - * *
      * The registries that matched the query.
      * 
@@ -694,15 +635,14 @@ public com.google.cloud.iot.v1.DeviceRegistry getDeviceRegistries(int index) { } } /** - * - * *
      * The registries that matched the query.
      * 
* * repeated .google.cloud.iot.v1.DeviceRegistry device_registries = 1; */ - public Builder setDeviceRegistries(int index, com.google.cloud.iot.v1.DeviceRegistry value) { + public Builder setDeviceRegistries( + int index, com.google.cloud.iot.v1.DeviceRegistry value) { if (deviceRegistriesBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -716,8 +656,6 @@ public Builder setDeviceRegistries(int index, com.google.cloud.iot.v1.DeviceRegi return this; } /** - * - * *
      * The registries that matched the query.
      * 
@@ -736,8 +674,6 @@ public Builder setDeviceRegistries( return this; } /** - * - * *
      * The registries that matched the query.
      * 
@@ -758,15 +694,14 @@ public Builder addDeviceRegistries(com.google.cloud.iot.v1.DeviceRegistry value) return this; } /** - * - * *
      * The registries that matched the query.
      * 
* * repeated .google.cloud.iot.v1.DeviceRegistry device_registries = 1; */ - public Builder addDeviceRegistries(int index, com.google.cloud.iot.v1.DeviceRegistry value) { + public Builder addDeviceRegistries( + int index, com.google.cloud.iot.v1.DeviceRegistry value) { if (deviceRegistriesBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -780,8 +715,6 @@ public Builder addDeviceRegistries(int index, com.google.cloud.iot.v1.DeviceRegi return this; } /** - * - * *
      * The registries that matched the query.
      * 
@@ -800,8 +733,6 @@ public Builder addDeviceRegistries( return this; } /** - * - * *
      * The registries that matched the query.
      * 
@@ -820,8 +751,6 @@ public Builder addDeviceRegistries( return this; } /** - * - * *
      * The registries that matched the query.
      * 
@@ -832,7 +761,8 @@ public Builder addAllDeviceRegistries( java.lang.Iterable values) { if (deviceRegistriesBuilder_ == null) { ensureDeviceRegistriesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, deviceRegistries_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, deviceRegistries_); onChanged(); } else { deviceRegistriesBuilder_.addAllMessages(values); @@ -840,8 +770,6 @@ public Builder addAllDeviceRegistries( return this; } /** - * - * *
      * The registries that matched the query.
      * 
@@ -859,8 +787,6 @@ public Builder clearDeviceRegistries() { return this; } /** - * - * *
      * The registries that matched the query.
      * 
@@ -878,44 +804,39 @@ public Builder removeDeviceRegistries(int index) { return this; } /** - * - * *
      * The registries that matched the query.
      * 
* * repeated .google.cloud.iot.v1.DeviceRegistry device_registries = 1; */ - public com.google.cloud.iot.v1.DeviceRegistry.Builder getDeviceRegistriesBuilder(int index) { + public com.google.cloud.iot.v1.DeviceRegistry.Builder getDeviceRegistriesBuilder( + int index) { return getDeviceRegistriesFieldBuilder().getBuilder(index); } /** - * - * *
      * The registries that matched the query.
      * 
* * repeated .google.cloud.iot.v1.DeviceRegistry device_registries = 1; */ - public com.google.cloud.iot.v1.DeviceRegistryOrBuilder getDeviceRegistriesOrBuilder(int index) { + public com.google.cloud.iot.v1.DeviceRegistryOrBuilder getDeviceRegistriesOrBuilder( + int index) { if (deviceRegistriesBuilder_ == null) { - return deviceRegistries_.get(index); - } else { + return deviceRegistries_.get(index); } else { return deviceRegistriesBuilder_.getMessageOrBuilder(index); } } /** - * - * *
      * The registries that matched the query.
      * 
* * repeated .google.cloud.iot.v1.DeviceRegistry device_registries = 1; */ - public java.util.List - getDeviceRegistriesOrBuilderList() { + public java.util.List + getDeviceRegistriesOrBuilderList() { if (deviceRegistriesBuilder_ != null) { return deviceRegistriesBuilder_.getMessageOrBuilderList(); } else { @@ -923,8 +844,6 @@ public com.google.cloud.iot.v1.DeviceRegistryOrBuilder getDeviceRegistriesOrBuil } } /** - * - * *
      * The registries that matched the query.
      * 
@@ -932,47 +851,38 @@ public com.google.cloud.iot.v1.DeviceRegistryOrBuilder getDeviceRegistriesOrBuil * repeated .google.cloud.iot.v1.DeviceRegistry device_registries = 1; */ public com.google.cloud.iot.v1.DeviceRegistry.Builder addDeviceRegistriesBuilder() { - return getDeviceRegistriesFieldBuilder() - .addBuilder(com.google.cloud.iot.v1.DeviceRegistry.getDefaultInstance()); + return getDeviceRegistriesFieldBuilder().addBuilder( + com.google.cloud.iot.v1.DeviceRegistry.getDefaultInstance()); } /** - * - * *
      * The registries that matched the query.
      * 
* * repeated .google.cloud.iot.v1.DeviceRegistry device_registries = 1; */ - public com.google.cloud.iot.v1.DeviceRegistry.Builder addDeviceRegistriesBuilder(int index) { - return getDeviceRegistriesFieldBuilder() - .addBuilder(index, com.google.cloud.iot.v1.DeviceRegistry.getDefaultInstance()); + public com.google.cloud.iot.v1.DeviceRegistry.Builder addDeviceRegistriesBuilder( + int index) { + return getDeviceRegistriesFieldBuilder().addBuilder( + index, com.google.cloud.iot.v1.DeviceRegistry.getDefaultInstance()); } /** - * - * *
      * The registries that matched the query.
      * 
* * repeated .google.cloud.iot.v1.DeviceRegistry device_registries = 1; */ - public java.util.List - getDeviceRegistriesBuilderList() { + public java.util.List + getDeviceRegistriesBuilderList() { return getDeviceRegistriesFieldBuilder().getBuilderList(); } - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.iot.v1.DeviceRegistry, - com.google.cloud.iot.v1.DeviceRegistry.Builder, - com.google.cloud.iot.v1.DeviceRegistryOrBuilder> + com.google.cloud.iot.v1.DeviceRegistry, com.google.cloud.iot.v1.DeviceRegistry.Builder, com.google.cloud.iot.v1.DeviceRegistryOrBuilder> getDeviceRegistriesFieldBuilder() { if (deviceRegistriesBuilder_ == null) { - deviceRegistriesBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.iot.v1.DeviceRegistry, - com.google.cloud.iot.v1.DeviceRegistry.Builder, - com.google.cloud.iot.v1.DeviceRegistryOrBuilder>( + deviceRegistriesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.iot.v1.DeviceRegistry, com.google.cloud.iot.v1.DeviceRegistry.Builder, com.google.cloud.iot.v1.DeviceRegistryOrBuilder>( deviceRegistries_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), @@ -984,8 +894,6 @@ public com.google.cloud.iot.v1.DeviceRegistry.Builder addDeviceRegistriesBuilder private java.lang.Object nextPageToken_ = ""; /** - * - * *
      * If not empty, indicates that there may be more registries that match the
      * request; this value should be passed in a new
@@ -993,13 +901,13 @@ public com.google.cloud.iot.v1.DeviceRegistry.Builder addDeviceRegistriesBuilder
      * 
* * 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; @@ -1008,8 +916,6 @@ public java.lang.String getNextPageToken() { } } /** - * - * *
      * If not empty, indicates that there may be more registries that match the
      * request; this value should be passed in a new
@@ -1017,14 +923,15 @@ public java.lang.String getNextPageToken() {
      * 
* * 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 { @@ -1032,8 +939,6 @@ public com.google.protobuf.ByteString getNextPageTokenBytes() { } } /** - * - * *
      * If not empty, indicates that there may be more registries that match the
      * request; this value should be passed in a new
@@ -1041,22 +946,20 @@ public com.google.protobuf.ByteString getNextPageTokenBytes() {
      * 
* * 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; } /** - * - * *
      * If not empty, indicates that there may be more registries that match the
      * request; this value should be passed in a new
@@ -1064,18 +967,15 @@ public Builder setNextPageToken(java.lang.String value) {
      * 
* * string next_page_token = 2; - * * @return This builder for chaining. */ public Builder clearNextPageToken() { - + nextPageToken_ = getDefaultInstance().getNextPageToken(); onChanged(); return this; } /** - * - * *
      * If not empty, indicates that there may be more registries that match the
      * request; this value should be passed in a new
@@ -1083,23 +983,23 @@ public Builder clearNextPageToken() {
      * 
* * string next_page_token = 2; - * * @param value The bytes for nextPageToken to set. * @return This builder for chaining. */ - public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) { + public Builder setNextPageTokenBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + nextPageToken_ = value; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1109,12 +1009,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.iot.v1.ListDeviceRegistriesResponse) } // @@protoc_insertion_point(class_scope:google.cloud.iot.v1.ListDeviceRegistriesResponse) private static final com.google.cloud.iot.v1.ListDeviceRegistriesResponse DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.iot.v1.ListDeviceRegistriesResponse(); } @@ -1123,16 +1023,16 @@ public static com.google.cloud.iot.v1.ListDeviceRegistriesResponse getDefaultIns return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListDeviceRegistriesResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ListDeviceRegistriesResponse(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListDeviceRegistriesResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ListDeviceRegistriesResponse(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1147,4 +1047,6 @@ public com.google.protobuf.Parser getParserForType public com.google.cloud.iot.v1.ListDeviceRegistriesResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-iot-v1/src/main/java/com/google/cloud/iot/v1/ListDeviceRegistriesResponseOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-iot-v1/src/main/java/com/google/cloud/iot/v1/ListDeviceRegistriesResponseOrBuilder.java similarity index 68% rename from proto-google-cloud-iot-v1/src/main/java/com/google/cloud/iot/v1/ListDeviceRegistriesResponseOrBuilder.java rename to owl-bot-staging/v1/proto-google-cloud-iot-v1/src/main/java/com/google/cloud/iot/v1/ListDeviceRegistriesResponseOrBuilder.java index 769fcc29..b341c6c0 100644 --- a/proto-google-cloud-iot-v1/src/main/java/com/google/cloud/iot/v1/ListDeviceRegistriesResponseOrBuilder.java +++ b/owl-bot-staging/v1/proto-google-cloud-iot-v1/src/main/java/com/google/cloud/iot/v1/ListDeviceRegistriesResponseOrBuilder.java @@ -1,41 +1,22 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/iot/v1/device_manager.proto package com.google.cloud.iot.v1; -public interface ListDeviceRegistriesResponseOrBuilder - extends +public interface ListDeviceRegistriesResponseOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.iot.v1.ListDeviceRegistriesResponse) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * The registries that matched the query.
    * 
* * repeated .google.cloud.iot.v1.DeviceRegistry device_registries = 1; */ - java.util.List getDeviceRegistriesList(); + java.util.List + getDeviceRegistriesList(); /** - * - * *
    * The registries that matched the query.
    * 
@@ -44,8 +25,6 @@ public interface ListDeviceRegistriesResponseOrBuilder */ com.google.cloud.iot.v1.DeviceRegistry getDeviceRegistries(int index); /** - * - * *
    * The registries that matched the query.
    * 
@@ -54,30 +33,25 @@ public interface ListDeviceRegistriesResponseOrBuilder */ int getDeviceRegistriesCount(); /** - * - * *
    * The registries that matched the query.
    * 
* * repeated .google.cloud.iot.v1.DeviceRegistry device_registries = 1; */ - java.util.List + java.util.List getDeviceRegistriesOrBuilderList(); /** - * - * *
    * The registries that matched the query.
    * 
* * repeated .google.cloud.iot.v1.DeviceRegistry device_registries = 1; */ - com.google.cloud.iot.v1.DeviceRegistryOrBuilder getDeviceRegistriesOrBuilder(int index); + com.google.cloud.iot.v1.DeviceRegistryOrBuilder getDeviceRegistriesOrBuilder( + int index); /** - * - * *
    * If not empty, indicates that there may be more registries that match the
    * request; this value should be passed in a new
@@ -85,13 +59,10 @@ public interface ListDeviceRegistriesResponseOrBuilder
    * 
* * string next_page_token = 2; - * * @return The nextPageToken. */ java.lang.String getNextPageToken(); /** - * - * *
    * If not empty, indicates that there may be more registries that match the
    * request; this value should be passed in a new
@@ -99,8 +70,8 @@ public interface ListDeviceRegistriesResponseOrBuilder
    * 
* * string next_page_token = 2; - * * @return The bytes for nextPageToken. */ - com.google.protobuf.ByteString getNextPageTokenBytes(); + com.google.protobuf.ByteString + getNextPageTokenBytes(); } diff --git a/proto-google-cloud-iot-v1/src/main/java/com/google/cloud/iot/v1/ListDeviceStatesRequest.java b/owl-bot-staging/v1/proto-google-cloud-iot-v1/src/main/java/com/google/cloud/iot/v1/ListDeviceStatesRequest.java similarity index 69% rename from proto-google-cloud-iot-v1/src/main/java/com/google/cloud/iot/v1/ListDeviceStatesRequest.java rename to owl-bot-staging/v1/proto-google-cloud-iot-v1/src/main/java/com/google/cloud/iot/v1/ListDeviceStatesRequest.java index cae14f96..e4221b95 100644 --- a/proto-google-cloud-iot-v1/src/main/java/com/google/cloud/iot/v1/ListDeviceStatesRequest.java +++ b/owl-bot-staging/v1/proto-google-cloud-iot-v1/src/main/java/com/google/cloud/iot/v1/ListDeviceStatesRequest.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/iot/v1/device_manager.proto package com.google.cloud.iot.v1; /** - * - * *
  * Request for `ListDeviceStates`.
  * 
* * Protobuf type {@code google.cloud.iot.v1.ListDeviceStatesRequest} */ -public final class ListDeviceStatesRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class ListDeviceStatesRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.iot.v1.ListDeviceStatesRequest) ListDeviceStatesRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use ListDeviceStatesRequest.newBuilder() to construct. private ListDeviceStatesRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private ListDeviceStatesRequest() { name_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new ListDeviceStatesRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private ListDeviceStatesRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -70,25 +53,24 @@ private ListDeviceStatesRequest( case 0: done = true; break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); + case 10: { + java.lang.String s = input.readStringRequireUtf8(); - name_ = s; - break; - } - case 16: - { - numStates_ = input.readInt32(); - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + name_ = s; + break; + } + case 16: { + + numStates_ = input.readInt32(); + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -96,43 +78,36 @@ private ListDeviceStatesRequest( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.iot.v1.DeviceManagerProto - .internal_static_google_cloud_iot_v1_ListDeviceStatesRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.iot.v1.DeviceManagerProto.internal_static_google_cloud_iot_v1_ListDeviceStatesRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.iot.v1.DeviceManagerProto - .internal_static_google_cloud_iot_v1_ListDeviceStatesRequest_fieldAccessorTable + return com.google.cloud.iot.v1.DeviceManagerProto.internal_static_google_cloud_iot_v1_ListDeviceStatesRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.iot.v1.ListDeviceStatesRequest.class, - com.google.cloud.iot.v1.ListDeviceStatesRequest.Builder.class); + com.google.cloud.iot.v1.ListDeviceStatesRequest.class, com.google.cloud.iot.v1.ListDeviceStatesRequest.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** - * - * *
    * Required. The name of the device. For example,
    * `projects/p0/locations/us-central1/registries/registry0/devices/device0` or
    * `projects/p0/locations/us-central1/registries/registry0/devices/{num_id}`.
    * 
* - * - * string name = 1 [(.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 @@ -141,33 +116,31 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** - * - * *
    * Required. The name of the device. For example,
    * `projects/p0/locations/us-central1/registries/registry0/devices/device0` or
    * `projects/p0/locations/us-central1/registries/registry0/devices/{num_id}`.
    * 
* - * - * string name = 1 [(.google.api.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 { @@ -178,8 +151,6 @@ public com.google.protobuf.ByteString getNameBytes() { public static final int NUM_STATES_FIELD_NUMBER = 2; private int numStates_; /** - * - * *
    * The number of states to list. States are listed in descending order of
    * update time. The maximum number of states retained is 10. If this
@@ -187,7 +158,6 @@ public com.google.protobuf.ByteString getNameBytes() {
    * 
* * int32 num_states = 2; - * * @return The numStates. */ @java.lang.Override @@ -196,7 +166,6 @@ public int getNumStates() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -208,7 +177,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_); } @@ -228,7 +198,8 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); } if (numStates_ != 0) { - size += com.google.protobuf.CodedOutputStream.computeInt32Size(2, numStates_); + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(2, numStates_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -238,16 +209,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.iot.v1.ListDeviceStatesRequest)) { return super.equals(obj); } - com.google.cloud.iot.v1.ListDeviceStatesRequest other = - (com.google.cloud.iot.v1.ListDeviceStatesRequest) obj; + com.google.cloud.iot.v1.ListDeviceStatesRequest other = (com.google.cloud.iot.v1.ListDeviceStatesRequest) obj; - if (!getName().equals(other.getName())) return false; - if (getNumStates() != other.getNumStates()) return false; + if (!getName() + .equals(other.getName())) return false; + if (getNumStates() + != other.getNumStates()) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -268,127 +240,118 @@ public int hashCode() { return hash; } - public static com.google.cloud.iot.v1.ListDeviceStatesRequest parseFrom(java.nio.ByteBuffer data) + public static com.google.cloud.iot.v1.ListDeviceStatesRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.iot.v1.ListDeviceStatesRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.iot.v1.ListDeviceStatesRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.iot.v1.ListDeviceStatesRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.iot.v1.ListDeviceStatesRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.iot.v1.ListDeviceStatesRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.iot.v1.ListDeviceStatesRequest 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.iot.v1.ListDeviceStatesRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.iot.v1.ListDeviceStatesRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.iot.v1.ListDeviceStatesRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.iot.v1.ListDeviceStatesRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.iot.v1.ListDeviceStatesRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.iot.v1.ListDeviceStatesRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.iot.v1.ListDeviceStatesRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected 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 `ListDeviceStates`.
    * 
* * Protobuf type {@code google.cloud.iot.v1.ListDeviceStatesRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.iot.v1.ListDeviceStatesRequest) com.google.cloud.iot.v1.ListDeviceStatesRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.iot.v1.DeviceManagerProto - .internal_static_google_cloud_iot_v1_ListDeviceStatesRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.iot.v1.DeviceManagerProto.internal_static_google_cloud_iot_v1_ListDeviceStatesRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.iot.v1.DeviceManagerProto - .internal_static_google_cloud_iot_v1_ListDeviceStatesRequest_fieldAccessorTable + return com.google.cloud.iot.v1.DeviceManagerProto.internal_static_google_cloud_iot_v1_ListDeviceStatesRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.iot.v1.ListDeviceStatesRequest.class, - com.google.cloud.iot.v1.ListDeviceStatesRequest.Builder.class); + com.google.cloud.iot.v1.ListDeviceStatesRequest.class, com.google.cloud.iot.v1.ListDeviceStatesRequest.Builder.class); } // Construct using com.google.cloud.iot.v1.ListDeviceStatesRequest.newBuilder() @@ -396,15 +359,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(); @@ -416,9 +380,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.iot.v1.DeviceManagerProto - .internal_static_google_cloud_iot_v1_ListDeviceStatesRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.iot.v1.DeviceManagerProto.internal_static_google_cloud_iot_v1_ListDeviceStatesRequest_descriptor; } @java.lang.Override @@ -437,8 +401,7 @@ public com.google.cloud.iot.v1.ListDeviceStatesRequest build() { @java.lang.Override public com.google.cloud.iot.v1.ListDeviceStatesRequest buildPartial() { - com.google.cloud.iot.v1.ListDeviceStatesRequest result = - new com.google.cloud.iot.v1.ListDeviceStatesRequest(this); + com.google.cloud.iot.v1.ListDeviceStatesRequest result = new com.google.cloud.iot.v1.ListDeviceStatesRequest(this); result.name_ = name_; result.numStates_ = numStates_; onBuilt(); @@ -449,39 +412,38 @@ public com.google.cloud.iot.v1.ListDeviceStatesRequest buildPartial() { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.iot.v1.ListDeviceStatesRequest) { - return mergeFrom((com.google.cloud.iot.v1.ListDeviceStatesRequest) other); + return mergeFrom((com.google.cloud.iot.v1.ListDeviceStatesRequest)other); } else { super.mergeFrom(other); return this; @@ -489,8 +451,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.iot.v1.ListDeviceStatesRequest other) { - if (other == com.google.cloud.iot.v1.ListDeviceStatesRequest.getDefaultInstance()) - return this; + if (other == com.google.cloud.iot.v1.ListDeviceStatesRequest.getDefaultInstance()) return this; if (!other.getName().isEmpty()) { name_ = other.name_; onChanged(); @@ -529,24 +490,20 @@ public Builder mergeFrom( private java.lang.Object name_ = ""; /** - * - * *
      * Required. The name of the device. For example,
      * `projects/p0/locations/us-central1/registries/registry0/devices/device0` or
      * `projects/p0/locations/us-central1/registries/registry0/devices/{num_id}`.
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -555,25 +512,22 @@ public java.lang.String getName() { } } /** - * - * *
      * Required. The name of the device. For example,
      * `projects/p0/locations/us-central1/registries/registry0/devices/device0` or
      * `projects/p0/locations/us-central1/registries/registry0/devices/{num_id}`.
      * 
* - * - * string name = 1 [(.google.api.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 { @@ -581,82 +535,67 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
      * Required. The name of the device. For example,
      * `projects/p0/locations/us-central1/registries/registry0/devices/device0` or
      * `projects/p0/locations/us-central1/registries/registry0/devices/{num_id}`.
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The name to set. * @return This builder for chaining. */ - public Builder setName(java.lang.String value) { + public Builder setName( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + name_ = value; onChanged(); return this; } /** - * - * *
      * Required. The name of the device. For example,
      * `projects/p0/locations/us-central1/registries/registry0/devices/device0` or
      * `projects/p0/locations/us-central1/registries/registry0/devices/{num_id}`.
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return This builder for chaining. */ public Builder clearName() { - + name_ = getDefaultInstance().getName(); onChanged(); return this; } /** - * - * *
      * Required. The name of the device. For example,
      * `projects/p0/locations/us-central1/registries/registry0/devices/device0` or
      * `projects/p0/locations/us-central1/registries/registry0/devices/{num_id}`.
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes(com.google.protobuf.ByteString value) { + public Builder setNameBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; onChanged(); return this; } - private int numStates_; + private int numStates_ ; /** - * - * *
      * The number of states to list. States are listed in descending order of
      * update time. The maximum number of states retained is 10. If this
@@ -664,7 +603,6 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) {
      * 
* * int32 num_states = 2; - * * @return The numStates. */ @java.lang.Override @@ -672,8 +610,6 @@ public int getNumStates() { return numStates_; } /** - * - * *
      * The number of states to list. States are listed in descending order of
      * update time. The maximum number of states retained is 10. If this
@@ -681,19 +617,16 @@ public int getNumStates() {
      * 
* * int32 num_states = 2; - * * @param value The numStates to set. * @return This builder for chaining. */ public Builder setNumStates(int value) { - + numStates_ = value; onChanged(); return this; } /** - * - * *
      * The number of states to list. States are listed in descending order of
      * update time. The maximum number of states retained is 10. If this
@@ -701,18 +634,17 @@ public Builder setNumStates(int value) {
      * 
* * int32 num_states = 2; - * * @return This builder for chaining. */ public Builder clearNumStates() { - + numStates_ = 0; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -722,12 +654,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.iot.v1.ListDeviceStatesRequest) } // @@protoc_insertion_point(class_scope:google.cloud.iot.v1.ListDeviceStatesRequest) private static final com.google.cloud.iot.v1.ListDeviceStatesRequest DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.iot.v1.ListDeviceStatesRequest(); } @@ -736,16 +668,16 @@ public static com.google.cloud.iot.v1.ListDeviceStatesRequest getDefaultInstance return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListDeviceStatesRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ListDeviceStatesRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListDeviceStatesRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ListDeviceStatesRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -760,4 +692,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.iot.v1.ListDeviceStatesRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-iot-v1/src/main/java/com/google/cloud/iot/v1/ListDeviceStatesRequestOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-iot-v1/src/main/java/com/google/cloud/iot/v1/ListDeviceStatesRequestOrBuilder.java similarity index 54% rename from proto-google-cloud-iot-v1/src/main/java/com/google/cloud/iot/v1/ListDeviceStatesRequestOrBuilder.java rename to owl-bot-staging/v1/proto-google-cloud-iot-v1/src/main/java/com/google/cloud/iot/v1/ListDeviceStatesRequestOrBuilder.java index dd4137a8..b19cd7fb 100644 --- a/proto-google-cloud-iot-v1/src/main/java/com/google/cloud/iot/v1/ListDeviceStatesRequestOrBuilder.java +++ b/owl-bot-staging/v1/proto-google-cloud-iot-v1/src/main/java/com/google/cloud/iot/v1/ListDeviceStatesRequestOrBuilder.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/iot/v1/device_manager.proto package com.google.cloud.iot.v1; -public interface ListDeviceStatesRequestOrBuilder - extends +public interface ListDeviceStatesRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.iot.v1.ListDeviceStatesRequest) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Required. The name of the device. For example,
    * `projects/p0/locations/us-central1/registries/registry0/devices/device0` or
    * `projects/p0/locations/us-central1/registries/registry0/devices/{num_id}`.
    * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The name. */ java.lang.String getName(); /** - * - * *
    * Required. The name of the device. For example,
    * `projects/p0/locations/us-central1/registries/registry0/devices/device0` or
    * `projects/p0/locations/us-central1/registries/registry0/devices/{num_id}`.
    * 
* - * - * string name = 1 [(.google.api.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(); /** - * - * *
    * The number of states to list. States are listed in descending order of
    * update time. The maximum number of states retained is 10. If this
@@ -66,7 +39,6 @@ public interface ListDeviceStatesRequestOrBuilder
    * 
* * int32 num_states = 2; - * * @return The numStates. */ int getNumStates(); diff --git a/proto-google-cloud-iot-v1/src/main/java/com/google/cloud/iot/v1/ListDeviceStatesResponse.java b/owl-bot-staging/v1/proto-google-cloud-iot-v1/src/main/java/com/google/cloud/iot/v1/ListDeviceStatesResponse.java similarity index 75% rename from proto-google-cloud-iot-v1/src/main/java/com/google/cloud/iot/v1/ListDeviceStatesResponse.java rename to owl-bot-staging/v1/proto-google-cloud-iot-v1/src/main/java/com/google/cloud/iot/v1/ListDeviceStatesResponse.java index be6ed6db..dac0f630 100644 --- a/proto-google-cloud-iot-v1/src/main/java/com/google/cloud/iot/v1/ListDeviceStatesResponse.java +++ b/owl-bot-staging/v1/proto-google-cloud-iot-v1/src/main/java/com/google/cloud/iot/v1/ListDeviceStatesResponse.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/iot/v1/device_manager.proto package com.google.cloud.iot.v1; /** - * - * *
  * Response for `ListDeviceStates`.
  * 
* * Protobuf type {@code google.cloud.iot.v1.ListDeviceStatesResponse} */ -public final class ListDeviceStatesResponse extends com.google.protobuf.GeneratedMessageV3 - implements +public final class ListDeviceStatesResponse extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.iot.v1.ListDeviceStatesResponse) ListDeviceStatesResponseOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use ListDeviceStatesResponse.newBuilder() to construct. private ListDeviceStatesResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private ListDeviceStatesResponse() { deviceStates_ = java.util.Collections.emptyList(); } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new ListDeviceStatesResponse(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private ListDeviceStatesResponse( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -71,24 +54,22 @@ private ListDeviceStatesResponse( case 0: done = true; break; - case 10: - { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - deviceStates_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; - } - deviceStates_.add( - input.readMessage( - com.google.cloud.iot.v1.DeviceState.parser(), extensionRegistry)); - break; + case 10: { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + deviceStates_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + deviceStates_.add( + input.readMessage(com.google.cloud.iot.v1.DeviceState.parser(), extensionRegistry)); + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -96,7 +77,8 @@ private ListDeviceStatesResponse( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } 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)) { deviceStates_ = java.util.Collections.unmodifiableList(deviceStates_); @@ -105,27 +87,22 @@ private ListDeviceStatesResponse( makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.iot.v1.DeviceManagerProto - .internal_static_google_cloud_iot_v1_ListDeviceStatesResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.iot.v1.DeviceManagerProto.internal_static_google_cloud_iot_v1_ListDeviceStatesResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.iot.v1.DeviceManagerProto - .internal_static_google_cloud_iot_v1_ListDeviceStatesResponse_fieldAccessorTable + return com.google.cloud.iot.v1.DeviceManagerProto.internal_static_google_cloud_iot_v1_ListDeviceStatesResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.iot.v1.ListDeviceStatesResponse.class, - com.google.cloud.iot.v1.ListDeviceStatesResponse.Builder.class); + com.google.cloud.iot.v1.ListDeviceStatesResponse.class, com.google.cloud.iot.v1.ListDeviceStatesResponse.Builder.class); } public static final int DEVICE_STATES_FIELD_NUMBER = 1; private java.util.List deviceStates_; /** - * - * *
    * The last few device states. States are listed in descending order of server
    * update time, starting from the most recent one.
@@ -138,8 +115,6 @@ public java.util.List getDeviceStatesList()
     return deviceStates_;
   }
   /**
-   *
-   *
    * 
    * The last few device states. States are listed in descending order of server
    * update time, starting from the most recent one.
@@ -148,13 +123,11 @@ public java.util.List getDeviceStatesList()
    * repeated .google.cloud.iot.v1.DeviceState device_states = 1;
    */
   @java.lang.Override
-  public java.util.List
+  public java.util.List 
       getDeviceStatesOrBuilderList() {
     return deviceStates_;
   }
   /**
-   *
-   *
    * 
    * The last few device states. States are listed in descending order of server
    * update time, starting from the most recent one.
@@ -167,8 +140,6 @@ public int getDeviceStatesCount() {
     return deviceStates_.size();
   }
   /**
-   *
-   *
    * 
    * The last few device states. States are listed in descending order of server
    * update time, starting from the most recent one.
@@ -181,8 +152,6 @@ public com.google.cloud.iot.v1.DeviceState getDeviceStates(int index) {
     return deviceStates_.get(index);
   }
   /**
-   *
-   *
    * 
    * The last few device states. States are listed in descending order of server
    * update time, starting from the most recent one.
@@ -191,12 +160,12 @@ public com.google.cloud.iot.v1.DeviceState getDeviceStates(int index) {
    * repeated .google.cloud.iot.v1.DeviceState device_states = 1;
    */
   @java.lang.Override
-  public com.google.cloud.iot.v1.DeviceStateOrBuilder getDeviceStatesOrBuilder(int index) {
+  public com.google.cloud.iot.v1.DeviceStateOrBuilder getDeviceStatesOrBuilder(
+      int index) {
     return deviceStates_.get(index);
   }
 
   private byte memoizedIsInitialized = -1;
-
   @java.lang.Override
   public final boolean isInitialized() {
     byte isInitialized = memoizedIsInitialized;
@@ -208,7 +177,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 < deviceStates_.size(); i++) {
       output.writeMessage(1, deviceStates_.get(i));
     }
@@ -222,7 +192,8 @@ public int getSerializedSize() {
 
     size = 0;
     for (int i = 0; i < deviceStates_.size(); i++) {
-      size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, deviceStates_.get(i));
+      size += com.google.protobuf.CodedOutputStream
+        .computeMessageSize(1, deviceStates_.get(i));
     }
     size += unknownFields.getSerializedSize();
     memoizedSize = size;
@@ -232,15 +203,15 @@ public int getSerializedSize() {
   @java.lang.Override
   public boolean equals(final java.lang.Object obj) {
     if (obj == this) {
-      return true;
+     return true;
     }
     if (!(obj instanceof com.google.cloud.iot.v1.ListDeviceStatesResponse)) {
       return super.equals(obj);
     }
-    com.google.cloud.iot.v1.ListDeviceStatesResponse other =
-        (com.google.cloud.iot.v1.ListDeviceStatesResponse) obj;
+    com.google.cloud.iot.v1.ListDeviceStatesResponse other = (com.google.cloud.iot.v1.ListDeviceStatesResponse) obj;
 
-    if (!getDeviceStatesList().equals(other.getDeviceStatesList())) return false;
+    if (!getDeviceStatesList()
+        .equals(other.getDeviceStatesList())) return false;
     if (!unknownFields.equals(other.unknownFields)) return false;
     return true;
   }
@@ -261,127 +232,118 @@ public int hashCode() {
     return hash;
   }
 
-  public static com.google.cloud.iot.v1.ListDeviceStatesResponse parseFrom(java.nio.ByteBuffer data)
+  public static com.google.cloud.iot.v1.ListDeviceStatesResponse parseFrom(
+      java.nio.ByteBuffer data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-
   public static com.google.cloud.iot.v1.ListDeviceStatesResponse parseFrom(
-      java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.nio.ByteBuffer data,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-
   public static com.google.cloud.iot.v1.ListDeviceStatesResponse parseFrom(
       com.google.protobuf.ByteString data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-
   public static com.google.cloud.iot.v1.ListDeviceStatesResponse parseFrom(
       com.google.protobuf.ByteString data,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-
   public static com.google.cloud.iot.v1.ListDeviceStatesResponse parseFrom(byte[] data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-
   public static com.google.cloud.iot.v1.ListDeviceStatesResponse parseFrom(
-      byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      byte[] data,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-
-  public static com.google.cloud.iot.v1.ListDeviceStatesResponse parseFrom(
-      java.io.InputStream input) throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+  public static com.google.cloud.iot.v1.ListDeviceStatesResponse parseFrom(java.io.InputStream input)
+      throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input);
   }
-
   public static com.google.cloud.iot.v1.ListDeviceStatesResponse parseFrom(
-      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.io.InputStream input,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
-        PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input, extensionRegistry);
   }
-
-  public static com.google.cloud.iot.v1.ListDeviceStatesResponse parseDelimitedFrom(
-      java.io.InputStream input) throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
+  public static com.google.cloud.iot.v1.ListDeviceStatesResponse parseDelimitedFrom(java.io.InputStream input)
+      throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3
+        .parseDelimitedWithIOException(PARSER, input);
   }
-
   public static com.google.cloud.iot.v1.ListDeviceStatesResponse parseDelimitedFrom(
-      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.io.InputStream input,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
-        PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3
+        .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
   }
-
   public static com.google.cloud.iot.v1.ListDeviceStatesResponse parseFrom(
-      com.google.protobuf.CodedInputStream input) throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+      com.google.protobuf.CodedInputStream input)
+      throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input);
   }
-
   public static com.google.cloud.iot.v1.ListDeviceStatesResponse parseFrom(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
-        PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input, extensionRegistry);
   }
 
   @java.lang.Override
-  public Builder newBuilderForType() {
-    return newBuilder();
-  }
-
+  public Builder newBuilderForType() { return newBuilder(); }
   public static Builder newBuilder() {
     return DEFAULT_INSTANCE.toBuilder();
   }
-
   public static Builder newBuilder(com.google.cloud.iot.v1.ListDeviceStatesResponse prototype) {
     return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
   }
-
   @java.lang.Override
   public Builder toBuilder() {
-    return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
+    return this == DEFAULT_INSTANCE
+        ? new Builder() : new Builder().mergeFrom(this);
   }
 
   @java.lang.Override
-  protected 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 `ListDeviceStates`.
    * 
* * Protobuf type {@code google.cloud.iot.v1.ListDeviceStatesResponse} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.iot.v1.ListDeviceStatesResponse) com.google.cloud.iot.v1.ListDeviceStatesResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.iot.v1.DeviceManagerProto - .internal_static_google_cloud_iot_v1_ListDeviceStatesResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.iot.v1.DeviceManagerProto.internal_static_google_cloud_iot_v1_ListDeviceStatesResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.iot.v1.DeviceManagerProto - .internal_static_google_cloud_iot_v1_ListDeviceStatesResponse_fieldAccessorTable + return com.google.cloud.iot.v1.DeviceManagerProto.internal_static_google_cloud_iot_v1_ListDeviceStatesResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.iot.v1.ListDeviceStatesResponse.class, - com.google.cloud.iot.v1.ListDeviceStatesResponse.Builder.class); + com.google.cloud.iot.v1.ListDeviceStatesResponse.class, com.google.cloud.iot.v1.ListDeviceStatesResponse.Builder.class); } // Construct using com.google.cloud.iot.v1.ListDeviceStatesResponse.newBuilder() @@ -389,17 +351,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) { getDeviceStatesFieldBuilder(); } } - @java.lang.Override public Builder clear() { super.clear(); @@ -413,9 +375,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.iot.v1.DeviceManagerProto - .internal_static_google_cloud_iot_v1_ListDeviceStatesResponse_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.iot.v1.DeviceManagerProto.internal_static_google_cloud_iot_v1_ListDeviceStatesResponse_descriptor; } @java.lang.Override @@ -434,8 +396,7 @@ public com.google.cloud.iot.v1.ListDeviceStatesResponse build() { @java.lang.Override public com.google.cloud.iot.v1.ListDeviceStatesResponse buildPartial() { - com.google.cloud.iot.v1.ListDeviceStatesResponse result = - new com.google.cloud.iot.v1.ListDeviceStatesResponse(this); + com.google.cloud.iot.v1.ListDeviceStatesResponse result = new com.google.cloud.iot.v1.ListDeviceStatesResponse(this); int from_bitField0_ = bitField0_; if (deviceStatesBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { @@ -454,39 +415,38 @@ public com.google.cloud.iot.v1.ListDeviceStatesResponse buildPartial() { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.iot.v1.ListDeviceStatesResponse) { - return mergeFrom((com.google.cloud.iot.v1.ListDeviceStatesResponse) other); + return mergeFrom((com.google.cloud.iot.v1.ListDeviceStatesResponse)other); } else { super.mergeFrom(other); return this; @@ -494,8 +454,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.iot.v1.ListDeviceStatesResponse other) { - if (other == com.google.cloud.iot.v1.ListDeviceStatesResponse.getDefaultInstance()) - return this; + if (other == com.google.cloud.iot.v1.ListDeviceStatesResponse.getDefaultInstance()) return this; if (deviceStatesBuilder_ == null) { if (!other.deviceStates_.isEmpty()) { if (deviceStates_.isEmpty()) { @@ -514,10 +473,9 @@ public Builder mergeFrom(com.google.cloud.iot.v1.ListDeviceStatesResponse other) deviceStatesBuilder_ = null; deviceStates_ = other.deviceStates_; bitField0_ = (bitField0_ & ~0x00000001); - deviceStatesBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getDeviceStatesFieldBuilder() - : null; + deviceStatesBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getDeviceStatesFieldBuilder() : null; } else { deviceStatesBuilder_.addAllMessages(other.deviceStates_); } @@ -551,28 +509,21 @@ public Builder mergeFrom( } return this; } - private int bitField0_; private java.util.List deviceStates_ = - java.util.Collections.emptyList(); - + java.util.Collections.emptyList(); private void ensureDeviceStatesIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { deviceStates_ = new java.util.ArrayList(deviceStates_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.iot.v1.DeviceState, - com.google.cloud.iot.v1.DeviceState.Builder, - com.google.cloud.iot.v1.DeviceStateOrBuilder> - deviceStatesBuilder_; + com.google.cloud.iot.v1.DeviceState, com.google.cloud.iot.v1.DeviceState.Builder, com.google.cloud.iot.v1.DeviceStateOrBuilder> deviceStatesBuilder_; /** - * - * *
      * The last few device states. States are listed in descending order of server
      * update time, starting from the most recent one.
@@ -588,8 +539,6 @@ public java.util.List getDeviceStatesList()
       }
     }
     /**
-     *
-     *
      * 
      * The last few device states. States are listed in descending order of server
      * update time, starting from the most recent one.
@@ -605,8 +554,6 @@ public int getDeviceStatesCount() {
       }
     }
     /**
-     *
-     *
      * 
      * The last few device states. States are listed in descending order of server
      * update time, starting from the most recent one.
@@ -622,8 +569,6 @@ public com.google.cloud.iot.v1.DeviceState getDeviceStates(int index) {
       }
     }
     /**
-     *
-     *
      * 
      * The last few device states. States are listed in descending order of server
      * update time, starting from the most recent one.
@@ -631,7 +576,8 @@ public com.google.cloud.iot.v1.DeviceState getDeviceStates(int index) {
      *
      * repeated .google.cloud.iot.v1.DeviceState device_states = 1;
      */
-    public Builder setDeviceStates(int index, com.google.cloud.iot.v1.DeviceState value) {
+    public Builder setDeviceStates(
+        int index, com.google.cloud.iot.v1.DeviceState value) {
       if (deviceStatesBuilder_ == null) {
         if (value == null) {
           throw new NullPointerException();
@@ -645,8 +591,6 @@ public Builder setDeviceStates(int index, com.google.cloud.iot.v1.DeviceState va
       return this;
     }
     /**
-     *
-     *
      * 
      * The last few device states. States are listed in descending order of server
      * update time, starting from the most recent one.
@@ -666,8 +610,6 @@ public Builder setDeviceStates(
       return this;
     }
     /**
-     *
-     *
      * 
      * The last few device states. States are listed in descending order of server
      * update time, starting from the most recent one.
@@ -689,8 +631,6 @@ public Builder addDeviceStates(com.google.cloud.iot.v1.DeviceState value) {
       return this;
     }
     /**
-     *
-     *
      * 
      * The last few device states. States are listed in descending order of server
      * update time, starting from the most recent one.
@@ -698,7 +638,8 @@ public Builder addDeviceStates(com.google.cloud.iot.v1.DeviceState value) {
      *
      * repeated .google.cloud.iot.v1.DeviceState device_states = 1;
      */
-    public Builder addDeviceStates(int index, com.google.cloud.iot.v1.DeviceState value) {
+    public Builder addDeviceStates(
+        int index, com.google.cloud.iot.v1.DeviceState value) {
       if (deviceStatesBuilder_ == null) {
         if (value == null) {
           throw new NullPointerException();
@@ -712,8 +653,6 @@ public Builder addDeviceStates(int index, com.google.cloud.iot.v1.DeviceState va
       return this;
     }
     /**
-     *
-     *
      * 
      * The last few device states. States are listed in descending order of server
      * update time, starting from the most recent one.
@@ -721,7 +660,8 @@ public Builder addDeviceStates(int index, com.google.cloud.iot.v1.DeviceState va
      *
      * repeated .google.cloud.iot.v1.DeviceState device_states = 1;
      */
-    public Builder addDeviceStates(com.google.cloud.iot.v1.DeviceState.Builder builderForValue) {
+    public Builder addDeviceStates(
+        com.google.cloud.iot.v1.DeviceState.Builder builderForValue) {
       if (deviceStatesBuilder_ == null) {
         ensureDeviceStatesIsMutable();
         deviceStates_.add(builderForValue.build());
@@ -732,8 +672,6 @@ public Builder addDeviceStates(com.google.cloud.iot.v1.DeviceState.Builder build
       return this;
     }
     /**
-     *
-     *
      * 
      * The last few device states. States are listed in descending order of server
      * update time, starting from the most recent one.
@@ -753,8 +691,6 @@ public Builder addDeviceStates(
       return this;
     }
     /**
-     *
-     *
      * 
      * The last few device states. States are listed in descending order of server
      * update time, starting from the most recent one.
@@ -766,7 +702,8 @@ public Builder addAllDeviceStates(
         java.lang.Iterable values) {
       if (deviceStatesBuilder_ == null) {
         ensureDeviceStatesIsMutable();
-        com.google.protobuf.AbstractMessageLite.Builder.addAll(values, deviceStates_);
+        com.google.protobuf.AbstractMessageLite.Builder.addAll(
+            values, deviceStates_);
         onChanged();
       } else {
         deviceStatesBuilder_.addAllMessages(values);
@@ -774,8 +711,6 @@ public Builder addAllDeviceStates(
       return this;
     }
     /**
-     *
-     *
      * 
      * The last few device states. States are listed in descending order of server
      * update time, starting from the most recent one.
@@ -794,8 +729,6 @@ public Builder clearDeviceStates() {
       return this;
     }
     /**
-     *
-     *
      * 
      * The last few device states. States are listed in descending order of server
      * update time, starting from the most recent one.
@@ -814,8 +747,6 @@ public Builder removeDeviceStates(int index) {
       return this;
     }
     /**
-     *
-     *
      * 
      * The last few device states. States are listed in descending order of server
      * update time, starting from the most recent one.
@@ -823,12 +754,11 @@ public Builder removeDeviceStates(int index) {
      *
      * repeated .google.cloud.iot.v1.DeviceState device_states = 1;
      */
-    public com.google.cloud.iot.v1.DeviceState.Builder getDeviceStatesBuilder(int index) {
+    public com.google.cloud.iot.v1.DeviceState.Builder getDeviceStatesBuilder(
+        int index) {
       return getDeviceStatesFieldBuilder().getBuilder(index);
     }
     /**
-     *
-     *
      * 
      * The last few device states. States are listed in descending order of server
      * update time, starting from the most recent one.
@@ -836,16 +766,14 @@ public com.google.cloud.iot.v1.DeviceState.Builder getDeviceStatesBuilder(int in
      *
      * repeated .google.cloud.iot.v1.DeviceState device_states = 1;
      */
-    public com.google.cloud.iot.v1.DeviceStateOrBuilder getDeviceStatesOrBuilder(int index) {
+    public com.google.cloud.iot.v1.DeviceStateOrBuilder getDeviceStatesOrBuilder(
+        int index) {
       if (deviceStatesBuilder_ == null) {
-        return deviceStates_.get(index);
-      } else {
+        return deviceStates_.get(index);  } else {
         return deviceStatesBuilder_.getMessageOrBuilder(index);
       }
     }
     /**
-     *
-     *
      * 
      * The last few device states. States are listed in descending order of server
      * update time, starting from the most recent one.
@@ -853,8 +781,8 @@ public com.google.cloud.iot.v1.DeviceStateOrBuilder getDeviceStatesOrBuilder(int
      *
      * repeated .google.cloud.iot.v1.DeviceState device_states = 1;
      */
-    public java.util.List
-        getDeviceStatesOrBuilderList() {
+    public java.util.List 
+         getDeviceStatesOrBuilderList() {
       if (deviceStatesBuilder_ != null) {
         return deviceStatesBuilder_.getMessageOrBuilderList();
       } else {
@@ -862,8 +790,6 @@ public com.google.cloud.iot.v1.DeviceStateOrBuilder getDeviceStatesOrBuilder(int
       }
     }
     /**
-     *
-     *
      * 
      * The last few device states. States are listed in descending order of server
      * update time, starting from the most recent one.
@@ -872,12 +798,10 @@ public com.google.cloud.iot.v1.DeviceStateOrBuilder getDeviceStatesOrBuilder(int
      * repeated .google.cloud.iot.v1.DeviceState device_states = 1;
      */
     public com.google.cloud.iot.v1.DeviceState.Builder addDeviceStatesBuilder() {
-      return getDeviceStatesFieldBuilder()
-          .addBuilder(com.google.cloud.iot.v1.DeviceState.getDefaultInstance());
+      return getDeviceStatesFieldBuilder().addBuilder(
+          com.google.cloud.iot.v1.DeviceState.getDefaultInstance());
     }
     /**
-     *
-     *
      * 
      * The last few device states. States are listed in descending order of server
      * update time, starting from the most recent one.
@@ -885,13 +809,12 @@ public com.google.cloud.iot.v1.DeviceState.Builder addDeviceStatesBuilder() {
      *
      * repeated .google.cloud.iot.v1.DeviceState device_states = 1;
      */
-    public com.google.cloud.iot.v1.DeviceState.Builder addDeviceStatesBuilder(int index) {
-      return getDeviceStatesFieldBuilder()
-          .addBuilder(index, com.google.cloud.iot.v1.DeviceState.getDefaultInstance());
+    public com.google.cloud.iot.v1.DeviceState.Builder addDeviceStatesBuilder(
+        int index) {
+      return getDeviceStatesFieldBuilder().addBuilder(
+          index, com.google.cloud.iot.v1.DeviceState.getDefaultInstance());
     }
     /**
-     *
-     *
      * 
      * The last few device states. States are listed in descending order of server
      * update time, starting from the most recent one.
@@ -899,30 +822,27 @@ public com.google.cloud.iot.v1.DeviceState.Builder addDeviceStatesBuilder(int in
      *
      * repeated .google.cloud.iot.v1.DeviceState device_states = 1;
      */
-    public java.util.List
-        getDeviceStatesBuilderList() {
+    public java.util.List 
+         getDeviceStatesBuilderList() {
       return getDeviceStatesFieldBuilder().getBuilderList();
     }
-
     private com.google.protobuf.RepeatedFieldBuilderV3<
-            com.google.cloud.iot.v1.DeviceState,
-            com.google.cloud.iot.v1.DeviceState.Builder,
-            com.google.cloud.iot.v1.DeviceStateOrBuilder>
+        com.google.cloud.iot.v1.DeviceState, com.google.cloud.iot.v1.DeviceState.Builder, com.google.cloud.iot.v1.DeviceStateOrBuilder> 
         getDeviceStatesFieldBuilder() {
       if (deviceStatesBuilder_ == null) {
-        deviceStatesBuilder_ =
-            new com.google.protobuf.RepeatedFieldBuilderV3<
-                com.google.cloud.iot.v1.DeviceState,
-                com.google.cloud.iot.v1.DeviceState.Builder,
-                com.google.cloud.iot.v1.DeviceStateOrBuilder>(
-                deviceStates_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean());
+        deviceStatesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
+            com.google.cloud.iot.v1.DeviceState, com.google.cloud.iot.v1.DeviceState.Builder, com.google.cloud.iot.v1.DeviceStateOrBuilder>(
+                deviceStates_,
+                ((bitField0_ & 0x00000001) != 0),
+                getParentForChildren(),
+                isClean());
         deviceStates_ = null;
       }
       return deviceStatesBuilder_;
     }
-
     @java.lang.Override
-    public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) {
+    public final Builder setUnknownFields(
+        final com.google.protobuf.UnknownFieldSet unknownFields) {
       return super.setUnknownFields(unknownFields);
     }
 
@@ -932,12 +852,12 @@ public final Builder mergeUnknownFields(
       return super.mergeUnknownFields(unknownFields);
     }
 
+
     // @@protoc_insertion_point(builder_scope:google.cloud.iot.v1.ListDeviceStatesResponse)
   }
 
   // @@protoc_insertion_point(class_scope:google.cloud.iot.v1.ListDeviceStatesResponse)
   private static final com.google.cloud.iot.v1.ListDeviceStatesResponse DEFAULT_INSTANCE;
-
   static {
     DEFAULT_INSTANCE = new com.google.cloud.iot.v1.ListDeviceStatesResponse();
   }
@@ -946,16 +866,16 @@ public static com.google.cloud.iot.v1.ListDeviceStatesResponse getDefaultInstanc
     return DEFAULT_INSTANCE;
   }
 
-  private static final com.google.protobuf.Parser PARSER =
-      new com.google.protobuf.AbstractParser() {
-        @java.lang.Override
-        public ListDeviceStatesResponse parsePartialFrom(
-            com.google.protobuf.CodedInputStream input,
-            com.google.protobuf.ExtensionRegistryLite extensionRegistry)
-            throws com.google.protobuf.InvalidProtocolBufferException {
-          return new ListDeviceStatesResponse(input, extensionRegistry);
-        }
-      };
+  private static final com.google.protobuf.Parser
+      PARSER = new com.google.protobuf.AbstractParser() {
+    @java.lang.Override
+    public ListDeviceStatesResponse parsePartialFrom(
+        com.google.protobuf.CodedInputStream input,
+        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+        throws com.google.protobuf.InvalidProtocolBufferException {
+      return new ListDeviceStatesResponse(input, extensionRegistry);
+    }
+  };
 
   public static com.google.protobuf.Parser parser() {
     return PARSER;
@@ -970,4 +890,6 @@ public com.google.protobuf.Parser getParserForType() {
   public com.google.cloud.iot.v1.ListDeviceStatesResponse getDefaultInstanceForType() {
     return DEFAULT_INSTANCE;
   }
+
 }
+
diff --git a/proto-google-cloud-iot-v1/src/main/java/com/google/cloud/iot/v1/ListDeviceStatesResponseOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-iot-v1/src/main/java/com/google/cloud/iot/v1/ListDeviceStatesResponseOrBuilder.java
similarity index 69%
rename from proto-google-cloud-iot-v1/src/main/java/com/google/cloud/iot/v1/ListDeviceStatesResponseOrBuilder.java
rename to owl-bot-staging/v1/proto-google-cloud-iot-v1/src/main/java/com/google/cloud/iot/v1/ListDeviceStatesResponseOrBuilder.java
index 90f12b2f..a409f7de 100644
--- a/proto-google-cloud-iot-v1/src/main/java/com/google/cloud/iot/v1/ListDeviceStatesResponseOrBuilder.java
+++ b/owl-bot-staging/v1/proto-google-cloud-iot-v1/src/main/java/com/google/cloud/iot/v1/ListDeviceStatesResponseOrBuilder.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/iot/v1/device_manager.proto
 
 package com.google.cloud.iot.v1;
 
-public interface ListDeviceStatesResponseOrBuilder
-    extends
+public interface ListDeviceStatesResponseOrBuilder extends
     // @@protoc_insertion_point(interface_extends:google.cloud.iot.v1.ListDeviceStatesResponse)
     com.google.protobuf.MessageOrBuilder {
 
   /**
-   *
-   *
    * 
    * The last few device states. States are listed in descending order of server
    * update time, starting from the most recent one.
@@ -33,10 +15,9 @@ public interface ListDeviceStatesResponseOrBuilder
    *
    * repeated .google.cloud.iot.v1.DeviceState device_states = 1;
    */
-  java.util.List getDeviceStatesList();
+  java.util.List 
+      getDeviceStatesList();
   /**
-   *
-   *
    * 
    * The last few device states. States are listed in descending order of server
    * update time, starting from the most recent one.
@@ -46,8 +27,6 @@ public interface ListDeviceStatesResponseOrBuilder
    */
   com.google.cloud.iot.v1.DeviceState getDeviceStates(int index);
   /**
-   *
-   *
    * 
    * The last few device states. States are listed in descending order of server
    * update time, starting from the most recent one.
@@ -57,8 +36,6 @@ public interface ListDeviceStatesResponseOrBuilder
    */
   int getDeviceStatesCount();
   /**
-   *
-   *
    * 
    * The last few device states. States are listed in descending order of server
    * update time, starting from the most recent one.
@@ -66,11 +43,9 @@ public interface ListDeviceStatesResponseOrBuilder
    *
    * repeated .google.cloud.iot.v1.DeviceState device_states = 1;
    */
-  java.util.List
+  java.util.List 
       getDeviceStatesOrBuilderList();
   /**
-   *
-   *
    * 
    * The last few device states. States are listed in descending order of server
    * update time, starting from the most recent one.
@@ -78,5 +53,6 @@ public interface ListDeviceStatesResponseOrBuilder
    *
    * repeated .google.cloud.iot.v1.DeviceState device_states = 1;
    */
-  com.google.cloud.iot.v1.DeviceStateOrBuilder getDeviceStatesOrBuilder(int index);
+  com.google.cloud.iot.v1.DeviceStateOrBuilder getDeviceStatesOrBuilder(
+      int index);
 }
diff --git a/proto-google-cloud-iot-v1/src/main/java/com/google/cloud/iot/v1/ListDevicesRequest.java b/owl-bot-staging/v1/proto-google-cloud-iot-v1/src/main/java/com/google/cloud/iot/v1/ListDevicesRequest.java
similarity index 74%
rename from proto-google-cloud-iot-v1/src/main/java/com/google/cloud/iot/v1/ListDevicesRequest.java
rename to owl-bot-staging/v1/proto-google-cloud-iot-v1/src/main/java/com/google/cloud/iot/v1/ListDevicesRequest.java
index 75a79aeb..7b917f69 100644
--- a/proto-google-cloud-iot-v1/src/main/java/com/google/cloud/iot/v1/ListDevicesRequest.java
+++ b/owl-bot-staging/v1/proto-google-cloud-iot-v1/src/main/java/com/google/cloud/iot/v1/ListDevicesRequest.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/iot/v1/device_manager.proto
 
 package com.google.cloud.iot.v1;
 
 /**
- *
- *
  * 
  * Request for `ListDevices`.
  * 
* * Protobuf type {@code google.cloud.iot.v1.ListDevicesRequest} */ -public final class ListDevicesRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class ListDevicesRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.iot.v1.ListDevicesRequest) ListDevicesRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use ListDevicesRequest.newBuilder() to construct. private ListDevicesRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private ListDevicesRequest() { parent_ = ""; deviceNumIds_ = emptyLongList(); @@ -46,15 +28,16 @@ private ListDevicesRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new ListDevicesRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private ListDevicesRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -74,96 +57,86 @@ private ListDevicesRequest( case 0: done = true; break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); + case 10: { + java.lang.String s = input.readStringRequireUtf8(); - parent_ = s; - break; + parent_ = s; + break; + } + case 16: { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + deviceNumIds_ = newLongList(); + mutable_bitField0_ |= 0x00000001; } - case 16: - { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - deviceNumIds_ = newLongList(); - mutable_bitField0_ |= 0x00000001; - } + deviceNumIds_.addLong(input.readUInt64()); + break; + } + case 18: { + int length = input.readRawVarint32(); + int limit = input.pushLimit(length); + if (!((mutable_bitField0_ & 0x00000001) != 0) && input.getBytesUntilLimit() > 0) { + deviceNumIds_ = newLongList(); + mutable_bitField0_ |= 0x00000001; + } + while (input.getBytesUntilLimit() > 0) { deviceNumIds_.addLong(input.readUInt64()); - break; } - case 18: - { - int length = input.readRawVarint32(); - int limit = input.pushLimit(length); - if (!((mutable_bitField0_ & 0x00000001) != 0) && input.getBytesUntilLimit() > 0) { - deviceNumIds_ = newLongList(); - mutable_bitField0_ |= 0x00000001; - } - while (input.getBytesUntilLimit() > 0) { - deviceNumIds_.addLong(input.readUInt64()); - } - input.popLimit(limit); - break; + input.popLimit(limit); + break; + } + case 26: { + java.lang.String s = input.readStringRequireUtf8(); + if (!((mutable_bitField0_ & 0x00000002) != 0)) { + deviceIds_ = new com.google.protobuf.LazyStringArrayList(); + mutable_bitField0_ |= 0x00000002; } - case 26: - { - java.lang.String s = input.readStringRequireUtf8(); - if (!((mutable_bitField0_ & 0x00000002) != 0)) { - deviceIds_ = new com.google.protobuf.LazyStringArrayList(); - mutable_bitField0_ |= 0x00000002; - } - deviceIds_.add(s); - break; + deviceIds_.add(s); + break; + } + case 34: { + com.google.protobuf.FieldMask.Builder subBuilder = null; + if (fieldMask_ != null) { + subBuilder = fieldMask_.toBuilder(); } - case 34: - { - com.google.protobuf.FieldMask.Builder subBuilder = null; - if (fieldMask_ != null) { - subBuilder = fieldMask_.toBuilder(); - } - fieldMask_ = - input.readMessage(com.google.protobuf.FieldMask.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(fieldMask_); - fieldMask_ = subBuilder.buildPartial(); - } - - break; + fieldMask_ = input.readMessage(com.google.protobuf.FieldMask.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(fieldMask_); + fieldMask_ = subBuilder.buildPartial(); } - case 50: - { - com.google.cloud.iot.v1.GatewayListOptions.Builder subBuilder = null; - if (gatewayListOptions_ != null) { - subBuilder = gatewayListOptions_.toBuilder(); - } - gatewayListOptions_ = - input.readMessage( - com.google.cloud.iot.v1.GatewayListOptions.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(gatewayListOptions_); - gatewayListOptions_ = subBuilder.buildPartial(); - } - - break; + + break; + } + case 50: { + com.google.cloud.iot.v1.GatewayListOptions.Builder subBuilder = null; + if (gatewayListOptions_ != null) { + subBuilder = gatewayListOptions_.toBuilder(); } - case 800: - { - pageSize_ = input.readInt32(); - break; + gatewayListOptions_ = input.readMessage(com.google.cloud.iot.v1.GatewayListOptions.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(gatewayListOptions_); + gatewayListOptions_ = subBuilder.buildPartial(); } - case 810: - { - java.lang.String s = input.readStringRequireUtf8(); - pageToken_ = s; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + break; + } + case 800: { + + pageSize_ = input.readInt32(); + break; + } + case 810: { + java.lang.String s = input.readStringRequireUtf8(); + + pageToken_ = s; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -171,7 +144,8 @@ private ListDevicesRequest( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } 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)) { deviceNumIds_.makeImmutable(); // C @@ -183,36 +157,28 @@ private ListDevicesRequest( makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.iot.v1.DeviceManagerProto - .internal_static_google_cloud_iot_v1_ListDevicesRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.iot.v1.DeviceManagerProto.internal_static_google_cloud_iot_v1_ListDevicesRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.iot.v1.DeviceManagerProto - .internal_static_google_cloud_iot_v1_ListDevicesRequest_fieldAccessorTable + return com.google.cloud.iot.v1.DeviceManagerProto.internal_static_google_cloud_iot_v1_ListDevicesRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.iot.v1.ListDevicesRequest.class, - com.google.cloud.iot.v1.ListDevicesRequest.Builder.class); + com.google.cloud.iot.v1.ListDevicesRequest.class, com.google.cloud.iot.v1.ListDevicesRequest.Builder.class); } public static final int PARENT_FIELD_NUMBER = 1; private volatile java.lang.Object parent_; /** - * - * *
    * Required. The device registry path. Required. For example,
    * `projects/my-project/locations/us-central1/registries/my-registry`.
    * 
* - * - * string parent = 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 @@ -221,32 +187,30 @@ public java.lang.String getParent() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; } } /** - * - * *
    * Required. The device registry path. Required. For example,
    * `projects/my-project/locations/us-central1/registries/my-registry`.
    * 
* - * - * string parent = 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 { @@ -257,97 +221,80 @@ public com.google.protobuf.ByteString getParentBytes() { public static final int DEVICE_NUM_IDS_FIELD_NUMBER = 2; private com.google.protobuf.Internal.LongList deviceNumIds_; /** - * - * *
    * A list of device numeric IDs. If empty, this field is ignored. Maximum
    * IDs: 10,000.
    * 
* * repeated uint64 device_num_ids = 2; - * * @return A list containing the deviceNumIds. */ @java.lang.Override - public java.util.List getDeviceNumIdsList() { + public java.util.List + getDeviceNumIdsList() { return deviceNumIds_; } /** - * - * *
    * A list of device numeric IDs. If empty, this field is ignored. Maximum
    * IDs: 10,000.
    * 
* * repeated uint64 device_num_ids = 2; - * * @return The count of deviceNumIds. */ public int getDeviceNumIdsCount() { return deviceNumIds_.size(); } /** - * - * *
    * A list of device numeric IDs. If empty, this field is ignored. Maximum
    * IDs: 10,000.
    * 
* * repeated uint64 device_num_ids = 2; - * * @param index The index of the element to return. * @return The deviceNumIds at the given index. */ public long getDeviceNumIds(int index) { return deviceNumIds_.getLong(index); } - private int deviceNumIdsMemoizedSerializedSize = -1; public static final int DEVICE_IDS_FIELD_NUMBER = 3; private com.google.protobuf.LazyStringList deviceIds_; /** - * - * *
    * A list of device string IDs. For example, `['device0', 'device12']`.
    * If empty, this field is ignored. Maximum IDs: 10,000
    * 
* * repeated string device_ids = 3; - * * @return A list containing the deviceIds. */ - public com.google.protobuf.ProtocolStringList getDeviceIdsList() { + public com.google.protobuf.ProtocolStringList + getDeviceIdsList() { return deviceIds_; } /** - * - * *
    * A list of device string IDs. For example, `['device0', 'device12']`.
    * If empty, this field is ignored. Maximum IDs: 10,000
    * 
* * repeated string device_ids = 3; - * * @return The count of deviceIds. */ public int getDeviceIdsCount() { return deviceIds_.size(); } /** - * - * *
    * A list of device string IDs. For example, `['device0', 'device12']`.
    * If empty, this field is ignored. Maximum IDs: 10,000
    * 
* * repeated string device_ids = 3; - * * @param index The index of the element to return. * @return The deviceIds at the given index. */ @@ -355,27 +302,23 @@ public java.lang.String getDeviceIds(int index) { return deviceIds_.get(index); } /** - * - * *
    * A list of device string IDs. For example, `['device0', 'device12']`.
    * If empty, this field is ignored. Maximum IDs: 10,000
    * 
* * repeated string device_ids = 3; - * * @param index The index of the value to return. * @return The bytes of the deviceIds at the given index. */ - public com.google.protobuf.ByteString getDeviceIdsBytes(int index) { + public com.google.protobuf.ByteString + getDeviceIdsBytes(int index) { return deviceIds_.getByteString(index); } public static final int FIELD_MASK_FIELD_NUMBER = 4; private com.google.protobuf.FieldMask fieldMask_; /** - * - * *
    * The fields of the `Device` resource to be returned in the response. The
    * fields `id` and `num_id` are always returned, along with any
@@ -384,7 +327,6 @@ public com.google.protobuf.ByteString getDeviceIdsBytes(int index) {
    * 
* * .google.protobuf.FieldMask field_mask = 4; - * * @return Whether the fieldMask field is set. */ @java.lang.Override @@ -392,8 +334,6 @@ public boolean hasFieldMask() { return fieldMask_ != null; } /** - * - * *
    * The fields of the `Device` resource to be returned in the response. The
    * fields `id` and `num_id` are always returned, along with any
@@ -402,7 +342,6 @@ public boolean hasFieldMask() {
    * 
* * .google.protobuf.FieldMask field_mask = 4; - * * @return The fieldMask. */ @java.lang.Override @@ -410,8 +349,6 @@ public com.google.protobuf.FieldMask getFieldMask() { return fieldMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : fieldMask_; } /** - * - * *
    * The fields of the `Device` resource to be returned in the response. The
    * fields `id` and `num_id` are always returned, along with any
@@ -429,14 +366,11 @@ public com.google.protobuf.FieldMaskOrBuilder getFieldMaskOrBuilder() {
   public static final int GATEWAY_LIST_OPTIONS_FIELD_NUMBER = 6;
   private com.google.cloud.iot.v1.GatewayListOptions gatewayListOptions_;
   /**
-   *
-   *
    * 
    * Options related to gateways.
    * 
* * .google.cloud.iot.v1.GatewayListOptions gateway_list_options = 6; - * * @return Whether the gatewayListOptions field is set. */ @java.lang.Override @@ -444,25 +378,18 @@ public boolean hasGatewayListOptions() { return gatewayListOptions_ != null; } /** - * - * *
    * Options related to gateways.
    * 
* * .google.cloud.iot.v1.GatewayListOptions gateway_list_options = 6; - * * @return The gatewayListOptions. */ @java.lang.Override public com.google.cloud.iot.v1.GatewayListOptions getGatewayListOptions() { - return gatewayListOptions_ == null - ? com.google.cloud.iot.v1.GatewayListOptions.getDefaultInstance() - : gatewayListOptions_; + return gatewayListOptions_ == null ? com.google.cloud.iot.v1.GatewayListOptions.getDefaultInstance() : gatewayListOptions_; } /** - * - * *
    * Options related to gateways.
    * 
@@ -477,8 +404,6 @@ public com.google.cloud.iot.v1.GatewayListOptionsOrBuilder getGatewayListOptions public static final int PAGE_SIZE_FIELD_NUMBER = 100; private int pageSize_; /** - * - * *
    * The maximum number of devices to return in the response. If this value
    * is zero, the service will select a default size. A call may return fewer
@@ -487,7 +412,6 @@ public com.google.cloud.iot.v1.GatewayListOptionsOrBuilder getGatewayListOptions
    * 
* * int32 page_size = 100; - * * @return The pageSize. */ @java.lang.Override @@ -498,8 +422,6 @@ public int getPageSize() { public static final int PAGE_TOKEN_FIELD_NUMBER = 101; private volatile java.lang.Object pageToken_; /** - * - * *
    * The value returned by the last `ListDevicesResponse`; indicates
    * that this is a continuation of a prior `ListDevices` call and
@@ -507,7 +429,6 @@ public int getPageSize() {
    * 
* * string page_token = 101; - * * @return The pageToken. */ @java.lang.Override @@ -516,15 +437,14 @@ public java.lang.String getPageToken() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); pageToken_ = s; return s; } } /** - * - * *
    * The value returned by the last `ListDevicesResponse`; indicates
    * that this is a continuation of a prior `ListDevices` call and
@@ -532,15 +452,16 @@ public java.lang.String getPageToken() {
    * 
* * string page_token = 101; - * * @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 { @@ -549,7 +470,6 @@ public com.google.protobuf.ByteString getPageTokenBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -561,7 +481,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 { getSerializedSize(); if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); @@ -603,13 +524,14 @@ public int getSerializedSize() { { int dataSize = 0; for (int i = 0; i < deviceNumIds_.size(); i++) { - dataSize += - com.google.protobuf.CodedOutputStream.computeUInt64SizeNoTag(deviceNumIds_.getLong(i)); + dataSize += com.google.protobuf.CodedOutputStream + .computeUInt64SizeNoTag(deviceNumIds_.getLong(i)); } size += dataSize; if (!getDeviceNumIdsList().isEmpty()) { size += 1; - size += com.google.protobuf.CodedOutputStream.computeInt32SizeNoTag(dataSize); + size += com.google.protobuf.CodedOutputStream + .computeInt32SizeNoTag(dataSize); } deviceNumIdsMemoizedSerializedSize = dataSize; } @@ -622,13 +544,16 @@ public int getSerializedSize() { size += 1 * getDeviceIdsList().size(); } if (fieldMask_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getFieldMask()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(4, getFieldMask()); } if (gatewayListOptions_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(6, getGatewayListOptions()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(6, getGatewayListOptions()); } if (pageSize_ != 0) { - size += com.google.protobuf.CodedOutputStream.computeInt32Size(100, pageSize_); + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(100, pageSize_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(101, pageToken_); @@ -641,27 +566,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.iot.v1.ListDevicesRequest)) { return super.equals(obj); } - com.google.cloud.iot.v1.ListDevicesRequest other = - (com.google.cloud.iot.v1.ListDevicesRequest) obj; + com.google.cloud.iot.v1.ListDevicesRequest other = (com.google.cloud.iot.v1.ListDevicesRequest) obj; - if (!getParent().equals(other.getParent())) return false; - if (!getDeviceNumIdsList().equals(other.getDeviceNumIdsList())) return false; - if (!getDeviceIdsList().equals(other.getDeviceIdsList())) return false; + if (!getParent() + .equals(other.getParent())) return false; + if (!getDeviceNumIdsList() + .equals(other.getDeviceNumIdsList())) return false; + if (!getDeviceIdsList() + .equals(other.getDeviceIdsList())) return false; if (hasFieldMask() != other.hasFieldMask()) return false; if (hasFieldMask()) { - if (!getFieldMask().equals(other.getFieldMask())) return false; + if (!getFieldMask() + .equals(other.getFieldMask())) return false; } if (hasGatewayListOptions() != other.hasGatewayListOptions()) return false; if (hasGatewayListOptions()) { - if (!getGatewayListOptions().equals(other.getGatewayListOptions())) return false; + if (!getGatewayListOptions() + .equals(other.getGatewayListOptions())) return false; } - if (getPageSize() != other.getPageSize()) return false; - if (!getPageToken().equals(other.getPageToken())) return false; + if (getPageSize() + != other.getPageSize()) return false; + if (!getPageToken() + .equals(other.getPageToken())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -700,127 +631,118 @@ public int hashCode() { return hash; } - public static com.google.cloud.iot.v1.ListDevicesRequest parseFrom(java.nio.ByteBuffer data) + public static com.google.cloud.iot.v1.ListDevicesRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.iot.v1.ListDevicesRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.iot.v1.ListDevicesRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.iot.v1.ListDevicesRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.iot.v1.ListDevicesRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.iot.v1.ListDevicesRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.iot.v1.ListDevicesRequest 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.iot.v1.ListDevicesRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.iot.v1.ListDevicesRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.iot.v1.ListDevicesRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.iot.v1.ListDevicesRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.iot.v1.ListDevicesRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.iot.v1.ListDevicesRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.iot.v1.ListDevicesRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected 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 `ListDevices`.
    * 
* * Protobuf type {@code google.cloud.iot.v1.ListDevicesRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.iot.v1.ListDevicesRequest) com.google.cloud.iot.v1.ListDevicesRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.iot.v1.DeviceManagerProto - .internal_static_google_cloud_iot_v1_ListDevicesRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.iot.v1.DeviceManagerProto.internal_static_google_cloud_iot_v1_ListDevicesRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.iot.v1.DeviceManagerProto - .internal_static_google_cloud_iot_v1_ListDevicesRequest_fieldAccessorTable + return com.google.cloud.iot.v1.DeviceManagerProto.internal_static_google_cloud_iot_v1_ListDevicesRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.iot.v1.ListDevicesRequest.class, - com.google.cloud.iot.v1.ListDevicesRequest.Builder.class); + com.google.cloud.iot.v1.ListDevicesRequest.class, com.google.cloud.iot.v1.ListDevicesRequest.Builder.class); } // Construct using com.google.cloud.iot.v1.ListDevicesRequest.newBuilder() @@ -828,15 +750,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(); @@ -866,9 +789,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.iot.v1.DeviceManagerProto - .internal_static_google_cloud_iot_v1_ListDevicesRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.iot.v1.DeviceManagerProto.internal_static_google_cloud_iot_v1_ListDevicesRequest_descriptor; } @java.lang.Override @@ -887,8 +810,7 @@ public com.google.cloud.iot.v1.ListDevicesRequest build() { @java.lang.Override public com.google.cloud.iot.v1.ListDevicesRequest buildPartial() { - com.google.cloud.iot.v1.ListDevicesRequest result = - new com.google.cloud.iot.v1.ListDevicesRequest(this); + com.google.cloud.iot.v1.ListDevicesRequest result = new com.google.cloud.iot.v1.ListDevicesRequest(this); int from_bitField0_ = bitField0_; result.parent_ = parent_; if (((bitField0_ & 0x00000001) != 0)) { @@ -921,39 +843,38 @@ public com.google.cloud.iot.v1.ListDevicesRequest buildPartial() { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.iot.v1.ListDevicesRequest) { - return mergeFrom((com.google.cloud.iot.v1.ListDevicesRequest) other); + return mergeFrom((com.google.cloud.iot.v1.ListDevicesRequest)other); } else { super.mergeFrom(other); return this; @@ -1027,28 +948,23 @@ public Builder mergeFrom( } return this; } - private int bitField0_; private java.lang.Object parent_ = ""; /** - * - * *
      * Required. The device registry path. Required. For example,
      * `projects/my-project/locations/us-central1/registries/my-registry`.
      * 
* - * - * string parent = 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; @@ -1057,24 +973,21 @@ public java.lang.String getParent() { } } /** - * - * *
      * Required. The device registry path. Required. For example,
      * `projects/my-project/locations/us-central1/registries/my-registry`.
      * 
* - * - * string parent = 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 { @@ -1082,125 +995,102 @@ public com.google.protobuf.ByteString getParentBytes() { } } /** - * - * *
      * Required. The device registry path. Required. For example,
      * `projects/my-project/locations/us-central1/registries/my-registry`.
      * 
* - * - * 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 device registry path. Required. For example,
      * `projects/my-project/locations/us-central1/registries/my-registry`.
      * 
* - * - * string 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 device registry path. Required. For example,
      * `projects/my-project/locations/us-central1/registries/my-registry`.
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The bytes for parent to set. * @return This builder for chaining. */ - public Builder setParentBytes(com.google.protobuf.ByteString value) { + public Builder setParentBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + parent_ = value; onChanged(); return this; } private com.google.protobuf.Internal.LongList deviceNumIds_ = emptyLongList(); - private void ensureDeviceNumIdsIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { deviceNumIds_ = mutableCopy(deviceNumIds_); bitField0_ |= 0x00000001; - } + } } /** - * - * *
      * A list of device numeric IDs. If empty, this field is ignored. Maximum
      * IDs: 10,000.
      * 
* * repeated uint64 device_num_ids = 2; - * * @return A list containing the deviceNumIds. */ - public java.util.List getDeviceNumIdsList() { - return ((bitField0_ & 0x00000001) != 0) - ? java.util.Collections.unmodifiableList(deviceNumIds_) - : deviceNumIds_; + public java.util.List + getDeviceNumIdsList() { + return ((bitField0_ & 0x00000001) != 0) ? + java.util.Collections.unmodifiableList(deviceNumIds_) : deviceNumIds_; } /** - * - * *
      * A list of device numeric IDs. If empty, this field is ignored. Maximum
      * IDs: 10,000.
      * 
* * repeated uint64 device_num_ids = 2; - * * @return The count of deviceNumIds. */ public int getDeviceNumIdsCount() { return deviceNumIds_.size(); } /** - * - * *
      * A list of device numeric IDs. If empty, this field is ignored. Maximum
      * IDs: 10,000.
      * 
* * repeated uint64 device_num_ids = 2; - * * @param index The index of the element to return. * @return The deviceNumIds at the given index. */ @@ -1208,35 +1098,30 @@ public long getDeviceNumIds(int index) { return deviceNumIds_.getLong(index); } /** - * - * *
      * A list of device numeric IDs. If empty, this field is ignored. Maximum
      * IDs: 10,000.
      * 
* * repeated uint64 device_num_ids = 2; - * * @param index The index to set the value at. * @param value The deviceNumIds to set. * @return This builder for chaining. */ - public Builder setDeviceNumIds(int index, long value) { + public Builder setDeviceNumIds( + int index, long value) { ensureDeviceNumIdsIsMutable(); deviceNumIds_.setLong(index, value); onChanged(); return this; } /** - * - * *
      * A list of device numeric IDs. If empty, this field is ignored. Maximum
      * IDs: 10,000.
      * 
* * repeated uint64 device_num_ids = 2; - * * @param value The deviceNumIds to add. * @return This builder for chaining. */ @@ -1247,34 +1132,30 @@ public Builder addDeviceNumIds(long value) { return this; } /** - * - * *
      * A list of device numeric IDs. If empty, this field is ignored. Maximum
      * IDs: 10,000.
      * 
* * repeated uint64 device_num_ids = 2; - * * @param values The deviceNumIds to add. * @return This builder for chaining. */ - public Builder addAllDeviceNumIds(java.lang.Iterable values) { + public Builder addAllDeviceNumIds( + java.lang.Iterable values) { ensureDeviceNumIdsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, deviceNumIds_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, deviceNumIds_); onChanged(); return this; } /** - * - * *
      * A list of device numeric IDs. If empty, this field is ignored. Maximum
      * IDs: 10,000.
      * 
* * repeated uint64 device_num_ids = 2; - * * @return This builder for chaining. */ public Builder clearDeviceNumIds() { @@ -1284,55 +1165,45 @@ public Builder clearDeviceNumIds() { return this; } - private com.google.protobuf.LazyStringList deviceIds_ = - com.google.protobuf.LazyStringArrayList.EMPTY; - + private com.google.protobuf.LazyStringList deviceIds_ = com.google.protobuf.LazyStringArrayList.EMPTY; private void ensureDeviceIdsIsMutable() { if (!((bitField0_ & 0x00000002) != 0)) { deviceIds_ = new com.google.protobuf.LazyStringArrayList(deviceIds_); bitField0_ |= 0x00000002; - } + } } /** - * - * *
      * A list of device string IDs. For example, `['device0', 'device12']`.
      * If empty, this field is ignored. Maximum IDs: 10,000
      * 
* * repeated string device_ids = 3; - * * @return A list containing the deviceIds. */ - public com.google.protobuf.ProtocolStringList getDeviceIdsList() { + public com.google.protobuf.ProtocolStringList + getDeviceIdsList() { return deviceIds_.getUnmodifiableView(); } /** - * - * *
      * A list of device string IDs. For example, `['device0', 'device12']`.
      * If empty, this field is ignored. Maximum IDs: 10,000
      * 
* * repeated string device_ids = 3; - * * @return The count of deviceIds. */ public int getDeviceIdsCount() { return deviceIds_.size(); } /** - * - * *
      * A list of device string IDs. For example, `['device0', 'device12']`.
      * If empty, this field is ignored. Maximum IDs: 10,000
      * 
* * repeated string device_ids = 3; - * * @param index The index of the element to return. * @return The deviceIds at the given index. */ @@ -1340,95 +1211,85 @@ public java.lang.String getDeviceIds(int index) { return deviceIds_.get(index); } /** - * - * *
      * A list of device string IDs. For example, `['device0', 'device12']`.
      * If empty, this field is ignored. Maximum IDs: 10,000
      * 
* * repeated string device_ids = 3; - * * @param index The index of the value to return. * @return The bytes of the deviceIds at the given index. */ - public com.google.protobuf.ByteString getDeviceIdsBytes(int index) { + public com.google.protobuf.ByteString + getDeviceIdsBytes(int index) { return deviceIds_.getByteString(index); } /** - * - * *
      * A list of device string IDs. For example, `['device0', 'device12']`.
      * If empty, this field is ignored. Maximum IDs: 10,000
      * 
* * repeated string device_ids = 3; - * * @param index The index to set the value at. * @param value The deviceIds to set. * @return This builder for chaining. */ - public Builder setDeviceIds(int index, java.lang.String value) { + public Builder setDeviceIds( + int index, java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureDeviceIdsIsMutable(); + throw new NullPointerException(); + } + ensureDeviceIdsIsMutable(); deviceIds_.set(index, value); onChanged(); return this; } /** - * - * *
      * A list of device string IDs. For example, `['device0', 'device12']`.
      * If empty, this field is ignored. Maximum IDs: 10,000
      * 
* * repeated string device_ids = 3; - * * @param value The deviceIds to add. * @return This builder for chaining. */ - public Builder addDeviceIds(java.lang.String value) { + public Builder addDeviceIds( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureDeviceIdsIsMutable(); + throw new NullPointerException(); + } + ensureDeviceIdsIsMutable(); deviceIds_.add(value); onChanged(); return this; } /** - * - * *
      * A list of device string IDs. For example, `['device0', 'device12']`.
      * If empty, this field is ignored. Maximum IDs: 10,000
      * 
* * repeated string device_ids = 3; - * * @param values The deviceIds to add. * @return This builder for chaining. */ - public Builder addAllDeviceIds(java.lang.Iterable values) { + public Builder addAllDeviceIds( + java.lang.Iterable values) { ensureDeviceIdsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, deviceIds_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, deviceIds_); onChanged(); return this; } /** - * - * *
      * A list of device string IDs. For example, `['device0', 'device12']`.
      * If empty, this field is ignored. Maximum IDs: 10,000
      * 
* * repeated string device_ids = 3; - * * @return This builder for chaining. */ public Builder clearDeviceIds() { @@ -1438,23 +1299,21 @@ public Builder clearDeviceIds() { return this; } /** - * - * *
      * A list of device string IDs. For example, `['device0', 'device12']`.
      * If empty, this field is ignored. Maximum IDs: 10,000
      * 
* * repeated string device_ids = 3; - * * @param value The bytes of the deviceIds to add. * @return This builder for chaining. */ - public Builder addDeviceIdsBytes(com.google.protobuf.ByteString value) { + public Builder addDeviceIdsBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); ensureDeviceIdsIsMutable(); deviceIds_.add(value); onChanged(); @@ -1463,13 +1322,8 @@ public Builder addDeviceIdsBytes(com.google.protobuf.ByteString value) { private com.google.protobuf.FieldMask fieldMask_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.FieldMask, - com.google.protobuf.FieldMask.Builder, - com.google.protobuf.FieldMaskOrBuilder> - fieldMaskBuilder_; + com.google.protobuf.FieldMask, com.google.protobuf.FieldMask.Builder, com.google.protobuf.FieldMaskOrBuilder> fieldMaskBuilder_; /** - * - * *
      * The fields of the `Device` resource to be returned in the response. The
      * fields `id` and `num_id` are always returned, along with any
@@ -1478,15 +1332,12 @@ public Builder addDeviceIdsBytes(com.google.protobuf.ByteString value) {
      * 
* * .google.protobuf.FieldMask field_mask = 4; - * * @return Whether the fieldMask field is set. */ public boolean hasFieldMask() { return fieldMaskBuilder_ != null || fieldMask_ != null; } /** - * - * *
      * The fields of the `Device` resource to be returned in the response. The
      * fields `id` and `num_id` are always returned, along with any
@@ -1495,7 +1346,6 @@ public boolean hasFieldMask() {
      * 
* * .google.protobuf.FieldMask field_mask = 4; - * * @return The fieldMask. */ public com.google.protobuf.FieldMask getFieldMask() { @@ -1506,8 +1356,6 @@ public com.google.protobuf.FieldMask getFieldMask() { } } /** - * - * *
      * The fields of the `Device` resource to be returned in the response. The
      * fields `id` and `num_id` are always returned, along with any
@@ -1531,8 +1379,6 @@ public Builder setFieldMask(com.google.protobuf.FieldMask value) {
       return this;
     }
     /**
-     *
-     *
      * 
      * The fields of the `Device` resource to be returned in the response. The
      * fields `id` and `num_id` are always returned, along with any
@@ -1542,7 +1388,8 @@ public Builder setFieldMask(com.google.protobuf.FieldMask value) {
      *
      * .google.protobuf.FieldMask field_mask = 4;
      */
-    public Builder setFieldMask(com.google.protobuf.FieldMask.Builder builderForValue) {
+    public Builder setFieldMask(
+        com.google.protobuf.FieldMask.Builder builderForValue) {
       if (fieldMaskBuilder_ == null) {
         fieldMask_ = builderForValue.build();
         onChanged();
@@ -1553,8 +1400,6 @@ public Builder setFieldMask(com.google.protobuf.FieldMask.Builder builderForValu
       return this;
     }
     /**
-     *
-     *
      * 
      * The fields of the `Device` resource to be returned in the response. The
      * fields `id` and `num_id` are always returned, along with any
@@ -1568,7 +1413,7 @@ public Builder mergeFieldMask(com.google.protobuf.FieldMask value) {
       if (fieldMaskBuilder_ == null) {
         if (fieldMask_ != null) {
           fieldMask_ =
-              com.google.protobuf.FieldMask.newBuilder(fieldMask_).mergeFrom(value).buildPartial();
+            com.google.protobuf.FieldMask.newBuilder(fieldMask_).mergeFrom(value).buildPartial();
         } else {
           fieldMask_ = value;
         }
@@ -1580,8 +1425,6 @@ public Builder mergeFieldMask(com.google.protobuf.FieldMask value) {
       return this;
     }
     /**
-     *
-     *
      * 
      * The fields of the `Device` resource to be returned in the response. The
      * fields `id` and `num_id` are always returned, along with any
@@ -1603,8 +1446,6 @@ public Builder clearFieldMask() {
       return this;
     }
     /**
-     *
-     *
      * 
      * The fields of the `Device` resource to be returned in the response. The
      * fields `id` and `num_id` are always returned, along with any
@@ -1615,13 +1456,11 @@ public Builder clearFieldMask() {
      * .google.protobuf.FieldMask field_mask = 4;
      */
     public com.google.protobuf.FieldMask.Builder getFieldMaskBuilder() {
-
+      
       onChanged();
       return getFieldMaskFieldBuilder().getBuilder();
     }
     /**
-     *
-     *
      * 
      * The fields of the `Device` resource to be returned in the response. The
      * fields `id` and `num_id` are always returned, along with any
@@ -1635,12 +1474,11 @@ public com.google.protobuf.FieldMaskOrBuilder getFieldMaskOrBuilder() {
       if (fieldMaskBuilder_ != null) {
         return fieldMaskBuilder_.getMessageOrBuilder();
       } else {
-        return fieldMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : fieldMask_;
+        return fieldMask_ == null ?
+            com.google.protobuf.FieldMask.getDefaultInstance() : fieldMask_;
       }
     }
     /**
-     *
-     *
      * 
      * The fields of the `Device` resource to be returned in the response. The
      * fields `id` and `num_id` are always returned, along with any
@@ -1651,17 +1489,14 @@ public com.google.protobuf.FieldMaskOrBuilder getFieldMaskOrBuilder() {
      * .google.protobuf.FieldMask field_mask = 4;
      */
     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> 
         getFieldMaskFieldBuilder() {
       if (fieldMaskBuilder_ == null) {
-        fieldMaskBuilder_ =
-            new com.google.protobuf.SingleFieldBuilderV3<
-                com.google.protobuf.FieldMask,
-                com.google.protobuf.FieldMask.Builder,
-                com.google.protobuf.FieldMaskOrBuilder>(
-                getFieldMask(), getParentForChildren(), isClean());
+        fieldMaskBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
+            com.google.protobuf.FieldMask, com.google.protobuf.FieldMask.Builder, com.google.protobuf.FieldMaskOrBuilder>(
+                getFieldMask(),
+                getParentForChildren(),
+                isClean());
         fieldMask_ = null;
       }
       return fieldMaskBuilder_;
@@ -1669,47 +1504,34 @@ public com.google.protobuf.FieldMaskOrBuilder getFieldMaskOrBuilder() {
 
     private com.google.cloud.iot.v1.GatewayListOptions gatewayListOptions_;
     private com.google.protobuf.SingleFieldBuilderV3<
-            com.google.cloud.iot.v1.GatewayListOptions,
-            com.google.cloud.iot.v1.GatewayListOptions.Builder,
-            com.google.cloud.iot.v1.GatewayListOptionsOrBuilder>
-        gatewayListOptionsBuilder_;
+        com.google.cloud.iot.v1.GatewayListOptions, com.google.cloud.iot.v1.GatewayListOptions.Builder, com.google.cloud.iot.v1.GatewayListOptionsOrBuilder> gatewayListOptionsBuilder_;
     /**
-     *
-     *
      * 
      * Options related to gateways.
      * 
* * .google.cloud.iot.v1.GatewayListOptions gateway_list_options = 6; - * * @return Whether the gatewayListOptions field is set. */ public boolean hasGatewayListOptions() { return gatewayListOptionsBuilder_ != null || gatewayListOptions_ != null; } /** - * - * *
      * Options related to gateways.
      * 
* * .google.cloud.iot.v1.GatewayListOptions gateway_list_options = 6; - * * @return The gatewayListOptions. */ public com.google.cloud.iot.v1.GatewayListOptions getGatewayListOptions() { if (gatewayListOptionsBuilder_ == null) { - return gatewayListOptions_ == null - ? com.google.cloud.iot.v1.GatewayListOptions.getDefaultInstance() - : gatewayListOptions_; + return gatewayListOptions_ == null ? com.google.cloud.iot.v1.GatewayListOptions.getDefaultInstance() : gatewayListOptions_; } else { return gatewayListOptionsBuilder_.getMessage(); } } /** - * - * *
      * Options related to gateways.
      * 
@@ -1730,8 +1552,6 @@ public Builder setGatewayListOptions(com.google.cloud.iot.v1.GatewayListOptions return this; } /** - * - * *
      * Options related to gateways.
      * 
@@ -1750,8 +1570,6 @@ public Builder setGatewayListOptions( return this; } /** - * - * *
      * Options related to gateways.
      * 
@@ -1762,9 +1580,7 @@ public Builder mergeGatewayListOptions(com.google.cloud.iot.v1.GatewayListOption if (gatewayListOptionsBuilder_ == null) { if (gatewayListOptions_ != null) { gatewayListOptions_ = - com.google.cloud.iot.v1.GatewayListOptions.newBuilder(gatewayListOptions_) - .mergeFrom(value) - .buildPartial(); + com.google.cloud.iot.v1.GatewayListOptions.newBuilder(gatewayListOptions_).mergeFrom(value).buildPartial(); } else { gatewayListOptions_ = value; } @@ -1776,8 +1592,6 @@ public Builder mergeGatewayListOptions(com.google.cloud.iot.v1.GatewayListOption return this; } /** - * - * *
      * Options related to gateways.
      * 
@@ -1796,8 +1610,6 @@ public Builder clearGatewayListOptions() { return this; } /** - * - * *
      * Options related to gateways.
      * 
@@ -1805,13 +1617,11 @@ public Builder clearGatewayListOptions() { * .google.cloud.iot.v1.GatewayListOptions gateway_list_options = 6; */ public com.google.cloud.iot.v1.GatewayListOptions.Builder getGatewayListOptionsBuilder() { - + onChanged(); return getGatewayListOptionsFieldBuilder().getBuilder(); } /** - * - * *
      * Options related to gateways.
      * 
@@ -1822,14 +1632,11 @@ public com.google.cloud.iot.v1.GatewayListOptionsOrBuilder getGatewayListOptions if (gatewayListOptionsBuilder_ != null) { return gatewayListOptionsBuilder_.getMessageOrBuilder(); } else { - return gatewayListOptions_ == null - ? com.google.cloud.iot.v1.GatewayListOptions.getDefaultInstance() - : gatewayListOptions_; + return gatewayListOptions_ == null ? + com.google.cloud.iot.v1.GatewayListOptions.getDefaultInstance() : gatewayListOptions_; } } /** - * - * *
      * Options related to gateways.
      * 
@@ -1837,26 +1644,21 @@ public com.google.cloud.iot.v1.GatewayListOptionsOrBuilder getGatewayListOptions * .google.cloud.iot.v1.GatewayListOptions gateway_list_options = 6; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.iot.v1.GatewayListOptions, - com.google.cloud.iot.v1.GatewayListOptions.Builder, - com.google.cloud.iot.v1.GatewayListOptionsOrBuilder> + com.google.cloud.iot.v1.GatewayListOptions, com.google.cloud.iot.v1.GatewayListOptions.Builder, com.google.cloud.iot.v1.GatewayListOptionsOrBuilder> getGatewayListOptionsFieldBuilder() { if (gatewayListOptionsBuilder_ == null) { - gatewayListOptionsBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.iot.v1.GatewayListOptions, - com.google.cloud.iot.v1.GatewayListOptions.Builder, - com.google.cloud.iot.v1.GatewayListOptionsOrBuilder>( - getGatewayListOptions(), getParentForChildren(), isClean()); + gatewayListOptionsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.iot.v1.GatewayListOptions, com.google.cloud.iot.v1.GatewayListOptions.Builder, com.google.cloud.iot.v1.GatewayListOptionsOrBuilder>( + getGatewayListOptions(), + getParentForChildren(), + isClean()); gatewayListOptions_ = null; } return gatewayListOptionsBuilder_; } - private int pageSize_; + private int pageSize_ ; /** - * - * *
      * The maximum number of devices to return in the response. If this value
      * is zero, the service will select a default size. A call may return fewer
@@ -1865,7 +1667,6 @@ public com.google.cloud.iot.v1.GatewayListOptionsOrBuilder getGatewayListOptions
      * 
* * int32 page_size = 100; - * * @return The pageSize. */ @java.lang.Override @@ -1873,8 +1674,6 @@ public int getPageSize() { return pageSize_; } /** - * - * *
      * The maximum number of devices to return in the response. If this value
      * is zero, the service will select a default size. A call may return fewer
@@ -1883,19 +1682,16 @@ public int getPageSize() {
      * 
* * int32 page_size = 100; - * * @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 devices to return in the response. If this value
      * is zero, the service will select a default size. A call may return fewer
@@ -1904,11 +1700,10 @@ public Builder setPageSize(int value) {
      * 
* * int32 page_size = 100; - * * @return This builder for chaining. */ public Builder clearPageSize() { - + pageSize_ = 0; onChanged(); return this; @@ -1916,8 +1711,6 @@ public Builder clearPageSize() { private java.lang.Object pageToken_ = ""; /** - * - * *
      * The value returned by the last `ListDevicesResponse`; indicates
      * that this is a continuation of a prior `ListDevices` call and
@@ -1925,13 +1718,13 @@ public Builder clearPageSize() {
      * 
* * string page_token = 101; - * * @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; @@ -1940,8 +1733,6 @@ public java.lang.String getPageToken() { } } /** - * - * *
      * The value returned by the last `ListDevicesResponse`; indicates
      * that this is a continuation of a prior `ListDevices` call and
@@ -1949,14 +1740,15 @@ public java.lang.String getPageToken() {
      * 
* * string page_token = 101; - * * @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 { @@ -1964,8 +1756,6 @@ public com.google.protobuf.ByteString getPageTokenBytes() { } } /** - * - * *
      * The value returned by the last `ListDevicesResponse`; indicates
      * that this is a continuation of a prior `ListDevices` call and
@@ -1973,22 +1763,20 @@ public com.google.protobuf.ByteString getPageTokenBytes() {
      * 
* * string page_token = 101; - * * @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 value returned by the last `ListDevicesResponse`; indicates
      * that this is a continuation of a prior `ListDevices` call and
@@ -1996,18 +1784,15 @@ public Builder setPageToken(java.lang.String value) {
      * 
* * string page_token = 101; - * * @return This builder for chaining. */ public Builder clearPageToken() { - + pageToken_ = getDefaultInstance().getPageToken(); onChanged(); return this; } /** - * - * *
      * The value returned by the last `ListDevicesResponse`; indicates
      * that this is a continuation of a prior `ListDevices` call and
@@ -2015,23 +1800,23 @@ public Builder clearPageToken() {
      * 
* * string page_token = 101; - * * @param value The bytes for pageToken to set. * @return This builder for chaining. */ - public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { + public Builder setPageTokenBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + pageToken_ = value; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -2041,12 +1826,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.iot.v1.ListDevicesRequest) } // @@protoc_insertion_point(class_scope:google.cloud.iot.v1.ListDevicesRequest) private static final com.google.cloud.iot.v1.ListDevicesRequest DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.iot.v1.ListDevicesRequest(); } @@ -2055,16 +1840,16 @@ public static com.google.cloud.iot.v1.ListDevicesRequest getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListDevicesRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ListDevicesRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListDevicesRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ListDevicesRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -2079,4 +1864,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.iot.v1.ListDevicesRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-iot-v1/src/main/java/com/google/cloud/iot/v1/ListDevicesRequestOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-iot-v1/src/main/java/com/google/cloud/iot/v1/ListDevicesRequestOrBuilder.java similarity index 80% rename from proto-google-cloud-iot-v1/src/main/java/com/google/cloud/iot/v1/ListDevicesRequestOrBuilder.java rename to owl-bot-staging/v1/proto-google-cloud-iot-v1/src/main/java/com/google/cloud/iot/v1/ListDevicesRequestOrBuilder.java index 501c3586..07b045ea 100644 --- a/proto-google-cloud-iot-v1/src/main/java/com/google/cloud/iot/v1/ListDevicesRequestOrBuilder.java +++ b/owl-bot-staging/v1/proto-google-cloud-iot-v1/src/main/java/com/google/cloud/iot/v1/ListDevicesRequestOrBuilder.java @@ -1,158 +1,112 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/iot/v1/device_manager.proto package com.google.cloud.iot.v1; -public interface ListDevicesRequestOrBuilder - extends +public interface ListDevicesRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.iot.v1.ListDevicesRequest) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Required. The device registry path. Required. For example,
    * `projects/my-project/locations/us-central1/registries/my-registry`.
    * 
* - * - * string parent = 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 device registry path. Required. For example,
    * `projects/my-project/locations/us-central1/registries/my-registry`.
    * 
* - * - * string parent = 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(); /** - * - * *
    * A list of device numeric IDs. If empty, this field is ignored. Maximum
    * IDs: 10,000.
    * 
* * repeated uint64 device_num_ids = 2; - * * @return A list containing the deviceNumIds. */ java.util.List getDeviceNumIdsList(); /** - * - * *
    * A list of device numeric IDs. If empty, this field is ignored. Maximum
    * IDs: 10,000.
    * 
* * repeated uint64 device_num_ids = 2; - * * @return The count of deviceNumIds. */ int getDeviceNumIdsCount(); /** - * - * *
    * A list of device numeric IDs. If empty, this field is ignored. Maximum
    * IDs: 10,000.
    * 
* * repeated uint64 device_num_ids = 2; - * * @param index The index of the element to return. * @return The deviceNumIds at the given index. */ long getDeviceNumIds(int index); /** - * - * *
    * A list of device string IDs. For example, `['device0', 'device12']`.
    * If empty, this field is ignored. Maximum IDs: 10,000
    * 
* * repeated string device_ids = 3; - * * @return A list containing the deviceIds. */ - java.util.List getDeviceIdsList(); + java.util.List + getDeviceIdsList(); /** - * - * *
    * A list of device string IDs. For example, `['device0', 'device12']`.
    * If empty, this field is ignored. Maximum IDs: 10,000
    * 
* * repeated string device_ids = 3; - * * @return The count of deviceIds. */ int getDeviceIdsCount(); /** - * - * *
    * A list of device string IDs. For example, `['device0', 'device12']`.
    * If empty, this field is ignored. Maximum IDs: 10,000
    * 
* * repeated string device_ids = 3; - * * @param index The index of the element to return. * @return The deviceIds at the given index. */ java.lang.String getDeviceIds(int index); /** - * - * *
    * A list of device string IDs. For example, `['device0', 'device12']`.
    * If empty, this field is ignored. Maximum IDs: 10,000
    * 
* * repeated string device_ids = 3; - * * @param index The index of the value to return. * @return The bytes of the deviceIds at the given index. */ - com.google.protobuf.ByteString getDeviceIdsBytes(int index); + com.google.protobuf.ByteString + getDeviceIdsBytes(int index); /** - * - * *
    * The fields of the `Device` resource to be returned in the response. The
    * fields `id` and `num_id` are always returned, along with any
@@ -161,13 +115,10 @@ public interface ListDevicesRequestOrBuilder
    * 
* * .google.protobuf.FieldMask field_mask = 4; - * * @return Whether the fieldMask field is set. */ boolean hasFieldMask(); /** - * - * *
    * The fields of the `Device` resource to be returned in the response. The
    * fields `id` and `num_id` are always returned, along with any
@@ -176,13 +127,10 @@ public interface ListDevicesRequestOrBuilder
    * 
* * .google.protobuf.FieldMask field_mask = 4; - * * @return The fieldMask. */ com.google.protobuf.FieldMask getFieldMask(); /** - * - * *
    * The fields of the `Device` resource to be returned in the response. The
    * fields `id` and `num_id` are always returned, along with any
@@ -195,32 +143,24 @@ public interface ListDevicesRequestOrBuilder
   com.google.protobuf.FieldMaskOrBuilder getFieldMaskOrBuilder();
 
   /**
-   *
-   *
    * 
    * Options related to gateways.
    * 
* * .google.cloud.iot.v1.GatewayListOptions gateway_list_options = 6; - * * @return Whether the gatewayListOptions field is set. */ boolean hasGatewayListOptions(); /** - * - * *
    * Options related to gateways.
    * 
* * .google.cloud.iot.v1.GatewayListOptions gateway_list_options = 6; - * * @return The gatewayListOptions. */ com.google.cloud.iot.v1.GatewayListOptions getGatewayListOptions(); /** - * - * *
    * Options related to gateways.
    * 
@@ -230,8 +170,6 @@ public interface ListDevicesRequestOrBuilder com.google.cloud.iot.v1.GatewayListOptionsOrBuilder getGatewayListOptionsOrBuilder(); /** - * - * *
    * The maximum number of devices to return in the response. If this value
    * is zero, the service will select a default size. A call may return fewer
@@ -240,14 +178,11 @@ public interface ListDevicesRequestOrBuilder
    * 
* * int32 page_size = 100; - * * @return The pageSize. */ int getPageSize(); /** - * - * *
    * The value returned by the last `ListDevicesResponse`; indicates
    * that this is a continuation of a prior `ListDevices` call and
@@ -255,13 +190,10 @@ public interface ListDevicesRequestOrBuilder
    * 
* * string page_token = 101; - * * @return The pageToken. */ java.lang.String getPageToken(); /** - * - * *
    * The value returned by the last `ListDevicesResponse`; indicates
    * that this is a continuation of a prior `ListDevices` call and
@@ -269,8 +201,8 @@ public interface ListDevicesRequestOrBuilder
    * 
* * string page_token = 101; - * * @return The bytes for pageToken. */ - com.google.protobuf.ByteString getPageTokenBytes(); + com.google.protobuf.ByteString + getPageTokenBytes(); } diff --git a/proto-google-cloud-iot-v1/src/main/java/com/google/cloud/iot/v1/ListDevicesResponse.java b/owl-bot-staging/v1/proto-google-cloud-iot-v1/src/main/java/com/google/cloud/iot/v1/ListDevicesResponse.java similarity index 73% rename from proto-google-cloud-iot-v1/src/main/java/com/google/cloud/iot/v1/ListDevicesResponse.java rename to owl-bot-staging/v1/proto-google-cloud-iot-v1/src/main/java/com/google/cloud/iot/v1/ListDevicesResponse.java index 6a04a182..8f7d8013 100644 --- a/proto-google-cloud-iot-v1/src/main/java/com/google/cloud/iot/v1/ListDevicesResponse.java +++ b/owl-bot-staging/v1/proto-google-cloud-iot-v1/src/main/java/com/google/cloud/iot/v1/ListDevicesResponse.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/iot/v1/device_manager.proto package com.google.cloud.iot.v1; /** - * - * *
  * Response for `ListDevices`.
  * 
* * Protobuf type {@code google.cloud.iot.v1.ListDevicesResponse} */ -public final class ListDevicesResponse extends com.google.protobuf.GeneratedMessageV3 - implements +public final class ListDevicesResponse extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.iot.v1.ListDevicesResponse) ListDevicesResponseOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use ListDevicesResponse.newBuilder() to construct. private ListDevicesResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private ListDevicesResponse() { devices_ = java.util.Collections.emptyList(); nextPageToken_ = ""; @@ -44,15 +26,16 @@ private ListDevicesResponse() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new ListDevicesResponse(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private ListDevicesResponse( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -72,30 +55,28 @@ private ListDevicesResponse( case 0: done = true; break; - case 10: - { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - devices_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; - } - devices_.add( - input.readMessage(com.google.cloud.iot.v1.Device.parser(), extensionRegistry)); - break; + case 10: { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + devices_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; } - case 18: - { - java.lang.String s = input.readStringRequireUtf8(); + devices_.add( + input.readMessage(com.google.cloud.iot.v1.Device.parser(), extensionRegistry)); + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); - nextPageToken_ = s; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + nextPageToken_ = s; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -103,7 +84,8 @@ private ListDevicesResponse( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } 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)) { devices_ = java.util.Collections.unmodifiableList(devices_); @@ -112,27 +94,22 @@ private ListDevicesResponse( makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.iot.v1.DeviceManagerProto - .internal_static_google_cloud_iot_v1_ListDevicesResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.iot.v1.DeviceManagerProto.internal_static_google_cloud_iot_v1_ListDevicesResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.iot.v1.DeviceManagerProto - .internal_static_google_cloud_iot_v1_ListDevicesResponse_fieldAccessorTable + return com.google.cloud.iot.v1.DeviceManagerProto.internal_static_google_cloud_iot_v1_ListDevicesResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.iot.v1.ListDevicesResponse.class, - com.google.cloud.iot.v1.ListDevicesResponse.Builder.class); + com.google.cloud.iot.v1.ListDevicesResponse.class, com.google.cloud.iot.v1.ListDevicesResponse.Builder.class); } public static final int DEVICES_FIELD_NUMBER = 1; private java.util.List devices_; /** - * - * *
    * The devices that match the request.
    * 
@@ -144,8 +121,6 @@ public java.util.List getDevicesList() { return devices_; } /** - * - * *
    * The devices that match the request.
    * 
@@ -153,13 +128,11 @@ public java.util.List getDevicesList() { * repeated .google.cloud.iot.v1.Device devices = 1; */ @java.lang.Override - public java.util.List + public java.util.List getDevicesOrBuilderList() { return devices_; } /** - * - * *
    * The devices that match the request.
    * 
@@ -171,8 +144,6 @@ public int getDevicesCount() { return devices_.size(); } /** - * - * *
    * The devices that match the request.
    * 
@@ -184,8 +155,6 @@ public com.google.cloud.iot.v1.Device getDevices(int index) { return devices_.get(index); } /** - * - * *
    * The devices that match the request.
    * 
@@ -193,22 +162,20 @@ public com.google.cloud.iot.v1.Device getDevices(int index) { * repeated .google.cloud.iot.v1.Device devices = 1; */ @java.lang.Override - public com.google.cloud.iot.v1.DeviceOrBuilder getDevicesOrBuilder(int index) { + public com.google.cloud.iot.v1.DeviceOrBuilder getDevicesOrBuilder( + int index) { return devices_.get(index); } public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; private volatile java.lang.Object nextPageToken_; /** - * - * *
    * If not empty, indicates that there may be more devices that match the
    * request; this value should be passed in a new `ListDevicesRequest`.
    * 
* * string next_page_token = 2; - * * @return The nextPageToken. */ @java.lang.Override @@ -217,30 +184,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; } } /** - * - * *
    * If not empty, indicates that there may be more devices that match the
    * request; this value should be passed in a new `ListDevicesRequest`.
    * 
* * 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 { @@ -249,7 +216,6 @@ public com.google.protobuf.ByteString getNextPageTokenBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -261,7 +227,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 < devices_.size(); i++) { output.writeMessage(1, devices_.get(i)); } @@ -278,7 +245,8 @@ public int getSerializedSize() { size = 0; for (int i = 0; i < devices_.size(); i++) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, devices_.get(i)); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, devices_.get(i)); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextPageToken_); @@ -291,16 +259,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.iot.v1.ListDevicesResponse)) { return super.equals(obj); } - com.google.cloud.iot.v1.ListDevicesResponse other = - (com.google.cloud.iot.v1.ListDevicesResponse) obj; + com.google.cloud.iot.v1.ListDevicesResponse other = (com.google.cloud.iot.v1.ListDevicesResponse) obj; - if (!getDevicesList().equals(other.getDevicesList())) return false; - if (!getNextPageToken().equals(other.getNextPageToken())) return false; + if (!getDevicesList() + .equals(other.getDevicesList())) return false; + if (!getNextPageToken() + .equals(other.getNextPageToken())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -323,127 +292,118 @@ public int hashCode() { return hash; } - public static com.google.cloud.iot.v1.ListDevicesResponse parseFrom(java.nio.ByteBuffer data) + public static com.google.cloud.iot.v1.ListDevicesResponse parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.iot.v1.ListDevicesResponse parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.iot.v1.ListDevicesResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.iot.v1.ListDevicesResponse parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.iot.v1.ListDevicesResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.iot.v1.ListDevicesResponse parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.iot.v1.ListDevicesResponse 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.iot.v1.ListDevicesResponse parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.iot.v1.ListDevicesResponse parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.iot.v1.ListDevicesResponse parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.iot.v1.ListDevicesResponse parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.iot.v1.ListDevicesResponse parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.iot.v1.ListDevicesResponse parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.iot.v1.ListDevicesResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected 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 `ListDevices`.
    * 
* * Protobuf type {@code google.cloud.iot.v1.ListDevicesResponse} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.iot.v1.ListDevicesResponse) com.google.cloud.iot.v1.ListDevicesResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.iot.v1.DeviceManagerProto - .internal_static_google_cloud_iot_v1_ListDevicesResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.iot.v1.DeviceManagerProto.internal_static_google_cloud_iot_v1_ListDevicesResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.iot.v1.DeviceManagerProto - .internal_static_google_cloud_iot_v1_ListDevicesResponse_fieldAccessorTable + return com.google.cloud.iot.v1.DeviceManagerProto.internal_static_google_cloud_iot_v1_ListDevicesResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.iot.v1.ListDevicesResponse.class, - com.google.cloud.iot.v1.ListDevicesResponse.Builder.class); + com.google.cloud.iot.v1.ListDevicesResponse.class, com.google.cloud.iot.v1.ListDevicesResponse.Builder.class); } // Construct using com.google.cloud.iot.v1.ListDevicesResponse.newBuilder() @@ -451,17 +411,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) { getDevicesFieldBuilder(); } } - @java.lang.Override public Builder clear() { super.clear(); @@ -477,9 +437,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.iot.v1.DeviceManagerProto - .internal_static_google_cloud_iot_v1_ListDevicesResponse_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.iot.v1.DeviceManagerProto.internal_static_google_cloud_iot_v1_ListDevicesResponse_descriptor; } @java.lang.Override @@ -498,8 +458,7 @@ public com.google.cloud.iot.v1.ListDevicesResponse build() { @java.lang.Override public com.google.cloud.iot.v1.ListDevicesResponse buildPartial() { - com.google.cloud.iot.v1.ListDevicesResponse result = - new com.google.cloud.iot.v1.ListDevicesResponse(this); + com.google.cloud.iot.v1.ListDevicesResponse result = new com.google.cloud.iot.v1.ListDevicesResponse(this); int from_bitField0_ = bitField0_; if (devicesBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { @@ -519,39 +478,38 @@ public com.google.cloud.iot.v1.ListDevicesResponse buildPartial() { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.iot.v1.ListDevicesResponse) { - return mergeFrom((com.google.cloud.iot.v1.ListDevicesResponse) other); + return mergeFrom((com.google.cloud.iot.v1.ListDevicesResponse)other); } else { super.mergeFrom(other); return this; @@ -578,10 +536,9 @@ public Builder mergeFrom(com.google.cloud.iot.v1.ListDevicesResponse other) { devicesBuilder_ = null; devices_ = other.devices_; bitField0_ = (bitField0_ & ~0x00000001); - devicesBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getDevicesFieldBuilder() - : null; + devicesBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getDevicesFieldBuilder() : null; } else { devicesBuilder_.addAllMessages(other.devices_); } @@ -619,28 +576,21 @@ public Builder mergeFrom( } return this; } - private int bitField0_; private java.util.List devices_ = - java.util.Collections.emptyList(); - + java.util.Collections.emptyList(); private void ensureDevicesIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { devices_ = new java.util.ArrayList(devices_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.iot.v1.Device, - com.google.cloud.iot.v1.Device.Builder, - com.google.cloud.iot.v1.DeviceOrBuilder> - devicesBuilder_; + com.google.cloud.iot.v1.Device, com.google.cloud.iot.v1.Device.Builder, com.google.cloud.iot.v1.DeviceOrBuilder> devicesBuilder_; /** - * - * *
      * The devices that match the request.
      * 
@@ -655,8 +605,6 @@ public java.util.List getDevicesList() { } } /** - * - * *
      * The devices that match the request.
      * 
@@ -671,8 +619,6 @@ public int getDevicesCount() { } } /** - * - * *
      * The devices that match the request.
      * 
@@ -687,15 +633,14 @@ public com.google.cloud.iot.v1.Device getDevices(int index) { } } /** - * - * *
      * The devices that match the request.
      * 
* * repeated .google.cloud.iot.v1.Device devices = 1; */ - public Builder setDevices(int index, com.google.cloud.iot.v1.Device value) { + public Builder setDevices( + int index, com.google.cloud.iot.v1.Device value) { if (devicesBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -709,15 +654,14 @@ public Builder setDevices(int index, com.google.cloud.iot.v1.Device value) { return this; } /** - * - * *
      * The devices that match the request.
      * 
* * repeated .google.cloud.iot.v1.Device devices = 1; */ - public Builder setDevices(int index, com.google.cloud.iot.v1.Device.Builder builderForValue) { + public Builder setDevices( + int index, com.google.cloud.iot.v1.Device.Builder builderForValue) { if (devicesBuilder_ == null) { ensureDevicesIsMutable(); devices_.set(index, builderForValue.build()); @@ -728,8 +672,6 @@ public Builder setDevices(int index, com.google.cloud.iot.v1.Device.Builder buil return this; } /** - * - * *
      * The devices that match the request.
      * 
@@ -750,15 +692,14 @@ public Builder addDevices(com.google.cloud.iot.v1.Device value) { return this; } /** - * - * *
      * The devices that match the request.
      * 
* * repeated .google.cloud.iot.v1.Device devices = 1; */ - public Builder addDevices(int index, com.google.cloud.iot.v1.Device value) { + public Builder addDevices( + int index, com.google.cloud.iot.v1.Device value) { if (devicesBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -772,15 +713,14 @@ public Builder addDevices(int index, com.google.cloud.iot.v1.Device value) { return this; } /** - * - * *
      * The devices that match the request.
      * 
* * repeated .google.cloud.iot.v1.Device devices = 1; */ - public Builder addDevices(com.google.cloud.iot.v1.Device.Builder builderForValue) { + public Builder addDevices( + com.google.cloud.iot.v1.Device.Builder builderForValue) { if (devicesBuilder_ == null) { ensureDevicesIsMutable(); devices_.add(builderForValue.build()); @@ -791,15 +731,14 @@ public Builder addDevices(com.google.cloud.iot.v1.Device.Builder builderForValue return this; } /** - * - * *
      * The devices that match the request.
      * 
* * repeated .google.cloud.iot.v1.Device devices = 1; */ - public Builder addDevices(int index, com.google.cloud.iot.v1.Device.Builder builderForValue) { + public Builder addDevices( + int index, com.google.cloud.iot.v1.Device.Builder builderForValue) { if (devicesBuilder_ == null) { ensureDevicesIsMutable(); devices_.add(index, builderForValue.build()); @@ -810,8 +749,6 @@ public Builder addDevices(int index, com.google.cloud.iot.v1.Device.Builder buil return this; } /** - * - * *
      * The devices that match the request.
      * 
@@ -822,7 +759,8 @@ public Builder addAllDevices( java.lang.Iterable values) { if (devicesBuilder_ == null) { ensureDevicesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, devices_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, devices_); onChanged(); } else { devicesBuilder_.addAllMessages(values); @@ -830,8 +768,6 @@ public Builder addAllDevices( return this; } /** - * - * *
      * The devices that match the request.
      * 
@@ -849,8 +785,6 @@ public Builder clearDevices() { return this; } /** - * - * *
      * The devices that match the request.
      * 
@@ -868,44 +802,39 @@ public Builder removeDevices(int index) { return this; } /** - * - * *
      * The devices that match the request.
      * 
* * repeated .google.cloud.iot.v1.Device devices = 1; */ - public com.google.cloud.iot.v1.Device.Builder getDevicesBuilder(int index) { + public com.google.cloud.iot.v1.Device.Builder getDevicesBuilder( + int index) { return getDevicesFieldBuilder().getBuilder(index); } /** - * - * *
      * The devices that match the request.
      * 
* * repeated .google.cloud.iot.v1.Device devices = 1; */ - public com.google.cloud.iot.v1.DeviceOrBuilder getDevicesOrBuilder(int index) { + public com.google.cloud.iot.v1.DeviceOrBuilder getDevicesOrBuilder( + int index) { if (devicesBuilder_ == null) { - return devices_.get(index); - } else { + return devices_.get(index); } else { return devicesBuilder_.getMessageOrBuilder(index); } } /** - * - * *
      * The devices that match the request.
      * 
* * repeated .google.cloud.iot.v1.Device devices = 1; */ - public java.util.List - getDevicesOrBuilderList() { + public java.util.List + getDevicesOrBuilderList() { if (devicesBuilder_ != null) { return devicesBuilder_.getMessageOrBuilderList(); } else { @@ -913,8 +842,6 @@ public com.google.cloud.iot.v1.DeviceOrBuilder getDevicesOrBuilder(int index) { } } /** - * - * *
      * The devices that match the request.
      * 
@@ -922,47 +849,42 @@ public com.google.cloud.iot.v1.DeviceOrBuilder getDevicesOrBuilder(int index) { * repeated .google.cloud.iot.v1.Device devices = 1; */ public com.google.cloud.iot.v1.Device.Builder addDevicesBuilder() { - return getDevicesFieldBuilder() - .addBuilder(com.google.cloud.iot.v1.Device.getDefaultInstance()); + return getDevicesFieldBuilder().addBuilder( + com.google.cloud.iot.v1.Device.getDefaultInstance()); } /** - * - * *
      * The devices that match the request.
      * 
* * repeated .google.cloud.iot.v1.Device devices = 1; */ - public com.google.cloud.iot.v1.Device.Builder addDevicesBuilder(int index) { - return getDevicesFieldBuilder() - .addBuilder(index, com.google.cloud.iot.v1.Device.getDefaultInstance()); + public com.google.cloud.iot.v1.Device.Builder addDevicesBuilder( + int index) { + return getDevicesFieldBuilder().addBuilder( + index, com.google.cloud.iot.v1.Device.getDefaultInstance()); } /** - * - * *
      * The devices that match the request.
      * 
* * repeated .google.cloud.iot.v1.Device devices = 1; */ - public java.util.List getDevicesBuilderList() { + public java.util.List + getDevicesBuilderList() { return getDevicesFieldBuilder().getBuilderList(); } - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.iot.v1.Device, - com.google.cloud.iot.v1.Device.Builder, - com.google.cloud.iot.v1.DeviceOrBuilder> + com.google.cloud.iot.v1.Device, com.google.cloud.iot.v1.Device.Builder, com.google.cloud.iot.v1.DeviceOrBuilder> getDevicesFieldBuilder() { if (devicesBuilder_ == null) { - devicesBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.iot.v1.Device, - com.google.cloud.iot.v1.Device.Builder, - com.google.cloud.iot.v1.DeviceOrBuilder>( - devices_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); + devicesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.iot.v1.Device, com.google.cloud.iot.v1.Device.Builder, com.google.cloud.iot.v1.DeviceOrBuilder>( + devices_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); devices_ = null; } return devicesBuilder_; @@ -970,21 +892,19 @@ public java.util.List getDevicesBuilderL private java.lang.Object nextPageToken_ = ""; /** - * - * *
      * If not empty, indicates that there may be more devices that match the
      * request; this value should be passed in a new `ListDevicesRequest`.
      * 
* * 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; @@ -993,22 +913,21 @@ public java.lang.String getNextPageToken() { } } /** - * - * *
      * If not empty, indicates that there may be more devices that match the
      * request; this value should be passed in a new `ListDevicesRequest`.
      * 
* * 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 { @@ -1016,71 +935,64 @@ public com.google.protobuf.ByteString getNextPageTokenBytes() { } } /** - * - * *
      * If not empty, indicates that there may be more devices that match the
      * request; this value should be passed in a new `ListDevicesRequest`.
      * 
* * 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; } /** - * - * *
      * If not empty, indicates that there may be more devices that match the
      * request; this value should be passed in a new `ListDevicesRequest`.
      * 
* * string next_page_token = 2; - * * @return This builder for chaining. */ public Builder clearNextPageToken() { - + nextPageToken_ = getDefaultInstance().getNextPageToken(); onChanged(); return this; } /** - * - * *
      * If not empty, indicates that there may be more devices that match the
      * request; this value should be passed in a new `ListDevicesRequest`.
      * 
* * string next_page_token = 2; - * * @param value The bytes for nextPageToken to set. * @return This builder for chaining. */ - public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) { + public Builder setNextPageTokenBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + nextPageToken_ = value; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1090,12 +1002,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.iot.v1.ListDevicesResponse) } // @@protoc_insertion_point(class_scope:google.cloud.iot.v1.ListDevicesResponse) private static final com.google.cloud.iot.v1.ListDevicesResponse DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.iot.v1.ListDevicesResponse(); } @@ -1104,16 +1016,16 @@ public static com.google.cloud.iot.v1.ListDevicesResponse getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListDevicesResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ListDevicesResponse(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListDevicesResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ListDevicesResponse(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1128,4 +1040,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.iot.v1.ListDevicesResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-iot-v1/src/main/java/com/google/cloud/iot/v1/ListDevicesResponseOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-iot-v1/src/main/java/com/google/cloud/iot/v1/ListDevicesResponseOrBuilder.java similarity index 64% rename from proto-google-cloud-iot-v1/src/main/java/com/google/cloud/iot/v1/ListDevicesResponseOrBuilder.java rename to owl-bot-staging/v1/proto-google-cloud-iot-v1/src/main/java/com/google/cloud/iot/v1/ListDevicesResponseOrBuilder.java index 4aaf0e36..a1c850e9 100644 --- a/proto-google-cloud-iot-v1/src/main/java/com/google/cloud/iot/v1/ListDevicesResponseOrBuilder.java +++ b/owl-bot-staging/v1/proto-google-cloud-iot-v1/src/main/java/com/google/cloud/iot/v1/ListDevicesResponseOrBuilder.java @@ -1,41 +1,22 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/iot/v1/device_manager.proto package com.google.cloud.iot.v1; -public interface ListDevicesResponseOrBuilder - extends +public interface ListDevicesResponseOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.iot.v1.ListDevicesResponse) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * The devices that match the request.
    * 
* * repeated .google.cloud.iot.v1.Device devices = 1; */ - java.util.List getDevicesList(); + java.util.List + getDevicesList(); /** - * - * *
    * The devices that match the request.
    * 
@@ -44,8 +25,6 @@ public interface ListDevicesResponseOrBuilder */ com.google.cloud.iot.v1.Device getDevices(int index); /** - * - * *
    * The devices that match the request.
    * 
@@ -54,50 +33,43 @@ public interface ListDevicesResponseOrBuilder */ int getDevicesCount(); /** - * - * *
    * The devices that match the request.
    * 
* * repeated .google.cloud.iot.v1.Device devices = 1; */ - java.util.List getDevicesOrBuilderList(); + java.util.List + getDevicesOrBuilderList(); /** - * - * *
    * The devices that match the request.
    * 
* * repeated .google.cloud.iot.v1.Device devices = 1; */ - com.google.cloud.iot.v1.DeviceOrBuilder getDevicesOrBuilder(int index); + com.google.cloud.iot.v1.DeviceOrBuilder getDevicesOrBuilder( + int index); /** - * - * *
    * If not empty, indicates that there may be more devices that match the
    * request; this value should be passed in a new `ListDevicesRequest`.
    * 
* * string next_page_token = 2; - * * @return The nextPageToken. */ java.lang.String getNextPageToken(); /** - * - * *
    * If not empty, indicates that there may be more devices that match the
    * request; this value should be passed in a new `ListDevicesRequest`.
    * 
* * string next_page_token = 2; - * * @return The bytes for nextPageToken. */ - com.google.protobuf.ByteString getNextPageTokenBytes(); + com.google.protobuf.ByteString + getNextPageTokenBytes(); } diff --git a/proto-google-cloud-iot-v1/src/main/java/com/google/cloud/iot/v1/LocationName.java b/owl-bot-staging/v1/proto-google-cloud-iot-v1/src/main/java/com/google/cloud/iot/v1/LocationName.java similarity index 100% rename from proto-google-cloud-iot-v1/src/main/java/com/google/cloud/iot/v1/LocationName.java rename to owl-bot-staging/v1/proto-google-cloud-iot-v1/src/main/java/com/google/cloud/iot/v1/LocationName.java diff --git a/proto-google-cloud-iot-v1/src/main/java/com/google/cloud/iot/v1/LogLevel.java b/owl-bot-staging/v1/proto-google-cloud-iot-v1/src/main/java/com/google/cloud/iot/v1/LogLevel.java similarity index 70% rename from proto-google-cloud-iot-v1/src/main/java/com/google/cloud/iot/v1/LogLevel.java rename to owl-bot-staging/v1/proto-google-cloud-iot-v1/src/main/java/com/google/cloud/iot/v1/LogLevel.java index 4e73594c..248be34c 100644 --- a/proto-google-cloud-iot-v1/src/main/java/com/google/cloud/iot/v1/LogLevel.java +++ b/owl-bot-staging/v1/proto-google-cloud-iot-v1/src/main/java/com/google/cloud/iot/v1/LogLevel.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/iot/v1/resources.proto package com.google.cloud.iot.v1; /** - * - * *
  * **Beta Feature**
  * The logging verbosity for device activity. Specifies which events should be
@@ -31,10 +14,9 @@
  *
  * Protobuf enum {@code google.cloud.iot.v1.LogLevel}
  */
-public enum LogLevel implements com.google.protobuf.ProtocolMessageEnum {
+public enum LogLevel
+    implements com.google.protobuf.ProtocolMessageEnum {
   /**
-   *
-   *
    * 
    * No logging specified. If not specified, logging will be disabled.
    * 
@@ -43,8 +25,6 @@ public enum LogLevel implements com.google.protobuf.ProtocolMessageEnum { */ LOG_LEVEL_UNSPECIFIED(0), /** - * - * *
    * Disables logging.
    * 
@@ -53,8 +33,6 @@ public enum LogLevel implements com.google.protobuf.ProtocolMessageEnum { */ NONE(10), /** - * - * *
    * Error events will be logged.
    * 
@@ -63,8 +41,6 @@ public enum LogLevel implements com.google.protobuf.ProtocolMessageEnum { */ ERROR(20), /** - * - * *
    * Informational events will be logged, such as connections and
    * disconnections.
@@ -74,8 +50,6 @@ public enum LogLevel implements com.google.protobuf.ProtocolMessageEnum {
    */
   INFO(30),
   /**
-   *
-   *
    * 
    * All events will be logged.
    * 
@@ -87,8 +61,6 @@ public enum LogLevel implements com.google.protobuf.ProtocolMessageEnum { ; /** - * - * *
    * No logging specified. If not specified, logging will be disabled.
    * 
@@ -97,8 +69,6 @@ public enum LogLevel implements com.google.protobuf.ProtocolMessageEnum { */ public static final int LOG_LEVEL_UNSPECIFIED_VALUE = 0; /** - * - * *
    * Disables logging.
    * 
@@ -107,8 +77,6 @@ public enum LogLevel implements com.google.protobuf.ProtocolMessageEnum { */ public static final int NONE_VALUE = 10; /** - * - * *
    * Error events will be logged.
    * 
@@ -117,8 +85,6 @@ public enum LogLevel implements com.google.protobuf.ProtocolMessageEnum { */ public static final int ERROR_VALUE = 20; /** - * - * *
    * Informational events will be logged, such as connections and
    * disconnections.
@@ -128,8 +94,6 @@ public enum LogLevel implements com.google.protobuf.ProtocolMessageEnum {
    */
   public static final int INFO_VALUE = 30;
   /**
-   *
-   *
    * 
    * All events will be logged.
    * 
@@ -138,6 +102,7 @@ public enum LogLevel implements com.google.protobuf.ProtocolMessageEnum { */ public static final int DEBUG_VALUE = 40; + public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( @@ -162,53 +127,51 @@ public static LogLevel valueOf(int value) { */ public static LogLevel forNumber(int value) { switch (value) { - case 0: - return LOG_LEVEL_UNSPECIFIED; - case 10: - return NONE; - case 20: - return ERROR; - case 30: - return INFO; - case 40: - return DEBUG; - default: - return null; + case 0: return LOG_LEVEL_UNSPECIFIED; + case 10: return NONE; + case 20: return ERROR; + case 30: return INFO; + case 40: return DEBUG; + 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 LogLevel findValueByNumber(int number) { - return LogLevel.forNumber(number); - } - }; - - public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { + private static final com.google.protobuf.Internal.EnumLiteMap< + LogLevel> internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public LogLevel findValueByNumber(int number) { + return LogLevel.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.iot.v1.ResourcesProto.getDescriptor().getEnumTypes().get(2); } private static final LogLevel[] VALUES = values(); - public static LogLevel valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + public static LogLevel 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; @@ -224,3 +187,4 @@ private LogLevel(int value) { // @@protoc_insertion_point(enum_scope:google.cloud.iot.v1.LogLevel) } + diff --git a/proto-google-cloud-iot-v1/src/main/java/com/google/cloud/iot/v1/ModifyCloudToDeviceConfigRequest.java b/owl-bot-staging/v1/proto-google-cloud-iot-v1/src/main/java/com/google/cloud/iot/v1/ModifyCloudToDeviceConfigRequest.java similarity index 69% rename from proto-google-cloud-iot-v1/src/main/java/com/google/cloud/iot/v1/ModifyCloudToDeviceConfigRequest.java rename to owl-bot-staging/v1/proto-google-cloud-iot-v1/src/main/java/com/google/cloud/iot/v1/ModifyCloudToDeviceConfigRequest.java index 1fa6fbcc..1863c95e 100644 --- a/proto-google-cloud-iot-v1/src/main/java/com/google/cloud/iot/v1/ModifyCloudToDeviceConfigRequest.java +++ b/owl-bot-staging/v1/proto-google-cloud-iot-v1/src/main/java/com/google/cloud/iot/v1/ModifyCloudToDeviceConfigRequest.java @@ -1,43 +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/iot/v1/device_manager.proto package com.google.cloud.iot.v1; /** - * - * *
  * Request for `ModifyCloudToDeviceConfig`.
  * 
* * Protobuf type {@code google.cloud.iot.v1.ModifyCloudToDeviceConfigRequest} */ -public final class ModifyCloudToDeviceConfigRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class ModifyCloudToDeviceConfigRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.iot.v1.ModifyCloudToDeviceConfigRequest) ModifyCloudToDeviceConfigRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use ModifyCloudToDeviceConfigRequest.newBuilder() to construct. - private ModifyCloudToDeviceConfigRequest( - com.google.protobuf.GeneratedMessageV3.Builder builder) { + private ModifyCloudToDeviceConfigRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private ModifyCloudToDeviceConfigRequest() { name_ = ""; binaryData_ = com.google.protobuf.ByteString.EMPTY; @@ -45,15 +26,16 @@ private ModifyCloudToDeviceConfigRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new ModifyCloudToDeviceConfigRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private ModifyCloudToDeviceConfigRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -72,30 +54,29 @@ private ModifyCloudToDeviceConfigRequest( case 0: done = true; break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); + case 10: { + java.lang.String s = input.readStringRequireUtf8(); - name_ = s; - break; - } - case 16: - { - versionToUpdate_ = input.readInt64(); - break; - } - case 26: - { - binaryData_ = input.readBytes(); - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + name_ = s; + break; + } + case 16: { + + versionToUpdate_ = input.readInt64(); + break; + } + case 26: { + + binaryData_ = input.readBytes(); + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -103,43 +84,36 @@ private ModifyCloudToDeviceConfigRequest( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.iot.v1.DeviceManagerProto - .internal_static_google_cloud_iot_v1_ModifyCloudToDeviceConfigRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.iot.v1.DeviceManagerProto.internal_static_google_cloud_iot_v1_ModifyCloudToDeviceConfigRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.iot.v1.DeviceManagerProto - .internal_static_google_cloud_iot_v1_ModifyCloudToDeviceConfigRequest_fieldAccessorTable + return com.google.cloud.iot.v1.DeviceManagerProto.internal_static_google_cloud_iot_v1_ModifyCloudToDeviceConfigRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.iot.v1.ModifyCloudToDeviceConfigRequest.class, - com.google.cloud.iot.v1.ModifyCloudToDeviceConfigRequest.Builder.class); + com.google.cloud.iot.v1.ModifyCloudToDeviceConfigRequest.class, com.google.cloud.iot.v1.ModifyCloudToDeviceConfigRequest.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** - * - * *
    * Required. The name of the device. For example,
    * `projects/p0/locations/us-central1/registries/registry0/devices/device0` or
    * `projects/p0/locations/us-central1/registries/registry0/devices/{num_id}`.
    * 
* - * - * string name = 1 [(.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 @@ -148,33 +122,31 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** - * - * *
    * Required. The name of the device. For example,
    * `projects/p0/locations/us-central1/registries/registry0/devices/device0` or
    * `projects/p0/locations/us-central1/registries/registry0/devices/{num_id}`.
    * 
* - * - * string name = 1 [(.google.api.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 { @@ -185,8 +157,6 @@ public com.google.protobuf.ByteString getNameBytes() { public static final int VERSION_TO_UPDATE_FIELD_NUMBER = 2; private long versionToUpdate_; /** - * - * *
    * The version number to update. If this value is zero, it will not check the
    * version number of the server and will always update the current version;
@@ -196,7 +166,6 @@ public com.google.protobuf.ByteString getNameBytes() {
    * 
* * int64 version_to_update = 2; - * * @return The versionToUpdate. */ @java.lang.Override @@ -207,14 +176,11 @@ public long getVersionToUpdate() { public static final int BINARY_DATA_FIELD_NUMBER = 3; private com.google.protobuf.ByteString binaryData_; /** - * - * *
    * Required. The configuration data for the device.
    * 
* * bytes binary_data = 3 [(.google.api.field_behavior) = REQUIRED]; - * * @return The binaryData. */ @java.lang.Override @@ -223,7 +189,6 @@ public com.google.protobuf.ByteString getBinaryData() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -235,7 +200,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_); } @@ -258,10 +224,12 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); } if (versionToUpdate_ != 0L) { - size += com.google.protobuf.CodedOutputStream.computeInt64Size(2, versionToUpdate_); + size += com.google.protobuf.CodedOutputStream + .computeInt64Size(2, versionToUpdate_); } if (!binaryData_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream.computeBytesSize(3, binaryData_); + size += com.google.protobuf.CodedOutputStream + .computeBytesSize(3, binaryData_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -271,17 +239,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.iot.v1.ModifyCloudToDeviceConfigRequest)) { return super.equals(obj); } - com.google.cloud.iot.v1.ModifyCloudToDeviceConfigRequest other = - (com.google.cloud.iot.v1.ModifyCloudToDeviceConfigRequest) obj; + com.google.cloud.iot.v1.ModifyCloudToDeviceConfigRequest other = (com.google.cloud.iot.v1.ModifyCloudToDeviceConfigRequest) obj; - if (!getName().equals(other.getName())) return false; - if (getVersionToUpdate() != other.getVersionToUpdate()) return false; - if (!getBinaryData().equals(other.getBinaryData())) return false; + if (!getName() + .equals(other.getName())) return false; + if (getVersionToUpdate() + != other.getVersionToUpdate()) return false; + if (!getBinaryData() + .equals(other.getBinaryData())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -296,7 +266,8 @@ public int hashCode() { hash = (37 * hash) + NAME_FIELD_NUMBER; hash = (53 * hash) + getName().hashCode(); hash = (37 * hash) + VERSION_TO_UPDATE_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getVersionToUpdate()); + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getVersionToUpdate()); hash = (37 * hash) + BINARY_DATA_FIELD_NUMBER; hash = (53 * hash) + getBinaryData().hashCode(); hash = (29 * hash) + unknownFields.hashCode(); @@ -305,127 +276,117 @@ public int hashCode() { } public static com.google.cloud.iot.v1.ModifyCloudToDeviceConfigRequest parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.iot.v1.ModifyCloudToDeviceConfigRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.iot.v1.ModifyCloudToDeviceConfigRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.iot.v1.ModifyCloudToDeviceConfigRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.iot.v1.ModifyCloudToDeviceConfigRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.iot.v1.ModifyCloudToDeviceConfigRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.iot.v1.ModifyCloudToDeviceConfigRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.iot.v1.ModifyCloudToDeviceConfigRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.iot.v1.ModifyCloudToDeviceConfigRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.iot.v1.ModifyCloudToDeviceConfigRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.iot.v1.ModifyCloudToDeviceConfigRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.iot.v1.ModifyCloudToDeviceConfigRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.iot.v1.ModifyCloudToDeviceConfigRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.iot.v1.ModifyCloudToDeviceConfigRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.iot.v1.ModifyCloudToDeviceConfigRequest prototype) { + public static Builder newBuilder(com.google.cloud.iot.v1.ModifyCloudToDeviceConfigRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected 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 `ModifyCloudToDeviceConfig`.
    * 
* * Protobuf type {@code google.cloud.iot.v1.ModifyCloudToDeviceConfigRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.iot.v1.ModifyCloudToDeviceConfigRequest) com.google.cloud.iot.v1.ModifyCloudToDeviceConfigRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.iot.v1.DeviceManagerProto - .internal_static_google_cloud_iot_v1_ModifyCloudToDeviceConfigRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.iot.v1.DeviceManagerProto.internal_static_google_cloud_iot_v1_ModifyCloudToDeviceConfigRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.iot.v1.DeviceManagerProto - .internal_static_google_cloud_iot_v1_ModifyCloudToDeviceConfigRequest_fieldAccessorTable + return com.google.cloud.iot.v1.DeviceManagerProto.internal_static_google_cloud_iot_v1_ModifyCloudToDeviceConfigRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.iot.v1.ModifyCloudToDeviceConfigRequest.class, - com.google.cloud.iot.v1.ModifyCloudToDeviceConfigRequest.Builder.class); + com.google.cloud.iot.v1.ModifyCloudToDeviceConfigRequest.class, com.google.cloud.iot.v1.ModifyCloudToDeviceConfigRequest.Builder.class); } // Construct using com.google.cloud.iot.v1.ModifyCloudToDeviceConfigRequest.newBuilder() @@ -433,15 +394,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(); @@ -455,9 +417,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.iot.v1.DeviceManagerProto - .internal_static_google_cloud_iot_v1_ModifyCloudToDeviceConfigRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.iot.v1.DeviceManagerProto.internal_static_google_cloud_iot_v1_ModifyCloudToDeviceConfigRequest_descriptor; } @java.lang.Override @@ -476,8 +438,7 @@ public com.google.cloud.iot.v1.ModifyCloudToDeviceConfigRequest build() { @java.lang.Override public com.google.cloud.iot.v1.ModifyCloudToDeviceConfigRequest buildPartial() { - com.google.cloud.iot.v1.ModifyCloudToDeviceConfigRequest result = - new com.google.cloud.iot.v1.ModifyCloudToDeviceConfigRequest(this); + com.google.cloud.iot.v1.ModifyCloudToDeviceConfigRequest result = new com.google.cloud.iot.v1.ModifyCloudToDeviceConfigRequest(this); result.name_ = name_; result.versionToUpdate_ = versionToUpdate_; result.binaryData_ = binaryData_; @@ -489,39 +450,38 @@ public com.google.cloud.iot.v1.ModifyCloudToDeviceConfigRequest buildPartial() { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.iot.v1.ModifyCloudToDeviceConfigRequest) { - return mergeFrom((com.google.cloud.iot.v1.ModifyCloudToDeviceConfigRequest) other); + return mergeFrom((com.google.cloud.iot.v1.ModifyCloudToDeviceConfigRequest)other); } else { super.mergeFrom(other); return this; @@ -529,8 +489,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.iot.v1.ModifyCloudToDeviceConfigRequest other) { - if (other == com.google.cloud.iot.v1.ModifyCloudToDeviceConfigRequest.getDefaultInstance()) - return this; + if (other == com.google.cloud.iot.v1.ModifyCloudToDeviceConfigRequest.getDefaultInstance()) return this; if (!other.getName().isEmpty()) { name_ = other.name_; onChanged(); @@ -560,8 +519,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.iot.v1.ModifyCloudToDeviceConfigRequest) e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.iot.v1.ModifyCloudToDeviceConfigRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -573,24 +531,20 @@ public Builder mergeFrom( private java.lang.Object name_ = ""; /** - * - * *
      * Required. The name of the device. For example,
      * `projects/p0/locations/us-central1/registries/registry0/devices/device0` or
      * `projects/p0/locations/us-central1/registries/registry0/devices/{num_id}`.
      * 
* - * - * string name = 1 [(.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; @@ -599,25 +553,22 @@ public java.lang.String getName() { } } /** - * - * *
      * Required. The name of the device. For example,
      * `projects/p0/locations/us-central1/registries/registry0/devices/device0` or
      * `projects/p0/locations/us-central1/registries/registry0/devices/{num_id}`.
      * 
* - * - * string name = 1 [(.google.api.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 { @@ -625,82 +576,67 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
      * Required. The name of the device. For example,
      * `projects/p0/locations/us-central1/registries/registry0/devices/device0` or
      * `projects/p0/locations/us-central1/registries/registry0/devices/{num_id}`.
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The name to set. * @return This builder for chaining. */ - public Builder setName(java.lang.String value) { + public Builder setName( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + name_ = value; onChanged(); return this; } /** - * - * *
      * Required. The name of the device. For example,
      * `projects/p0/locations/us-central1/registries/registry0/devices/device0` or
      * `projects/p0/locations/us-central1/registries/registry0/devices/{num_id}`.
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return This builder for chaining. */ public Builder clearName() { - + name_ = getDefaultInstance().getName(); onChanged(); return this; } /** - * - * *
      * Required. The name of the device. For example,
      * `projects/p0/locations/us-central1/registries/registry0/devices/device0` or
      * `projects/p0/locations/us-central1/registries/registry0/devices/{num_id}`.
      * 
* - * - * 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 long versionToUpdate_; + private long versionToUpdate_ ; /** - * - * *
      * The version number to update. If this value is zero, it will not check the
      * version number of the server and will always update the current version;
@@ -710,7 +646,6 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) {
      * 
* * int64 version_to_update = 2; - * * @return The versionToUpdate. */ @java.lang.Override @@ -718,8 +653,6 @@ public long getVersionToUpdate() { return versionToUpdate_; } /** - * - * *
      * The version number to update. If this value is zero, it will not check the
      * version number of the server and will always update the current version;
@@ -729,19 +662,16 @@ public long getVersionToUpdate() {
      * 
* * int64 version_to_update = 2; - * * @param value The versionToUpdate to set. * @return This builder for chaining. */ public Builder setVersionToUpdate(long value) { - + versionToUpdate_ = value; onChanged(); return this; } /** - * - * *
      * The version number to update. If this value is zero, it will not check the
      * version number of the server and will always update the current version;
@@ -751,11 +681,10 @@ public Builder setVersionToUpdate(long value) {
      * 
* * int64 version_to_update = 2; - * * @return This builder for chaining. */ public Builder clearVersionToUpdate() { - + versionToUpdate_ = 0L; onChanged(); return this; @@ -763,14 +692,11 @@ public Builder clearVersionToUpdate() { private com.google.protobuf.ByteString binaryData_ = com.google.protobuf.ByteString.EMPTY; /** - * - * *
      * Required. The configuration data for the device.
      * 
* * bytes binary_data = 3 [(.google.api.field_behavior) = REQUIRED]; - * * @return The binaryData. */ @java.lang.Override @@ -778,46 +704,40 @@ public com.google.protobuf.ByteString getBinaryData() { return binaryData_; } /** - * - * *
      * Required. The configuration data for the device.
      * 
* * bytes binary_data = 3 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The binaryData to set. * @return This builder for chaining. */ public Builder setBinaryData(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + binaryData_ = value; onChanged(); return this; } /** - * - * *
      * Required. The configuration data for the device.
      * 
* * bytes binary_data = 3 [(.google.api.field_behavior) = REQUIRED]; - * * @return This builder for chaining. */ public Builder clearBinaryData() { - + binaryData_ = getDefaultInstance().getBinaryData(); onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -827,12 +747,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.iot.v1.ModifyCloudToDeviceConfigRequest) } // @@protoc_insertion_point(class_scope:google.cloud.iot.v1.ModifyCloudToDeviceConfigRequest) private static final com.google.cloud.iot.v1.ModifyCloudToDeviceConfigRequest DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.iot.v1.ModifyCloudToDeviceConfigRequest(); } @@ -841,16 +761,16 @@ public static com.google.cloud.iot.v1.ModifyCloudToDeviceConfigRequest getDefaul return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ModifyCloudToDeviceConfigRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ModifyCloudToDeviceConfigRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ModifyCloudToDeviceConfigRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ModifyCloudToDeviceConfigRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -865,4 +785,6 @@ public com.google.protobuf.Parser getParserFor public com.google.cloud.iot.v1.ModifyCloudToDeviceConfigRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-iot-v1/src/main/java/com/google/cloud/iot/v1/ModifyCloudToDeviceConfigRequestOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-iot-v1/src/main/java/com/google/cloud/iot/v1/ModifyCloudToDeviceConfigRequestOrBuilder.java similarity index 61% rename from proto-google-cloud-iot-v1/src/main/java/com/google/cloud/iot/v1/ModifyCloudToDeviceConfigRequestOrBuilder.java rename to owl-bot-staging/v1/proto-google-cloud-iot-v1/src/main/java/com/google/cloud/iot/v1/ModifyCloudToDeviceConfigRequestOrBuilder.java index ee851ed3..11eb5c1d 100644 --- a/proto-google-cloud-iot-v1/src/main/java/com/google/cloud/iot/v1/ModifyCloudToDeviceConfigRequestOrBuilder.java +++ b/owl-bot-staging/v1/proto-google-cloud-iot-v1/src/main/java/com/google/cloud/iot/v1/ModifyCloudToDeviceConfigRequestOrBuilder.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/iot/v1/device_manager.proto package com.google.cloud.iot.v1; -public interface ModifyCloudToDeviceConfigRequestOrBuilder - extends +public interface ModifyCloudToDeviceConfigRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.iot.v1.ModifyCloudToDeviceConfigRequest) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Required. The name of the device. For example,
    * `projects/p0/locations/us-central1/registries/registry0/devices/device0` or
    * `projects/p0/locations/us-central1/registries/registry0/devices/{num_id}`.
    * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The name. */ java.lang.String getName(); /** - * - * *
    * Required. The name of the device. For example,
    * `projects/p0/locations/us-central1/registries/registry0/devices/device0` or
    * `projects/p0/locations/us-central1/registries/registry0/devices/{num_id}`.
    * 
* - * - * string name = 1 [(.google.api.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(); /** - * - * *
    * The version number to update. If this value is zero, it will not check the
    * version number of the server and will always update the current version;
@@ -68,20 +41,16 @@ public interface ModifyCloudToDeviceConfigRequestOrBuilder
    * 
* * int64 version_to_update = 2; - * * @return The versionToUpdate. */ long getVersionToUpdate(); /** - * - * *
    * Required. The configuration data for the device.
    * 
* * bytes binary_data = 3 [(.google.api.field_behavior) = REQUIRED]; - * * @return The binaryData. */ com.google.protobuf.ByteString getBinaryData(); diff --git a/proto-google-cloud-iot-v1/src/main/java/com/google/cloud/iot/v1/MqttConfig.java b/owl-bot-staging/v1/proto-google-cloud-iot-v1/src/main/java/com/google/cloud/iot/v1/MqttConfig.java similarity index 70% rename from proto-google-cloud-iot-v1/src/main/java/com/google/cloud/iot/v1/MqttConfig.java rename to owl-bot-staging/v1/proto-google-cloud-iot-v1/src/main/java/com/google/cloud/iot/v1/MqttConfig.java index 1d206754..fca8551c 100644 --- a/proto-google-cloud-iot-v1/src/main/java/com/google/cloud/iot/v1/MqttConfig.java +++ b/owl-bot-staging/v1/proto-google-cloud-iot-v1/src/main/java/com/google/cloud/iot/v1/MqttConfig.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/iot/v1/resources.proto package com.google.cloud.iot.v1; /** - * - * *
  * The configuration of MQTT for a device registry.
  * 
* * Protobuf type {@code google.cloud.iot.v1.MqttConfig} */ -public final class MqttConfig extends com.google.protobuf.GeneratedMessageV3 - implements +public final class MqttConfig extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.iot.v1.MqttConfig) MqttConfigOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use MqttConfig.newBuilder() to construct. private MqttConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private MqttConfig() { mqttEnabledState_ = 0; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new MqttConfig(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private MqttConfig( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -70,20 +53,19 @@ private MqttConfig( case 0: done = true; break; - case 8: - { - int rawValue = input.readEnum(); + case 8: { + int rawValue = input.readEnum(); - mqttEnabledState_ = rawValue; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + mqttEnabledState_ = rawValue; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -91,68 +73,56 @@ private MqttConfig( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.iot.v1.ResourcesProto - .internal_static_google_cloud_iot_v1_MqttConfig_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.iot.v1.ResourcesProto.internal_static_google_cloud_iot_v1_MqttConfig_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.iot.v1.ResourcesProto - .internal_static_google_cloud_iot_v1_MqttConfig_fieldAccessorTable + return com.google.cloud.iot.v1.ResourcesProto.internal_static_google_cloud_iot_v1_MqttConfig_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.iot.v1.MqttConfig.class, - com.google.cloud.iot.v1.MqttConfig.Builder.class); + com.google.cloud.iot.v1.MqttConfig.class, com.google.cloud.iot.v1.MqttConfig.Builder.class); } public static final int MQTT_ENABLED_STATE_FIELD_NUMBER = 1; private int mqttEnabledState_; /** - * - * *
    * If enabled, allows connections using the MQTT protocol. Otherwise, MQTT
    * connections to this registry will fail.
    * 
* * .google.cloud.iot.v1.MqttState mqtt_enabled_state = 1; - * * @return The enum numeric value on the wire for mqttEnabledState. */ - @java.lang.Override - public int getMqttEnabledStateValue() { + @java.lang.Override public int getMqttEnabledStateValue() { return mqttEnabledState_; } /** - * - * *
    * If enabled, allows connections using the MQTT protocol. Otherwise, MQTT
    * connections to this registry will fail.
    * 
* * .google.cloud.iot.v1.MqttState mqtt_enabled_state = 1; - * * @return The mqttEnabledState. */ - @java.lang.Override - public com.google.cloud.iot.v1.MqttState getMqttEnabledState() { + @java.lang.Override public com.google.cloud.iot.v1.MqttState getMqttEnabledState() { @SuppressWarnings("deprecation") - com.google.cloud.iot.v1.MqttState result = - com.google.cloud.iot.v1.MqttState.valueOf(mqttEnabledState_); + com.google.cloud.iot.v1.MqttState result = com.google.cloud.iot.v1.MqttState.valueOf(mqttEnabledState_); return result == null ? com.google.cloud.iot.v1.MqttState.UNRECOGNIZED : result; } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -164,7 +134,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 (mqttEnabledState_ != com.google.cloud.iot.v1.MqttState.MQTT_STATE_UNSPECIFIED.getNumber()) { output.writeEnum(1, mqttEnabledState_); } @@ -178,7 +149,8 @@ public int getSerializedSize() { size = 0; if (mqttEnabledState_ != com.google.cloud.iot.v1.MqttState.MQTT_STATE_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream.computeEnumSize(1, mqttEnabledState_); + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(1, mqttEnabledState_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -188,7 +160,7 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.iot.v1.MqttConfig)) { return super.equals(obj); @@ -214,126 +186,118 @@ public int hashCode() { return hash; } - public static com.google.cloud.iot.v1.MqttConfig parseFrom(java.nio.ByteBuffer data) + public static com.google.cloud.iot.v1.MqttConfig parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.iot.v1.MqttConfig parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.iot.v1.MqttConfig parseFrom(com.google.protobuf.ByteString data) + public static com.google.cloud.iot.v1.MqttConfig parseFrom( + com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.iot.v1.MqttConfig parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.iot.v1.MqttConfig parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.iot.v1.MqttConfig parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.iot.v1.MqttConfig 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.iot.v1.MqttConfig parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.iot.v1.MqttConfig 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.iot.v1.MqttConfig parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.iot.v1.MqttConfig parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.iot.v1.MqttConfig parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.iot.v1.MqttConfig prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * The configuration of MQTT for a device registry.
    * 
* * Protobuf type {@code google.cloud.iot.v1.MqttConfig} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.iot.v1.MqttConfig) com.google.cloud.iot.v1.MqttConfigOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.iot.v1.ResourcesProto - .internal_static_google_cloud_iot_v1_MqttConfig_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.iot.v1.ResourcesProto.internal_static_google_cloud_iot_v1_MqttConfig_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.iot.v1.ResourcesProto - .internal_static_google_cloud_iot_v1_MqttConfig_fieldAccessorTable + return com.google.cloud.iot.v1.ResourcesProto.internal_static_google_cloud_iot_v1_MqttConfig_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.iot.v1.MqttConfig.class, - com.google.cloud.iot.v1.MqttConfig.Builder.class); + com.google.cloud.iot.v1.MqttConfig.class, com.google.cloud.iot.v1.MqttConfig.Builder.class); } // Construct using com.google.cloud.iot.v1.MqttConfig.newBuilder() @@ -341,15 +305,16 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -359,9 +324,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.iot.v1.ResourcesProto - .internal_static_google_cloud_iot_v1_MqttConfig_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.iot.v1.ResourcesProto.internal_static_google_cloud_iot_v1_MqttConfig_descriptor; } @java.lang.Override @@ -390,39 +355,38 @@ public com.google.cloud.iot.v1.MqttConfig buildPartial() { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.iot.v1.MqttConfig) { - return mergeFrom((com.google.cloud.iot.v1.MqttConfig) other); + return mergeFrom((com.google.cloud.iot.v1.MqttConfig)other); } else { super.mergeFrom(other); return this; @@ -465,69 +429,55 @@ public Builder mergeFrom( private int mqttEnabledState_ = 0; /** - * - * *
      * If enabled, allows connections using the MQTT protocol. Otherwise, MQTT
      * connections to this registry will fail.
      * 
* * .google.cloud.iot.v1.MqttState mqtt_enabled_state = 1; - * * @return The enum numeric value on the wire for mqttEnabledState. */ - @java.lang.Override - public int getMqttEnabledStateValue() { + @java.lang.Override public int getMqttEnabledStateValue() { return mqttEnabledState_; } /** - * - * *
      * If enabled, allows connections using the MQTT protocol. Otherwise, MQTT
      * connections to this registry will fail.
      * 
* * .google.cloud.iot.v1.MqttState mqtt_enabled_state = 1; - * * @param value The enum numeric value on the wire for mqttEnabledState to set. * @return This builder for chaining. */ public Builder setMqttEnabledStateValue(int value) { - + mqttEnabledState_ = value; onChanged(); return this; } /** - * - * *
      * If enabled, allows connections using the MQTT protocol. Otherwise, MQTT
      * connections to this registry will fail.
      * 
* * .google.cloud.iot.v1.MqttState mqtt_enabled_state = 1; - * * @return The mqttEnabledState. */ @java.lang.Override public com.google.cloud.iot.v1.MqttState getMqttEnabledState() { @SuppressWarnings("deprecation") - com.google.cloud.iot.v1.MqttState result = - com.google.cloud.iot.v1.MqttState.valueOf(mqttEnabledState_); + com.google.cloud.iot.v1.MqttState result = com.google.cloud.iot.v1.MqttState.valueOf(mqttEnabledState_); return result == null ? com.google.cloud.iot.v1.MqttState.UNRECOGNIZED : result; } /** - * - * *
      * If enabled, allows connections using the MQTT protocol. Otherwise, MQTT
      * connections to this registry will fail.
      * 
* * .google.cloud.iot.v1.MqttState mqtt_enabled_state = 1; - * * @param value The mqttEnabledState to set. * @return This builder for chaining. */ @@ -535,32 +485,29 @@ public Builder setMqttEnabledState(com.google.cloud.iot.v1.MqttState value) { if (value == null) { throw new NullPointerException(); } - + mqttEnabledState_ = value.getNumber(); onChanged(); return this; } /** - * - * *
      * If enabled, allows connections using the MQTT protocol. Otherwise, MQTT
      * connections to this registry will fail.
      * 
* * .google.cloud.iot.v1.MqttState mqtt_enabled_state = 1; - * * @return This builder for chaining. */ public Builder clearMqttEnabledState() { - + mqttEnabledState_ = 0; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -570,12 +517,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.iot.v1.MqttConfig) } // @@protoc_insertion_point(class_scope:google.cloud.iot.v1.MqttConfig) private static final com.google.cloud.iot.v1.MqttConfig DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.iot.v1.MqttConfig(); } @@ -584,16 +531,16 @@ public static com.google.cloud.iot.v1.MqttConfig getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public MqttConfig parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new MqttConfig(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public MqttConfig parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new MqttConfig(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -608,4 +555,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.iot.v1.MqttConfig getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-iot-v1/src/main/java/com/google/cloud/iot/v1/MqttConfigOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-iot-v1/src/main/java/com/google/cloud/iot/v1/MqttConfigOrBuilder.java similarity index 58% rename from proto-google-cloud-iot-v1/src/main/java/com/google/cloud/iot/v1/MqttConfigOrBuilder.java rename to owl-bot-staging/v1/proto-google-cloud-iot-v1/src/main/java/com/google/cloud/iot/v1/MqttConfigOrBuilder.java index 897b7f5e..2fe5f5e1 100644 --- a/proto-google-cloud-iot-v1/src/main/java/com/google/cloud/iot/v1/MqttConfigOrBuilder.java +++ b/owl-bot-staging/v1/proto-google-cloud-iot-v1/src/main/java/com/google/cloud/iot/v1/MqttConfigOrBuilder.java @@ -1,51 +1,29 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/iot/v1/resources.proto package com.google.cloud.iot.v1; -public interface MqttConfigOrBuilder - extends +public interface MqttConfigOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.iot.v1.MqttConfig) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * If enabled, allows connections using the MQTT protocol. Otherwise, MQTT
    * connections to this registry will fail.
    * 
* * .google.cloud.iot.v1.MqttState mqtt_enabled_state = 1; - * * @return The enum numeric value on the wire for mqttEnabledState. */ int getMqttEnabledStateValue(); /** - * - * *
    * If enabled, allows connections using the MQTT protocol. Otherwise, MQTT
    * connections to this registry will fail.
    * 
* * .google.cloud.iot.v1.MqttState mqtt_enabled_state = 1; - * * @return The mqttEnabledState. */ com.google.cloud.iot.v1.MqttState getMqttEnabledState(); diff --git a/proto-google-cloud-iot-v1/src/main/java/com/google/cloud/iot/v1/MqttState.java b/owl-bot-staging/v1/proto-google-cloud-iot-v1/src/main/java/com/google/cloud/iot/v1/MqttState.java similarity index 67% rename from proto-google-cloud-iot-v1/src/main/java/com/google/cloud/iot/v1/MqttState.java rename to owl-bot-staging/v1/proto-google-cloud-iot-v1/src/main/java/com/google/cloud/iot/v1/MqttState.java index b0de10ee..8e2c46cf 100644 --- a/proto-google-cloud-iot-v1/src/main/java/com/google/cloud/iot/v1/MqttState.java +++ b/owl-bot-staging/v1/proto-google-cloud-iot-v1/src/main/java/com/google/cloud/iot/v1/MqttState.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/iot/v1/resources.proto package com.google.cloud.iot.v1; /** - * - * *
  * Indicates whether an MQTT connection is enabled or disabled. See the field
  * description for details.
@@ -28,10 +11,9 @@
  *
  * Protobuf enum {@code google.cloud.iot.v1.MqttState}
  */
-public enum MqttState implements com.google.protobuf.ProtocolMessageEnum {
+public enum MqttState
+    implements com.google.protobuf.ProtocolMessageEnum {
   /**
-   *
-   *
    * 
    * No MQTT state specified. If not specified, MQTT will be enabled by default.
    * 
@@ -40,8 +22,6 @@ public enum MqttState implements com.google.protobuf.ProtocolMessageEnum { */ MQTT_STATE_UNSPECIFIED(0), /** - * - * *
    * Enables a MQTT connection.
    * 
@@ -50,8 +30,6 @@ public enum MqttState implements com.google.protobuf.ProtocolMessageEnum { */ MQTT_ENABLED(1), /** - * - * *
    * Disables a MQTT connection.
    * 
@@ -63,8 +41,6 @@ public enum MqttState implements com.google.protobuf.ProtocolMessageEnum { ; /** - * - * *
    * No MQTT state specified. If not specified, MQTT will be enabled by default.
    * 
@@ -73,8 +49,6 @@ public enum MqttState implements com.google.protobuf.ProtocolMessageEnum { */ public static final int MQTT_STATE_UNSPECIFIED_VALUE = 0; /** - * - * *
    * Enables a MQTT connection.
    * 
@@ -83,8 +57,6 @@ public enum MqttState implements com.google.protobuf.ProtocolMessageEnum { */ public static final int MQTT_ENABLED_VALUE = 1; /** - * - * *
    * Disables a MQTT connection.
    * 
@@ -93,6 +65,7 @@ public enum MqttState implements com.google.protobuf.ProtocolMessageEnum { */ public static final int MQTT_DISABLED_VALUE = 2; + public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( @@ -117,49 +90,49 @@ public static MqttState valueOf(int value) { */ public static MqttState forNumber(int value) { switch (value) { - case 0: - return MQTT_STATE_UNSPECIFIED; - case 1: - return MQTT_ENABLED; - case 2: - return MQTT_DISABLED; - default: - return null; + case 0: return MQTT_STATE_UNSPECIFIED; + case 1: return MQTT_ENABLED; + case 2: return MQTT_DISABLED; + 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 MqttState findValueByNumber(int number) { - return MqttState.forNumber(number); - } - }; - - public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { + private static final com.google.protobuf.Internal.EnumLiteMap< + MqttState> internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public MqttState findValueByNumber(int number) { + return MqttState.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.iot.v1.ResourcesProto.getDescriptor().getEnumTypes().get(0); } private static final MqttState[] VALUES = values(); - public static MqttState valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + public static MqttState 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; @@ -175,3 +148,4 @@ private MqttState(int value) { // @@protoc_insertion_point(enum_scope:google.cloud.iot.v1.MqttState) } + diff --git a/proto-google-cloud-iot-v1/src/main/java/com/google/cloud/iot/v1/PublicKeyCertificate.java b/owl-bot-staging/v1/proto-google-cloud-iot-v1/src/main/java/com/google/cloud/iot/v1/PublicKeyCertificate.java similarity index 70% rename from proto-google-cloud-iot-v1/src/main/java/com/google/cloud/iot/v1/PublicKeyCertificate.java rename to owl-bot-staging/v1/proto-google-cloud-iot-v1/src/main/java/com/google/cloud/iot/v1/PublicKeyCertificate.java index 5247291e..2b72b053 100644 --- a/proto-google-cloud-iot-v1/src/main/java/com/google/cloud/iot/v1/PublicKeyCertificate.java +++ b/owl-bot-staging/v1/proto-google-cloud-iot-v1/src/main/java/com/google/cloud/iot/v1/PublicKeyCertificate.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/iot/v1/resources.proto package com.google.cloud.iot.v1; /** - * - * *
  * A public key certificate format and data.
  * 
* * Protobuf type {@code google.cloud.iot.v1.PublicKeyCertificate} */ -public final class PublicKeyCertificate extends com.google.protobuf.GeneratedMessageV3 - implements +public final class PublicKeyCertificate extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.iot.v1.PublicKeyCertificate) PublicKeyCertificateOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use PublicKeyCertificate.newBuilder() to construct. private PublicKeyCertificate(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private PublicKeyCertificate() { format_ = 0; certificate_ = ""; @@ -44,15 +26,16 @@ private PublicKeyCertificate() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new PublicKeyCertificate(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private PublicKeyCertificate( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -71,43 +54,38 @@ private PublicKeyCertificate( case 0: done = true; break; - case 8: - { - int rawValue = input.readEnum(); + case 8: { + int rawValue = input.readEnum(); - format_ = rawValue; - break; - } - case 18: - { - java.lang.String s = input.readStringRequireUtf8(); + format_ = rawValue; + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); - certificate_ = s; - break; + certificate_ = s; + break; + } + case 26: { + com.google.cloud.iot.v1.X509CertificateDetails.Builder subBuilder = null; + if (x509Details_ != null) { + subBuilder = x509Details_.toBuilder(); } - case 26: - { - com.google.cloud.iot.v1.X509CertificateDetails.Builder subBuilder = null; - if (x509Details_ != null) { - subBuilder = x509Details_.toBuilder(); - } - x509Details_ = - input.readMessage( - com.google.cloud.iot.v1.X509CertificateDetails.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(x509Details_); - x509Details_ = subBuilder.buildPartial(); - } - - break; + x509Details_ = input.readMessage(com.google.cloud.iot.v1.X509CertificateDetails.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(x509Details_); + x509Details_ = 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,77 +93,61 @@ private PublicKeyCertificate( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.iot.v1.ResourcesProto - .internal_static_google_cloud_iot_v1_PublicKeyCertificate_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.iot.v1.ResourcesProto.internal_static_google_cloud_iot_v1_PublicKeyCertificate_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.iot.v1.ResourcesProto - .internal_static_google_cloud_iot_v1_PublicKeyCertificate_fieldAccessorTable + return com.google.cloud.iot.v1.ResourcesProto.internal_static_google_cloud_iot_v1_PublicKeyCertificate_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.iot.v1.PublicKeyCertificate.class, - com.google.cloud.iot.v1.PublicKeyCertificate.Builder.class); + com.google.cloud.iot.v1.PublicKeyCertificate.class, com.google.cloud.iot.v1.PublicKeyCertificate.Builder.class); } public static final int FORMAT_FIELD_NUMBER = 1; private int format_; /** - * - * *
    * The certificate format.
    * 
* * .google.cloud.iot.v1.PublicKeyCertificateFormat format = 1; - * * @return The enum numeric value on the wire for format. */ - @java.lang.Override - public int getFormatValue() { + @java.lang.Override public int getFormatValue() { return format_; } /** - * - * *
    * The certificate format.
    * 
* * .google.cloud.iot.v1.PublicKeyCertificateFormat format = 1; - * * @return The format. */ - @java.lang.Override - public com.google.cloud.iot.v1.PublicKeyCertificateFormat getFormat() { + @java.lang.Override public com.google.cloud.iot.v1.PublicKeyCertificateFormat getFormat() { @SuppressWarnings("deprecation") - com.google.cloud.iot.v1.PublicKeyCertificateFormat result = - com.google.cloud.iot.v1.PublicKeyCertificateFormat.valueOf(format_); - return result == null - ? com.google.cloud.iot.v1.PublicKeyCertificateFormat.UNRECOGNIZED - : result; + com.google.cloud.iot.v1.PublicKeyCertificateFormat result = com.google.cloud.iot.v1.PublicKeyCertificateFormat.valueOf(format_); + return result == null ? com.google.cloud.iot.v1.PublicKeyCertificateFormat.UNRECOGNIZED : result; } public static final int CERTIFICATE_FIELD_NUMBER = 2; private volatile java.lang.Object certificate_; /** - * - * *
    * The certificate data.
    * 
* * string certificate = 2; - * * @return The certificate. */ @java.lang.Override @@ -194,29 +156,29 @@ public java.lang.String getCertificate() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); certificate_ = s; return s; } } /** - * - * *
    * The certificate data.
    * 
* * string certificate = 2; - * * @return The bytes for certificate. */ @java.lang.Override - public com.google.protobuf.ByteString getCertificateBytes() { + public com.google.protobuf.ByteString + getCertificateBytes() { java.lang.Object ref = certificate_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); certificate_ = b; return b; } else { @@ -227,14 +189,11 @@ public com.google.protobuf.ByteString getCertificateBytes() { public static final int X509_DETAILS_FIELD_NUMBER = 3; private com.google.cloud.iot.v1.X509CertificateDetails x509Details_; /** - * - * *
    * [Output only] The certificate details. Used only for X.509 certificates.
    * 
* * .google.cloud.iot.v1.X509CertificateDetails x509_details = 3; - * * @return Whether the x509Details field is set. */ @java.lang.Override @@ -242,25 +201,18 @@ public boolean hasX509Details() { return x509Details_ != null; } /** - * - * *
    * [Output only] The certificate details. Used only for X.509 certificates.
    * 
* * .google.cloud.iot.v1.X509CertificateDetails x509_details = 3; - * * @return The x509Details. */ @java.lang.Override public com.google.cloud.iot.v1.X509CertificateDetails getX509Details() { - return x509Details_ == null - ? com.google.cloud.iot.v1.X509CertificateDetails.getDefaultInstance() - : x509Details_; + return x509Details_ == null ? com.google.cloud.iot.v1.X509CertificateDetails.getDefaultInstance() : x509Details_; } /** - * - * *
    * [Output only] The certificate details. Used only for X.509 certificates.
    * 
@@ -273,7 +225,6 @@ public com.google.cloud.iot.v1.X509CertificateDetailsOrBuilder getX509DetailsOrB } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -285,11 +236,9 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (format_ - != com.google.cloud.iot.v1.PublicKeyCertificateFormat - .UNSPECIFIED_PUBLIC_KEY_CERTIFICATE_FORMAT - .getNumber()) { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (format_ != com.google.cloud.iot.v1.PublicKeyCertificateFormat.UNSPECIFIED_PUBLIC_KEY_CERTIFICATE_FORMAT.getNumber()) { output.writeEnum(1, format_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(certificate_)) { @@ -307,17 +256,16 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (format_ - != com.google.cloud.iot.v1.PublicKeyCertificateFormat - .UNSPECIFIED_PUBLIC_KEY_CERTIFICATE_FORMAT - .getNumber()) { - size += com.google.protobuf.CodedOutputStream.computeEnumSize(1, format_); + if (format_ != com.google.cloud.iot.v1.PublicKeyCertificateFormat.UNSPECIFIED_PUBLIC_KEY_CERTIFICATE_FORMAT.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(1, format_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(certificate_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, certificate_); } if (x509Details_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getX509Details()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(3, getX509Details()); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -327,19 +275,20 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.iot.v1.PublicKeyCertificate)) { return super.equals(obj); } - com.google.cloud.iot.v1.PublicKeyCertificate other = - (com.google.cloud.iot.v1.PublicKeyCertificate) obj; + com.google.cloud.iot.v1.PublicKeyCertificate other = (com.google.cloud.iot.v1.PublicKeyCertificate) obj; if (format_ != other.format_) return false; - if (!getCertificate().equals(other.getCertificate())) return false; + if (!getCertificate() + .equals(other.getCertificate())) return false; if (hasX509Details() != other.hasX509Details()) return false; if (hasX509Details()) { - if (!getX509Details().equals(other.getX509Details())) return false; + if (!getX509Details() + .equals(other.getX509Details())) return false; } if (!unknownFields.equals(other.unknownFields)) return false; return true; @@ -365,127 +314,118 @@ public int hashCode() { return hash; } - public static com.google.cloud.iot.v1.PublicKeyCertificate parseFrom(java.nio.ByteBuffer data) + public static com.google.cloud.iot.v1.PublicKeyCertificate parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.iot.v1.PublicKeyCertificate parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.iot.v1.PublicKeyCertificate parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.iot.v1.PublicKeyCertificate parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.iot.v1.PublicKeyCertificate parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.iot.v1.PublicKeyCertificate parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.iot.v1.PublicKeyCertificate 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.iot.v1.PublicKeyCertificate parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.iot.v1.PublicKeyCertificate parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.iot.v1.PublicKeyCertificate parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.iot.v1.PublicKeyCertificate parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.iot.v1.PublicKeyCertificate parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.iot.v1.PublicKeyCertificate parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.iot.v1.PublicKeyCertificate prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected 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 public key certificate format and data.
    * 
* * Protobuf type {@code google.cloud.iot.v1.PublicKeyCertificate} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.iot.v1.PublicKeyCertificate) com.google.cloud.iot.v1.PublicKeyCertificateOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.iot.v1.ResourcesProto - .internal_static_google_cloud_iot_v1_PublicKeyCertificate_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.iot.v1.ResourcesProto.internal_static_google_cloud_iot_v1_PublicKeyCertificate_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.iot.v1.ResourcesProto - .internal_static_google_cloud_iot_v1_PublicKeyCertificate_fieldAccessorTable + return com.google.cloud.iot.v1.ResourcesProto.internal_static_google_cloud_iot_v1_PublicKeyCertificate_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.iot.v1.PublicKeyCertificate.class, - com.google.cloud.iot.v1.PublicKeyCertificate.Builder.class); + com.google.cloud.iot.v1.PublicKeyCertificate.class, com.google.cloud.iot.v1.PublicKeyCertificate.Builder.class); } // Construct using com.google.cloud.iot.v1.PublicKeyCertificate.newBuilder() @@ -493,15 +433,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(); @@ -519,9 +460,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.iot.v1.ResourcesProto - .internal_static_google_cloud_iot_v1_PublicKeyCertificate_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.iot.v1.ResourcesProto.internal_static_google_cloud_iot_v1_PublicKeyCertificate_descriptor; } @java.lang.Override @@ -540,8 +481,7 @@ public com.google.cloud.iot.v1.PublicKeyCertificate build() { @java.lang.Override public com.google.cloud.iot.v1.PublicKeyCertificate buildPartial() { - com.google.cloud.iot.v1.PublicKeyCertificate result = - new com.google.cloud.iot.v1.PublicKeyCertificate(this); + com.google.cloud.iot.v1.PublicKeyCertificate result = new com.google.cloud.iot.v1.PublicKeyCertificate(this); result.format_ = format_; result.certificate_ = certificate_; if (x509DetailsBuilder_ == null) { @@ -557,39 +497,38 @@ public com.google.cloud.iot.v1.PublicKeyCertificate buildPartial() { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.iot.v1.PublicKeyCertificate) { - return mergeFrom((com.google.cloud.iot.v1.PublicKeyCertificate) other); + return mergeFrom((com.google.cloud.iot.v1.PublicKeyCertificate)other); } else { super.mergeFrom(other); return this; @@ -639,67 +578,51 @@ public Builder mergeFrom( private int format_ = 0; /** - * - * *
      * The certificate format.
      * 
* * .google.cloud.iot.v1.PublicKeyCertificateFormat format = 1; - * * @return The enum numeric value on the wire for format. */ - @java.lang.Override - public int getFormatValue() { + @java.lang.Override public int getFormatValue() { return format_; } /** - * - * *
      * The certificate format.
      * 
* * .google.cloud.iot.v1.PublicKeyCertificateFormat format = 1; - * * @param value The enum numeric value on the wire for format to set. * @return This builder for chaining. */ public Builder setFormatValue(int value) { - + format_ = value; onChanged(); return this; } /** - * - * *
      * The certificate format.
      * 
* * .google.cloud.iot.v1.PublicKeyCertificateFormat format = 1; - * * @return The format. */ @java.lang.Override public com.google.cloud.iot.v1.PublicKeyCertificateFormat getFormat() { @SuppressWarnings("deprecation") - com.google.cloud.iot.v1.PublicKeyCertificateFormat result = - com.google.cloud.iot.v1.PublicKeyCertificateFormat.valueOf(format_); - return result == null - ? com.google.cloud.iot.v1.PublicKeyCertificateFormat.UNRECOGNIZED - : result; + com.google.cloud.iot.v1.PublicKeyCertificateFormat result = com.google.cloud.iot.v1.PublicKeyCertificateFormat.valueOf(format_); + return result == null ? com.google.cloud.iot.v1.PublicKeyCertificateFormat.UNRECOGNIZED : result; } /** - * - * *
      * The certificate format.
      * 
* * .google.cloud.iot.v1.PublicKeyCertificateFormat format = 1; - * * @param value The format to set. * @return This builder for chaining. */ @@ -707,24 +630,21 @@ public Builder setFormat(com.google.cloud.iot.v1.PublicKeyCertificateFormat valu if (value == null) { throw new NullPointerException(); } - + format_ = value.getNumber(); onChanged(); return this; } /** - * - * *
      * The certificate format.
      * 
* * .google.cloud.iot.v1.PublicKeyCertificateFormat format = 1; - * * @return This builder for chaining. */ public Builder clearFormat() { - + format_ = 0; onChanged(); return this; @@ -732,20 +652,18 @@ public Builder clearFormat() { private java.lang.Object certificate_ = ""; /** - * - * *
      * The certificate data.
      * 
* * string certificate = 2; - * * @return The certificate. */ public java.lang.String getCertificate() { java.lang.Object ref = certificate_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); certificate_ = s; return s; @@ -754,21 +672,20 @@ public java.lang.String getCertificate() { } } /** - * - * *
      * The certificate data.
      * 
* * string certificate = 2; - * * @return The bytes for certificate. */ - public com.google.protobuf.ByteString getCertificateBytes() { + public com.google.protobuf.ByteString + getCertificateBytes() { java.lang.Object ref = certificate_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); certificate_ = b; return b; } else { @@ -776,61 +693,54 @@ public com.google.protobuf.ByteString getCertificateBytes() { } } /** - * - * *
      * The certificate data.
      * 
* * string certificate = 2; - * * @param value The certificate to set. * @return This builder for chaining. */ - public Builder setCertificate(java.lang.String value) { + public Builder setCertificate( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + certificate_ = value; onChanged(); return this; } /** - * - * *
      * The certificate data.
      * 
* * string certificate = 2; - * * @return This builder for chaining. */ public Builder clearCertificate() { - + certificate_ = getDefaultInstance().getCertificate(); onChanged(); return this; } /** - * - * *
      * The certificate data.
      * 
* * string certificate = 2; - * * @param value The bytes for certificate to set. * @return This builder for chaining. */ - public Builder setCertificateBytes(com.google.protobuf.ByteString value) { + public Builder setCertificateBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + certificate_ = value; onChanged(); return this; @@ -838,47 +748,34 @@ public Builder setCertificateBytes(com.google.protobuf.ByteString value) { private com.google.cloud.iot.v1.X509CertificateDetails x509Details_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.iot.v1.X509CertificateDetails, - com.google.cloud.iot.v1.X509CertificateDetails.Builder, - com.google.cloud.iot.v1.X509CertificateDetailsOrBuilder> - x509DetailsBuilder_; + com.google.cloud.iot.v1.X509CertificateDetails, com.google.cloud.iot.v1.X509CertificateDetails.Builder, com.google.cloud.iot.v1.X509CertificateDetailsOrBuilder> x509DetailsBuilder_; /** - * - * *
      * [Output only] The certificate details. Used only for X.509 certificates.
      * 
* * .google.cloud.iot.v1.X509CertificateDetails x509_details = 3; - * * @return Whether the x509Details field is set. */ public boolean hasX509Details() { return x509DetailsBuilder_ != null || x509Details_ != null; } /** - * - * *
      * [Output only] The certificate details. Used only for X.509 certificates.
      * 
* * .google.cloud.iot.v1.X509CertificateDetails x509_details = 3; - * * @return The x509Details. */ public com.google.cloud.iot.v1.X509CertificateDetails getX509Details() { if (x509DetailsBuilder_ == null) { - return x509Details_ == null - ? com.google.cloud.iot.v1.X509CertificateDetails.getDefaultInstance() - : x509Details_; + return x509Details_ == null ? com.google.cloud.iot.v1.X509CertificateDetails.getDefaultInstance() : x509Details_; } else { return x509DetailsBuilder_.getMessage(); } } /** - * - * *
      * [Output only] The certificate details. Used only for X.509 certificates.
      * 
@@ -899,8 +796,6 @@ public Builder setX509Details(com.google.cloud.iot.v1.X509CertificateDetails val return this; } /** - * - * *
      * [Output only] The certificate details. Used only for X.509 certificates.
      * 
@@ -919,8 +814,6 @@ public Builder setX509Details( return this; } /** - * - * *
      * [Output only] The certificate details. Used only for X.509 certificates.
      * 
@@ -931,9 +824,7 @@ public Builder mergeX509Details(com.google.cloud.iot.v1.X509CertificateDetails v if (x509DetailsBuilder_ == null) { if (x509Details_ != null) { x509Details_ = - com.google.cloud.iot.v1.X509CertificateDetails.newBuilder(x509Details_) - .mergeFrom(value) - .buildPartial(); + com.google.cloud.iot.v1.X509CertificateDetails.newBuilder(x509Details_).mergeFrom(value).buildPartial(); } else { x509Details_ = value; } @@ -945,8 +836,6 @@ public Builder mergeX509Details(com.google.cloud.iot.v1.X509CertificateDetails v return this; } /** - * - * *
      * [Output only] The certificate details. Used only for X.509 certificates.
      * 
@@ -965,8 +854,6 @@ public Builder clearX509Details() { return this; } /** - * - * *
      * [Output only] The certificate details. Used only for X.509 certificates.
      * 
@@ -974,13 +861,11 @@ public Builder clearX509Details() { * .google.cloud.iot.v1.X509CertificateDetails x509_details = 3; */ public com.google.cloud.iot.v1.X509CertificateDetails.Builder getX509DetailsBuilder() { - + onChanged(); return getX509DetailsFieldBuilder().getBuilder(); } /** - * - * *
      * [Output only] The certificate details. Used only for X.509 certificates.
      * 
@@ -991,14 +876,11 @@ public com.google.cloud.iot.v1.X509CertificateDetailsOrBuilder getX509DetailsOrB if (x509DetailsBuilder_ != null) { return x509DetailsBuilder_.getMessageOrBuilder(); } else { - return x509Details_ == null - ? com.google.cloud.iot.v1.X509CertificateDetails.getDefaultInstance() - : x509Details_; + return x509Details_ == null ? + com.google.cloud.iot.v1.X509CertificateDetails.getDefaultInstance() : x509Details_; } } /** - * - * *
      * [Output only] The certificate details. Used only for X.509 certificates.
      * 
@@ -1006,24 +888,21 @@ public com.google.cloud.iot.v1.X509CertificateDetailsOrBuilder getX509DetailsOrB * .google.cloud.iot.v1.X509CertificateDetails x509_details = 3; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.iot.v1.X509CertificateDetails, - com.google.cloud.iot.v1.X509CertificateDetails.Builder, - com.google.cloud.iot.v1.X509CertificateDetailsOrBuilder> + com.google.cloud.iot.v1.X509CertificateDetails, com.google.cloud.iot.v1.X509CertificateDetails.Builder, com.google.cloud.iot.v1.X509CertificateDetailsOrBuilder> getX509DetailsFieldBuilder() { if (x509DetailsBuilder_ == null) { - x509DetailsBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.iot.v1.X509CertificateDetails, - com.google.cloud.iot.v1.X509CertificateDetails.Builder, - com.google.cloud.iot.v1.X509CertificateDetailsOrBuilder>( - getX509Details(), getParentForChildren(), isClean()); + x509DetailsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.iot.v1.X509CertificateDetails, com.google.cloud.iot.v1.X509CertificateDetails.Builder, com.google.cloud.iot.v1.X509CertificateDetailsOrBuilder>( + getX509Details(), + getParentForChildren(), + isClean()); x509Details_ = null; } return x509DetailsBuilder_; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1033,12 +912,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.iot.v1.PublicKeyCertificate) } // @@protoc_insertion_point(class_scope:google.cloud.iot.v1.PublicKeyCertificate) private static final com.google.cloud.iot.v1.PublicKeyCertificate DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.iot.v1.PublicKeyCertificate(); } @@ -1047,16 +926,16 @@ public static com.google.cloud.iot.v1.PublicKeyCertificate getDefaultInstance() return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public PublicKeyCertificate parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new PublicKeyCertificate(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public PublicKeyCertificate parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new PublicKeyCertificate(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1071,4 +950,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.iot.v1.PublicKeyCertificate getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-iot-v1/src/main/java/com/google/cloud/iot/v1/PublicKeyCertificateFormat.java b/owl-bot-staging/v1/proto-google-cloud-iot-v1/src/main/java/com/google/cloud/iot/v1/PublicKeyCertificateFormat.java similarity index 70% rename from proto-google-cloud-iot-v1/src/main/java/com/google/cloud/iot/v1/PublicKeyCertificateFormat.java rename to owl-bot-staging/v1/proto-google-cloud-iot-v1/src/main/java/com/google/cloud/iot/v1/PublicKeyCertificateFormat.java index 2babfa94..86cd68f3 100644 --- a/proto-google-cloud-iot-v1/src/main/java/com/google/cloud/iot/v1/PublicKeyCertificateFormat.java +++ b/owl-bot-staging/v1/proto-google-cloud-iot-v1/src/main/java/com/google/cloud/iot/v1/PublicKeyCertificateFormat.java @@ -1,36 +1,18 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/iot/v1/resources.proto package com.google.cloud.iot.v1; /** - * - * *
  * The supported formats for the public key.
  * 
* * Protobuf enum {@code google.cloud.iot.v1.PublicKeyCertificateFormat} */ -public enum PublicKeyCertificateFormat implements com.google.protobuf.ProtocolMessageEnum { +public enum PublicKeyCertificateFormat + implements com.google.protobuf.ProtocolMessageEnum { /** - * - * *
    * The format has not been specified. This is an invalid default value and
    * must not be used.
@@ -40,8 +22,6 @@ public enum PublicKeyCertificateFormat implements com.google.protobuf.ProtocolMe
    */
   UNSPECIFIED_PUBLIC_KEY_CERTIFICATE_FORMAT(0),
   /**
-   *
-   *
    * 
    * An X.509v3 certificate ([RFC5280](https://www.ietf.org/rfc/rfc5280.txt)),
    * encoded in base64, and wrapped by `-----BEGIN CERTIFICATE-----` and
@@ -55,8 +35,6 @@ public enum PublicKeyCertificateFormat implements com.google.protobuf.ProtocolMe
   ;
 
   /**
-   *
-   *
    * 
    * The format has not been specified. This is an invalid default value and
    * must not be used.
@@ -66,8 +44,6 @@ public enum PublicKeyCertificateFormat implements com.google.protobuf.ProtocolMe
    */
   public static final int UNSPECIFIED_PUBLIC_KEY_CERTIFICATE_FORMAT_VALUE = 0;
   /**
-   *
-   *
    * 
    * An X.509v3 certificate ([RFC5280](https://www.ietf.org/rfc/rfc5280.txt)),
    * encoded in base64, and wrapped by `-----BEGIN CERTIFICATE-----` and
@@ -78,6 +54,7 @@ public enum PublicKeyCertificateFormat implements com.google.protobuf.ProtocolMe
    */
   public static final int X509_CERTIFICATE_PEM_VALUE = 1;
 
+
   public final int getNumber() {
     if (this == UNRECOGNIZED) {
       throw new java.lang.IllegalArgumentException(
@@ -102,12 +79,9 @@ public static PublicKeyCertificateFormat valueOf(int value) {
    */
   public static PublicKeyCertificateFormat forNumber(int value) {
     switch (value) {
-      case 0:
-        return UNSPECIFIED_PUBLIC_KEY_CERTIFICATE_FORMAT;
-      case 1:
-        return X509_CERTIFICATE_PEM;
-      default:
-        return null;
+      case 0: return UNSPECIFIED_PUBLIC_KEY_CERTIFICATE_FORMAT;
+      case 1: return X509_CERTIFICATE_PEM;
+      default: return null;
     }
   }
 
@@ -115,28 +89,28 @@ public static PublicKeyCertificateFormat forNumber(int value) {
       internalGetValueMap() {
     return internalValueMap;
   }
-
-  private static final com.google.protobuf.Internal.EnumLiteMap
-      internalValueMap =
-          new com.google.protobuf.Internal.EnumLiteMap() {
-            public PublicKeyCertificateFormat findValueByNumber(int number) {
-              return PublicKeyCertificateFormat.forNumber(number);
-            }
-          };
-
-  public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() {
+  private static final com.google.protobuf.Internal.EnumLiteMap<
+      PublicKeyCertificateFormat> internalValueMap =
+        new com.google.protobuf.Internal.EnumLiteMap() {
+          public PublicKeyCertificateFormat findValueByNumber(int number) {
+            return PublicKeyCertificateFormat.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.iot.v1.ResourcesProto.getDescriptor().getEnumTypes().get(5);
   }
 
@@ -145,7 +119,8 @@ public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor
   public static PublicKeyCertificateFormat 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;
@@ -161,3 +136,4 @@ private PublicKeyCertificateFormat(int value) {
 
   // @@protoc_insertion_point(enum_scope:google.cloud.iot.v1.PublicKeyCertificateFormat)
 }
+
diff --git a/proto-google-cloud-iot-v1/src/main/java/com/google/cloud/iot/v1/PublicKeyCertificateOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-iot-v1/src/main/java/com/google/cloud/iot/v1/PublicKeyCertificateOrBuilder.java
similarity index 70%
rename from proto-google-cloud-iot-v1/src/main/java/com/google/cloud/iot/v1/PublicKeyCertificateOrBuilder.java
rename to owl-bot-staging/v1/proto-google-cloud-iot-v1/src/main/java/com/google/cloud/iot/v1/PublicKeyCertificateOrBuilder.java
index 4f0ea283..c4471b81 100644
--- a/proto-google-cloud-iot-v1/src/main/java/com/google/cloud/iot/v1/PublicKeyCertificateOrBuilder.java
+++ b/owl-bot-staging/v1/proto-google-cloud-iot-v1/src/main/java/com/google/cloud/iot/v1/PublicKeyCertificateOrBuilder.java
@@ -1,105 +1,70 @@
-/*
- * Copyright 2020 Google LLC
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *     https://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/cloud/iot/v1/resources.proto
 
 package com.google.cloud.iot.v1;
 
-public interface PublicKeyCertificateOrBuilder
-    extends
+public interface PublicKeyCertificateOrBuilder extends
     // @@protoc_insertion_point(interface_extends:google.cloud.iot.v1.PublicKeyCertificate)
     com.google.protobuf.MessageOrBuilder {
 
   /**
-   *
-   *
    * 
    * The certificate format.
    * 
* * .google.cloud.iot.v1.PublicKeyCertificateFormat format = 1; - * * @return The enum numeric value on the wire for format. */ int getFormatValue(); /** - * - * *
    * The certificate format.
    * 
* * .google.cloud.iot.v1.PublicKeyCertificateFormat format = 1; - * * @return The format. */ com.google.cloud.iot.v1.PublicKeyCertificateFormat getFormat(); /** - * - * *
    * The certificate data.
    * 
* * string certificate = 2; - * * @return The certificate. */ java.lang.String getCertificate(); /** - * - * *
    * The certificate data.
    * 
* * string certificate = 2; - * * @return The bytes for certificate. */ - com.google.protobuf.ByteString getCertificateBytes(); + com.google.protobuf.ByteString + getCertificateBytes(); /** - * - * *
    * [Output only] The certificate details. Used only for X.509 certificates.
    * 
* * .google.cloud.iot.v1.X509CertificateDetails x509_details = 3; - * * @return Whether the x509Details field is set. */ boolean hasX509Details(); /** - * - * *
    * [Output only] The certificate details. Used only for X.509 certificates.
    * 
* * .google.cloud.iot.v1.X509CertificateDetails x509_details = 3; - * * @return The x509Details. */ com.google.cloud.iot.v1.X509CertificateDetails getX509Details(); /** - * - * *
    * [Output only] The certificate details. Used only for X.509 certificates.
    * 
diff --git a/proto-google-cloud-iot-v1/src/main/java/com/google/cloud/iot/v1/PublicKeyCredential.java b/owl-bot-staging/v1/proto-google-cloud-iot-v1/src/main/java/com/google/cloud/iot/v1/PublicKeyCredential.java similarity index 69% rename from proto-google-cloud-iot-v1/src/main/java/com/google/cloud/iot/v1/PublicKeyCredential.java rename to owl-bot-staging/v1/proto-google-cloud-iot-v1/src/main/java/com/google/cloud/iot/v1/PublicKeyCredential.java index 453a641d..ed901228 100644 --- a/proto-google-cloud-iot-v1/src/main/java/com/google/cloud/iot/v1/PublicKeyCredential.java +++ b/owl-bot-staging/v1/proto-google-cloud-iot-v1/src/main/java/com/google/cloud/iot/v1/PublicKeyCredential.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/iot/v1/resources.proto package com.google.cloud.iot.v1; /** - * - * *
  * A public key format and data.
  * 
* * Protobuf type {@code google.cloud.iot.v1.PublicKeyCredential} */ -public final class PublicKeyCredential extends com.google.protobuf.GeneratedMessageV3 - implements +public final class PublicKeyCredential extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.iot.v1.PublicKeyCredential) PublicKeyCredentialOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use PublicKeyCredential.newBuilder() to construct. private PublicKeyCredential(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private PublicKeyCredential() { format_ = 0; key_ = ""; @@ -44,15 +26,16 @@ private PublicKeyCredential() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new PublicKeyCredential(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private PublicKeyCredential( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -71,27 +54,25 @@ private PublicKeyCredential( case 0: done = true; break; - case 8: - { - int rawValue = input.readEnum(); + case 8: { + int rawValue = input.readEnum(); - format_ = rawValue; - break; - } - case 18: - { - java.lang.String s = input.readStringRequireUtf8(); + format_ = rawValue; + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); - key_ = s; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + key_ = s; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -99,75 +80,61 @@ private PublicKeyCredential( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.iot.v1.ResourcesProto - .internal_static_google_cloud_iot_v1_PublicKeyCredential_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.iot.v1.ResourcesProto.internal_static_google_cloud_iot_v1_PublicKeyCredential_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.iot.v1.ResourcesProto - .internal_static_google_cloud_iot_v1_PublicKeyCredential_fieldAccessorTable + return com.google.cloud.iot.v1.ResourcesProto.internal_static_google_cloud_iot_v1_PublicKeyCredential_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.iot.v1.PublicKeyCredential.class, - com.google.cloud.iot.v1.PublicKeyCredential.Builder.class); + com.google.cloud.iot.v1.PublicKeyCredential.class, com.google.cloud.iot.v1.PublicKeyCredential.Builder.class); } public static final int FORMAT_FIELD_NUMBER = 1; private int format_; /** - * - * *
    * The format of the key.
    * 
* * .google.cloud.iot.v1.PublicKeyFormat format = 1; - * * @return The enum numeric value on the wire for format. */ - @java.lang.Override - public int getFormatValue() { + @java.lang.Override public int getFormatValue() { return format_; } /** - * - * *
    * The format of the key.
    * 
* * .google.cloud.iot.v1.PublicKeyFormat format = 1; - * * @return The format. */ - @java.lang.Override - public com.google.cloud.iot.v1.PublicKeyFormat getFormat() { + @java.lang.Override public com.google.cloud.iot.v1.PublicKeyFormat getFormat() { @SuppressWarnings("deprecation") - com.google.cloud.iot.v1.PublicKeyFormat result = - com.google.cloud.iot.v1.PublicKeyFormat.valueOf(format_); + com.google.cloud.iot.v1.PublicKeyFormat result = com.google.cloud.iot.v1.PublicKeyFormat.valueOf(format_); return result == null ? com.google.cloud.iot.v1.PublicKeyFormat.UNRECOGNIZED : result; } public static final int KEY_FIELD_NUMBER = 2; private volatile java.lang.Object key_; /** - * - * *
    * The key data.
    * 
* * string key = 2; - * * @return The key. */ @java.lang.Override @@ -176,29 +143,29 @@ public java.lang.String getKey() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); key_ = s; return s; } } /** - * - * *
    * The key data.
    * 
* * string key = 2; - * * @return The bytes for key. */ @java.lang.Override - public com.google.protobuf.ByteString getKeyBytes() { + public com.google.protobuf.ByteString + getKeyBytes() { java.lang.Object ref = key_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); key_ = b; return b; } else { @@ -207,7 +174,6 @@ public com.google.protobuf.ByteString getKeyBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -219,9 +185,9 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (format_ - != com.google.cloud.iot.v1.PublicKeyFormat.UNSPECIFIED_PUBLIC_KEY_FORMAT.getNumber()) { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (format_ != com.google.cloud.iot.v1.PublicKeyFormat.UNSPECIFIED_PUBLIC_KEY_FORMAT.getNumber()) { output.writeEnum(1, format_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(key_)) { @@ -236,9 +202,9 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (format_ - != com.google.cloud.iot.v1.PublicKeyFormat.UNSPECIFIED_PUBLIC_KEY_FORMAT.getNumber()) { - size += com.google.protobuf.CodedOutputStream.computeEnumSize(1, format_); + if (format_ != com.google.cloud.iot.v1.PublicKeyFormat.UNSPECIFIED_PUBLIC_KEY_FORMAT.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(1, format_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(key_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, key_); @@ -251,16 +217,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.iot.v1.PublicKeyCredential)) { return super.equals(obj); } - com.google.cloud.iot.v1.PublicKeyCredential other = - (com.google.cloud.iot.v1.PublicKeyCredential) obj; + com.google.cloud.iot.v1.PublicKeyCredential other = (com.google.cloud.iot.v1.PublicKeyCredential) obj; if (format_ != other.format_) return false; - if (!getKey().equals(other.getKey())) return false; + if (!getKey() + .equals(other.getKey())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -281,127 +247,118 @@ public int hashCode() { return hash; } - public static com.google.cloud.iot.v1.PublicKeyCredential parseFrom(java.nio.ByteBuffer data) + public static com.google.cloud.iot.v1.PublicKeyCredential parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.iot.v1.PublicKeyCredential parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.iot.v1.PublicKeyCredential parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.iot.v1.PublicKeyCredential parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.iot.v1.PublicKeyCredential parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.iot.v1.PublicKeyCredential parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.iot.v1.PublicKeyCredential 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.iot.v1.PublicKeyCredential parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.iot.v1.PublicKeyCredential parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.iot.v1.PublicKeyCredential parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.iot.v1.PublicKeyCredential parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.iot.v1.PublicKeyCredential parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.iot.v1.PublicKeyCredential parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.iot.v1.PublicKeyCredential prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected 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 public key format and data.
    * 
* * Protobuf type {@code google.cloud.iot.v1.PublicKeyCredential} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.iot.v1.PublicKeyCredential) com.google.cloud.iot.v1.PublicKeyCredentialOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.iot.v1.ResourcesProto - .internal_static_google_cloud_iot_v1_PublicKeyCredential_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.iot.v1.ResourcesProto.internal_static_google_cloud_iot_v1_PublicKeyCredential_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.iot.v1.ResourcesProto - .internal_static_google_cloud_iot_v1_PublicKeyCredential_fieldAccessorTable + return com.google.cloud.iot.v1.ResourcesProto.internal_static_google_cloud_iot_v1_PublicKeyCredential_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.iot.v1.PublicKeyCredential.class, - com.google.cloud.iot.v1.PublicKeyCredential.Builder.class); + com.google.cloud.iot.v1.PublicKeyCredential.class, com.google.cloud.iot.v1.PublicKeyCredential.Builder.class); } // Construct using com.google.cloud.iot.v1.PublicKeyCredential.newBuilder() @@ -409,15 +366,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(); @@ -429,9 +387,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.iot.v1.ResourcesProto - .internal_static_google_cloud_iot_v1_PublicKeyCredential_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.iot.v1.ResourcesProto.internal_static_google_cloud_iot_v1_PublicKeyCredential_descriptor; } @java.lang.Override @@ -450,8 +408,7 @@ public com.google.cloud.iot.v1.PublicKeyCredential build() { @java.lang.Override public com.google.cloud.iot.v1.PublicKeyCredential buildPartial() { - com.google.cloud.iot.v1.PublicKeyCredential result = - new com.google.cloud.iot.v1.PublicKeyCredential(this); + com.google.cloud.iot.v1.PublicKeyCredential result = new com.google.cloud.iot.v1.PublicKeyCredential(this); result.format_ = format_; result.key_ = key_; onBuilt(); @@ -462,39 +419,38 @@ public com.google.cloud.iot.v1.PublicKeyCredential buildPartial() { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.iot.v1.PublicKeyCredential) { - return mergeFrom((com.google.cloud.iot.v1.PublicKeyCredential) other); + return mergeFrom((com.google.cloud.iot.v1.PublicKeyCredential)other); } else { super.mergeFrom(other); return this; @@ -541,65 +497,51 @@ public Builder mergeFrom( private int format_ = 0; /** - * - * *
      * The format of the key.
      * 
* * .google.cloud.iot.v1.PublicKeyFormat format = 1; - * * @return The enum numeric value on the wire for format. */ - @java.lang.Override - public int getFormatValue() { + @java.lang.Override public int getFormatValue() { return format_; } /** - * - * *
      * The format of the key.
      * 
* * .google.cloud.iot.v1.PublicKeyFormat format = 1; - * * @param value The enum numeric value on the wire for format to set. * @return This builder for chaining. */ public Builder setFormatValue(int value) { - + format_ = value; onChanged(); return this; } /** - * - * *
      * The format of the key.
      * 
* * .google.cloud.iot.v1.PublicKeyFormat format = 1; - * * @return The format. */ @java.lang.Override public com.google.cloud.iot.v1.PublicKeyFormat getFormat() { @SuppressWarnings("deprecation") - com.google.cloud.iot.v1.PublicKeyFormat result = - com.google.cloud.iot.v1.PublicKeyFormat.valueOf(format_); + com.google.cloud.iot.v1.PublicKeyFormat result = com.google.cloud.iot.v1.PublicKeyFormat.valueOf(format_); return result == null ? com.google.cloud.iot.v1.PublicKeyFormat.UNRECOGNIZED : result; } /** - * - * *
      * The format of the key.
      * 
* * .google.cloud.iot.v1.PublicKeyFormat format = 1; - * * @param value The format to set. * @return This builder for chaining. */ @@ -607,24 +549,21 @@ public Builder setFormat(com.google.cloud.iot.v1.PublicKeyFormat value) { if (value == null) { throw new NullPointerException(); } - + format_ = value.getNumber(); onChanged(); return this; } /** - * - * *
      * The format of the key.
      * 
* * .google.cloud.iot.v1.PublicKeyFormat format = 1; - * * @return This builder for chaining. */ public Builder clearFormat() { - + format_ = 0; onChanged(); return this; @@ -632,20 +571,18 @@ public Builder clearFormat() { private java.lang.Object key_ = ""; /** - * - * *
      * The key data.
      * 
* * string key = 2; - * * @return The key. */ public java.lang.String getKey() { java.lang.Object ref = key_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); key_ = s; return s; @@ -654,21 +591,20 @@ public java.lang.String getKey() { } } /** - * - * *
      * The key data.
      * 
* * string key = 2; - * * @return The bytes for key. */ - public com.google.protobuf.ByteString getKeyBytes() { + public com.google.protobuf.ByteString + getKeyBytes() { java.lang.Object ref = key_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); key_ = b; return b; } else { @@ -676,68 +612,61 @@ public com.google.protobuf.ByteString getKeyBytes() { } } /** - * - * *
      * The key data.
      * 
* * string key = 2; - * * @param value The key to set. * @return This builder for chaining. */ - public Builder setKey(java.lang.String value) { + public Builder setKey( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + key_ = value; onChanged(); return this; } /** - * - * *
      * The key data.
      * 
* * string key = 2; - * * @return This builder for chaining. */ public Builder clearKey() { - + key_ = getDefaultInstance().getKey(); onChanged(); return this; } /** - * - * *
      * The key data.
      * 
* * string key = 2; - * * @param value The bytes for key to set. * @return This builder for chaining. */ - public Builder setKeyBytes(com.google.protobuf.ByteString value) { + public Builder setKeyBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + key_ = value; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -747,12 +676,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.iot.v1.PublicKeyCredential) } // @@protoc_insertion_point(class_scope:google.cloud.iot.v1.PublicKeyCredential) private static final com.google.cloud.iot.v1.PublicKeyCredential DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.iot.v1.PublicKeyCredential(); } @@ -761,16 +690,16 @@ public static com.google.cloud.iot.v1.PublicKeyCredential getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public PublicKeyCredential parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new PublicKeyCredential(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public PublicKeyCredential parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new PublicKeyCredential(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -785,4 +714,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.iot.v1.PublicKeyCredential getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-iot-v1/src/main/java/com/google/cloud/iot/v1/PublicKeyCredentialOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-iot-v1/src/main/java/com/google/cloud/iot/v1/PublicKeyCredentialOrBuilder.java similarity index 56% rename from proto-google-cloud-iot-v1/src/main/java/com/google/cloud/iot/v1/PublicKeyCredentialOrBuilder.java rename to owl-bot-staging/v1/proto-google-cloud-iot-v1/src/main/java/com/google/cloud/iot/v1/PublicKeyCredentialOrBuilder.java index 948cd7c7..1f5663f9 100644 --- a/proto-google-cloud-iot-v1/src/main/java/com/google/cloud/iot/v1/PublicKeyCredentialOrBuilder.java +++ b/owl-bot-staging/v1/proto-google-cloud-iot-v1/src/main/java/com/google/cloud/iot/v1/PublicKeyCredentialOrBuilder.java @@ -1,75 +1,48 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/iot/v1/resources.proto package com.google.cloud.iot.v1; -public interface PublicKeyCredentialOrBuilder - extends +public interface PublicKeyCredentialOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.iot.v1.PublicKeyCredential) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * The format of the key.
    * 
* * .google.cloud.iot.v1.PublicKeyFormat format = 1; - * * @return The enum numeric value on the wire for format. */ int getFormatValue(); /** - * - * *
    * The format of the key.
    * 
* * .google.cloud.iot.v1.PublicKeyFormat format = 1; - * * @return The format. */ com.google.cloud.iot.v1.PublicKeyFormat getFormat(); /** - * - * *
    * The key data.
    * 
* * string key = 2; - * * @return The key. */ java.lang.String getKey(); /** - * - * *
    * The key data.
    * 
* * string key = 2; - * * @return The bytes for key. */ - com.google.protobuf.ByteString getKeyBytes(); + com.google.protobuf.ByteString + getKeyBytes(); } diff --git a/proto-google-cloud-iot-v1/src/main/java/com/google/cloud/iot/v1/PublicKeyFormat.java b/owl-bot-staging/v1/proto-google-cloud-iot-v1/src/main/java/com/google/cloud/iot/v1/PublicKeyFormat.java similarity index 77% rename from proto-google-cloud-iot-v1/src/main/java/com/google/cloud/iot/v1/PublicKeyFormat.java rename to owl-bot-staging/v1/proto-google-cloud-iot-v1/src/main/java/com/google/cloud/iot/v1/PublicKeyFormat.java index 0b7315b6..400dc121 100644 --- a/proto-google-cloud-iot-v1/src/main/java/com/google/cloud/iot/v1/PublicKeyFormat.java +++ b/owl-bot-staging/v1/proto-google-cloud-iot-v1/src/main/java/com/google/cloud/iot/v1/PublicKeyFormat.java @@ -1,36 +1,18 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/iot/v1/resources.proto package com.google.cloud.iot.v1; /** - * - * *
  * The supported formats for the public key.
  * 
* * Protobuf enum {@code google.cloud.iot.v1.PublicKeyFormat} */ -public enum PublicKeyFormat implements com.google.protobuf.ProtocolMessageEnum { +public enum PublicKeyFormat + implements com.google.protobuf.ProtocolMessageEnum { /** - * - * *
    * The format has not been specified. This is an invalid default value and
    * must not be used.
@@ -40,8 +22,6 @@ public enum PublicKeyFormat implements com.google.protobuf.ProtocolMessageEnum {
    */
   UNSPECIFIED_PUBLIC_KEY_FORMAT(0),
   /**
-   *
-   *
    * 
    * An RSA public key encoded in base64, and wrapped by
    * `-----BEGIN PUBLIC KEY-----` and `-----END PUBLIC KEY-----`. This can be
@@ -53,8 +33,6 @@ public enum PublicKeyFormat implements com.google.protobuf.ProtocolMessageEnum {
    */
   RSA_PEM(3),
   /**
-   *
-   *
    * 
    * As RSA_PEM, but wrapped in an X.509v3 certificate ([RFC5280](
    * https://www.ietf.org/rfc/rfc5280.txt)), encoded in base64, and wrapped by
@@ -65,8 +43,6 @@ public enum PublicKeyFormat implements com.google.protobuf.ProtocolMessageEnum {
    */
   RSA_X509_PEM(1),
   /**
-   *
-   *
    * 
    * Public key for the ECDSA algorithm using P-256 and SHA-256, encoded in
    * base64, and wrapped by `-----BEGIN PUBLIC KEY-----` and `-----END
@@ -79,8 +55,6 @@ public enum PublicKeyFormat implements com.google.protobuf.ProtocolMessageEnum {
    */
   ES256_PEM(2),
   /**
-   *
-   *
    * 
    * As ES256_PEM, but wrapped in an X.509v3 certificate ([RFC5280](
    * https://www.ietf.org/rfc/rfc5280.txt)), encoded in base64, and wrapped by
@@ -94,8 +68,6 @@ public enum PublicKeyFormat implements com.google.protobuf.ProtocolMessageEnum {
   ;
 
   /**
-   *
-   *
    * 
    * The format has not been specified. This is an invalid default value and
    * must not be used.
@@ -105,8 +77,6 @@ public enum PublicKeyFormat implements com.google.protobuf.ProtocolMessageEnum {
    */
   public static final int UNSPECIFIED_PUBLIC_KEY_FORMAT_VALUE = 0;
   /**
-   *
-   *
    * 
    * An RSA public key encoded in base64, and wrapped by
    * `-----BEGIN PUBLIC KEY-----` and `-----END PUBLIC KEY-----`. This can be
@@ -118,8 +88,6 @@ public enum PublicKeyFormat implements com.google.protobuf.ProtocolMessageEnum {
    */
   public static final int RSA_PEM_VALUE = 3;
   /**
-   *
-   *
    * 
    * As RSA_PEM, but wrapped in an X.509v3 certificate ([RFC5280](
    * https://www.ietf.org/rfc/rfc5280.txt)), encoded in base64, and wrapped by
@@ -130,8 +98,6 @@ public enum PublicKeyFormat implements com.google.protobuf.ProtocolMessageEnum {
    */
   public static final int RSA_X509_PEM_VALUE = 1;
   /**
-   *
-   *
    * 
    * Public key for the ECDSA algorithm using P-256 and SHA-256, encoded in
    * base64, and wrapped by `-----BEGIN PUBLIC KEY-----` and `-----END
@@ -144,8 +110,6 @@ public enum PublicKeyFormat implements com.google.protobuf.ProtocolMessageEnum {
    */
   public static final int ES256_PEM_VALUE = 2;
   /**
-   *
-   *
    * 
    * As ES256_PEM, but wrapped in an X.509v3 certificate ([RFC5280](
    * https://www.ietf.org/rfc/rfc5280.txt)), encoded in base64, and wrapped by
@@ -156,6 +120,7 @@ public enum PublicKeyFormat implements com.google.protobuf.ProtocolMessageEnum {
    */
   public static final int ES256_X509_PEM_VALUE = 4;
 
+
   public final int getNumber() {
     if (this == UNRECOGNIZED) {
       throw new java.lang.IllegalArgumentException(
@@ -180,53 +145,51 @@ public static PublicKeyFormat valueOf(int value) {
    */
   public static PublicKeyFormat forNumber(int value) {
     switch (value) {
-      case 0:
-        return UNSPECIFIED_PUBLIC_KEY_FORMAT;
-      case 3:
-        return RSA_PEM;
-      case 1:
-        return RSA_X509_PEM;
-      case 2:
-        return ES256_PEM;
-      case 4:
-        return ES256_X509_PEM;
-      default:
-        return null;
+      case 0: return UNSPECIFIED_PUBLIC_KEY_FORMAT;
+      case 3: return RSA_PEM;
+      case 1: return RSA_X509_PEM;
+      case 2: return ES256_PEM;
+      case 4: return ES256_X509_PEM;
+      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 PublicKeyFormat findValueByNumber(int number) {
-          return PublicKeyFormat.forNumber(number);
-        }
-      };
-
-  public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() {
+  private static final com.google.protobuf.Internal.EnumLiteMap<
+      PublicKeyFormat> internalValueMap =
+        new com.google.protobuf.Internal.EnumLiteMap() {
+          public PublicKeyFormat findValueByNumber(int number) {
+            return PublicKeyFormat.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.iot.v1.ResourcesProto.getDescriptor().getEnumTypes().get(6);
   }
 
   private static final PublicKeyFormat[] VALUES = values();
 
-  public static PublicKeyFormat valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
+  public static PublicKeyFormat 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;
@@ -242,3 +205,4 @@ private PublicKeyFormat(int value) {
 
   // @@protoc_insertion_point(enum_scope:google.cloud.iot.v1.PublicKeyFormat)
 }
+
diff --git a/proto-google-cloud-iot-v1/src/main/java/com/google/cloud/iot/v1/RegistryCredential.java b/owl-bot-staging/v1/proto-google-cloud-iot-v1/src/main/java/com/google/cloud/iot/v1/RegistryCredential.java
similarity index 70%
rename from proto-google-cloud-iot-v1/src/main/java/com/google/cloud/iot/v1/RegistryCredential.java
rename to owl-bot-staging/v1/proto-google-cloud-iot-v1/src/main/java/com/google/cloud/iot/v1/RegistryCredential.java
index 214329e2..39ffbe60 100644
--- a/proto-google-cloud-iot-v1/src/main/java/com/google/cloud/iot/v1/RegistryCredential.java
+++ b/owl-bot-staging/v1/proto-google-cloud-iot-v1/src/main/java/com/google/cloud/iot/v1/RegistryCredential.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/iot/v1/resources.proto
 
 package com.google.cloud.iot.v1;
 
 /**
- *
- *
  * 
  * A server-stored registry credential used to validate device credentials.
  * 
* * Protobuf type {@code google.cloud.iot.v1.RegistryCredential} */ -public final class RegistryCredential extends com.google.protobuf.GeneratedMessageV3 - implements +public final class RegistryCredential extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.iot.v1.RegistryCredential) RegistryCredentialOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use RegistryCredential.newBuilder() to construct. private RegistryCredential(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - - private RegistryCredential() {} + private RegistryCredential() { + } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new RegistryCredential(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private RegistryCredential( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -68,30 +52,27 @@ private RegistryCredential( case 0: done = true; break; - case 10: - { - com.google.cloud.iot.v1.PublicKeyCertificate.Builder subBuilder = null; - if (credentialCase_ == 1) { - subBuilder = - ((com.google.cloud.iot.v1.PublicKeyCertificate) credential_).toBuilder(); - } - credential_ = - input.readMessage( - com.google.cloud.iot.v1.PublicKeyCertificate.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom((com.google.cloud.iot.v1.PublicKeyCertificate) credential_); - credential_ = subBuilder.buildPartial(); - } - credentialCase_ = 1; - break; + case 10: { + com.google.cloud.iot.v1.PublicKeyCertificate.Builder subBuilder = null; + if (credentialCase_ == 1) { + subBuilder = ((com.google.cloud.iot.v1.PublicKeyCertificate) credential_).toBuilder(); + } + credential_ = + input.readMessage(com.google.cloud.iot.v1.PublicKeyCertificate.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom((com.google.cloud.iot.v1.PublicKeyCertificate) credential_); + credential_ = subBuilder.buildPartial(); } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + credentialCase_ = 1; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -99,39 +80,34 @@ private RegistryCredential( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.iot.v1.ResourcesProto - .internal_static_google_cloud_iot_v1_RegistryCredential_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.iot.v1.ResourcesProto.internal_static_google_cloud_iot_v1_RegistryCredential_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.iot.v1.ResourcesProto - .internal_static_google_cloud_iot_v1_RegistryCredential_fieldAccessorTable + return com.google.cloud.iot.v1.ResourcesProto.internal_static_google_cloud_iot_v1_RegistryCredential_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.iot.v1.RegistryCredential.class, - com.google.cloud.iot.v1.RegistryCredential.Builder.class); + com.google.cloud.iot.v1.RegistryCredential.class, com.google.cloud.iot.v1.RegistryCredential.Builder.class); } private int credentialCase_ = 0; private java.lang.Object credential_; - public enum CredentialCase - implements - com.google.protobuf.Internal.EnumLite, + implements com.google.protobuf.Internal.EnumLite, com.google.protobuf.AbstractMessage.InternalOneOfEnum { PUBLIC_KEY_CERTIFICATE(1), CREDENTIAL_NOT_SET(0); private final int value; - private CredentialCase(int value) { this.value = value; } @@ -147,34 +123,29 @@ public static CredentialCase valueOf(int value) { public static CredentialCase forNumber(int value) { switch (value) { - case 1: - return PUBLIC_KEY_CERTIFICATE; - case 0: - return CREDENTIAL_NOT_SET; - default: - return null; + case 1: return PUBLIC_KEY_CERTIFICATE; + case 0: return CREDENTIAL_NOT_SET; + default: return null; } } - public int getNumber() { return this.value; } }; - public CredentialCase getCredentialCase() { - return CredentialCase.forNumber(credentialCase_); + public CredentialCase + getCredentialCase() { + return CredentialCase.forNumber( + credentialCase_); } public static final int PUBLIC_KEY_CERTIFICATE_FIELD_NUMBER = 1; /** - * - * *
    * A public key certificate used to verify the device credentials.
    * 
* * .google.cloud.iot.v1.PublicKeyCertificate public_key_certificate = 1; - * * @return Whether the publicKeyCertificate field is set. */ @java.lang.Override @@ -182,26 +153,21 @@ public boolean hasPublicKeyCertificate() { return credentialCase_ == 1; } /** - * - * *
    * A public key certificate used to verify the device credentials.
    * 
* * .google.cloud.iot.v1.PublicKeyCertificate public_key_certificate = 1; - * * @return The publicKeyCertificate. */ @java.lang.Override public com.google.cloud.iot.v1.PublicKeyCertificate getPublicKeyCertificate() { if (credentialCase_ == 1) { - return (com.google.cloud.iot.v1.PublicKeyCertificate) credential_; + return (com.google.cloud.iot.v1.PublicKeyCertificate) credential_; } return com.google.cloud.iot.v1.PublicKeyCertificate.getDefaultInstance(); } /** - * - * *
    * A public key certificate used to verify the device credentials.
    * 
@@ -211,13 +177,12 @@ public com.google.cloud.iot.v1.PublicKeyCertificate getPublicKeyCertificate() { @java.lang.Override public com.google.cloud.iot.v1.PublicKeyCertificateOrBuilder getPublicKeyCertificateOrBuilder() { if (credentialCase_ == 1) { - return (com.google.cloud.iot.v1.PublicKeyCertificate) credential_; + return (com.google.cloud.iot.v1.PublicKeyCertificate) credential_; } return com.google.cloud.iot.v1.PublicKeyCertificate.getDefaultInstance(); } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -229,7 +194,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (credentialCase_ == 1) { output.writeMessage(1, (com.google.cloud.iot.v1.PublicKeyCertificate) credential_); } @@ -243,9 +209,8 @@ public int getSerializedSize() { size = 0; if (credentialCase_ == 1) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 1, (com.google.cloud.iot.v1.PublicKeyCertificate) credential_); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, (com.google.cloud.iot.v1.PublicKeyCertificate) credential_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -255,18 +220,18 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.iot.v1.RegistryCredential)) { return super.equals(obj); } - com.google.cloud.iot.v1.RegistryCredential other = - (com.google.cloud.iot.v1.RegistryCredential) obj; + com.google.cloud.iot.v1.RegistryCredential other = (com.google.cloud.iot.v1.RegistryCredential) obj; if (!getCredentialCase().equals(other.getCredentialCase())) return false; switch (credentialCase_) { case 1: - if (!getPublicKeyCertificate().equals(other.getPublicKeyCertificate())) return false; + if (!getPublicKeyCertificate() + .equals(other.getPublicKeyCertificate())) return false; break; case 0: default: @@ -295,127 +260,118 @@ public int hashCode() { return hash; } - public static com.google.cloud.iot.v1.RegistryCredential parseFrom(java.nio.ByteBuffer data) + public static com.google.cloud.iot.v1.RegistryCredential parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.iot.v1.RegistryCredential parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.iot.v1.RegistryCredential parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.iot.v1.RegistryCredential parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.iot.v1.RegistryCredential parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.iot.v1.RegistryCredential parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.iot.v1.RegistryCredential 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.iot.v1.RegistryCredential parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.iot.v1.RegistryCredential parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.iot.v1.RegistryCredential parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.iot.v1.RegistryCredential parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.iot.v1.RegistryCredential parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.iot.v1.RegistryCredential parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.iot.v1.RegistryCredential prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected 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 server-stored registry credential used to validate device credentials.
    * 
* * Protobuf type {@code google.cloud.iot.v1.RegistryCredential} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.iot.v1.RegistryCredential) com.google.cloud.iot.v1.RegistryCredentialOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.iot.v1.ResourcesProto - .internal_static_google_cloud_iot_v1_RegistryCredential_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.iot.v1.ResourcesProto.internal_static_google_cloud_iot_v1_RegistryCredential_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.iot.v1.ResourcesProto - .internal_static_google_cloud_iot_v1_RegistryCredential_fieldAccessorTable + return com.google.cloud.iot.v1.ResourcesProto.internal_static_google_cloud_iot_v1_RegistryCredential_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.iot.v1.RegistryCredential.class, - com.google.cloud.iot.v1.RegistryCredential.Builder.class); + com.google.cloud.iot.v1.RegistryCredential.class, com.google.cloud.iot.v1.RegistryCredential.Builder.class); } // Construct using com.google.cloud.iot.v1.RegistryCredential.newBuilder() @@ -423,15 +379,16 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -441,9 +398,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.iot.v1.ResourcesProto - .internal_static_google_cloud_iot_v1_RegistryCredential_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.iot.v1.ResourcesProto.internal_static_google_cloud_iot_v1_RegistryCredential_descriptor; } @java.lang.Override @@ -462,8 +419,7 @@ public com.google.cloud.iot.v1.RegistryCredential build() { @java.lang.Override public com.google.cloud.iot.v1.RegistryCredential buildPartial() { - com.google.cloud.iot.v1.RegistryCredential result = - new com.google.cloud.iot.v1.RegistryCredential(this); + com.google.cloud.iot.v1.RegistryCredential result = new com.google.cloud.iot.v1.RegistryCredential(this); if (credentialCase_ == 1) { if (publicKeyCertificateBuilder_ == null) { result.credential_ = credential_; @@ -480,39 +436,38 @@ public com.google.cloud.iot.v1.RegistryCredential buildPartial() { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.iot.v1.RegistryCredential) { - return mergeFrom((com.google.cloud.iot.v1.RegistryCredential) other); + return mergeFrom((com.google.cloud.iot.v1.RegistryCredential)other); } else { super.mergeFrom(other); return this; @@ -522,15 +477,13 @@ public Builder mergeFrom(com.google.protobuf.Message other) { public Builder mergeFrom(com.google.cloud.iot.v1.RegistryCredential other) { if (other == com.google.cloud.iot.v1.RegistryCredential.getDefaultInstance()) return this; switch (other.getCredentialCase()) { - case PUBLIC_KEY_CERTIFICATE: - { - mergePublicKeyCertificate(other.getPublicKeyCertificate()); - break; - } - case CREDENTIAL_NOT_SET: - { - break; - } + case PUBLIC_KEY_CERTIFICATE: { + mergePublicKeyCertificate(other.getPublicKeyCertificate()); + break; + } + case CREDENTIAL_NOT_SET: { + break; + } } this.mergeUnknownFields(other.unknownFields); onChanged(); @@ -560,12 +513,12 @@ public Builder mergeFrom( } return this; } - private int credentialCase_ = 0; private java.lang.Object credential_; - - public CredentialCase getCredentialCase() { - return CredentialCase.forNumber(credentialCase_); + public CredentialCase + getCredentialCase() { + return CredentialCase.forNumber( + credentialCase_); } public Builder clearCredential() { @@ -575,20 +528,15 @@ public Builder clearCredential() { return this; } + private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.iot.v1.PublicKeyCertificate, - com.google.cloud.iot.v1.PublicKeyCertificate.Builder, - com.google.cloud.iot.v1.PublicKeyCertificateOrBuilder> - publicKeyCertificateBuilder_; + com.google.cloud.iot.v1.PublicKeyCertificate, com.google.cloud.iot.v1.PublicKeyCertificate.Builder, com.google.cloud.iot.v1.PublicKeyCertificateOrBuilder> publicKeyCertificateBuilder_; /** - * - * *
      * A public key certificate used to verify the device credentials.
      * 
* * .google.cloud.iot.v1.PublicKeyCertificate public_key_certificate = 1; - * * @return Whether the publicKeyCertificate field is set. */ @java.lang.Override @@ -596,14 +544,11 @@ public boolean hasPublicKeyCertificate() { return credentialCase_ == 1; } /** - * - * *
      * A public key certificate used to verify the device credentials.
      * 
* * .google.cloud.iot.v1.PublicKeyCertificate public_key_certificate = 1; - * * @return The publicKeyCertificate. */ @java.lang.Override @@ -621,8 +566,6 @@ public com.google.cloud.iot.v1.PublicKeyCertificate getPublicKeyCertificate() { } } /** - * - * *
      * A public key certificate used to verify the device credentials.
      * 
@@ -643,8 +586,6 @@ public Builder setPublicKeyCertificate(com.google.cloud.iot.v1.PublicKeyCertific return this; } /** - * - * *
      * A public key certificate used to verify the device credentials.
      * 
@@ -663,8 +604,6 @@ public Builder setPublicKeyCertificate( return this; } /** - * - * *
      * A public key certificate used to verify the device credentials.
      * 
@@ -673,13 +612,10 @@ public Builder setPublicKeyCertificate( */ public Builder mergePublicKeyCertificate(com.google.cloud.iot.v1.PublicKeyCertificate value) { if (publicKeyCertificateBuilder_ == null) { - if (credentialCase_ == 1 - && credential_ != com.google.cloud.iot.v1.PublicKeyCertificate.getDefaultInstance()) { - credential_ = - com.google.cloud.iot.v1.PublicKeyCertificate.newBuilder( - (com.google.cloud.iot.v1.PublicKeyCertificate) credential_) - .mergeFrom(value) - .buildPartial(); + if (credentialCase_ == 1 && + credential_ != com.google.cloud.iot.v1.PublicKeyCertificate.getDefaultInstance()) { + credential_ = com.google.cloud.iot.v1.PublicKeyCertificate.newBuilder((com.google.cloud.iot.v1.PublicKeyCertificate) credential_) + .mergeFrom(value).buildPartial(); } else { credential_ = value; } @@ -695,8 +631,6 @@ public Builder mergePublicKeyCertificate(com.google.cloud.iot.v1.PublicKeyCertif return this; } /** - * - * *
      * A public key certificate used to verify the device credentials.
      * 
@@ -720,8 +654,6 @@ public Builder clearPublicKeyCertificate() { return this; } /** - * - * *
      * A public key certificate used to verify the device credentials.
      * 
@@ -732,8 +664,6 @@ public com.google.cloud.iot.v1.PublicKeyCertificate.Builder getPublicKeyCertific return getPublicKeyCertificateFieldBuilder().getBuilder(); } /** - * - * *
      * A public key certificate used to verify the device credentials.
      * 
@@ -741,8 +671,7 @@ public com.google.cloud.iot.v1.PublicKeyCertificate.Builder getPublicKeyCertific * .google.cloud.iot.v1.PublicKeyCertificate public_key_certificate = 1; */ @java.lang.Override - public com.google.cloud.iot.v1.PublicKeyCertificateOrBuilder - getPublicKeyCertificateOrBuilder() { + public com.google.cloud.iot.v1.PublicKeyCertificateOrBuilder getPublicKeyCertificateOrBuilder() { if ((credentialCase_ == 1) && (publicKeyCertificateBuilder_ != null)) { return publicKeyCertificateBuilder_.getMessageOrBuilder(); } else { @@ -753,8 +682,6 @@ public com.google.cloud.iot.v1.PublicKeyCertificate.Builder getPublicKeyCertific } } /** - * - * *
      * A public key certificate used to verify the device credentials.
      * 
@@ -762,32 +689,26 @@ public com.google.cloud.iot.v1.PublicKeyCertificate.Builder getPublicKeyCertific * .google.cloud.iot.v1.PublicKeyCertificate public_key_certificate = 1; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.iot.v1.PublicKeyCertificate, - com.google.cloud.iot.v1.PublicKeyCertificate.Builder, - com.google.cloud.iot.v1.PublicKeyCertificateOrBuilder> + com.google.cloud.iot.v1.PublicKeyCertificate, com.google.cloud.iot.v1.PublicKeyCertificate.Builder, com.google.cloud.iot.v1.PublicKeyCertificateOrBuilder> getPublicKeyCertificateFieldBuilder() { if (publicKeyCertificateBuilder_ == null) { if (!(credentialCase_ == 1)) { credential_ = com.google.cloud.iot.v1.PublicKeyCertificate.getDefaultInstance(); } - publicKeyCertificateBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.iot.v1.PublicKeyCertificate, - com.google.cloud.iot.v1.PublicKeyCertificate.Builder, - com.google.cloud.iot.v1.PublicKeyCertificateOrBuilder>( + publicKeyCertificateBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.iot.v1.PublicKeyCertificate, com.google.cloud.iot.v1.PublicKeyCertificate.Builder, com.google.cloud.iot.v1.PublicKeyCertificateOrBuilder>( (com.google.cloud.iot.v1.PublicKeyCertificate) credential_, getParentForChildren(), isClean()); credential_ = null; } credentialCase_ = 1; - onChanged(); - ; + onChanged();; return publicKeyCertificateBuilder_; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -797,12 +718,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.iot.v1.RegistryCredential) } // @@protoc_insertion_point(class_scope:google.cloud.iot.v1.RegistryCredential) private static final com.google.cloud.iot.v1.RegistryCredential DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.iot.v1.RegistryCredential(); } @@ -811,16 +732,16 @@ public static com.google.cloud.iot.v1.RegistryCredential getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public RegistryCredential parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new RegistryCredential(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public RegistryCredential parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new RegistryCredential(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -835,4 +756,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.iot.v1.RegistryCredential getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-iot-v1/src/main/java/com/google/cloud/iot/v1/RegistryCredentialOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-iot-v1/src/main/java/com/google/cloud/iot/v1/RegistryCredentialOrBuilder.java similarity index 64% rename from proto-google-cloud-iot-v1/src/main/java/com/google/cloud/iot/v1/RegistryCredentialOrBuilder.java rename to owl-bot-staging/v1/proto-google-cloud-iot-v1/src/main/java/com/google/cloud/iot/v1/RegistryCredentialOrBuilder.java index 4a8cac1e..b13ceaab 100644 --- a/proto-google-cloud-iot-v1/src/main/java/com/google/cloud/iot/v1/RegistryCredentialOrBuilder.java +++ b/owl-bot-staging/v1/proto-google-cloud-iot-v1/src/main/java/com/google/cloud/iot/v1/RegistryCredentialOrBuilder.java @@ -1,55 +1,31 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/iot/v1/resources.proto package com.google.cloud.iot.v1; -public interface RegistryCredentialOrBuilder - extends +public interface RegistryCredentialOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.iot.v1.RegistryCredential) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * A public key certificate used to verify the device credentials.
    * 
* * .google.cloud.iot.v1.PublicKeyCertificate public_key_certificate = 1; - * * @return Whether the publicKeyCertificate field is set. */ boolean hasPublicKeyCertificate(); /** - * - * *
    * A public key certificate used to verify the device credentials.
    * 
* * .google.cloud.iot.v1.PublicKeyCertificate public_key_certificate = 1; - * * @return The publicKeyCertificate. */ com.google.cloud.iot.v1.PublicKeyCertificate getPublicKeyCertificate(); /** - * - * *
    * A public key certificate used to verify the device credentials.
    * 
diff --git a/proto-google-cloud-iot-v1/src/main/java/com/google/cloud/iot/v1/RegistryName.java b/owl-bot-staging/v1/proto-google-cloud-iot-v1/src/main/java/com/google/cloud/iot/v1/RegistryName.java similarity index 100% rename from proto-google-cloud-iot-v1/src/main/java/com/google/cloud/iot/v1/RegistryName.java rename to owl-bot-staging/v1/proto-google-cloud-iot-v1/src/main/java/com/google/cloud/iot/v1/RegistryName.java diff --git a/owl-bot-staging/v1/proto-google-cloud-iot-v1/src/main/java/com/google/cloud/iot/v1/ResourcesProto.java b/owl-bot-staging/v1/proto-google-cloud-iot-v1/src/main/java/com/google/cloud/iot/v1/ResourcesProto.java new file mode 100644 index 00000000..da21b025 --- /dev/null +++ b/owl-bot-staging/v1/proto-google-cloud-iot-v1/src/main/java/com/google/cloud/iot/v1/ResourcesProto.java @@ -0,0 +1,309 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/iot/v1/resources.proto + +package com.google.cloud.iot.v1; + +public final class ResourcesProto { + private ResourcesProto() {} + 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_iot_v1_Device_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_iot_v1_Device_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_iot_v1_Device_MetadataEntry_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_iot_v1_Device_MetadataEntry_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_iot_v1_GatewayConfig_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_iot_v1_GatewayConfig_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_iot_v1_DeviceRegistry_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_iot_v1_DeviceRegistry_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_iot_v1_MqttConfig_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_iot_v1_MqttConfig_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_iot_v1_HttpConfig_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_iot_v1_HttpConfig_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_iot_v1_EventNotificationConfig_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_iot_v1_EventNotificationConfig_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_iot_v1_StateNotificationConfig_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_iot_v1_StateNotificationConfig_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_iot_v1_RegistryCredential_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_iot_v1_RegistryCredential_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_iot_v1_X509CertificateDetails_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_iot_v1_X509CertificateDetails_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_iot_v1_PublicKeyCertificate_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_iot_v1_PublicKeyCertificate_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_iot_v1_DeviceCredential_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_iot_v1_DeviceCredential_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_iot_v1_PublicKeyCredential_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_iot_v1_PublicKeyCredential_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_iot_v1_DeviceConfig_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_iot_v1_DeviceConfig_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_iot_v1_DeviceState_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_iot_v1_DeviceState_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/iot/v1/resources.proto\022\023g" + + "oogle.cloud.iot.v1\032\031google/api/resource." + + "proto\032\037google/protobuf/timestamp.proto\032\027" + + "google/rpc/status.proto\"\260\007\n\006Device\022\n\n\002id" + + "\030\001 \001(\t\022\014\n\004name\030\002 \001(\t\022\016\n\006num_id\030\003 \001(\004\022:\n\013" + + "credentials\030\014 \003(\0132%.google.cloud.iot.v1." + + "DeviceCredential\0227\n\023last_heartbeat_time\030" + + "\007 \001(\0132\032.google.protobuf.Timestamp\0223\n\017las" + + "t_event_time\030\010 \001(\0132\032.google.protobuf.Tim" + + "estamp\0223\n\017last_state_time\030\024 \001(\0132\032.google" + + ".protobuf.Timestamp\0228\n\024last_config_ack_t" + + "ime\030\016 \001(\0132\032.google.protobuf.Timestamp\0229\n" + + "\025last_config_send_time\030\022 \001(\0132\032.google.pr" + + "otobuf.Timestamp\022\017\n\007blocked\030\023 \001(\010\0223\n\017las" + + "t_error_time\030\n \001(\0132\032.google.protobuf.Tim" + + "estamp\022-\n\021last_error_status\030\013 \001(\0132\022.goog" + + "le.rpc.Status\0221\n\006config\030\r \001(\0132!.google.c" + + "loud.iot.v1.DeviceConfig\022/\n\005state\030\020 \001(\0132" + + " .google.cloud.iot.v1.DeviceState\0220\n\tlog" + + "_level\030\025 \001(\0162\035.google.cloud.iot.v1.LogLe" + + "vel\022;\n\010metadata\030\021 \003(\0132).google.cloud.iot" + + ".v1.Device.MetadataEntry\022:\n\016gateway_conf" + + "ig\030\030 \001(\0132\".google.cloud.iot.v1.GatewayCo" + + "nfig\032/\n\rMetadataEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005va" + + "lue\030\002 \001(\t:\0028\001:s\352Ap\n\036cloudiot.googleapis." + + "com/Device\022Nprojects/{project}/locations" + + "/{location}/registries/{registry}/device" + + "s/{device}\"\356\001\n\rGatewayConfig\0226\n\014gateway_" + + "type\030\001 \001(\0162 .google.cloud.iot.v1.Gateway" + + "Type\022C\n\023gateway_auth_method\030\002 \001(\0162&.goog" + + "le.cloud.iot.v1.GatewayAuthMethod\022 \n\030las" + + "t_accessed_gateway_id\030\003 \001(\t\022>\n\032last_acce" + + "ssed_gateway_time\030\004 \001(\0132\032.google.protobu" + + "f.Timestamp\"\217\004\n\016DeviceRegistry\022\n\n\002id\030\001 \001" + + "(\t\022\014\n\004name\030\002 \001(\t\022P\n\032event_notification_c" + + "onfigs\030\n \003(\0132,.google.cloud.iot.v1.Event" + + "NotificationConfig\022O\n\031state_notification" + + "_config\030\007 \001(\0132,.google.cloud.iot.v1.Stat" + + "eNotificationConfig\0224\n\013mqtt_config\030\004 \001(\013" + + "2\037.google.cloud.iot.v1.MqttConfig\0224\n\013htt" + + "p_config\030\t \001(\0132\037.google.cloud.iot.v1.Htt" + + "pConfig\0220\n\tlog_level\030\013 \001(\0162\035.google.clou" + + "d.iot.v1.LogLevel\022<\n\013credentials\030\010 \003(\0132\'" + + ".google.cloud.iot.v1.RegistryCredential:" + + "d\352Aa\n cloudiot.googleapis.com/Registry\022=" + + "projects/{project}/locations/{location}/" + + "registries/{registry}\"H\n\nMqttConfig\022:\n\022m" + + "qtt_enabled_state\030\001 \001(\0162\036.google.cloud.i" + + "ot.v1.MqttState\"H\n\nHttpConfig\022:\n\022http_en" + + "abled_state\030\001 \001(\0162\036.google.cloud.iot.v1." + + "HttpState\"O\n\027EventNotificationConfig\022\031\n\021" + + "subfolder_matches\030\002 \001(\t\022\031\n\021pubsub_topic_" + + "name\030\001 \001(\t\"4\n\027StateNotificationConfig\022\031\n" + + "\021pubsub_topic_name\030\001 \001(\t\"o\n\022RegistryCred" + + "ential\022K\n\026public_key_certificate\030\001 \001(\0132)" + + ".google.cloud.iot.v1.PublicKeyCertificat" + + "eH\000B\014\n\ncredential\"\320\001\n\026X509CertificateDet" + + "ails\022\016\n\006issuer\030\001 \001(\t\022\017\n\007subject\030\002 \001(\t\022.\n" + + "\nstart_time\030\003 \001(\0132\032.google.protobuf.Time" + + "stamp\022/\n\013expiry_time\030\004 \001(\0132\032.google.prot" + + "obuf.Timestamp\022\033\n\023signature_algorithm\030\005 " + + "\001(\t\022\027\n\017public_key_type\030\006 \001(\t\"\257\001\n\024PublicK" + + "eyCertificate\022?\n\006format\030\001 \001(\0162/.google.c" + + "loud.iot.v1.PublicKeyCertificateFormat\022\023" + + "\n\013certificate\030\002 \001(\t\022A\n\014x509_details\030\003 \001(" + + "\0132+.google.cloud.iot.v1.X509CertificateD" + + "etails\"\225\001\n\020DeviceCredential\022>\n\npublic_ke" + + "y\030\002 \001(\0132(.google.cloud.iot.v1.PublicKeyC" + + "redentialH\000\0223\n\017expiration_time\030\006 \001(\0132\032.g" + + "oogle.protobuf.TimestampB\014\n\ncredential\"X" + + "\n\023PublicKeyCredential\0224\n\006format\030\001 \001(\0162$." + + "google.cloud.iot.v1.PublicKeyFormat\022\013\n\003k" + + "ey\030\002 \001(\t\"\240\001\n\014DeviceConfig\022\017\n\007version\030\001 \001" + + "(\003\0225\n\021cloud_update_time\030\002 \001(\0132\032.google.p" + + "rotobuf.Timestamp\0223\n\017device_ack_time\030\003 \001" + + "(\0132\032.google.protobuf.Timestamp\022\023\n\013binary" + + "_data\030\004 \001(\014\"S\n\013DeviceState\022/\n\013update_tim" + + "e\030\001 \001(\0132\032.google.protobuf.Timestamp\022\023\n\013b" + + "inary_data\030\002 \001(\014*L\n\tMqttState\022\032\n\026MQTT_ST" + + "ATE_UNSPECIFIED\020\000\022\020\n\014MQTT_ENABLED\020\001\022\021\n\rM" + + "QTT_DISABLED\020\002*L\n\tHttpState\022\032\n\026HTTP_STAT" + + "E_UNSPECIFIED\020\000\022\020\n\014HTTP_ENABLED\020\001\022\021\n\rHTT" + + "P_DISABLED\020\002*O\n\010LogLevel\022\031\n\025LOG_LEVEL_UN" + + "SPECIFIED\020\000\022\010\n\004NONE\020\n\022\t\n\005ERROR\020\024\022\010\n\004INFO" + + "\020\036\022\t\n\005DEBUG\020(*I\n\013GatewayType\022\034\n\030GATEWAY_" + + "TYPE_UNSPECIFIED\020\000\022\013\n\007GATEWAY\020\001\022\017\n\013NON_G" + + "ATEWAY\020\002*\221\001\n\021GatewayAuthMethod\022#\n\037GATEWA" + + "Y_AUTH_METHOD_UNSPECIFIED\020\000\022\024\n\020ASSOCIATI" + + "ON_ONLY\020\001\022\032\n\026DEVICE_AUTH_TOKEN_ONLY\020\002\022%\n" + + "!ASSOCIATION_AND_DEVICE_AUTH_TOKEN\020\003*e\n\032" + + "PublicKeyCertificateFormat\022-\n)UNSPECIFIE" + + "D_PUBLIC_KEY_CERTIFICATE_FORMAT\020\000\022\030\n\024X50" + + "9_CERTIFICATE_PEM\020\001*v\n\017PublicKeyFormat\022!" + + "\n\035UNSPECIFIED_PUBLIC_KEY_FORMAT\020\000\022\013\n\007RSA" + + "_PEM\020\003\022\020\n\014RSA_X509_PEM\020\001\022\r\n\tES256_PEM\020\002\022" + + "\022\n\016ES256_X509_PEM\020\004Bf\n\027com.google.cloud." + + "iot.v1B\016ResourcesProtoP\001Z6google.golang." + + "org/genproto/googleapis/cloud/iot/v1;iot" + + "\370\001\001b\006proto3" + }; + descriptor = com.google.protobuf.Descriptors.FileDescriptor + .internalBuildGeneratedFileFrom(descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + com.google.api.ResourceProto.getDescriptor(), + com.google.protobuf.TimestampProto.getDescriptor(), + com.google.rpc.StatusProto.getDescriptor(), + }); + internal_static_google_cloud_iot_v1_Device_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_cloud_iot_v1_Device_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_iot_v1_Device_descriptor, + new java.lang.String[] { "Id", "Name", "NumId", "Credentials", "LastHeartbeatTime", "LastEventTime", "LastStateTime", "LastConfigAckTime", "LastConfigSendTime", "Blocked", "LastErrorTime", "LastErrorStatus", "Config", "State", "LogLevel", "Metadata", "GatewayConfig", }); + internal_static_google_cloud_iot_v1_Device_MetadataEntry_descriptor = + internal_static_google_cloud_iot_v1_Device_descriptor.getNestedTypes().get(0); + internal_static_google_cloud_iot_v1_Device_MetadataEntry_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_iot_v1_Device_MetadataEntry_descriptor, + new java.lang.String[] { "Key", "Value", }); + internal_static_google_cloud_iot_v1_GatewayConfig_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_google_cloud_iot_v1_GatewayConfig_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_iot_v1_GatewayConfig_descriptor, + new java.lang.String[] { "GatewayType", "GatewayAuthMethod", "LastAccessedGatewayId", "LastAccessedGatewayTime", }); + internal_static_google_cloud_iot_v1_DeviceRegistry_descriptor = + getDescriptor().getMessageTypes().get(2); + internal_static_google_cloud_iot_v1_DeviceRegistry_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_iot_v1_DeviceRegistry_descriptor, + new java.lang.String[] { "Id", "Name", "EventNotificationConfigs", "StateNotificationConfig", "MqttConfig", "HttpConfig", "LogLevel", "Credentials", }); + internal_static_google_cloud_iot_v1_MqttConfig_descriptor = + getDescriptor().getMessageTypes().get(3); + internal_static_google_cloud_iot_v1_MqttConfig_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_iot_v1_MqttConfig_descriptor, + new java.lang.String[] { "MqttEnabledState", }); + internal_static_google_cloud_iot_v1_HttpConfig_descriptor = + getDescriptor().getMessageTypes().get(4); + internal_static_google_cloud_iot_v1_HttpConfig_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_iot_v1_HttpConfig_descriptor, + new java.lang.String[] { "HttpEnabledState", }); + internal_static_google_cloud_iot_v1_EventNotificationConfig_descriptor = + getDescriptor().getMessageTypes().get(5); + internal_static_google_cloud_iot_v1_EventNotificationConfig_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_iot_v1_EventNotificationConfig_descriptor, + new java.lang.String[] { "SubfolderMatches", "PubsubTopicName", }); + internal_static_google_cloud_iot_v1_StateNotificationConfig_descriptor = + getDescriptor().getMessageTypes().get(6); + internal_static_google_cloud_iot_v1_StateNotificationConfig_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_iot_v1_StateNotificationConfig_descriptor, + new java.lang.String[] { "PubsubTopicName", }); + internal_static_google_cloud_iot_v1_RegistryCredential_descriptor = + getDescriptor().getMessageTypes().get(7); + internal_static_google_cloud_iot_v1_RegistryCredential_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_iot_v1_RegistryCredential_descriptor, + new java.lang.String[] { "PublicKeyCertificate", "Credential", }); + internal_static_google_cloud_iot_v1_X509CertificateDetails_descriptor = + getDescriptor().getMessageTypes().get(8); + internal_static_google_cloud_iot_v1_X509CertificateDetails_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_iot_v1_X509CertificateDetails_descriptor, + new java.lang.String[] { "Issuer", "Subject", "StartTime", "ExpiryTime", "SignatureAlgorithm", "PublicKeyType", }); + internal_static_google_cloud_iot_v1_PublicKeyCertificate_descriptor = + getDescriptor().getMessageTypes().get(9); + internal_static_google_cloud_iot_v1_PublicKeyCertificate_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_iot_v1_PublicKeyCertificate_descriptor, + new java.lang.String[] { "Format", "Certificate", "X509Details", }); + internal_static_google_cloud_iot_v1_DeviceCredential_descriptor = + getDescriptor().getMessageTypes().get(10); + internal_static_google_cloud_iot_v1_DeviceCredential_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_iot_v1_DeviceCredential_descriptor, + new java.lang.String[] { "PublicKey", "ExpirationTime", "Credential", }); + internal_static_google_cloud_iot_v1_PublicKeyCredential_descriptor = + getDescriptor().getMessageTypes().get(11); + internal_static_google_cloud_iot_v1_PublicKeyCredential_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_iot_v1_PublicKeyCredential_descriptor, + new java.lang.String[] { "Format", "Key", }); + internal_static_google_cloud_iot_v1_DeviceConfig_descriptor = + getDescriptor().getMessageTypes().get(12); + internal_static_google_cloud_iot_v1_DeviceConfig_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_iot_v1_DeviceConfig_descriptor, + new java.lang.String[] { "Version", "CloudUpdateTime", "DeviceAckTime", "BinaryData", }); + internal_static_google_cloud_iot_v1_DeviceState_descriptor = + getDescriptor().getMessageTypes().get(13); + internal_static_google_cloud_iot_v1_DeviceState_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_iot_v1_DeviceState_descriptor, + new java.lang.String[] { "UpdateTime", "BinaryData", }); + com.google.protobuf.ExtensionRegistry registry = + com.google.protobuf.ExtensionRegistry.newInstance(); + registry.add(com.google.api.ResourceProto.resource); + com.google.protobuf.Descriptors.FileDescriptor + .internalUpdateFileDescriptor(descriptor, registry); + com.google.api.ResourceProto.getDescriptor(); + com.google.protobuf.TimestampProto.getDescriptor(); + com.google.rpc.StatusProto.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/proto-google-cloud-iot-v1/src/main/java/com/google/cloud/iot/v1/SendCommandToDeviceRequest.java b/owl-bot-staging/v1/proto-google-cloud-iot-v1/src/main/java/com/google/cloud/iot/v1/SendCommandToDeviceRequest.java similarity index 71% rename from proto-google-cloud-iot-v1/src/main/java/com/google/cloud/iot/v1/SendCommandToDeviceRequest.java rename to owl-bot-staging/v1/proto-google-cloud-iot-v1/src/main/java/com/google/cloud/iot/v1/SendCommandToDeviceRequest.java index e17619f5..c95cf12c 100644 --- a/proto-google-cloud-iot-v1/src/main/java/com/google/cloud/iot/v1/SendCommandToDeviceRequest.java +++ b/owl-bot-staging/v1/proto-google-cloud-iot-v1/src/main/java/com/google/cloud/iot/v1/SendCommandToDeviceRequest.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/iot/v1/device_manager.proto package com.google.cloud.iot.v1; /** - * - * *
  * Request for `SendCommandToDevice`.
  * 
* * Protobuf type {@code google.cloud.iot.v1.SendCommandToDeviceRequest} */ -public final class SendCommandToDeviceRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class SendCommandToDeviceRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.iot.v1.SendCommandToDeviceRequest) SendCommandToDeviceRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use SendCommandToDeviceRequest.newBuilder() to construct. private SendCommandToDeviceRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private SendCommandToDeviceRequest() { name_ = ""; binaryData_ = com.google.protobuf.ByteString.EMPTY; @@ -45,15 +27,16 @@ private SendCommandToDeviceRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new SendCommandToDeviceRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private SendCommandToDeviceRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -72,32 +55,30 @@ private SendCommandToDeviceRequest( 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: - { - binaryData_ = input.readBytes(); - break; - } - case 26: - { - java.lang.String s = input.readStringRequireUtf8(); + name_ = s; + break; + } + case 18: { - subfolder_ = s; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + binaryData_ = input.readBytes(); + break; + } + case 26: { + java.lang.String s = input.readStringRequireUtf8(); + + subfolder_ = s; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -105,43 +86,36 @@ private SendCommandToDeviceRequest( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.iot.v1.DeviceManagerProto - .internal_static_google_cloud_iot_v1_SendCommandToDeviceRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.iot.v1.DeviceManagerProto.internal_static_google_cloud_iot_v1_SendCommandToDeviceRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.iot.v1.DeviceManagerProto - .internal_static_google_cloud_iot_v1_SendCommandToDeviceRequest_fieldAccessorTable + return com.google.cloud.iot.v1.DeviceManagerProto.internal_static_google_cloud_iot_v1_SendCommandToDeviceRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.iot.v1.SendCommandToDeviceRequest.class, - com.google.cloud.iot.v1.SendCommandToDeviceRequest.Builder.class); + com.google.cloud.iot.v1.SendCommandToDeviceRequest.class, com.google.cloud.iot.v1.SendCommandToDeviceRequest.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** - * - * *
    * Required. The name of the device. For example,
    * `projects/p0/locations/us-central1/registries/registry0/devices/device0` or
    * `projects/p0/locations/us-central1/registries/registry0/devices/{num_id}`.
    * 
* - * - * string name = 1 [(.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 @@ -150,33 +124,31 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** - * - * *
    * Required. The name of the device. For example,
    * `projects/p0/locations/us-central1/registries/registry0/devices/device0` or
    * `projects/p0/locations/us-central1/registries/registry0/devices/{num_id}`.
    * 
* - * - * string name = 1 [(.google.api.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 { @@ -187,14 +159,11 @@ public com.google.protobuf.ByteString getNameBytes() { public static final int BINARY_DATA_FIELD_NUMBER = 2; private com.google.protobuf.ByteString binaryData_; /** - * - * *
    * Required. The command data to send to the device.
    * 
* * bytes binary_data = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The binaryData. */ @java.lang.Override @@ -205,8 +174,6 @@ public com.google.protobuf.ByteString getBinaryData() { public static final int SUBFOLDER_FIELD_NUMBER = 3; private volatile java.lang.Object subfolder_; /** - * - * *
    * Optional subfolder for the command. If empty, the command will be delivered
    * to the /devices/{device-id}/commands topic, otherwise it will be delivered
@@ -216,7 +183,6 @@ public com.google.protobuf.ByteString getBinaryData() {
    * 
* * string subfolder = 3; - * * @return The subfolder. */ @java.lang.Override @@ -225,15 +191,14 @@ public java.lang.String getSubfolder() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); subfolder_ = s; return s; } } /** - * - * *
    * Optional subfolder for the command. If empty, the command will be delivered
    * to the /devices/{device-id}/commands topic, otherwise it will be delivered
@@ -243,15 +208,16 @@ public java.lang.String getSubfolder() {
    * 
* * string subfolder = 3; - * * @return The bytes for subfolder. */ @java.lang.Override - public com.google.protobuf.ByteString getSubfolderBytes() { + public com.google.protobuf.ByteString + getSubfolderBytes() { java.lang.Object ref = subfolder_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); subfolder_ = b; return b; } else { @@ -260,7 +226,6 @@ public com.google.protobuf.ByteString getSubfolderBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -272,7 +237,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_); } @@ -295,7 +261,8 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); } if (!binaryData_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream.computeBytesSize(2, binaryData_); + size += com.google.protobuf.CodedOutputStream + .computeBytesSize(2, binaryData_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(subfolder_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, subfolder_); @@ -308,17 +275,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.iot.v1.SendCommandToDeviceRequest)) { return super.equals(obj); } - com.google.cloud.iot.v1.SendCommandToDeviceRequest other = - (com.google.cloud.iot.v1.SendCommandToDeviceRequest) obj; + com.google.cloud.iot.v1.SendCommandToDeviceRequest other = (com.google.cloud.iot.v1.SendCommandToDeviceRequest) obj; - if (!getName().equals(other.getName())) return false; - if (!getBinaryData().equals(other.getBinaryData())) return false; - if (!getSubfolder().equals(other.getSubfolder())) return false; + if (!getName() + .equals(other.getName())) return false; + if (!getBinaryData() + .equals(other.getBinaryData())) return false; + if (!getSubfolder() + .equals(other.getSubfolder())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -342,126 +311,117 @@ public int hashCode() { } public static com.google.cloud.iot.v1.SendCommandToDeviceRequest parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.iot.v1.SendCommandToDeviceRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.iot.v1.SendCommandToDeviceRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.iot.v1.SendCommandToDeviceRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.iot.v1.SendCommandToDeviceRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.iot.v1.SendCommandToDeviceRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.iot.v1.SendCommandToDeviceRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.iot.v1.SendCommandToDeviceRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.iot.v1.SendCommandToDeviceRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.iot.v1.SendCommandToDeviceRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.iot.v1.SendCommandToDeviceRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.iot.v1.SendCommandToDeviceRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.iot.v1.SendCommandToDeviceRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.iot.v1.SendCommandToDeviceRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.iot.v1.SendCommandToDeviceRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected 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 `SendCommandToDevice`.
    * 
* * Protobuf type {@code google.cloud.iot.v1.SendCommandToDeviceRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.iot.v1.SendCommandToDeviceRequest) com.google.cloud.iot.v1.SendCommandToDeviceRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.iot.v1.DeviceManagerProto - .internal_static_google_cloud_iot_v1_SendCommandToDeviceRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.iot.v1.DeviceManagerProto.internal_static_google_cloud_iot_v1_SendCommandToDeviceRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.iot.v1.DeviceManagerProto - .internal_static_google_cloud_iot_v1_SendCommandToDeviceRequest_fieldAccessorTable + return com.google.cloud.iot.v1.DeviceManagerProto.internal_static_google_cloud_iot_v1_SendCommandToDeviceRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.iot.v1.SendCommandToDeviceRequest.class, - com.google.cloud.iot.v1.SendCommandToDeviceRequest.Builder.class); + com.google.cloud.iot.v1.SendCommandToDeviceRequest.class, com.google.cloud.iot.v1.SendCommandToDeviceRequest.Builder.class); } // Construct using com.google.cloud.iot.v1.SendCommandToDeviceRequest.newBuilder() @@ -469,15 +429,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(); @@ -491,9 +452,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.iot.v1.DeviceManagerProto - .internal_static_google_cloud_iot_v1_SendCommandToDeviceRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.iot.v1.DeviceManagerProto.internal_static_google_cloud_iot_v1_SendCommandToDeviceRequest_descriptor; } @java.lang.Override @@ -512,8 +473,7 @@ public com.google.cloud.iot.v1.SendCommandToDeviceRequest build() { @java.lang.Override public com.google.cloud.iot.v1.SendCommandToDeviceRequest buildPartial() { - com.google.cloud.iot.v1.SendCommandToDeviceRequest result = - new com.google.cloud.iot.v1.SendCommandToDeviceRequest(this); + com.google.cloud.iot.v1.SendCommandToDeviceRequest result = new com.google.cloud.iot.v1.SendCommandToDeviceRequest(this); result.name_ = name_; result.binaryData_ = binaryData_; result.subfolder_ = subfolder_; @@ -525,39 +485,38 @@ public com.google.cloud.iot.v1.SendCommandToDeviceRequest buildPartial() { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.iot.v1.SendCommandToDeviceRequest) { - return mergeFrom((com.google.cloud.iot.v1.SendCommandToDeviceRequest) other); + return mergeFrom((com.google.cloud.iot.v1.SendCommandToDeviceRequest)other); } else { super.mergeFrom(other); return this; @@ -565,8 +524,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.iot.v1.SendCommandToDeviceRequest other) { - if (other == com.google.cloud.iot.v1.SendCommandToDeviceRequest.getDefaultInstance()) - return this; + if (other == com.google.cloud.iot.v1.SendCommandToDeviceRequest.getDefaultInstance()) return this; if (!other.getName().isEmpty()) { name_ = other.name_; onChanged(); @@ -597,8 +555,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.iot.v1.SendCommandToDeviceRequest) e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.iot.v1.SendCommandToDeviceRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -610,24 +567,20 @@ public Builder mergeFrom( private java.lang.Object name_ = ""; /** - * - * *
      * Required. The name of the device. For example,
      * `projects/p0/locations/us-central1/registries/registry0/devices/device0` or
      * `projects/p0/locations/us-central1/registries/registry0/devices/{num_id}`.
      * 
* - * - * string name = 1 [(.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; @@ -636,25 +589,22 @@ public java.lang.String getName() { } } /** - * - * *
      * Required. The name of the device. For example,
      * `projects/p0/locations/us-central1/registries/registry0/devices/device0` or
      * `projects/p0/locations/us-central1/registries/registry0/devices/{num_id}`.
      * 
* - * - * string name = 1 [(.google.api.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 { @@ -662,73 +612,60 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
      * Required. The name of the device. For example,
      * `projects/p0/locations/us-central1/registries/registry0/devices/device0` or
      * `projects/p0/locations/us-central1/registries/registry0/devices/{num_id}`.
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The name to set. * @return This builder for chaining. */ - public Builder setName(java.lang.String value) { + public Builder setName( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + name_ = value; onChanged(); return this; } /** - * - * *
      * Required. The name of the device. For example,
      * `projects/p0/locations/us-central1/registries/registry0/devices/device0` or
      * `projects/p0/locations/us-central1/registries/registry0/devices/{num_id}`.
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return This builder for chaining. */ public Builder clearName() { - + name_ = getDefaultInstance().getName(); onChanged(); return this; } /** - * - * *
      * Required. The name of the device. For example,
      * `projects/p0/locations/us-central1/registries/registry0/devices/device0` or
      * `projects/p0/locations/us-central1/registries/registry0/devices/{num_id}`.
      * 
* - * - * 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; @@ -736,14 +673,11 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { private com.google.protobuf.ByteString binaryData_ = com.google.protobuf.ByteString.EMPTY; /** - * - * *
      * Required. The command data to send to the device.
      * 
* * bytes binary_data = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The binaryData. */ @java.lang.Override @@ -751,39 +685,33 @@ public com.google.protobuf.ByteString getBinaryData() { return binaryData_; } /** - * - * *
      * Required. The command data to send to the device.
      * 
* * bytes binary_data = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The binaryData to set. * @return This builder for chaining. */ public Builder setBinaryData(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + binaryData_ = value; onChanged(); return this; } /** - * - * *
      * Required. The command data to send to the device.
      * 
* * bytes binary_data = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return This builder for chaining. */ public Builder clearBinaryData() { - + binaryData_ = getDefaultInstance().getBinaryData(); onChanged(); return this; @@ -791,8 +719,6 @@ public Builder clearBinaryData() { private java.lang.Object subfolder_ = ""; /** - * - * *
      * Optional subfolder for the command. If empty, the command will be delivered
      * to the /devices/{device-id}/commands topic, otherwise it will be delivered
@@ -802,13 +728,13 @@ public Builder clearBinaryData() {
      * 
* * string subfolder = 3; - * * @return The subfolder. */ public java.lang.String getSubfolder() { java.lang.Object ref = subfolder_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); subfolder_ = s; return s; @@ -817,8 +743,6 @@ public java.lang.String getSubfolder() { } } /** - * - * *
      * Optional subfolder for the command. If empty, the command will be delivered
      * to the /devices/{device-id}/commands topic, otherwise it will be delivered
@@ -828,14 +752,15 @@ public java.lang.String getSubfolder() {
      * 
* * string subfolder = 3; - * * @return The bytes for subfolder. */ - public com.google.protobuf.ByteString getSubfolderBytes() { + public com.google.protobuf.ByteString + getSubfolderBytes() { java.lang.Object ref = subfolder_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); subfolder_ = b; return b; } else { @@ -843,8 +768,6 @@ public com.google.protobuf.ByteString getSubfolderBytes() { } } /** - * - * *
      * Optional subfolder for the command. If empty, the command will be delivered
      * to the /devices/{device-id}/commands topic, otherwise it will be delivered
@@ -854,22 +777,20 @@ public com.google.protobuf.ByteString getSubfolderBytes() {
      * 
* * string subfolder = 3; - * * @param value The subfolder to set. * @return This builder for chaining. */ - public Builder setSubfolder(java.lang.String value) { + public Builder setSubfolder( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + subfolder_ = value; onChanged(); return this; } /** - * - * *
      * Optional subfolder for the command. If empty, the command will be delivered
      * to the /devices/{device-id}/commands topic, otherwise it will be delivered
@@ -879,18 +800,15 @@ public Builder setSubfolder(java.lang.String value) {
      * 
* * string subfolder = 3; - * * @return This builder for chaining. */ public Builder clearSubfolder() { - + subfolder_ = getDefaultInstance().getSubfolder(); onChanged(); return this; } /** - * - * *
      * Optional subfolder for the command. If empty, the command will be delivered
      * to the /devices/{device-id}/commands topic, otherwise it will be delivered
@@ -900,23 +818,23 @@ public Builder clearSubfolder() {
      * 
* * string subfolder = 3; - * * @param value The bytes for subfolder to set. * @return This builder for chaining. */ - public Builder setSubfolderBytes(com.google.protobuf.ByteString value) { + public Builder setSubfolderBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + subfolder_ = value; onChanged(); return this; } - @java.lang.Override - 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 +844,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.iot.v1.SendCommandToDeviceRequest) } // @@protoc_insertion_point(class_scope:google.cloud.iot.v1.SendCommandToDeviceRequest) private static final com.google.cloud.iot.v1.SendCommandToDeviceRequest DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.iot.v1.SendCommandToDeviceRequest(); } @@ -940,16 +858,16 @@ public static com.google.cloud.iot.v1.SendCommandToDeviceRequest getDefaultInsta return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public SendCommandToDeviceRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new SendCommandToDeviceRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public SendCommandToDeviceRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new SendCommandToDeviceRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -964,4 +882,6 @@ public com.google.protobuf.Parser getParserForType() public com.google.cloud.iot.v1.SendCommandToDeviceRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-iot-v1/src/main/java/com/google/cloud/iot/v1/SendCommandToDeviceRequestOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-iot-v1/src/main/java/com/google/cloud/iot/v1/SendCommandToDeviceRequestOrBuilder.java similarity index 66% rename from proto-google-cloud-iot-v1/src/main/java/com/google/cloud/iot/v1/SendCommandToDeviceRequestOrBuilder.java rename to owl-bot-staging/v1/proto-google-cloud-iot-v1/src/main/java/com/google/cloud/iot/v1/SendCommandToDeviceRequestOrBuilder.java index a801f4f1..d9efcc4d 100644 --- a/proto-google-cloud-iot-v1/src/main/java/com/google/cloud/iot/v1/SendCommandToDeviceRequestOrBuilder.java +++ b/owl-bot-staging/v1/proto-google-cloud-iot-v1/src/main/java/com/google/cloud/iot/v1/SendCommandToDeviceRequestOrBuilder.java @@ -1,77 +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/iot/v1/device_manager.proto package com.google.cloud.iot.v1; -public interface SendCommandToDeviceRequestOrBuilder - extends +public interface SendCommandToDeviceRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.iot.v1.SendCommandToDeviceRequest) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Required. The name of the device. For example,
    * `projects/p0/locations/us-central1/registries/registry0/devices/device0` or
    * `projects/p0/locations/us-central1/registries/registry0/devices/{num_id}`.
    * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The name. */ java.lang.String getName(); /** - * - * *
    * Required. The name of the device. For example,
    * `projects/p0/locations/us-central1/registries/registry0/devices/device0` or
    * `projects/p0/locations/us-central1/registries/registry0/devices/{num_id}`.
    * 
* - * - * string name = 1 [(.google.api.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. The command data to send to the device.
    * 
* * bytes binary_data = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The binaryData. */ com.google.protobuf.ByteString getBinaryData(); /** - * - * *
    * Optional subfolder for the command. If empty, the command will be delivered
    * to the /devices/{device-id}/commands topic, otherwise it will be delivered
@@ -81,13 +51,10 @@ public interface SendCommandToDeviceRequestOrBuilder
    * 
* * string subfolder = 3; - * * @return The subfolder. */ java.lang.String getSubfolder(); /** - * - * *
    * Optional subfolder for the command. If empty, the command will be delivered
    * to the /devices/{device-id}/commands topic, otherwise it will be delivered
@@ -97,8 +64,8 @@ public interface SendCommandToDeviceRequestOrBuilder
    * 
* * string subfolder = 3; - * * @return The bytes for subfolder. */ - com.google.protobuf.ByteString getSubfolderBytes(); + com.google.protobuf.ByteString + getSubfolderBytes(); } diff --git a/proto-google-cloud-iot-v1/src/main/java/com/google/cloud/iot/v1/SendCommandToDeviceResponse.java b/owl-bot-staging/v1/proto-google-cloud-iot-v1/src/main/java/com/google/cloud/iot/v1/SendCommandToDeviceResponse.java similarity index 65% rename from proto-google-cloud-iot-v1/src/main/java/com/google/cloud/iot/v1/SendCommandToDeviceResponse.java rename to owl-bot-staging/v1/proto-google-cloud-iot-v1/src/main/java/com/google/cloud/iot/v1/SendCommandToDeviceResponse.java index 093d5701..1c551a7e 100644 --- a/proto-google-cloud-iot-v1/src/main/java/com/google/cloud/iot/v1/SendCommandToDeviceResponse.java +++ b/owl-bot-staging/v1/proto-google-cloud-iot-v1/src/main/java/com/google/cloud/iot/v1/SendCommandToDeviceResponse.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/iot/v1/device_manager.proto package com.google.cloud.iot.v1; /** - * - * *
  * Response for `SendCommandToDevice`.
  * 
* * Protobuf type {@code google.cloud.iot.v1.SendCommandToDeviceResponse} */ -public final class SendCommandToDeviceResponse extends com.google.protobuf.GeneratedMessageV3 - implements +public final class SendCommandToDeviceResponse extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.iot.v1.SendCommandToDeviceResponse) SendCommandToDeviceResponseOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use SendCommandToDeviceResponse.newBuilder() to construct. private SendCommandToDeviceResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - - private SendCommandToDeviceResponse() {} + private SendCommandToDeviceResponse() { + } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new SendCommandToDeviceResponse(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private SendCommandToDeviceResponse( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -68,13 +52,13 @@ private SendCommandToDeviceResponse( 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) { @@ -82,30 +66,27 @@ private SendCommandToDeviceResponse( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.iot.v1.DeviceManagerProto - .internal_static_google_cloud_iot_v1_SendCommandToDeviceResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.iot.v1.DeviceManagerProto.internal_static_google_cloud_iot_v1_SendCommandToDeviceResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.iot.v1.DeviceManagerProto - .internal_static_google_cloud_iot_v1_SendCommandToDeviceResponse_fieldAccessorTable + return com.google.cloud.iot.v1.DeviceManagerProto.internal_static_google_cloud_iot_v1_SendCommandToDeviceResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.iot.v1.SendCommandToDeviceResponse.class, - com.google.cloud.iot.v1.SendCommandToDeviceResponse.Builder.class); + com.google.cloud.iot.v1.SendCommandToDeviceResponse.class, com.google.cloud.iot.v1.SendCommandToDeviceResponse.Builder.class); } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -117,7 +98,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); } @@ -135,13 +117,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.iot.v1.SendCommandToDeviceResponse)) { return super.equals(obj); } - com.google.cloud.iot.v1.SendCommandToDeviceResponse other = - (com.google.cloud.iot.v1.SendCommandToDeviceResponse) obj; + com.google.cloud.iot.v1.SendCommandToDeviceResponse other = (com.google.cloud.iot.v1.SendCommandToDeviceResponse) obj; if (!unknownFields.equals(other.unknownFields)) return false; return true; @@ -160,126 +141,117 @@ public int hashCode() { } public static com.google.cloud.iot.v1.SendCommandToDeviceResponse parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.iot.v1.SendCommandToDeviceResponse parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.iot.v1.SendCommandToDeviceResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.iot.v1.SendCommandToDeviceResponse parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.iot.v1.SendCommandToDeviceResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.iot.v1.SendCommandToDeviceResponse parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.iot.v1.SendCommandToDeviceResponse parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.iot.v1.SendCommandToDeviceResponse parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.iot.v1.SendCommandToDeviceResponse parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.iot.v1.SendCommandToDeviceResponse parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.iot.v1.SendCommandToDeviceResponse parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.iot.v1.SendCommandToDeviceResponse parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.iot.v1.SendCommandToDeviceResponse parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.iot.v1.SendCommandToDeviceResponse parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.iot.v1.SendCommandToDeviceResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected 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 `SendCommandToDevice`.
    * 
* * Protobuf type {@code google.cloud.iot.v1.SendCommandToDeviceResponse} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.iot.v1.SendCommandToDeviceResponse) com.google.cloud.iot.v1.SendCommandToDeviceResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.iot.v1.DeviceManagerProto - .internal_static_google_cloud_iot_v1_SendCommandToDeviceResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.iot.v1.DeviceManagerProto.internal_static_google_cloud_iot_v1_SendCommandToDeviceResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.iot.v1.DeviceManagerProto - .internal_static_google_cloud_iot_v1_SendCommandToDeviceResponse_fieldAccessorTable + return com.google.cloud.iot.v1.DeviceManagerProto.internal_static_google_cloud_iot_v1_SendCommandToDeviceResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.iot.v1.SendCommandToDeviceResponse.class, - com.google.cloud.iot.v1.SendCommandToDeviceResponse.Builder.class); + com.google.cloud.iot.v1.SendCommandToDeviceResponse.class, com.google.cloud.iot.v1.SendCommandToDeviceResponse.Builder.class); } // Construct using com.google.cloud.iot.v1.SendCommandToDeviceResponse.newBuilder() @@ -287,15 +259,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(); @@ -303,9 +276,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.iot.v1.DeviceManagerProto - .internal_static_google_cloud_iot_v1_SendCommandToDeviceResponse_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.iot.v1.DeviceManagerProto.internal_static_google_cloud_iot_v1_SendCommandToDeviceResponse_descriptor; } @java.lang.Override @@ -324,8 +297,7 @@ public com.google.cloud.iot.v1.SendCommandToDeviceResponse build() { @java.lang.Override public com.google.cloud.iot.v1.SendCommandToDeviceResponse buildPartial() { - com.google.cloud.iot.v1.SendCommandToDeviceResponse result = - new com.google.cloud.iot.v1.SendCommandToDeviceResponse(this); + com.google.cloud.iot.v1.SendCommandToDeviceResponse result = new com.google.cloud.iot.v1.SendCommandToDeviceResponse(this); onBuilt(); return result; } @@ -334,39 +306,38 @@ public com.google.cloud.iot.v1.SendCommandToDeviceResponse buildPartial() { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.iot.v1.SendCommandToDeviceResponse) { - return mergeFrom((com.google.cloud.iot.v1.SendCommandToDeviceResponse) other); + return mergeFrom((com.google.cloud.iot.v1.SendCommandToDeviceResponse)other); } else { super.mergeFrom(other); return this; @@ -374,8 +345,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.iot.v1.SendCommandToDeviceResponse other) { - if (other == com.google.cloud.iot.v1.SendCommandToDeviceResponse.getDefaultInstance()) - return this; + if (other == com.google.cloud.iot.v1.SendCommandToDeviceResponse.getDefaultInstance()) return this; this.mergeUnknownFields(other.unknownFields); onChanged(); return this; @@ -395,8 +365,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.iot.v1.SendCommandToDeviceResponse) e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.iot.v1.SendCommandToDeviceResponse) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -405,9 +374,9 @@ public Builder mergeFrom( } return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -417,12 +386,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.iot.v1.SendCommandToDeviceResponse) } // @@protoc_insertion_point(class_scope:google.cloud.iot.v1.SendCommandToDeviceResponse) private static final com.google.cloud.iot.v1.SendCommandToDeviceResponse DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.iot.v1.SendCommandToDeviceResponse(); } @@ -431,16 +400,16 @@ public static com.google.cloud.iot.v1.SendCommandToDeviceResponse getDefaultInst return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public SendCommandToDeviceResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new SendCommandToDeviceResponse(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public SendCommandToDeviceResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new SendCommandToDeviceResponse(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -455,4 +424,6 @@ public com.google.protobuf.Parser getParserForType( public com.google.cloud.iot.v1.SendCommandToDeviceResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/owl-bot-staging/v1/proto-google-cloud-iot-v1/src/main/java/com/google/cloud/iot/v1/SendCommandToDeviceResponseOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-iot-v1/src/main/java/com/google/cloud/iot/v1/SendCommandToDeviceResponseOrBuilder.java new file mode 100644 index 00000000..ef85ec03 --- /dev/null +++ b/owl-bot-staging/v1/proto-google-cloud-iot-v1/src/main/java/com/google/cloud/iot/v1/SendCommandToDeviceResponseOrBuilder.java @@ -0,0 +1,9 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/iot/v1/device_manager.proto + +package com.google.cloud.iot.v1; + +public interface SendCommandToDeviceResponseOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.cloud.iot.v1.SendCommandToDeviceResponse) + com.google.protobuf.MessageOrBuilder { +} diff --git a/proto-google-cloud-iot-v1/src/main/java/com/google/cloud/iot/v1/StateNotificationConfig.java b/owl-bot-staging/v1/proto-google-cloud-iot-v1/src/main/java/com/google/cloud/iot/v1/StateNotificationConfig.java similarity index 69% rename from proto-google-cloud-iot-v1/src/main/java/com/google/cloud/iot/v1/StateNotificationConfig.java rename to owl-bot-staging/v1/proto-google-cloud-iot-v1/src/main/java/com/google/cloud/iot/v1/StateNotificationConfig.java index e6defab5..1a8d2692 100644 --- a/proto-google-cloud-iot-v1/src/main/java/com/google/cloud/iot/v1/StateNotificationConfig.java +++ b/owl-bot-staging/v1/proto-google-cloud-iot-v1/src/main/java/com/google/cloud/iot/v1/StateNotificationConfig.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/iot/v1/resources.proto package com.google.cloud.iot.v1; /** - * - * *
  * The configuration for notification of new states received from the device.
  * 
* * Protobuf type {@code google.cloud.iot.v1.StateNotificationConfig} */ -public final class StateNotificationConfig extends com.google.protobuf.GeneratedMessageV3 - implements +public final class StateNotificationConfig extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.iot.v1.StateNotificationConfig) StateNotificationConfigOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use StateNotificationConfig.newBuilder() to construct. private StateNotificationConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private StateNotificationConfig() { pubsubTopicName_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new StateNotificationConfig(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private StateNotificationConfig( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -70,20 +53,19 @@ private StateNotificationConfig( case 0: done = true; break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); + case 10: { + java.lang.String s = input.readStringRequireUtf8(); - pubsubTopicName_ = s; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + pubsubTopicName_ = s; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -91,40 +73,35 @@ private StateNotificationConfig( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.iot.v1.ResourcesProto - .internal_static_google_cloud_iot_v1_StateNotificationConfig_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.iot.v1.ResourcesProto.internal_static_google_cloud_iot_v1_StateNotificationConfig_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.iot.v1.ResourcesProto - .internal_static_google_cloud_iot_v1_StateNotificationConfig_fieldAccessorTable + return com.google.cloud.iot.v1.ResourcesProto.internal_static_google_cloud_iot_v1_StateNotificationConfig_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.iot.v1.StateNotificationConfig.class, - com.google.cloud.iot.v1.StateNotificationConfig.Builder.class); + com.google.cloud.iot.v1.StateNotificationConfig.class, com.google.cloud.iot.v1.StateNotificationConfig.Builder.class); } public static final int PUBSUB_TOPIC_NAME_FIELD_NUMBER = 1; private volatile java.lang.Object pubsubTopicName_; /** - * - * *
    * A Cloud Pub/Sub topic name. For example,
    * `projects/myProject/topics/deviceEvents`.
    * 
* * string pubsub_topic_name = 1; - * * @return The pubsubTopicName. */ @java.lang.Override @@ -133,30 +110,30 @@ public java.lang.String getPubsubTopicName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); pubsubTopicName_ = s; return s; } } /** - * - * *
    * A Cloud Pub/Sub topic name. For example,
    * `projects/myProject/topics/deviceEvents`.
    * 
* * string pubsub_topic_name = 1; - * * @return The bytes for pubsubTopicName. */ @java.lang.Override - public com.google.protobuf.ByteString getPubsubTopicNameBytes() { + public com.google.protobuf.ByteString + getPubsubTopicNameBytes() { java.lang.Object ref = pubsubTopicName_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); pubsubTopicName_ = b; return b; } else { @@ -165,7 +142,6 @@ public com.google.protobuf.ByteString getPubsubTopicNameBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -177,7 +153,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pubsubTopicName_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, pubsubTopicName_); } @@ -201,15 +178,15 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.iot.v1.StateNotificationConfig)) { return super.equals(obj); } - com.google.cloud.iot.v1.StateNotificationConfig other = - (com.google.cloud.iot.v1.StateNotificationConfig) obj; + com.google.cloud.iot.v1.StateNotificationConfig other = (com.google.cloud.iot.v1.StateNotificationConfig) obj; - if (!getPubsubTopicName().equals(other.getPubsubTopicName())) return false; + if (!getPubsubTopicName() + .equals(other.getPubsubTopicName())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -228,127 +205,118 @@ public int hashCode() { return hash; } - public static com.google.cloud.iot.v1.StateNotificationConfig parseFrom(java.nio.ByteBuffer data) + public static com.google.cloud.iot.v1.StateNotificationConfig parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.iot.v1.StateNotificationConfig parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.iot.v1.StateNotificationConfig parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.iot.v1.StateNotificationConfig parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.iot.v1.StateNotificationConfig parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.iot.v1.StateNotificationConfig parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.iot.v1.StateNotificationConfig 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.iot.v1.StateNotificationConfig parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.iot.v1.StateNotificationConfig parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.iot.v1.StateNotificationConfig parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.iot.v1.StateNotificationConfig parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.iot.v1.StateNotificationConfig parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.iot.v1.StateNotificationConfig parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.iot.v1.StateNotificationConfig prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * The configuration for notification of new states received from the device.
    * 
* * Protobuf type {@code google.cloud.iot.v1.StateNotificationConfig} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.iot.v1.StateNotificationConfig) com.google.cloud.iot.v1.StateNotificationConfigOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.iot.v1.ResourcesProto - .internal_static_google_cloud_iot_v1_StateNotificationConfig_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.iot.v1.ResourcesProto.internal_static_google_cloud_iot_v1_StateNotificationConfig_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.iot.v1.ResourcesProto - .internal_static_google_cloud_iot_v1_StateNotificationConfig_fieldAccessorTable + return com.google.cloud.iot.v1.ResourcesProto.internal_static_google_cloud_iot_v1_StateNotificationConfig_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.iot.v1.StateNotificationConfig.class, - com.google.cloud.iot.v1.StateNotificationConfig.Builder.class); + com.google.cloud.iot.v1.StateNotificationConfig.class, com.google.cloud.iot.v1.StateNotificationConfig.Builder.class); } // Construct using com.google.cloud.iot.v1.StateNotificationConfig.newBuilder() @@ -356,15 +324,16 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -374,9 +343,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.iot.v1.ResourcesProto - .internal_static_google_cloud_iot_v1_StateNotificationConfig_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.iot.v1.ResourcesProto.internal_static_google_cloud_iot_v1_StateNotificationConfig_descriptor; } @java.lang.Override @@ -395,8 +364,7 @@ public com.google.cloud.iot.v1.StateNotificationConfig build() { @java.lang.Override public com.google.cloud.iot.v1.StateNotificationConfig buildPartial() { - com.google.cloud.iot.v1.StateNotificationConfig result = - new com.google.cloud.iot.v1.StateNotificationConfig(this); + com.google.cloud.iot.v1.StateNotificationConfig result = new com.google.cloud.iot.v1.StateNotificationConfig(this); result.pubsubTopicName_ = pubsubTopicName_; onBuilt(); return result; @@ -406,39 +374,38 @@ public com.google.cloud.iot.v1.StateNotificationConfig buildPartial() { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.iot.v1.StateNotificationConfig) { - return mergeFrom((com.google.cloud.iot.v1.StateNotificationConfig) other); + return mergeFrom((com.google.cloud.iot.v1.StateNotificationConfig)other); } else { super.mergeFrom(other); return this; @@ -446,8 +413,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.iot.v1.StateNotificationConfig other) { - if (other == com.google.cloud.iot.v1.StateNotificationConfig.getDefaultInstance()) - return this; + if (other == com.google.cloud.iot.v1.StateNotificationConfig.getDefaultInstance()) return this; if (!other.getPubsubTopicName().isEmpty()) { pubsubTopicName_ = other.pubsubTopicName_; onChanged(); @@ -483,21 +449,19 @@ public Builder mergeFrom( private java.lang.Object pubsubTopicName_ = ""; /** - * - * *
      * A Cloud Pub/Sub topic name. For example,
      * `projects/myProject/topics/deviceEvents`.
      * 
* * string pubsub_topic_name = 1; - * * @return The pubsubTopicName. */ public java.lang.String getPubsubTopicName() { java.lang.Object ref = pubsubTopicName_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); pubsubTopicName_ = s; return s; @@ -506,22 +470,21 @@ public java.lang.String getPubsubTopicName() { } } /** - * - * *
      * A Cloud Pub/Sub topic name. For example,
      * `projects/myProject/topics/deviceEvents`.
      * 
* * string pubsub_topic_name = 1; - * * @return The bytes for pubsubTopicName. */ - public com.google.protobuf.ByteString getPubsubTopicNameBytes() { + public com.google.protobuf.ByteString + getPubsubTopicNameBytes() { java.lang.Object ref = pubsubTopicName_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); pubsubTopicName_ = b; return b; } else { @@ -529,71 +492,64 @@ public com.google.protobuf.ByteString getPubsubTopicNameBytes() { } } /** - * - * *
      * A Cloud Pub/Sub topic name. For example,
      * `projects/myProject/topics/deviceEvents`.
      * 
* * string pubsub_topic_name = 1; - * * @param value The pubsubTopicName to set. * @return This builder for chaining. */ - public Builder setPubsubTopicName(java.lang.String value) { + public Builder setPubsubTopicName( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + pubsubTopicName_ = value; onChanged(); return this; } /** - * - * *
      * A Cloud Pub/Sub topic name. For example,
      * `projects/myProject/topics/deviceEvents`.
      * 
* * string pubsub_topic_name = 1; - * * @return This builder for chaining. */ public Builder clearPubsubTopicName() { - + pubsubTopicName_ = getDefaultInstance().getPubsubTopicName(); onChanged(); return this; } /** - * - * *
      * A Cloud Pub/Sub topic name. For example,
      * `projects/myProject/topics/deviceEvents`.
      * 
* * string pubsub_topic_name = 1; - * * @param value The bytes for pubsubTopicName to set. * @return This builder for chaining. */ - public Builder setPubsubTopicNameBytes(com.google.protobuf.ByteString value) { + public Builder setPubsubTopicNameBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + pubsubTopicName_ = value; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -603,12 +559,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.iot.v1.StateNotificationConfig) } // @@protoc_insertion_point(class_scope:google.cloud.iot.v1.StateNotificationConfig) private static final com.google.cloud.iot.v1.StateNotificationConfig DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.iot.v1.StateNotificationConfig(); } @@ -617,16 +573,16 @@ public static com.google.cloud.iot.v1.StateNotificationConfig getDefaultInstance return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public StateNotificationConfig parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new StateNotificationConfig(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public StateNotificationConfig parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new StateNotificationConfig(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -641,4 +597,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.iot.v1.StateNotificationConfig getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-iot-v1/src/main/java/com/google/cloud/iot/v1/StateNotificationConfigOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-iot-v1/src/main/java/com/google/cloud/iot/v1/StateNotificationConfigOrBuilder.java similarity index 50% rename from proto-google-cloud-iot-v1/src/main/java/com/google/cloud/iot/v1/StateNotificationConfigOrBuilder.java rename to owl-bot-staging/v1/proto-google-cloud-iot-v1/src/main/java/com/google/cloud/iot/v1/StateNotificationConfigOrBuilder.java index af4e3e56..3f88b578 100644 --- a/proto-google-cloud-iot-v1/src/main/java/com/google/cloud/iot/v1/StateNotificationConfigOrBuilder.java +++ b/owl-bot-staging/v1/proto-google-cloud-iot-v1/src/main/java/com/google/cloud/iot/v1/StateNotificationConfigOrBuilder.java @@ -1,52 +1,31 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/iot/v1/resources.proto package com.google.cloud.iot.v1; -public interface StateNotificationConfigOrBuilder - extends +public interface StateNotificationConfigOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.iot.v1.StateNotificationConfig) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * A Cloud Pub/Sub topic name. For example,
    * `projects/myProject/topics/deviceEvents`.
    * 
* * string pubsub_topic_name = 1; - * * @return The pubsubTopicName. */ java.lang.String getPubsubTopicName(); /** - * - * *
    * A Cloud Pub/Sub topic name. For example,
    * `projects/myProject/topics/deviceEvents`.
    * 
* * string pubsub_topic_name = 1; - * * @return The bytes for pubsubTopicName. */ - com.google.protobuf.ByteString getPubsubTopicNameBytes(); + com.google.protobuf.ByteString + getPubsubTopicNameBytes(); } diff --git a/proto-google-cloud-iot-v1/src/main/java/com/google/cloud/iot/v1/UnbindDeviceFromGatewayRequest.java b/owl-bot-staging/v1/proto-google-cloud-iot-v1/src/main/java/com/google/cloud/iot/v1/UnbindDeviceFromGatewayRequest.java similarity index 69% rename from proto-google-cloud-iot-v1/src/main/java/com/google/cloud/iot/v1/UnbindDeviceFromGatewayRequest.java rename to owl-bot-staging/v1/proto-google-cloud-iot-v1/src/main/java/com/google/cloud/iot/v1/UnbindDeviceFromGatewayRequest.java index a7ab50fd..d82b3857 100644 --- a/proto-google-cloud-iot-v1/src/main/java/com/google/cloud/iot/v1/UnbindDeviceFromGatewayRequest.java +++ b/owl-bot-staging/v1/proto-google-cloud-iot-v1/src/main/java/com/google/cloud/iot/v1/UnbindDeviceFromGatewayRequest.java @@ -1,43 +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/iot/v1/device_manager.proto package com.google.cloud.iot.v1; /** - * - * *
  * Request for `UnbindDeviceFromGateway`.
  * 
* * Protobuf type {@code google.cloud.iot.v1.UnbindDeviceFromGatewayRequest} */ -public final class UnbindDeviceFromGatewayRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class UnbindDeviceFromGatewayRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.iot.v1.UnbindDeviceFromGatewayRequest) UnbindDeviceFromGatewayRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use UnbindDeviceFromGatewayRequest.newBuilder() to construct. - private UnbindDeviceFromGatewayRequest( - com.google.protobuf.GeneratedMessageV3.Builder builder) { + private UnbindDeviceFromGatewayRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private UnbindDeviceFromGatewayRequest() { parent_ = ""; gatewayId_ = ""; @@ -46,15 +27,16 @@ private UnbindDeviceFromGatewayRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new UnbindDeviceFromGatewayRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private UnbindDeviceFromGatewayRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -73,34 +55,31 @@ private UnbindDeviceFromGatewayRequest( 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(); - gatewayId_ = s; - break; - } - case 26: - { - java.lang.String s = input.readStringRequireUtf8(); + gatewayId_ = s; + break; + } + case 26: { + java.lang.String s = input.readStringRequireUtf8(); - deviceId_ = s; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + deviceId_ = s; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -108,42 +87,35 @@ private UnbindDeviceFromGatewayRequest( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.iot.v1.DeviceManagerProto - .internal_static_google_cloud_iot_v1_UnbindDeviceFromGatewayRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.iot.v1.DeviceManagerProto.internal_static_google_cloud_iot_v1_UnbindDeviceFromGatewayRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.iot.v1.DeviceManagerProto - .internal_static_google_cloud_iot_v1_UnbindDeviceFromGatewayRequest_fieldAccessorTable + return com.google.cloud.iot.v1.DeviceManagerProto.internal_static_google_cloud_iot_v1_UnbindDeviceFromGatewayRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.iot.v1.UnbindDeviceFromGatewayRequest.class, - com.google.cloud.iot.v1.UnbindDeviceFromGatewayRequest.Builder.class); + com.google.cloud.iot.v1.UnbindDeviceFromGatewayRequest.class, com.google.cloud.iot.v1.UnbindDeviceFromGatewayRequest.Builder.class); } public static final int PARENT_FIELD_NUMBER = 1; private volatile java.lang.Object parent_; /** - * - * *
    * Required. The name of the registry. For example,
    * `projects/example-project/locations/us-central1/registries/my-registry`.
    * 
* - * - * string parent = 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 @@ -152,32 +124,30 @@ public java.lang.String getParent() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; } } /** - * - * *
    * Required. The name of the registry. For example,
    * `projects/example-project/locations/us-central1/registries/my-registry`.
    * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for parent. */ @java.lang.Override - public com.google.protobuf.ByteString getParentBytes() { + public com.google.protobuf.ByteString + getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); parent_ = b; return b; } else { @@ -188,15 +158,12 @@ public com.google.protobuf.ByteString getParentBytes() { public static final int GATEWAY_ID_FIELD_NUMBER = 2; private volatile java.lang.Object gatewayId_; /** - * - * *
    * Required. The value of `gateway_id` can be either the device numeric ID or the
    * user-defined device identifier.
    * 
* * string gateway_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The gatewayId. */ @java.lang.Override @@ -205,30 +172,30 @@ public java.lang.String getGatewayId() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); gatewayId_ = s; return s; } } /** - * - * *
    * Required. The value of `gateway_id` can be either the device numeric ID or the
    * user-defined device identifier.
    * 
* * string gateway_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for gatewayId. */ @java.lang.Override - public com.google.protobuf.ByteString getGatewayIdBytes() { + public com.google.protobuf.ByteString + getGatewayIdBytes() { java.lang.Object ref = gatewayId_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); gatewayId_ = b; return b; } else { @@ -239,8 +206,6 @@ public com.google.protobuf.ByteString getGatewayIdBytes() { public static final int DEVICE_ID_FIELD_NUMBER = 3; private volatile java.lang.Object deviceId_; /** - * - * *
    * Required. The device to disassociate from the specified gateway. The value of
    * `device_id` can be either the device numeric ID or the user-defined device
@@ -248,7 +213,6 @@ public com.google.protobuf.ByteString getGatewayIdBytes() {
    * 
* * string device_id = 3 [(.google.api.field_behavior) = REQUIRED]; - * * @return The deviceId. */ @java.lang.Override @@ -257,15 +221,14 @@ public java.lang.String getDeviceId() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); deviceId_ = s; return s; } } /** - * - * *
    * Required. The device to disassociate from the specified gateway. The value of
    * `device_id` can be either the device numeric ID or the user-defined device
@@ -273,15 +236,16 @@ public java.lang.String getDeviceId() {
    * 
* * string device_id = 3 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for deviceId. */ @java.lang.Override - public com.google.protobuf.ByteString getDeviceIdBytes() { + public com.google.protobuf.ByteString + getDeviceIdBytes() { java.lang.Object ref = deviceId_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); deviceId_ = b; return b; } else { @@ -290,7 +254,6 @@ public com.google.protobuf.ByteString getDeviceIdBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -302,7 +265,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_); } @@ -338,17 +302,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.iot.v1.UnbindDeviceFromGatewayRequest)) { return super.equals(obj); } - com.google.cloud.iot.v1.UnbindDeviceFromGatewayRequest other = - (com.google.cloud.iot.v1.UnbindDeviceFromGatewayRequest) obj; + com.google.cloud.iot.v1.UnbindDeviceFromGatewayRequest other = (com.google.cloud.iot.v1.UnbindDeviceFromGatewayRequest) obj; - if (!getParent().equals(other.getParent())) return false; - if (!getGatewayId().equals(other.getGatewayId())) return false; - if (!getDeviceId().equals(other.getDeviceId())) return false; + if (!getParent() + .equals(other.getParent())) return false; + if (!getGatewayId() + .equals(other.getGatewayId())) return false; + if (!getDeviceId() + .equals(other.getDeviceId())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -372,127 +338,117 @@ public int hashCode() { } public static com.google.cloud.iot.v1.UnbindDeviceFromGatewayRequest parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.iot.v1.UnbindDeviceFromGatewayRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.iot.v1.UnbindDeviceFromGatewayRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.iot.v1.UnbindDeviceFromGatewayRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.iot.v1.UnbindDeviceFromGatewayRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.iot.v1.UnbindDeviceFromGatewayRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.iot.v1.UnbindDeviceFromGatewayRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.iot.v1.UnbindDeviceFromGatewayRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.iot.v1.UnbindDeviceFromGatewayRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.iot.v1.UnbindDeviceFromGatewayRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.iot.v1.UnbindDeviceFromGatewayRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.iot.v1.UnbindDeviceFromGatewayRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.iot.v1.UnbindDeviceFromGatewayRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.iot.v1.UnbindDeviceFromGatewayRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.iot.v1.UnbindDeviceFromGatewayRequest prototype) { + public static Builder newBuilder(com.google.cloud.iot.v1.UnbindDeviceFromGatewayRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected 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 `UnbindDeviceFromGateway`.
    * 
* * Protobuf type {@code google.cloud.iot.v1.UnbindDeviceFromGatewayRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.iot.v1.UnbindDeviceFromGatewayRequest) com.google.cloud.iot.v1.UnbindDeviceFromGatewayRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.iot.v1.DeviceManagerProto - .internal_static_google_cloud_iot_v1_UnbindDeviceFromGatewayRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.iot.v1.DeviceManagerProto.internal_static_google_cloud_iot_v1_UnbindDeviceFromGatewayRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.iot.v1.DeviceManagerProto - .internal_static_google_cloud_iot_v1_UnbindDeviceFromGatewayRequest_fieldAccessorTable + return com.google.cloud.iot.v1.DeviceManagerProto.internal_static_google_cloud_iot_v1_UnbindDeviceFromGatewayRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.iot.v1.UnbindDeviceFromGatewayRequest.class, - com.google.cloud.iot.v1.UnbindDeviceFromGatewayRequest.Builder.class); + com.google.cloud.iot.v1.UnbindDeviceFromGatewayRequest.class, com.google.cloud.iot.v1.UnbindDeviceFromGatewayRequest.Builder.class); } // Construct using com.google.cloud.iot.v1.UnbindDeviceFromGatewayRequest.newBuilder() @@ -500,15 +456,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(); @@ -522,9 +479,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.iot.v1.DeviceManagerProto - .internal_static_google_cloud_iot_v1_UnbindDeviceFromGatewayRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.iot.v1.DeviceManagerProto.internal_static_google_cloud_iot_v1_UnbindDeviceFromGatewayRequest_descriptor; } @java.lang.Override @@ -543,8 +500,7 @@ public com.google.cloud.iot.v1.UnbindDeviceFromGatewayRequest build() { @java.lang.Override public com.google.cloud.iot.v1.UnbindDeviceFromGatewayRequest buildPartial() { - com.google.cloud.iot.v1.UnbindDeviceFromGatewayRequest result = - new com.google.cloud.iot.v1.UnbindDeviceFromGatewayRequest(this); + com.google.cloud.iot.v1.UnbindDeviceFromGatewayRequest result = new com.google.cloud.iot.v1.UnbindDeviceFromGatewayRequest(this); result.parent_ = parent_; result.gatewayId_ = gatewayId_; result.deviceId_ = deviceId_; @@ -556,39 +512,38 @@ public com.google.cloud.iot.v1.UnbindDeviceFromGatewayRequest buildPartial() { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.iot.v1.UnbindDeviceFromGatewayRequest) { - return mergeFrom((com.google.cloud.iot.v1.UnbindDeviceFromGatewayRequest) other); + return mergeFrom((com.google.cloud.iot.v1.UnbindDeviceFromGatewayRequest)other); } else { super.mergeFrom(other); return this; @@ -596,8 +551,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.iot.v1.UnbindDeviceFromGatewayRequest other) { - if (other == com.google.cloud.iot.v1.UnbindDeviceFromGatewayRequest.getDefaultInstance()) - return this; + if (other == com.google.cloud.iot.v1.UnbindDeviceFromGatewayRequest.getDefaultInstance()) return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; onChanged(); @@ -629,8 +583,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.iot.v1.UnbindDeviceFromGatewayRequest) e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.iot.v1.UnbindDeviceFromGatewayRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -642,23 +595,19 @@ public Builder mergeFrom( private java.lang.Object parent_ = ""; /** - * - * *
      * Required. The name of the registry. For example,
      * `projects/example-project/locations/us-central1/registries/my-registry`.
      * 
* - * - * string parent = 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; @@ -667,24 +616,21 @@ public java.lang.String getParent() { } } /** - * - * *
      * Required. The name of the registry. For example,
      * `projects/example-project/locations/us-central1/registries/my-registry`.
      * 
* - * - * string parent = 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 { @@ -692,70 +638,57 @@ public com.google.protobuf.ByteString getParentBytes() { } } /** - * - * *
      * Required. The name of the registry. For example,
      * `projects/example-project/locations/us-central1/registries/my-registry`.
      * 
* - * - * 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 name of the registry. For example,
      * `projects/example-project/locations/us-central1/registries/my-registry`.
      * 
* - * - * string 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 name of the registry. For example,
      * `projects/example-project/locations/us-central1/registries/my-registry`.
      * 
* - * - * 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; @@ -763,21 +696,19 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { private java.lang.Object gatewayId_ = ""; /** - * - * *
      * Required. The value of `gateway_id` can be either the device numeric ID or the
      * user-defined device identifier.
      * 
* * string gateway_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The gatewayId. */ public java.lang.String getGatewayId() { java.lang.Object ref = gatewayId_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); gatewayId_ = s; return s; @@ -786,22 +717,21 @@ public java.lang.String getGatewayId() { } } /** - * - * *
      * Required. The value of `gateway_id` can be either the device numeric ID or the
      * user-defined device identifier.
      * 
* * string gateway_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for gatewayId. */ - public com.google.protobuf.ByteString getGatewayIdBytes() { + public com.google.protobuf.ByteString + getGatewayIdBytes() { java.lang.Object ref = gatewayId_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); gatewayId_ = b; return b; } else { @@ -809,64 +739,57 @@ public com.google.protobuf.ByteString getGatewayIdBytes() { } } /** - * - * *
      * Required. The value of `gateway_id` can be either the device numeric ID or the
      * user-defined device identifier.
      * 
* * string gateway_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The gatewayId to set. * @return This builder for chaining. */ - public Builder setGatewayId(java.lang.String value) { + public Builder setGatewayId( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + gatewayId_ = value; onChanged(); return this; } /** - * - * *
      * Required. The value of `gateway_id` can be either the device numeric ID or the
      * user-defined device identifier.
      * 
* * string gateway_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return This builder for chaining. */ public Builder clearGatewayId() { - + gatewayId_ = getDefaultInstance().getGatewayId(); onChanged(); return this; } /** - * - * *
      * Required. The value of `gateway_id` can be either the device numeric ID or the
      * user-defined device identifier.
      * 
* * string gateway_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The bytes for gatewayId to set. * @return This builder for chaining. */ - public Builder setGatewayIdBytes(com.google.protobuf.ByteString value) { + public Builder setGatewayIdBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + gatewayId_ = value; onChanged(); return this; @@ -874,8 +797,6 @@ public Builder setGatewayIdBytes(com.google.protobuf.ByteString value) { private java.lang.Object deviceId_ = ""; /** - * - * *
      * Required. The device to disassociate from the specified gateway. The value of
      * `device_id` can be either the device numeric ID or the user-defined device
@@ -883,13 +804,13 @@ public Builder setGatewayIdBytes(com.google.protobuf.ByteString value) {
      * 
* * string device_id = 3 [(.google.api.field_behavior) = REQUIRED]; - * * @return The deviceId. */ public java.lang.String getDeviceId() { java.lang.Object ref = deviceId_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); deviceId_ = s; return s; @@ -898,8 +819,6 @@ public java.lang.String getDeviceId() { } } /** - * - * *
      * Required. The device to disassociate from the specified gateway. The value of
      * `device_id` can be either the device numeric ID or the user-defined device
@@ -907,14 +826,15 @@ public java.lang.String getDeviceId() {
      * 
* * string device_id = 3 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for deviceId. */ - public com.google.protobuf.ByteString getDeviceIdBytes() { + public com.google.protobuf.ByteString + getDeviceIdBytes() { java.lang.Object ref = deviceId_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); deviceId_ = b; return b; } else { @@ -922,8 +842,6 @@ public com.google.protobuf.ByteString getDeviceIdBytes() { } } /** - * - * *
      * Required. The device to disassociate from the specified gateway. The value of
      * `device_id` can be either the device numeric ID or the user-defined device
@@ -931,22 +849,20 @@ public com.google.protobuf.ByteString getDeviceIdBytes() {
      * 
* * string device_id = 3 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The deviceId to set. * @return This builder for chaining. */ - public Builder setDeviceId(java.lang.String value) { + public Builder setDeviceId( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + deviceId_ = value; onChanged(); return this; } /** - * - * *
      * Required. The device to disassociate from the specified gateway. The value of
      * `device_id` can be either the device numeric ID or the user-defined device
@@ -954,18 +870,15 @@ public Builder setDeviceId(java.lang.String value) {
      * 
* * string device_id = 3 [(.google.api.field_behavior) = REQUIRED]; - * * @return This builder for chaining. */ public Builder clearDeviceId() { - + deviceId_ = getDefaultInstance().getDeviceId(); onChanged(); return this; } /** - * - * *
      * Required. The device to disassociate from the specified gateway. The value of
      * `device_id` can be either the device numeric ID or the user-defined device
@@ -973,23 +886,23 @@ public Builder clearDeviceId() {
      * 
* * string device_id = 3 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The bytes for deviceId to set. * @return This builder for chaining. */ - public Builder setDeviceIdBytes(com.google.protobuf.ByteString value) { + public Builder setDeviceIdBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + deviceId_ = value; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -999,12 +912,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.iot.v1.UnbindDeviceFromGatewayRequest) } // @@protoc_insertion_point(class_scope:google.cloud.iot.v1.UnbindDeviceFromGatewayRequest) private static final com.google.cloud.iot.v1.UnbindDeviceFromGatewayRequest DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.iot.v1.UnbindDeviceFromGatewayRequest(); } @@ -1013,16 +926,16 @@ public static com.google.cloud.iot.v1.UnbindDeviceFromGatewayRequest getDefaultI return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public UnbindDeviceFromGatewayRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new UnbindDeviceFromGatewayRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public UnbindDeviceFromGatewayRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new UnbindDeviceFromGatewayRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1037,4 +950,6 @@ public com.google.protobuf.Parser getParserForTy public com.google.cloud.iot.v1.UnbindDeviceFromGatewayRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-iot-v1/src/main/java/com/google/cloud/iot/v1/UnbindDeviceFromGatewayRequestOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-iot-v1/src/main/java/com/google/cloud/iot/v1/UnbindDeviceFromGatewayRequestOrBuilder.java similarity index 63% rename from proto-google-cloud-iot-v1/src/main/java/com/google/cloud/iot/v1/UnbindDeviceFromGatewayRequestOrBuilder.java rename to owl-bot-staging/v1/proto-google-cloud-iot-v1/src/main/java/com/google/cloud/iot/v1/UnbindDeviceFromGatewayRequestOrBuilder.java index db01b831..e955c97b 100644 --- a/proto-google-cloud-iot-v1/src/main/java/com/google/cloud/iot/v1/UnbindDeviceFromGatewayRequestOrBuilder.java +++ b/owl-bot-staging/v1/proto-google-cloud-iot-v1/src/main/java/com/google/cloud/iot/v1/UnbindDeviceFromGatewayRequestOrBuilder.java @@ -1,89 +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/iot/v1/device_manager.proto package com.google.cloud.iot.v1; -public interface UnbindDeviceFromGatewayRequestOrBuilder - extends +public interface UnbindDeviceFromGatewayRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.iot.v1.UnbindDeviceFromGatewayRequest) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Required. The name of the registry. For example,
    * `projects/example-project/locations/us-central1/registries/my-registry`.
    * 
* - * - * string parent = 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 name of the registry. For example,
    * `projects/example-project/locations/us-central1/registries/my-registry`.
    * 
* - * - * string parent = 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 value of `gateway_id` can be either the device numeric ID or the
    * user-defined device identifier.
    * 
* * string gateway_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The gatewayId. */ java.lang.String getGatewayId(); /** - * - * *
    * Required. The value of `gateway_id` can be either the device numeric ID or the
    * user-defined device identifier.
    * 
* * string gateway_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for gatewayId. */ - com.google.protobuf.ByteString getGatewayIdBytes(); + com.google.protobuf.ByteString + getGatewayIdBytes(); /** - * - * *
    * Required. The device to disassociate from the specified gateway. The value of
    * `device_id` can be either the device numeric ID or the user-defined device
@@ -91,13 +59,10 @@ public interface UnbindDeviceFromGatewayRequestOrBuilder
    * 
* * string device_id = 3 [(.google.api.field_behavior) = REQUIRED]; - * * @return The deviceId. */ java.lang.String getDeviceId(); /** - * - * *
    * Required. The device to disassociate from the specified gateway. The value of
    * `device_id` can be either the device numeric ID or the user-defined device
@@ -105,8 +70,8 @@ public interface UnbindDeviceFromGatewayRequestOrBuilder
    * 
* * string device_id = 3 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for deviceId. */ - com.google.protobuf.ByteString getDeviceIdBytes(); + com.google.protobuf.ByteString + getDeviceIdBytes(); } diff --git a/proto-google-cloud-iot-v1/src/main/java/com/google/cloud/iot/v1/UnbindDeviceFromGatewayResponse.java b/owl-bot-staging/v1/proto-google-cloud-iot-v1/src/main/java/com/google/cloud/iot/v1/UnbindDeviceFromGatewayResponse.java similarity index 65% rename from proto-google-cloud-iot-v1/src/main/java/com/google/cloud/iot/v1/UnbindDeviceFromGatewayResponse.java rename to owl-bot-staging/v1/proto-google-cloud-iot-v1/src/main/java/com/google/cloud/iot/v1/UnbindDeviceFromGatewayResponse.java index f8535dc7..4b3581a4 100644 --- a/proto-google-cloud-iot-v1/src/main/java/com/google/cloud/iot/v1/UnbindDeviceFromGatewayResponse.java +++ b/owl-bot-staging/v1/proto-google-cloud-iot-v1/src/main/java/com/google/cloud/iot/v1/UnbindDeviceFromGatewayResponse.java @@ -1,56 +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/iot/v1/device_manager.proto package com.google.cloud.iot.v1; /** - * - * *
  * Response for `UnbindDeviceFromGateway`.
  * 
* * Protobuf type {@code google.cloud.iot.v1.UnbindDeviceFromGatewayResponse} */ -public final class UnbindDeviceFromGatewayResponse extends com.google.protobuf.GeneratedMessageV3 - implements +public final class UnbindDeviceFromGatewayResponse extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.iot.v1.UnbindDeviceFromGatewayResponse) UnbindDeviceFromGatewayResponseOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use UnbindDeviceFromGatewayResponse.newBuilder() to construct. - private UnbindDeviceFromGatewayResponse( - com.google.protobuf.GeneratedMessageV3.Builder builder) { + private UnbindDeviceFromGatewayResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - - private UnbindDeviceFromGatewayResponse() {} + private UnbindDeviceFromGatewayResponse() { + } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new UnbindDeviceFromGatewayResponse(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private UnbindDeviceFromGatewayResponse( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -69,13 +52,13 @@ private UnbindDeviceFromGatewayResponse( case 0: done = true; break; - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -83,30 +66,27 @@ private UnbindDeviceFromGatewayResponse( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.iot.v1.DeviceManagerProto - .internal_static_google_cloud_iot_v1_UnbindDeviceFromGatewayResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.iot.v1.DeviceManagerProto.internal_static_google_cloud_iot_v1_UnbindDeviceFromGatewayResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.iot.v1.DeviceManagerProto - .internal_static_google_cloud_iot_v1_UnbindDeviceFromGatewayResponse_fieldAccessorTable + return com.google.cloud.iot.v1.DeviceManagerProto.internal_static_google_cloud_iot_v1_UnbindDeviceFromGatewayResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.iot.v1.UnbindDeviceFromGatewayResponse.class, - com.google.cloud.iot.v1.UnbindDeviceFromGatewayResponse.Builder.class); + com.google.cloud.iot.v1.UnbindDeviceFromGatewayResponse.class, com.google.cloud.iot.v1.UnbindDeviceFromGatewayResponse.Builder.class); } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -118,7 +98,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { unknownFields.writeTo(output); } @@ -136,13 +117,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.iot.v1.UnbindDeviceFromGatewayResponse)) { return super.equals(obj); } - com.google.cloud.iot.v1.UnbindDeviceFromGatewayResponse other = - (com.google.cloud.iot.v1.UnbindDeviceFromGatewayResponse) obj; + com.google.cloud.iot.v1.UnbindDeviceFromGatewayResponse other = (com.google.cloud.iot.v1.UnbindDeviceFromGatewayResponse) obj; if (!unknownFields.equals(other.unknownFields)) return false; return true; @@ -161,127 +141,117 @@ public int hashCode() { } public static com.google.cloud.iot.v1.UnbindDeviceFromGatewayResponse parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.iot.v1.UnbindDeviceFromGatewayResponse parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.iot.v1.UnbindDeviceFromGatewayResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.iot.v1.UnbindDeviceFromGatewayResponse parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.iot.v1.UnbindDeviceFromGatewayResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.iot.v1.UnbindDeviceFromGatewayResponse parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.iot.v1.UnbindDeviceFromGatewayResponse parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.iot.v1.UnbindDeviceFromGatewayResponse parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.iot.v1.UnbindDeviceFromGatewayResponse parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.iot.v1.UnbindDeviceFromGatewayResponse parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.iot.v1.UnbindDeviceFromGatewayResponse parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.iot.v1.UnbindDeviceFromGatewayResponse parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.iot.v1.UnbindDeviceFromGatewayResponse parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.iot.v1.UnbindDeviceFromGatewayResponse parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.iot.v1.UnbindDeviceFromGatewayResponse prototype) { + public static Builder newBuilder(com.google.cloud.iot.v1.UnbindDeviceFromGatewayResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected 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 `UnbindDeviceFromGateway`.
    * 
* * Protobuf type {@code google.cloud.iot.v1.UnbindDeviceFromGatewayResponse} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.iot.v1.UnbindDeviceFromGatewayResponse) com.google.cloud.iot.v1.UnbindDeviceFromGatewayResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.iot.v1.DeviceManagerProto - .internal_static_google_cloud_iot_v1_UnbindDeviceFromGatewayResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.iot.v1.DeviceManagerProto.internal_static_google_cloud_iot_v1_UnbindDeviceFromGatewayResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.iot.v1.DeviceManagerProto - .internal_static_google_cloud_iot_v1_UnbindDeviceFromGatewayResponse_fieldAccessorTable + return com.google.cloud.iot.v1.DeviceManagerProto.internal_static_google_cloud_iot_v1_UnbindDeviceFromGatewayResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.iot.v1.UnbindDeviceFromGatewayResponse.class, - com.google.cloud.iot.v1.UnbindDeviceFromGatewayResponse.Builder.class); + com.google.cloud.iot.v1.UnbindDeviceFromGatewayResponse.class, com.google.cloud.iot.v1.UnbindDeviceFromGatewayResponse.Builder.class); } // Construct using com.google.cloud.iot.v1.UnbindDeviceFromGatewayResponse.newBuilder() @@ -289,15 +259,16 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -305,9 +276,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.iot.v1.DeviceManagerProto - .internal_static_google_cloud_iot_v1_UnbindDeviceFromGatewayResponse_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.iot.v1.DeviceManagerProto.internal_static_google_cloud_iot_v1_UnbindDeviceFromGatewayResponse_descriptor; } @java.lang.Override @@ -326,8 +297,7 @@ public com.google.cloud.iot.v1.UnbindDeviceFromGatewayResponse build() { @java.lang.Override public com.google.cloud.iot.v1.UnbindDeviceFromGatewayResponse buildPartial() { - com.google.cloud.iot.v1.UnbindDeviceFromGatewayResponse result = - new com.google.cloud.iot.v1.UnbindDeviceFromGatewayResponse(this); + com.google.cloud.iot.v1.UnbindDeviceFromGatewayResponse result = new com.google.cloud.iot.v1.UnbindDeviceFromGatewayResponse(this); onBuilt(); return result; } @@ -336,39 +306,38 @@ public com.google.cloud.iot.v1.UnbindDeviceFromGatewayResponse buildPartial() { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.iot.v1.UnbindDeviceFromGatewayResponse) { - return mergeFrom((com.google.cloud.iot.v1.UnbindDeviceFromGatewayResponse) other); + return mergeFrom((com.google.cloud.iot.v1.UnbindDeviceFromGatewayResponse)other); } else { super.mergeFrom(other); return this; @@ -376,8 +345,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.iot.v1.UnbindDeviceFromGatewayResponse other) { - if (other == com.google.cloud.iot.v1.UnbindDeviceFromGatewayResponse.getDefaultInstance()) - return this; + if (other == com.google.cloud.iot.v1.UnbindDeviceFromGatewayResponse.getDefaultInstance()) return this; this.mergeUnknownFields(other.unknownFields); onChanged(); return this; @@ -397,8 +365,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.iot.v1.UnbindDeviceFromGatewayResponse) e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.iot.v1.UnbindDeviceFromGatewayResponse) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -407,9 +374,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); } @@ -419,12 +386,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.iot.v1.UnbindDeviceFromGatewayResponse) } // @@protoc_insertion_point(class_scope:google.cloud.iot.v1.UnbindDeviceFromGatewayResponse) private static final com.google.cloud.iot.v1.UnbindDeviceFromGatewayResponse DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.iot.v1.UnbindDeviceFromGatewayResponse(); } @@ -433,16 +400,16 @@ public static com.google.cloud.iot.v1.UnbindDeviceFromGatewayResponse getDefault return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public UnbindDeviceFromGatewayResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new UnbindDeviceFromGatewayResponse(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public UnbindDeviceFromGatewayResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new UnbindDeviceFromGatewayResponse(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -457,4 +424,6 @@ public com.google.protobuf.Parser getParserForT public com.google.cloud.iot.v1.UnbindDeviceFromGatewayResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/owl-bot-staging/v1/proto-google-cloud-iot-v1/src/main/java/com/google/cloud/iot/v1/UnbindDeviceFromGatewayResponseOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-iot-v1/src/main/java/com/google/cloud/iot/v1/UnbindDeviceFromGatewayResponseOrBuilder.java new file mode 100644 index 00000000..ace2c0a1 --- /dev/null +++ b/owl-bot-staging/v1/proto-google-cloud-iot-v1/src/main/java/com/google/cloud/iot/v1/UnbindDeviceFromGatewayResponseOrBuilder.java @@ -0,0 +1,9 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/iot/v1/device_manager.proto + +package com.google.cloud.iot.v1; + +public interface UnbindDeviceFromGatewayResponseOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.cloud.iot.v1.UnbindDeviceFromGatewayResponse) + com.google.protobuf.MessageOrBuilder { +} diff --git a/proto-google-cloud-iot-v1/src/main/java/com/google/cloud/iot/v1/UpdateDeviceRegistryRequest.java b/owl-bot-staging/v1/proto-google-cloud-iot-v1/src/main/java/com/google/cloud/iot/v1/UpdateDeviceRegistryRequest.java similarity index 69% rename from proto-google-cloud-iot-v1/src/main/java/com/google/cloud/iot/v1/UpdateDeviceRegistryRequest.java rename to owl-bot-staging/v1/proto-google-cloud-iot-v1/src/main/java/com/google/cloud/iot/v1/UpdateDeviceRegistryRequest.java index 2621725f..134f4bb2 100644 --- a/proto-google-cloud-iot-v1/src/main/java/com/google/cloud/iot/v1/UpdateDeviceRegistryRequest.java +++ b/owl-bot-staging/v1/proto-google-cloud-iot-v1/src/main/java/com/google/cloud/iot/v1/UpdateDeviceRegistryRequest.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/iot/v1/device_manager.proto package com.google.cloud.iot.v1; /** - * - * *
  * Request for `UpdateDeviceRegistry`.
  * 
* * Protobuf type {@code google.cloud.iot.v1.UpdateDeviceRegistryRequest} */ -public final class UpdateDeviceRegistryRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class UpdateDeviceRegistryRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.iot.v1.UpdateDeviceRegistryRequest) UpdateDeviceRegistryRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use UpdateDeviceRegistryRequest.newBuilder() to construct. private UpdateDeviceRegistryRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - - private UpdateDeviceRegistryRequest() {} + private UpdateDeviceRegistryRequest() { + } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new UpdateDeviceRegistryRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private UpdateDeviceRegistryRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -68,44 +52,39 @@ private UpdateDeviceRegistryRequest( case 0: done = true; break; - case 10: - { - com.google.cloud.iot.v1.DeviceRegistry.Builder subBuilder = null; - if (deviceRegistry_ != null) { - subBuilder = deviceRegistry_.toBuilder(); - } - deviceRegistry_ = - input.readMessage( - com.google.cloud.iot.v1.DeviceRegistry.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(deviceRegistry_); - deviceRegistry_ = subBuilder.buildPartial(); - } - - break; + case 10: { + com.google.cloud.iot.v1.DeviceRegistry.Builder subBuilder = null; + if (deviceRegistry_ != null) { + subBuilder = deviceRegistry_.toBuilder(); + } + deviceRegistry_ = input.readMessage(com.google.cloud.iot.v1.DeviceRegistry.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(deviceRegistry_); + deviceRegistry_ = subBuilder.buildPartial(); } - 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; + break; + } + case 18: { + com.google.protobuf.FieldMask.Builder subBuilder = null; + if (updateMask_ != null) { + subBuilder = updateMask_.toBuilder(); } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + updateMask_ = input.readMessage(com.google.protobuf.FieldMask.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(updateMask_); + updateMask_ = subBuilder.buildPartial(); } + + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -113,43 +92,36 @@ private UpdateDeviceRegistryRequest( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.iot.v1.DeviceManagerProto - .internal_static_google_cloud_iot_v1_UpdateDeviceRegistryRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.iot.v1.DeviceManagerProto.internal_static_google_cloud_iot_v1_UpdateDeviceRegistryRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.iot.v1.DeviceManagerProto - .internal_static_google_cloud_iot_v1_UpdateDeviceRegistryRequest_fieldAccessorTable + return com.google.cloud.iot.v1.DeviceManagerProto.internal_static_google_cloud_iot_v1_UpdateDeviceRegistryRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.iot.v1.UpdateDeviceRegistryRequest.class, - com.google.cloud.iot.v1.UpdateDeviceRegistryRequest.Builder.class); + com.google.cloud.iot.v1.UpdateDeviceRegistryRequest.class, com.google.cloud.iot.v1.UpdateDeviceRegistryRequest.Builder.class); } public static final int DEVICE_REGISTRY_FIELD_NUMBER = 1; private com.google.cloud.iot.v1.DeviceRegistry deviceRegistry_; /** - * - * *
    * Required. The new values for the device registry. The `id` field must be empty, and
    * the `name` field must indicate the path of the resource. For example,
    * `projects/example-project/locations/us-central1/registries/my-registry`.
    * 
* - * - * .google.cloud.iot.v1.DeviceRegistry device_registry = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.iot.v1.DeviceRegistry device_registry = 1 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the deviceRegistry field is set. */ @java.lang.Override @@ -157,38 +129,27 @@ public boolean hasDeviceRegistry() { return deviceRegistry_ != null; } /** - * - * *
    * Required. The new values for the device registry. The `id` field must be empty, and
    * the `name` field must indicate the path of the resource. For example,
    * `projects/example-project/locations/us-central1/registries/my-registry`.
    * 
* - * - * .google.cloud.iot.v1.DeviceRegistry device_registry = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.iot.v1.DeviceRegistry device_registry = 1 [(.google.api.field_behavior) = REQUIRED]; * @return The deviceRegistry. */ @java.lang.Override public com.google.cloud.iot.v1.DeviceRegistry getDeviceRegistry() { - return deviceRegistry_ == null - ? com.google.cloud.iot.v1.DeviceRegistry.getDefaultInstance() - : deviceRegistry_; + return deviceRegistry_ == null ? com.google.cloud.iot.v1.DeviceRegistry.getDefaultInstance() : deviceRegistry_; } /** - * - * *
    * Required. The new values for the device registry. The `id` field must be empty, and
    * the `name` field must indicate the path of the resource. For example,
    * `projects/example-project/locations/us-central1/registries/my-registry`.
    * 
* - * - * .google.cloud.iot.v1.DeviceRegistry device_registry = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.iot.v1.DeviceRegistry device_registry = 1 [(.google.api.field_behavior) = REQUIRED]; */ @java.lang.Override public com.google.cloud.iot.v1.DeviceRegistryOrBuilder getDeviceRegistryOrBuilder() { @@ -198,8 +159,6 @@ public com.google.cloud.iot.v1.DeviceRegistryOrBuilder getDeviceRegistryOrBuilde public static final int UPDATE_MASK_FIELD_NUMBER = 2; private com.google.protobuf.FieldMask updateMask_; /** - * - * *
    * Required. Only updates the `device_registry` fields indicated by this mask.
    * The field mask must not be empty, and it must not contain fields that
@@ -208,9 +167,7 @@ public com.google.cloud.iot.v1.DeviceRegistryOrBuilder getDeviceRegistryOrBuilde
    * `mqtt_config`, and `state_notification_config`.
    * 
* - * .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,8 +175,6 @@ public boolean hasUpdateMask() { return updateMask_ != null; } /** - * - * *
    * Required. Only updates the `device_registry` fields indicated by this mask.
    * The field mask must not be empty, and it must not contain fields that
@@ -228,9 +183,7 @@ public boolean hasUpdateMask() {
    * `mqtt_config`, and `state_notification_config`.
    * 
* - * .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 @@ -238,8 +191,6 @@ public com.google.protobuf.FieldMask getUpdateMask() { return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; } /** - * - * *
    * Required. Only updates the `device_registry` fields indicated by this mask.
    * The field mask must not be empty, and it must not contain fields that
@@ -248,8 +199,7 @@ public com.google.protobuf.FieldMask getUpdateMask() {
    * `mqtt_config`, and `state_notification_config`.
    * 
* - * .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() { @@ -257,7 +207,6 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -269,7 +218,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (deviceRegistry_ != null) { output.writeMessage(1, getDeviceRegistry()); } @@ -286,10 +236,12 @@ public int getSerializedSize() { size = 0; if (deviceRegistry_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getDeviceRegistry()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getDeviceRegistry()); } if (updateMask_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getUpdateMask()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getUpdateMask()); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -299,21 +251,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.iot.v1.UpdateDeviceRegistryRequest)) { return super.equals(obj); } - com.google.cloud.iot.v1.UpdateDeviceRegistryRequest other = - (com.google.cloud.iot.v1.UpdateDeviceRegistryRequest) obj; + com.google.cloud.iot.v1.UpdateDeviceRegistryRequest other = (com.google.cloud.iot.v1.UpdateDeviceRegistryRequest) obj; if (hasDeviceRegistry() != other.hasDeviceRegistry()) return false; if (hasDeviceRegistry()) { - if (!getDeviceRegistry().equals(other.getDeviceRegistry())) return false; + if (!getDeviceRegistry() + .equals(other.getDeviceRegistry())) 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 (!unknownFields.equals(other.unknownFields)) return false; return true; @@ -340,126 +293,117 @@ public int hashCode() { } public static com.google.cloud.iot.v1.UpdateDeviceRegistryRequest parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.iot.v1.UpdateDeviceRegistryRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.iot.v1.UpdateDeviceRegistryRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.iot.v1.UpdateDeviceRegistryRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.iot.v1.UpdateDeviceRegistryRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.iot.v1.UpdateDeviceRegistryRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.iot.v1.UpdateDeviceRegistryRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.iot.v1.UpdateDeviceRegistryRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.iot.v1.UpdateDeviceRegistryRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.iot.v1.UpdateDeviceRegistryRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.iot.v1.UpdateDeviceRegistryRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.iot.v1.UpdateDeviceRegistryRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.iot.v1.UpdateDeviceRegistryRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.iot.v1.UpdateDeviceRegistryRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.iot.v1.UpdateDeviceRegistryRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected 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 `UpdateDeviceRegistry`.
    * 
* * Protobuf type {@code google.cloud.iot.v1.UpdateDeviceRegistryRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.iot.v1.UpdateDeviceRegistryRequest) com.google.cloud.iot.v1.UpdateDeviceRegistryRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.iot.v1.DeviceManagerProto - .internal_static_google_cloud_iot_v1_UpdateDeviceRegistryRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.iot.v1.DeviceManagerProto.internal_static_google_cloud_iot_v1_UpdateDeviceRegistryRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.iot.v1.DeviceManagerProto - .internal_static_google_cloud_iot_v1_UpdateDeviceRegistryRequest_fieldAccessorTable + return com.google.cloud.iot.v1.DeviceManagerProto.internal_static_google_cloud_iot_v1_UpdateDeviceRegistryRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.iot.v1.UpdateDeviceRegistryRequest.class, - com.google.cloud.iot.v1.UpdateDeviceRegistryRequest.Builder.class); + com.google.cloud.iot.v1.UpdateDeviceRegistryRequest.class, com.google.cloud.iot.v1.UpdateDeviceRegistryRequest.Builder.class); } // Construct using com.google.cloud.iot.v1.UpdateDeviceRegistryRequest.newBuilder() @@ -467,15 +411,16 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -495,9 +440,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.iot.v1.DeviceManagerProto - .internal_static_google_cloud_iot_v1_UpdateDeviceRegistryRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.iot.v1.DeviceManagerProto.internal_static_google_cloud_iot_v1_UpdateDeviceRegistryRequest_descriptor; } @java.lang.Override @@ -516,8 +461,7 @@ public com.google.cloud.iot.v1.UpdateDeviceRegistryRequest build() { @java.lang.Override public com.google.cloud.iot.v1.UpdateDeviceRegistryRequest buildPartial() { - com.google.cloud.iot.v1.UpdateDeviceRegistryRequest result = - new com.google.cloud.iot.v1.UpdateDeviceRegistryRequest(this); + com.google.cloud.iot.v1.UpdateDeviceRegistryRequest result = new com.google.cloud.iot.v1.UpdateDeviceRegistryRequest(this); if (deviceRegistryBuilder_ == null) { result.deviceRegistry_ = deviceRegistry_; } else { @@ -536,39 +480,38 @@ public com.google.cloud.iot.v1.UpdateDeviceRegistryRequest buildPartial() { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.iot.v1.UpdateDeviceRegistryRequest) { - return mergeFrom((com.google.cloud.iot.v1.UpdateDeviceRegistryRequest) other); + return mergeFrom((com.google.cloud.iot.v1.UpdateDeviceRegistryRequest)other); } else { super.mergeFrom(other); return this; @@ -576,8 +519,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.iot.v1.UpdateDeviceRegistryRequest other) { - if (other == com.google.cloud.iot.v1.UpdateDeviceRegistryRequest.getDefaultInstance()) - return this; + if (other == com.google.cloud.iot.v1.UpdateDeviceRegistryRequest.getDefaultInstance()) return this; if (other.hasDeviceRegistry()) { mergeDeviceRegistry(other.getDeviceRegistry()); } @@ -603,8 +545,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.iot.v1.UpdateDeviceRegistryRequest) e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.iot.v1.UpdateDeviceRegistryRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -616,64 +557,45 @@ public Builder mergeFrom( private com.google.cloud.iot.v1.DeviceRegistry deviceRegistry_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.iot.v1.DeviceRegistry, - com.google.cloud.iot.v1.DeviceRegistry.Builder, - com.google.cloud.iot.v1.DeviceRegistryOrBuilder> - deviceRegistryBuilder_; + com.google.cloud.iot.v1.DeviceRegistry, com.google.cloud.iot.v1.DeviceRegistry.Builder, com.google.cloud.iot.v1.DeviceRegistryOrBuilder> deviceRegistryBuilder_; /** - * - * *
      * Required. The new values for the device registry. The `id` field must be empty, and
      * the `name` field must indicate the path of the resource. For example,
      * `projects/example-project/locations/us-central1/registries/my-registry`.
      * 
* - * - * .google.cloud.iot.v1.DeviceRegistry device_registry = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.iot.v1.DeviceRegistry device_registry = 1 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the deviceRegistry field is set. */ public boolean hasDeviceRegistry() { return deviceRegistryBuilder_ != null || deviceRegistry_ != null; } /** - * - * *
      * Required. The new values for the device registry. The `id` field must be empty, and
      * the `name` field must indicate the path of the resource. For example,
      * `projects/example-project/locations/us-central1/registries/my-registry`.
      * 
* - * - * .google.cloud.iot.v1.DeviceRegistry device_registry = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.iot.v1.DeviceRegistry device_registry = 1 [(.google.api.field_behavior) = REQUIRED]; * @return The deviceRegistry. */ public com.google.cloud.iot.v1.DeviceRegistry getDeviceRegistry() { if (deviceRegistryBuilder_ == null) { - return deviceRegistry_ == null - ? com.google.cloud.iot.v1.DeviceRegistry.getDefaultInstance() - : deviceRegistry_; + return deviceRegistry_ == null ? com.google.cloud.iot.v1.DeviceRegistry.getDefaultInstance() : deviceRegistry_; } else { return deviceRegistryBuilder_.getMessage(); } } /** - * - * *
      * Required. The new values for the device registry. The `id` field must be empty, and
      * the `name` field must indicate the path of the resource. For example,
      * `projects/example-project/locations/us-central1/registries/my-registry`.
      * 
* - * - * .google.cloud.iot.v1.DeviceRegistry device_registry = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.iot.v1.DeviceRegistry device_registry = 1 [(.google.api.field_behavior) = REQUIRED]; */ public Builder setDeviceRegistry(com.google.cloud.iot.v1.DeviceRegistry value) { if (deviceRegistryBuilder_ == null) { @@ -689,17 +611,13 @@ public Builder setDeviceRegistry(com.google.cloud.iot.v1.DeviceRegistry value) { return this; } /** - * - * *
      * Required. The new values for the device registry. The `id` field must be empty, and
      * the `name` field must indicate the path of the resource. For example,
      * `projects/example-project/locations/us-central1/registries/my-registry`.
      * 
* - * - * .google.cloud.iot.v1.DeviceRegistry device_registry = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.iot.v1.DeviceRegistry device_registry = 1 [(.google.api.field_behavior) = REQUIRED]; */ public Builder setDeviceRegistry( com.google.cloud.iot.v1.DeviceRegistry.Builder builderForValue) { @@ -713,25 +631,19 @@ public Builder setDeviceRegistry( return this; } /** - * - * *
      * Required. The new values for the device registry. The `id` field must be empty, and
      * the `name` field must indicate the path of the resource. For example,
      * `projects/example-project/locations/us-central1/registries/my-registry`.
      * 
* - * - * .google.cloud.iot.v1.DeviceRegistry device_registry = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.iot.v1.DeviceRegistry device_registry = 1 [(.google.api.field_behavior) = REQUIRED]; */ public Builder mergeDeviceRegistry(com.google.cloud.iot.v1.DeviceRegistry value) { if (deviceRegistryBuilder_ == null) { if (deviceRegistry_ != null) { deviceRegistry_ = - com.google.cloud.iot.v1.DeviceRegistry.newBuilder(deviceRegistry_) - .mergeFrom(value) - .buildPartial(); + com.google.cloud.iot.v1.DeviceRegistry.newBuilder(deviceRegistry_).mergeFrom(value).buildPartial(); } else { deviceRegistry_ = value; } @@ -743,17 +655,13 @@ public Builder mergeDeviceRegistry(com.google.cloud.iot.v1.DeviceRegistry value) return this; } /** - * - * *
      * Required. The new values for the device registry. The `id` field must be empty, and
      * the `name` field must indicate the path of the resource. For example,
      * `projects/example-project/locations/us-central1/registries/my-registry`.
      * 
* - * - * .google.cloud.iot.v1.DeviceRegistry device_registry = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.iot.v1.DeviceRegistry device_registry = 1 [(.google.api.field_behavior) = REQUIRED]; */ public Builder clearDeviceRegistry() { if (deviceRegistryBuilder_ == null) { @@ -767,70 +675,54 @@ public Builder clearDeviceRegistry() { return this; } /** - * - * *
      * Required. The new values for the device registry. The `id` field must be empty, and
      * the `name` field must indicate the path of the resource. For example,
      * `projects/example-project/locations/us-central1/registries/my-registry`.
      * 
* - * - * .google.cloud.iot.v1.DeviceRegistry device_registry = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.iot.v1.DeviceRegistry device_registry = 1 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.cloud.iot.v1.DeviceRegistry.Builder getDeviceRegistryBuilder() { - + onChanged(); return getDeviceRegistryFieldBuilder().getBuilder(); } /** - * - * *
      * Required. The new values for the device registry. The `id` field must be empty, and
      * the `name` field must indicate the path of the resource. For example,
      * `projects/example-project/locations/us-central1/registries/my-registry`.
      * 
* - * - * .google.cloud.iot.v1.DeviceRegistry device_registry = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.iot.v1.DeviceRegistry device_registry = 1 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.cloud.iot.v1.DeviceRegistryOrBuilder getDeviceRegistryOrBuilder() { if (deviceRegistryBuilder_ != null) { return deviceRegistryBuilder_.getMessageOrBuilder(); } else { - return deviceRegistry_ == null - ? com.google.cloud.iot.v1.DeviceRegistry.getDefaultInstance() - : deviceRegistry_; + return deviceRegistry_ == null ? + com.google.cloud.iot.v1.DeviceRegistry.getDefaultInstance() : deviceRegistry_; } } /** - * - * *
      * Required. The new values for the device registry. The `id` field must be empty, and
      * the `name` field must indicate the path of the resource. For example,
      * `projects/example-project/locations/us-central1/registries/my-registry`.
      * 
* - * - * .google.cloud.iot.v1.DeviceRegistry device_registry = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.iot.v1.DeviceRegistry device_registry = 1 [(.google.api.field_behavior) = REQUIRED]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.iot.v1.DeviceRegistry, - com.google.cloud.iot.v1.DeviceRegistry.Builder, - com.google.cloud.iot.v1.DeviceRegistryOrBuilder> + com.google.cloud.iot.v1.DeviceRegistry, com.google.cloud.iot.v1.DeviceRegistry.Builder, com.google.cloud.iot.v1.DeviceRegistryOrBuilder> getDeviceRegistryFieldBuilder() { if (deviceRegistryBuilder_ == null) { - deviceRegistryBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.iot.v1.DeviceRegistry, - com.google.cloud.iot.v1.DeviceRegistry.Builder, - com.google.cloud.iot.v1.DeviceRegistryOrBuilder>( - getDeviceRegistry(), getParentForChildren(), isClean()); + deviceRegistryBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.iot.v1.DeviceRegistry, com.google.cloud.iot.v1.DeviceRegistry.Builder, com.google.cloud.iot.v1.DeviceRegistryOrBuilder>( + getDeviceRegistry(), + getParentForChildren(), + isClean()); deviceRegistry_ = null; } return deviceRegistryBuilder_; @@ -838,13 +730,8 @@ public com.google.cloud.iot.v1.DeviceRegistryOrBuilder getDeviceRegistryOrBuilde 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. Only updates the `device_registry` fields indicated by this mask.
      * The field mask must not be empty, and it must not contain fields that
@@ -853,17 +740,13 @@ public com.google.cloud.iot.v1.DeviceRegistryOrBuilder getDeviceRegistryOrBuilde
      * `mqtt_config`, and `state_notification_config`.
      * 
* - * .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. Only updates the `device_registry` fields indicated by this mask.
      * The field mask must not be empty, and it must not contain fields that
@@ -872,23 +755,17 @@ public boolean hasUpdateMask() {
      * `mqtt_config`, and `state_notification_config`.
      * 
* - * .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. Only updates the `device_registry` fields indicated by this mask.
      * The field mask must not be empty, and it must not contain fields that
@@ -897,8 +774,7 @@ public com.google.protobuf.FieldMask getUpdateMask() {
      * `mqtt_config`, and `state_notification_config`.
      * 
* - * .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) { @@ -914,8 +790,6 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask value) { return this; } /** - * - * *
      * Required. Only updates the `device_registry` fields indicated by this mask.
      * The field mask must not be empty, and it must not contain fields that
@@ -924,10 +798,10 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask value) {
      * `mqtt_config`, and `state_notification_config`.
      * 
* - * .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(); @@ -938,8 +812,6 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForVal return this; } /** - * - * *
      * Required. Only updates the `device_registry` fields indicated by this mask.
      * The field mask must not be empty, and it must not contain fields that
@@ -948,14 +820,13 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForVal
      * `mqtt_config`, and `state_notification_config`.
      * 
* - * .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; } @@ -967,8 +838,6 @@ public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) { return this; } /** - * - * *
      * Required. Only updates the `device_registry` fields indicated by this mask.
      * The field mask must not be empty, and it must not contain fields that
@@ -977,8 +846,7 @@ public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) {
      * `mqtt_config`, and `state_notification_config`.
      * 
* - * .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) { @@ -992,8 +860,6 @@ public Builder clearUpdateMask() { return this; } /** - * - * *
      * Required. Only updates the `device_registry` fields indicated by this mask.
      * The field mask must not be empty, and it must not contain fields that
@@ -1002,17 +868,14 @@ public Builder clearUpdateMask() {
      * `mqtt_config`, and `state_notification_config`.
      * 
* - * .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. Only updates the `device_registry` fields indicated by this mask.
      * The field mask must not be empty, and it must not contain fields that
@@ -1021,21 +884,17 @@ public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() {
      * `mqtt_config`, and `state_notification_config`.
      * 
* - * .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. Only updates the `device_registry` fields indicated by this mask.
      * The field mask must not be empty, and it must not contain fields that
@@ -1044,28 +903,24 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() {
      * `mqtt_config`, and `state_notification_config`.
      * 
* - * .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_; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1075,12 +930,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.iot.v1.UpdateDeviceRegistryRequest) } // @@protoc_insertion_point(class_scope:google.cloud.iot.v1.UpdateDeviceRegistryRequest) private static final com.google.cloud.iot.v1.UpdateDeviceRegistryRequest DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.iot.v1.UpdateDeviceRegistryRequest(); } @@ -1089,16 +944,16 @@ public static com.google.cloud.iot.v1.UpdateDeviceRegistryRequest getDefaultInst return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public UpdateDeviceRegistryRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new UpdateDeviceRegistryRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public UpdateDeviceRegistryRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new UpdateDeviceRegistryRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1113,4 +968,6 @@ public com.google.protobuf.Parser getParserForType( public com.google.cloud.iot.v1.UpdateDeviceRegistryRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-iot-v1/src/main/java/com/google/cloud/iot/v1/UpdateDeviceRegistryRequestOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-iot-v1/src/main/java/com/google/cloud/iot/v1/UpdateDeviceRegistryRequestOrBuilder.java similarity index 69% rename from proto-google-cloud-iot-v1/src/main/java/com/google/cloud/iot/v1/UpdateDeviceRegistryRequestOrBuilder.java rename to owl-bot-staging/v1/proto-google-cloud-iot-v1/src/main/java/com/google/cloud/iot/v1/UpdateDeviceRegistryRequestOrBuilder.java index 7fcb8a25..e2eefd4d 100644 --- a/proto-google-cloud-iot-v1/src/main/java/com/google/cloud/iot/v1/UpdateDeviceRegistryRequestOrBuilder.java +++ b/owl-bot-staging/v1/proto-google-cloud-iot-v1/src/main/java/com/google/cloud/iot/v1/UpdateDeviceRegistryRequestOrBuilder.java @@ -1,78 +1,46 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/iot/v1/device_manager.proto package com.google.cloud.iot.v1; -public interface UpdateDeviceRegistryRequestOrBuilder - extends +public interface UpdateDeviceRegistryRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.iot.v1.UpdateDeviceRegistryRequest) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Required. The new values for the device registry. The `id` field must be empty, and
    * the `name` field must indicate the path of the resource. For example,
    * `projects/example-project/locations/us-central1/registries/my-registry`.
    * 
* - * - * .google.cloud.iot.v1.DeviceRegistry device_registry = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.iot.v1.DeviceRegistry device_registry = 1 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the deviceRegistry field is set. */ boolean hasDeviceRegistry(); /** - * - * *
    * Required. The new values for the device registry. The `id` field must be empty, and
    * the `name` field must indicate the path of the resource. For example,
    * `projects/example-project/locations/us-central1/registries/my-registry`.
    * 
* - * - * .google.cloud.iot.v1.DeviceRegistry device_registry = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.iot.v1.DeviceRegistry device_registry = 1 [(.google.api.field_behavior) = REQUIRED]; * @return The deviceRegistry. */ com.google.cloud.iot.v1.DeviceRegistry getDeviceRegistry(); /** - * - * *
    * Required. The new values for the device registry. The `id` field must be empty, and
    * the `name` field must indicate the path of the resource. For example,
    * `projects/example-project/locations/us-central1/registries/my-registry`.
    * 
* - * - * .google.cloud.iot.v1.DeviceRegistry device_registry = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.iot.v1.DeviceRegistry device_registry = 1 [(.google.api.field_behavior) = REQUIRED]; */ com.google.cloud.iot.v1.DeviceRegistryOrBuilder getDeviceRegistryOrBuilder(); /** - * - * *
    * Required. Only updates the `device_registry` fields indicated by this mask.
    * The field mask must not be empty, and it must not contain fields that
@@ -81,15 +49,11 @@ public interface UpdateDeviceRegistryRequestOrBuilder
    * `mqtt_config`, and `state_notification_config`.
    * 
* - * .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. Only updates the `device_registry` fields indicated by this mask.
    * The field mask must not be empty, and it must not contain fields that
@@ -98,15 +62,11 @@ public interface UpdateDeviceRegistryRequestOrBuilder
    * `mqtt_config`, and `state_notification_config`.
    * 
* - * .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. Only updates the `device_registry` fields indicated by this mask.
    * The field mask must not be empty, and it must not contain fields that
@@ -115,8 +75,7 @@ public interface UpdateDeviceRegistryRequestOrBuilder
    * `mqtt_config`, and `state_notification_config`.
    * 
* - * .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(); } diff --git a/proto-google-cloud-iot-v1/src/main/java/com/google/cloud/iot/v1/UpdateDeviceRequest.java b/owl-bot-staging/v1/proto-google-cloud-iot-v1/src/main/java/com/google/cloud/iot/v1/UpdateDeviceRequest.java similarity index 73% rename from proto-google-cloud-iot-v1/src/main/java/com/google/cloud/iot/v1/UpdateDeviceRequest.java rename to owl-bot-staging/v1/proto-google-cloud-iot-v1/src/main/java/com/google/cloud/iot/v1/UpdateDeviceRequest.java index de616956..3f3be7ec 100644 --- a/proto-google-cloud-iot-v1/src/main/java/com/google/cloud/iot/v1/UpdateDeviceRequest.java +++ b/owl-bot-staging/v1/proto-google-cloud-iot-v1/src/main/java/com/google/cloud/iot/v1/UpdateDeviceRequest.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/iot/v1/device_manager.proto package com.google.cloud.iot.v1; /** - * - * *
  * Request for `UpdateDevice`.
  * 
* * Protobuf type {@code google.cloud.iot.v1.UpdateDeviceRequest} */ -public final class UpdateDeviceRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class UpdateDeviceRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.iot.v1.UpdateDeviceRequest) UpdateDeviceRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use UpdateDeviceRequest.newBuilder() to construct. private UpdateDeviceRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - - private UpdateDeviceRequest() {} + private UpdateDeviceRequest() { + } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new UpdateDeviceRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private UpdateDeviceRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -68,43 +52,39 @@ private UpdateDeviceRequest( case 0: done = true; break; - case 18: - { - com.google.cloud.iot.v1.Device.Builder subBuilder = null; - if (device_ != null) { - subBuilder = device_.toBuilder(); - } - device_ = - input.readMessage(com.google.cloud.iot.v1.Device.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(device_); - device_ = subBuilder.buildPartial(); - } - - break; + case 18: { + com.google.cloud.iot.v1.Device.Builder subBuilder = null; + if (device_ != null) { + subBuilder = device_.toBuilder(); + } + device_ = input.readMessage(com.google.cloud.iot.v1.Device.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(device_); + device_ = subBuilder.buildPartial(); } - case 26: - { - 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; + break; + } + case 26: { + com.google.protobuf.FieldMask.Builder subBuilder = null; + if (updateMask_ != null) { + subBuilder = updateMask_.toBuilder(); } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + updateMask_ = input.readMessage(com.google.protobuf.FieldMask.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(updateMask_); + updateMask_ = subBuilder.buildPartial(); } + + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -112,33 +92,29 @@ private UpdateDeviceRequest( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.iot.v1.DeviceManagerProto - .internal_static_google_cloud_iot_v1_UpdateDeviceRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.iot.v1.DeviceManagerProto.internal_static_google_cloud_iot_v1_UpdateDeviceRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.iot.v1.DeviceManagerProto - .internal_static_google_cloud_iot_v1_UpdateDeviceRequest_fieldAccessorTable + return com.google.cloud.iot.v1.DeviceManagerProto.internal_static_google_cloud_iot_v1_UpdateDeviceRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.iot.v1.UpdateDeviceRequest.class, - com.google.cloud.iot.v1.UpdateDeviceRequest.Builder.class); + com.google.cloud.iot.v1.UpdateDeviceRequest.class, com.google.cloud.iot.v1.UpdateDeviceRequest.Builder.class); } public static final int DEVICE_FIELD_NUMBER = 2; private com.google.cloud.iot.v1.Device device_; /** - * - * *
    * Required. The new values for the device. The `id` and `num_id` fields must
    * be empty, and the field `name` must specify the name path. For example,
@@ -147,7 +123,6 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
    * 
* * .google.cloud.iot.v1.Device device = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return Whether the device field is set. */ @java.lang.Override @@ -155,8 +130,6 @@ public boolean hasDevice() { return device_ != null; } /** - * - * *
    * Required. The new values for the device. The `id` and `num_id` fields must
    * be empty, and the field `name` must specify the name path. For example,
@@ -165,7 +138,6 @@ public boolean hasDevice() {
    * 
* * .google.cloud.iot.v1.Device device = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The device. */ @java.lang.Override @@ -173,8 +145,6 @@ public com.google.cloud.iot.v1.Device getDevice() { return device_ == null ? com.google.cloud.iot.v1.Device.getDefaultInstance() : device_; } /** - * - * *
    * Required. The new values for the device. The `id` and `num_id` fields must
    * be empty, and the field `name` must specify the name path. For example,
@@ -192,8 +162,6 @@ public com.google.cloud.iot.v1.DeviceOrBuilder getDeviceOrBuilder() {
   public static final int UPDATE_MASK_FIELD_NUMBER = 3;
   private com.google.protobuf.FieldMask updateMask_;
   /**
-   *
-   *
    * 
    * Required. Only updates the `device` fields indicated by this mask.
    * The field mask must not be empty, and it must not contain fields that
@@ -201,9 +169,7 @@ public com.google.cloud.iot.v1.DeviceOrBuilder getDeviceOrBuilder() {
    * Mutable top-level fields: `credentials`, `blocked`, and `metadata`
    * 
* - * .google.protobuf.FieldMask update_mask = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.protobuf.FieldMask update_mask = 3 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the updateMask field is set. */ @java.lang.Override @@ -211,8 +177,6 @@ public boolean hasUpdateMask() { return updateMask_ != null; } /** - * - * *
    * Required. Only updates the `device` fields indicated by this mask.
    * The field mask must not be empty, and it must not contain fields that
@@ -220,9 +184,7 @@ public boolean hasUpdateMask() {
    * Mutable top-level fields: `credentials`, `blocked`, and `metadata`
    * 
* - * .google.protobuf.FieldMask update_mask = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.protobuf.FieldMask update_mask = 3 [(.google.api.field_behavior) = REQUIRED]; * @return The updateMask. */ @java.lang.Override @@ -230,8 +192,6 @@ public com.google.protobuf.FieldMask getUpdateMask() { return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; } /** - * - * *
    * Required. Only updates the `device` fields indicated by this mask.
    * The field mask must not be empty, and it must not contain fields that
@@ -239,8 +199,7 @@ public com.google.protobuf.FieldMask getUpdateMask() {
    * Mutable top-level fields: `credentials`, `blocked`, and `metadata`
    * 
* - * .google.protobuf.FieldMask update_mask = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.protobuf.FieldMask update_mask = 3 [(.google.api.field_behavior) = REQUIRED]; */ @java.lang.Override public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { @@ -248,7 +207,6 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -260,7 +218,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (device_ != null) { output.writeMessage(2, getDevice()); } @@ -277,10 +236,12 @@ public int getSerializedSize() { size = 0; if (device_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getDevice()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getDevice()); } if (updateMask_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getUpdateMask()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(3, getUpdateMask()); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -290,21 +251,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.iot.v1.UpdateDeviceRequest)) { return super.equals(obj); } - com.google.cloud.iot.v1.UpdateDeviceRequest other = - (com.google.cloud.iot.v1.UpdateDeviceRequest) obj; + com.google.cloud.iot.v1.UpdateDeviceRequest other = (com.google.cloud.iot.v1.UpdateDeviceRequest) obj; if (hasDevice() != other.hasDevice()) return false; if (hasDevice()) { - if (!getDevice().equals(other.getDevice())) return false; + if (!getDevice() + .equals(other.getDevice())) 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 (!unknownFields.equals(other.unknownFields)) return false; return true; @@ -330,127 +292,118 @@ public int hashCode() { return hash; } - public static com.google.cloud.iot.v1.UpdateDeviceRequest parseFrom(java.nio.ByteBuffer data) + public static com.google.cloud.iot.v1.UpdateDeviceRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.iot.v1.UpdateDeviceRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.iot.v1.UpdateDeviceRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.iot.v1.UpdateDeviceRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.iot.v1.UpdateDeviceRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.iot.v1.UpdateDeviceRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.iot.v1.UpdateDeviceRequest 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.iot.v1.UpdateDeviceRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.iot.v1.UpdateDeviceRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.iot.v1.UpdateDeviceRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.iot.v1.UpdateDeviceRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.iot.v1.UpdateDeviceRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.iot.v1.UpdateDeviceRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.iot.v1.UpdateDeviceRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected 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 `UpdateDevice`.
    * 
* * Protobuf type {@code google.cloud.iot.v1.UpdateDeviceRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.iot.v1.UpdateDeviceRequest) com.google.cloud.iot.v1.UpdateDeviceRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.iot.v1.DeviceManagerProto - .internal_static_google_cloud_iot_v1_UpdateDeviceRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.iot.v1.DeviceManagerProto.internal_static_google_cloud_iot_v1_UpdateDeviceRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.iot.v1.DeviceManagerProto - .internal_static_google_cloud_iot_v1_UpdateDeviceRequest_fieldAccessorTable + return com.google.cloud.iot.v1.DeviceManagerProto.internal_static_google_cloud_iot_v1_UpdateDeviceRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.iot.v1.UpdateDeviceRequest.class, - com.google.cloud.iot.v1.UpdateDeviceRequest.Builder.class); + com.google.cloud.iot.v1.UpdateDeviceRequest.class, com.google.cloud.iot.v1.UpdateDeviceRequest.Builder.class); } // Construct using com.google.cloud.iot.v1.UpdateDeviceRequest.newBuilder() @@ -458,15 +411,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(); @@ -486,9 +440,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.iot.v1.DeviceManagerProto - .internal_static_google_cloud_iot_v1_UpdateDeviceRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.iot.v1.DeviceManagerProto.internal_static_google_cloud_iot_v1_UpdateDeviceRequest_descriptor; } @java.lang.Override @@ -507,8 +461,7 @@ public com.google.cloud.iot.v1.UpdateDeviceRequest build() { @java.lang.Override public com.google.cloud.iot.v1.UpdateDeviceRequest buildPartial() { - com.google.cloud.iot.v1.UpdateDeviceRequest result = - new com.google.cloud.iot.v1.UpdateDeviceRequest(this); + com.google.cloud.iot.v1.UpdateDeviceRequest result = new com.google.cloud.iot.v1.UpdateDeviceRequest(this); if (deviceBuilder_ == null) { result.device_ = device_; } else { @@ -527,39 +480,38 @@ public com.google.cloud.iot.v1.UpdateDeviceRequest buildPartial() { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.iot.v1.UpdateDeviceRequest) { - return mergeFrom((com.google.cloud.iot.v1.UpdateDeviceRequest) other); + return mergeFrom((com.google.cloud.iot.v1.UpdateDeviceRequest)other); } else { super.mergeFrom(other); return this; @@ -605,13 +557,8 @@ public Builder mergeFrom( private com.google.cloud.iot.v1.Device device_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.iot.v1.Device, - com.google.cloud.iot.v1.Device.Builder, - com.google.cloud.iot.v1.DeviceOrBuilder> - deviceBuilder_; + com.google.cloud.iot.v1.Device, com.google.cloud.iot.v1.Device.Builder, com.google.cloud.iot.v1.DeviceOrBuilder> deviceBuilder_; /** - * - * *
      * Required. The new values for the device. The `id` and `num_id` fields must
      * be empty, and the field `name` must specify the name path. For example,
@@ -619,17 +566,13 @@ public Builder mergeFrom(
      * `projects/p0/locations/us-central1/registries/registry0/devices/{num_id}`.
      * 
* - * .google.cloud.iot.v1.Device device = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.iot.v1.Device device = 2 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the device field is set. */ public boolean hasDevice() { return deviceBuilder_ != null || device_ != null; } /** - * - * *
      * Required. The new values for the device. The `id` and `num_id` fields must
      * be empty, and the field `name` must specify the name path. For example,
@@ -637,9 +580,7 @@ public boolean hasDevice() {
      * `projects/p0/locations/us-central1/registries/registry0/devices/{num_id}`.
      * 
* - * .google.cloud.iot.v1.Device device = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.iot.v1.Device device = 2 [(.google.api.field_behavior) = REQUIRED]; * @return The device. */ public com.google.cloud.iot.v1.Device getDevice() { @@ -650,8 +591,6 @@ public com.google.cloud.iot.v1.Device getDevice() { } } /** - * - * *
      * Required. The new values for the device. The `id` and `num_id` fields must
      * be empty, and the field `name` must specify the name path. For example,
@@ -659,8 +598,7 @@ public com.google.cloud.iot.v1.Device getDevice() {
      * `projects/p0/locations/us-central1/registries/registry0/devices/{num_id}`.
      * 
* - * .google.cloud.iot.v1.Device device = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.iot.v1.Device device = 2 [(.google.api.field_behavior) = REQUIRED]; */ public Builder setDevice(com.google.cloud.iot.v1.Device value) { if (deviceBuilder_ == null) { @@ -676,8 +614,6 @@ public Builder setDevice(com.google.cloud.iot.v1.Device value) { return this; } /** - * - * *
      * Required. The new values for the device. The `id` and `num_id` fields must
      * be empty, and the field `name` must specify the name path. For example,
@@ -685,10 +621,10 @@ public Builder setDevice(com.google.cloud.iot.v1.Device value) {
      * `projects/p0/locations/us-central1/registries/registry0/devices/{num_id}`.
      * 
* - * .google.cloud.iot.v1.Device device = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.iot.v1.Device device = 2 [(.google.api.field_behavior) = REQUIRED]; */ - public Builder setDevice(com.google.cloud.iot.v1.Device.Builder builderForValue) { + public Builder setDevice( + com.google.cloud.iot.v1.Device.Builder builderForValue) { if (deviceBuilder_ == null) { device_ = builderForValue.build(); onChanged(); @@ -699,8 +635,6 @@ public Builder setDevice(com.google.cloud.iot.v1.Device.Builder builderForValue) return this; } /** - * - * *
      * Required. The new values for the device. The `id` and `num_id` fields must
      * be empty, and the field `name` must specify the name path. For example,
@@ -708,14 +642,13 @@ public Builder setDevice(com.google.cloud.iot.v1.Device.Builder builderForValue)
      * `projects/p0/locations/us-central1/registries/registry0/devices/{num_id}`.
      * 
* - * .google.cloud.iot.v1.Device device = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.iot.v1.Device device = 2 [(.google.api.field_behavior) = REQUIRED]; */ public Builder mergeDevice(com.google.cloud.iot.v1.Device value) { if (deviceBuilder_ == null) { if (device_ != null) { device_ = - com.google.cloud.iot.v1.Device.newBuilder(device_).mergeFrom(value).buildPartial(); + com.google.cloud.iot.v1.Device.newBuilder(device_).mergeFrom(value).buildPartial(); } else { device_ = value; } @@ -727,8 +660,6 @@ public Builder mergeDevice(com.google.cloud.iot.v1.Device value) { return this; } /** - * - * *
      * Required. The new values for the device. The `id` and `num_id` fields must
      * be empty, and the field `name` must specify the name path. For example,
@@ -736,8 +667,7 @@ public Builder mergeDevice(com.google.cloud.iot.v1.Device value) {
      * `projects/p0/locations/us-central1/registries/registry0/devices/{num_id}`.
      * 
* - * .google.cloud.iot.v1.Device device = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.iot.v1.Device device = 2 [(.google.api.field_behavior) = REQUIRED]; */ public Builder clearDevice() { if (deviceBuilder_ == null) { @@ -751,8 +681,6 @@ public Builder clearDevice() { return this; } /** - * - * *
      * Required. The new values for the device. The `id` and `num_id` fields must
      * be empty, and the field `name` must specify the name path. For example,
@@ -760,17 +688,14 @@ public Builder clearDevice() {
      * `projects/p0/locations/us-central1/registries/registry0/devices/{num_id}`.
      * 
* - * .google.cloud.iot.v1.Device device = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.iot.v1.Device device = 2 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.cloud.iot.v1.Device.Builder getDeviceBuilder() { - + onChanged(); return getDeviceFieldBuilder().getBuilder(); } /** - * - * *
      * Required. The new values for the device. The `id` and `num_id` fields must
      * be empty, and the field `name` must specify the name path. For example,
@@ -778,19 +703,17 @@ public com.google.cloud.iot.v1.Device.Builder getDeviceBuilder() {
      * `projects/p0/locations/us-central1/registries/registry0/devices/{num_id}`.
      * 
* - * .google.cloud.iot.v1.Device device = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.iot.v1.Device device = 2 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.cloud.iot.v1.DeviceOrBuilder getDeviceOrBuilder() { if (deviceBuilder_ != null) { return deviceBuilder_.getMessageOrBuilder(); } else { - return device_ == null ? com.google.cloud.iot.v1.Device.getDefaultInstance() : device_; + return device_ == null ? + com.google.cloud.iot.v1.Device.getDefaultInstance() : device_; } } /** - * - * *
      * Required. The new values for the device. The `id` and `num_id` fields must
      * be empty, and the field `name` must specify the name path. For example,
@@ -798,21 +721,17 @@ public com.google.cloud.iot.v1.DeviceOrBuilder getDeviceOrBuilder() {
      * `projects/p0/locations/us-central1/registries/registry0/devices/{num_id}`.
      * 
* - * .google.cloud.iot.v1.Device device = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.iot.v1.Device device = 2 [(.google.api.field_behavior) = REQUIRED]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.iot.v1.Device, - com.google.cloud.iot.v1.Device.Builder, - com.google.cloud.iot.v1.DeviceOrBuilder> + com.google.cloud.iot.v1.Device, com.google.cloud.iot.v1.Device.Builder, com.google.cloud.iot.v1.DeviceOrBuilder> getDeviceFieldBuilder() { if (deviceBuilder_ == null) { - deviceBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.iot.v1.Device, - com.google.cloud.iot.v1.Device.Builder, - com.google.cloud.iot.v1.DeviceOrBuilder>( - getDevice(), getParentForChildren(), isClean()); + deviceBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.iot.v1.Device, com.google.cloud.iot.v1.Device.Builder, com.google.cloud.iot.v1.DeviceOrBuilder>( + getDevice(), + getParentForChildren(), + isClean()); device_ = null; } return deviceBuilder_; @@ -820,13 +739,8 @@ public com.google.cloud.iot.v1.DeviceOrBuilder getDeviceOrBuilder() { 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. Only updates the `device` fields indicated by this mask.
      * The field mask must not be empty, and it must not contain fields that
@@ -834,17 +748,13 @@ public com.google.cloud.iot.v1.DeviceOrBuilder getDeviceOrBuilder() {
      * Mutable top-level fields: `credentials`, `blocked`, and `metadata`
      * 
* - * .google.protobuf.FieldMask update_mask = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.protobuf.FieldMask update_mask = 3 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the updateMask field is set. */ public boolean hasUpdateMask() { return updateMaskBuilder_ != null || updateMask_ != null; } /** - * - * *
      * Required. Only updates the `device` fields indicated by this mask.
      * The field mask must not be empty, and it must not contain fields that
@@ -852,23 +762,17 @@ public boolean hasUpdateMask() {
      * Mutable top-level fields: `credentials`, `blocked`, and `metadata`
      * 
* - * .google.protobuf.FieldMask update_mask = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.protobuf.FieldMask update_mask = 3 [(.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. Only updates the `device` fields indicated by this mask.
      * The field mask must not be empty, and it must not contain fields that
@@ -876,8 +780,7 @@ public com.google.protobuf.FieldMask getUpdateMask() {
      * Mutable top-level fields: `credentials`, `blocked`, and `metadata`
      * 
* - * .google.protobuf.FieldMask update_mask = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.protobuf.FieldMask update_mask = 3 [(.google.api.field_behavior) = REQUIRED]; */ public Builder setUpdateMask(com.google.protobuf.FieldMask value) { if (updateMaskBuilder_ == null) { @@ -893,8 +796,6 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask value) { return this; } /** - * - * *
      * Required. Only updates the `device` fields indicated by this mask.
      * The field mask must not be empty, and it must not contain fields that
@@ -902,10 +803,10 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask value) {
      * Mutable top-level fields: `credentials`, `blocked`, and `metadata`
      * 
* - * .google.protobuf.FieldMask update_mask = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.protobuf.FieldMask update_mask = 3 [(.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(); @@ -916,8 +817,6 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForVal return this; } /** - * - * *
      * Required. Only updates the `device` fields indicated by this mask.
      * The field mask must not be empty, and it must not contain fields that
@@ -925,14 +824,13 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForVal
      * Mutable top-level fields: `credentials`, `blocked`, and `metadata`
      * 
* - * .google.protobuf.FieldMask update_mask = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.protobuf.FieldMask update_mask = 3 [(.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; } @@ -944,8 +842,6 @@ public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) { return this; } /** - * - * *
      * Required. Only updates the `device` fields indicated by this mask.
      * The field mask must not be empty, and it must not contain fields that
@@ -953,8 +849,7 @@ public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) {
      * Mutable top-level fields: `credentials`, `blocked`, and `metadata`
      * 
* - * .google.protobuf.FieldMask update_mask = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.protobuf.FieldMask update_mask = 3 [(.google.api.field_behavior) = REQUIRED]; */ public Builder clearUpdateMask() { if (updateMaskBuilder_ == null) { @@ -968,8 +863,6 @@ public Builder clearUpdateMask() { return this; } /** - * - * *
      * Required. Only updates the `device` fields indicated by this mask.
      * The field mask must not be empty, and it must not contain fields that
@@ -977,17 +870,14 @@ public Builder clearUpdateMask() {
      * Mutable top-level fields: `credentials`, `blocked`, and `metadata`
      * 
* - * .google.protobuf.FieldMask update_mask = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.protobuf.FieldMask update_mask = 3 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() { - + onChanged(); return getUpdateMaskFieldBuilder().getBuilder(); } /** - * - * *
      * Required. Only updates the `device` fields indicated by this mask.
      * The field mask must not be empty, and it must not contain fields that
@@ -995,21 +885,17 @@ public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() {
      * Mutable top-level fields: `credentials`, `blocked`, and `metadata`
      * 
* - * .google.protobuf.FieldMask update_mask = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.protobuf.FieldMask update_mask = 3 [(.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. Only updates the `device` fields indicated by this mask.
      * The field mask must not be empty, and it must not contain fields that
@@ -1017,28 +903,24 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() {
      * Mutable top-level fields: `credentials`, `blocked`, and `metadata`
      * 
* - * .google.protobuf.FieldMask update_mask = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.protobuf.FieldMask update_mask = 3 [(.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_; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1048,12 +930,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.iot.v1.UpdateDeviceRequest) } // @@protoc_insertion_point(class_scope:google.cloud.iot.v1.UpdateDeviceRequest) private static final com.google.cloud.iot.v1.UpdateDeviceRequest DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.iot.v1.UpdateDeviceRequest(); } @@ -1062,16 +944,16 @@ public static com.google.cloud.iot.v1.UpdateDeviceRequest getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public UpdateDeviceRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new UpdateDeviceRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public UpdateDeviceRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new UpdateDeviceRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1086,4 +968,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.iot.v1.UpdateDeviceRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-iot-v1/src/main/java/com/google/cloud/iot/v1/UpdateDeviceRequestOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-iot-v1/src/main/java/com/google/cloud/iot/v1/UpdateDeviceRequestOrBuilder.java similarity index 78% rename from proto-google-cloud-iot-v1/src/main/java/com/google/cloud/iot/v1/UpdateDeviceRequestOrBuilder.java rename to owl-bot-staging/v1/proto-google-cloud-iot-v1/src/main/java/com/google/cloud/iot/v1/UpdateDeviceRequestOrBuilder.java index 8d26fb3f..075f1691 100644 --- a/proto-google-cloud-iot-v1/src/main/java/com/google/cloud/iot/v1/UpdateDeviceRequestOrBuilder.java +++ b/owl-bot-staging/v1/proto-google-cloud-iot-v1/src/main/java/com/google/cloud/iot/v1/UpdateDeviceRequestOrBuilder.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/iot/v1/device_manager.proto package com.google.cloud.iot.v1; -public interface UpdateDeviceRequestOrBuilder - extends +public interface UpdateDeviceRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.iot.v1.UpdateDeviceRequest) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Required. The new values for the device. The `id` and `num_id` fields must
    * be empty, and the field `name` must specify the name path. For example,
@@ -34,13 +16,10 @@ public interface UpdateDeviceRequestOrBuilder
    * 
* * .google.cloud.iot.v1.Device device = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return Whether the device field is set. */ boolean hasDevice(); /** - * - * *
    * Required. The new values for the device. The `id` and `num_id` fields must
    * be empty, and the field `name` must specify the name path. For example,
@@ -49,13 +28,10 @@ public interface UpdateDeviceRequestOrBuilder
    * 
* * .google.cloud.iot.v1.Device device = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The device. */ com.google.cloud.iot.v1.Device getDevice(); /** - * - * *
    * Required. The new values for the device. The `id` and `num_id` fields must
    * be empty, and the field `name` must specify the name path. For example,
@@ -68,8 +44,6 @@ public interface UpdateDeviceRequestOrBuilder
   com.google.cloud.iot.v1.DeviceOrBuilder getDeviceOrBuilder();
 
   /**
-   *
-   *
    * 
    * Required. Only updates the `device` fields indicated by this mask.
    * The field mask must not be empty, and it must not contain fields that
@@ -77,15 +51,11 @@ public interface UpdateDeviceRequestOrBuilder
    * Mutable top-level fields: `credentials`, `blocked`, and `metadata`
    * 
* - * .google.protobuf.FieldMask update_mask = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.protobuf.FieldMask update_mask = 3 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the updateMask field is set. */ boolean hasUpdateMask(); /** - * - * *
    * Required. Only updates the `device` fields indicated by this mask.
    * The field mask must not be empty, and it must not contain fields that
@@ -93,15 +63,11 @@ public interface UpdateDeviceRequestOrBuilder
    * Mutable top-level fields: `credentials`, `blocked`, and `metadata`
    * 
* - * .google.protobuf.FieldMask update_mask = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.protobuf.FieldMask update_mask = 3 [(.google.api.field_behavior) = REQUIRED]; * @return The updateMask. */ com.google.protobuf.FieldMask getUpdateMask(); /** - * - * *
    * Required. Only updates the `device` fields indicated by this mask.
    * The field mask must not be empty, and it must not contain fields that
@@ -109,8 +75,7 @@ public interface UpdateDeviceRequestOrBuilder
    * Mutable top-level fields: `credentials`, `blocked`, and `metadata`
    * 
* - * .google.protobuf.FieldMask update_mask = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.protobuf.FieldMask update_mask = 3 [(.google.api.field_behavior) = REQUIRED]; */ com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder(); } diff --git a/proto-google-cloud-iot-v1/src/main/java/com/google/cloud/iot/v1/X509CertificateDetails.java b/owl-bot-staging/v1/proto-google-cloud-iot-v1/src/main/java/com/google/cloud/iot/v1/X509CertificateDetails.java similarity index 72% rename from proto-google-cloud-iot-v1/src/main/java/com/google/cloud/iot/v1/X509CertificateDetails.java rename to owl-bot-staging/v1/proto-google-cloud-iot-v1/src/main/java/com/google/cloud/iot/v1/X509CertificateDetails.java index 9492db6d..7ca7dd04 100644 --- a/proto-google-cloud-iot-v1/src/main/java/com/google/cloud/iot/v1/X509CertificateDetails.java +++ b/owl-bot-staging/v1/proto-google-cloud-iot-v1/src/main/java/com/google/cloud/iot/v1/X509CertificateDetails.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/iot/v1/resources.proto package com.google.cloud.iot.v1; /** - * - * *
  * Details of an X.509 certificate. For informational purposes only.
  * 
* * Protobuf type {@code google.cloud.iot.v1.X509CertificateDetails} */ -public final class X509CertificateDetails extends com.google.protobuf.GeneratedMessageV3 - implements +public final class X509CertificateDetails extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.iot.v1.X509CertificateDetails) X509CertificateDetailsOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use X509CertificateDetails.newBuilder() to construct. private X509CertificateDetails(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private X509CertificateDetails() { issuer_ = ""; subject_ = ""; @@ -46,15 +28,16 @@ private X509CertificateDetails() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new X509CertificateDetails(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private X509CertificateDetails( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -73,71 +56,63 @@ private X509CertificateDetails( case 0: done = true; break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); + case 10: { + java.lang.String s = input.readStringRequireUtf8(); - issuer_ = s; - break; - } - case 18: - { - java.lang.String s = input.readStringRequireUtf8(); + issuer_ = s; + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); - subject_ = s; - break; - } - case 26: - { - com.google.protobuf.Timestamp.Builder subBuilder = null; - if (startTime_ != null) { - subBuilder = startTime_.toBuilder(); - } - startTime_ = - input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(startTime_); - startTime_ = subBuilder.buildPartial(); - } - - break; + subject_ = s; + break; + } + case 26: { + com.google.protobuf.Timestamp.Builder subBuilder = null; + if (startTime_ != null) { + subBuilder = startTime_.toBuilder(); } - case 34: - { - com.google.protobuf.Timestamp.Builder subBuilder = null; - if (expiryTime_ != null) { - subBuilder = expiryTime_.toBuilder(); - } - expiryTime_ = - input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(expiryTime_); - expiryTime_ = subBuilder.buildPartial(); - } - - break; + startTime_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(startTime_); + startTime_ = subBuilder.buildPartial(); } - case 42: - { - java.lang.String s = input.readStringRequireUtf8(); - signatureAlgorithm_ = s; - break; + break; + } + case 34: { + com.google.protobuf.Timestamp.Builder subBuilder = null; + if (expiryTime_ != null) { + subBuilder = expiryTime_.toBuilder(); } - case 50: - { - java.lang.String s = input.readStringRequireUtf8(); - - publicKeyType_ = s; - break; + expiryTime_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(expiryTime_); + expiryTime_ = subBuilder.buildPartial(); } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + + break; + } + case 42: { + java.lang.String s = input.readStringRequireUtf8(); + + signatureAlgorithm_ = s; + break; + } + case 50: { + java.lang.String s = input.readStringRequireUtf8(); + + publicKeyType_ = s; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -145,39 +120,34 @@ private X509CertificateDetails( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.iot.v1.ResourcesProto - .internal_static_google_cloud_iot_v1_X509CertificateDetails_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.iot.v1.ResourcesProto.internal_static_google_cloud_iot_v1_X509CertificateDetails_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.iot.v1.ResourcesProto - .internal_static_google_cloud_iot_v1_X509CertificateDetails_fieldAccessorTable + return com.google.cloud.iot.v1.ResourcesProto.internal_static_google_cloud_iot_v1_X509CertificateDetails_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.iot.v1.X509CertificateDetails.class, - com.google.cloud.iot.v1.X509CertificateDetails.Builder.class); + com.google.cloud.iot.v1.X509CertificateDetails.class, com.google.cloud.iot.v1.X509CertificateDetails.Builder.class); } public static final int ISSUER_FIELD_NUMBER = 1; private volatile java.lang.Object issuer_; /** - * - * *
    * The entity that signed the certificate.
    * 
* * string issuer = 1; - * * @return The issuer. */ @java.lang.Override @@ -186,29 +156,29 @@ public java.lang.String getIssuer() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); issuer_ = s; return s; } } /** - * - * *
    * The entity that signed the certificate.
    * 
* * string issuer = 1; - * * @return The bytes for issuer. */ @java.lang.Override - public com.google.protobuf.ByteString getIssuerBytes() { + public com.google.protobuf.ByteString + getIssuerBytes() { java.lang.Object ref = issuer_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); issuer_ = b; return b; } else { @@ -219,14 +189,11 @@ public com.google.protobuf.ByteString getIssuerBytes() { public static final int SUBJECT_FIELD_NUMBER = 2; private volatile java.lang.Object subject_; /** - * - * *
    * The entity the certificate and public key belong to.
    * 
* * string subject = 2; - * * @return The subject. */ @java.lang.Override @@ -235,29 +202,29 @@ public java.lang.String getSubject() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); subject_ = s; return s; } } /** - * - * *
    * The entity the certificate and public key belong to.
    * 
* * string subject = 2; - * * @return The bytes for subject. */ @java.lang.Override - public com.google.protobuf.ByteString getSubjectBytes() { + public com.google.protobuf.ByteString + getSubjectBytes() { java.lang.Object ref = subject_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); subject_ = b; return b; } else { @@ -268,14 +235,11 @@ public com.google.protobuf.ByteString getSubjectBytes() { public static final int START_TIME_FIELD_NUMBER = 3; private com.google.protobuf.Timestamp startTime_; /** - * - * *
    * The time the certificate becomes valid.
    * 
* * .google.protobuf.Timestamp start_time = 3; - * * @return Whether the startTime field is set. */ @java.lang.Override @@ -283,14 +247,11 @@ public boolean hasStartTime() { return startTime_ != null; } /** - * - * *
    * The time the certificate becomes valid.
    * 
* * .google.protobuf.Timestamp start_time = 3; - * * @return The startTime. */ @java.lang.Override @@ -298,8 +259,6 @@ public com.google.protobuf.Timestamp getStartTime() { return startTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : startTime_; } /** - * - * *
    * The time the certificate becomes valid.
    * 
@@ -314,14 +273,11 @@ public com.google.protobuf.TimestampOrBuilder getStartTimeOrBuilder() { public static final int EXPIRY_TIME_FIELD_NUMBER = 4; private com.google.protobuf.Timestamp expiryTime_; /** - * - * *
    * The time the certificate becomes invalid.
    * 
* * .google.protobuf.Timestamp expiry_time = 4; - * * @return Whether the expiryTime field is set. */ @java.lang.Override @@ -329,14 +285,11 @@ public boolean hasExpiryTime() { return expiryTime_ != null; } /** - * - * *
    * The time the certificate becomes invalid.
    * 
* * .google.protobuf.Timestamp expiry_time = 4; - * * @return The expiryTime. */ @java.lang.Override @@ -344,8 +297,6 @@ public com.google.protobuf.Timestamp getExpiryTime() { return expiryTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : expiryTime_; } /** - * - * *
    * The time the certificate becomes invalid.
    * 
@@ -360,14 +311,11 @@ public com.google.protobuf.TimestampOrBuilder getExpiryTimeOrBuilder() { public static final int SIGNATURE_ALGORITHM_FIELD_NUMBER = 5; private volatile java.lang.Object signatureAlgorithm_; /** - * - * *
    * The algorithm used to sign the certificate.
    * 
* * string signature_algorithm = 5; - * * @return The signatureAlgorithm. */ @java.lang.Override @@ -376,29 +324,29 @@ public java.lang.String getSignatureAlgorithm() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); signatureAlgorithm_ = s; return s; } } /** - * - * *
    * The algorithm used to sign the certificate.
    * 
* * string signature_algorithm = 5; - * * @return The bytes for signatureAlgorithm. */ @java.lang.Override - public com.google.protobuf.ByteString getSignatureAlgorithmBytes() { + public com.google.protobuf.ByteString + getSignatureAlgorithmBytes() { java.lang.Object ref = signatureAlgorithm_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); signatureAlgorithm_ = b; return b; } else { @@ -409,14 +357,11 @@ public com.google.protobuf.ByteString getSignatureAlgorithmBytes() { public static final int PUBLIC_KEY_TYPE_FIELD_NUMBER = 6; private volatile java.lang.Object publicKeyType_; /** - * - * *
    * The type of public key in the certificate.
    * 
* * string public_key_type = 6; - * * @return The publicKeyType. */ @java.lang.Override @@ -425,29 +370,29 @@ public java.lang.String getPublicKeyType() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); publicKeyType_ = s; return s; } } /** - * - * *
    * The type of public key in the certificate.
    * 
* * string public_key_type = 6; - * * @return The bytes for publicKeyType. */ @java.lang.Override - public com.google.protobuf.ByteString getPublicKeyTypeBytes() { + public com.google.protobuf.ByteString + getPublicKeyTypeBytes() { java.lang.Object ref = publicKeyType_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); publicKeyType_ = b; return b; } else { @@ -456,7 +401,6 @@ public com.google.protobuf.ByteString getPublicKeyTypeBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -468,7 +412,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(issuer_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, issuer_); } @@ -503,10 +448,12 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, subject_); } if (startTime_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getStartTime()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(3, getStartTime()); } if (expiryTime_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getExpiryTime()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(4, getExpiryTime()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(signatureAlgorithm_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, signatureAlgorithm_); @@ -522,26 +469,31 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.iot.v1.X509CertificateDetails)) { return super.equals(obj); } - com.google.cloud.iot.v1.X509CertificateDetails other = - (com.google.cloud.iot.v1.X509CertificateDetails) obj; + com.google.cloud.iot.v1.X509CertificateDetails other = (com.google.cloud.iot.v1.X509CertificateDetails) obj; - if (!getIssuer().equals(other.getIssuer())) return false; - if (!getSubject().equals(other.getSubject())) return false; + if (!getIssuer() + .equals(other.getIssuer())) return false; + if (!getSubject() + .equals(other.getSubject())) return false; if (hasStartTime() != other.hasStartTime()) return false; if (hasStartTime()) { - if (!getStartTime().equals(other.getStartTime())) return false; + if (!getStartTime() + .equals(other.getStartTime())) return false; } if (hasExpiryTime() != other.hasExpiryTime()) return false; if (hasExpiryTime()) { - if (!getExpiryTime().equals(other.getExpiryTime())) return false; + if (!getExpiryTime() + .equals(other.getExpiryTime())) return false; } - if (!getSignatureAlgorithm().equals(other.getSignatureAlgorithm())) return false; - if (!getPublicKeyType().equals(other.getPublicKeyType())) return false; + if (!getSignatureAlgorithm() + .equals(other.getSignatureAlgorithm())) return false; + if (!getPublicKeyType() + .equals(other.getPublicKeyType())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -574,127 +526,118 @@ public int hashCode() { return hash; } - public static com.google.cloud.iot.v1.X509CertificateDetails parseFrom(java.nio.ByteBuffer data) + public static com.google.cloud.iot.v1.X509CertificateDetails parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.iot.v1.X509CertificateDetails parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.iot.v1.X509CertificateDetails parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.iot.v1.X509CertificateDetails parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.iot.v1.X509CertificateDetails parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.iot.v1.X509CertificateDetails parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.iot.v1.X509CertificateDetails 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.iot.v1.X509CertificateDetails parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.iot.v1.X509CertificateDetails parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.iot.v1.X509CertificateDetails parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.iot.v1.X509CertificateDetails parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.iot.v1.X509CertificateDetails parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.iot.v1.X509CertificateDetails parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.iot.v1.X509CertificateDetails prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Details of an X.509 certificate. For informational purposes only.
    * 
* * Protobuf type {@code google.cloud.iot.v1.X509CertificateDetails} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.iot.v1.X509CertificateDetails) com.google.cloud.iot.v1.X509CertificateDetailsOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.iot.v1.ResourcesProto - .internal_static_google_cloud_iot_v1_X509CertificateDetails_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.iot.v1.ResourcesProto.internal_static_google_cloud_iot_v1_X509CertificateDetails_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.iot.v1.ResourcesProto - .internal_static_google_cloud_iot_v1_X509CertificateDetails_fieldAccessorTable + return com.google.cloud.iot.v1.ResourcesProto.internal_static_google_cloud_iot_v1_X509CertificateDetails_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.iot.v1.X509CertificateDetails.class, - com.google.cloud.iot.v1.X509CertificateDetails.Builder.class); + com.google.cloud.iot.v1.X509CertificateDetails.class, com.google.cloud.iot.v1.X509CertificateDetails.Builder.class); } // Construct using com.google.cloud.iot.v1.X509CertificateDetails.newBuilder() @@ -702,15 +645,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(); @@ -738,9 +682,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.iot.v1.ResourcesProto - .internal_static_google_cloud_iot_v1_X509CertificateDetails_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.iot.v1.ResourcesProto.internal_static_google_cloud_iot_v1_X509CertificateDetails_descriptor; } @java.lang.Override @@ -759,8 +703,7 @@ public com.google.cloud.iot.v1.X509CertificateDetails build() { @java.lang.Override public com.google.cloud.iot.v1.X509CertificateDetails buildPartial() { - com.google.cloud.iot.v1.X509CertificateDetails result = - new com.google.cloud.iot.v1.X509CertificateDetails(this); + com.google.cloud.iot.v1.X509CertificateDetails result = new com.google.cloud.iot.v1.X509CertificateDetails(this); result.issuer_ = issuer_; result.subject_ = subject_; if (startTimeBuilder_ == null) { @@ -783,39 +726,38 @@ public com.google.cloud.iot.v1.X509CertificateDetails buildPartial() { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.iot.v1.X509CertificateDetails) { - return mergeFrom((com.google.cloud.iot.v1.X509CertificateDetails) other); + return mergeFrom((com.google.cloud.iot.v1.X509CertificateDetails)other); } else { super.mergeFrom(other); return this; @@ -877,20 +819,18 @@ public Builder mergeFrom( private java.lang.Object issuer_ = ""; /** - * - * *
      * The entity that signed the certificate.
      * 
* * string issuer = 1; - * * @return The issuer. */ public java.lang.String getIssuer() { java.lang.Object ref = issuer_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); issuer_ = s; return s; @@ -899,21 +839,20 @@ public java.lang.String getIssuer() { } } /** - * - * *
      * The entity that signed the certificate.
      * 
* * string issuer = 1; - * * @return The bytes for issuer. */ - public com.google.protobuf.ByteString getIssuerBytes() { + public com.google.protobuf.ByteString + getIssuerBytes() { java.lang.Object ref = issuer_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); issuer_ = b; return b; } else { @@ -921,61 +860,54 @@ public com.google.protobuf.ByteString getIssuerBytes() { } } /** - * - * *
      * The entity that signed the certificate.
      * 
* * string issuer = 1; - * * @param value The issuer to set. * @return This builder for chaining. */ - public Builder setIssuer(java.lang.String value) { + public Builder setIssuer( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + issuer_ = value; onChanged(); return this; } /** - * - * *
      * The entity that signed the certificate.
      * 
* * string issuer = 1; - * * @return This builder for chaining. */ public Builder clearIssuer() { - + issuer_ = getDefaultInstance().getIssuer(); onChanged(); return this; } /** - * - * *
      * The entity that signed the certificate.
      * 
* * string issuer = 1; - * * @param value The bytes for issuer to set. * @return This builder for chaining. */ - public Builder setIssuerBytes(com.google.protobuf.ByteString value) { + public Builder setIssuerBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + issuer_ = value; onChanged(); return this; @@ -983,20 +915,18 @@ public Builder setIssuerBytes(com.google.protobuf.ByteString value) { private java.lang.Object subject_ = ""; /** - * - * *
      * The entity the certificate and public key belong to.
      * 
* * string subject = 2; - * * @return The subject. */ public java.lang.String getSubject() { java.lang.Object ref = subject_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); subject_ = s; return s; @@ -1005,21 +935,20 @@ public java.lang.String getSubject() { } } /** - * - * *
      * The entity the certificate and public key belong to.
      * 
* * string subject = 2; - * * @return The bytes for subject. */ - public com.google.protobuf.ByteString getSubjectBytes() { + public com.google.protobuf.ByteString + getSubjectBytes() { java.lang.Object ref = subject_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); subject_ = b; return b; } else { @@ -1027,61 +956,54 @@ public com.google.protobuf.ByteString getSubjectBytes() { } } /** - * - * *
      * The entity the certificate and public key belong to.
      * 
* * string subject = 2; - * * @param value The subject to set. * @return This builder for chaining. */ - public Builder setSubject(java.lang.String value) { + public Builder setSubject( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + subject_ = value; onChanged(); return this; } /** - * - * *
      * The entity the certificate and public key belong to.
      * 
* * string subject = 2; - * * @return This builder for chaining. */ public Builder clearSubject() { - + subject_ = getDefaultInstance().getSubject(); onChanged(); return this; } /** - * - * *
      * The entity the certificate and public key belong to.
      * 
* * string subject = 2; - * * @param value The bytes for subject to set. * @return This builder for chaining. */ - public Builder setSubjectBytes(com.google.protobuf.ByteString value) { + public Builder setSubjectBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + subject_ = value; onChanged(); return this; @@ -1089,33 +1011,24 @@ public Builder setSubjectBytes(com.google.protobuf.ByteString value) { private com.google.protobuf.Timestamp startTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> - startTimeBuilder_; + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> startTimeBuilder_; /** - * - * *
      * The time the certificate becomes valid.
      * 
* * .google.protobuf.Timestamp start_time = 3; - * * @return Whether the startTime field is set. */ public boolean hasStartTime() { return startTimeBuilder_ != null || startTime_ != null; } /** - * - * *
      * The time the certificate becomes valid.
      * 
* * .google.protobuf.Timestamp start_time = 3; - * * @return The startTime. */ public com.google.protobuf.Timestamp getStartTime() { @@ -1126,8 +1039,6 @@ public com.google.protobuf.Timestamp getStartTime() { } } /** - * - * *
      * The time the certificate becomes valid.
      * 
@@ -1148,15 +1059,14 @@ public Builder setStartTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * The time the certificate becomes valid.
      * 
* * .google.protobuf.Timestamp start_time = 3; */ - public Builder setStartTime(com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setStartTime( + com.google.protobuf.Timestamp.Builder builderForValue) { if (startTimeBuilder_ == null) { startTime_ = builderForValue.build(); onChanged(); @@ -1167,8 +1077,6 @@ public Builder setStartTime(com.google.protobuf.Timestamp.Builder builderForValu return this; } /** - * - * *
      * The time the certificate becomes valid.
      * 
@@ -1179,7 +1087,7 @@ public Builder mergeStartTime(com.google.protobuf.Timestamp value) { if (startTimeBuilder_ == null) { if (startTime_ != null) { startTime_ = - com.google.protobuf.Timestamp.newBuilder(startTime_).mergeFrom(value).buildPartial(); + com.google.protobuf.Timestamp.newBuilder(startTime_).mergeFrom(value).buildPartial(); } else { startTime_ = value; } @@ -1191,8 +1099,6 @@ public Builder mergeStartTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * The time the certificate becomes valid.
      * 
@@ -1211,8 +1117,6 @@ public Builder clearStartTime() { return this; } /** - * - * *
      * The time the certificate becomes valid.
      * 
@@ -1220,13 +1124,11 @@ public Builder clearStartTime() { * .google.protobuf.Timestamp start_time = 3; */ public com.google.protobuf.Timestamp.Builder getStartTimeBuilder() { - + onChanged(); return getStartTimeFieldBuilder().getBuilder(); } /** - * - * *
      * The time the certificate becomes valid.
      * 
@@ -1237,12 +1139,11 @@ public com.google.protobuf.TimestampOrBuilder getStartTimeOrBuilder() { if (startTimeBuilder_ != null) { return startTimeBuilder_.getMessageOrBuilder(); } else { - return startTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : startTime_; + return startTime_ == null ? + com.google.protobuf.Timestamp.getDefaultInstance() : startTime_; } } /** - * - * *
      * The time the certificate becomes valid.
      * 
@@ -1250,17 +1151,14 @@ public com.google.protobuf.TimestampOrBuilder getStartTimeOrBuilder() { * .google.protobuf.Timestamp start_time = 3; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> getStartTimeFieldBuilder() { if (startTimeBuilder_ == null) { - startTimeBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder>( - getStartTime(), getParentForChildren(), isClean()); + startTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( + getStartTime(), + getParentForChildren(), + isClean()); startTime_ = null; } return startTimeBuilder_; @@ -1268,47 +1166,34 @@ public com.google.protobuf.TimestampOrBuilder getStartTimeOrBuilder() { private com.google.protobuf.Timestamp expiryTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> - expiryTimeBuilder_; + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> expiryTimeBuilder_; /** - * - * *
      * The time the certificate becomes invalid.
      * 
* * .google.protobuf.Timestamp expiry_time = 4; - * * @return Whether the expiryTime field is set. */ public boolean hasExpiryTime() { return expiryTimeBuilder_ != null || expiryTime_ != null; } /** - * - * *
      * The time the certificate becomes invalid.
      * 
* * .google.protobuf.Timestamp expiry_time = 4; - * * @return The expiryTime. */ public com.google.protobuf.Timestamp getExpiryTime() { if (expiryTimeBuilder_ == null) { - return expiryTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : expiryTime_; + return expiryTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : expiryTime_; } else { return expiryTimeBuilder_.getMessage(); } } /** - * - * *
      * The time the certificate becomes invalid.
      * 
@@ -1329,15 +1214,14 @@ public Builder setExpiryTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * The time the certificate becomes invalid.
      * 
* * .google.protobuf.Timestamp expiry_time = 4; */ - public Builder setExpiryTime(com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setExpiryTime( + com.google.protobuf.Timestamp.Builder builderForValue) { if (expiryTimeBuilder_ == null) { expiryTime_ = builderForValue.build(); onChanged(); @@ -1348,8 +1232,6 @@ public Builder setExpiryTime(com.google.protobuf.Timestamp.Builder builderForVal return this; } /** - * - * *
      * The time the certificate becomes invalid.
      * 
@@ -1360,7 +1242,7 @@ public Builder mergeExpiryTime(com.google.protobuf.Timestamp value) { if (expiryTimeBuilder_ == null) { if (expiryTime_ != null) { expiryTime_ = - com.google.protobuf.Timestamp.newBuilder(expiryTime_).mergeFrom(value).buildPartial(); + com.google.protobuf.Timestamp.newBuilder(expiryTime_).mergeFrom(value).buildPartial(); } else { expiryTime_ = value; } @@ -1372,8 +1254,6 @@ public Builder mergeExpiryTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * The time the certificate becomes invalid.
      * 
@@ -1392,8 +1272,6 @@ public Builder clearExpiryTime() { return this; } /** - * - * *
      * The time the certificate becomes invalid.
      * 
@@ -1401,13 +1279,11 @@ public Builder clearExpiryTime() { * .google.protobuf.Timestamp expiry_time = 4; */ public com.google.protobuf.Timestamp.Builder getExpiryTimeBuilder() { - + onChanged(); return getExpiryTimeFieldBuilder().getBuilder(); } /** - * - * *
      * The time the certificate becomes invalid.
      * 
@@ -1418,14 +1294,11 @@ public com.google.protobuf.TimestampOrBuilder getExpiryTimeOrBuilder() { if (expiryTimeBuilder_ != null) { return expiryTimeBuilder_.getMessageOrBuilder(); } else { - return expiryTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : expiryTime_; + return expiryTime_ == null ? + com.google.protobuf.Timestamp.getDefaultInstance() : expiryTime_; } } /** - * - * *
      * The time the certificate becomes invalid.
      * 
@@ -1433,17 +1306,14 @@ public com.google.protobuf.TimestampOrBuilder getExpiryTimeOrBuilder() { * .google.protobuf.Timestamp expiry_time = 4; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> getExpiryTimeFieldBuilder() { if (expiryTimeBuilder_ == null) { - expiryTimeBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder>( - getExpiryTime(), getParentForChildren(), isClean()); + expiryTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( + getExpiryTime(), + getParentForChildren(), + isClean()); expiryTime_ = null; } return expiryTimeBuilder_; @@ -1451,20 +1321,18 @@ public com.google.protobuf.TimestampOrBuilder getExpiryTimeOrBuilder() { private java.lang.Object signatureAlgorithm_ = ""; /** - * - * *
      * The algorithm used to sign the certificate.
      * 
* * string signature_algorithm = 5; - * * @return The signatureAlgorithm. */ public java.lang.String getSignatureAlgorithm() { java.lang.Object ref = signatureAlgorithm_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); signatureAlgorithm_ = s; return s; @@ -1473,21 +1341,20 @@ public java.lang.String getSignatureAlgorithm() { } } /** - * - * *
      * The algorithm used to sign the certificate.
      * 
* * string signature_algorithm = 5; - * * @return The bytes for signatureAlgorithm. */ - public com.google.protobuf.ByteString getSignatureAlgorithmBytes() { + public com.google.protobuf.ByteString + getSignatureAlgorithmBytes() { java.lang.Object ref = signatureAlgorithm_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); signatureAlgorithm_ = b; return b; } else { @@ -1495,61 +1362,54 @@ public com.google.protobuf.ByteString getSignatureAlgorithmBytes() { } } /** - * - * *
      * The algorithm used to sign the certificate.
      * 
* * string signature_algorithm = 5; - * * @param value The signatureAlgorithm to set. * @return This builder for chaining. */ - public Builder setSignatureAlgorithm(java.lang.String value) { + public Builder setSignatureAlgorithm( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + signatureAlgorithm_ = value; onChanged(); return this; } /** - * - * *
      * The algorithm used to sign the certificate.
      * 
* * string signature_algorithm = 5; - * * @return This builder for chaining. */ public Builder clearSignatureAlgorithm() { - + signatureAlgorithm_ = getDefaultInstance().getSignatureAlgorithm(); onChanged(); return this; } /** - * - * *
      * The algorithm used to sign the certificate.
      * 
* * string signature_algorithm = 5; - * * @param value The bytes for signatureAlgorithm to set. * @return This builder for chaining. */ - public Builder setSignatureAlgorithmBytes(com.google.protobuf.ByteString value) { + public Builder setSignatureAlgorithmBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + signatureAlgorithm_ = value; onChanged(); return this; @@ -1557,20 +1417,18 @@ public Builder setSignatureAlgorithmBytes(com.google.protobuf.ByteString value) private java.lang.Object publicKeyType_ = ""; /** - * - * *
      * The type of public key in the certificate.
      * 
* * string public_key_type = 6; - * * @return The publicKeyType. */ public java.lang.String getPublicKeyType() { java.lang.Object ref = publicKeyType_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); publicKeyType_ = s; return s; @@ -1579,21 +1437,20 @@ public java.lang.String getPublicKeyType() { } } /** - * - * *
      * The type of public key in the certificate.
      * 
* * string public_key_type = 6; - * * @return The bytes for publicKeyType. */ - public com.google.protobuf.ByteString getPublicKeyTypeBytes() { + public com.google.protobuf.ByteString + getPublicKeyTypeBytes() { java.lang.Object ref = publicKeyType_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); publicKeyType_ = b; return b; } else { @@ -1601,68 +1458,61 @@ public com.google.protobuf.ByteString getPublicKeyTypeBytes() { } } /** - * - * *
      * The type of public key in the certificate.
      * 
* * string public_key_type = 6; - * * @param value The publicKeyType to set. * @return This builder for chaining. */ - public Builder setPublicKeyType(java.lang.String value) { + public Builder setPublicKeyType( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + publicKeyType_ = value; onChanged(); return this; } /** - * - * *
      * The type of public key in the certificate.
      * 
* * string public_key_type = 6; - * * @return This builder for chaining. */ public Builder clearPublicKeyType() { - + publicKeyType_ = getDefaultInstance().getPublicKeyType(); onChanged(); return this; } /** - * - * *
      * The type of public key in the certificate.
      * 
* * string public_key_type = 6; - * * @param value The bytes for publicKeyType to set. * @return This builder for chaining. */ - public Builder setPublicKeyTypeBytes(com.google.protobuf.ByteString value) { + public Builder setPublicKeyTypeBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + publicKeyType_ = value; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1672,12 +1522,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.iot.v1.X509CertificateDetails) } // @@protoc_insertion_point(class_scope:google.cloud.iot.v1.X509CertificateDetails) private static final com.google.cloud.iot.v1.X509CertificateDetails DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.iot.v1.X509CertificateDetails(); } @@ -1686,16 +1536,16 @@ public static com.google.cloud.iot.v1.X509CertificateDetails getDefaultInstance( return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public X509CertificateDetails parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new X509CertificateDetails(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public X509CertificateDetails parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new X509CertificateDetails(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1710,4 +1560,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.iot.v1.X509CertificateDetails getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-iot-v1/src/main/java/com/google/cloud/iot/v1/X509CertificateDetailsOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-iot-v1/src/main/java/com/google/cloud/iot/v1/X509CertificateDetailsOrBuilder.java similarity index 74% rename from proto-google-cloud-iot-v1/src/main/java/com/google/cloud/iot/v1/X509CertificateDetailsOrBuilder.java rename to owl-bot-staging/v1/proto-google-cloud-iot-v1/src/main/java/com/google/cloud/iot/v1/X509CertificateDetailsOrBuilder.java index 743fff38..c4367f38 100644 --- a/proto-google-cloud-iot-v1/src/main/java/com/google/cloud/iot/v1/X509CertificateDetailsOrBuilder.java +++ b/owl-bot-staging/v1/proto-google-cloud-iot-v1/src/main/java/com/google/cloud/iot/v1/X509CertificateDetailsOrBuilder.java @@ -1,105 +1,71 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/iot/v1/resources.proto package com.google.cloud.iot.v1; -public interface X509CertificateDetailsOrBuilder - extends +public interface X509CertificateDetailsOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.iot.v1.X509CertificateDetails) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * The entity that signed the certificate.
    * 
* * string issuer = 1; - * * @return The issuer. */ java.lang.String getIssuer(); /** - * - * *
    * The entity that signed the certificate.
    * 
* * string issuer = 1; - * * @return The bytes for issuer. */ - com.google.protobuf.ByteString getIssuerBytes(); + com.google.protobuf.ByteString + getIssuerBytes(); /** - * - * *
    * The entity the certificate and public key belong to.
    * 
* * string subject = 2; - * * @return The subject. */ java.lang.String getSubject(); /** - * - * *
    * The entity the certificate and public key belong to.
    * 
* * string subject = 2; - * * @return The bytes for subject. */ - com.google.protobuf.ByteString getSubjectBytes(); + com.google.protobuf.ByteString + getSubjectBytes(); /** - * - * *
    * The time the certificate becomes valid.
    * 
* * .google.protobuf.Timestamp start_time = 3; - * * @return Whether the startTime field is set. */ boolean hasStartTime(); /** - * - * *
    * The time the certificate becomes valid.
    * 
* * .google.protobuf.Timestamp start_time = 3; - * * @return The startTime. */ com.google.protobuf.Timestamp getStartTime(); /** - * - * *
    * The time the certificate becomes valid.
    * 
@@ -109,32 +75,24 @@ public interface X509CertificateDetailsOrBuilder com.google.protobuf.TimestampOrBuilder getStartTimeOrBuilder(); /** - * - * *
    * The time the certificate becomes invalid.
    * 
* * .google.protobuf.Timestamp expiry_time = 4; - * * @return Whether the expiryTime field is set. */ boolean hasExpiryTime(); /** - * - * *
    * The time the certificate becomes invalid.
    * 
* * .google.protobuf.Timestamp expiry_time = 4; - * * @return The expiryTime. */ com.google.protobuf.Timestamp getExpiryTime(); /** - * - * *
    * The time the certificate becomes invalid.
    * 
@@ -144,52 +102,42 @@ public interface X509CertificateDetailsOrBuilder com.google.protobuf.TimestampOrBuilder getExpiryTimeOrBuilder(); /** - * - * *
    * The algorithm used to sign the certificate.
    * 
* * string signature_algorithm = 5; - * * @return The signatureAlgorithm. */ java.lang.String getSignatureAlgorithm(); /** - * - * *
    * The algorithm used to sign the certificate.
    * 
* * string signature_algorithm = 5; - * * @return The bytes for signatureAlgorithm. */ - com.google.protobuf.ByteString getSignatureAlgorithmBytes(); + com.google.protobuf.ByteString + getSignatureAlgorithmBytes(); /** - * - * *
    * The type of public key in the certificate.
    * 
* * string public_key_type = 6; - * * @return The publicKeyType. */ java.lang.String getPublicKeyType(); /** - * - * *
    * The type of public key in the certificate.
    * 
* * string public_key_type = 6; - * * @return The bytes for publicKeyType. */ - com.google.protobuf.ByteString getPublicKeyTypeBytes(); + com.google.protobuf.ByteString + getPublicKeyTypeBytes(); } diff --git a/proto-google-cloud-iot-v1/src/main/proto/google/cloud/iot/v1/device_manager.proto b/owl-bot-staging/v1/proto-google-cloud-iot-v1/src/main/proto/google/cloud/iot/v1/device_manager.proto similarity index 100% rename from proto-google-cloud-iot-v1/src/main/proto/google/cloud/iot/v1/device_manager.proto rename to owl-bot-staging/v1/proto-google-cloud-iot-v1/src/main/proto/google/cloud/iot/v1/device_manager.proto diff --git a/proto-google-cloud-iot-v1/src/main/proto/google/cloud/iot/v1/resources.proto b/owl-bot-staging/v1/proto-google-cloud-iot-v1/src/main/proto/google/cloud/iot/v1/resources.proto similarity index 100% rename from proto-google-cloud-iot-v1/src/main/proto/google/cloud/iot/v1/resources.proto rename to owl-bot-staging/v1/proto-google-cloud-iot-v1/src/main/proto/google/cloud/iot/v1/resources.proto diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/iot/v1/devicemanagerclient/binddevicetogateway/AsyncBindDeviceToGateway.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/iot/v1/devicemanagerclient/binddevicetogateway/AsyncBindDeviceToGateway.java new file mode 100644 index 00000000..e51f2e80 --- /dev/null +++ b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/iot/v1/devicemanagerclient/binddevicetogateway/AsyncBindDeviceToGateway.java @@ -0,0 +1,49 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.iot.v1.samples; + +// [START iot_v1_generated_devicemanagerclient_binddevicetogateway_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.iot.v1.BindDeviceToGatewayRequest; +import com.google.cloud.iot.v1.BindDeviceToGatewayResponse; +import com.google.cloud.iot.v1.DeviceManagerClient; +import com.google.cloud.iot.v1.RegistryName; + +public class AsyncBindDeviceToGateway { + + public static void main(String[] args) throws Exception { + asyncBindDeviceToGateway(); + } + + public static void asyncBindDeviceToGateway() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (DeviceManagerClient deviceManagerClient = DeviceManagerClient.create()) { + BindDeviceToGatewayRequest request = + BindDeviceToGatewayRequest.newBuilder() + .setParent(RegistryName.of("[PROJECT]", "[LOCATION]", "[REGISTRY]").toString()) + .setGatewayId("gatewayId-1354641793") + .setDeviceId("deviceId1109191185") + .build(); + ApiFuture future = + deviceManagerClient.bindDeviceToGatewayCallable().futureCall(request); + // Do something. + BindDeviceToGatewayResponse response = future.get(); + } + } +} +// [END iot_v1_generated_devicemanagerclient_binddevicetogateway_async] diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/iot/v1/devicemanagerclient/binddevicetogateway/SyncBindDeviceToGateway.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/iot/v1/devicemanagerclient/binddevicetogateway/SyncBindDeviceToGateway.java new file mode 100644 index 00000000..179618e0 --- /dev/null +++ b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/iot/v1/devicemanagerclient/binddevicetogateway/SyncBindDeviceToGateway.java @@ -0,0 +1,45 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.iot.v1.samples; + +// [START iot_v1_generated_devicemanagerclient_binddevicetogateway_sync] +import com.google.cloud.iot.v1.BindDeviceToGatewayRequest; +import com.google.cloud.iot.v1.BindDeviceToGatewayResponse; +import com.google.cloud.iot.v1.DeviceManagerClient; +import com.google.cloud.iot.v1.RegistryName; + +public class SyncBindDeviceToGateway { + + public static void main(String[] args) throws Exception { + syncBindDeviceToGateway(); + } + + public static void syncBindDeviceToGateway() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (DeviceManagerClient deviceManagerClient = DeviceManagerClient.create()) { + BindDeviceToGatewayRequest request = + BindDeviceToGatewayRequest.newBuilder() + .setParent(RegistryName.of("[PROJECT]", "[LOCATION]", "[REGISTRY]").toString()) + .setGatewayId("gatewayId-1354641793") + .setDeviceId("deviceId1109191185") + .build(); + BindDeviceToGatewayResponse response = deviceManagerClient.bindDeviceToGateway(request); + } + } +} +// [END iot_v1_generated_devicemanagerclient_binddevicetogateway_sync] diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/iot/v1/devicemanagerclient/binddevicetogateway/SyncBindDeviceToGatewayRegistrynameStringString.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/iot/v1/devicemanagerclient/binddevicetogateway/SyncBindDeviceToGatewayRegistrynameStringString.java new file mode 100644 index 00000000..394a07be --- /dev/null +++ b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/iot/v1/devicemanagerclient/binddevicetogateway/SyncBindDeviceToGatewayRegistrynameStringString.java @@ -0,0 +1,42 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.iot.v1.samples; + +// [START iot_v1_generated_devicemanagerclient_binddevicetogateway_registrynamestringstring_sync] +import com.google.cloud.iot.v1.BindDeviceToGatewayResponse; +import com.google.cloud.iot.v1.DeviceManagerClient; +import com.google.cloud.iot.v1.RegistryName; + +public class SyncBindDeviceToGatewayRegistrynameStringString { + + public static void main(String[] args) throws Exception { + syncBindDeviceToGatewayRegistrynameStringString(); + } + + public static void syncBindDeviceToGatewayRegistrynameStringString() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (DeviceManagerClient deviceManagerClient = DeviceManagerClient.create()) { + RegistryName parent = RegistryName.of("[PROJECT]", "[LOCATION]", "[REGISTRY]"); + String gatewayId = "gatewayId-1354641793"; + String deviceId = "deviceId1109191185"; + BindDeviceToGatewayResponse response = + deviceManagerClient.bindDeviceToGateway(parent, gatewayId, deviceId); + } + } +} +// [END iot_v1_generated_devicemanagerclient_binddevicetogateway_registrynamestringstring_sync] diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/iot/v1/devicemanagerclient/binddevicetogateway/SyncBindDeviceToGatewayStringStringString.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/iot/v1/devicemanagerclient/binddevicetogateway/SyncBindDeviceToGatewayStringStringString.java new file mode 100644 index 00000000..c6d96eb9 --- /dev/null +++ b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/iot/v1/devicemanagerclient/binddevicetogateway/SyncBindDeviceToGatewayStringStringString.java @@ -0,0 +1,42 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.iot.v1.samples; + +// [START iot_v1_generated_devicemanagerclient_binddevicetogateway_stringstringstring_sync] +import com.google.cloud.iot.v1.BindDeviceToGatewayResponse; +import com.google.cloud.iot.v1.DeviceManagerClient; +import com.google.cloud.iot.v1.RegistryName; + +public class SyncBindDeviceToGatewayStringStringString { + + public static void main(String[] args) throws Exception { + syncBindDeviceToGatewayStringStringString(); + } + + public static void syncBindDeviceToGatewayStringStringString() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (DeviceManagerClient deviceManagerClient = DeviceManagerClient.create()) { + String parent = RegistryName.of("[PROJECT]", "[LOCATION]", "[REGISTRY]").toString(); + String gatewayId = "gatewayId-1354641793"; + String deviceId = "deviceId1109191185"; + BindDeviceToGatewayResponse response = + deviceManagerClient.bindDeviceToGateway(parent, gatewayId, deviceId); + } + } +} +// [END iot_v1_generated_devicemanagerclient_binddevicetogateway_stringstringstring_sync] diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/iot/v1/devicemanagerclient/create/SyncCreateSetCredentialsProvider.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/iot/v1/devicemanagerclient/create/SyncCreateSetCredentialsProvider.java new file mode 100644 index 00000000..21f36841 --- /dev/null +++ b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/iot/v1/devicemanagerclient/create/SyncCreateSetCredentialsProvider.java @@ -0,0 +1,41 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.iot.v1.samples; + +// [START iot_v1_generated_devicemanagerclient_create_setcredentialsprovider_sync] +import com.google.api.gax.core.FixedCredentialsProvider; +import com.google.cloud.iot.v1.DeviceManagerClient; +import com.google.cloud.iot.v1.DeviceManagerSettings; +import com.google.cloud.iot.v1.myCredentials; + +public class SyncCreateSetCredentialsProvider { + + public static void main(String[] args) throws Exception { + syncCreateSetCredentialsProvider(); + } + + public static void syncCreateSetCredentialsProvider() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + DeviceManagerSettings deviceManagerSettings = + DeviceManagerSettings.newBuilder() + .setCredentialsProvider(FixedCredentialsProvider.create(myCredentials)) + .build(); + DeviceManagerClient deviceManagerClient = DeviceManagerClient.create(deviceManagerSettings); + } +} +// [END iot_v1_generated_devicemanagerclient_create_setcredentialsprovider_sync] diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/iot/v1/devicemanagerclient/create/SyncCreateSetCredentialsProvider1.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/iot/v1/devicemanagerclient/create/SyncCreateSetCredentialsProvider1.java new file mode 100644 index 00000000..7da39d5a --- /dev/null +++ b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/iot/v1/devicemanagerclient/create/SyncCreateSetCredentialsProvider1.java @@ -0,0 +1,40 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.iot.v1.samples; + +// [START iot_v1_generated_devicemanagerclient_create_setcredentialsprovider1_sync] +import com.google.cloud.iot.v1.DeviceManagerClient; +import com.google.cloud.iot.v1.DeviceManagerSettings; + +public class SyncCreateSetCredentialsProvider1 { + + public static void main(String[] args) throws Exception { + syncCreateSetCredentialsProvider1(); + } + + public static void syncCreateSetCredentialsProvider1() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + DeviceManagerSettings deviceManagerSettings = + DeviceManagerSettings.newBuilder() + .setTransportChannelProvider( + DeviceManagerSettings.defaultHttpJsonTransportProviderBuilder().build()) + .build(); + DeviceManagerClient deviceManagerClient = DeviceManagerClient.create(deviceManagerSettings); + } +} +// [END iot_v1_generated_devicemanagerclient_create_setcredentialsprovider1_sync] diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/iot/v1/devicemanagerclient/create/SyncCreateSetEndpoint.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/iot/v1/devicemanagerclient/create/SyncCreateSetEndpoint.java new file mode 100644 index 00000000..0901ca65 --- /dev/null +++ b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/iot/v1/devicemanagerclient/create/SyncCreateSetEndpoint.java @@ -0,0 +1,38 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.iot.v1.samples; + +// [START iot_v1_generated_devicemanagerclient_create_setendpoint_sync] +import com.google.cloud.iot.v1.DeviceManagerClient; +import com.google.cloud.iot.v1.DeviceManagerSettings; +import com.google.cloud.iot.v1.myEndpoint; + +public class SyncCreateSetEndpoint { + + public static void main(String[] args) throws Exception { + syncCreateSetEndpoint(); + } + + public static void syncCreateSetEndpoint() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + DeviceManagerSettings deviceManagerSettings = + DeviceManagerSettings.newBuilder().setEndpoint(myEndpoint).build(); + DeviceManagerClient deviceManagerClient = DeviceManagerClient.create(deviceManagerSettings); + } +} +// [END iot_v1_generated_devicemanagerclient_create_setendpoint_sync] diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/iot/v1/devicemanagerclient/createdevice/AsyncCreateDevice.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/iot/v1/devicemanagerclient/createdevice/AsyncCreateDevice.java new file mode 100644 index 00000000..352b065f --- /dev/null +++ b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/iot/v1/devicemanagerclient/createdevice/AsyncCreateDevice.java @@ -0,0 +1,47 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.iot.v1.samples; + +// [START iot_v1_generated_devicemanagerclient_createdevice_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.iot.v1.CreateDeviceRequest; +import com.google.cloud.iot.v1.Device; +import com.google.cloud.iot.v1.DeviceManagerClient; +import com.google.cloud.iot.v1.RegistryName; + +public class AsyncCreateDevice { + + public static void main(String[] args) throws Exception { + asyncCreateDevice(); + } + + public static void asyncCreateDevice() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (DeviceManagerClient deviceManagerClient = DeviceManagerClient.create()) { + CreateDeviceRequest request = + CreateDeviceRequest.newBuilder() + .setParent(RegistryName.of("[PROJECT]", "[LOCATION]", "[REGISTRY]").toString()) + .setDevice(Device.newBuilder().build()) + .build(); + ApiFuture future = deviceManagerClient.createDeviceCallable().futureCall(request); + // Do something. + Device response = future.get(); + } + } +} +// [END iot_v1_generated_devicemanagerclient_createdevice_async] diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/iot/v1/devicemanagerclient/createdevice/SyncCreateDevice.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/iot/v1/devicemanagerclient/createdevice/SyncCreateDevice.java new file mode 100644 index 00000000..a9b26d86 --- /dev/null +++ b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/iot/v1/devicemanagerclient/createdevice/SyncCreateDevice.java @@ -0,0 +1,44 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.iot.v1.samples; + +// [START iot_v1_generated_devicemanagerclient_createdevice_sync] +import com.google.cloud.iot.v1.CreateDeviceRequest; +import com.google.cloud.iot.v1.Device; +import com.google.cloud.iot.v1.DeviceManagerClient; +import com.google.cloud.iot.v1.RegistryName; + +public class SyncCreateDevice { + + public static void main(String[] args) throws Exception { + syncCreateDevice(); + } + + public static void syncCreateDevice() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (DeviceManagerClient deviceManagerClient = DeviceManagerClient.create()) { + CreateDeviceRequest request = + CreateDeviceRequest.newBuilder() + .setParent(RegistryName.of("[PROJECT]", "[LOCATION]", "[REGISTRY]").toString()) + .setDevice(Device.newBuilder().build()) + .build(); + Device response = deviceManagerClient.createDevice(request); + } + } +} +// [END iot_v1_generated_devicemanagerclient_createdevice_sync] diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/iot/v1/devicemanagerclient/createdevice/SyncCreateDeviceRegistrynameDevice.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/iot/v1/devicemanagerclient/createdevice/SyncCreateDeviceRegistrynameDevice.java new file mode 100644 index 00000000..9b748532 --- /dev/null +++ b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/iot/v1/devicemanagerclient/createdevice/SyncCreateDeviceRegistrynameDevice.java @@ -0,0 +1,40 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.iot.v1.samples; + +// [START iot_v1_generated_devicemanagerclient_createdevice_registrynamedevice_sync] +import com.google.cloud.iot.v1.Device; +import com.google.cloud.iot.v1.DeviceManagerClient; +import com.google.cloud.iot.v1.RegistryName; + +public class SyncCreateDeviceRegistrynameDevice { + + public static void main(String[] args) throws Exception { + syncCreateDeviceRegistrynameDevice(); + } + + public static void syncCreateDeviceRegistrynameDevice() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (DeviceManagerClient deviceManagerClient = DeviceManagerClient.create()) { + RegistryName parent = RegistryName.of("[PROJECT]", "[LOCATION]", "[REGISTRY]"); + Device device = Device.newBuilder().build(); + Device response = deviceManagerClient.createDevice(parent, device); + } + } +} +// [END iot_v1_generated_devicemanagerclient_createdevice_registrynamedevice_sync] diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/iot/v1/devicemanagerclient/createdevice/SyncCreateDeviceStringDevice.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/iot/v1/devicemanagerclient/createdevice/SyncCreateDeviceStringDevice.java new file mode 100644 index 00000000..faa03a58 --- /dev/null +++ b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/iot/v1/devicemanagerclient/createdevice/SyncCreateDeviceStringDevice.java @@ -0,0 +1,40 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.iot.v1.samples; + +// [START iot_v1_generated_devicemanagerclient_createdevice_stringdevice_sync] +import com.google.cloud.iot.v1.Device; +import com.google.cloud.iot.v1.DeviceManagerClient; +import com.google.cloud.iot.v1.RegistryName; + +public class SyncCreateDeviceStringDevice { + + public static void main(String[] args) throws Exception { + syncCreateDeviceStringDevice(); + } + + public static void syncCreateDeviceStringDevice() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (DeviceManagerClient deviceManagerClient = DeviceManagerClient.create()) { + String parent = RegistryName.of("[PROJECT]", "[LOCATION]", "[REGISTRY]").toString(); + Device device = Device.newBuilder().build(); + Device response = deviceManagerClient.createDevice(parent, device); + } + } +} +// [END iot_v1_generated_devicemanagerclient_createdevice_stringdevice_sync] diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/iot/v1/devicemanagerclient/createdeviceregistry/AsyncCreateDeviceRegistry.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/iot/v1/devicemanagerclient/createdeviceregistry/AsyncCreateDeviceRegistry.java new file mode 100644 index 00000000..89f18d9f --- /dev/null +++ b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/iot/v1/devicemanagerclient/createdeviceregistry/AsyncCreateDeviceRegistry.java @@ -0,0 +1,48 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.iot.v1.samples; + +// [START iot_v1_generated_devicemanagerclient_createdeviceregistry_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.iot.v1.CreateDeviceRegistryRequest; +import com.google.cloud.iot.v1.DeviceManagerClient; +import com.google.cloud.iot.v1.DeviceRegistry; +import com.google.cloud.iot.v1.LocationName; + +public class AsyncCreateDeviceRegistry { + + public static void main(String[] args) throws Exception { + asyncCreateDeviceRegistry(); + } + + public static void asyncCreateDeviceRegistry() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (DeviceManagerClient deviceManagerClient = DeviceManagerClient.create()) { + CreateDeviceRegistryRequest request = + CreateDeviceRegistryRequest.newBuilder() + .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + .setDeviceRegistry(DeviceRegistry.newBuilder().build()) + .build(); + ApiFuture future = + deviceManagerClient.createDeviceRegistryCallable().futureCall(request); + // Do something. + DeviceRegistry response = future.get(); + } + } +} +// [END iot_v1_generated_devicemanagerclient_createdeviceregistry_async] diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/iot/v1/devicemanagerclient/createdeviceregistry/SyncCreateDeviceRegistry.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/iot/v1/devicemanagerclient/createdeviceregistry/SyncCreateDeviceRegistry.java new file mode 100644 index 00000000..b519382d --- /dev/null +++ b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/iot/v1/devicemanagerclient/createdeviceregistry/SyncCreateDeviceRegistry.java @@ -0,0 +1,44 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.iot.v1.samples; + +// [START iot_v1_generated_devicemanagerclient_createdeviceregistry_sync] +import com.google.cloud.iot.v1.CreateDeviceRegistryRequest; +import com.google.cloud.iot.v1.DeviceManagerClient; +import com.google.cloud.iot.v1.DeviceRegistry; +import com.google.cloud.iot.v1.LocationName; + +public class SyncCreateDeviceRegistry { + + public static void main(String[] args) throws Exception { + syncCreateDeviceRegistry(); + } + + public static void syncCreateDeviceRegistry() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (DeviceManagerClient deviceManagerClient = DeviceManagerClient.create()) { + CreateDeviceRegistryRequest request = + CreateDeviceRegistryRequest.newBuilder() + .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + .setDeviceRegistry(DeviceRegistry.newBuilder().build()) + .build(); + DeviceRegistry response = deviceManagerClient.createDeviceRegistry(request); + } + } +} +// [END iot_v1_generated_devicemanagerclient_createdeviceregistry_sync] diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/iot/v1/devicemanagerclient/createdeviceregistry/SyncCreateDeviceRegistryLocationnameDeviceregistry.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/iot/v1/devicemanagerclient/createdeviceregistry/SyncCreateDeviceRegistryLocationnameDeviceregistry.java new file mode 100644 index 00000000..57280b3d --- /dev/null +++ b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/iot/v1/devicemanagerclient/createdeviceregistry/SyncCreateDeviceRegistryLocationnameDeviceregistry.java @@ -0,0 +1,40 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.iot.v1.samples; + +// [START iot_v1_generated_devicemanagerclient_createdeviceregistry_locationnamedeviceregistry_sync] +import com.google.cloud.iot.v1.DeviceManagerClient; +import com.google.cloud.iot.v1.DeviceRegistry; +import com.google.cloud.iot.v1.LocationName; + +public class SyncCreateDeviceRegistryLocationnameDeviceregistry { + + public static void main(String[] args) throws Exception { + syncCreateDeviceRegistryLocationnameDeviceregistry(); + } + + public static void syncCreateDeviceRegistryLocationnameDeviceregistry() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (DeviceManagerClient deviceManagerClient = DeviceManagerClient.create()) { + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + DeviceRegistry deviceRegistry = DeviceRegistry.newBuilder().build(); + DeviceRegistry response = deviceManagerClient.createDeviceRegistry(parent, deviceRegistry); + } + } +} +// [END iot_v1_generated_devicemanagerclient_createdeviceregistry_locationnamedeviceregistry_sync] diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/iot/v1/devicemanagerclient/createdeviceregistry/SyncCreateDeviceRegistryStringDeviceregistry.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/iot/v1/devicemanagerclient/createdeviceregistry/SyncCreateDeviceRegistryStringDeviceregistry.java new file mode 100644 index 00000000..7e654e50 --- /dev/null +++ b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/iot/v1/devicemanagerclient/createdeviceregistry/SyncCreateDeviceRegistryStringDeviceregistry.java @@ -0,0 +1,40 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.iot.v1.samples; + +// [START iot_v1_generated_devicemanagerclient_createdeviceregistry_stringdeviceregistry_sync] +import com.google.cloud.iot.v1.DeviceManagerClient; +import com.google.cloud.iot.v1.DeviceRegistry; +import com.google.cloud.iot.v1.LocationName; + +public class SyncCreateDeviceRegistryStringDeviceregistry { + + public static void main(String[] args) throws Exception { + syncCreateDeviceRegistryStringDeviceregistry(); + } + + public static void syncCreateDeviceRegistryStringDeviceregistry() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (DeviceManagerClient deviceManagerClient = DeviceManagerClient.create()) { + String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString(); + DeviceRegistry deviceRegistry = DeviceRegistry.newBuilder().build(); + DeviceRegistry response = deviceManagerClient.createDeviceRegistry(parent, deviceRegistry); + } + } +} +// [END iot_v1_generated_devicemanagerclient_createdeviceregistry_stringdeviceregistry_sync] diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/iot/v1/devicemanagerclient/deletedevice/AsyncDeleteDevice.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/iot/v1/devicemanagerclient/deletedevice/AsyncDeleteDevice.java new file mode 100644 index 00000000..4a0dc80b --- /dev/null +++ b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/iot/v1/devicemanagerclient/deletedevice/AsyncDeleteDevice.java @@ -0,0 +1,47 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.iot.v1.samples; + +// [START iot_v1_generated_devicemanagerclient_deletedevice_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.iot.v1.DeleteDeviceRequest; +import com.google.cloud.iot.v1.DeviceManagerClient; +import com.google.cloud.iot.v1.DeviceName; +import com.google.protobuf.Empty; + +public class AsyncDeleteDevice { + + public static void main(String[] args) throws Exception { + asyncDeleteDevice(); + } + + public static void asyncDeleteDevice() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (DeviceManagerClient deviceManagerClient = DeviceManagerClient.create()) { + DeleteDeviceRequest request = + DeleteDeviceRequest.newBuilder() + .setName( + DeviceName.of("[PROJECT]", "[LOCATION]", "[REGISTRY]", "[DEVICE]").toString()) + .build(); + ApiFuture future = deviceManagerClient.deleteDeviceCallable().futureCall(request); + // Do something. + future.get(); + } + } +} +// [END iot_v1_generated_devicemanagerclient_deletedevice_async] diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/iot/v1/devicemanagerclient/deletedevice/SyncDeleteDevice.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/iot/v1/devicemanagerclient/deletedevice/SyncDeleteDevice.java new file mode 100644 index 00000000..197e737a --- /dev/null +++ b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/iot/v1/devicemanagerclient/deletedevice/SyncDeleteDevice.java @@ -0,0 +1,44 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.iot.v1.samples; + +// [START iot_v1_generated_devicemanagerclient_deletedevice_sync] +import com.google.cloud.iot.v1.DeleteDeviceRequest; +import com.google.cloud.iot.v1.DeviceManagerClient; +import com.google.cloud.iot.v1.DeviceName; +import com.google.protobuf.Empty; + +public class SyncDeleteDevice { + + public static void main(String[] args) throws Exception { + syncDeleteDevice(); + } + + public static void syncDeleteDevice() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (DeviceManagerClient deviceManagerClient = DeviceManagerClient.create()) { + DeleteDeviceRequest request = + DeleteDeviceRequest.newBuilder() + .setName( + DeviceName.of("[PROJECT]", "[LOCATION]", "[REGISTRY]", "[DEVICE]").toString()) + .build(); + deviceManagerClient.deleteDevice(request); + } + } +} +// [END iot_v1_generated_devicemanagerclient_deletedevice_sync] diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/iot/v1/devicemanagerclient/deletedevice/SyncDeleteDeviceDevicename.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/iot/v1/devicemanagerclient/deletedevice/SyncDeleteDeviceDevicename.java new file mode 100644 index 00000000..eecd3801 --- /dev/null +++ b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/iot/v1/devicemanagerclient/deletedevice/SyncDeleteDeviceDevicename.java @@ -0,0 +1,39 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.iot.v1.samples; + +// [START iot_v1_generated_devicemanagerclient_deletedevice_devicename_sync] +import com.google.cloud.iot.v1.DeviceManagerClient; +import com.google.cloud.iot.v1.DeviceName; +import com.google.protobuf.Empty; + +public class SyncDeleteDeviceDevicename { + + public static void main(String[] args) throws Exception { + syncDeleteDeviceDevicename(); + } + + public static void syncDeleteDeviceDevicename() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (DeviceManagerClient deviceManagerClient = DeviceManagerClient.create()) { + DeviceName name = DeviceName.of("[PROJECT]", "[LOCATION]", "[REGISTRY]", "[DEVICE]"); + deviceManagerClient.deleteDevice(name); + } + } +} +// [END iot_v1_generated_devicemanagerclient_deletedevice_devicename_sync] diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/iot/v1/devicemanagerclient/deletedevice/SyncDeleteDeviceString.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/iot/v1/devicemanagerclient/deletedevice/SyncDeleteDeviceString.java new file mode 100644 index 00000000..ac3f82c2 --- /dev/null +++ b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/iot/v1/devicemanagerclient/deletedevice/SyncDeleteDeviceString.java @@ -0,0 +1,39 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.iot.v1.samples; + +// [START iot_v1_generated_devicemanagerclient_deletedevice_string_sync] +import com.google.cloud.iot.v1.DeviceManagerClient; +import com.google.cloud.iot.v1.DeviceName; +import com.google.protobuf.Empty; + +public class SyncDeleteDeviceString { + + public static void main(String[] args) throws Exception { + syncDeleteDeviceString(); + } + + public static void syncDeleteDeviceString() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (DeviceManagerClient deviceManagerClient = DeviceManagerClient.create()) { + String name = DeviceName.of("[PROJECT]", "[LOCATION]", "[REGISTRY]", "[DEVICE]").toString(); + deviceManagerClient.deleteDevice(name); + } + } +} +// [END iot_v1_generated_devicemanagerclient_deletedevice_string_sync] diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/iot/v1/devicemanagerclient/deletedeviceregistry/AsyncDeleteDeviceRegistry.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/iot/v1/devicemanagerclient/deletedeviceregistry/AsyncDeleteDeviceRegistry.java new file mode 100644 index 00000000..5fb47ba4 --- /dev/null +++ b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/iot/v1/devicemanagerclient/deletedeviceregistry/AsyncDeleteDeviceRegistry.java @@ -0,0 +1,47 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.iot.v1.samples; + +// [START iot_v1_generated_devicemanagerclient_deletedeviceregistry_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.iot.v1.DeleteDeviceRegistryRequest; +import com.google.cloud.iot.v1.DeviceManagerClient; +import com.google.cloud.iot.v1.RegistryName; +import com.google.protobuf.Empty; + +public class AsyncDeleteDeviceRegistry { + + public static void main(String[] args) throws Exception { + asyncDeleteDeviceRegistry(); + } + + public static void asyncDeleteDeviceRegistry() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (DeviceManagerClient deviceManagerClient = DeviceManagerClient.create()) { + DeleteDeviceRegistryRequest request = + DeleteDeviceRegistryRequest.newBuilder() + .setName(RegistryName.of("[PROJECT]", "[LOCATION]", "[REGISTRY]").toString()) + .build(); + ApiFuture future = + deviceManagerClient.deleteDeviceRegistryCallable().futureCall(request); + // Do something. + future.get(); + } + } +} +// [END iot_v1_generated_devicemanagerclient_deletedeviceregistry_async] diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/iot/v1/devicemanagerclient/deletedeviceregistry/SyncDeleteDeviceRegistry.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/iot/v1/devicemanagerclient/deletedeviceregistry/SyncDeleteDeviceRegistry.java new file mode 100644 index 00000000..5f1de94a --- /dev/null +++ b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/iot/v1/devicemanagerclient/deletedeviceregistry/SyncDeleteDeviceRegistry.java @@ -0,0 +1,43 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.iot.v1.samples; + +// [START iot_v1_generated_devicemanagerclient_deletedeviceregistry_sync] +import com.google.cloud.iot.v1.DeleteDeviceRegistryRequest; +import com.google.cloud.iot.v1.DeviceManagerClient; +import com.google.cloud.iot.v1.RegistryName; +import com.google.protobuf.Empty; + +public class SyncDeleteDeviceRegistry { + + public static void main(String[] args) throws Exception { + syncDeleteDeviceRegistry(); + } + + public static void syncDeleteDeviceRegistry() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (DeviceManagerClient deviceManagerClient = DeviceManagerClient.create()) { + DeleteDeviceRegistryRequest request = + DeleteDeviceRegistryRequest.newBuilder() + .setName(RegistryName.of("[PROJECT]", "[LOCATION]", "[REGISTRY]").toString()) + .build(); + deviceManagerClient.deleteDeviceRegistry(request); + } + } +} +// [END iot_v1_generated_devicemanagerclient_deletedeviceregistry_sync] diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/iot/v1/devicemanagerclient/deletedeviceregistry/SyncDeleteDeviceRegistryRegistryname.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/iot/v1/devicemanagerclient/deletedeviceregistry/SyncDeleteDeviceRegistryRegistryname.java new file mode 100644 index 00000000..de0a5a14 --- /dev/null +++ b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/iot/v1/devicemanagerclient/deletedeviceregistry/SyncDeleteDeviceRegistryRegistryname.java @@ -0,0 +1,39 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.iot.v1.samples; + +// [START iot_v1_generated_devicemanagerclient_deletedeviceregistry_registryname_sync] +import com.google.cloud.iot.v1.DeviceManagerClient; +import com.google.cloud.iot.v1.RegistryName; +import com.google.protobuf.Empty; + +public class SyncDeleteDeviceRegistryRegistryname { + + public static void main(String[] args) throws Exception { + syncDeleteDeviceRegistryRegistryname(); + } + + public static void syncDeleteDeviceRegistryRegistryname() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (DeviceManagerClient deviceManagerClient = DeviceManagerClient.create()) { + RegistryName name = RegistryName.of("[PROJECT]", "[LOCATION]", "[REGISTRY]"); + deviceManagerClient.deleteDeviceRegistry(name); + } + } +} +// [END iot_v1_generated_devicemanagerclient_deletedeviceregistry_registryname_sync] diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/iot/v1/devicemanagerclient/deletedeviceregistry/SyncDeleteDeviceRegistryString.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/iot/v1/devicemanagerclient/deletedeviceregistry/SyncDeleteDeviceRegistryString.java new file mode 100644 index 00000000..fa48c8a0 --- /dev/null +++ b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/iot/v1/devicemanagerclient/deletedeviceregistry/SyncDeleteDeviceRegistryString.java @@ -0,0 +1,39 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.iot.v1.samples; + +// [START iot_v1_generated_devicemanagerclient_deletedeviceregistry_string_sync] +import com.google.cloud.iot.v1.DeviceManagerClient; +import com.google.cloud.iot.v1.RegistryName; +import com.google.protobuf.Empty; + +public class SyncDeleteDeviceRegistryString { + + public static void main(String[] args) throws Exception { + syncDeleteDeviceRegistryString(); + } + + public static void syncDeleteDeviceRegistryString() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (DeviceManagerClient deviceManagerClient = DeviceManagerClient.create()) { + String name = RegistryName.of("[PROJECT]", "[LOCATION]", "[REGISTRY]").toString(); + deviceManagerClient.deleteDeviceRegistry(name); + } + } +} +// [END iot_v1_generated_devicemanagerclient_deletedeviceregistry_string_sync] diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/iot/v1/devicemanagerclient/getdevice/AsyncGetDevice.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/iot/v1/devicemanagerclient/getdevice/AsyncGetDevice.java new file mode 100644 index 00000000..a7bde5c0 --- /dev/null +++ b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/iot/v1/devicemanagerclient/getdevice/AsyncGetDevice.java @@ -0,0 +1,49 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.iot.v1.samples; + +// [START iot_v1_generated_devicemanagerclient_getdevice_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.iot.v1.Device; +import com.google.cloud.iot.v1.DeviceManagerClient; +import com.google.cloud.iot.v1.DeviceName; +import com.google.cloud.iot.v1.GetDeviceRequest; +import com.google.protobuf.FieldMask; + +public class AsyncGetDevice { + + public static void main(String[] args) throws Exception { + asyncGetDevice(); + } + + public static void asyncGetDevice() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (DeviceManagerClient deviceManagerClient = DeviceManagerClient.create()) { + GetDeviceRequest request = + GetDeviceRequest.newBuilder() + .setName( + DeviceName.of("[PROJECT]", "[LOCATION]", "[REGISTRY]", "[DEVICE]").toString()) + .setFieldMask(FieldMask.newBuilder().build()) + .build(); + ApiFuture future = deviceManagerClient.getDeviceCallable().futureCall(request); + // Do something. + Device response = future.get(); + } + } +} +// [END iot_v1_generated_devicemanagerclient_getdevice_async] diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/iot/v1/devicemanagerclient/getdevice/SyncGetDevice.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/iot/v1/devicemanagerclient/getdevice/SyncGetDevice.java new file mode 100644 index 00000000..a8a0c391 --- /dev/null +++ b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/iot/v1/devicemanagerclient/getdevice/SyncGetDevice.java @@ -0,0 +1,46 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.iot.v1.samples; + +// [START iot_v1_generated_devicemanagerclient_getdevice_sync] +import com.google.cloud.iot.v1.Device; +import com.google.cloud.iot.v1.DeviceManagerClient; +import com.google.cloud.iot.v1.DeviceName; +import com.google.cloud.iot.v1.GetDeviceRequest; +import com.google.protobuf.FieldMask; + +public class SyncGetDevice { + + public static void main(String[] args) throws Exception { + syncGetDevice(); + } + + public static void syncGetDevice() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (DeviceManagerClient deviceManagerClient = DeviceManagerClient.create()) { + GetDeviceRequest request = + GetDeviceRequest.newBuilder() + .setName( + DeviceName.of("[PROJECT]", "[LOCATION]", "[REGISTRY]", "[DEVICE]").toString()) + .setFieldMask(FieldMask.newBuilder().build()) + .build(); + Device response = deviceManagerClient.getDevice(request); + } + } +} +// [END iot_v1_generated_devicemanagerclient_getdevice_sync] diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/iot/v1/devicemanagerclient/getdevice/SyncGetDeviceDevicename.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/iot/v1/devicemanagerclient/getdevice/SyncGetDeviceDevicename.java new file mode 100644 index 00000000..b914e7c8 --- /dev/null +++ b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/iot/v1/devicemanagerclient/getdevice/SyncGetDeviceDevicename.java @@ -0,0 +1,39 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.iot.v1.samples; + +// [START iot_v1_generated_devicemanagerclient_getdevice_devicename_sync] +import com.google.cloud.iot.v1.Device; +import com.google.cloud.iot.v1.DeviceManagerClient; +import com.google.cloud.iot.v1.DeviceName; + +public class SyncGetDeviceDevicename { + + public static void main(String[] args) throws Exception { + syncGetDeviceDevicename(); + } + + public static void syncGetDeviceDevicename() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (DeviceManagerClient deviceManagerClient = DeviceManagerClient.create()) { + DeviceName name = DeviceName.of("[PROJECT]", "[LOCATION]", "[REGISTRY]", "[DEVICE]"); + Device response = deviceManagerClient.getDevice(name); + } + } +} +// [END iot_v1_generated_devicemanagerclient_getdevice_devicename_sync] diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/iot/v1/devicemanagerclient/getdevice/SyncGetDeviceString.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/iot/v1/devicemanagerclient/getdevice/SyncGetDeviceString.java new file mode 100644 index 00000000..158a4682 --- /dev/null +++ b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/iot/v1/devicemanagerclient/getdevice/SyncGetDeviceString.java @@ -0,0 +1,39 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.iot.v1.samples; + +// [START iot_v1_generated_devicemanagerclient_getdevice_string_sync] +import com.google.cloud.iot.v1.Device; +import com.google.cloud.iot.v1.DeviceManagerClient; +import com.google.cloud.iot.v1.DeviceName; + +public class SyncGetDeviceString { + + public static void main(String[] args) throws Exception { + syncGetDeviceString(); + } + + public static void syncGetDeviceString() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (DeviceManagerClient deviceManagerClient = DeviceManagerClient.create()) { + String name = DeviceName.of("[PROJECT]", "[LOCATION]", "[REGISTRY]", "[DEVICE]").toString(); + Device response = deviceManagerClient.getDevice(name); + } + } +} +// [END iot_v1_generated_devicemanagerclient_getdevice_string_sync] diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/iot/v1/devicemanagerclient/getdeviceregistry/AsyncGetDeviceRegistry.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/iot/v1/devicemanagerclient/getdeviceregistry/AsyncGetDeviceRegistry.java new file mode 100644 index 00000000..25b5322c --- /dev/null +++ b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/iot/v1/devicemanagerclient/getdeviceregistry/AsyncGetDeviceRegistry.java @@ -0,0 +1,47 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.iot.v1.samples; + +// [START iot_v1_generated_devicemanagerclient_getdeviceregistry_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.iot.v1.DeviceManagerClient; +import com.google.cloud.iot.v1.DeviceRegistry; +import com.google.cloud.iot.v1.GetDeviceRegistryRequest; +import com.google.cloud.iot.v1.RegistryName; + +public class AsyncGetDeviceRegistry { + + public static void main(String[] args) throws Exception { + asyncGetDeviceRegistry(); + } + + public static void asyncGetDeviceRegistry() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (DeviceManagerClient deviceManagerClient = DeviceManagerClient.create()) { + GetDeviceRegistryRequest request = + GetDeviceRegistryRequest.newBuilder() + .setName(RegistryName.of("[PROJECT]", "[LOCATION]", "[REGISTRY]").toString()) + .build(); + ApiFuture future = + deviceManagerClient.getDeviceRegistryCallable().futureCall(request); + // Do something. + DeviceRegistry response = future.get(); + } + } +} +// [END iot_v1_generated_devicemanagerclient_getdeviceregistry_async] diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/iot/v1/devicemanagerclient/getdeviceregistry/SyncGetDeviceRegistry.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/iot/v1/devicemanagerclient/getdeviceregistry/SyncGetDeviceRegistry.java new file mode 100644 index 00000000..07bd505f --- /dev/null +++ b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/iot/v1/devicemanagerclient/getdeviceregistry/SyncGetDeviceRegistry.java @@ -0,0 +1,43 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.iot.v1.samples; + +// [START iot_v1_generated_devicemanagerclient_getdeviceregistry_sync] +import com.google.cloud.iot.v1.DeviceManagerClient; +import com.google.cloud.iot.v1.DeviceRegistry; +import com.google.cloud.iot.v1.GetDeviceRegistryRequest; +import com.google.cloud.iot.v1.RegistryName; + +public class SyncGetDeviceRegistry { + + public static void main(String[] args) throws Exception { + syncGetDeviceRegistry(); + } + + public static void syncGetDeviceRegistry() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (DeviceManagerClient deviceManagerClient = DeviceManagerClient.create()) { + GetDeviceRegistryRequest request = + GetDeviceRegistryRequest.newBuilder() + .setName(RegistryName.of("[PROJECT]", "[LOCATION]", "[REGISTRY]").toString()) + .build(); + DeviceRegistry response = deviceManagerClient.getDeviceRegistry(request); + } + } +} +// [END iot_v1_generated_devicemanagerclient_getdeviceregistry_sync] diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/iot/v1/devicemanagerclient/getdeviceregistry/SyncGetDeviceRegistryRegistryname.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/iot/v1/devicemanagerclient/getdeviceregistry/SyncGetDeviceRegistryRegistryname.java new file mode 100644 index 00000000..236fb79b --- /dev/null +++ b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/iot/v1/devicemanagerclient/getdeviceregistry/SyncGetDeviceRegistryRegistryname.java @@ -0,0 +1,39 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.iot.v1.samples; + +// [START iot_v1_generated_devicemanagerclient_getdeviceregistry_registryname_sync] +import com.google.cloud.iot.v1.DeviceManagerClient; +import com.google.cloud.iot.v1.DeviceRegistry; +import com.google.cloud.iot.v1.RegistryName; + +public class SyncGetDeviceRegistryRegistryname { + + public static void main(String[] args) throws Exception { + syncGetDeviceRegistryRegistryname(); + } + + public static void syncGetDeviceRegistryRegistryname() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (DeviceManagerClient deviceManagerClient = DeviceManagerClient.create()) { + RegistryName name = RegistryName.of("[PROJECT]", "[LOCATION]", "[REGISTRY]"); + DeviceRegistry response = deviceManagerClient.getDeviceRegistry(name); + } + } +} +// [END iot_v1_generated_devicemanagerclient_getdeviceregistry_registryname_sync] diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/iot/v1/devicemanagerclient/getdeviceregistry/SyncGetDeviceRegistryString.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/iot/v1/devicemanagerclient/getdeviceregistry/SyncGetDeviceRegistryString.java new file mode 100644 index 00000000..c657e438 --- /dev/null +++ b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/iot/v1/devicemanagerclient/getdeviceregistry/SyncGetDeviceRegistryString.java @@ -0,0 +1,39 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.iot.v1.samples; + +// [START iot_v1_generated_devicemanagerclient_getdeviceregistry_string_sync] +import com.google.cloud.iot.v1.DeviceManagerClient; +import com.google.cloud.iot.v1.DeviceRegistry; +import com.google.cloud.iot.v1.RegistryName; + +public class SyncGetDeviceRegistryString { + + public static void main(String[] args) throws Exception { + syncGetDeviceRegistryString(); + } + + public static void syncGetDeviceRegistryString() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (DeviceManagerClient deviceManagerClient = DeviceManagerClient.create()) { + String name = RegistryName.of("[PROJECT]", "[LOCATION]", "[REGISTRY]").toString(); + DeviceRegistry response = deviceManagerClient.getDeviceRegistry(name); + } + } +} +// [END iot_v1_generated_devicemanagerclient_getdeviceregistry_string_sync] diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/iot/v1/devicemanagerclient/getiampolicy/AsyncGetIamPolicy.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/iot/v1/devicemanagerclient/getiampolicy/AsyncGetIamPolicy.java new file mode 100644 index 00000000..32eb3622 --- /dev/null +++ b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/iot/v1/devicemanagerclient/getiampolicy/AsyncGetIamPolicy.java @@ -0,0 +1,48 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.iot.v1.samples; + +// [START iot_v1_generated_devicemanagerclient_getiampolicy_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.iot.v1.DeviceManagerClient; +import com.google.cloud.iot.v1.RegistryName; +import com.google.iam.v1.GetIamPolicyRequest; +import com.google.iam.v1.GetPolicyOptions; +import com.google.iam.v1.Policy; + +public class AsyncGetIamPolicy { + + public static void main(String[] args) throws Exception { + asyncGetIamPolicy(); + } + + public static void asyncGetIamPolicy() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (DeviceManagerClient deviceManagerClient = DeviceManagerClient.create()) { + GetIamPolicyRequest request = + GetIamPolicyRequest.newBuilder() + .setResource(RegistryName.of("[PROJECT]", "[LOCATION]", "[REGISTRY]").toString()) + .setOptions(GetPolicyOptions.newBuilder().build()) + .build(); + ApiFuture future = deviceManagerClient.getIamPolicyCallable().futureCall(request); + // Do something. + Policy response = future.get(); + } + } +} +// [END iot_v1_generated_devicemanagerclient_getiampolicy_async] diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/iot/v1/devicemanagerclient/getiampolicy/SyncGetIamPolicy.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/iot/v1/devicemanagerclient/getiampolicy/SyncGetIamPolicy.java new file mode 100644 index 00000000..54e1d459 --- /dev/null +++ b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/iot/v1/devicemanagerclient/getiampolicy/SyncGetIamPolicy.java @@ -0,0 +1,45 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.iot.v1.samples; + +// [START iot_v1_generated_devicemanagerclient_getiampolicy_sync] +import com.google.cloud.iot.v1.DeviceManagerClient; +import com.google.cloud.iot.v1.RegistryName; +import com.google.iam.v1.GetIamPolicyRequest; +import com.google.iam.v1.GetPolicyOptions; +import com.google.iam.v1.Policy; + +public class SyncGetIamPolicy { + + public static void main(String[] args) throws Exception { + syncGetIamPolicy(); + } + + public static void syncGetIamPolicy() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (DeviceManagerClient deviceManagerClient = DeviceManagerClient.create()) { + GetIamPolicyRequest request = + GetIamPolicyRequest.newBuilder() + .setResource(RegistryName.of("[PROJECT]", "[LOCATION]", "[REGISTRY]").toString()) + .setOptions(GetPolicyOptions.newBuilder().build()) + .build(); + Policy response = deviceManagerClient.getIamPolicy(request); + } + } +} +// [END iot_v1_generated_devicemanagerclient_getiampolicy_sync] diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/iot/v1/devicemanagerclient/getiampolicy/SyncGetIamPolicyResourcename.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/iot/v1/devicemanagerclient/getiampolicy/SyncGetIamPolicyResourcename.java new file mode 100644 index 00000000..c3c92d47 --- /dev/null +++ b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/iot/v1/devicemanagerclient/getiampolicy/SyncGetIamPolicyResourcename.java @@ -0,0 +1,40 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.iot.v1.samples; + +// [START iot_v1_generated_devicemanagerclient_getiampolicy_resourcename_sync] +import com.google.api.resourcenames.ResourceName; +import com.google.cloud.iot.v1.DeviceManagerClient; +import com.google.cloud.iot.v1.RegistryName; +import com.google.iam.v1.Policy; + +public class SyncGetIamPolicyResourcename { + + public static void main(String[] args) throws Exception { + syncGetIamPolicyResourcename(); + } + + public static void syncGetIamPolicyResourcename() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (DeviceManagerClient deviceManagerClient = DeviceManagerClient.create()) { + ResourceName resource = RegistryName.of("[PROJECT]", "[LOCATION]", "[REGISTRY]"); + Policy response = deviceManagerClient.getIamPolicy(resource); + } + } +} +// [END iot_v1_generated_devicemanagerclient_getiampolicy_resourcename_sync] diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/iot/v1/devicemanagerclient/getiampolicy/SyncGetIamPolicyString.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/iot/v1/devicemanagerclient/getiampolicy/SyncGetIamPolicyString.java new file mode 100644 index 00000000..795e8bd8 --- /dev/null +++ b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/iot/v1/devicemanagerclient/getiampolicy/SyncGetIamPolicyString.java @@ -0,0 +1,40 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.iot.v1.samples; + +// [START iot_v1_generated_devicemanagerclient_getiampolicy_string_sync] +import com.google.cloud.iot.v1.DeviceManagerClient; +import com.google.cloud.iot.v1.DeviceName; +import com.google.iam.v1.Policy; + +public class SyncGetIamPolicyString { + + public static void main(String[] args) throws Exception { + syncGetIamPolicyString(); + } + + public static void syncGetIamPolicyString() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (DeviceManagerClient deviceManagerClient = DeviceManagerClient.create()) { + String resource = + DeviceName.of("[PROJECT]", "[LOCATION]", "[REGISTRY]", "[DEVICE]").toString(); + Policy response = deviceManagerClient.getIamPolicy(resource); + } + } +} +// [END iot_v1_generated_devicemanagerclient_getiampolicy_string_sync] diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/iot/v1/devicemanagerclient/listdeviceconfigversions/AsyncListDeviceConfigVersions.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/iot/v1/devicemanagerclient/listdeviceconfigversions/AsyncListDeviceConfigVersions.java new file mode 100644 index 00000000..0d75d876 --- /dev/null +++ b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/iot/v1/devicemanagerclient/listdeviceconfigversions/AsyncListDeviceConfigVersions.java @@ -0,0 +1,49 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.iot.v1.samples; + +// [START iot_v1_generated_devicemanagerclient_listdeviceconfigversions_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.iot.v1.DeviceManagerClient; +import com.google.cloud.iot.v1.DeviceName; +import com.google.cloud.iot.v1.ListDeviceConfigVersionsRequest; +import com.google.cloud.iot.v1.ListDeviceConfigVersionsResponse; + +public class AsyncListDeviceConfigVersions { + + public static void main(String[] args) throws Exception { + asyncListDeviceConfigVersions(); + } + + public static void asyncListDeviceConfigVersions() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (DeviceManagerClient deviceManagerClient = DeviceManagerClient.create()) { + ListDeviceConfigVersionsRequest request = + ListDeviceConfigVersionsRequest.newBuilder() + .setName( + DeviceName.of("[PROJECT]", "[LOCATION]", "[REGISTRY]", "[DEVICE]").toString()) + .setNumVersions(-315385036) + .build(); + ApiFuture future = + deviceManagerClient.listDeviceConfigVersionsCallable().futureCall(request); + // Do something. + ListDeviceConfigVersionsResponse response = future.get(); + } + } +} +// [END iot_v1_generated_devicemanagerclient_listdeviceconfigversions_async] diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/iot/v1/devicemanagerclient/listdeviceconfigversions/SyncListDeviceConfigVersions.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/iot/v1/devicemanagerclient/listdeviceconfigversions/SyncListDeviceConfigVersions.java new file mode 100644 index 00000000..558b23a4 --- /dev/null +++ b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/iot/v1/devicemanagerclient/listdeviceconfigversions/SyncListDeviceConfigVersions.java @@ -0,0 +1,46 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.iot.v1.samples; + +// [START iot_v1_generated_devicemanagerclient_listdeviceconfigversions_sync] +import com.google.cloud.iot.v1.DeviceManagerClient; +import com.google.cloud.iot.v1.DeviceName; +import com.google.cloud.iot.v1.ListDeviceConfigVersionsRequest; +import com.google.cloud.iot.v1.ListDeviceConfigVersionsResponse; + +public class SyncListDeviceConfigVersions { + + public static void main(String[] args) throws Exception { + syncListDeviceConfigVersions(); + } + + public static void syncListDeviceConfigVersions() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (DeviceManagerClient deviceManagerClient = DeviceManagerClient.create()) { + ListDeviceConfigVersionsRequest request = + ListDeviceConfigVersionsRequest.newBuilder() + .setName( + DeviceName.of("[PROJECT]", "[LOCATION]", "[REGISTRY]", "[DEVICE]").toString()) + .setNumVersions(-315385036) + .build(); + ListDeviceConfigVersionsResponse response = + deviceManagerClient.listDeviceConfigVersions(request); + } + } +} +// [END iot_v1_generated_devicemanagerclient_listdeviceconfigversions_sync] diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/iot/v1/devicemanagerclient/listdeviceconfigversions/SyncListDeviceConfigVersionsDevicename.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/iot/v1/devicemanagerclient/listdeviceconfigversions/SyncListDeviceConfigVersionsDevicename.java new file mode 100644 index 00000000..260dd903 --- /dev/null +++ b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/iot/v1/devicemanagerclient/listdeviceconfigversions/SyncListDeviceConfigVersionsDevicename.java @@ -0,0 +1,40 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.iot.v1.samples; + +// [START iot_v1_generated_devicemanagerclient_listdeviceconfigversions_devicename_sync] +import com.google.cloud.iot.v1.DeviceManagerClient; +import com.google.cloud.iot.v1.DeviceName; +import com.google.cloud.iot.v1.ListDeviceConfigVersionsResponse; + +public class SyncListDeviceConfigVersionsDevicename { + + public static void main(String[] args) throws Exception { + syncListDeviceConfigVersionsDevicename(); + } + + public static void syncListDeviceConfigVersionsDevicename() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (DeviceManagerClient deviceManagerClient = DeviceManagerClient.create()) { + DeviceName name = DeviceName.of("[PROJECT]", "[LOCATION]", "[REGISTRY]", "[DEVICE]"); + ListDeviceConfigVersionsResponse response = + deviceManagerClient.listDeviceConfigVersions(name); + } + } +} +// [END iot_v1_generated_devicemanagerclient_listdeviceconfigversions_devicename_sync] diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/iot/v1/devicemanagerclient/listdeviceconfigversions/SyncListDeviceConfigVersionsString.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/iot/v1/devicemanagerclient/listdeviceconfigversions/SyncListDeviceConfigVersionsString.java new file mode 100644 index 00000000..f4e9bec3 --- /dev/null +++ b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/iot/v1/devicemanagerclient/listdeviceconfigversions/SyncListDeviceConfigVersionsString.java @@ -0,0 +1,40 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.iot.v1.samples; + +// [START iot_v1_generated_devicemanagerclient_listdeviceconfigversions_string_sync] +import com.google.cloud.iot.v1.DeviceManagerClient; +import com.google.cloud.iot.v1.DeviceName; +import com.google.cloud.iot.v1.ListDeviceConfigVersionsResponse; + +public class SyncListDeviceConfigVersionsString { + + public static void main(String[] args) throws Exception { + syncListDeviceConfigVersionsString(); + } + + public static void syncListDeviceConfigVersionsString() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (DeviceManagerClient deviceManagerClient = DeviceManagerClient.create()) { + String name = DeviceName.of("[PROJECT]", "[LOCATION]", "[REGISTRY]", "[DEVICE]").toString(); + ListDeviceConfigVersionsResponse response = + deviceManagerClient.listDeviceConfigVersions(name); + } + } +} +// [END iot_v1_generated_devicemanagerclient_listdeviceconfigversions_string_sync] diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/iot/v1/devicemanagerclient/listdeviceregistries/AsyncListDeviceRegistries.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/iot/v1/devicemanagerclient/listdeviceregistries/AsyncListDeviceRegistries.java new file mode 100644 index 00000000..d24edbe8 --- /dev/null +++ b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/iot/v1/devicemanagerclient/listdeviceregistries/AsyncListDeviceRegistries.java @@ -0,0 +1,51 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.iot.v1.samples; + +// [START iot_v1_generated_devicemanagerclient_listdeviceregistries_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.iot.v1.DeviceManagerClient; +import com.google.cloud.iot.v1.DeviceRegistry; +import com.google.cloud.iot.v1.ListDeviceRegistriesRequest; +import com.google.cloud.iot.v1.LocationName; + +public class AsyncListDeviceRegistries { + + public static void main(String[] args) throws Exception { + asyncListDeviceRegistries(); + } + + public static void asyncListDeviceRegistries() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (DeviceManagerClient deviceManagerClient = DeviceManagerClient.create()) { + ListDeviceRegistriesRequest request = + ListDeviceRegistriesRequest.newBuilder() + .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .build(); + ApiFuture future = + deviceManagerClient.listDeviceRegistriesPagedCallable().futureCall(request); + // Do something. + for (DeviceRegistry element : future.get().iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END iot_v1_generated_devicemanagerclient_listdeviceregistries_async] diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/iot/v1/devicemanagerclient/listdeviceregistries/AsyncListDeviceRegistriesPaged.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/iot/v1/devicemanagerclient/listdeviceregistries/AsyncListDeviceRegistriesPaged.java new file mode 100644 index 00000000..67fb8cf9 --- /dev/null +++ b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/iot/v1/devicemanagerclient/listdeviceregistries/AsyncListDeviceRegistriesPaged.java @@ -0,0 +1,59 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.iot.v1.samples; + +// [START iot_v1_generated_devicemanagerclient_listdeviceregistries_paged_async] +import com.google.cloud.iot.v1.DeviceManagerClient; +import com.google.cloud.iot.v1.DeviceRegistry; +import com.google.cloud.iot.v1.ListDeviceRegistriesRequest; +import com.google.cloud.iot.v1.ListDeviceRegistriesResponse; +import com.google.cloud.iot.v1.LocationName; +import com.google.common.base.Strings; + +public class AsyncListDeviceRegistriesPaged { + + public static void main(String[] args) throws Exception { + asyncListDeviceRegistriesPaged(); + } + + public static void asyncListDeviceRegistriesPaged() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (DeviceManagerClient deviceManagerClient = DeviceManagerClient.create()) { + ListDeviceRegistriesRequest request = + ListDeviceRegistriesRequest.newBuilder() + .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .build(); + while (true) { + ListDeviceRegistriesResponse response = + deviceManagerClient.listDeviceRegistriesCallable().call(request); + for (DeviceRegistry element : response.getDeviceRegistriesList()) { + // doThingsWith(element); + } + String nextPageToken = response.getNextPageToken(); + if (!Strings.isNullOrEmpty(nextPageToken)) { + request = request.toBuilder().setPageToken(nextPageToken).build(); + } else { + break; + } + } + } + } +} +// [END iot_v1_generated_devicemanagerclient_listdeviceregistries_paged_async] diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/iot/v1/devicemanagerclient/listdeviceregistries/SyncListDeviceRegistries.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/iot/v1/devicemanagerclient/listdeviceregistries/SyncListDeviceRegistries.java new file mode 100644 index 00000000..bd896f4c --- /dev/null +++ b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/iot/v1/devicemanagerclient/listdeviceregistries/SyncListDeviceRegistries.java @@ -0,0 +1,48 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.iot.v1.samples; + +// [START iot_v1_generated_devicemanagerclient_listdeviceregistries_sync] +import com.google.cloud.iot.v1.DeviceManagerClient; +import com.google.cloud.iot.v1.DeviceRegistry; +import com.google.cloud.iot.v1.ListDeviceRegistriesRequest; +import com.google.cloud.iot.v1.LocationName; + +public class SyncListDeviceRegistries { + + public static void main(String[] args) throws Exception { + syncListDeviceRegistries(); + } + + public static void syncListDeviceRegistries() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (DeviceManagerClient deviceManagerClient = DeviceManagerClient.create()) { + ListDeviceRegistriesRequest request = + ListDeviceRegistriesRequest.newBuilder() + .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .build(); + for (DeviceRegistry element : + deviceManagerClient.listDeviceRegistries(request).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END iot_v1_generated_devicemanagerclient_listdeviceregistries_sync] diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/iot/v1/devicemanagerclient/listdeviceregistries/SyncListDeviceRegistriesLocationname.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/iot/v1/devicemanagerclient/listdeviceregistries/SyncListDeviceRegistriesLocationname.java new file mode 100644 index 00000000..d022d994 --- /dev/null +++ b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/iot/v1/devicemanagerclient/listdeviceregistries/SyncListDeviceRegistriesLocationname.java @@ -0,0 +1,41 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.iot.v1.samples; + +// [START iot_v1_generated_devicemanagerclient_listdeviceregistries_locationname_sync] +import com.google.cloud.iot.v1.DeviceManagerClient; +import com.google.cloud.iot.v1.DeviceRegistry; +import com.google.cloud.iot.v1.LocationName; + +public class SyncListDeviceRegistriesLocationname { + + public static void main(String[] args) throws Exception { + syncListDeviceRegistriesLocationname(); + } + + public static void syncListDeviceRegistriesLocationname() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (DeviceManagerClient deviceManagerClient = DeviceManagerClient.create()) { + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + for (DeviceRegistry element : deviceManagerClient.listDeviceRegistries(parent).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END iot_v1_generated_devicemanagerclient_listdeviceregistries_locationname_sync] diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/iot/v1/devicemanagerclient/listdeviceregistries/SyncListDeviceRegistriesString.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/iot/v1/devicemanagerclient/listdeviceregistries/SyncListDeviceRegistriesString.java new file mode 100644 index 00000000..3ea5d4b0 --- /dev/null +++ b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/iot/v1/devicemanagerclient/listdeviceregistries/SyncListDeviceRegistriesString.java @@ -0,0 +1,41 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.iot.v1.samples; + +// [START iot_v1_generated_devicemanagerclient_listdeviceregistries_string_sync] +import com.google.cloud.iot.v1.DeviceManagerClient; +import com.google.cloud.iot.v1.DeviceRegistry; +import com.google.cloud.iot.v1.LocationName; + +public class SyncListDeviceRegistriesString { + + public static void main(String[] args) throws Exception { + syncListDeviceRegistriesString(); + } + + public static void syncListDeviceRegistriesString() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (DeviceManagerClient deviceManagerClient = DeviceManagerClient.create()) { + String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString(); + for (DeviceRegistry element : deviceManagerClient.listDeviceRegistries(parent).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END iot_v1_generated_devicemanagerclient_listdeviceregistries_string_sync] diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/iot/v1/devicemanagerclient/listdevices/AsyncListDevices.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/iot/v1/devicemanagerclient/listdevices/AsyncListDevices.java new file mode 100644 index 00000000..33eb2f6d --- /dev/null +++ b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/iot/v1/devicemanagerclient/listdevices/AsyncListDevices.java @@ -0,0 +1,57 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.iot.v1.samples; + +// [START iot_v1_generated_devicemanagerclient_listdevices_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.iot.v1.Device; +import com.google.cloud.iot.v1.DeviceManagerClient; +import com.google.cloud.iot.v1.GatewayListOptions; +import com.google.cloud.iot.v1.ListDevicesRequest; +import com.google.cloud.iot.v1.RegistryName; +import com.google.protobuf.FieldMask; +import java.util.ArrayList; + +public class AsyncListDevices { + + public static void main(String[] args) throws Exception { + asyncListDevices(); + } + + public static void asyncListDevices() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (DeviceManagerClient deviceManagerClient = DeviceManagerClient.create()) { + ListDevicesRequest request = + ListDevicesRequest.newBuilder() + .setParent(RegistryName.of("[PROJECT]", "[LOCATION]", "[REGISTRY]").toString()) + .addAllDeviceNumIds(new ArrayList()) + .addAllDeviceIds(new ArrayList()) + .setFieldMask(FieldMask.newBuilder().build()) + .setGatewayListOptions(GatewayListOptions.newBuilder().build()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .build(); + ApiFuture future = deviceManagerClient.listDevicesPagedCallable().futureCall(request); + // Do something. + for (Device element : future.get().iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END iot_v1_generated_devicemanagerclient_listdevices_async] diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/iot/v1/devicemanagerclient/listdevices/AsyncListDevicesPaged.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/iot/v1/devicemanagerclient/listdevices/AsyncListDevicesPaged.java new file mode 100644 index 00000000..86f8f01b --- /dev/null +++ b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/iot/v1/devicemanagerclient/listdevices/AsyncListDevicesPaged.java @@ -0,0 +1,65 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.iot.v1.samples; + +// [START iot_v1_generated_devicemanagerclient_listdevices_paged_async] +import com.google.cloud.iot.v1.Device; +import com.google.cloud.iot.v1.DeviceManagerClient; +import com.google.cloud.iot.v1.GatewayListOptions; +import com.google.cloud.iot.v1.ListDevicesRequest; +import com.google.cloud.iot.v1.ListDevicesResponse; +import com.google.cloud.iot.v1.RegistryName; +import com.google.common.base.Strings; +import com.google.protobuf.FieldMask; +import java.util.ArrayList; + +public class AsyncListDevicesPaged { + + public static void main(String[] args) throws Exception { + asyncListDevicesPaged(); + } + + public static void asyncListDevicesPaged() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (DeviceManagerClient deviceManagerClient = DeviceManagerClient.create()) { + ListDevicesRequest request = + ListDevicesRequest.newBuilder() + .setParent(RegistryName.of("[PROJECT]", "[LOCATION]", "[REGISTRY]").toString()) + .addAllDeviceNumIds(new ArrayList()) + .addAllDeviceIds(new ArrayList()) + .setFieldMask(FieldMask.newBuilder().build()) + .setGatewayListOptions(GatewayListOptions.newBuilder().build()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .build(); + while (true) { + ListDevicesResponse response = deviceManagerClient.listDevicesCallable().call(request); + for (Device element : response.getDevicesList()) { + // doThingsWith(element); + } + String nextPageToken = response.getNextPageToken(); + if (!Strings.isNullOrEmpty(nextPageToken)) { + request = request.toBuilder().setPageToken(nextPageToken).build(); + } else { + break; + } + } + } + } +} +// [END iot_v1_generated_devicemanagerclient_listdevices_paged_async] diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/iot/v1/devicemanagerclient/listdevices/SyncListDevices.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/iot/v1/devicemanagerclient/listdevices/SyncListDevices.java new file mode 100644 index 00000000..61f60c49 --- /dev/null +++ b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/iot/v1/devicemanagerclient/listdevices/SyncListDevices.java @@ -0,0 +1,54 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.iot.v1.samples; + +// [START iot_v1_generated_devicemanagerclient_listdevices_sync] +import com.google.cloud.iot.v1.Device; +import com.google.cloud.iot.v1.DeviceManagerClient; +import com.google.cloud.iot.v1.GatewayListOptions; +import com.google.cloud.iot.v1.ListDevicesRequest; +import com.google.cloud.iot.v1.RegistryName; +import com.google.protobuf.FieldMask; +import java.util.ArrayList; + +public class SyncListDevices { + + public static void main(String[] args) throws Exception { + syncListDevices(); + } + + public static void syncListDevices() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (DeviceManagerClient deviceManagerClient = DeviceManagerClient.create()) { + ListDevicesRequest request = + ListDevicesRequest.newBuilder() + .setParent(RegistryName.of("[PROJECT]", "[LOCATION]", "[REGISTRY]").toString()) + .addAllDeviceNumIds(new ArrayList()) + .addAllDeviceIds(new ArrayList()) + .setFieldMask(FieldMask.newBuilder().build()) + .setGatewayListOptions(GatewayListOptions.newBuilder().build()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .build(); + for (Device element : deviceManagerClient.listDevices(request).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END iot_v1_generated_devicemanagerclient_listdevices_sync] diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/iot/v1/devicemanagerclient/listdevices/SyncListDevicesRegistryname.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/iot/v1/devicemanagerclient/listdevices/SyncListDevicesRegistryname.java new file mode 100644 index 00000000..8ccb15b1 --- /dev/null +++ b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/iot/v1/devicemanagerclient/listdevices/SyncListDevicesRegistryname.java @@ -0,0 +1,41 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.iot.v1.samples; + +// [START iot_v1_generated_devicemanagerclient_listdevices_registryname_sync] +import com.google.cloud.iot.v1.Device; +import com.google.cloud.iot.v1.DeviceManagerClient; +import com.google.cloud.iot.v1.RegistryName; + +public class SyncListDevicesRegistryname { + + public static void main(String[] args) throws Exception { + syncListDevicesRegistryname(); + } + + public static void syncListDevicesRegistryname() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (DeviceManagerClient deviceManagerClient = DeviceManagerClient.create()) { + RegistryName parent = RegistryName.of("[PROJECT]", "[LOCATION]", "[REGISTRY]"); + for (Device element : deviceManagerClient.listDevices(parent).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END iot_v1_generated_devicemanagerclient_listdevices_registryname_sync] diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/iot/v1/devicemanagerclient/listdevices/SyncListDevicesString.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/iot/v1/devicemanagerclient/listdevices/SyncListDevicesString.java new file mode 100644 index 00000000..e666e198 --- /dev/null +++ b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/iot/v1/devicemanagerclient/listdevices/SyncListDevicesString.java @@ -0,0 +1,41 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.iot.v1.samples; + +// [START iot_v1_generated_devicemanagerclient_listdevices_string_sync] +import com.google.cloud.iot.v1.Device; +import com.google.cloud.iot.v1.DeviceManagerClient; +import com.google.cloud.iot.v1.RegistryName; + +public class SyncListDevicesString { + + public static void main(String[] args) throws Exception { + syncListDevicesString(); + } + + public static void syncListDevicesString() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (DeviceManagerClient deviceManagerClient = DeviceManagerClient.create()) { + String parent = RegistryName.of("[PROJECT]", "[LOCATION]", "[REGISTRY]").toString(); + for (Device element : deviceManagerClient.listDevices(parent).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END iot_v1_generated_devicemanagerclient_listdevices_string_sync] diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/iot/v1/devicemanagerclient/listdevicestates/AsyncListDeviceStates.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/iot/v1/devicemanagerclient/listdevicestates/AsyncListDeviceStates.java new file mode 100644 index 00000000..0a761d65 --- /dev/null +++ b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/iot/v1/devicemanagerclient/listdevicestates/AsyncListDeviceStates.java @@ -0,0 +1,49 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.iot.v1.samples; + +// [START iot_v1_generated_devicemanagerclient_listdevicestates_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.iot.v1.DeviceManagerClient; +import com.google.cloud.iot.v1.DeviceName; +import com.google.cloud.iot.v1.ListDeviceStatesRequest; +import com.google.cloud.iot.v1.ListDeviceStatesResponse; + +public class AsyncListDeviceStates { + + public static void main(String[] args) throws Exception { + asyncListDeviceStates(); + } + + public static void asyncListDeviceStates() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (DeviceManagerClient deviceManagerClient = DeviceManagerClient.create()) { + ListDeviceStatesRequest request = + ListDeviceStatesRequest.newBuilder() + .setName( + DeviceName.of("[PROJECT]", "[LOCATION]", "[REGISTRY]", "[DEVICE]").toString()) + .setNumStates(1643330779) + .build(); + ApiFuture future = + deviceManagerClient.listDeviceStatesCallable().futureCall(request); + // Do something. + ListDeviceStatesResponse response = future.get(); + } + } +} +// [END iot_v1_generated_devicemanagerclient_listdevicestates_async] diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/iot/v1/devicemanagerclient/listdevicestates/SyncListDeviceStates.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/iot/v1/devicemanagerclient/listdevicestates/SyncListDeviceStates.java new file mode 100644 index 00000000..879a4cc4 --- /dev/null +++ b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/iot/v1/devicemanagerclient/listdevicestates/SyncListDeviceStates.java @@ -0,0 +1,45 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.iot.v1.samples; + +// [START iot_v1_generated_devicemanagerclient_listdevicestates_sync] +import com.google.cloud.iot.v1.DeviceManagerClient; +import com.google.cloud.iot.v1.DeviceName; +import com.google.cloud.iot.v1.ListDeviceStatesRequest; +import com.google.cloud.iot.v1.ListDeviceStatesResponse; + +public class SyncListDeviceStates { + + public static void main(String[] args) throws Exception { + syncListDeviceStates(); + } + + public static void syncListDeviceStates() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (DeviceManagerClient deviceManagerClient = DeviceManagerClient.create()) { + ListDeviceStatesRequest request = + ListDeviceStatesRequest.newBuilder() + .setName( + DeviceName.of("[PROJECT]", "[LOCATION]", "[REGISTRY]", "[DEVICE]").toString()) + .setNumStates(1643330779) + .build(); + ListDeviceStatesResponse response = deviceManagerClient.listDeviceStates(request); + } + } +} +// [END iot_v1_generated_devicemanagerclient_listdevicestates_sync] diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/iot/v1/devicemanagerclient/listdevicestates/SyncListDeviceStatesDevicename.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/iot/v1/devicemanagerclient/listdevicestates/SyncListDeviceStatesDevicename.java new file mode 100644 index 00000000..47eb9a14 --- /dev/null +++ b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/iot/v1/devicemanagerclient/listdevicestates/SyncListDeviceStatesDevicename.java @@ -0,0 +1,39 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.iot.v1.samples; + +// [START iot_v1_generated_devicemanagerclient_listdevicestates_devicename_sync] +import com.google.cloud.iot.v1.DeviceManagerClient; +import com.google.cloud.iot.v1.DeviceName; +import com.google.cloud.iot.v1.ListDeviceStatesResponse; + +public class SyncListDeviceStatesDevicename { + + public static void main(String[] args) throws Exception { + syncListDeviceStatesDevicename(); + } + + public static void syncListDeviceStatesDevicename() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (DeviceManagerClient deviceManagerClient = DeviceManagerClient.create()) { + DeviceName name = DeviceName.of("[PROJECT]", "[LOCATION]", "[REGISTRY]", "[DEVICE]"); + ListDeviceStatesResponse response = deviceManagerClient.listDeviceStates(name); + } + } +} +// [END iot_v1_generated_devicemanagerclient_listdevicestates_devicename_sync] diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/iot/v1/devicemanagerclient/listdevicestates/SyncListDeviceStatesString.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/iot/v1/devicemanagerclient/listdevicestates/SyncListDeviceStatesString.java new file mode 100644 index 00000000..ee9b22ec --- /dev/null +++ b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/iot/v1/devicemanagerclient/listdevicestates/SyncListDeviceStatesString.java @@ -0,0 +1,39 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.iot.v1.samples; + +// [START iot_v1_generated_devicemanagerclient_listdevicestates_string_sync] +import com.google.cloud.iot.v1.DeviceManagerClient; +import com.google.cloud.iot.v1.DeviceName; +import com.google.cloud.iot.v1.ListDeviceStatesResponse; + +public class SyncListDeviceStatesString { + + public static void main(String[] args) throws Exception { + syncListDeviceStatesString(); + } + + public static void syncListDeviceStatesString() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (DeviceManagerClient deviceManagerClient = DeviceManagerClient.create()) { + String name = DeviceName.of("[PROJECT]", "[LOCATION]", "[REGISTRY]", "[DEVICE]").toString(); + ListDeviceStatesResponse response = deviceManagerClient.listDeviceStates(name); + } + } +} +// [END iot_v1_generated_devicemanagerclient_listdevicestates_string_sync] diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/iot/v1/devicemanagerclient/modifycloudtodeviceconfig/AsyncModifyCloudToDeviceConfig.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/iot/v1/devicemanagerclient/modifycloudtodeviceconfig/AsyncModifyCloudToDeviceConfig.java new file mode 100644 index 00000000..39171621 --- /dev/null +++ b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/iot/v1/devicemanagerclient/modifycloudtodeviceconfig/AsyncModifyCloudToDeviceConfig.java @@ -0,0 +1,51 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.iot.v1.samples; + +// [START iot_v1_generated_devicemanagerclient_modifycloudtodeviceconfig_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.iot.v1.DeviceConfig; +import com.google.cloud.iot.v1.DeviceManagerClient; +import com.google.cloud.iot.v1.DeviceName; +import com.google.cloud.iot.v1.ModifyCloudToDeviceConfigRequest; +import com.google.protobuf.ByteString; + +public class AsyncModifyCloudToDeviceConfig { + + public static void main(String[] args) throws Exception { + asyncModifyCloudToDeviceConfig(); + } + + public static void asyncModifyCloudToDeviceConfig() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (DeviceManagerClient deviceManagerClient = DeviceManagerClient.create()) { + ModifyCloudToDeviceConfigRequest request = + ModifyCloudToDeviceConfigRequest.newBuilder() + .setName( + DeviceName.of("[PROJECT]", "[LOCATION]", "[REGISTRY]", "[DEVICE]").toString()) + .setVersionToUpdate(462348390) + .setBinaryData(ByteString.EMPTY) + .build(); + ApiFuture future = + deviceManagerClient.modifyCloudToDeviceConfigCallable().futureCall(request); + // Do something. + DeviceConfig response = future.get(); + } + } +} +// [END iot_v1_generated_devicemanagerclient_modifycloudtodeviceconfig_async] diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/iot/v1/devicemanagerclient/modifycloudtodeviceconfig/SyncModifyCloudToDeviceConfig.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/iot/v1/devicemanagerclient/modifycloudtodeviceconfig/SyncModifyCloudToDeviceConfig.java new file mode 100644 index 00000000..8de4fbc4 --- /dev/null +++ b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/iot/v1/devicemanagerclient/modifycloudtodeviceconfig/SyncModifyCloudToDeviceConfig.java @@ -0,0 +1,47 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.iot.v1.samples; + +// [START iot_v1_generated_devicemanagerclient_modifycloudtodeviceconfig_sync] +import com.google.cloud.iot.v1.DeviceConfig; +import com.google.cloud.iot.v1.DeviceManagerClient; +import com.google.cloud.iot.v1.DeviceName; +import com.google.cloud.iot.v1.ModifyCloudToDeviceConfigRequest; +import com.google.protobuf.ByteString; + +public class SyncModifyCloudToDeviceConfig { + + public static void main(String[] args) throws Exception { + syncModifyCloudToDeviceConfig(); + } + + public static void syncModifyCloudToDeviceConfig() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (DeviceManagerClient deviceManagerClient = DeviceManagerClient.create()) { + ModifyCloudToDeviceConfigRequest request = + ModifyCloudToDeviceConfigRequest.newBuilder() + .setName( + DeviceName.of("[PROJECT]", "[LOCATION]", "[REGISTRY]", "[DEVICE]").toString()) + .setVersionToUpdate(462348390) + .setBinaryData(ByteString.EMPTY) + .build(); + DeviceConfig response = deviceManagerClient.modifyCloudToDeviceConfig(request); + } + } +} +// [END iot_v1_generated_devicemanagerclient_modifycloudtodeviceconfig_sync] diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/iot/v1/devicemanagerclient/modifycloudtodeviceconfig/SyncModifyCloudToDeviceConfigDevicenameBytestring.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/iot/v1/devicemanagerclient/modifycloudtodeviceconfig/SyncModifyCloudToDeviceConfigDevicenameBytestring.java new file mode 100644 index 00000000..b23744c0 --- /dev/null +++ b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/iot/v1/devicemanagerclient/modifycloudtodeviceconfig/SyncModifyCloudToDeviceConfigDevicenameBytestring.java @@ -0,0 +1,41 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.iot.v1.samples; + +// [START iot_v1_generated_devicemanagerclient_modifycloudtodeviceconfig_devicenamebytestring_sync] +import com.google.cloud.iot.v1.DeviceConfig; +import com.google.cloud.iot.v1.DeviceManagerClient; +import com.google.cloud.iot.v1.DeviceName; +import com.google.protobuf.ByteString; + +public class SyncModifyCloudToDeviceConfigDevicenameBytestring { + + public static void main(String[] args) throws Exception { + syncModifyCloudToDeviceConfigDevicenameBytestring(); + } + + public static void syncModifyCloudToDeviceConfigDevicenameBytestring() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (DeviceManagerClient deviceManagerClient = DeviceManagerClient.create()) { + DeviceName name = DeviceName.of("[PROJECT]", "[LOCATION]", "[REGISTRY]", "[DEVICE]"); + ByteString binaryData = ByteString.EMPTY; + DeviceConfig response = deviceManagerClient.modifyCloudToDeviceConfig(name, binaryData); + } + } +} +// [END iot_v1_generated_devicemanagerclient_modifycloudtodeviceconfig_devicenamebytestring_sync] diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/iot/v1/devicemanagerclient/modifycloudtodeviceconfig/SyncModifyCloudToDeviceConfigStringBytestring.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/iot/v1/devicemanagerclient/modifycloudtodeviceconfig/SyncModifyCloudToDeviceConfigStringBytestring.java new file mode 100644 index 00000000..03290984 --- /dev/null +++ b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/iot/v1/devicemanagerclient/modifycloudtodeviceconfig/SyncModifyCloudToDeviceConfigStringBytestring.java @@ -0,0 +1,41 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.iot.v1.samples; + +// [START iot_v1_generated_devicemanagerclient_modifycloudtodeviceconfig_stringbytestring_sync] +import com.google.cloud.iot.v1.DeviceConfig; +import com.google.cloud.iot.v1.DeviceManagerClient; +import com.google.cloud.iot.v1.DeviceName; +import com.google.protobuf.ByteString; + +public class SyncModifyCloudToDeviceConfigStringBytestring { + + public static void main(String[] args) throws Exception { + syncModifyCloudToDeviceConfigStringBytestring(); + } + + public static void syncModifyCloudToDeviceConfigStringBytestring() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (DeviceManagerClient deviceManagerClient = DeviceManagerClient.create()) { + String name = DeviceName.of("[PROJECT]", "[LOCATION]", "[REGISTRY]", "[DEVICE]").toString(); + ByteString binaryData = ByteString.EMPTY; + DeviceConfig response = deviceManagerClient.modifyCloudToDeviceConfig(name, binaryData); + } + } +} +// [END iot_v1_generated_devicemanagerclient_modifycloudtodeviceconfig_stringbytestring_sync] diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/iot/v1/devicemanagerclient/sendcommandtodevice/AsyncSendCommandToDevice.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/iot/v1/devicemanagerclient/sendcommandtodevice/AsyncSendCommandToDevice.java new file mode 100644 index 00000000..971c5e57 --- /dev/null +++ b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/iot/v1/devicemanagerclient/sendcommandtodevice/AsyncSendCommandToDevice.java @@ -0,0 +1,51 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.iot.v1.samples; + +// [START iot_v1_generated_devicemanagerclient_sendcommandtodevice_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.iot.v1.DeviceManagerClient; +import com.google.cloud.iot.v1.DeviceName; +import com.google.cloud.iot.v1.SendCommandToDeviceRequest; +import com.google.cloud.iot.v1.SendCommandToDeviceResponse; +import com.google.protobuf.ByteString; + +public class AsyncSendCommandToDevice { + + public static void main(String[] args) throws Exception { + asyncSendCommandToDevice(); + } + + public static void asyncSendCommandToDevice() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (DeviceManagerClient deviceManagerClient = DeviceManagerClient.create()) { + SendCommandToDeviceRequest request = + SendCommandToDeviceRequest.newBuilder() + .setName( + DeviceName.of("[PROJECT]", "[LOCATION]", "[REGISTRY]", "[DEVICE]").toString()) + .setBinaryData(ByteString.EMPTY) + .setSubfolder("subfolder153561774") + .build(); + ApiFuture future = + deviceManagerClient.sendCommandToDeviceCallable().futureCall(request); + // Do something. + SendCommandToDeviceResponse response = future.get(); + } + } +} +// [END iot_v1_generated_devicemanagerclient_sendcommandtodevice_async] diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/iot/v1/devicemanagerclient/sendcommandtodevice/SyncSendCommandToDevice.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/iot/v1/devicemanagerclient/sendcommandtodevice/SyncSendCommandToDevice.java new file mode 100644 index 00000000..a45dacdc --- /dev/null +++ b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/iot/v1/devicemanagerclient/sendcommandtodevice/SyncSendCommandToDevice.java @@ -0,0 +1,47 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.iot.v1.samples; + +// [START iot_v1_generated_devicemanagerclient_sendcommandtodevice_sync] +import com.google.cloud.iot.v1.DeviceManagerClient; +import com.google.cloud.iot.v1.DeviceName; +import com.google.cloud.iot.v1.SendCommandToDeviceRequest; +import com.google.cloud.iot.v1.SendCommandToDeviceResponse; +import com.google.protobuf.ByteString; + +public class SyncSendCommandToDevice { + + public static void main(String[] args) throws Exception { + syncSendCommandToDevice(); + } + + public static void syncSendCommandToDevice() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (DeviceManagerClient deviceManagerClient = DeviceManagerClient.create()) { + SendCommandToDeviceRequest request = + SendCommandToDeviceRequest.newBuilder() + .setName( + DeviceName.of("[PROJECT]", "[LOCATION]", "[REGISTRY]", "[DEVICE]").toString()) + .setBinaryData(ByteString.EMPTY) + .setSubfolder("subfolder153561774") + .build(); + SendCommandToDeviceResponse response = deviceManagerClient.sendCommandToDevice(request); + } + } +} +// [END iot_v1_generated_devicemanagerclient_sendcommandtodevice_sync] diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/iot/v1/devicemanagerclient/sendcommandtodevice/SyncSendCommandToDeviceDevicenameBytestring.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/iot/v1/devicemanagerclient/sendcommandtodevice/SyncSendCommandToDeviceDevicenameBytestring.java new file mode 100644 index 00000000..ebcb096f --- /dev/null +++ b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/iot/v1/devicemanagerclient/sendcommandtodevice/SyncSendCommandToDeviceDevicenameBytestring.java @@ -0,0 +1,42 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.iot.v1.samples; + +// [START iot_v1_generated_devicemanagerclient_sendcommandtodevice_devicenamebytestring_sync] +import com.google.cloud.iot.v1.DeviceManagerClient; +import com.google.cloud.iot.v1.DeviceName; +import com.google.cloud.iot.v1.SendCommandToDeviceResponse; +import com.google.protobuf.ByteString; + +public class SyncSendCommandToDeviceDevicenameBytestring { + + public static void main(String[] args) throws Exception { + syncSendCommandToDeviceDevicenameBytestring(); + } + + public static void syncSendCommandToDeviceDevicenameBytestring() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (DeviceManagerClient deviceManagerClient = DeviceManagerClient.create()) { + DeviceName name = DeviceName.of("[PROJECT]", "[LOCATION]", "[REGISTRY]", "[DEVICE]"); + ByteString binaryData = ByteString.EMPTY; + SendCommandToDeviceResponse response = + deviceManagerClient.sendCommandToDevice(name, binaryData); + } + } +} +// [END iot_v1_generated_devicemanagerclient_sendcommandtodevice_devicenamebytestring_sync] diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/iot/v1/devicemanagerclient/sendcommandtodevice/SyncSendCommandToDeviceDevicenameBytestringString.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/iot/v1/devicemanagerclient/sendcommandtodevice/SyncSendCommandToDeviceDevicenameBytestringString.java new file mode 100644 index 00000000..3a71ea24 --- /dev/null +++ b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/iot/v1/devicemanagerclient/sendcommandtodevice/SyncSendCommandToDeviceDevicenameBytestringString.java @@ -0,0 +1,43 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.iot.v1.samples; + +// [START iot_v1_generated_devicemanagerclient_sendcommandtodevice_devicenamebytestringstring_sync] +import com.google.cloud.iot.v1.DeviceManagerClient; +import com.google.cloud.iot.v1.DeviceName; +import com.google.cloud.iot.v1.SendCommandToDeviceResponse; +import com.google.protobuf.ByteString; + +public class SyncSendCommandToDeviceDevicenameBytestringString { + + public static void main(String[] args) throws Exception { + syncSendCommandToDeviceDevicenameBytestringString(); + } + + public static void syncSendCommandToDeviceDevicenameBytestringString() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (DeviceManagerClient deviceManagerClient = DeviceManagerClient.create()) { + DeviceName name = DeviceName.of("[PROJECT]", "[LOCATION]", "[REGISTRY]", "[DEVICE]"); + ByteString binaryData = ByteString.EMPTY; + String subfolder = "subfolder153561774"; + SendCommandToDeviceResponse response = + deviceManagerClient.sendCommandToDevice(name, binaryData, subfolder); + } + } +} +// [END iot_v1_generated_devicemanagerclient_sendcommandtodevice_devicenamebytestringstring_sync] diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/iot/v1/devicemanagerclient/sendcommandtodevice/SyncSendCommandToDeviceStringBytestring.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/iot/v1/devicemanagerclient/sendcommandtodevice/SyncSendCommandToDeviceStringBytestring.java new file mode 100644 index 00000000..7d91a2b6 --- /dev/null +++ b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/iot/v1/devicemanagerclient/sendcommandtodevice/SyncSendCommandToDeviceStringBytestring.java @@ -0,0 +1,42 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.iot.v1.samples; + +// [START iot_v1_generated_devicemanagerclient_sendcommandtodevice_stringbytestring_sync] +import com.google.cloud.iot.v1.DeviceManagerClient; +import com.google.cloud.iot.v1.DeviceName; +import com.google.cloud.iot.v1.SendCommandToDeviceResponse; +import com.google.protobuf.ByteString; + +public class SyncSendCommandToDeviceStringBytestring { + + public static void main(String[] args) throws Exception { + syncSendCommandToDeviceStringBytestring(); + } + + public static void syncSendCommandToDeviceStringBytestring() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (DeviceManagerClient deviceManagerClient = DeviceManagerClient.create()) { + String name = DeviceName.of("[PROJECT]", "[LOCATION]", "[REGISTRY]", "[DEVICE]").toString(); + ByteString binaryData = ByteString.EMPTY; + SendCommandToDeviceResponse response = + deviceManagerClient.sendCommandToDevice(name, binaryData); + } + } +} +// [END iot_v1_generated_devicemanagerclient_sendcommandtodevice_stringbytestring_sync] diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/iot/v1/devicemanagerclient/sendcommandtodevice/SyncSendCommandToDeviceStringBytestringString.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/iot/v1/devicemanagerclient/sendcommandtodevice/SyncSendCommandToDeviceStringBytestringString.java new file mode 100644 index 00000000..d21bbd80 --- /dev/null +++ b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/iot/v1/devicemanagerclient/sendcommandtodevice/SyncSendCommandToDeviceStringBytestringString.java @@ -0,0 +1,43 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.iot.v1.samples; + +// [START iot_v1_generated_devicemanagerclient_sendcommandtodevice_stringbytestringstring_sync] +import com.google.cloud.iot.v1.DeviceManagerClient; +import com.google.cloud.iot.v1.DeviceName; +import com.google.cloud.iot.v1.SendCommandToDeviceResponse; +import com.google.protobuf.ByteString; + +public class SyncSendCommandToDeviceStringBytestringString { + + public static void main(String[] args) throws Exception { + syncSendCommandToDeviceStringBytestringString(); + } + + public static void syncSendCommandToDeviceStringBytestringString() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (DeviceManagerClient deviceManagerClient = DeviceManagerClient.create()) { + String name = DeviceName.of("[PROJECT]", "[LOCATION]", "[REGISTRY]", "[DEVICE]").toString(); + ByteString binaryData = ByteString.EMPTY; + String subfolder = "subfolder153561774"; + SendCommandToDeviceResponse response = + deviceManagerClient.sendCommandToDevice(name, binaryData, subfolder); + } + } +} +// [END iot_v1_generated_devicemanagerclient_sendcommandtodevice_stringbytestringstring_sync] diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/iot/v1/devicemanagerclient/setiampolicy/AsyncSetIamPolicy.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/iot/v1/devicemanagerclient/setiampolicy/AsyncSetIamPolicy.java new file mode 100644 index 00000000..9a5e65f3 --- /dev/null +++ b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/iot/v1/devicemanagerclient/setiampolicy/AsyncSetIamPolicy.java @@ -0,0 +1,49 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.iot.v1.samples; + +// [START iot_v1_generated_devicemanagerclient_setiampolicy_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.iot.v1.DeviceManagerClient; +import com.google.cloud.iot.v1.RegistryName; +import com.google.iam.v1.Policy; +import com.google.iam.v1.SetIamPolicyRequest; +import com.google.protobuf.FieldMask; + +public class AsyncSetIamPolicy { + + public static void main(String[] args) throws Exception { + asyncSetIamPolicy(); + } + + public static void asyncSetIamPolicy() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (DeviceManagerClient deviceManagerClient = DeviceManagerClient.create()) { + SetIamPolicyRequest request = + SetIamPolicyRequest.newBuilder() + .setResource(RegistryName.of("[PROJECT]", "[LOCATION]", "[REGISTRY]").toString()) + .setPolicy(Policy.newBuilder().build()) + .setUpdateMask(FieldMask.newBuilder().build()) + .build(); + ApiFuture future = deviceManagerClient.setIamPolicyCallable().futureCall(request); + // Do something. + Policy response = future.get(); + } + } +} +// [END iot_v1_generated_devicemanagerclient_setiampolicy_async] diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/iot/v1/devicemanagerclient/setiampolicy/SyncSetIamPolicy.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/iot/v1/devicemanagerclient/setiampolicy/SyncSetIamPolicy.java new file mode 100644 index 00000000..8921ca90 --- /dev/null +++ b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/iot/v1/devicemanagerclient/setiampolicy/SyncSetIamPolicy.java @@ -0,0 +1,46 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.iot.v1.samples; + +// [START iot_v1_generated_devicemanagerclient_setiampolicy_sync] +import com.google.cloud.iot.v1.DeviceManagerClient; +import com.google.cloud.iot.v1.RegistryName; +import com.google.iam.v1.Policy; +import com.google.iam.v1.SetIamPolicyRequest; +import com.google.protobuf.FieldMask; + +public class SyncSetIamPolicy { + + public static void main(String[] args) throws Exception { + syncSetIamPolicy(); + } + + public static void syncSetIamPolicy() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (DeviceManagerClient deviceManagerClient = DeviceManagerClient.create()) { + SetIamPolicyRequest request = + SetIamPolicyRequest.newBuilder() + .setResource(RegistryName.of("[PROJECT]", "[LOCATION]", "[REGISTRY]").toString()) + .setPolicy(Policy.newBuilder().build()) + .setUpdateMask(FieldMask.newBuilder().build()) + .build(); + Policy response = deviceManagerClient.setIamPolicy(request); + } + } +} +// [END iot_v1_generated_devicemanagerclient_setiampolicy_sync] diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/iot/v1/devicemanagerclient/setiampolicy/SyncSetIamPolicyResourcenamePolicy.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/iot/v1/devicemanagerclient/setiampolicy/SyncSetIamPolicyResourcenamePolicy.java new file mode 100644 index 00000000..66f6682b --- /dev/null +++ b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/iot/v1/devicemanagerclient/setiampolicy/SyncSetIamPolicyResourcenamePolicy.java @@ -0,0 +1,41 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.iot.v1.samples; + +// [START iot_v1_generated_devicemanagerclient_setiampolicy_resourcenamepolicy_sync] +import com.google.api.resourcenames.ResourceName; +import com.google.cloud.iot.v1.DeviceManagerClient; +import com.google.cloud.iot.v1.RegistryName; +import com.google.iam.v1.Policy; + +public class SyncSetIamPolicyResourcenamePolicy { + + public static void main(String[] args) throws Exception { + syncSetIamPolicyResourcenamePolicy(); + } + + public static void syncSetIamPolicyResourcenamePolicy() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (DeviceManagerClient deviceManagerClient = DeviceManagerClient.create()) { + ResourceName resource = RegistryName.of("[PROJECT]", "[LOCATION]", "[REGISTRY]"); + Policy policy = Policy.newBuilder().build(); + Policy response = deviceManagerClient.setIamPolicy(resource, policy); + } + } +} +// [END iot_v1_generated_devicemanagerclient_setiampolicy_resourcenamepolicy_sync] diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/iot/v1/devicemanagerclient/setiampolicy/SyncSetIamPolicyStringPolicy.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/iot/v1/devicemanagerclient/setiampolicy/SyncSetIamPolicyStringPolicy.java new file mode 100644 index 00000000..70a20b65 --- /dev/null +++ b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/iot/v1/devicemanagerclient/setiampolicy/SyncSetIamPolicyStringPolicy.java @@ -0,0 +1,41 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.iot.v1.samples; + +// [START iot_v1_generated_devicemanagerclient_setiampolicy_stringpolicy_sync] +import com.google.cloud.iot.v1.DeviceManagerClient; +import com.google.cloud.iot.v1.DeviceName; +import com.google.iam.v1.Policy; + +public class SyncSetIamPolicyStringPolicy { + + public static void main(String[] args) throws Exception { + syncSetIamPolicyStringPolicy(); + } + + public static void syncSetIamPolicyStringPolicy() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (DeviceManagerClient deviceManagerClient = DeviceManagerClient.create()) { + String resource = + DeviceName.of("[PROJECT]", "[LOCATION]", "[REGISTRY]", "[DEVICE]").toString(); + Policy policy = Policy.newBuilder().build(); + Policy response = deviceManagerClient.setIamPolicy(resource, policy); + } + } +} +// [END iot_v1_generated_devicemanagerclient_setiampolicy_stringpolicy_sync] diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/iot/v1/devicemanagerclient/testiampermissions/AsyncTestIamPermissions.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/iot/v1/devicemanagerclient/testiampermissions/AsyncTestIamPermissions.java new file mode 100644 index 00000000..30fc679e --- /dev/null +++ b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/iot/v1/devicemanagerclient/testiampermissions/AsyncTestIamPermissions.java @@ -0,0 +1,49 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.iot.v1.samples; + +// [START iot_v1_generated_devicemanagerclient_testiampermissions_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.iot.v1.DeviceManagerClient; +import com.google.cloud.iot.v1.RegistryName; +import com.google.iam.v1.TestIamPermissionsRequest; +import com.google.iam.v1.TestIamPermissionsResponse; +import java.util.ArrayList; + +public class AsyncTestIamPermissions { + + public static void main(String[] args) throws Exception { + asyncTestIamPermissions(); + } + + public static void asyncTestIamPermissions() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (DeviceManagerClient deviceManagerClient = DeviceManagerClient.create()) { + TestIamPermissionsRequest request = + TestIamPermissionsRequest.newBuilder() + .setResource(RegistryName.of("[PROJECT]", "[LOCATION]", "[REGISTRY]").toString()) + .addAllPermissions(new ArrayList()) + .build(); + ApiFuture future = + deviceManagerClient.testIamPermissionsCallable().futureCall(request); + // Do something. + TestIamPermissionsResponse response = future.get(); + } + } +} +// [END iot_v1_generated_devicemanagerclient_testiampermissions_async] diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/iot/v1/devicemanagerclient/testiampermissions/SyncTestIamPermissions.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/iot/v1/devicemanagerclient/testiampermissions/SyncTestIamPermissions.java new file mode 100644 index 00000000..5267cf4b --- /dev/null +++ b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/iot/v1/devicemanagerclient/testiampermissions/SyncTestIamPermissions.java @@ -0,0 +1,45 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.iot.v1.samples; + +// [START iot_v1_generated_devicemanagerclient_testiampermissions_sync] +import com.google.cloud.iot.v1.DeviceManagerClient; +import com.google.cloud.iot.v1.RegistryName; +import com.google.iam.v1.TestIamPermissionsRequest; +import com.google.iam.v1.TestIamPermissionsResponse; +import java.util.ArrayList; + +public class SyncTestIamPermissions { + + public static void main(String[] args) throws Exception { + syncTestIamPermissions(); + } + + public static void syncTestIamPermissions() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (DeviceManagerClient deviceManagerClient = DeviceManagerClient.create()) { + TestIamPermissionsRequest request = + TestIamPermissionsRequest.newBuilder() + .setResource(RegistryName.of("[PROJECT]", "[LOCATION]", "[REGISTRY]").toString()) + .addAllPermissions(new ArrayList()) + .build(); + TestIamPermissionsResponse response = deviceManagerClient.testIamPermissions(request); + } + } +} +// [END iot_v1_generated_devicemanagerclient_testiampermissions_sync] diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/iot/v1/devicemanagerclient/testiampermissions/SyncTestIamPermissionsResourcenameListstring.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/iot/v1/devicemanagerclient/testiampermissions/SyncTestIamPermissionsResourcenameListstring.java new file mode 100644 index 00000000..1a0e8fbe --- /dev/null +++ b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/iot/v1/devicemanagerclient/testiampermissions/SyncTestIamPermissionsResourcenameListstring.java @@ -0,0 +1,44 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.iot.v1.samples; + +// [START iot_v1_generated_devicemanagerclient_testiampermissions_resourcenameliststring_sync] +import com.google.api.resourcenames.ResourceName; +import com.google.cloud.iot.v1.DeviceManagerClient; +import com.google.cloud.iot.v1.RegistryName; +import com.google.iam.v1.TestIamPermissionsResponse; +import java.util.ArrayList; +import java.util.List; + +public class SyncTestIamPermissionsResourcenameListstring { + + public static void main(String[] args) throws Exception { + syncTestIamPermissionsResourcenameListstring(); + } + + public static void syncTestIamPermissionsResourcenameListstring() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (DeviceManagerClient deviceManagerClient = DeviceManagerClient.create()) { + ResourceName resource = RegistryName.of("[PROJECT]", "[LOCATION]", "[REGISTRY]"); + List permissions = new ArrayList<>(); + TestIamPermissionsResponse response = + deviceManagerClient.testIamPermissions(resource, permissions); + } + } +} +// [END iot_v1_generated_devicemanagerclient_testiampermissions_resourcenameliststring_sync] diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/iot/v1/devicemanagerclient/testiampermissions/SyncTestIamPermissionsStringListstring.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/iot/v1/devicemanagerclient/testiampermissions/SyncTestIamPermissionsStringListstring.java new file mode 100644 index 00000000..d0807fe6 --- /dev/null +++ b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/iot/v1/devicemanagerclient/testiampermissions/SyncTestIamPermissionsStringListstring.java @@ -0,0 +1,44 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.iot.v1.samples; + +// [START iot_v1_generated_devicemanagerclient_testiampermissions_stringliststring_sync] +import com.google.cloud.iot.v1.DeviceManagerClient; +import com.google.cloud.iot.v1.DeviceName; +import com.google.iam.v1.TestIamPermissionsResponse; +import java.util.ArrayList; +import java.util.List; + +public class SyncTestIamPermissionsStringListstring { + + public static void main(String[] args) throws Exception { + syncTestIamPermissionsStringListstring(); + } + + public static void syncTestIamPermissionsStringListstring() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (DeviceManagerClient deviceManagerClient = DeviceManagerClient.create()) { + String resource = + DeviceName.of("[PROJECT]", "[LOCATION]", "[REGISTRY]", "[DEVICE]").toString(); + List permissions = new ArrayList<>(); + TestIamPermissionsResponse response = + deviceManagerClient.testIamPermissions(resource, permissions); + } + } +} +// [END iot_v1_generated_devicemanagerclient_testiampermissions_stringliststring_sync] diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/iot/v1/devicemanagerclient/unbinddevicefromgateway/AsyncUnbindDeviceFromGateway.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/iot/v1/devicemanagerclient/unbinddevicefromgateway/AsyncUnbindDeviceFromGateway.java new file mode 100644 index 00000000..ef98fd8c --- /dev/null +++ b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/iot/v1/devicemanagerclient/unbinddevicefromgateway/AsyncUnbindDeviceFromGateway.java @@ -0,0 +1,49 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.iot.v1.samples; + +// [START iot_v1_generated_devicemanagerclient_unbinddevicefromgateway_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.iot.v1.DeviceManagerClient; +import com.google.cloud.iot.v1.RegistryName; +import com.google.cloud.iot.v1.UnbindDeviceFromGatewayRequest; +import com.google.cloud.iot.v1.UnbindDeviceFromGatewayResponse; + +public class AsyncUnbindDeviceFromGateway { + + public static void main(String[] args) throws Exception { + asyncUnbindDeviceFromGateway(); + } + + public static void asyncUnbindDeviceFromGateway() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (DeviceManagerClient deviceManagerClient = DeviceManagerClient.create()) { + UnbindDeviceFromGatewayRequest request = + UnbindDeviceFromGatewayRequest.newBuilder() + .setParent(RegistryName.of("[PROJECT]", "[LOCATION]", "[REGISTRY]").toString()) + .setGatewayId("gatewayId-1354641793") + .setDeviceId("deviceId1109191185") + .build(); + ApiFuture future = + deviceManagerClient.unbindDeviceFromGatewayCallable().futureCall(request); + // Do something. + UnbindDeviceFromGatewayResponse response = future.get(); + } + } +} +// [END iot_v1_generated_devicemanagerclient_unbinddevicefromgateway_async] diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/iot/v1/devicemanagerclient/unbinddevicefromgateway/SyncUnbindDeviceFromGateway.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/iot/v1/devicemanagerclient/unbinddevicefromgateway/SyncUnbindDeviceFromGateway.java new file mode 100644 index 00000000..d58e14fe --- /dev/null +++ b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/iot/v1/devicemanagerclient/unbinddevicefromgateway/SyncUnbindDeviceFromGateway.java @@ -0,0 +1,46 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.iot.v1.samples; + +// [START iot_v1_generated_devicemanagerclient_unbinddevicefromgateway_sync] +import com.google.cloud.iot.v1.DeviceManagerClient; +import com.google.cloud.iot.v1.RegistryName; +import com.google.cloud.iot.v1.UnbindDeviceFromGatewayRequest; +import com.google.cloud.iot.v1.UnbindDeviceFromGatewayResponse; + +public class SyncUnbindDeviceFromGateway { + + public static void main(String[] args) throws Exception { + syncUnbindDeviceFromGateway(); + } + + public static void syncUnbindDeviceFromGateway() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (DeviceManagerClient deviceManagerClient = DeviceManagerClient.create()) { + UnbindDeviceFromGatewayRequest request = + UnbindDeviceFromGatewayRequest.newBuilder() + .setParent(RegistryName.of("[PROJECT]", "[LOCATION]", "[REGISTRY]").toString()) + .setGatewayId("gatewayId-1354641793") + .setDeviceId("deviceId1109191185") + .build(); + UnbindDeviceFromGatewayResponse response = + deviceManagerClient.unbindDeviceFromGateway(request); + } + } +} +// [END iot_v1_generated_devicemanagerclient_unbinddevicefromgateway_sync] diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/iot/v1/devicemanagerclient/unbinddevicefromgateway/SyncUnbindDeviceFromGatewayRegistrynameStringString.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/iot/v1/devicemanagerclient/unbinddevicefromgateway/SyncUnbindDeviceFromGatewayRegistrynameStringString.java new file mode 100644 index 00000000..bae1f73b --- /dev/null +++ b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/iot/v1/devicemanagerclient/unbinddevicefromgateway/SyncUnbindDeviceFromGatewayRegistrynameStringString.java @@ -0,0 +1,42 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.iot.v1.samples; + +// [START iot_v1_generated_devicemanagerclient_unbinddevicefromgateway_registrynamestringstring_sync] +import com.google.cloud.iot.v1.DeviceManagerClient; +import com.google.cloud.iot.v1.RegistryName; +import com.google.cloud.iot.v1.UnbindDeviceFromGatewayResponse; + +public class SyncUnbindDeviceFromGatewayRegistrynameStringString { + + public static void main(String[] args) throws Exception { + syncUnbindDeviceFromGatewayRegistrynameStringString(); + } + + public static void syncUnbindDeviceFromGatewayRegistrynameStringString() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (DeviceManagerClient deviceManagerClient = DeviceManagerClient.create()) { + RegistryName parent = RegistryName.of("[PROJECT]", "[LOCATION]", "[REGISTRY]"); + String gatewayId = "gatewayId-1354641793"; + String deviceId = "deviceId1109191185"; + UnbindDeviceFromGatewayResponse response = + deviceManagerClient.unbindDeviceFromGateway(parent, gatewayId, deviceId); + } + } +} +// [END iot_v1_generated_devicemanagerclient_unbinddevicefromgateway_registrynamestringstring_sync] diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/iot/v1/devicemanagerclient/unbinddevicefromgateway/SyncUnbindDeviceFromGatewayStringStringString.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/iot/v1/devicemanagerclient/unbinddevicefromgateway/SyncUnbindDeviceFromGatewayStringStringString.java new file mode 100644 index 00000000..62f593e3 --- /dev/null +++ b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/iot/v1/devicemanagerclient/unbinddevicefromgateway/SyncUnbindDeviceFromGatewayStringStringString.java @@ -0,0 +1,42 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.iot.v1.samples; + +// [START iot_v1_generated_devicemanagerclient_unbinddevicefromgateway_stringstringstring_sync] +import com.google.cloud.iot.v1.DeviceManagerClient; +import com.google.cloud.iot.v1.RegistryName; +import com.google.cloud.iot.v1.UnbindDeviceFromGatewayResponse; + +public class SyncUnbindDeviceFromGatewayStringStringString { + + public static void main(String[] args) throws Exception { + syncUnbindDeviceFromGatewayStringStringString(); + } + + public static void syncUnbindDeviceFromGatewayStringStringString() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (DeviceManagerClient deviceManagerClient = DeviceManagerClient.create()) { + String parent = RegistryName.of("[PROJECT]", "[LOCATION]", "[REGISTRY]").toString(); + String gatewayId = "gatewayId-1354641793"; + String deviceId = "deviceId1109191185"; + UnbindDeviceFromGatewayResponse response = + deviceManagerClient.unbindDeviceFromGateway(parent, gatewayId, deviceId); + } + } +} +// [END iot_v1_generated_devicemanagerclient_unbinddevicefromgateway_stringstringstring_sync] diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/iot/v1/devicemanagerclient/updatedevice/AsyncUpdateDevice.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/iot/v1/devicemanagerclient/updatedevice/AsyncUpdateDevice.java new file mode 100644 index 00000000..f97b79d2 --- /dev/null +++ b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/iot/v1/devicemanagerclient/updatedevice/AsyncUpdateDevice.java @@ -0,0 +1,47 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.iot.v1.samples; + +// [START iot_v1_generated_devicemanagerclient_updatedevice_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.iot.v1.Device; +import com.google.cloud.iot.v1.DeviceManagerClient; +import com.google.cloud.iot.v1.UpdateDeviceRequest; +import com.google.protobuf.FieldMask; + +public class AsyncUpdateDevice { + + public static void main(String[] args) throws Exception { + asyncUpdateDevice(); + } + + public static void asyncUpdateDevice() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (DeviceManagerClient deviceManagerClient = DeviceManagerClient.create()) { + UpdateDeviceRequest request = + UpdateDeviceRequest.newBuilder() + .setDevice(Device.newBuilder().build()) + .setUpdateMask(FieldMask.newBuilder().build()) + .build(); + ApiFuture future = deviceManagerClient.updateDeviceCallable().futureCall(request); + // Do something. + Device response = future.get(); + } + } +} +// [END iot_v1_generated_devicemanagerclient_updatedevice_async] diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/iot/v1/devicemanagerclient/updatedevice/SyncUpdateDevice.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/iot/v1/devicemanagerclient/updatedevice/SyncUpdateDevice.java new file mode 100644 index 00000000..f492fe05 --- /dev/null +++ b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/iot/v1/devicemanagerclient/updatedevice/SyncUpdateDevice.java @@ -0,0 +1,44 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.iot.v1.samples; + +// [START iot_v1_generated_devicemanagerclient_updatedevice_sync] +import com.google.cloud.iot.v1.Device; +import com.google.cloud.iot.v1.DeviceManagerClient; +import com.google.cloud.iot.v1.UpdateDeviceRequest; +import com.google.protobuf.FieldMask; + +public class SyncUpdateDevice { + + public static void main(String[] args) throws Exception { + syncUpdateDevice(); + } + + public static void syncUpdateDevice() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (DeviceManagerClient deviceManagerClient = DeviceManagerClient.create()) { + UpdateDeviceRequest request = + UpdateDeviceRequest.newBuilder() + .setDevice(Device.newBuilder().build()) + .setUpdateMask(FieldMask.newBuilder().build()) + .build(); + Device response = deviceManagerClient.updateDevice(request); + } + } +} +// [END iot_v1_generated_devicemanagerclient_updatedevice_sync] diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/iot/v1/devicemanagerclient/updatedevice/SyncUpdateDeviceDeviceFieldmask.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/iot/v1/devicemanagerclient/updatedevice/SyncUpdateDeviceDeviceFieldmask.java new file mode 100644 index 00000000..b6ff04cc --- /dev/null +++ b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/iot/v1/devicemanagerclient/updatedevice/SyncUpdateDeviceDeviceFieldmask.java @@ -0,0 +1,40 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.iot.v1.samples; + +// [START iot_v1_generated_devicemanagerclient_updatedevice_devicefieldmask_sync] +import com.google.cloud.iot.v1.Device; +import com.google.cloud.iot.v1.DeviceManagerClient; +import com.google.protobuf.FieldMask; + +public class SyncUpdateDeviceDeviceFieldmask { + + public static void main(String[] args) throws Exception { + syncUpdateDeviceDeviceFieldmask(); + } + + public static void syncUpdateDeviceDeviceFieldmask() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (DeviceManagerClient deviceManagerClient = DeviceManagerClient.create()) { + Device device = Device.newBuilder().build(); + FieldMask updateMask = FieldMask.newBuilder().build(); + Device response = deviceManagerClient.updateDevice(device, updateMask); + } + } +} +// [END iot_v1_generated_devicemanagerclient_updatedevice_devicefieldmask_sync] diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/iot/v1/devicemanagerclient/updatedeviceregistry/AsyncUpdateDeviceRegistry.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/iot/v1/devicemanagerclient/updatedeviceregistry/AsyncUpdateDeviceRegistry.java new file mode 100644 index 00000000..f5662c33 --- /dev/null +++ b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/iot/v1/devicemanagerclient/updatedeviceregistry/AsyncUpdateDeviceRegistry.java @@ -0,0 +1,48 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.iot.v1.samples; + +// [START iot_v1_generated_devicemanagerclient_updatedeviceregistry_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.iot.v1.DeviceManagerClient; +import com.google.cloud.iot.v1.DeviceRegistry; +import com.google.cloud.iot.v1.UpdateDeviceRegistryRequest; +import com.google.protobuf.FieldMask; + +public class AsyncUpdateDeviceRegistry { + + public static void main(String[] args) throws Exception { + asyncUpdateDeviceRegistry(); + } + + public static void asyncUpdateDeviceRegistry() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (DeviceManagerClient deviceManagerClient = DeviceManagerClient.create()) { + UpdateDeviceRegistryRequest request = + UpdateDeviceRegistryRequest.newBuilder() + .setDeviceRegistry(DeviceRegistry.newBuilder().build()) + .setUpdateMask(FieldMask.newBuilder().build()) + .build(); + ApiFuture future = + deviceManagerClient.updateDeviceRegistryCallable().futureCall(request); + // Do something. + DeviceRegistry response = future.get(); + } + } +} +// [END iot_v1_generated_devicemanagerclient_updatedeviceregistry_async] diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/iot/v1/devicemanagerclient/updatedeviceregistry/SyncUpdateDeviceRegistry.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/iot/v1/devicemanagerclient/updatedeviceregistry/SyncUpdateDeviceRegistry.java new file mode 100644 index 00000000..3625e1a9 --- /dev/null +++ b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/iot/v1/devicemanagerclient/updatedeviceregistry/SyncUpdateDeviceRegistry.java @@ -0,0 +1,44 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.iot.v1.samples; + +// [START iot_v1_generated_devicemanagerclient_updatedeviceregistry_sync] +import com.google.cloud.iot.v1.DeviceManagerClient; +import com.google.cloud.iot.v1.DeviceRegistry; +import com.google.cloud.iot.v1.UpdateDeviceRegistryRequest; +import com.google.protobuf.FieldMask; + +public class SyncUpdateDeviceRegistry { + + public static void main(String[] args) throws Exception { + syncUpdateDeviceRegistry(); + } + + public static void syncUpdateDeviceRegistry() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (DeviceManagerClient deviceManagerClient = DeviceManagerClient.create()) { + UpdateDeviceRegistryRequest request = + UpdateDeviceRegistryRequest.newBuilder() + .setDeviceRegistry(DeviceRegistry.newBuilder().build()) + .setUpdateMask(FieldMask.newBuilder().build()) + .build(); + DeviceRegistry response = deviceManagerClient.updateDeviceRegistry(request); + } + } +} +// [END iot_v1_generated_devicemanagerclient_updatedeviceregistry_sync] diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/iot/v1/devicemanagerclient/updatedeviceregistry/SyncUpdateDeviceRegistryDeviceregistryFieldmask.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/iot/v1/devicemanagerclient/updatedeviceregistry/SyncUpdateDeviceRegistryDeviceregistryFieldmask.java new file mode 100644 index 00000000..8ba608c9 --- /dev/null +++ b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/iot/v1/devicemanagerclient/updatedeviceregistry/SyncUpdateDeviceRegistryDeviceregistryFieldmask.java @@ -0,0 +1,41 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.iot.v1.samples; + +// [START iot_v1_generated_devicemanagerclient_updatedeviceregistry_deviceregistryfieldmask_sync] +import com.google.cloud.iot.v1.DeviceManagerClient; +import com.google.cloud.iot.v1.DeviceRegistry; +import com.google.protobuf.FieldMask; + +public class SyncUpdateDeviceRegistryDeviceregistryFieldmask { + + public static void main(String[] args) throws Exception { + syncUpdateDeviceRegistryDeviceregistryFieldmask(); + } + + public static void syncUpdateDeviceRegistryDeviceregistryFieldmask() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (DeviceManagerClient deviceManagerClient = DeviceManagerClient.create()) { + DeviceRegistry deviceRegistry = DeviceRegistry.newBuilder().build(); + FieldMask updateMask = FieldMask.newBuilder().build(); + DeviceRegistry response = + deviceManagerClient.updateDeviceRegistry(deviceRegistry, updateMask); + } + } +} +// [END iot_v1_generated_devicemanagerclient_updatedeviceregistry_deviceregistryfieldmask_sync] diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/iot/v1/devicemanagersettings/createdeviceregistry/SyncCreateDeviceRegistry.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/iot/v1/devicemanagersettings/createdeviceregistry/SyncCreateDeviceRegistry.java new file mode 100644 index 00000000..3090bcb1 --- /dev/null +++ b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/iot/v1/devicemanagersettings/createdeviceregistry/SyncCreateDeviceRegistry.java @@ -0,0 +1,45 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.iot.v1.samples; + +// [START iot_v1_generated_devicemanagersettings_createdeviceregistry_sync] +import com.google.cloud.iot.v1.DeviceManagerSettings; +import java.time.Duration; + +public class SyncCreateDeviceRegistry { + + public static void main(String[] args) throws Exception { + syncCreateDeviceRegistry(); + } + + public static void syncCreateDeviceRegistry() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + DeviceManagerSettings.Builder deviceManagerSettingsBuilder = DeviceManagerSettings.newBuilder(); + deviceManagerSettingsBuilder + .createDeviceRegistrySettings() + .setRetrySettings( + deviceManagerSettingsBuilder + .createDeviceRegistrySettings() + .getRetrySettings() + .toBuilder() + .setTotalTimeout(Duration.ofSeconds(30)) + .build()); + DeviceManagerSettings deviceManagerSettings = deviceManagerSettingsBuilder.build(); + } +} +// [END iot_v1_generated_devicemanagersettings_createdeviceregistry_sync] diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/iot/v1/stub/devicemanagerstubsettings/createdeviceregistry/SyncCreateDeviceRegistry.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/iot/v1/stub/devicemanagerstubsettings/createdeviceregistry/SyncCreateDeviceRegistry.java new file mode 100644 index 00000000..acfb9649 --- /dev/null +++ b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/iot/v1/stub/devicemanagerstubsettings/createdeviceregistry/SyncCreateDeviceRegistry.java @@ -0,0 +1,46 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.iot.v1.stub.samples; + +// [START iot_v1_generated_devicemanagerstubsettings_createdeviceregistry_sync] +import com.google.cloud.iot.v1.stub.DeviceManagerStubSettings; +import java.time.Duration; + +public class SyncCreateDeviceRegistry { + + public static void main(String[] args) throws Exception { + syncCreateDeviceRegistry(); + } + + public static void syncCreateDeviceRegistry() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + DeviceManagerStubSettings.Builder deviceManagerSettingsBuilder = + DeviceManagerStubSettings.newBuilder(); + deviceManagerSettingsBuilder + .createDeviceRegistrySettings() + .setRetrySettings( + deviceManagerSettingsBuilder + .createDeviceRegistrySettings() + .getRetrySettings() + .toBuilder() + .setTotalTimeout(Duration.ofSeconds(30)) + .build()); + DeviceManagerStubSettings deviceManagerSettings = deviceManagerSettingsBuilder.build(); + } +} +// [END iot_v1_generated_devicemanagerstubsettings_createdeviceregistry_sync] diff --git a/proto-google-cloud-iot-v1/src/main/java/com/google/cloud/iot/v1/BindDeviceToGatewayResponseOrBuilder.java b/proto-google-cloud-iot-v1/src/main/java/com/google/cloud/iot/v1/BindDeviceToGatewayResponseOrBuilder.java deleted file mode 100644 index a5011d31..00000000 --- a/proto-google-cloud-iot-v1/src/main/java/com/google/cloud/iot/v1/BindDeviceToGatewayResponseOrBuilder.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/iot/v1/device_manager.proto - -package com.google.cloud.iot.v1; - -public interface BindDeviceToGatewayResponseOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.iot.v1.BindDeviceToGatewayResponse) - com.google.protobuf.MessageOrBuilder {} diff --git a/proto-google-cloud-iot-v1/src/main/java/com/google/cloud/iot/v1/DeleteDeviceRegistryRequestOrBuilder.java b/proto-google-cloud-iot-v1/src/main/java/com/google/cloud/iot/v1/DeleteDeviceRegistryRequestOrBuilder.java deleted file mode 100644 index 17946cf9..00000000 --- a/proto-google-cloud-iot-v1/src/main/java/com/google/cloud/iot/v1/DeleteDeviceRegistryRequestOrBuilder.java +++ /dev/null @@ -1,56 +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/iot/v1/device_manager.proto - -package com.google.cloud.iot.v1; - -public interface DeleteDeviceRegistryRequestOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.iot.v1.DeleteDeviceRegistryRequest) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Required. The name of the device registry. For example,
-   * `projects/example-project/locations/us-central1/registries/my-registry`.
-   * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The name. - */ - java.lang.String getName(); - /** - * - * - *
-   * Required. The name of the device registry. For example,
-   * `projects/example-project/locations/us-central1/registries/my-registry`.
-   * 
- * - * - * 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-iot-v1/src/main/java/com/google/cloud/iot/v1/DeleteDeviceRequestOrBuilder.java b/proto-google-cloud-iot-v1/src/main/java/com/google/cloud/iot/v1/DeleteDeviceRequestOrBuilder.java deleted file mode 100644 index 86313705..00000000 --- a/proto-google-cloud-iot-v1/src/main/java/com/google/cloud/iot/v1/DeleteDeviceRequestOrBuilder.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/iot/v1/device_manager.proto - -package com.google.cloud.iot.v1; - -public interface DeleteDeviceRequestOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.iot.v1.DeleteDeviceRequest) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Required. The name of the device. For example,
-   * `projects/p0/locations/us-central1/registries/registry0/devices/device0` or
-   * `projects/p0/locations/us-central1/registries/registry0/devices/{num_id}`.
-   * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The name. - */ - java.lang.String getName(); - /** - * - * - *
-   * Required. The name of the device. For example,
-   * `projects/p0/locations/us-central1/registries/registry0/devices/device0` or
-   * `projects/p0/locations/us-central1/registries/registry0/devices/{num_id}`.
-   * 
- * - * - * 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-iot-v1/src/main/java/com/google/cloud/iot/v1/DeviceManagerProto.java b/proto-google-cloud-iot-v1/src/main/java/com/google/cloud/iot/v1/DeviceManagerProto.java deleted file mode 100644 index 5c7b63b8..00000000 --- a/proto-google-cloud-iot-v1/src/main/java/com/google/cloud/iot/v1/DeviceManagerProto.java +++ /dev/null @@ -1,570 +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/iot/v1/device_manager.proto - -package com.google.cloud.iot.v1; - -public final class DeviceManagerProto { - private DeviceManagerProto() {} - - 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_iot_v1_CreateDeviceRegistryRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_iot_v1_CreateDeviceRegistryRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_iot_v1_GetDeviceRegistryRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_iot_v1_GetDeviceRegistryRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_iot_v1_DeleteDeviceRegistryRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_iot_v1_DeleteDeviceRegistryRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_iot_v1_UpdateDeviceRegistryRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_iot_v1_UpdateDeviceRegistryRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_iot_v1_ListDeviceRegistriesRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_iot_v1_ListDeviceRegistriesRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_iot_v1_ListDeviceRegistriesResponse_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_iot_v1_ListDeviceRegistriesResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_iot_v1_CreateDeviceRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_iot_v1_CreateDeviceRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_iot_v1_GetDeviceRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_iot_v1_GetDeviceRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_iot_v1_UpdateDeviceRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_iot_v1_UpdateDeviceRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_iot_v1_DeleteDeviceRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_iot_v1_DeleteDeviceRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_iot_v1_ListDevicesRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_iot_v1_ListDevicesRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_iot_v1_GatewayListOptions_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_iot_v1_GatewayListOptions_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_iot_v1_ListDevicesResponse_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_iot_v1_ListDevicesResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_iot_v1_ModifyCloudToDeviceConfigRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_iot_v1_ModifyCloudToDeviceConfigRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_iot_v1_ListDeviceConfigVersionsRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_iot_v1_ListDeviceConfigVersionsRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_iot_v1_ListDeviceConfigVersionsResponse_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_iot_v1_ListDeviceConfigVersionsResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_iot_v1_ListDeviceStatesRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_iot_v1_ListDeviceStatesRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_iot_v1_ListDeviceStatesResponse_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_iot_v1_ListDeviceStatesResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_iot_v1_SendCommandToDeviceRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_iot_v1_SendCommandToDeviceRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_iot_v1_SendCommandToDeviceResponse_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_iot_v1_SendCommandToDeviceResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_iot_v1_BindDeviceToGatewayRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_iot_v1_BindDeviceToGatewayRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_iot_v1_BindDeviceToGatewayResponse_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_iot_v1_BindDeviceToGatewayResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_iot_v1_UnbindDeviceFromGatewayRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_iot_v1_UnbindDeviceFromGatewayRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_iot_v1_UnbindDeviceFromGatewayResponse_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_iot_v1_UnbindDeviceFromGatewayResponse_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/iot/v1/device_manager.pro" - + "to\022\023google.cloud.iot.v1\032\034google/api/anno" - + "tations.proto\032\027google/api/client.proto\032\037" - + "google/api/field_behavior.proto\032\031google/" - + "api/resource.proto\032#google/cloud/iot/v1/" - + "resources.proto\032\036google/iam/v1/iam_polic" - + "y.proto\032\032google/iam/v1/policy.proto\032\033goo" - + "gle/protobuf/empty.proto\032 google/protobu" - + "f/field_mask.proto\032\027google/rpc/status.pr" - + "oto\"\233\001\n\033CreateDeviceRegistryRequest\0229\n\006p" - + "arent\030\001 \001(\tB)\340A\002\372A#\n!locations.googleapi" - + "s.com/Location\022A\n\017device_registry\030\002 \001(\0132" - + "#.google.cloud.iot.v1.DeviceRegistryB\003\340A" - + "\002\"R\n\030GetDeviceRegistryRequest\0226\n\004name\030\001 " - + "\001(\tB(\340A\002\372A\"\n cloudiot.googleapis.com/Reg" - + "istry\"U\n\033DeleteDeviceRegistryRequest\0226\n\004" - + "name\030\001 \001(\tB(\340A\002\372A\"\n cloudiot.googleapis." - + "com/Registry\"\226\001\n\033UpdateDeviceRegistryReq" - + "uest\022A\n\017device_registry\030\001 \001(\0132#.google.c" - + "loud.iot.v1.DeviceRegistryB\003\340A\002\0224\n\013updat" - + "e_mask\030\002 \001(\0132\032.google.protobuf.FieldMask" - + "B\003\340A\002\"\177\n\033ListDeviceRegistriesRequest\0229\n\006" - + "parent\030\001 \001(\tB)\340A\002\372A#\n!locations.googleap" - + "is.com/Location\022\021\n\tpage_size\030\002 \001(\005\022\022\n\npa" - + "ge_token\030\003 \001(\t\"w\n\034ListDeviceRegistriesRe" - + "sponse\022>\n\021device_registries\030\001 \003(\0132#.goog" - + "le.cloud.iot.v1.DeviceRegistry\022\027\n\017next_p" - + "age_token\030\002 \001(\t\"\201\001\n\023CreateDeviceRequest\022" - + "8\n\006parent\030\001 \001(\tB(\340A\002\372A\"\n cloudiot.google" - + "apis.com/Registry\0220\n\006device\030\002 \001(\0132\033.goog" - + "le.cloud.iot.v1.DeviceB\003\340A\002\"x\n\020GetDevice" - + "Request\0224\n\004name\030\001 \001(\tB&\340A\002\372A \n\036cloudiot." - + "googleapis.com/Device\022.\n\nfield_mask\030\002 \001(" - + "\0132\032.google.protobuf.FieldMask\"}\n\023UpdateD" - + "eviceRequest\0220\n\006device\030\002 \001(\0132\033.google.cl" - + "oud.iot.v1.DeviceB\003\340A\002\0224\n\013update_mask\030\003 " - + "\001(\0132\032.google.protobuf.FieldMaskB\003\340A\002\"K\n\023" - + "DeleteDeviceRequest\0224\n\004name\030\001 \001(\tB&\340A\002\372A" - + " \n\036cloudiot.googleapis.com/Device\"\230\002\n\022Li" - + "stDevicesRequest\0228\n\006parent\030\001 \001(\tB(\340A\002\372A\"" - + "\n cloudiot.googleapis.com/Registry\022\026\n\016de" - + "vice_num_ids\030\002 \003(\004\022\022\n\ndevice_ids\030\003 \003(\t\022." - + "\n\nfield_mask\030\004 \001(\0132\032.google.protobuf.Fie" - + "ldMask\022E\n\024gateway_list_options\030\006 \001(\0132\'.g" - + "oogle.cloud.iot.v1.GatewayListOptions\022\021\n" - + "\tpage_size\030d \001(\005\022\022\n\npage_token\030e \001(\t\"\235\001\n" - + "\022GatewayListOptions\0228\n\014gateway_type\030\001 \001(" - + "\0162 .google.cloud.iot.v1.GatewayTypeH\000\022!\n" - + "\027associations_gateway_id\030\002 \001(\tH\000\022 \n\026asso" - + "ciations_device_id\030\003 \001(\tH\000B\010\n\006filter\"\\\n\023" - + "ListDevicesResponse\022,\n\007devices\030\001 \003(\0132\033.g" - + "oogle.cloud.iot.v1.Device\022\027\n\017next_page_t" - + "oken\030\002 \001(\t\"\215\001\n ModifyCloudToDeviceConfig" - + "Request\0224\n\004name\030\001 \001(\tB&\340A\002\372A \n\036cloudiot." - + "googleapis.com/Device\022\031\n\021version_to_upda" - + "te\030\002 \001(\003\022\030\n\013binary_data\030\003 \001(\014B\003\340A\002\"m\n\037Li" - + "stDeviceConfigVersionsRequest\0224\n\004name\030\001 " - + "\001(\tB&\340A\002\372A \n\036cloudiot.googleapis.com/Dev" - + "ice\022\024\n\014num_versions\030\002 \001(\005\"]\n ListDeviceC" - + "onfigVersionsResponse\0229\n\016device_configs\030" - + "\001 \003(\0132!.google.cloud.iot.v1.DeviceConfig" - + "\"c\n\027ListDeviceStatesRequest\0224\n\004name\030\001 \001(" - + "\tB&\340A\002\372A \n\036cloudiot.googleapis.com/Devic" - + "e\022\022\n\nnum_states\030\002 \001(\005\"S\n\030ListDeviceState" - + "sResponse\0227\n\rdevice_states\030\001 \003(\0132 .googl" - + "e.cloud.iot.v1.DeviceState\"\177\n\032SendComman" - + "dToDeviceRequest\0224\n\004name\030\001 \001(\tB&\340A\002\372A \n\036" - + "cloudiot.googleapis.com/Device\022\030\n\013binary" - + "_data\030\002 \001(\014B\003\340A\002\022\021\n\tsubfolder\030\003 \001(\t\"\035\n\033S" - + "endCommandToDeviceResponse\"\207\001\n\032BindDevic" - + "eToGatewayRequest\0228\n\006parent\030\001 \001(\tB(\340A\002\372A" - + "\"\n cloudiot.googleapis.com/Registry\022\027\n\ng" - + "ateway_id\030\002 \001(\tB\003\340A\002\022\026\n\tdevice_id\030\003 \001(\tB" - + "\003\340A\002\"\035\n\033BindDeviceToGatewayResponse\"\213\001\n\036" - + "UnbindDeviceFromGatewayRequest\0228\n\006parent" - + "\030\001 \001(\tB(\340A\002\372A\"\n cloudiot.googleapis.com/" - + "Registry\022\027\n\ngateway_id\030\002 \001(\tB\003\340A\002\022\026\n\tdev" - + "ice_id\030\003 \001(\tB\003\340A\002\"!\n\037UnbindDeviceFromGat" - + "ewayResponse2\246&\n\rDeviceManager\022\317\001\n\024Creat" - + "eDeviceRegistry\0220.google.cloud.iot.v1.Cr" - + "eateDeviceRegistryRequest\032#.google.cloud" - + ".iot.v1.DeviceRegistry\"`\202\323\344\223\002A\"./v1/{par" - + "ent=projects/*/locations/*}/registries:\017" - + "device_registry\332A\026parent,device_registry" - + "\022\246\001\n\021GetDeviceRegistry\022-.google.cloud.io" - + "t.v1.GetDeviceRegistryRequest\032#.google.c" - + "loud.iot.v1.DeviceRegistry\"=\202\323\344\223\0020\022./v1/" - + "{name=projects/*/locations/*/registries/" - + "*}\332A\004name\022\344\001\n\024UpdateDeviceRegistry\0220.goo" - + "gle.cloud.iot.v1.UpdateDeviceRegistryReq" - + "uest\032#.google.cloud.iot.v1.DeviceRegistr" - + "y\"u\202\323\344\223\002Q2>/v1/{device_registry.name=pro" - + "jects/*/locations/*/registries/*}:\017devic" - + "e_registry\332A\033device_registry,update_mask" - + "\022\237\001\n\024DeleteDeviceRegistry\0220.google.cloud" - + ".iot.v1.DeleteDeviceRegistryRequest\032\026.go" - + "ogle.protobuf.Empty\"=\202\323\344\223\0020*./v1/{name=p" - + "rojects/*/locations/*/registries/*}\332A\004na" - + "me\022\274\001\n\024ListDeviceRegistries\0220.google.clo" - + "ud.iot.v1.ListDeviceRegistriesRequest\0321." - + "google.cloud.iot.v1.ListDeviceRegistries" - + "Response\"?\202\323\344\223\0020\022./v1/{parent=projects/*" - + "/locations/*}/registries\332A\006parent\022\257\001\n\014Cr" - + "eateDevice\022(.google.cloud.iot.v1.CreateD" - + "eviceRequest\032\033.google.cloud.iot.v1.Devic" - + "e\"X\202\323\344\223\002B\"8/v1/{parent=projects/*/locati" - + "ons/*/registries/*}/devices:\006device\332A\rpa" - + "rent,device\022\336\001\n\tGetDevice\022%.google.cloud" - + ".iot.v1.GetDeviceRequest\032\033.google.cloud." - + "iot.v1.Device\"\214\001\202\323\344\223\002\177\0228/v1/{name=projec" - + "ts/*/locations/*/registries/*/devices/*}" - + "ZC\022A/v1/{name=projects/*/locations/*/reg" - + "istries/*/groups/*/devices/*}\332A\004name\022\221\002\n" - + "\014UpdateDevice\022(.google.cloud.iot.v1.Upda" - + "teDeviceRequest\032\033.google.cloud.iot.v1.De" - + "vice\"\271\001\202\323\344\223\002\235\0012?/v1/{device.name=project" - + "s/*/locations/*/registries/*/devices/*}:" - + "\006deviceZR2H/v1/{device.name=projects/*/l" - + "ocations/*/registries/*/groups/*/devices" - + "/*}:\006device\332A\022device,update_mask\022\231\001\n\014Del" - + "eteDevice\022(.google.cloud.iot.v1.DeleteDe" - + "viceRequest\032\026.google.protobuf.Empty\"G\202\323\344" - + "\223\002:*8/v1/{name=projects/*/locations/*/re" - + "gistries/*/devices/*}\332A\004name\022\361\001\n\013ListDev" - + "ices\022\'.google.cloud.iot.v1.ListDevicesRe" - + "quest\032(.google.cloud.iot.v1.ListDevicesR" - + "esponse\"\216\001\202\323\344\223\002\177\0228/v1/{parent=projects/*" - + "/locations/*/registries/*}/devicesZC\022A/v" - + "1/{parent=projects/*/locations/*/registr" - + "ies/*/groups/*}/devices\332A\006parent\022\313\002\n\031Mod" - + "ifyCloudToDeviceConfig\0225.google.cloud.io" - + "t.v1.ModifyCloudToDeviceConfigRequest\032!." - + "google.cloud.iot.v1.DeviceConfig\"\323\001\202\323\344\223\002" - + "\271\001\"R/v1/{name=projects/*/locations/*/reg" - + "istries/*/devices/*}:modifyCloudToDevice" - + "Config:\001*Z`\"[/v1/{name=projects/*/locati" - + "ons/*/registries/*/groups/*/devices/*}:m" - + "odifyCloudToDeviceConfig:\001*\332A\020name,binar" - + "y_data\022\265\002\n\030ListDeviceConfigVersions\0224.go" - + "ogle.cloud.iot.v1.ListDeviceConfigVersio" - + "nsRequest\0325.google.cloud.iot.v1.ListDevi" - + "ceConfigVersionsResponse\"\253\001\202\323\344\223\002\235\001\022G/v1/" - + "{name=projects/*/locations/*/registries/" - + "*/devices/*}/configVersionsZR\022P/v1/{name" - + "=projects/*/locations/*/registries/*/gro" - + "ups/*/devices/*}/configVersions\332A\004name\022\215" - + "\002\n\020ListDeviceStates\022,.google.cloud.iot.v" - + "1.ListDeviceStatesRequest\032-.google.cloud" - + ".iot.v1.ListDeviceStatesResponse\"\233\001\202\323\344\223\002" - + "\215\001\022?/v1/{name=projects/*/locations/*/reg" - + "istries/*/devices/*}/statesZJ\022H/v1/{name" - + "=projects/*/locations/*/registries/*/gro" - + "ups/*/devices/*}/states\332A\004name\022\370\001\n\014SetIa" - + "mPolicy\022\".google.iam.v1.SetIamPolicyRequ" - + "est\032\025.google.iam.v1.Policy\"\254\001\202\323\344\223\002\223\001\"?/v" - + "1/{resource=projects/*/locations/*/regis" - + "tries/*}:setIamPolicy:\001*ZM\"H/v1/{resourc" - + "e=projects/*/locations/*/registries/*/gr" - + "oups/*}:setIamPolicy:\001*\332A\017resource,polic" - + "y\022\361\001\n\014GetIamPolicy\022\".google.iam.v1.GetIa" - + "mPolicyRequest\032\025.google.iam.v1.Policy\"\245\001" - + "\202\323\344\223\002\223\001\"?/v1/{resource=projects/*/locati" - + "ons/*/registries/*}:getIamPolicy:\001*ZM\"H/" - + "v1/{resource=projects/*/locations/*/regi" - + "stries/*/groups/*}:getIamPolicy:\001*\332A\010res" - + "ource\022\251\002\n\022TestIamPermissions\022(.google.ia" - + "m.v1.TestIamPermissionsRequest\032).google." - + "iam.v1.TestIamPermissionsResponse\"\275\001\202\323\344\223" - + "\002\237\001\"E/v1/{resource=projects/*/locations/" - + "*/registries/*}:testIamPermissions:\001*ZS\"" - + "N/v1/{resource=projects/*/locations/*/re" - + "gistries/*/groups/*}:testIamPermissions:" - + "\001*\332A\024resource,permissions\022\337\002\n\023SendComman" - + "dToDevice\022/.google.cloud.iot.v1.SendComm" - + "andToDeviceRequest\0320.google.cloud.iot.v1" - + ".SendCommandToDeviceResponse\"\344\001\202\323\344\223\002\255\001\"L" - + "/v1/{name=projects/*/locations/*/registr" - + "ies/*/devices/*}:sendCommandToDevice:\001*Z" - + "Z\"U/v1/{name=projects/*/locations/*/regi" - + "stries/*/groups/*/devices/*}:sendCommand" - + "ToDevice:\001*\332A\020name,binary_data\332A\032name,bi" - + "nary_data,subfolder\022\275\002\n\023BindDeviceToGate" - + "way\022/.google.cloud.iot.v1.BindDeviceToGa" - + "tewayRequest\0320.google.cloud.iot.v1.BindD" - + "eviceToGatewayResponse\"\302\001\202\323\344\223\002\235\001\"D/v1/{p" - + "arent=projects/*/locations/*/registries/" - + "*}:bindDeviceToGateway:\001*ZR\"M/v1/{parent" - + "=projects/*/locations/*/registries/*/gro" - + "ups/*}:bindDeviceToGateway:\001*\332A\033parent,g" - + "ateway_id,device_id\022\321\002\n\027UnbindDeviceFrom" - + "Gateway\0223.google.cloud.iot.v1.UnbindDevi" - + "ceFromGatewayRequest\0324.google.cloud.iot." - + "v1.UnbindDeviceFromGatewayResponse\"\312\001\202\323\344" - + "\223\002\245\001\"H/v1/{parent=projects/*/locations/*" - + "/registries/*}:unbindDeviceFromGateway:\001" - + "*ZV\"Q/v1/{parent=projects/*/locations/*/" - + "registries/*/groups/*}:unbindDeviceFromG" - + "ateway:\001*\332A\033parent,gateway_id,device_id\032" - + "t\312A\027cloudiot.googleapis.com\322AWhttps://ww" - + "w.googleapis.com/auth/cloud-platform,htt" - + "ps://www.googleapis.com/auth/cloudiotBj\n" - + "\027com.google.cloud.iot.v1B\022DeviceManagerP" - + "rotoP\001Z6google.golang.org/genproto/googl" - + "eapis/cloud/iot/v1;iot\370\001\001b\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.cloud.iot.v1.ResourcesProto.getDescriptor(), - com.google.iam.v1.IamPolicyProto.getDescriptor(), - com.google.iam.v1.PolicyProto.getDescriptor(), - com.google.protobuf.EmptyProto.getDescriptor(), - com.google.protobuf.FieldMaskProto.getDescriptor(), - com.google.rpc.StatusProto.getDescriptor(), - }); - internal_static_google_cloud_iot_v1_CreateDeviceRegistryRequest_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_google_cloud_iot_v1_CreateDeviceRegistryRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_iot_v1_CreateDeviceRegistryRequest_descriptor, - new java.lang.String[] { - "Parent", "DeviceRegistry", - }); - internal_static_google_cloud_iot_v1_GetDeviceRegistryRequest_descriptor = - getDescriptor().getMessageTypes().get(1); - internal_static_google_cloud_iot_v1_GetDeviceRegistryRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_iot_v1_GetDeviceRegistryRequest_descriptor, - new java.lang.String[] { - "Name", - }); - internal_static_google_cloud_iot_v1_DeleteDeviceRegistryRequest_descriptor = - getDescriptor().getMessageTypes().get(2); - internal_static_google_cloud_iot_v1_DeleteDeviceRegistryRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_iot_v1_DeleteDeviceRegistryRequest_descriptor, - new java.lang.String[] { - "Name", - }); - internal_static_google_cloud_iot_v1_UpdateDeviceRegistryRequest_descriptor = - getDescriptor().getMessageTypes().get(3); - internal_static_google_cloud_iot_v1_UpdateDeviceRegistryRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_iot_v1_UpdateDeviceRegistryRequest_descriptor, - new java.lang.String[] { - "DeviceRegistry", "UpdateMask", - }); - internal_static_google_cloud_iot_v1_ListDeviceRegistriesRequest_descriptor = - getDescriptor().getMessageTypes().get(4); - internal_static_google_cloud_iot_v1_ListDeviceRegistriesRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_iot_v1_ListDeviceRegistriesRequest_descriptor, - new java.lang.String[] { - "Parent", "PageSize", "PageToken", - }); - internal_static_google_cloud_iot_v1_ListDeviceRegistriesResponse_descriptor = - getDescriptor().getMessageTypes().get(5); - internal_static_google_cloud_iot_v1_ListDeviceRegistriesResponse_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_iot_v1_ListDeviceRegistriesResponse_descriptor, - new java.lang.String[] { - "DeviceRegistries", "NextPageToken", - }); - internal_static_google_cloud_iot_v1_CreateDeviceRequest_descriptor = - getDescriptor().getMessageTypes().get(6); - internal_static_google_cloud_iot_v1_CreateDeviceRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_iot_v1_CreateDeviceRequest_descriptor, - new java.lang.String[] { - "Parent", "Device", - }); - internal_static_google_cloud_iot_v1_GetDeviceRequest_descriptor = - getDescriptor().getMessageTypes().get(7); - internal_static_google_cloud_iot_v1_GetDeviceRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_iot_v1_GetDeviceRequest_descriptor, - new java.lang.String[] { - "Name", "FieldMask", - }); - internal_static_google_cloud_iot_v1_UpdateDeviceRequest_descriptor = - getDescriptor().getMessageTypes().get(8); - internal_static_google_cloud_iot_v1_UpdateDeviceRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_iot_v1_UpdateDeviceRequest_descriptor, - new java.lang.String[] { - "Device", "UpdateMask", - }); - internal_static_google_cloud_iot_v1_DeleteDeviceRequest_descriptor = - getDescriptor().getMessageTypes().get(9); - internal_static_google_cloud_iot_v1_DeleteDeviceRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_iot_v1_DeleteDeviceRequest_descriptor, - new java.lang.String[] { - "Name", - }); - internal_static_google_cloud_iot_v1_ListDevicesRequest_descriptor = - getDescriptor().getMessageTypes().get(10); - internal_static_google_cloud_iot_v1_ListDevicesRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_iot_v1_ListDevicesRequest_descriptor, - new java.lang.String[] { - "Parent", - "DeviceNumIds", - "DeviceIds", - "FieldMask", - "GatewayListOptions", - "PageSize", - "PageToken", - }); - internal_static_google_cloud_iot_v1_GatewayListOptions_descriptor = - getDescriptor().getMessageTypes().get(11); - internal_static_google_cloud_iot_v1_GatewayListOptions_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_iot_v1_GatewayListOptions_descriptor, - new java.lang.String[] { - "GatewayType", "AssociationsGatewayId", "AssociationsDeviceId", "Filter", - }); - internal_static_google_cloud_iot_v1_ListDevicesResponse_descriptor = - getDescriptor().getMessageTypes().get(12); - internal_static_google_cloud_iot_v1_ListDevicesResponse_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_iot_v1_ListDevicesResponse_descriptor, - new java.lang.String[] { - "Devices", "NextPageToken", - }); - internal_static_google_cloud_iot_v1_ModifyCloudToDeviceConfigRequest_descriptor = - getDescriptor().getMessageTypes().get(13); - internal_static_google_cloud_iot_v1_ModifyCloudToDeviceConfigRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_iot_v1_ModifyCloudToDeviceConfigRequest_descriptor, - new java.lang.String[] { - "Name", "VersionToUpdate", "BinaryData", - }); - internal_static_google_cloud_iot_v1_ListDeviceConfigVersionsRequest_descriptor = - getDescriptor().getMessageTypes().get(14); - internal_static_google_cloud_iot_v1_ListDeviceConfigVersionsRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_iot_v1_ListDeviceConfigVersionsRequest_descriptor, - new java.lang.String[] { - "Name", "NumVersions", - }); - internal_static_google_cloud_iot_v1_ListDeviceConfigVersionsResponse_descriptor = - getDescriptor().getMessageTypes().get(15); - internal_static_google_cloud_iot_v1_ListDeviceConfigVersionsResponse_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_iot_v1_ListDeviceConfigVersionsResponse_descriptor, - new java.lang.String[] { - "DeviceConfigs", - }); - internal_static_google_cloud_iot_v1_ListDeviceStatesRequest_descriptor = - getDescriptor().getMessageTypes().get(16); - internal_static_google_cloud_iot_v1_ListDeviceStatesRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_iot_v1_ListDeviceStatesRequest_descriptor, - new java.lang.String[] { - "Name", "NumStates", - }); - internal_static_google_cloud_iot_v1_ListDeviceStatesResponse_descriptor = - getDescriptor().getMessageTypes().get(17); - internal_static_google_cloud_iot_v1_ListDeviceStatesResponse_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_iot_v1_ListDeviceStatesResponse_descriptor, - new java.lang.String[] { - "DeviceStates", - }); - internal_static_google_cloud_iot_v1_SendCommandToDeviceRequest_descriptor = - getDescriptor().getMessageTypes().get(18); - internal_static_google_cloud_iot_v1_SendCommandToDeviceRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_iot_v1_SendCommandToDeviceRequest_descriptor, - new java.lang.String[] { - "Name", "BinaryData", "Subfolder", - }); - internal_static_google_cloud_iot_v1_SendCommandToDeviceResponse_descriptor = - getDescriptor().getMessageTypes().get(19); - internal_static_google_cloud_iot_v1_SendCommandToDeviceResponse_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_iot_v1_SendCommandToDeviceResponse_descriptor, - new java.lang.String[] {}); - internal_static_google_cloud_iot_v1_BindDeviceToGatewayRequest_descriptor = - getDescriptor().getMessageTypes().get(20); - internal_static_google_cloud_iot_v1_BindDeviceToGatewayRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_iot_v1_BindDeviceToGatewayRequest_descriptor, - new java.lang.String[] { - "Parent", "GatewayId", "DeviceId", - }); - internal_static_google_cloud_iot_v1_BindDeviceToGatewayResponse_descriptor = - getDescriptor().getMessageTypes().get(21); - internal_static_google_cloud_iot_v1_BindDeviceToGatewayResponse_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_iot_v1_BindDeviceToGatewayResponse_descriptor, - new java.lang.String[] {}); - internal_static_google_cloud_iot_v1_UnbindDeviceFromGatewayRequest_descriptor = - getDescriptor().getMessageTypes().get(22); - internal_static_google_cloud_iot_v1_UnbindDeviceFromGatewayRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_iot_v1_UnbindDeviceFromGatewayRequest_descriptor, - new java.lang.String[] { - "Parent", "GatewayId", "DeviceId", - }); - internal_static_google_cloud_iot_v1_UnbindDeviceFromGatewayResponse_descriptor = - getDescriptor().getMessageTypes().get(23); - internal_static_google_cloud_iot_v1_UnbindDeviceFromGatewayResponse_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_iot_v1_UnbindDeviceFromGatewayResponse_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.resourceReference); - 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.cloud.iot.v1.ResourcesProto.getDescriptor(); - com.google.iam.v1.IamPolicyProto.getDescriptor(); - com.google.iam.v1.PolicyProto.getDescriptor(); - com.google.protobuf.EmptyProto.getDescriptor(); - com.google.protobuf.FieldMaskProto.getDescriptor(); - com.google.rpc.StatusProto.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/proto-google-cloud-iot-v1/src/main/java/com/google/cloud/iot/v1/GetDeviceRegistryRequestOrBuilder.java b/proto-google-cloud-iot-v1/src/main/java/com/google/cloud/iot/v1/GetDeviceRegistryRequestOrBuilder.java deleted file mode 100644 index 36c5a33a..00000000 --- a/proto-google-cloud-iot-v1/src/main/java/com/google/cloud/iot/v1/GetDeviceRegistryRequestOrBuilder.java +++ /dev/null @@ -1,56 +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/iot/v1/device_manager.proto - -package com.google.cloud.iot.v1; - -public interface GetDeviceRegistryRequestOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.iot.v1.GetDeviceRegistryRequest) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Required. The name of the device registry. For example,
-   * `projects/example-project/locations/us-central1/registries/my-registry`.
-   * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The name. - */ - java.lang.String getName(); - /** - * - * - *
-   * Required. The name of the device registry. For example,
-   * `projects/example-project/locations/us-central1/registries/my-registry`.
-   * 
- * - * - * 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-iot-v1/src/main/java/com/google/cloud/iot/v1/ResourcesProto.java b/proto-google-cloud-iot-v1/src/main/java/com/google/cloud/iot/v1/ResourcesProto.java deleted file mode 100644 index b8663144..00000000 --- a/proto-google-cloud-iot-v1/src/main/java/com/google/cloud/iot/v1/ResourcesProto.java +++ /dev/null @@ -1,364 +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/iot/v1/resources.proto - -package com.google.cloud.iot.v1; - -public final class ResourcesProto { - private ResourcesProto() {} - - 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_iot_v1_Device_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_iot_v1_Device_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_iot_v1_Device_MetadataEntry_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_iot_v1_Device_MetadataEntry_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_iot_v1_GatewayConfig_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_iot_v1_GatewayConfig_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_iot_v1_DeviceRegistry_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_iot_v1_DeviceRegistry_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_iot_v1_MqttConfig_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_iot_v1_MqttConfig_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_iot_v1_HttpConfig_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_iot_v1_HttpConfig_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_iot_v1_EventNotificationConfig_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_iot_v1_EventNotificationConfig_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_iot_v1_StateNotificationConfig_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_iot_v1_StateNotificationConfig_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_iot_v1_RegistryCredential_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_iot_v1_RegistryCredential_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_iot_v1_X509CertificateDetails_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_iot_v1_X509CertificateDetails_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_iot_v1_PublicKeyCertificate_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_iot_v1_PublicKeyCertificate_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_iot_v1_DeviceCredential_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_iot_v1_DeviceCredential_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_iot_v1_PublicKeyCredential_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_iot_v1_PublicKeyCredential_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_iot_v1_DeviceConfig_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_iot_v1_DeviceConfig_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_iot_v1_DeviceState_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_iot_v1_DeviceState_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/iot/v1/resources.proto\022\023g" - + "oogle.cloud.iot.v1\032\031google/api/resource." - + "proto\032\037google/protobuf/timestamp.proto\032\027" - + "google/rpc/status.proto\"\260\007\n\006Device\022\n\n\002id" - + "\030\001 \001(\t\022\014\n\004name\030\002 \001(\t\022\016\n\006num_id\030\003 \001(\004\022:\n\013" - + "credentials\030\014 \003(\0132%.google.cloud.iot.v1." - + "DeviceCredential\0227\n\023last_heartbeat_time\030" - + "\007 \001(\0132\032.google.protobuf.Timestamp\0223\n\017las" - + "t_event_time\030\010 \001(\0132\032.google.protobuf.Tim" - + "estamp\0223\n\017last_state_time\030\024 \001(\0132\032.google" - + ".protobuf.Timestamp\0228\n\024last_config_ack_t" - + "ime\030\016 \001(\0132\032.google.protobuf.Timestamp\0229\n" - + "\025last_config_send_time\030\022 \001(\0132\032.google.pr" - + "otobuf.Timestamp\022\017\n\007blocked\030\023 \001(\010\0223\n\017las" - + "t_error_time\030\n \001(\0132\032.google.protobuf.Tim" - + "estamp\022-\n\021last_error_status\030\013 \001(\0132\022.goog" - + "le.rpc.Status\0221\n\006config\030\r \001(\0132!.google.c" - + "loud.iot.v1.DeviceConfig\022/\n\005state\030\020 \001(\0132" - + " .google.cloud.iot.v1.DeviceState\0220\n\tlog" - + "_level\030\025 \001(\0162\035.google.cloud.iot.v1.LogLe" - + "vel\022;\n\010metadata\030\021 \003(\0132).google.cloud.iot" - + ".v1.Device.MetadataEntry\022:\n\016gateway_conf" - + "ig\030\030 \001(\0132\".google.cloud.iot.v1.GatewayCo" - + "nfig\032/\n\rMetadataEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005va" - + "lue\030\002 \001(\t:\0028\001:s\352Ap\n\036cloudiot.googleapis." - + "com/Device\022Nprojects/{project}/locations" - + "/{location}/registries/{registry}/device" - + "s/{device}\"\356\001\n\rGatewayConfig\0226\n\014gateway_" - + "type\030\001 \001(\0162 .google.cloud.iot.v1.Gateway" - + "Type\022C\n\023gateway_auth_method\030\002 \001(\0162&.goog" - + "le.cloud.iot.v1.GatewayAuthMethod\022 \n\030las" - + "t_accessed_gateway_id\030\003 \001(\t\022>\n\032last_acce" - + "ssed_gateway_time\030\004 \001(\0132\032.google.protobu" - + "f.Timestamp\"\217\004\n\016DeviceRegistry\022\n\n\002id\030\001 \001" - + "(\t\022\014\n\004name\030\002 \001(\t\022P\n\032event_notification_c" - + "onfigs\030\n \003(\0132,.google.cloud.iot.v1.Event" - + "NotificationConfig\022O\n\031state_notification" - + "_config\030\007 \001(\0132,.google.cloud.iot.v1.Stat" - + "eNotificationConfig\0224\n\013mqtt_config\030\004 \001(\013" - + "2\037.google.cloud.iot.v1.MqttConfig\0224\n\013htt" - + "p_config\030\t \001(\0132\037.google.cloud.iot.v1.Htt" - + "pConfig\0220\n\tlog_level\030\013 \001(\0162\035.google.clou" - + "d.iot.v1.LogLevel\022<\n\013credentials\030\010 \003(\0132\'" - + ".google.cloud.iot.v1.RegistryCredential:" - + "d\352Aa\n cloudiot.googleapis.com/Registry\022=" - + "projects/{project}/locations/{location}/" - + "registries/{registry}\"H\n\nMqttConfig\022:\n\022m" - + "qtt_enabled_state\030\001 \001(\0162\036.google.cloud.i" - + "ot.v1.MqttState\"H\n\nHttpConfig\022:\n\022http_en" - + "abled_state\030\001 \001(\0162\036.google.cloud.iot.v1." - + "HttpState\"O\n\027EventNotificationConfig\022\031\n\021" - + "subfolder_matches\030\002 \001(\t\022\031\n\021pubsub_topic_" - + "name\030\001 \001(\t\"4\n\027StateNotificationConfig\022\031\n" - + "\021pubsub_topic_name\030\001 \001(\t\"o\n\022RegistryCred" - + "ential\022K\n\026public_key_certificate\030\001 \001(\0132)" - + ".google.cloud.iot.v1.PublicKeyCertificat" - + "eH\000B\014\n\ncredential\"\320\001\n\026X509CertificateDet" - + "ails\022\016\n\006issuer\030\001 \001(\t\022\017\n\007subject\030\002 \001(\t\022.\n" - + "\nstart_time\030\003 \001(\0132\032.google.protobuf.Time" - + "stamp\022/\n\013expiry_time\030\004 \001(\0132\032.google.prot" - + "obuf.Timestamp\022\033\n\023signature_algorithm\030\005 " - + "\001(\t\022\027\n\017public_key_type\030\006 \001(\t\"\257\001\n\024PublicK" - + "eyCertificate\022?\n\006format\030\001 \001(\0162/.google.c" - + "loud.iot.v1.PublicKeyCertificateFormat\022\023" - + "\n\013certificate\030\002 \001(\t\022A\n\014x509_details\030\003 \001(" - + "\0132+.google.cloud.iot.v1.X509CertificateD" - + "etails\"\225\001\n\020DeviceCredential\022>\n\npublic_ke" - + "y\030\002 \001(\0132(.google.cloud.iot.v1.PublicKeyC" - + "redentialH\000\0223\n\017expiration_time\030\006 \001(\0132\032.g" - + "oogle.protobuf.TimestampB\014\n\ncredential\"X" - + "\n\023PublicKeyCredential\0224\n\006format\030\001 \001(\0162$." - + "google.cloud.iot.v1.PublicKeyFormat\022\013\n\003k" - + "ey\030\002 \001(\t\"\240\001\n\014DeviceConfig\022\017\n\007version\030\001 \001" - + "(\003\0225\n\021cloud_update_time\030\002 \001(\0132\032.google.p" - + "rotobuf.Timestamp\0223\n\017device_ack_time\030\003 \001" - + "(\0132\032.google.protobuf.Timestamp\022\023\n\013binary" - + "_data\030\004 \001(\014\"S\n\013DeviceState\022/\n\013update_tim" - + "e\030\001 \001(\0132\032.google.protobuf.Timestamp\022\023\n\013b" - + "inary_data\030\002 \001(\014*L\n\tMqttState\022\032\n\026MQTT_ST" - + "ATE_UNSPECIFIED\020\000\022\020\n\014MQTT_ENABLED\020\001\022\021\n\rM" - + "QTT_DISABLED\020\002*L\n\tHttpState\022\032\n\026HTTP_STAT" - + "E_UNSPECIFIED\020\000\022\020\n\014HTTP_ENABLED\020\001\022\021\n\rHTT" - + "P_DISABLED\020\002*O\n\010LogLevel\022\031\n\025LOG_LEVEL_UN" - + "SPECIFIED\020\000\022\010\n\004NONE\020\n\022\t\n\005ERROR\020\024\022\010\n\004INFO" - + "\020\036\022\t\n\005DEBUG\020(*I\n\013GatewayType\022\034\n\030GATEWAY_" - + "TYPE_UNSPECIFIED\020\000\022\013\n\007GATEWAY\020\001\022\017\n\013NON_G" - + "ATEWAY\020\002*\221\001\n\021GatewayAuthMethod\022#\n\037GATEWA" - + "Y_AUTH_METHOD_UNSPECIFIED\020\000\022\024\n\020ASSOCIATI" - + "ON_ONLY\020\001\022\032\n\026DEVICE_AUTH_TOKEN_ONLY\020\002\022%\n" - + "!ASSOCIATION_AND_DEVICE_AUTH_TOKEN\020\003*e\n\032" - + "PublicKeyCertificateFormat\022-\n)UNSPECIFIE" - + "D_PUBLIC_KEY_CERTIFICATE_FORMAT\020\000\022\030\n\024X50" - + "9_CERTIFICATE_PEM\020\001*v\n\017PublicKeyFormat\022!" - + "\n\035UNSPECIFIED_PUBLIC_KEY_FORMAT\020\000\022\013\n\007RSA" - + "_PEM\020\003\022\020\n\014RSA_X509_PEM\020\001\022\r\n\tES256_PEM\020\002\022" - + "\022\n\016ES256_X509_PEM\020\004Bf\n\027com.google.cloud." - + "iot.v1B\016ResourcesProtoP\001Z6google.golang." - + "org/genproto/googleapis/cloud/iot/v1;iot" - + "\370\001\001b\006proto3" - }; - descriptor = - com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( - descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - com.google.api.ResourceProto.getDescriptor(), - com.google.protobuf.TimestampProto.getDescriptor(), - com.google.rpc.StatusProto.getDescriptor(), - }); - internal_static_google_cloud_iot_v1_Device_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_google_cloud_iot_v1_Device_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_iot_v1_Device_descriptor, - new java.lang.String[] { - "Id", - "Name", - "NumId", - "Credentials", - "LastHeartbeatTime", - "LastEventTime", - "LastStateTime", - "LastConfigAckTime", - "LastConfigSendTime", - "Blocked", - "LastErrorTime", - "LastErrorStatus", - "Config", - "State", - "LogLevel", - "Metadata", - "GatewayConfig", - }); - internal_static_google_cloud_iot_v1_Device_MetadataEntry_descriptor = - internal_static_google_cloud_iot_v1_Device_descriptor.getNestedTypes().get(0); - internal_static_google_cloud_iot_v1_Device_MetadataEntry_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_iot_v1_Device_MetadataEntry_descriptor, - new java.lang.String[] { - "Key", "Value", - }); - internal_static_google_cloud_iot_v1_GatewayConfig_descriptor = - getDescriptor().getMessageTypes().get(1); - internal_static_google_cloud_iot_v1_GatewayConfig_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_iot_v1_GatewayConfig_descriptor, - new java.lang.String[] { - "GatewayType", - "GatewayAuthMethod", - "LastAccessedGatewayId", - "LastAccessedGatewayTime", - }); - internal_static_google_cloud_iot_v1_DeviceRegistry_descriptor = - getDescriptor().getMessageTypes().get(2); - internal_static_google_cloud_iot_v1_DeviceRegistry_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_iot_v1_DeviceRegistry_descriptor, - new java.lang.String[] { - "Id", - "Name", - "EventNotificationConfigs", - "StateNotificationConfig", - "MqttConfig", - "HttpConfig", - "LogLevel", - "Credentials", - }); - internal_static_google_cloud_iot_v1_MqttConfig_descriptor = - getDescriptor().getMessageTypes().get(3); - internal_static_google_cloud_iot_v1_MqttConfig_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_iot_v1_MqttConfig_descriptor, - new java.lang.String[] { - "MqttEnabledState", - }); - internal_static_google_cloud_iot_v1_HttpConfig_descriptor = - getDescriptor().getMessageTypes().get(4); - internal_static_google_cloud_iot_v1_HttpConfig_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_iot_v1_HttpConfig_descriptor, - new java.lang.String[] { - "HttpEnabledState", - }); - internal_static_google_cloud_iot_v1_EventNotificationConfig_descriptor = - getDescriptor().getMessageTypes().get(5); - internal_static_google_cloud_iot_v1_EventNotificationConfig_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_iot_v1_EventNotificationConfig_descriptor, - new java.lang.String[] { - "SubfolderMatches", "PubsubTopicName", - }); - internal_static_google_cloud_iot_v1_StateNotificationConfig_descriptor = - getDescriptor().getMessageTypes().get(6); - internal_static_google_cloud_iot_v1_StateNotificationConfig_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_iot_v1_StateNotificationConfig_descriptor, - new java.lang.String[] { - "PubsubTopicName", - }); - internal_static_google_cloud_iot_v1_RegistryCredential_descriptor = - getDescriptor().getMessageTypes().get(7); - internal_static_google_cloud_iot_v1_RegistryCredential_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_iot_v1_RegistryCredential_descriptor, - new java.lang.String[] { - "PublicKeyCertificate", "Credential", - }); - internal_static_google_cloud_iot_v1_X509CertificateDetails_descriptor = - getDescriptor().getMessageTypes().get(8); - internal_static_google_cloud_iot_v1_X509CertificateDetails_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_iot_v1_X509CertificateDetails_descriptor, - new java.lang.String[] { - "Issuer", "Subject", "StartTime", "ExpiryTime", "SignatureAlgorithm", "PublicKeyType", - }); - internal_static_google_cloud_iot_v1_PublicKeyCertificate_descriptor = - getDescriptor().getMessageTypes().get(9); - internal_static_google_cloud_iot_v1_PublicKeyCertificate_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_iot_v1_PublicKeyCertificate_descriptor, - new java.lang.String[] { - "Format", "Certificate", "X509Details", - }); - internal_static_google_cloud_iot_v1_DeviceCredential_descriptor = - getDescriptor().getMessageTypes().get(10); - internal_static_google_cloud_iot_v1_DeviceCredential_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_iot_v1_DeviceCredential_descriptor, - new java.lang.String[] { - "PublicKey", "ExpirationTime", "Credential", - }); - internal_static_google_cloud_iot_v1_PublicKeyCredential_descriptor = - getDescriptor().getMessageTypes().get(11); - internal_static_google_cloud_iot_v1_PublicKeyCredential_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_iot_v1_PublicKeyCredential_descriptor, - new java.lang.String[] { - "Format", "Key", - }); - internal_static_google_cloud_iot_v1_DeviceConfig_descriptor = - getDescriptor().getMessageTypes().get(12); - internal_static_google_cloud_iot_v1_DeviceConfig_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_iot_v1_DeviceConfig_descriptor, - new java.lang.String[] { - "Version", "CloudUpdateTime", "DeviceAckTime", "BinaryData", - }); - internal_static_google_cloud_iot_v1_DeviceState_descriptor = - getDescriptor().getMessageTypes().get(13); - internal_static_google_cloud_iot_v1_DeviceState_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_iot_v1_DeviceState_descriptor, - new java.lang.String[] { - "UpdateTime", "BinaryData", - }); - com.google.protobuf.ExtensionRegistry registry = - com.google.protobuf.ExtensionRegistry.newInstance(); - registry.add(com.google.api.ResourceProto.resource); - com.google.protobuf.Descriptors.FileDescriptor.internalUpdateFileDescriptor( - descriptor, registry); - com.google.api.ResourceProto.getDescriptor(); - com.google.protobuf.TimestampProto.getDescriptor(); - com.google.rpc.StatusProto.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/proto-google-cloud-iot-v1/src/main/java/com/google/cloud/iot/v1/SendCommandToDeviceResponseOrBuilder.java b/proto-google-cloud-iot-v1/src/main/java/com/google/cloud/iot/v1/SendCommandToDeviceResponseOrBuilder.java deleted file mode 100644 index 2358336d..00000000 --- a/proto-google-cloud-iot-v1/src/main/java/com/google/cloud/iot/v1/SendCommandToDeviceResponseOrBuilder.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/iot/v1/device_manager.proto - -package com.google.cloud.iot.v1; - -public interface SendCommandToDeviceResponseOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.iot.v1.SendCommandToDeviceResponse) - com.google.protobuf.MessageOrBuilder {} diff --git a/proto-google-cloud-iot-v1/src/main/java/com/google/cloud/iot/v1/UnbindDeviceFromGatewayResponseOrBuilder.java b/proto-google-cloud-iot-v1/src/main/java/com/google/cloud/iot/v1/UnbindDeviceFromGatewayResponseOrBuilder.java deleted file mode 100644 index 52c1371e..00000000 --- a/proto-google-cloud-iot-v1/src/main/java/com/google/cloud/iot/v1/UnbindDeviceFromGatewayResponseOrBuilder.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/iot/v1/device_manager.proto - -package com.google.cloud.iot.v1; - -public interface UnbindDeviceFromGatewayResponseOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.iot.v1.UnbindDeviceFromGatewayResponse) - com.google.protobuf.MessageOrBuilder {} From fbef30ccaf4ed2042f505a5114fb7ed76f228252 Mon Sep 17 00:00:00 2001 From: Owl Bot Date: Thu, 23 Jun 2022 02:27:58 +0000 Subject: [PATCH 2/4] =?UTF-8?q?=F0=9F=A6=89=20Updates=20from=20OwlBot=20po?= =?UTF-8?q?st-processor?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md --- .../cloud/iot/v1/DeviceManagerClient.java | 34 +- .../cloud/iot/v1/DeviceManagerSettings.java | 13 +- .../google/cloud/iot/v1/gapic_metadata.json | 0 .../com/google/cloud/iot/v1/package-info.java | 0 .../cloud/iot/v1/stub/DeviceManagerStub.java | 0 .../v1/stub/DeviceManagerStubSettings.java | 24 +- .../GrpcDeviceManagerCallableFactory.java | 0 .../iot/v1/stub/GrpcDeviceManagerStub.java | 1 - .../HttpJsonDeviceManagerCallableFactory.java | 0 .../v1/stub/HttpJsonDeviceManagerStub.java | 0 .../v1/DeviceManagerClientHttpJsonTest.java | 0 .../cloud/iot/v1/DeviceManagerClientTest.java | 0 .../cloud/iot/v1/MockDeviceManager.java | 0 .../cloud/iot/v1/MockDeviceManagerImpl.java | 0 .../cloud/iot/v1/DeviceManagerGrpc.java | 2533 +++++++++++++++++ .../cloud/iot/v1/DeviceManagerGrpc.java | 1935 ------------- .../BindDeviceToGatewayResponseOrBuilder.java | 9 - .../DeleteDeviceRegistryRequestOrBuilder.java | 31 - .../iot/v1/DeleteDeviceRequestOrBuilder.java | 33 - .../cloud/iot/v1/DeviceManagerProto.java | 532 ---- .../v1/GetDeviceRegistryRequestOrBuilder.java | 31 - .../google/cloud/iot/v1/ResourcesProto.java | 309 -- .../SendCommandToDeviceResponseOrBuilder.java | 9 - ...indDeviceFromGatewayResponseOrBuilder.java | 9 - .../iot/v1/BindDeviceToGatewayRequest.java | 497 ++-- .../BindDeviceToGatewayRequestOrBuilder.java | 53 +- .../iot/v1/BindDeviceToGatewayResponse.java | 235 +- .../BindDeviceToGatewayResponseOrBuilder.java | 24 + .../iot/v1/CreateDeviceRegistryRequest.java | 485 ++-- .../CreateDeviceRegistryRequestOrBuilder.java | 55 +- .../cloud/iot/v1/CreateDeviceRequest.java | 444 +-- .../iot/v1/CreateDeviceRequestOrBuilder.java | 43 +- .../iot/v1/DeleteDeviceRegistryRequest.java | 339 ++- .../DeleteDeviceRegistryRequestOrBuilder.java | 56 + .../cloud/iot/v1/DeleteDeviceRequest.java | 329 ++- .../iot/v1/DeleteDeviceRequestOrBuilder.java | 58 + .../java/com/google/cloud/iot/v1/Device.java | 1894 +++++++----- .../com/google/cloud/iot/v1/DeviceConfig.java | 486 ++-- .../cloud/iot/v1/DeviceConfigOrBuilder.java | 40 +- .../google/cloud/iot/v1/DeviceCredential.java | 469 +-- .../iot/v1/DeviceCredentialOrBuilder.java | 34 +- .../cloud/iot/v1/DeviceManagerProto.java | 570 ++++ .../com/google/cloud/iot/v1/DeviceName.java | 0 .../google/cloud/iot/v1/DeviceOrBuilder.java | 177 +- .../google/cloud/iot/v1/DeviceRegistry.java | 1125 +++++--- .../cloud/iot/v1/DeviceRegistryOrBuilder.java | 114 +- .../com/google/cloud/iot/v1/DeviceState.java | 345 ++- .../cloud/iot/v1/DeviceStateOrBuilder.java | 29 +- .../cloud/iot/v1/EventNotificationConfig.java | 383 +-- .../v1/EventNotificationConfigOrBuilder.java | 36 +- .../cloud/iot/v1/GatewayAuthMethod.java | 87 +- .../google/cloud/iot/v1/GatewayConfig.java | 513 ++-- .../cloud/iot/v1/GatewayConfigOrBuilder.java | 47 +- .../cloud/iot/v1/GatewayListOptions.java | 524 ++-- .../iot/v1/GatewayListOptionsOrBuilder.java | 51 +- .../com/google/cloud/iot/v1/GatewayType.java | 82 +- .../iot/v1/GetDeviceRegistryRequest.java | 336 ++- .../v1/GetDeviceRegistryRequestOrBuilder.java | 56 + .../google/cloud/iot/v1/GetDeviceRequest.java | 414 +-- .../iot/v1/GetDeviceRequestOrBuilder.java | 43 +- .../com/google/cloud/iot/v1/HttpConfig.java | 271 +- .../cloud/iot/v1/HttpConfigOrBuilder.java | 24 +- .../com/google/cloud/iot/v1/HttpState.java | 82 +- .../v1/ListDeviceConfigVersionsRequest.java | 379 ++- ...tDeviceConfigVersionsRequestOrBuilder.java | 38 +- .../v1/ListDeviceConfigVersionsResponse.java | 385 ++- ...DeviceConfigVersionsResponseOrBuilder.java | 36 +- .../iot/v1/ListDeviceRegistriesRequest.java | 452 +-- .../ListDeviceRegistriesRequestOrBuilder.java | 47 +- .../iot/v1/ListDeviceRegistriesResponse.java | 456 +-- ...ListDeviceRegistriesResponseOrBuilder.java | 45 +- .../cloud/iot/v1/ListDeviceStatesRequest.java | 366 ++- .../v1/ListDeviceStatesRequestOrBuilder.java | 38 +- .../iot/v1/ListDeviceStatesResponse.java | 378 ++- .../v1/ListDeviceStatesResponseOrBuilder.java | 36 +- .../cloud/iot/v1/ListDevicesRequest.java | 841 ++++-- .../iot/v1/ListDevicesRequestOrBuilder.java | 90 +- .../cloud/iot/v1/ListDevicesResponse.java | 454 +-- .../iot/v1/ListDevicesResponseOrBuilder.java | 46 +- .../com/google/cloud/iot/v1/LocationName.java | 0 .../com/google/cloud/iot/v1/LogLevel.java | 96 +- .../v1/ModifyCloudToDeviceConfigRequest.java | 418 +-- ...fyCloudToDeviceConfigRequestOrBuilder.java | 41 +- .../com/google/cloud/iot/v1/MqttConfig.java | 271 +- .../cloud/iot/v1/MqttConfigOrBuilder.java | 24 +- .../com/google/cloud/iot/v1/MqttState.java | 82 +- .../cloud/iot/v1/PublicKeyCertificate.java | 473 +-- .../iot/v1/PublicKeyCertificateFormat.java | 70 +- .../iot/v1/PublicKeyCertificateOrBuilder.java | 41 +- .../cloud/iot/v1/PublicKeyCredential.java | 363 ++- .../iot/v1/PublicKeyCredentialOrBuilder.java | 33 +- .../google/cloud/iot/v1/PublicKeyFormat.java | 96 +- .../cloud/iot/v1/RegistryCredential.java | 373 ++- .../iot/v1/RegistryCredentialOrBuilder.java | 26 +- .../com/google/cloud/iot/v1/RegistryName.java | 0 .../google/cloud/iot/v1/ResourcesProto.java | 364 +++ .../iot/v1/SendCommandToDeviceRequest.java | 454 +-- .../SendCommandToDeviceRequestOrBuilder.java | 47 +- .../iot/v1/SendCommandToDeviceResponse.java | 235 +- .../SendCommandToDeviceResponseOrBuilder.java | 24 + .../cloud/iot/v1/StateNotificationConfig.java | 304 +- .../v1/StateNotificationConfigOrBuilder.java | 27 +- .../v1/UnbindDeviceFromGatewayRequest.java | 503 ++-- ...bindDeviceFromGatewayRequestOrBuilder.java | 53 +- .../v1/UnbindDeviceFromGatewayResponse.java | 241 +- ...indDeviceFromGatewayResponseOrBuilder.java | 24 + .../iot/v1/UpdateDeviceRegistryRequest.java | 513 ++-- .../UpdateDeviceRegistryRequestOrBuilder.java | 55 +- .../cloud/iot/v1/UpdateDeviceRequest.java | 472 +-- .../iot/v1/UpdateDeviceRequestOrBuilder.java | 43 +- .../cloud/iot/v1/X509CertificateDetails.java | 722 +++-- .../v1/X509CertificateDetailsOrBuilder.java | 70 +- .../google/cloud/iot/v1/device_manager.proto | 0 .../proto/google/cloud/iot/v1/resources.proto | 0 .../AsyncBindDeviceToGateway.java | 0 .../SyncBindDeviceToGateway.java | 0 ...viceToGatewayRegistrynameStringString.java | 0 ...BindDeviceToGatewayStringStringString.java | 0 .../SyncCreateSetCredentialsProvider.java | 0 .../SyncCreateSetCredentialsProvider1.java | 0 .../create/SyncCreateSetEndpoint.java | 0 .../createdevice/AsyncCreateDevice.java | 0 .../createdevice/SyncCreateDevice.java | 0 .../SyncCreateDeviceRegistrynameDevice.java | 0 .../SyncCreateDeviceStringDevice.java | 0 .../AsyncCreateDeviceRegistry.java | 0 .../SyncCreateDeviceRegistry.java | 0 ...iceRegistryLocationnameDeviceregistry.java | 0 ...ateDeviceRegistryStringDeviceregistry.java | 0 .../deletedevice/AsyncDeleteDevice.java | 0 .../deletedevice/SyncDeleteDevice.java | 1 - .../SyncDeleteDeviceDevicename.java | 1 - .../deletedevice/SyncDeleteDeviceString.java | 1 - .../AsyncDeleteDeviceRegistry.java | 0 .../SyncDeleteDeviceRegistry.java | 1 - .../SyncDeleteDeviceRegistryRegistryname.java | 1 - .../SyncDeleteDeviceRegistryString.java | 1 - .../getdevice/AsyncGetDevice.java | 0 .../getdevice/SyncGetDevice.java | 0 .../getdevice/SyncGetDeviceDevicename.java | 0 .../getdevice/SyncGetDeviceString.java | 0 .../AsyncGetDeviceRegistry.java | 0 .../SyncGetDeviceRegistry.java | 0 .../SyncGetDeviceRegistryRegistryname.java | 0 .../SyncGetDeviceRegistryString.java | 0 .../getiampolicy/AsyncGetIamPolicy.java | 0 .../getiampolicy/SyncGetIamPolicy.java | 0 .../SyncGetIamPolicyResourcename.java | 0 .../getiampolicy/SyncGetIamPolicyString.java | 0 .../AsyncListDeviceConfigVersions.java | 0 .../SyncListDeviceConfigVersions.java | 0 ...yncListDeviceConfigVersionsDevicename.java | 0 .../SyncListDeviceConfigVersionsString.java | 0 .../AsyncListDeviceRegistries.java | 0 .../AsyncListDeviceRegistriesPaged.java | 0 .../SyncListDeviceRegistries.java | 0 .../SyncListDeviceRegistriesLocationname.java | 0 .../SyncListDeviceRegistriesString.java | 0 .../listdevices/AsyncListDevices.java | 0 .../listdevices/AsyncListDevicesPaged.java | 0 .../listdevices/SyncListDevices.java | 0 .../SyncListDevicesRegistryname.java | 0 .../listdevices/SyncListDevicesString.java | 0 .../AsyncListDeviceStates.java | 0 .../SyncListDeviceStates.java | 0 .../SyncListDeviceStatesDevicename.java | 0 .../SyncListDeviceStatesString.java | 0 .../AsyncModifyCloudToDeviceConfig.java | 0 .../SyncModifyCloudToDeviceConfig.java | 0 ...oudToDeviceConfigDevicenameBytestring.java | 0 ...fyCloudToDeviceConfigStringBytestring.java | 0 .../AsyncSendCommandToDevice.java | 0 .../SyncSendCommandToDevice.java | 0 ...ndCommandToDeviceDevicenameBytestring.java | 0 ...andToDeviceDevicenameBytestringString.java | 0 ...ncSendCommandToDeviceStringBytestring.java | 0 ...CommandToDeviceStringBytestringString.java | 0 .../setiampolicy/AsyncSetIamPolicy.java | 0 .../setiampolicy/SyncSetIamPolicy.java | 0 .../SyncSetIamPolicyResourcenamePolicy.java | 0 .../SyncSetIamPolicyStringPolicy.java | 0 .../AsyncTestIamPermissions.java | 0 .../SyncTestIamPermissions.java | 0 ...tIamPermissionsResourcenameListstring.java | 0 ...yncTestIamPermissionsStringListstring.java | 0 .../AsyncUnbindDeviceFromGateway.java | 0 .../SyncUnbindDeviceFromGateway.java | 0 ...ceFromGatewayRegistrynameStringString.java | 3 +- ...ndDeviceFromGatewayStringStringString.java | 0 .../updatedevice/AsyncUpdateDevice.java | 0 .../updatedevice/SyncUpdateDevice.java | 0 .../SyncUpdateDeviceDeviceFieldmask.java | 0 .../AsyncUpdateDeviceRegistry.java | 0 .../SyncUpdateDeviceRegistry.java | 0 ...DeviceRegistryDeviceregistryFieldmask.java | 0 .../SyncCreateDeviceRegistry.java | 0 .../SyncCreateDeviceRegistry.java | 0 197 files changed, 16593 insertions(+), 10414 deletions(-) rename {owl-bot-staging/v1/google-cloud-iot => google-cloud-iot}/src/main/java/com/google/cloud/iot/v1/DeviceManagerClient.java (99%) rename {owl-bot-staging/v1/google-cloud-iot => google-cloud-iot}/src/main/java/com/google/cloud/iot/v1/DeviceManagerSettings.java (97%) rename {owl-bot-staging/v1/google-cloud-iot => google-cloud-iot}/src/main/java/com/google/cloud/iot/v1/gapic_metadata.json (100%) rename {owl-bot-staging/v1/google-cloud-iot => google-cloud-iot}/src/main/java/com/google/cloud/iot/v1/package-info.java (100%) rename {owl-bot-staging/v1/google-cloud-iot => google-cloud-iot}/src/main/java/com/google/cloud/iot/v1/stub/DeviceManagerStub.java (100%) rename {owl-bot-staging/v1/google-cloud-iot => google-cloud-iot}/src/main/java/com/google/cloud/iot/v1/stub/DeviceManagerStubSettings.java (98%) rename {owl-bot-staging/v1/google-cloud-iot => google-cloud-iot}/src/main/java/com/google/cloud/iot/v1/stub/GrpcDeviceManagerCallableFactory.java (100%) rename {owl-bot-staging/v1/google-cloud-iot => google-cloud-iot}/src/main/java/com/google/cloud/iot/v1/stub/GrpcDeviceManagerStub.java (99%) rename {owl-bot-staging/v1/google-cloud-iot => google-cloud-iot}/src/main/java/com/google/cloud/iot/v1/stub/HttpJsonDeviceManagerCallableFactory.java (100%) rename {owl-bot-staging/v1/google-cloud-iot => google-cloud-iot}/src/main/java/com/google/cloud/iot/v1/stub/HttpJsonDeviceManagerStub.java (100%) rename {owl-bot-staging/v1/google-cloud-iot => google-cloud-iot}/src/test/java/com/google/cloud/iot/v1/DeviceManagerClientHttpJsonTest.java (100%) rename {owl-bot-staging/v1/google-cloud-iot => google-cloud-iot}/src/test/java/com/google/cloud/iot/v1/DeviceManagerClientTest.java (100%) rename {owl-bot-staging/v1/google-cloud-iot => google-cloud-iot}/src/test/java/com/google/cloud/iot/v1/MockDeviceManager.java (100%) rename {owl-bot-staging/v1/google-cloud-iot => google-cloud-iot}/src/test/java/com/google/cloud/iot/v1/MockDeviceManagerImpl.java (100%) create mode 100644 grpc-google-cloud-iot-v1/src/main/java/com/google/cloud/iot/v1/DeviceManagerGrpc.java delete mode 100644 owl-bot-staging/v1/grpc-google-cloud-iot-v1/src/main/java/com/google/cloud/iot/v1/DeviceManagerGrpc.java delete mode 100644 owl-bot-staging/v1/proto-google-cloud-iot-v1/src/main/java/com/google/cloud/iot/v1/BindDeviceToGatewayResponseOrBuilder.java delete mode 100644 owl-bot-staging/v1/proto-google-cloud-iot-v1/src/main/java/com/google/cloud/iot/v1/DeleteDeviceRegistryRequestOrBuilder.java delete mode 100644 owl-bot-staging/v1/proto-google-cloud-iot-v1/src/main/java/com/google/cloud/iot/v1/DeleteDeviceRequestOrBuilder.java delete mode 100644 owl-bot-staging/v1/proto-google-cloud-iot-v1/src/main/java/com/google/cloud/iot/v1/DeviceManagerProto.java delete mode 100644 owl-bot-staging/v1/proto-google-cloud-iot-v1/src/main/java/com/google/cloud/iot/v1/GetDeviceRegistryRequestOrBuilder.java delete mode 100644 owl-bot-staging/v1/proto-google-cloud-iot-v1/src/main/java/com/google/cloud/iot/v1/ResourcesProto.java delete mode 100644 owl-bot-staging/v1/proto-google-cloud-iot-v1/src/main/java/com/google/cloud/iot/v1/SendCommandToDeviceResponseOrBuilder.java delete mode 100644 owl-bot-staging/v1/proto-google-cloud-iot-v1/src/main/java/com/google/cloud/iot/v1/UnbindDeviceFromGatewayResponseOrBuilder.java rename {owl-bot-staging/v1/proto-google-cloud-iot-v1 => proto-google-cloud-iot-v1}/src/main/java/com/google/cloud/iot/v1/BindDeviceToGatewayRequest.java (70%) rename {owl-bot-staging/v1/proto-google-cloud-iot-v1 => proto-google-cloud-iot-v1}/src/main/java/com/google/cloud/iot/v1/BindDeviceToGatewayRequestOrBuilder.java (63%) rename {owl-bot-staging/v1/proto-google-cloud-iot-v1 => proto-google-cloud-iot-v1}/src/main/java/com/google/cloud/iot/v1/BindDeviceToGatewayResponse.java (65%) create mode 100644 proto-google-cloud-iot-v1/src/main/java/com/google/cloud/iot/v1/BindDeviceToGatewayResponseOrBuilder.java rename {owl-bot-staging/v1/proto-google-cloud-iot-v1 => proto-google-cloud-iot-v1}/src/main/java/com/google/cloud/iot/v1/CreateDeviceRegistryRequest.java (65%) rename {owl-bot-staging/v1/proto-google-cloud-iot-v1 => proto-google-cloud-iot-v1}/src/main/java/com/google/cloud/iot/v1/CreateDeviceRegistryRequestOrBuilder.java (54%) rename {owl-bot-staging/v1/proto-google-cloud-iot-v1 => proto-google-cloud-iot-v1}/src/main/java/com/google/cloud/iot/v1/CreateDeviceRequest.java (69%) rename {owl-bot-staging/v1/proto-google-cloud-iot-v1 => proto-google-cloud-iot-v1}/src/main/java/com/google/cloud/iot/v1/CreateDeviceRequestOrBuilder.java (65%) rename {owl-bot-staging/v1/proto-google-cloud-iot-v1 => proto-google-cloud-iot-v1}/src/main/java/com/google/cloud/iot/v1/DeleteDeviceRegistryRequest.java (65%) create mode 100644 proto-google-cloud-iot-v1/src/main/java/com/google/cloud/iot/v1/DeleteDeviceRegistryRequestOrBuilder.java rename {owl-bot-staging/v1/proto-google-cloud-iot-v1 => proto-google-cloud-iot-v1}/src/main/java/com/google/cloud/iot/v1/DeleteDeviceRequest.java (67%) create mode 100644 proto-google-cloud-iot-v1/src/main/java/com/google/cloud/iot/v1/DeleteDeviceRequestOrBuilder.java rename {owl-bot-staging/v1/proto-google-cloud-iot-v1 => proto-google-cloud-iot-v1}/src/main/java/com/google/cloud/iot/v1/Device.java (78%) rename {owl-bot-staging/v1/proto-google-cloud-iot-v1 => proto-google-cloud-iot-v1}/src/main/java/com/google/cloud/iot/v1/DeviceConfig.java (77%) rename {owl-bot-staging/v1/proto-google-cloud-iot-v1 => proto-google-cloud-iot-v1}/src/main/java/com/google/cloud/iot/v1/DeviceConfigOrBuilder.java (85%) rename {owl-bot-staging/v1/proto-google-cloud-iot-v1 => proto-google-cloud-iot-v1}/src/main/java/com/google/cloud/iot/v1/DeviceCredential.java (77%) rename {owl-bot-staging/v1/proto-google-cloud-iot-v1 => proto-google-cloud-iot-v1}/src/main/java/com/google/cloud/iot/v1/DeviceCredentialOrBuilder.java (85%) create mode 100644 proto-google-cloud-iot-v1/src/main/java/com/google/cloud/iot/v1/DeviceManagerProto.java rename {owl-bot-staging/v1/proto-google-cloud-iot-v1 => proto-google-cloud-iot-v1}/src/main/java/com/google/cloud/iot/v1/DeviceName.java (100%) rename {owl-bot-staging/v1/proto-google-cloud-iot-v1 => proto-google-cloud-iot-v1}/src/main/java/com/google/cloud/iot/v1/DeviceOrBuilder.java (91%) rename {owl-bot-staging/v1/proto-google-cloud-iot-v1 => proto-google-cloud-iot-v1}/src/main/java/com/google/cloud/iot/v1/DeviceRegistry.java (81%) rename {owl-bot-staging/v1/proto-google-cloud-iot-v1 => proto-google-cloud-iot-v1}/src/main/java/com/google/cloud/iot/v1/DeviceRegistryOrBuilder.java (90%) rename {owl-bot-staging/v1/proto-google-cloud-iot-v1 => proto-google-cloud-iot-v1}/src/main/java/com/google/cloud/iot/v1/DeviceState.java (71%) rename {owl-bot-staging/v1/proto-google-cloud-iot-v1 => proto-google-cloud-iot-v1}/src/main/java/com/google/cloud/iot/v1/DeviceStateOrBuilder.java (64%) rename {owl-bot-staging/v1/proto-google-cloud-iot-v1 => proto-google-cloud-iot-v1}/src/main/java/com/google/cloud/iot/v1/EventNotificationConfig.java (72%) rename {owl-bot-staging/v1/proto-google-cloud-iot-v1 => proto-google-cloud-iot-v1}/src/main/java/com/google/cloud/iot/v1/EventNotificationConfigOrBuilder.java (66%) rename {owl-bot-staging/v1/proto-google-cloud-iot-v1 => proto-google-cloud-iot-v1}/src/main/java/com/google/cloud/iot/v1/GatewayAuthMethod.java (73%) rename {owl-bot-staging/v1/proto-google-cloud-iot-v1 => proto-google-cloud-iot-v1}/src/main/java/com/google/cloud/iot/v1/GatewayConfig.java (73%) rename {owl-bot-staging/v1/proto-google-cloud-iot-v1 => proto-google-cloud-iot-v1}/src/main/java/com/google/cloud/iot/v1/GatewayConfigOrBuilder.java (77%) rename {owl-bot-staging/v1/proto-google-cloud-iot-v1 => proto-google-cloud-iot-v1}/src/main/java/com/google/cloud/iot/v1/GatewayListOptions.java (76%) rename {owl-bot-staging/v1/proto-google-cloud-iot-v1 => proto-google-cloud-iot-v1}/src/main/java/com/google/cloud/iot/v1/GatewayListOptionsOrBuilder.java (82%) rename {owl-bot-staging/v1/proto-google-cloud-iot-v1 => proto-google-cloud-iot-v1}/src/main/java/com/google/cloud/iot/v1/GatewayType.java (66%) rename {owl-bot-staging/v1/proto-google-cloud-iot-v1 => proto-google-cloud-iot-v1}/src/main/java/com/google/cloud/iot/v1/GetDeviceRegistryRequest.java (66%) create mode 100644 proto-google-cloud-iot-v1/src/main/java/com/google/cloud/iot/v1/GetDeviceRegistryRequestOrBuilder.java rename {owl-bot-staging/v1/proto-google-cloud-iot-v1 => proto-google-cloud-iot-v1}/src/main/java/com/google/cloud/iot/v1/GetDeviceRequest.java (71%) rename {owl-bot-staging/v1/proto-google-cloud-iot-v1 => proto-google-cloud-iot-v1}/src/main/java/com/google/cloud/iot/v1/GetDeviceRequestOrBuilder.java (66%) rename {owl-bot-staging/v1/proto-google-cloud-iot-v1 => proto-google-cloud-iot-v1}/src/main/java/com/google/cloud/iot/v1/HttpConfig.java (70%) rename {owl-bot-staging/v1/proto-google-cloud-iot-v1 => proto-google-cloud-iot-v1}/src/main/java/com/google/cloud/iot/v1/HttpConfigOrBuilder.java (59%) rename {owl-bot-staging/v1/proto-google-cloud-iot-v1 => proto-google-cloud-iot-v1}/src/main/java/com/google/cloud/iot/v1/HttpState.java (68%) rename {owl-bot-staging/v1/proto-google-cloud-iot-v1 => proto-google-cloud-iot-v1}/src/main/java/com/google/cloud/iot/v1/ListDeviceConfigVersionsRequest.java (67%) rename {owl-bot-staging/v1/proto-google-cloud-iot-v1 => proto-google-cloud-iot-v1}/src/main/java/com/google/cloud/iot/v1/ListDeviceConfigVersionsRequestOrBuilder.java (55%) rename {owl-bot-staging/v1/proto-google-cloud-iot-v1 => proto-google-cloud-iot-v1}/src/main/java/com/google/cloud/iot/v1/ListDeviceConfigVersionsResponse.java (74%) rename {owl-bot-staging/v1/proto-google-cloud-iot-v1 => proto-google-cloud-iot-v1}/src/main/java/com/google/cloud/iot/v1/ListDeviceConfigVersionsResponseOrBuilder.java (69%) rename {owl-bot-staging/v1/proto-google-cloud-iot-v1 => proto-google-cloud-iot-v1}/src/main/java/com/google/cloud/iot/v1/ListDeviceRegistriesRequest.java (70%) rename {owl-bot-staging/v1/proto-google-cloud-iot-v1 => proto-google-cloud-iot-v1}/src/main/java/com/google/cloud/iot/v1/ListDeviceRegistriesRequestOrBuilder.java (61%) rename {owl-bot-staging/v1/proto-google-cloud-iot-v1 => proto-google-cloud-iot-v1}/src/main/java/com/google/cloud/iot/v1/ListDeviceRegistriesResponse.java (74%) rename {owl-bot-staging/v1/proto-google-cloud-iot-v1 => proto-google-cloud-iot-v1}/src/main/java/com/google/cloud/iot/v1/ListDeviceRegistriesResponseOrBuilder.java (68%) rename {owl-bot-staging/v1/proto-google-cloud-iot-v1 => proto-google-cloud-iot-v1}/src/main/java/com/google/cloud/iot/v1/ListDeviceStatesRequest.java (69%) rename {owl-bot-staging/v1/proto-google-cloud-iot-v1 => proto-google-cloud-iot-v1}/src/main/java/com/google/cloud/iot/v1/ListDeviceStatesRequestOrBuilder.java (54%) rename {owl-bot-staging/v1/proto-google-cloud-iot-v1 => proto-google-cloud-iot-v1}/src/main/java/com/google/cloud/iot/v1/ListDeviceStatesResponse.java (75%) rename {owl-bot-staging/v1/proto-google-cloud-iot-v1 => proto-google-cloud-iot-v1}/src/main/java/com/google/cloud/iot/v1/ListDeviceStatesResponseOrBuilder.java (69%) rename {owl-bot-staging/v1/proto-google-cloud-iot-v1 => proto-google-cloud-iot-v1}/src/main/java/com/google/cloud/iot/v1/ListDevicesRequest.java (74%) rename {owl-bot-staging/v1/proto-google-cloud-iot-v1 => proto-google-cloud-iot-v1}/src/main/java/com/google/cloud/iot/v1/ListDevicesRequestOrBuilder.java (80%) rename {owl-bot-staging/v1/proto-google-cloud-iot-v1 => proto-google-cloud-iot-v1}/src/main/java/com/google/cloud/iot/v1/ListDevicesResponse.java (73%) rename {owl-bot-staging/v1/proto-google-cloud-iot-v1 => proto-google-cloud-iot-v1}/src/main/java/com/google/cloud/iot/v1/ListDevicesResponseOrBuilder.java (64%) rename {owl-bot-staging/v1/proto-google-cloud-iot-v1 => proto-google-cloud-iot-v1}/src/main/java/com/google/cloud/iot/v1/LocationName.java (100%) rename {owl-bot-staging/v1/proto-google-cloud-iot-v1 => proto-google-cloud-iot-v1}/src/main/java/com/google/cloud/iot/v1/LogLevel.java (70%) rename {owl-bot-staging/v1/proto-google-cloud-iot-v1 => proto-google-cloud-iot-v1}/src/main/java/com/google/cloud/iot/v1/ModifyCloudToDeviceConfigRequest.java (69%) rename {owl-bot-staging/v1/proto-google-cloud-iot-v1 => proto-google-cloud-iot-v1}/src/main/java/com/google/cloud/iot/v1/ModifyCloudToDeviceConfigRequestOrBuilder.java (61%) rename {owl-bot-staging/v1/proto-google-cloud-iot-v1 => proto-google-cloud-iot-v1}/src/main/java/com/google/cloud/iot/v1/MqttConfig.java (70%) rename {owl-bot-staging/v1/proto-google-cloud-iot-v1 => proto-google-cloud-iot-v1}/src/main/java/com/google/cloud/iot/v1/MqttConfigOrBuilder.java (58%) rename {owl-bot-staging/v1/proto-google-cloud-iot-v1 => proto-google-cloud-iot-v1}/src/main/java/com/google/cloud/iot/v1/MqttState.java (67%) rename {owl-bot-staging/v1/proto-google-cloud-iot-v1 => proto-google-cloud-iot-v1}/src/main/java/com/google/cloud/iot/v1/PublicKeyCertificate.java (70%) rename {owl-bot-staging/v1/proto-google-cloud-iot-v1 => proto-google-cloud-iot-v1}/src/main/java/com/google/cloud/iot/v1/PublicKeyCertificateFormat.java (70%) rename {owl-bot-staging/v1/proto-google-cloud-iot-v1 => proto-google-cloud-iot-v1}/src/main/java/com/google/cloud/iot/v1/PublicKeyCertificateOrBuilder.java (70%) rename {owl-bot-staging/v1/proto-google-cloud-iot-v1 => proto-google-cloud-iot-v1}/src/main/java/com/google/cloud/iot/v1/PublicKeyCredential.java (69%) rename {owl-bot-staging/v1/proto-google-cloud-iot-v1 => proto-google-cloud-iot-v1}/src/main/java/com/google/cloud/iot/v1/PublicKeyCredentialOrBuilder.java (56%) rename {owl-bot-staging/v1/proto-google-cloud-iot-v1 => proto-google-cloud-iot-v1}/src/main/java/com/google/cloud/iot/v1/PublicKeyFormat.java (77%) rename {owl-bot-staging/v1/proto-google-cloud-iot-v1 => proto-google-cloud-iot-v1}/src/main/java/com/google/cloud/iot/v1/RegistryCredential.java (70%) rename {owl-bot-staging/v1/proto-google-cloud-iot-v1 => proto-google-cloud-iot-v1}/src/main/java/com/google/cloud/iot/v1/RegistryCredentialOrBuilder.java (64%) rename {owl-bot-staging/v1/proto-google-cloud-iot-v1 => proto-google-cloud-iot-v1}/src/main/java/com/google/cloud/iot/v1/RegistryName.java (100%) create mode 100644 proto-google-cloud-iot-v1/src/main/java/com/google/cloud/iot/v1/ResourcesProto.java rename {owl-bot-staging/v1/proto-google-cloud-iot-v1 => proto-google-cloud-iot-v1}/src/main/java/com/google/cloud/iot/v1/SendCommandToDeviceRequest.java (71%) rename {owl-bot-staging/v1/proto-google-cloud-iot-v1 => proto-google-cloud-iot-v1}/src/main/java/com/google/cloud/iot/v1/SendCommandToDeviceRequestOrBuilder.java (66%) rename {owl-bot-staging/v1/proto-google-cloud-iot-v1 => proto-google-cloud-iot-v1}/src/main/java/com/google/cloud/iot/v1/SendCommandToDeviceResponse.java (65%) create mode 100644 proto-google-cloud-iot-v1/src/main/java/com/google/cloud/iot/v1/SendCommandToDeviceResponseOrBuilder.java rename {owl-bot-staging/v1/proto-google-cloud-iot-v1 => proto-google-cloud-iot-v1}/src/main/java/com/google/cloud/iot/v1/StateNotificationConfig.java (69%) rename {owl-bot-staging/v1/proto-google-cloud-iot-v1 => proto-google-cloud-iot-v1}/src/main/java/com/google/cloud/iot/v1/StateNotificationConfigOrBuilder.java (50%) rename {owl-bot-staging/v1/proto-google-cloud-iot-v1 => proto-google-cloud-iot-v1}/src/main/java/com/google/cloud/iot/v1/UnbindDeviceFromGatewayRequest.java (69%) rename {owl-bot-staging/v1/proto-google-cloud-iot-v1 => proto-google-cloud-iot-v1}/src/main/java/com/google/cloud/iot/v1/UnbindDeviceFromGatewayRequestOrBuilder.java (63%) rename {owl-bot-staging/v1/proto-google-cloud-iot-v1 => proto-google-cloud-iot-v1}/src/main/java/com/google/cloud/iot/v1/UnbindDeviceFromGatewayResponse.java (65%) create mode 100644 proto-google-cloud-iot-v1/src/main/java/com/google/cloud/iot/v1/UnbindDeviceFromGatewayResponseOrBuilder.java rename {owl-bot-staging/v1/proto-google-cloud-iot-v1 => proto-google-cloud-iot-v1}/src/main/java/com/google/cloud/iot/v1/UpdateDeviceRegistryRequest.java (69%) rename {owl-bot-staging/v1/proto-google-cloud-iot-v1 => proto-google-cloud-iot-v1}/src/main/java/com/google/cloud/iot/v1/UpdateDeviceRegistryRequestOrBuilder.java (69%) rename {owl-bot-staging/v1/proto-google-cloud-iot-v1 => proto-google-cloud-iot-v1}/src/main/java/com/google/cloud/iot/v1/UpdateDeviceRequest.java (73%) rename {owl-bot-staging/v1/proto-google-cloud-iot-v1 => proto-google-cloud-iot-v1}/src/main/java/com/google/cloud/iot/v1/UpdateDeviceRequestOrBuilder.java (78%) rename {owl-bot-staging/v1/proto-google-cloud-iot-v1 => proto-google-cloud-iot-v1}/src/main/java/com/google/cloud/iot/v1/X509CertificateDetails.java (72%) rename {owl-bot-staging/v1/proto-google-cloud-iot-v1 => proto-google-cloud-iot-v1}/src/main/java/com/google/cloud/iot/v1/X509CertificateDetailsOrBuilder.java (74%) rename {owl-bot-staging/v1/proto-google-cloud-iot-v1 => proto-google-cloud-iot-v1}/src/main/proto/google/cloud/iot/v1/device_manager.proto (100%) rename {owl-bot-staging/v1/proto-google-cloud-iot-v1 => proto-google-cloud-iot-v1}/src/main/proto/google/cloud/iot/v1/resources.proto (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/iot/v1/devicemanagerclient/binddevicetogateway/AsyncBindDeviceToGateway.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/iot/v1/devicemanagerclient/binddevicetogateway/SyncBindDeviceToGateway.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/iot/v1/devicemanagerclient/binddevicetogateway/SyncBindDeviceToGatewayRegistrynameStringString.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/iot/v1/devicemanagerclient/binddevicetogateway/SyncBindDeviceToGatewayStringStringString.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/iot/v1/devicemanagerclient/create/SyncCreateSetCredentialsProvider.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/iot/v1/devicemanagerclient/create/SyncCreateSetCredentialsProvider1.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/iot/v1/devicemanagerclient/create/SyncCreateSetEndpoint.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/iot/v1/devicemanagerclient/createdevice/AsyncCreateDevice.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/iot/v1/devicemanagerclient/createdevice/SyncCreateDevice.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/iot/v1/devicemanagerclient/createdevice/SyncCreateDeviceRegistrynameDevice.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/iot/v1/devicemanagerclient/createdevice/SyncCreateDeviceStringDevice.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/iot/v1/devicemanagerclient/createdeviceregistry/AsyncCreateDeviceRegistry.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/iot/v1/devicemanagerclient/createdeviceregistry/SyncCreateDeviceRegistry.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/iot/v1/devicemanagerclient/createdeviceregistry/SyncCreateDeviceRegistryLocationnameDeviceregistry.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/iot/v1/devicemanagerclient/createdeviceregistry/SyncCreateDeviceRegistryStringDeviceregistry.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/iot/v1/devicemanagerclient/deletedevice/AsyncDeleteDevice.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/iot/v1/devicemanagerclient/deletedevice/SyncDeleteDevice.java (97%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/iot/v1/devicemanagerclient/deletedevice/SyncDeleteDeviceDevicename.java (97%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/iot/v1/devicemanagerclient/deletedevice/SyncDeleteDeviceString.java (97%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/iot/v1/devicemanagerclient/deletedeviceregistry/AsyncDeleteDeviceRegistry.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/iot/v1/devicemanagerclient/deletedeviceregistry/SyncDeleteDeviceRegistry.java (97%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/iot/v1/devicemanagerclient/deletedeviceregistry/SyncDeleteDeviceRegistryRegistryname.java (97%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/iot/v1/devicemanagerclient/deletedeviceregistry/SyncDeleteDeviceRegistryString.java (97%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/iot/v1/devicemanagerclient/getdevice/AsyncGetDevice.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/iot/v1/devicemanagerclient/getdevice/SyncGetDevice.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/iot/v1/devicemanagerclient/getdevice/SyncGetDeviceDevicename.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/iot/v1/devicemanagerclient/getdevice/SyncGetDeviceString.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/iot/v1/devicemanagerclient/getdeviceregistry/AsyncGetDeviceRegistry.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/iot/v1/devicemanagerclient/getdeviceregistry/SyncGetDeviceRegistry.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/iot/v1/devicemanagerclient/getdeviceregistry/SyncGetDeviceRegistryRegistryname.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/iot/v1/devicemanagerclient/getdeviceregistry/SyncGetDeviceRegistryString.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/iot/v1/devicemanagerclient/getiampolicy/AsyncGetIamPolicy.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/iot/v1/devicemanagerclient/getiampolicy/SyncGetIamPolicy.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/iot/v1/devicemanagerclient/getiampolicy/SyncGetIamPolicyResourcename.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/iot/v1/devicemanagerclient/getiampolicy/SyncGetIamPolicyString.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/iot/v1/devicemanagerclient/listdeviceconfigversions/AsyncListDeviceConfigVersions.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/iot/v1/devicemanagerclient/listdeviceconfigversions/SyncListDeviceConfigVersions.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/iot/v1/devicemanagerclient/listdeviceconfigversions/SyncListDeviceConfigVersionsDevicename.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/iot/v1/devicemanagerclient/listdeviceconfigversions/SyncListDeviceConfigVersionsString.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/iot/v1/devicemanagerclient/listdeviceregistries/AsyncListDeviceRegistries.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/iot/v1/devicemanagerclient/listdeviceregistries/AsyncListDeviceRegistriesPaged.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/iot/v1/devicemanagerclient/listdeviceregistries/SyncListDeviceRegistries.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/iot/v1/devicemanagerclient/listdeviceregistries/SyncListDeviceRegistriesLocationname.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/iot/v1/devicemanagerclient/listdeviceregistries/SyncListDeviceRegistriesString.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/iot/v1/devicemanagerclient/listdevices/AsyncListDevices.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/iot/v1/devicemanagerclient/listdevices/AsyncListDevicesPaged.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/iot/v1/devicemanagerclient/listdevices/SyncListDevices.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/iot/v1/devicemanagerclient/listdevices/SyncListDevicesRegistryname.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/iot/v1/devicemanagerclient/listdevices/SyncListDevicesString.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/iot/v1/devicemanagerclient/listdevicestates/AsyncListDeviceStates.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/iot/v1/devicemanagerclient/listdevicestates/SyncListDeviceStates.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/iot/v1/devicemanagerclient/listdevicestates/SyncListDeviceStatesDevicename.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/iot/v1/devicemanagerclient/listdevicestates/SyncListDeviceStatesString.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/iot/v1/devicemanagerclient/modifycloudtodeviceconfig/AsyncModifyCloudToDeviceConfig.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/iot/v1/devicemanagerclient/modifycloudtodeviceconfig/SyncModifyCloudToDeviceConfig.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/iot/v1/devicemanagerclient/modifycloudtodeviceconfig/SyncModifyCloudToDeviceConfigDevicenameBytestring.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/iot/v1/devicemanagerclient/modifycloudtodeviceconfig/SyncModifyCloudToDeviceConfigStringBytestring.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/iot/v1/devicemanagerclient/sendcommandtodevice/AsyncSendCommandToDevice.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/iot/v1/devicemanagerclient/sendcommandtodevice/SyncSendCommandToDevice.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/iot/v1/devicemanagerclient/sendcommandtodevice/SyncSendCommandToDeviceDevicenameBytestring.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/iot/v1/devicemanagerclient/sendcommandtodevice/SyncSendCommandToDeviceDevicenameBytestringString.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/iot/v1/devicemanagerclient/sendcommandtodevice/SyncSendCommandToDeviceStringBytestring.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/iot/v1/devicemanagerclient/sendcommandtodevice/SyncSendCommandToDeviceStringBytestringString.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/iot/v1/devicemanagerclient/setiampolicy/AsyncSetIamPolicy.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/iot/v1/devicemanagerclient/setiampolicy/SyncSetIamPolicy.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/iot/v1/devicemanagerclient/setiampolicy/SyncSetIamPolicyResourcenamePolicy.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/iot/v1/devicemanagerclient/setiampolicy/SyncSetIamPolicyStringPolicy.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/iot/v1/devicemanagerclient/testiampermissions/AsyncTestIamPermissions.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/iot/v1/devicemanagerclient/testiampermissions/SyncTestIamPermissions.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/iot/v1/devicemanagerclient/testiampermissions/SyncTestIamPermissionsResourcenameListstring.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/iot/v1/devicemanagerclient/testiampermissions/SyncTestIamPermissionsStringListstring.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/iot/v1/devicemanagerclient/unbinddevicefromgateway/AsyncUnbindDeviceFromGateway.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/iot/v1/devicemanagerclient/unbinddevicefromgateway/SyncUnbindDeviceFromGateway.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/iot/v1/devicemanagerclient/unbinddevicefromgateway/SyncUnbindDeviceFromGatewayRegistrynameStringString.java (94%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/iot/v1/devicemanagerclient/unbinddevicefromgateway/SyncUnbindDeviceFromGatewayStringStringString.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/iot/v1/devicemanagerclient/updatedevice/AsyncUpdateDevice.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/iot/v1/devicemanagerclient/updatedevice/SyncUpdateDevice.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/iot/v1/devicemanagerclient/updatedevice/SyncUpdateDeviceDeviceFieldmask.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/iot/v1/devicemanagerclient/updatedeviceregistry/AsyncUpdateDeviceRegistry.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/iot/v1/devicemanagerclient/updatedeviceregistry/SyncUpdateDeviceRegistry.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/iot/v1/devicemanagerclient/updatedeviceregistry/SyncUpdateDeviceRegistryDeviceregistryFieldmask.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/iot/v1/devicemanagersettings/createdeviceregistry/SyncCreateDeviceRegistry.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/iot/v1/stub/devicemanagerstubsettings/createdeviceregistry/SyncCreateDeviceRegistry.java (100%) diff --git a/owl-bot-staging/v1/google-cloud-iot/src/main/java/com/google/cloud/iot/v1/DeviceManagerClient.java b/google-cloud-iot/src/main/java/com/google/cloud/iot/v1/DeviceManagerClient.java similarity index 99% rename from owl-bot-staging/v1/google-cloud-iot/src/main/java/com/google/cloud/iot/v1/DeviceManagerClient.java rename to google-cloud-iot/src/main/java/com/google/cloud/iot/v1/DeviceManagerClient.java index a5151610..f1a877c1 100644 --- a/owl-bot-staging/v1/google-cloud-iot/src/main/java/com/google/cloud/iot/v1/DeviceManagerClient.java +++ b/google-cloud-iot/src/main/java/com/google/cloud/iot/v1/DeviceManagerClient.java @@ -65,13 +65,13 @@ * methods: * *
    - *
  1. A "flattened" method. With this type of method, the fields of the request type have been + *
  2. A "flattened" method. With this type of method, the fields of the request type have been * converted into function parameters. It may be the case that not all fields are available as * parameters, and not every API method will have a flattened method entry point. - *
  3. A "request object" method. This type of method only takes one parameter, a request object, + *
  4. A "request object" method. This type of method only takes one parameter, a request object, * which must be constructed before the call. Not every API method will have a request object * method. - *
  5. A "callable" method. This type of method takes no parameters and returns an immutable API + *
  6. A "callable" method. This type of method takes no parameters and returns an immutable API * callable object, which can be used to initiate calls to the service. *
* @@ -2531,8 +2531,11 @@ public boolean awaitTermination(long duration, TimeUnit unit) throws Interrupted public static class ListDeviceRegistriesPagedResponse extends AbstractPagedListResponse< - ListDeviceRegistriesRequest, ListDeviceRegistriesResponse, DeviceRegistry, - ListDeviceRegistriesPage, ListDeviceRegistriesFixedSizeCollection> { + ListDeviceRegistriesRequest, + ListDeviceRegistriesResponse, + DeviceRegistry, + ListDeviceRegistriesPage, + ListDeviceRegistriesFixedSizeCollection> { public static ApiFuture createAsync( PageContext @@ -2553,7 +2556,9 @@ private ListDeviceRegistriesPagedResponse(ListDeviceRegistriesPage page) { public static class ListDeviceRegistriesPage extends AbstractPage< - ListDeviceRegistriesRequest, ListDeviceRegistriesResponse, DeviceRegistry, + ListDeviceRegistriesRequest, + ListDeviceRegistriesResponse, + DeviceRegistry, ListDeviceRegistriesPage> { private ListDeviceRegistriesPage( @@ -2586,8 +2591,11 @@ public ApiFuture createPageAsync( public static class ListDeviceRegistriesFixedSizeCollection extends AbstractFixedSizeCollection< - ListDeviceRegistriesRequest, ListDeviceRegistriesResponse, DeviceRegistry, - ListDeviceRegistriesPage, ListDeviceRegistriesFixedSizeCollection> { + ListDeviceRegistriesRequest, + ListDeviceRegistriesResponse, + DeviceRegistry, + ListDeviceRegistriesPage, + ListDeviceRegistriesFixedSizeCollection> { private ListDeviceRegistriesFixedSizeCollection( List pages, int collectionSize) { @@ -2607,7 +2615,10 @@ protected ListDeviceRegistriesFixedSizeCollection createCollection( public static class ListDevicesPagedResponse extends AbstractPagedListResponse< - ListDevicesRequest, ListDevicesResponse, Device, ListDevicesPage, + ListDevicesRequest, + ListDevicesResponse, + Device, + ListDevicesPage, ListDevicesFixedSizeCollection> { public static ApiFuture createAsync( @@ -2654,7 +2665,10 @@ public ApiFuture createPageAsync( public static class ListDevicesFixedSizeCollection extends AbstractFixedSizeCollection< - ListDevicesRequest, ListDevicesResponse, Device, ListDevicesPage, + ListDevicesRequest, + ListDevicesResponse, + Device, + ListDevicesPage, ListDevicesFixedSizeCollection> { private ListDevicesFixedSizeCollection(List pages, int collectionSize) { diff --git a/owl-bot-staging/v1/google-cloud-iot/src/main/java/com/google/cloud/iot/v1/DeviceManagerSettings.java b/google-cloud-iot/src/main/java/com/google/cloud/iot/v1/DeviceManagerSettings.java similarity index 97% rename from owl-bot-staging/v1/google-cloud-iot/src/main/java/com/google/cloud/iot/v1/DeviceManagerSettings.java rename to google-cloud-iot/src/main/java/com/google/cloud/iot/v1/DeviceManagerSettings.java index 31a687e0..85fb6891 100644 --- a/owl-bot-staging/v1/google-cloud-iot/src/main/java/com/google/cloud/iot/v1/DeviceManagerSettings.java +++ b/google-cloud-iot/src/main/java/com/google/cloud/iot/v1/DeviceManagerSettings.java @@ -29,7 +29,6 @@ import com.google.api.gax.rpc.ClientContext; import com.google.api.gax.rpc.ClientSettings; 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.iot.v1.stub.DeviceManagerStubSettings; @@ -50,9 +49,9 @@ *

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

    - *
  • The default service address (cloudiot.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 (cloudiot.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 @@ -103,7 +102,8 @@ public UnaryCallSettings deleteDeviceRegistr /** Returns the object with the settings used for calls to listDeviceRegistries. */ public PagedCallSettings< - ListDeviceRegistriesRequest, ListDeviceRegistriesResponse, + ListDeviceRegistriesRequest, + ListDeviceRegistriesResponse, ListDeviceRegistriesPagedResponse> listDeviceRegistriesSettings() { return ((DeviceManagerStubSettings) getStubSettings()).listDeviceRegistriesSettings(); @@ -328,7 +328,8 @@ public Builder applyToAllUnaryMethods( /** Returns the builder for the settings used for calls to listDeviceRegistries. */ public PagedCallSettings.Builder< - ListDeviceRegistriesRequest, ListDeviceRegistriesResponse, + ListDeviceRegistriesRequest, + ListDeviceRegistriesResponse, ListDeviceRegistriesPagedResponse> listDeviceRegistriesSettings() { return getStubSettingsBuilder().listDeviceRegistriesSettings(); diff --git a/owl-bot-staging/v1/google-cloud-iot/src/main/java/com/google/cloud/iot/v1/gapic_metadata.json b/google-cloud-iot/src/main/java/com/google/cloud/iot/v1/gapic_metadata.json similarity index 100% rename from owl-bot-staging/v1/google-cloud-iot/src/main/java/com/google/cloud/iot/v1/gapic_metadata.json rename to google-cloud-iot/src/main/java/com/google/cloud/iot/v1/gapic_metadata.json diff --git a/owl-bot-staging/v1/google-cloud-iot/src/main/java/com/google/cloud/iot/v1/package-info.java b/google-cloud-iot/src/main/java/com/google/cloud/iot/v1/package-info.java similarity index 100% rename from owl-bot-staging/v1/google-cloud-iot/src/main/java/com/google/cloud/iot/v1/package-info.java rename to google-cloud-iot/src/main/java/com/google/cloud/iot/v1/package-info.java diff --git a/owl-bot-staging/v1/google-cloud-iot/src/main/java/com/google/cloud/iot/v1/stub/DeviceManagerStub.java b/google-cloud-iot/src/main/java/com/google/cloud/iot/v1/stub/DeviceManagerStub.java similarity index 100% rename from owl-bot-staging/v1/google-cloud-iot/src/main/java/com/google/cloud/iot/v1/stub/DeviceManagerStub.java rename to google-cloud-iot/src/main/java/com/google/cloud/iot/v1/stub/DeviceManagerStub.java diff --git a/owl-bot-staging/v1/google-cloud-iot/src/main/java/com/google/cloud/iot/v1/stub/DeviceManagerStubSettings.java b/google-cloud-iot/src/main/java/com/google/cloud/iot/v1/stub/DeviceManagerStubSettings.java similarity index 98% rename from owl-bot-staging/v1/google-cloud-iot/src/main/java/com/google/cloud/iot/v1/stub/DeviceManagerStubSettings.java rename to google-cloud-iot/src/main/java/com/google/cloud/iot/v1/stub/DeviceManagerStubSettings.java index 64545fec..008ea98c 100644 --- a/owl-bot-staging/v1/google-cloud-iot/src/main/java/com/google/cloud/iot/v1/stub/DeviceManagerStubSettings.java +++ b/google-cloud-iot/src/main/java/com/google/cloud/iot/v1/stub/DeviceManagerStubSettings.java @@ -92,9 +92,9 @@ *

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

    - *
  • The default service address (cloudiot.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 (cloudiot.googleapis.com) and default port (443) are used. + *
  • Credentials are acquired automatically through Application Default Credentials. + *
  • Retries are configured for idempotent methods but not for non-idempotent methods. *
* *

The builder of this class is recursive, so contained classes are themselves builders. When @@ -136,7 +136,8 @@ public class DeviceManagerStubSettings extends StubSettings deleteDeviceRegistrySettings; private final PagedCallSettings< - ListDeviceRegistriesRequest, ListDeviceRegistriesResponse, + ListDeviceRegistriesRequest, + ListDeviceRegistriesResponse, ListDeviceRegistriesPagedResponse> listDeviceRegistriesSettings; private final UnaryCallSettings createDeviceSettings; @@ -239,11 +240,13 @@ public Iterable extractResources(ListDevicesResponse payload) { }; private static final PagedListResponseFactory< - ListDeviceRegistriesRequest, ListDeviceRegistriesResponse, + ListDeviceRegistriesRequest, + ListDeviceRegistriesResponse, ListDeviceRegistriesPagedResponse> LIST_DEVICE_REGISTRIES_PAGE_STR_FACT = new PagedListResponseFactory< - ListDeviceRegistriesRequest, ListDeviceRegistriesResponse, + ListDeviceRegistriesRequest, + ListDeviceRegistriesResponse, ListDeviceRegistriesPagedResponse>() { @Override public ApiFuture getFuturePagedResponse( @@ -300,7 +303,8 @@ public UnaryCallSettings deleteDeviceRegistr /** Returns the object with the settings used for calls to listDeviceRegistries. */ public PagedCallSettings< - ListDeviceRegistriesRequest, ListDeviceRegistriesResponse, + ListDeviceRegistriesRequest, + ListDeviceRegistriesResponse, ListDeviceRegistriesPagedResponse> listDeviceRegistriesSettings() { return listDeviceRegistriesSettings; @@ -523,7 +527,8 @@ public static class Builder extends StubSettings.Builder deleteDeviceRegistrySettings; private final PagedCallSettings.Builder< - ListDeviceRegistriesRequest, ListDeviceRegistriesResponse, + ListDeviceRegistriesRequest, + ListDeviceRegistriesResponse, ListDeviceRegistriesPagedResponse> listDeviceRegistriesSettings; private final UnaryCallSettings.Builder createDeviceSettings; @@ -876,7 +881,8 @@ public Builder applyToAllUnaryMethods( /** Returns the builder for the settings used for calls to listDeviceRegistries. */ public PagedCallSettings.Builder< - ListDeviceRegistriesRequest, ListDeviceRegistriesResponse, + ListDeviceRegistriesRequest, + ListDeviceRegistriesResponse, ListDeviceRegistriesPagedResponse> listDeviceRegistriesSettings() { return listDeviceRegistriesSettings; diff --git a/owl-bot-staging/v1/google-cloud-iot/src/main/java/com/google/cloud/iot/v1/stub/GrpcDeviceManagerCallableFactory.java b/google-cloud-iot/src/main/java/com/google/cloud/iot/v1/stub/GrpcDeviceManagerCallableFactory.java similarity index 100% rename from owl-bot-staging/v1/google-cloud-iot/src/main/java/com/google/cloud/iot/v1/stub/GrpcDeviceManagerCallableFactory.java rename to google-cloud-iot/src/main/java/com/google/cloud/iot/v1/stub/GrpcDeviceManagerCallableFactory.java diff --git a/owl-bot-staging/v1/google-cloud-iot/src/main/java/com/google/cloud/iot/v1/stub/GrpcDeviceManagerStub.java b/google-cloud-iot/src/main/java/com/google/cloud/iot/v1/stub/GrpcDeviceManagerStub.java similarity index 99% rename from owl-bot-staging/v1/google-cloud-iot/src/main/java/com/google/cloud/iot/v1/stub/GrpcDeviceManagerStub.java rename to google-cloud-iot/src/main/java/com/google/cloud/iot/v1/stub/GrpcDeviceManagerStub.java index a2a8ef01..2641a62f 100644 --- a/owl-bot-staging/v1/google-cloud-iot/src/main/java/com/google/cloud/iot/v1/stub/GrpcDeviceManagerStub.java +++ b/google-cloud-iot/src/main/java/com/google/cloud/iot/v1/stub/GrpcDeviceManagerStub.java @@ -62,7 +62,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-iot/src/main/java/com/google/cloud/iot/v1/stub/HttpJsonDeviceManagerCallableFactory.java b/google-cloud-iot/src/main/java/com/google/cloud/iot/v1/stub/HttpJsonDeviceManagerCallableFactory.java similarity index 100% rename from owl-bot-staging/v1/google-cloud-iot/src/main/java/com/google/cloud/iot/v1/stub/HttpJsonDeviceManagerCallableFactory.java rename to google-cloud-iot/src/main/java/com/google/cloud/iot/v1/stub/HttpJsonDeviceManagerCallableFactory.java diff --git a/owl-bot-staging/v1/google-cloud-iot/src/main/java/com/google/cloud/iot/v1/stub/HttpJsonDeviceManagerStub.java b/google-cloud-iot/src/main/java/com/google/cloud/iot/v1/stub/HttpJsonDeviceManagerStub.java similarity index 100% rename from owl-bot-staging/v1/google-cloud-iot/src/main/java/com/google/cloud/iot/v1/stub/HttpJsonDeviceManagerStub.java rename to google-cloud-iot/src/main/java/com/google/cloud/iot/v1/stub/HttpJsonDeviceManagerStub.java diff --git a/owl-bot-staging/v1/google-cloud-iot/src/test/java/com/google/cloud/iot/v1/DeviceManagerClientHttpJsonTest.java b/google-cloud-iot/src/test/java/com/google/cloud/iot/v1/DeviceManagerClientHttpJsonTest.java similarity index 100% rename from owl-bot-staging/v1/google-cloud-iot/src/test/java/com/google/cloud/iot/v1/DeviceManagerClientHttpJsonTest.java rename to google-cloud-iot/src/test/java/com/google/cloud/iot/v1/DeviceManagerClientHttpJsonTest.java diff --git a/owl-bot-staging/v1/google-cloud-iot/src/test/java/com/google/cloud/iot/v1/DeviceManagerClientTest.java b/google-cloud-iot/src/test/java/com/google/cloud/iot/v1/DeviceManagerClientTest.java similarity index 100% rename from owl-bot-staging/v1/google-cloud-iot/src/test/java/com/google/cloud/iot/v1/DeviceManagerClientTest.java rename to google-cloud-iot/src/test/java/com/google/cloud/iot/v1/DeviceManagerClientTest.java diff --git a/owl-bot-staging/v1/google-cloud-iot/src/test/java/com/google/cloud/iot/v1/MockDeviceManager.java b/google-cloud-iot/src/test/java/com/google/cloud/iot/v1/MockDeviceManager.java similarity index 100% rename from owl-bot-staging/v1/google-cloud-iot/src/test/java/com/google/cloud/iot/v1/MockDeviceManager.java rename to google-cloud-iot/src/test/java/com/google/cloud/iot/v1/MockDeviceManager.java diff --git a/owl-bot-staging/v1/google-cloud-iot/src/test/java/com/google/cloud/iot/v1/MockDeviceManagerImpl.java b/google-cloud-iot/src/test/java/com/google/cloud/iot/v1/MockDeviceManagerImpl.java similarity index 100% rename from owl-bot-staging/v1/google-cloud-iot/src/test/java/com/google/cloud/iot/v1/MockDeviceManagerImpl.java rename to google-cloud-iot/src/test/java/com/google/cloud/iot/v1/MockDeviceManagerImpl.java diff --git a/grpc-google-cloud-iot-v1/src/main/java/com/google/cloud/iot/v1/DeviceManagerGrpc.java b/grpc-google-cloud-iot-v1/src/main/java/com/google/cloud/iot/v1/DeviceManagerGrpc.java new file mode 100644 index 00000000..81c87170 --- /dev/null +++ b/grpc-google-cloud-iot-v1/src/main/java/com/google/cloud/iot/v1/DeviceManagerGrpc.java @@ -0,0 +1,2533 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.iot.v1; + +import static io.grpc.MethodDescriptor.generateFullMethodName; + +/** + * + * + *

+ * Internet of Things (IoT) service. Securely connect and manage IoT devices.
+ * 
+ */ +@javax.annotation.Generated( + value = "by gRPC proto compiler", + comments = "Source: google/cloud/iot/v1/device_manager.proto") +@io.grpc.stub.annotations.GrpcGenerated +public final class DeviceManagerGrpc { + + private DeviceManagerGrpc() {} + + public static final String SERVICE_NAME = "google.cloud.iot.v1.DeviceManager"; + + // Static method descriptors that strictly reflect the proto. + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.iot.v1.CreateDeviceRegistryRequest, + com.google.cloud.iot.v1.DeviceRegistry> + getCreateDeviceRegistryMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "CreateDeviceRegistry", + requestType = com.google.cloud.iot.v1.CreateDeviceRegistryRequest.class, + responseType = com.google.cloud.iot.v1.DeviceRegistry.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.iot.v1.CreateDeviceRegistryRequest, + com.google.cloud.iot.v1.DeviceRegistry> + getCreateDeviceRegistryMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.iot.v1.CreateDeviceRegistryRequest, + com.google.cloud.iot.v1.DeviceRegistry> + getCreateDeviceRegistryMethod; + if ((getCreateDeviceRegistryMethod = DeviceManagerGrpc.getCreateDeviceRegistryMethod) == null) { + synchronized (DeviceManagerGrpc.class) { + if ((getCreateDeviceRegistryMethod = DeviceManagerGrpc.getCreateDeviceRegistryMethod) + == null) { + DeviceManagerGrpc.getCreateDeviceRegistryMethod = + getCreateDeviceRegistryMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName(SERVICE_NAME, "CreateDeviceRegistry")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.iot.v1.CreateDeviceRegistryRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.iot.v1.DeviceRegistry.getDefaultInstance())) + .setSchemaDescriptor( + new DeviceManagerMethodDescriptorSupplier("CreateDeviceRegistry")) + .build(); + } + } + } + return getCreateDeviceRegistryMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.iot.v1.GetDeviceRegistryRequest, com.google.cloud.iot.v1.DeviceRegistry> + getGetDeviceRegistryMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "GetDeviceRegistry", + requestType = com.google.cloud.iot.v1.GetDeviceRegistryRequest.class, + responseType = com.google.cloud.iot.v1.DeviceRegistry.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.iot.v1.GetDeviceRegistryRequest, com.google.cloud.iot.v1.DeviceRegistry> + getGetDeviceRegistryMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.iot.v1.GetDeviceRegistryRequest, + com.google.cloud.iot.v1.DeviceRegistry> + getGetDeviceRegistryMethod; + if ((getGetDeviceRegistryMethod = DeviceManagerGrpc.getGetDeviceRegistryMethod) == null) { + synchronized (DeviceManagerGrpc.class) { + if ((getGetDeviceRegistryMethod = DeviceManagerGrpc.getGetDeviceRegistryMethod) == null) { + DeviceManagerGrpc.getGetDeviceRegistryMethod = + getGetDeviceRegistryMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetDeviceRegistry")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.iot.v1.GetDeviceRegistryRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.iot.v1.DeviceRegistry.getDefaultInstance())) + .setSchemaDescriptor( + new DeviceManagerMethodDescriptorSupplier("GetDeviceRegistry")) + .build(); + } + } + } + return getGetDeviceRegistryMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.iot.v1.UpdateDeviceRegistryRequest, + com.google.cloud.iot.v1.DeviceRegistry> + getUpdateDeviceRegistryMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "UpdateDeviceRegistry", + requestType = com.google.cloud.iot.v1.UpdateDeviceRegistryRequest.class, + responseType = com.google.cloud.iot.v1.DeviceRegistry.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.iot.v1.UpdateDeviceRegistryRequest, + com.google.cloud.iot.v1.DeviceRegistry> + getUpdateDeviceRegistryMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.iot.v1.UpdateDeviceRegistryRequest, + com.google.cloud.iot.v1.DeviceRegistry> + getUpdateDeviceRegistryMethod; + if ((getUpdateDeviceRegistryMethod = DeviceManagerGrpc.getUpdateDeviceRegistryMethod) == null) { + synchronized (DeviceManagerGrpc.class) { + if ((getUpdateDeviceRegistryMethod = DeviceManagerGrpc.getUpdateDeviceRegistryMethod) + == null) { + DeviceManagerGrpc.getUpdateDeviceRegistryMethod = + getUpdateDeviceRegistryMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName(SERVICE_NAME, "UpdateDeviceRegistry")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.iot.v1.UpdateDeviceRegistryRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.iot.v1.DeviceRegistry.getDefaultInstance())) + .setSchemaDescriptor( + new DeviceManagerMethodDescriptorSupplier("UpdateDeviceRegistry")) + .build(); + } + } + } + return getUpdateDeviceRegistryMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.iot.v1.DeleteDeviceRegistryRequest, com.google.protobuf.Empty> + getDeleteDeviceRegistryMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "DeleteDeviceRegistry", + requestType = com.google.cloud.iot.v1.DeleteDeviceRegistryRequest.class, + responseType = com.google.protobuf.Empty.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.iot.v1.DeleteDeviceRegistryRequest, com.google.protobuf.Empty> + getDeleteDeviceRegistryMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.iot.v1.DeleteDeviceRegistryRequest, com.google.protobuf.Empty> + getDeleteDeviceRegistryMethod; + if ((getDeleteDeviceRegistryMethod = DeviceManagerGrpc.getDeleteDeviceRegistryMethod) == null) { + synchronized (DeviceManagerGrpc.class) { + if ((getDeleteDeviceRegistryMethod = DeviceManagerGrpc.getDeleteDeviceRegistryMethod) + == null) { + DeviceManagerGrpc.getDeleteDeviceRegistryMethod = + getDeleteDeviceRegistryMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName(SERVICE_NAME, "DeleteDeviceRegistry")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.iot.v1.DeleteDeviceRegistryRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.protobuf.Empty.getDefaultInstance())) + .setSchemaDescriptor( + new DeviceManagerMethodDescriptorSupplier("DeleteDeviceRegistry")) + .build(); + } + } + } + return getDeleteDeviceRegistryMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.iot.v1.ListDeviceRegistriesRequest, + com.google.cloud.iot.v1.ListDeviceRegistriesResponse> + getListDeviceRegistriesMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "ListDeviceRegistries", + requestType = com.google.cloud.iot.v1.ListDeviceRegistriesRequest.class, + responseType = com.google.cloud.iot.v1.ListDeviceRegistriesResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.iot.v1.ListDeviceRegistriesRequest, + com.google.cloud.iot.v1.ListDeviceRegistriesResponse> + getListDeviceRegistriesMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.iot.v1.ListDeviceRegistriesRequest, + com.google.cloud.iot.v1.ListDeviceRegistriesResponse> + getListDeviceRegistriesMethod; + if ((getListDeviceRegistriesMethod = DeviceManagerGrpc.getListDeviceRegistriesMethod) == null) { + synchronized (DeviceManagerGrpc.class) { + if ((getListDeviceRegistriesMethod = DeviceManagerGrpc.getListDeviceRegistriesMethod) + == null) { + DeviceManagerGrpc.getListDeviceRegistriesMethod = + getListDeviceRegistriesMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName(SERVICE_NAME, "ListDeviceRegistries")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.iot.v1.ListDeviceRegistriesRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.iot.v1.ListDeviceRegistriesResponse + .getDefaultInstance())) + .setSchemaDescriptor( + new DeviceManagerMethodDescriptorSupplier("ListDeviceRegistries")) + .build(); + } + } + } + return getListDeviceRegistriesMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.iot.v1.CreateDeviceRequest, com.google.cloud.iot.v1.Device> + getCreateDeviceMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "CreateDevice", + requestType = com.google.cloud.iot.v1.CreateDeviceRequest.class, + responseType = com.google.cloud.iot.v1.Device.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.iot.v1.CreateDeviceRequest, com.google.cloud.iot.v1.Device> + getCreateDeviceMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.iot.v1.CreateDeviceRequest, com.google.cloud.iot.v1.Device> + getCreateDeviceMethod; + if ((getCreateDeviceMethod = DeviceManagerGrpc.getCreateDeviceMethod) == null) { + synchronized (DeviceManagerGrpc.class) { + if ((getCreateDeviceMethod = DeviceManagerGrpc.getCreateDeviceMethod) == null) { + DeviceManagerGrpc.getCreateDeviceMethod = + getCreateDeviceMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CreateDevice")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.iot.v1.CreateDeviceRequest.getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.iot.v1.Device.getDefaultInstance())) + .setSchemaDescriptor( + new DeviceManagerMethodDescriptorSupplier("CreateDevice")) + .build(); + } + } + } + return getCreateDeviceMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.iot.v1.GetDeviceRequest, com.google.cloud.iot.v1.Device> + getGetDeviceMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "GetDevice", + requestType = com.google.cloud.iot.v1.GetDeviceRequest.class, + responseType = com.google.cloud.iot.v1.Device.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.iot.v1.GetDeviceRequest, com.google.cloud.iot.v1.Device> + getGetDeviceMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.iot.v1.GetDeviceRequest, com.google.cloud.iot.v1.Device> + getGetDeviceMethod; + if ((getGetDeviceMethod = DeviceManagerGrpc.getGetDeviceMethod) == null) { + synchronized (DeviceManagerGrpc.class) { + if ((getGetDeviceMethod = DeviceManagerGrpc.getGetDeviceMethod) == null) { + DeviceManagerGrpc.getGetDeviceMethod = + getGetDeviceMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetDevice")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.iot.v1.GetDeviceRequest.getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.iot.v1.Device.getDefaultInstance())) + .setSchemaDescriptor(new DeviceManagerMethodDescriptorSupplier("GetDevice")) + .build(); + } + } + } + return getGetDeviceMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.iot.v1.UpdateDeviceRequest, com.google.cloud.iot.v1.Device> + getUpdateDeviceMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "UpdateDevice", + requestType = com.google.cloud.iot.v1.UpdateDeviceRequest.class, + responseType = com.google.cloud.iot.v1.Device.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.iot.v1.UpdateDeviceRequest, com.google.cloud.iot.v1.Device> + getUpdateDeviceMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.iot.v1.UpdateDeviceRequest, com.google.cloud.iot.v1.Device> + getUpdateDeviceMethod; + if ((getUpdateDeviceMethod = DeviceManagerGrpc.getUpdateDeviceMethod) == null) { + synchronized (DeviceManagerGrpc.class) { + if ((getUpdateDeviceMethod = DeviceManagerGrpc.getUpdateDeviceMethod) == null) { + DeviceManagerGrpc.getUpdateDeviceMethod = + getUpdateDeviceMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "UpdateDevice")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.iot.v1.UpdateDeviceRequest.getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.iot.v1.Device.getDefaultInstance())) + .setSchemaDescriptor( + new DeviceManagerMethodDescriptorSupplier("UpdateDevice")) + .build(); + } + } + } + return getUpdateDeviceMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.iot.v1.DeleteDeviceRequest, com.google.protobuf.Empty> + getDeleteDeviceMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "DeleteDevice", + requestType = com.google.cloud.iot.v1.DeleteDeviceRequest.class, + responseType = com.google.protobuf.Empty.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.iot.v1.DeleteDeviceRequest, com.google.protobuf.Empty> + getDeleteDeviceMethod() { + io.grpc.MethodDescriptor + getDeleteDeviceMethod; + if ((getDeleteDeviceMethod = DeviceManagerGrpc.getDeleteDeviceMethod) == null) { + synchronized (DeviceManagerGrpc.class) { + if ((getDeleteDeviceMethod = DeviceManagerGrpc.getDeleteDeviceMethod) == null) { + DeviceManagerGrpc.getDeleteDeviceMethod = + getDeleteDeviceMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "DeleteDevice")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.iot.v1.DeleteDeviceRequest.getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.protobuf.Empty.getDefaultInstance())) + .setSchemaDescriptor( + new DeviceManagerMethodDescriptorSupplier("DeleteDevice")) + .build(); + } + } + } + return getDeleteDeviceMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.iot.v1.ListDevicesRequest, com.google.cloud.iot.v1.ListDevicesResponse> + getListDevicesMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "ListDevices", + requestType = com.google.cloud.iot.v1.ListDevicesRequest.class, + responseType = com.google.cloud.iot.v1.ListDevicesResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.iot.v1.ListDevicesRequest, com.google.cloud.iot.v1.ListDevicesResponse> + getListDevicesMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.iot.v1.ListDevicesRequest, com.google.cloud.iot.v1.ListDevicesResponse> + getListDevicesMethod; + if ((getListDevicesMethod = DeviceManagerGrpc.getListDevicesMethod) == null) { + synchronized (DeviceManagerGrpc.class) { + if ((getListDevicesMethod = DeviceManagerGrpc.getListDevicesMethod) == null) { + DeviceManagerGrpc.getListDevicesMethod = + getListDevicesMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListDevices")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.iot.v1.ListDevicesRequest.getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.iot.v1.ListDevicesResponse.getDefaultInstance())) + .setSchemaDescriptor(new DeviceManagerMethodDescriptorSupplier("ListDevices")) + .build(); + } + } + } + return getListDevicesMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.iot.v1.ModifyCloudToDeviceConfigRequest, + com.google.cloud.iot.v1.DeviceConfig> + getModifyCloudToDeviceConfigMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "ModifyCloudToDeviceConfig", + requestType = com.google.cloud.iot.v1.ModifyCloudToDeviceConfigRequest.class, + responseType = com.google.cloud.iot.v1.DeviceConfig.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.iot.v1.ModifyCloudToDeviceConfigRequest, + com.google.cloud.iot.v1.DeviceConfig> + getModifyCloudToDeviceConfigMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.iot.v1.ModifyCloudToDeviceConfigRequest, + com.google.cloud.iot.v1.DeviceConfig> + getModifyCloudToDeviceConfigMethod; + if ((getModifyCloudToDeviceConfigMethod = DeviceManagerGrpc.getModifyCloudToDeviceConfigMethod) + == null) { + synchronized (DeviceManagerGrpc.class) { + if ((getModifyCloudToDeviceConfigMethod = + DeviceManagerGrpc.getModifyCloudToDeviceConfigMethod) + == null) { + DeviceManagerGrpc.getModifyCloudToDeviceConfigMethod = + getModifyCloudToDeviceConfigMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName(SERVICE_NAME, "ModifyCloudToDeviceConfig")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.iot.v1.ModifyCloudToDeviceConfigRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.iot.v1.DeviceConfig.getDefaultInstance())) + .setSchemaDescriptor( + new DeviceManagerMethodDescriptorSupplier("ModifyCloudToDeviceConfig")) + .build(); + } + } + } + return getModifyCloudToDeviceConfigMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.iot.v1.ListDeviceConfigVersionsRequest, + com.google.cloud.iot.v1.ListDeviceConfigVersionsResponse> + getListDeviceConfigVersionsMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "ListDeviceConfigVersions", + requestType = com.google.cloud.iot.v1.ListDeviceConfigVersionsRequest.class, + responseType = com.google.cloud.iot.v1.ListDeviceConfigVersionsResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.iot.v1.ListDeviceConfigVersionsRequest, + com.google.cloud.iot.v1.ListDeviceConfigVersionsResponse> + getListDeviceConfigVersionsMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.iot.v1.ListDeviceConfigVersionsRequest, + com.google.cloud.iot.v1.ListDeviceConfigVersionsResponse> + getListDeviceConfigVersionsMethod; + if ((getListDeviceConfigVersionsMethod = DeviceManagerGrpc.getListDeviceConfigVersionsMethod) + == null) { + synchronized (DeviceManagerGrpc.class) { + if ((getListDeviceConfigVersionsMethod = + DeviceManagerGrpc.getListDeviceConfigVersionsMethod) + == null) { + DeviceManagerGrpc.getListDeviceConfigVersionsMethod = + getListDeviceConfigVersionsMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName(SERVICE_NAME, "ListDeviceConfigVersions")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.iot.v1.ListDeviceConfigVersionsRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.iot.v1.ListDeviceConfigVersionsResponse + .getDefaultInstance())) + .setSchemaDescriptor( + new DeviceManagerMethodDescriptorSupplier("ListDeviceConfigVersions")) + .build(); + } + } + } + return getListDeviceConfigVersionsMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.iot.v1.ListDeviceStatesRequest, + com.google.cloud.iot.v1.ListDeviceStatesResponse> + getListDeviceStatesMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "ListDeviceStates", + requestType = com.google.cloud.iot.v1.ListDeviceStatesRequest.class, + responseType = com.google.cloud.iot.v1.ListDeviceStatesResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.iot.v1.ListDeviceStatesRequest, + com.google.cloud.iot.v1.ListDeviceStatesResponse> + getListDeviceStatesMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.iot.v1.ListDeviceStatesRequest, + com.google.cloud.iot.v1.ListDeviceStatesResponse> + getListDeviceStatesMethod; + if ((getListDeviceStatesMethod = DeviceManagerGrpc.getListDeviceStatesMethod) == null) { + synchronized (DeviceManagerGrpc.class) { + if ((getListDeviceStatesMethod = DeviceManagerGrpc.getListDeviceStatesMethod) == null) { + DeviceManagerGrpc.getListDeviceStatesMethod = + getListDeviceStatesMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListDeviceStates")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.iot.v1.ListDeviceStatesRequest.getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.iot.v1.ListDeviceStatesResponse + .getDefaultInstance())) + .setSchemaDescriptor( + new DeviceManagerMethodDescriptorSupplier("ListDeviceStates")) + .build(); + } + } + } + return getListDeviceStatesMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.iam.v1.SetIamPolicyRequest, com.google.iam.v1.Policy> + getSetIamPolicyMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "SetIamPolicy", + requestType = com.google.iam.v1.SetIamPolicyRequest.class, + responseType = com.google.iam.v1.Policy.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.iam.v1.SetIamPolicyRequest, com.google.iam.v1.Policy> + getSetIamPolicyMethod() { + io.grpc.MethodDescriptor + getSetIamPolicyMethod; + if ((getSetIamPolicyMethod = DeviceManagerGrpc.getSetIamPolicyMethod) == null) { + synchronized (DeviceManagerGrpc.class) { + if ((getSetIamPolicyMethod = DeviceManagerGrpc.getSetIamPolicyMethod) == null) { + DeviceManagerGrpc.getSetIamPolicyMethod = + getSetIamPolicyMethod = + io.grpc.MethodDescriptor + .newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "SetIamPolicy")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.iam.v1.SetIamPolicyRequest.getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.iam.v1.Policy.getDefaultInstance())) + .setSchemaDescriptor( + new DeviceManagerMethodDescriptorSupplier("SetIamPolicy")) + .build(); + } + } + } + return getSetIamPolicyMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.iam.v1.GetIamPolicyRequest, com.google.iam.v1.Policy> + getGetIamPolicyMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "GetIamPolicy", + requestType = com.google.iam.v1.GetIamPolicyRequest.class, + responseType = com.google.iam.v1.Policy.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.iam.v1.GetIamPolicyRequest, com.google.iam.v1.Policy> + getGetIamPolicyMethod() { + io.grpc.MethodDescriptor + getGetIamPolicyMethod; + if ((getGetIamPolicyMethod = DeviceManagerGrpc.getGetIamPolicyMethod) == null) { + synchronized (DeviceManagerGrpc.class) { + if ((getGetIamPolicyMethod = DeviceManagerGrpc.getGetIamPolicyMethod) == null) { + DeviceManagerGrpc.getGetIamPolicyMethod = + getGetIamPolicyMethod = + io.grpc.MethodDescriptor + .newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetIamPolicy")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.iam.v1.GetIamPolicyRequest.getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.iam.v1.Policy.getDefaultInstance())) + .setSchemaDescriptor( + new DeviceManagerMethodDescriptorSupplier("GetIamPolicy")) + .build(); + } + } + } + return getGetIamPolicyMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.iam.v1.TestIamPermissionsRequest, com.google.iam.v1.TestIamPermissionsResponse> + getTestIamPermissionsMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "TestIamPermissions", + requestType = com.google.iam.v1.TestIamPermissionsRequest.class, + responseType = com.google.iam.v1.TestIamPermissionsResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.iam.v1.TestIamPermissionsRequest, com.google.iam.v1.TestIamPermissionsResponse> + getTestIamPermissionsMethod() { + io.grpc.MethodDescriptor< + com.google.iam.v1.TestIamPermissionsRequest, + com.google.iam.v1.TestIamPermissionsResponse> + getTestIamPermissionsMethod; + if ((getTestIamPermissionsMethod = DeviceManagerGrpc.getTestIamPermissionsMethod) == null) { + synchronized (DeviceManagerGrpc.class) { + if ((getTestIamPermissionsMethod = DeviceManagerGrpc.getTestIamPermissionsMethod) == null) { + DeviceManagerGrpc.getTestIamPermissionsMethod = + getTestIamPermissionsMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "TestIamPermissions")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.iam.v1.TestIamPermissionsRequest.getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.iam.v1.TestIamPermissionsResponse.getDefaultInstance())) + .setSchemaDescriptor( + new DeviceManagerMethodDescriptorSupplier("TestIamPermissions")) + .build(); + } + } + } + return getTestIamPermissionsMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.iot.v1.SendCommandToDeviceRequest, + com.google.cloud.iot.v1.SendCommandToDeviceResponse> + getSendCommandToDeviceMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "SendCommandToDevice", + requestType = com.google.cloud.iot.v1.SendCommandToDeviceRequest.class, + responseType = com.google.cloud.iot.v1.SendCommandToDeviceResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.iot.v1.SendCommandToDeviceRequest, + com.google.cloud.iot.v1.SendCommandToDeviceResponse> + getSendCommandToDeviceMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.iot.v1.SendCommandToDeviceRequest, + com.google.cloud.iot.v1.SendCommandToDeviceResponse> + getSendCommandToDeviceMethod; + if ((getSendCommandToDeviceMethod = DeviceManagerGrpc.getSendCommandToDeviceMethod) == null) { + synchronized (DeviceManagerGrpc.class) { + if ((getSendCommandToDeviceMethod = DeviceManagerGrpc.getSendCommandToDeviceMethod) + == null) { + DeviceManagerGrpc.getSendCommandToDeviceMethod = + getSendCommandToDeviceMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName(SERVICE_NAME, "SendCommandToDevice")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.iot.v1.SendCommandToDeviceRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.iot.v1.SendCommandToDeviceResponse + .getDefaultInstance())) + .setSchemaDescriptor( + new DeviceManagerMethodDescriptorSupplier("SendCommandToDevice")) + .build(); + } + } + } + return getSendCommandToDeviceMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.iot.v1.BindDeviceToGatewayRequest, + com.google.cloud.iot.v1.BindDeviceToGatewayResponse> + getBindDeviceToGatewayMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "BindDeviceToGateway", + requestType = com.google.cloud.iot.v1.BindDeviceToGatewayRequest.class, + responseType = com.google.cloud.iot.v1.BindDeviceToGatewayResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.iot.v1.BindDeviceToGatewayRequest, + com.google.cloud.iot.v1.BindDeviceToGatewayResponse> + getBindDeviceToGatewayMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.iot.v1.BindDeviceToGatewayRequest, + com.google.cloud.iot.v1.BindDeviceToGatewayResponse> + getBindDeviceToGatewayMethod; + if ((getBindDeviceToGatewayMethod = DeviceManagerGrpc.getBindDeviceToGatewayMethod) == null) { + synchronized (DeviceManagerGrpc.class) { + if ((getBindDeviceToGatewayMethod = DeviceManagerGrpc.getBindDeviceToGatewayMethod) + == null) { + DeviceManagerGrpc.getBindDeviceToGatewayMethod = + getBindDeviceToGatewayMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName(SERVICE_NAME, "BindDeviceToGateway")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.iot.v1.BindDeviceToGatewayRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.iot.v1.BindDeviceToGatewayResponse + .getDefaultInstance())) + .setSchemaDescriptor( + new DeviceManagerMethodDescriptorSupplier("BindDeviceToGateway")) + .build(); + } + } + } + return getBindDeviceToGatewayMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.iot.v1.UnbindDeviceFromGatewayRequest, + com.google.cloud.iot.v1.UnbindDeviceFromGatewayResponse> + getUnbindDeviceFromGatewayMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "UnbindDeviceFromGateway", + requestType = com.google.cloud.iot.v1.UnbindDeviceFromGatewayRequest.class, + responseType = com.google.cloud.iot.v1.UnbindDeviceFromGatewayResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.iot.v1.UnbindDeviceFromGatewayRequest, + com.google.cloud.iot.v1.UnbindDeviceFromGatewayResponse> + getUnbindDeviceFromGatewayMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.iot.v1.UnbindDeviceFromGatewayRequest, + com.google.cloud.iot.v1.UnbindDeviceFromGatewayResponse> + getUnbindDeviceFromGatewayMethod; + if ((getUnbindDeviceFromGatewayMethod = DeviceManagerGrpc.getUnbindDeviceFromGatewayMethod) + == null) { + synchronized (DeviceManagerGrpc.class) { + if ((getUnbindDeviceFromGatewayMethod = DeviceManagerGrpc.getUnbindDeviceFromGatewayMethod) + == null) { + DeviceManagerGrpc.getUnbindDeviceFromGatewayMethod = + getUnbindDeviceFromGatewayMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName(SERVICE_NAME, "UnbindDeviceFromGateway")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.iot.v1.UnbindDeviceFromGatewayRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.iot.v1.UnbindDeviceFromGatewayResponse + .getDefaultInstance())) + .setSchemaDescriptor( + new DeviceManagerMethodDescriptorSupplier("UnbindDeviceFromGateway")) + .build(); + } + } + } + return getUnbindDeviceFromGatewayMethod; + } + + /** Creates a new async stub that supports all call types for the service */ + public static DeviceManagerStub newStub(io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public DeviceManagerStub newStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new DeviceManagerStub(channel, callOptions); + } + }; + return DeviceManagerStub.newStub(factory, channel); + } + + /** + * Creates a new blocking-style stub that supports unary and streaming output calls on the service + */ + public static DeviceManagerBlockingStub newBlockingStub(io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public DeviceManagerBlockingStub newStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new DeviceManagerBlockingStub(channel, callOptions); + } + }; + return DeviceManagerBlockingStub.newStub(factory, channel); + } + + /** Creates a new ListenableFuture-style stub that supports unary calls on the service */ + public static DeviceManagerFutureStub newFutureStub(io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public DeviceManagerFutureStub newStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new DeviceManagerFutureStub(channel, callOptions); + } + }; + return DeviceManagerFutureStub.newStub(factory, channel); + } + + /** + * + * + *
+   * Internet of Things (IoT) service. Securely connect and manage IoT devices.
+   * 
+ */ + public abstract static class DeviceManagerImplBase implements io.grpc.BindableService { + + /** + * + * + *
+     * Creates a device registry that contains devices.
+     * 
+ */ + public void createDeviceRegistry( + com.google.cloud.iot.v1.CreateDeviceRegistryRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getCreateDeviceRegistryMethod(), responseObserver); + } + + /** + * + * + *
+     * Gets a device registry configuration.
+     * 
+ */ + public void getDeviceRegistry( + com.google.cloud.iot.v1.GetDeviceRegistryRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getGetDeviceRegistryMethod(), responseObserver); + } + + /** + * + * + *
+     * Updates a device registry configuration.
+     * 
+ */ + public void updateDeviceRegistry( + com.google.cloud.iot.v1.UpdateDeviceRegistryRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getUpdateDeviceRegistryMethod(), responseObserver); + } + + /** + * + * + *
+     * Deletes a device registry configuration.
+     * 
+ */ + public void deleteDeviceRegistry( + com.google.cloud.iot.v1.DeleteDeviceRegistryRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getDeleteDeviceRegistryMethod(), responseObserver); + } + + /** + * + * + *
+     * Lists device registries.
+     * 
+ */ + public void listDeviceRegistries( + com.google.cloud.iot.v1.ListDeviceRegistriesRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getListDeviceRegistriesMethod(), responseObserver); + } + + /** + * + * + *
+     * Creates a device in a device registry.
+     * 
+ */ + public void createDevice( + com.google.cloud.iot.v1.CreateDeviceRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getCreateDeviceMethod(), responseObserver); + } + + /** + * + * + *
+     * Gets details about a device.
+     * 
+ */ + public void getDevice( + com.google.cloud.iot.v1.GetDeviceRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetDeviceMethod(), responseObserver); + } + + /** + * + * + *
+     * Updates a device.
+     * 
+ */ + public void updateDevice( + com.google.cloud.iot.v1.UpdateDeviceRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getUpdateDeviceMethod(), responseObserver); + } + + /** + * + * + *
+     * Deletes a device.
+     * 
+ */ + public void deleteDevice( + com.google.cloud.iot.v1.DeleteDeviceRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getDeleteDeviceMethod(), responseObserver); + } + + /** + * + * + *
+     * List devices in a device registry.
+     * 
+ */ + public void listDevices( + com.google.cloud.iot.v1.ListDevicesRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getListDevicesMethod(), responseObserver); + } + + /** + * + * + *
+     * Modifies the configuration for the device, which is eventually sent from
+     * the Cloud IoT Core servers. Returns the modified configuration version and
+     * its metadata.
+     * 
+ */ + public void modifyCloudToDeviceConfig( + com.google.cloud.iot.v1.ModifyCloudToDeviceConfigRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getModifyCloudToDeviceConfigMethod(), responseObserver); + } + + /** + * + * + *
+     * Lists the last few versions of the device configuration in descending
+     * order (i.e.: newest first).
+     * 
+ */ + public void listDeviceConfigVersions( + com.google.cloud.iot.v1.ListDeviceConfigVersionsRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getListDeviceConfigVersionsMethod(), responseObserver); + } + + /** + * + * + *
+     * Lists the last few versions of the device state in descending order (i.e.:
+     * newest first).
+     * 
+ */ + public void listDeviceStates( + com.google.cloud.iot.v1.ListDeviceStatesRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getListDeviceStatesMethod(), responseObserver); + } + + /** + * + * + *
+     * Sets the access control policy on the specified resource. Replaces any
+     * existing policy.
+     * 
+ */ + public void setIamPolicy( + com.google.iam.v1.SetIamPolicyRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getSetIamPolicyMethod(), responseObserver); + } + + /** + * + * + *
+     * Gets the access control policy for a resource.
+     * Returns an empty policy if the resource exists and does not have a policy
+     * set.
+     * 
+ */ + public void getIamPolicy( + com.google.iam.v1.GetIamPolicyRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getGetIamPolicyMethod(), responseObserver); + } + + /** + * + * + *
+     * Returns permissions that a caller has on the specified resource.
+     * If the resource does not exist, this will return an empty set of
+     * permissions, not a NOT_FOUND error.
+     * 
+ */ + public void testIamPermissions( + com.google.iam.v1.TestIamPermissionsRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getTestIamPermissionsMethod(), responseObserver); + } + + /** + * + * + *
+     * Sends a command to the specified device. In order for a device to be able
+     * to receive commands, it must:
+     * 1) be connected to Cloud IoT Core using the MQTT protocol, and
+     * 2) be subscribed to the group of MQTT topics specified by
+     *    /devices/{device-id}/commands/#. This subscription will receive commands
+     *    at the top-level topic /devices/{device-id}/commands as well as commands
+     *    for subfolders, like /devices/{device-id}/commands/subfolder.
+     *    Note that subscribing to specific subfolders is not supported.
+     * If the command could not be delivered to the device, this method will
+     * return an error; in particular, if the device is not subscribed, this
+     * method will return FAILED_PRECONDITION. Otherwise, this method will
+     * return OK. If the subscription is QoS 1, at least once delivery will be
+     * guaranteed; for QoS 0, no acknowledgment will be expected from the device.
+     * 
+ */ + public void sendCommandToDevice( + com.google.cloud.iot.v1.SendCommandToDeviceRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getSendCommandToDeviceMethod(), responseObserver); + } + + /** + * + * + *
+     * Associates the device with the gateway.
+     * 
+ */ + public void bindDeviceToGateway( + com.google.cloud.iot.v1.BindDeviceToGatewayRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getBindDeviceToGatewayMethod(), responseObserver); + } + + /** + * + * + *
+     * Deletes the association between the device and the gateway.
+     * 
+ */ + public void unbindDeviceFromGateway( + com.google.cloud.iot.v1.UnbindDeviceFromGatewayRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getUnbindDeviceFromGatewayMethod(), responseObserver); + } + + @java.lang.Override + public final io.grpc.ServerServiceDefinition bindService() { + return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor()) + .addMethod( + getCreateDeviceRegistryMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.iot.v1.CreateDeviceRegistryRequest, + com.google.cloud.iot.v1.DeviceRegistry>( + this, METHODID_CREATE_DEVICE_REGISTRY))) + .addMethod( + getGetDeviceRegistryMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.iot.v1.GetDeviceRegistryRequest, + com.google.cloud.iot.v1.DeviceRegistry>(this, METHODID_GET_DEVICE_REGISTRY))) + .addMethod( + getUpdateDeviceRegistryMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.iot.v1.UpdateDeviceRegistryRequest, + com.google.cloud.iot.v1.DeviceRegistry>( + this, METHODID_UPDATE_DEVICE_REGISTRY))) + .addMethod( + getDeleteDeviceRegistryMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.iot.v1.DeleteDeviceRegistryRequest, + com.google.protobuf.Empty>(this, METHODID_DELETE_DEVICE_REGISTRY))) + .addMethod( + getListDeviceRegistriesMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.iot.v1.ListDeviceRegistriesRequest, + com.google.cloud.iot.v1.ListDeviceRegistriesResponse>( + this, METHODID_LIST_DEVICE_REGISTRIES))) + .addMethod( + getCreateDeviceMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.iot.v1.CreateDeviceRequest, com.google.cloud.iot.v1.Device>( + this, METHODID_CREATE_DEVICE))) + .addMethod( + getGetDeviceMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.iot.v1.GetDeviceRequest, com.google.cloud.iot.v1.Device>( + this, METHODID_GET_DEVICE))) + .addMethod( + getUpdateDeviceMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.iot.v1.UpdateDeviceRequest, com.google.cloud.iot.v1.Device>( + this, METHODID_UPDATE_DEVICE))) + .addMethod( + getDeleteDeviceMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.iot.v1.DeleteDeviceRequest, com.google.protobuf.Empty>( + this, METHODID_DELETE_DEVICE))) + .addMethod( + getListDevicesMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.iot.v1.ListDevicesRequest, + com.google.cloud.iot.v1.ListDevicesResponse>(this, METHODID_LIST_DEVICES))) + .addMethod( + getModifyCloudToDeviceConfigMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.iot.v1.ModifyCloudToDeviceConfigRequest, + com.google.cloud.iot.v1.DeviceConfig>( + this, METHODID_MODIFY_CLOUD_TO_DEVICE_CONFIG))) + .addMethod( + getListDeviceConfigVersionsMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.iot.v1.ListDeviceConfigVersionsRequest, + com.google.cloud.iot.v1.ListDeviceConfigVersionsResponse>( + this, METHODID_LIST_DEVICE_CONFIG_VERSIONS))) + .addMethod( + getListDeviceStatesMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.iot.v1.ListDeviceStatesRequest, + com.google.cloud.iot.v1.ListDeviceStatesResponse>( + this, METHODID_LIST_DEVICE_STATES))) + .addMethod( + getSetIamPolicyMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.iam.v1.SetIamPolicyRequest, com.google.iam.v1.Policy>( + this, METHODID_SET_IAM_POLICY))) + .addMethod( + getGetIamPolicyMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.iam.v1.GetIamPolicyRequest, com.google.iam.v1.Policy>( + this, METHODID_GET_IAM_POLICY))) + .addMethod( + getTestIamPermissionsMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.iam.v1.TestIamPermissionsRequest, + com.google.iam.v1.TestIamPermissionsResponse>( + this, METHODID_TEST_IAM_PERMISSIONS))) + .addMethod( + getSendCommandToDeviceMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.iot.v1.SendCommandToDeviceRequest, + com.google.cloud.iot.v1.SendCommandToDeviceResponse>( + this, METHODID_SEND_COMMAND_TO_DEVICE))) + .addMethod( + getBindDeviceToGatewayMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.iot.v1.BindDeviceToGatewayRequest, + com.google.cloud.iot.v1.BindDeviceToGatewayResponse>( + this, METHODID_BIND_DEVICE_TO_GATEWAY))) + .addMethod( + getUnbindDeviceFromGatewayMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.iot.v1.UnbindDeviceFromGatewayRequest, + com.google.cloud.iot.v1.UnbindDeviceFromGatewayResponse>( + this, METHODID_UNBIND_DEVICE_FROM_GATEWAY))) + .build(); + } + } + + /** + * + * + *
+   * Internet of Things (IoT) service. Securely connect and manage IoT devices.
+   * 
+ */ + public static final class DeviceManagerStub + extends io.grpc.stub.AbstractAsyncStub { + private DeviceManagerStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected DeviceManagerStub build(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new DeviceManagerStub(channel, callOptions); + } + + /** + * + * + *
+     * Creates a device registry that contains devices.
+     * 
+ */ + public void createDeviceRegistry( + com.google.cloud.iot.v1.CreateDeviceRegistryRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getCreateDeviceRegistryMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Gets a device registry configuration.
+     * 
+ */ + public void getDeviceRegistry( + com.google.cloud.iot.v1.GetDeviceRegistryRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getGetDeviceRegistryMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Updates a device registry configuration.
+     * 
+ */ + public void updateDeviceRegistry( + com.google.cloud.iot.v1.UpdateDeviceRegistryRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getUpdateDeviceRegistryMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Deletes a device registry configuration.
+     * 
+ */ + public void deleteDeviceRegistry( + com.google.cloud.iot.v1.DeleteDeviceRegistryRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getDeleteDeviceRegistryMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Lists device registries.
+     * 
+ */ + public void listDeviceRegistries( + com.google.cloud.iot.v1.ListDeviceRegistriesRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getListDeviceRegistriesMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Creates a device in a device registry.
+     * 
+ */ + public void createDevice( + com.google.cloud.iot.v1.CreateDeviceRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getCreateDeviceMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Gets details about a device.
+     * 
+ */ + public void getDevice( + com.google.cloud.iot.v1.GetDeviceRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getGetDeviceMethod(), getCallOptions()), request, responseObserver); + } + + /** + * + * + *
+     * Updates a device.
+     * 
+ */ + public void updateDevice( + com.google.cloud.iot.v1.UpdateDeviceRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getUpdateDeviceMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Deletes a device.
+     * 
+ */ + public void deleteDevice( + com.google.cloud.iot.v1.DeleteDeviceRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getDeleteDeviceMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * List devices in a device registry.
+     * 
+ */ + public void listDevices( + com.google.cloud.iot.v1.ListDevicesRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getListDevicesMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Modifies the configuration for the device, which is eventually sent from
+     * the Cloud IoT Core servers. Returns the modified configuration version and
+     * its metadata.
+     * 
+ */ + public void modifyCloudToDeviceConfig( + com.google.cloud.iot.v1.ModifyCloudToDeviceConfigRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getModifyCloudToDeviceConfigMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Lists the last few versions of the device configuration in descending
+     * order (i.e.: newest first).
+     * 
+ */ + public void listDeviceConfigVersions( + com.google.cloud.iot.v1.ListDeviceConfigVersionsRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getListDeviceConfigVersionsMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Lists the last few versions of the device state in descending order (i.e.:
+     * newest first).
+     * 
+ */ + public void listDeviceStates( + com.google.cloud.iot.v1.ListDeviceStatesRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getListDeviceStatesMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Sets the access control policy on the specified resource. Replaces any
+     * existing policy.
+     * 
+ */ + public void setIamPolicy( + com.google.iam.v1.SetIamPolicyRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getSetIamPolicyMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Gets the access control policy for a resource.
+     * Returns an empty policy if the resource exists and does not have a policy
+     * set.
+     * 
+ */ + public void getIamPolicy( + com.google.iam.v1.GetIamPolicyRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getGetIamPolicyMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Returns permissions that a caller has on the specified resource.
+     * If the resource does not exist, this will return an empty set of
+     * permissions, not a NOT_FOUND error.
+     * 
+ */ + public void testIamPermissions( + com.google.iam.v1.TestIamPermissionsRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getTestIamPermissionsMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Sends a command to the specified device. In order for a device to be able
+     * to receive commands, it must:
+     * 1) be connected to Cloud IoT Core using the MQTT protocol, and
+     * 2) be subscribed to the group of MQTT topics specified by
+     *    /devices/{device-id}/commands/#. This subscription will receive commands
+     *    at the top-level topic /devices/{device-id}/commands as well as commands
+     *    for subfolders, like /devices/{device-id}/commands/subfolder.
+     *    Note that subscribing to specific subfolders is not supported.
+     * If the command could not be delivered to the device, this method will
+     * return an error; in particular, if the device is not subscribed, this
+     * method will return FAILED_PRECONDITION. Otherwise, this method will
+     * return OK. If the subscription is QoS 1, at least once delivery will be
+     * guaranteed; for QoS 0, no acknowledgment will be expected from the device.
+     * 
+ */ + public void sendCommandToDevice( + com.google.cloud.iot.v1.SendCommandToDeviceRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getSendCommandToDeviceMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Associates the device with the gateway.
+     * 
+ */ + public void bindDeviceToGateway( + com.google.cloud.iot.v1.BindDeviceToGatewayRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getBindDeviceToGatewayMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Deletes the association between the device and the gateway.
+     * 
+ */ + public void unbindDeviceFromGateway( + com.google.cloud.iot.v1.UnbindDeviceFromGatewayRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getUnbindDeviceFromGatewayMethod(), getCallOptions()), + request, + responseObserver); + } + } + + /** + * + * + *
+   * Internet of Things (IoT) service. Securely connect and manage IoT devices.
+   * 
+ */ + public static final class DeviceManagerBlockingStub + extends io.grpc.stub.AbstractBlockingStub { + private DeviceManagerBlockingStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected DeviceManagerBlockingStub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new DeviceManagerBlockingStub(channel, callOptions); + } + + /** + * + * + *
+     * Creates a device registry that contains devices.
+     * 
+ */ + public com.google.cloud.iot.v1.DeviceRegistry createDeviceRegistry( + com.google.cloud.iot.v1.CreateDeviceRegistryRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getCreateDeviceRegistryMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Gets a device registry configuration.
+     * 
+ */ + public com.google.cloud.iot.v1.DeviceRegistry getDeviceRegistry( + com.google.cloud.iot.v1.GetDeviceRegistryRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getGetDeviceRegistryMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Updates a device registry configuration.
+     * 
+ */ + public com.google.cloud.iot.v1.DeviceRegistry updateDeviceRegistry( + com.google.cloud.iot.v1.UpdateDeviceRegistryRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getUpdateDeviceRegistryMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Deletes a device registry configuration.
+     * 
+ */ + public com.google.protobuf.Empty deleteDeviceRegistry( + com.google.cloud.iot.v1.DeleteDeviceRegistryRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getDeleteDeviceRegistryMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Lists device registries.
+     * 
+ */ + public com.google.cloud.iot.v1.ListDeviceRegistriesResponse listDeviceRegistries( + com.google.cloud.iot.v1.ListDeviceRegistriesRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getListDeviceRegistriesMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Creates a device in a device registry.
+     * 
+ */ + public com.google.cloud.iot.v1.Device createDevice( + com.google.cloud.iot.v1.CreateDeviceRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getCreateDeviceMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Gets details about a device.
+     * 
+ */ + public com.google.cloud.iot.v1.Device getDevice( + com.google.cloud.iot.v1.GetDeviceRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getGetDeviceMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Updates a device.
+     * 
+ */ + public com.google.cloud.iot.v1.Device updateDevice( + com.google.cloud.iot.v1.UpdateDeviceRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getUpdateDeviceMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Deletes a device.
+     * 
+ */ + public com.google.protobuf.Empty deleteDevice( + com.google.cloud.iot.v1.DeleteDeviceRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getDeleteDeviceMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * List devices in a device registry.
+     * 
+ */ + public com.google.cloud.iot.v1.ListDevicesResponse listDevices( + com.google.cloud.iot.v1.ListDevicesRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getListDevicesMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Modifies the configuration for the device, which is eventually sent from
+     * the Cloud IoT Core servers. Returns the modified configuration version and
+     * its metadata.
+     * 
+ */ + public com.google.cloud.iot.v1.DeviceConfig modifyCloudToDeviceConfig( + com.google.cloud.iot.v1.ModifyCloudToDeviceConfigRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getModifyCloudToDeviceConfigMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Lists the last few versions of the device configuration in descending
+     * order (i.e.: newest first).
+     * 
+ */ + public com.google.cloud.iot.v1.ListDeviceConfigVersionsResponse listDeviceConfigVersions( + com.google.cloud.iot.v1.ListDeviceConfigVersionsRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getListDeviceConfigVersionsMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Lists the last few versions of the device state in descending order (i.e.:
+     * newest first).
+     * 
+ */ + public com.google.cloud.iot.v1.ListDeviceStatesResponse listDeviceStates( + com.google.cloud.iot.v1.ListDeviceStatesRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getListDeviceStatesMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Sets the access control policy on the specified resource. Replaces any
+     * existing policy.
+     * 
+ */ + public com.google.iam.v1.Policy setIamPolicy(com.google.iam.v1.SetIamPolicyRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getSetIamPolicyMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Gets the access control policy for a resource.
+     * Returns an empty policy if the resource exists and does not have a policy
+     * set.
+     * 
+ */ + public com.google.iam.v1.Policy getIamPolicy(com.google.iam.v1.GetIamPolicyRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getGetIamPolicyMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Returns permissions that a caller has on the specified resource.
+     * If the resource does not exist, this will return an empty set of
+     * permissions, not a NOT_FOUND error.
+     * 
+ */ + public com.google.iam.v1.TestIamPermissionsResponse testIamPermissions( + com.google.iam.v1.TestIamPermissionsRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getTestIamPermissionsMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Sends a command to the specified device. In order for a device to be able
+     * to receive commands, it must:
+     * 1) be connected to Cloud IoT Core using the MQTT protocol, and
+     * 2) be subscribed to the group of MQTT topics specified by
+     *    /devices/{device-id}/commands/#. This subscription will receive commands
+     *    at the top-level topic /devices/{device-id}/commands as well as commands
+     *    for subfolders, like /devices/{device-id}/commands/subfolder.
+     *    Note that subscribing to specific subfolders is not supported.
+     * If the command could not be delivered to the device, this method will
+     * return an error; in particular, if the device is not subscribed, this
+     * method will return FAILED_PRECONDITION. Otherwise, this method will
+     * return OK. If the subscription is QoS 1, at least once delivery will be
+     * guaranteed; for QoS 0, no acknowledgment will be expected from the device.
+     * 
+ */ + public com.google.cloud.iot.v1.SendCommandToDeviceResponse sendCommandToDevice( + com.google.cloud.iot.v1.SendCommandToDeviceRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getSendCommandToDeviceMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Associates the device with the gateway.
+     * 
+ */ + public com.google.cloud.iot.v1.BindDeviceToGatewayResponse bindDeviceToGateway( + com.google.cloud.iot.v1.BindDeviceToGatewayRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getBindDeviceToGatewayMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Deletes the association between the device and the gateway.
+     * 
+ */ + public com.google.cloud.iot.v1.UnbindDeviceFromGatewayResponse unbindDeviceFromGateway( + com.google.cloud.iot.v1.UnbindDeviceFromGatewayRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getUnbindDeviceFromGatewayMethod(), getCallOptions(), request); + } + } + + /** + * + * + *
+   * Internet of Things (IoT) service. Securely connect and manage IoT devices.
+   * 
+ */ + public static final class DeviceManagerFutureStub + extends io.grpc.stub.AbstractFutureStub { + private DeviceManagerFutureStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected DeviceManagerFutureStub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new DeviceManagerFutureStub(channel, callOptions); + } + + /** + * + * + *
+     * Creates a device registry that contains devices.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.iot.v1.DeviceRegistry> + createDeviceRegistry(com.google.cloud.iot.v1.CreateDeviceRegistryRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getCreateDeviceRegistryMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Gets a device registry configuration.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.iot.v1.DeviceRegistry> + getDeviceRegistry(com.google.cloud.iot.v1.GetDeviceRegistryRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getGetDeviceRegistryMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Updates a device registry configuration.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.iot.v1.DeviceRegistry> + updateDeviceRegistry(com.google.cloud.iot.v1.UpdateDeviceRegistryRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getUpdateDeviceRegistryMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Deletes a device registry configuration.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture + deleteDeviceRegistry(com.google.cloud.iot.v1.DeleteDeviceRegistryRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getDeleteDeviceRegistryMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Lists device registries.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.iot.v1.ListDeviceRegistriesResponse> + listDeviceRegistries(com.google.cloud.iot.v1.ListDeviceRegistriesRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getListDeviceRegistriesMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Creates a device in a device registry.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture + createDevice(com.google.cloud.iot.v1.CreateDeviceRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getCreateDeviceMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Gets details about a device.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture + getDevice(com.google.cloud.iot.v1.GetDeviceRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getGetDeviceMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Updates a device.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture + updateDevice(com.google.cloud.iot.v1.UpdateDeviceRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getUpdateDeviceMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Deletes a device.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture + deleteDevice(com.google.cloud.iot.v1.DeleteDeviceRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getDeleteDeviceMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * List devices in a device registry.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.iot.v1.ListDevicesResponse> + listDevices(com.google.cloud.iot.v1.ListDevicesRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getListDevicesMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Modifies the configuration for the device, which is eventually sent from
+     * the Cloud IoT Core servers. Returns the modified configuration version and
+     * its metadata.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture + modifyCloudToDeviceConfig( + com.google.cloud.iot.v1.ModifyCloudToDeviceConfigRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getModifyCloudToDeviceConfigMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Lists the last few versions of the device configuration in descending
+     * order (i.e.: newest first).
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.iot.v1.ListDeviceConfigVersionsResponse> + listDeviceConfigVersions(com.google.cloud.iot.v1.ListDeviceConfigVersionsRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getListDeviceConfigVersionsMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Lists the last few versions of the device state in descending order (i.e.:
+     * newest first).
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.iot.v1.ListDeviceStatesResponse> + listDeviceStates(com.google.cloud.iot.v1.ListDeviceStatesRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getListDeviceStatesMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Sets the access control policy on the specified resource. Replaces any
+     * existing policy.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture + setIamPolicy(com.google.iam.v1.SetIamPolicyRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getSetIamPolicyMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Gets the access control policy for a resource.
+     * Returns an empty policy if the resource exists and does not have a policy
+     * set.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture + getIamPolicy(com.google.iam.v1.GetIamPolicyRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getGetIamPolicyMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Returns permissions that a caller has on the specified resource.
+     * If the resource does not exist, this will return an empty set of
+     * permissions, not a NOT_FOUND error.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.iam.v1.TestIamPermissionsResponse> + testIamPermissions(com.google.iam.v1.TestIamPermissionsRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getTestIamPermissionsMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Sends a command to the specified device. In order for a device to be able
+     * to receive commands, it must:
+     * 1) be connected to Cloud IoT Core using the MQTT protocol, and
+     * 2) be subscribed to the group of MQTT topics specified by
+     *    /devices/{device-id}/commands/#. This subscription will receive commands
+     *    at the top-level topic /devices/{device-id}/commands as well as commands
+     *    for subfolders, like /devices/{device-id}/commands/subfolder.
+     *    Note that subscribing to specific subfolders is not supported.
+     * If the command could not be delivered to the device, this method will
+     * return an error; in particular, if the device is not subscribed, this
+     * method will return FAILED_PRECONDITION. Otherwise, this method will
+     * return OK. If the subscription is QoS 1, at least once delivery will be
+     * guaranteed; for QoS 0, no acknowledgment will be expected from the device.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.iot.v1.SendCommandToDeviceResponse> + sendCommandToDevice(com.google.cloud.iot.v1.SendCommandToDeviceRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getSendCommandToDeviceMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Associates the device with the gateway.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.iot.v1.BindDeviceToGatewayResponse> + bindDeviceToGateway(com.google.cloud.iot.v1.BindDeviceToGatewayRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getBindDeviceToGatewayMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Deletes the association between the device and the gateway.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.iot.v1.UnbindDeviceFromGatewayResponse> + unbindDeviceFromGateway(com.google.cloud.iot.v1.UnbindDeviceFromGatewayRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getUnbindDeviceFromGatewayMethod(), getCallOptions()), request); + } + } + + private static final int METHODID_CREATE_DEVICE_REGISTRY = 0; + private static final int METHODID_GET_DEVICE_REGISTRY = 1; + private static final int METHODID_UPDATE_DEVICE_REGISTRY = 2; + private static final int METHODID_DELETE_DEVICE_REGISTRY = 3; + private static final int METHODID_LIST_DEVICE_REGISTRIES = 4; + private static final int METHODID_CREATE_DEVICE = 5; + private static final int METHODID_GET_DEVICE = 6; + private static final int METHODID_UPDATE_DEVICE = 7; + private static final int METHODID_DELETE_DEVICE = 8; + private static final int METHODID_LIST_DEVICES = 9; + private static final int METHODID_MODIFY_CLOUD_TO_DEVICE_CONFIG = 10; + private static final int METHODID_LIST_DEVICE_CONFIG_VERSIONS = 11; + private static final int METHODID_LIST_DEVICE_STATES = 12; + private static final int METHODID_SET_IAM_POLICY = 13; + private static final int METHODID_GET_IAM_POLICY = 14; + private static final int METHODID_TEST_IAM_PERMISSIONS = 15; + private static final int METHODID_SEND_COMMAND_TO_DEVICE = 16; + private static final int METHODID_BIND_DEVICE_TO_GATEWAY = 17; + private static final int METHODID_UNBIND_DEVICE_FROM_GATEWAY = 18; + + 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 DeviceManagerImplBase serviceImpl; + private final int methodId; + + MethodHandlers(DeviceManagerImplBase 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_CREATE_DEVICE_REGISTRY: + serviceImpl.createDeviceRegistry( + (com.google.cloud.iot.v1.CreateDeviceRegistryRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); + break; + case METHODID_GET_DEVICE_REGISTRY: + serviceImpl.getDeviceRegistry( + (com.google.cloud.iot.v1.GetDeviceRegistryRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); + break; + case METHODID_UPDATE_DEVICE_REGISTRY: + serviceImpl.updateDeviceRegistry( + (com.google.cloud.iot.v1.UpdateDeviceRegistryRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); + break; + case METHODID_DELETE_DEVICE_REGISTRY: + serviceImpl.deleteDeviceRegistry( + (com.google.cloud.iot.v1.DeleteDeviceRegistryRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_LIST_DEVICE_REGISTRIES: + serviceImpl.listDeviceRegistries( + (com.google.cloud.iot.v1.ListDeviceRegistriesRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); + break; + case METHODID_CREATE_DEVICE: + serviceImpl.createDevice( + (com.google.cloud.iot.v1.CreateDeviceRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_GET_DEVICE: + serviceImpl.getDevice( + (com.google.cloud.iot.v1.GetDeviceRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_UPDATE_DEVICE: + serviceImpl.updateDevice( + (com.google.cloud.iot.v1.UpdateDeviceRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_DELETE_DEVICE: + serviceImpl.deleteDevice( + (com.google.cloud.iot.v1.DeleteDeviceRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_LIST_DEVICES: + serviceImpl.listDevices( + (com.google.cloud.iot.v1.ListDevicesRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); + break; + case METHODID_MODIFY_CLOUD_TO_DEVICE_CONFIG: + serviceImpl.modifyCloudToDeviceConfig( + (com.google.cloud.iot.v1.ModifyCloudToDeviceConfigRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_LIST_DEVICE_CONFIG_VERSIONS: + serviceImpl.listDeviceConfigVersions( + (com.google.cloud.iot.v1.ListDeviceConfigVersionsRequest) request, + (io.grpc.stub.StreamObserver< + com.google.cloud.iot.v1.ListDeviceConfigVersionsResponse>) + responseObserver); + break; + case METHODID_LIST_DEVICE_STATES: + serviceImpl.listDeviceStates( + (com.google.cloud.iot.v1.ListDeviceStatesRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); + break; + case METHODID_SET_IAM_POLICY: + serviceImpl.setIamPolicy( + (com.google.iam.v1.SetIamPolicyRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_GET_IAM_POLICY: + serviceImpl.getIamPolicy( + (com.google.iam.v1.GetIamPolicyRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_TEST_IAM_PERMISSIONS: + serviceImpl.testIamPermissions( + (com.google.iam.v1.TestIamPermissionsRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); + break; + case METHODID_SEND_COMMAND_TO_DEVICE: + serviceImpl.sendCommandToDevice( + (com.google.cloud.iot.v1.SendCommandToDeviceRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); + break; + case METHODID_BIND_DEVICE_TO_GATEWAY: + serviceImpl.bindDeviceToGateway( + (com.google.cloud.iot.v1.BindDeviceToGatewayRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); + break; + case METHODID_UNBIND_DEVICE_FROM_GATEWAY: + serviceImpl.unbindDeviceFromGateway( + (com.google.cloud.iot.v1.UnbindDeviceFromGatewayRequest) 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 DeviceManagerBaseDescriptorSupplier + implements io.grpc.protobuf.ProtoFileDescriptorSupplier, + io.grpc.protobuf.ProtoServiceDescriptorSupplier { + DeviceManagerBaseDescriptorSupplier() {} + + @java.lang.Override + public com.google.protobuf.Descriptors.FileDescriptor getFileDescriptor() { + return com.google.cloud.iot.v1.DeviceManagerProto.getDescriptor(); + } + + @java.lang.Override + public com.google.protobuf.Descriptors.ServiceDescriptor getServiceDescriptor() { + return getFileDescriptor().findServiceByName("DeviceManager"); + } + } + + private static final class DeviceManagerFileDescriptorSupplier + extends DeviceManagerBaseDescriptorSupplier { + DeviceManagerFileDescriptorSupplier() {} + } + + private static final class DeviceManagerMethodDescriptorSupplier + extends DeviceManagerBaseDescriptorSupplier + implements io.grpc.protobuf.ProtoMethodDescriptorSupplier { + private final String methodName; + + DeviceManagerMethodDescriptorSupplier(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 (DeviceManagerGrpc.class) { + result = serviceDescriptor; + if (result == null) { + serviceDescriptor = + result = + io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) + .setSchemaDescriptor(new DeviceManagerFileDescriptorSupplier()) + .addMethod(getCreateDeviceRegistryMethod()) + .addMethod(getGetDeviceRegistryMethod()) + .addMethod(getUpdateDeviceRegistryMethod()) + .addMethod(getDeleteDeviceRegistryMethod()) + .addMethod(getListDeviceRegistriesMethod()) + .addMethod(getCreateDeviceMethod()) + .addMethod(getGetDeviceMethod()) + .addMethod(getUpdateDeviceMethod()) + .addMethod(getDeleteDeviceMethod()) + .addMethod(getListDevicesMethod()) + .addMethod(getModifyCloudToDeviceConfigMethod()) + .addMethod(getListDeviceConfigVersionsMethod()) + .addMethod(getListDeviceStatesMethod()) + .addMethod(getSetIamPolicyMethod()) + .addMethod(getGetIamPolicyMethod()) + .addMethod(getTestIamPermissionsMethod()) + .addMethod(getSendCommandToDeviceMethod()) + .addMethod(getBindDeviceToGatewayMethod()) + .addMethod(getUnbindDeviceFromGatewayMethod()) + .build(); + } + } + } + return result; + } +} diff --git a/owl-bot-staging/v1/grpc-google-cloud-iot-v1/src/main/java/com/google/cloud/iot/v1/DeviceManagerGrpc.java b/owl-bot-staging/v1/grpc-google-cloud-iot-v1/src/main/java/com/google/cloud/iot/v1/DeviceManagerGrpc.java deleted file mode 100644 index e6984de9..00000000 --- a/owl-bot-staging/v1/grpc-google-cloud-iot-v1/src/main/java/com/google/cloud/iot/v1/DeviceManagerGrpc.java +++ /dev/null @@ -1,1935 +0,0 @@ -package com.google.cloud.iot.v1; - -import static io.grpc.MethodDescriptor.generateFullMethodName; - -/** - *
- * Internet of Things (IoT) service. Securely connect and manage IoT devices.
- * 
- */ -@javax.annotation.Generated( - value = "by gRPC proto compiler", - comments = "Source: google/cloud/iot/v1/device_manager.proto") -@io.grpc.stub.annotations.GrpcGenerated -public final class DeviceManagerGrpc { - - private DeviceManagerGrpc() {} - - public static final String SERVICE_NAME = "google.cloud.iot.v1.DeviceManager"; - - // Static method descriptors that strictly reflect the proto. - private static volatile io.grpc.MethodDescriptor getCreateDeviceRegistryMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "CreateDeviceRegistry", - requestType = com.google.cloud.iot.v1.CreateDeviceRegistryRequest.class, - responseType = com.google.cloud.iot.v1.DeviceRegistry.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getCreateDeviceRegistryMethod() { - io.grpc.MethodDescriptor getCreateDeviceRegistryMethod; - if ((getCreateDeviceRegistryMethod = DeviceManagerGrpc.getCreateDeviceRegistryMethod) == null) { - synchronized (DeviceManagerGrpc.class) { - if ((getCreateDeviceRegistryMethod = DeviceManagerGrpc.getCreateDeviceRegistryMethod) == null) { - DeviceManagerGrpc.getCreateDeviceRegistryMethod = getCreateDeviceRegistryMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CreateDeviceRegistry")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.iot.v1.CreateDeviceRegistryRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.iot.v1.DeviceRegistry.getDefaultInstance())) - .setSchemaDescriptor(new DeviceManagerMethodDescriptorSupplier("CreateDeviceRegistry")) - .build(); - } - } - } - return getCreateDeviceRegistryMethod; - } - - private static volatile io.grpc.MethodDescriptor getGetDeviceRegistryMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "GetDeviceRegistry", - requestType = com.google.cloud.iot.v1.GetDeviceRegistryRequest.class, - responseType = com.google.cloud.iot.v1.DeviceRegistry.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getGetDeviceRegistryMethod() { - io.grpc.MethodDescriptor getGetDeviceRegistryMethod; - if ((getGetDeviceRegistryMethod = DeviceManagerGrpc.getGetDeviceRegistryMethod) == null) { - synchronized (DeviceManagerGrpc.class) { - if ((getGetDeviceRegistryMethod = DeviceManagerGrpc.getGetDeviceRegistryMethod) == null) { - DeviceManagerGrpc.getGetDeviceRegistryMethod = getGetDeviceRegistryMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetDeviceRegistry")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.iot.v1.GetDeviceRegistryRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.iot.v1.DeviceRegistry.getDefaultInstance())) - .setSchemaDescriptor(new DeviceManagerMethodDescriptorSupplier("GetDeviceRegistry")) - .build(); - } - } - } - return getGetDeviceRegistryMethod; - } - - private static volatile io.grpc.MethodDescriptor getUpdateDeviceRegistryMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "UpdateDeviceRegistry", - requestType = com.google.cloud.iot.v1.UpdateDeviceRegistryRequest.class, - responseType = com.google.cloud.iot.v1.DeviceRegistry.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getUpdateDeviceRegistryMethod() { - io.grpc.MethodDescriptor getUpdateDeviceRegistryMethod; - if ((getUpdateDeviceRegistryMethod = DeviceManagerGrpc.getUpdateDeviceRegistryMethod) == null) { - synchronized (DeviceManagerGrpc.class) { - if ((getUpdateDeviceRegistryMethod = DeviceManagerGrpc.getUpdateDeviceRegistryMethod) == null) { - DeviceManagerGrpc.getUpdateDeviceRegistryMethod = getUpdateDeviceRegistryMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "UpdateDeviceRegistry")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.iot.v1.UpdateDeviceRegistryRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.iot.v1.DeviceRegistry.getDefaultInstance())) - .setSchemaDescriptor(new DeviceManagerMethodDescriptorSupplier("UpdateDeviceRegistry")) - .build(); - } - } - } - return getUpdateDeviceRegistryMethod; - } - - private static volatile io.grpc.MethodDescriptor getDeleteDeviceRegistryMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "DeleteDeviceRegistry", - requestType = com.google.cloud.iot.v1.DeleteDeviceRegistryRequest.class, - responseType = com.google.protobuf.Empty.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getDeleteDeviceRegistryMethod() { - io.grpc.MethodDescriptor getDeleteDeviceRegistryMethod; - if ((getDeleteDeviceRegistryMethod = DeviceManagerGrpc.getDeleteDeviceRegistryMethod) == null) { - synchronized (DeviceManagerGrpc.class) { - if ((getDeleteDeviceRegistryMethod = DeviceManagerGrpc.getDeleteDeviceRegistryMethod) == null) { - DeviceManagerGrpc.getDeleteDeviceRegistryMethod = getDeleteDeviceRegistryMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "DeleteDeviceRegistry")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.iot.v1.DeleteDeviceRegistryRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.protobuf.Empty.getDefaultInstance())) - .setSchemaDescriptor(new DeviceManagerMethodDescriptorSupplier("DeleteDeviceRegistry")) - .build(); - } - } - } - return getDeleteDeviceRegistryMethod; - } - - private static volatile io.grpc.MethodDescriptor getListDeviceRegistriesMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "ListDeviceRegistries", - requestType = com.google.cloud.iot.v1.ListDeviceRegistriesRequest.class, - responseType = com.google.cloud.iot.v1.ListDeviceRegistriesResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getListDeviceRegistriesMethod() { - io.grpc.MethodDescriptor getListDeviceRegistriesMethod; - if ((getListDeviceRegistriesMethod = DeviceManagerGrpc.getListDeviceRegistriesMethod) == null) { - synchronized (DeviceManagerGrpc.class) { - if ((getListDeviceRegistriesMethod = DeviceManagerGrpc.getListDeviceRegistriesMethod) == null) { - DeviceManagerGrpc.getListDeviceRegistriesMethod = getListDeviceRegistriesMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListDeviceRegistries")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.iot.v1.ListDeviceRegistriesRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.iot.v1.ListDeviceRegistriesResponse.getDefaultInstance())) - .setSchemaDescriptor(new DeviceManagerMethodDescriptorSupplier("ListDeviceRegistries")) - .build(); - } - } - } - return getListDeviceRegistriesMethod; - } - - private static volatile io.grpc.MethodDescriptor getCreateDeviceMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "CreateDevice", - requestType = com.google.cloud.iot.v1.CreateDeviceRequest.class, - responseType = com.google.cloud.iot.v1.Device.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getCreateDeviceMethod() { - io.grpc.MethodDescriptor getCreateDeviceMethod; - if ((getCreateDeviceMethod = DeviceManagerGrpc.getCreateDeviceMethod) == null) { - synchronized (DeviceManagerGrpc.class) { - if ((getCreateDeviceMethod = DeviceManagerGrpc.getCreateDeviceMethod) == null) { - DeviceManagerGrpc.getCreateDeviceMethod = getCreateDeviceMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CreateDevice")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.iot.v1.CreateDeviceRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.iot.v1.Device.getDefaultInstance())) - .setSchemaDescriptor(new DeviceManagerMethodDescriptorSupplier("CreateDevice")) - .build(); - } - } - } - return getCreateDeviceMethod; - } - - private static volatile io.grpc.MethodDescriptor getGetDeviceMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "GetDevice", - requestType = com.google.cloud.iot.v1.GetDeviceRequest.class, - responseType = com.google.cloud.iot.v1.Device.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getGetDeviceMethod() { - io.grpc.MethodDescriptor getGetDeviceMethod; - if ((getGetDeviceMethod = DeviceManagerGrpc.getGetDeviceMethod) == null) { - synchronized (DeviceManagerGrpc.class) { - if ((getGetDeviceMethod = DeviceManagerGrpc.getGetDeviceMethod) == null) { - DeviceManagerGrpc.getGetDeviceMethod = getGetDeviceMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetDevice")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.iot.v1.GetDeviceRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.iot.v1.Device.getDefaultInstance())) - .setSchemaDescriptor(new DeviceManagerMethodDescriptorSupplier("GetDevice")) - .build(); - } - } - } - return getGetDeviceMethod; - } - - private static volatile io.grpc.MethodDescriptor getUpdateDeviceMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "UpdateDevice", - requestType = com.google.cloud.iot.v1.UpdateDeviceRequest.class, - responseType = com.google.cloud.iot.v1.Device.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getUpdateDeviceMethod() { - io.grpc.MethodDescriptor getUpdateDeviceMethod; - if ((getUpdateDeviceMethod = DeviceManagerGrpc.getUpdateDeviceMethod) == null) { - synchronized (DeviceManagerGrpc.class) { - if ((getUpdateDeviceMethod = DeviceManagerGrpc.getUpdateDeviceMethod) == null) { - DeviceManagerGrpc.getUpdateDeviceMethod = getUpdateDeviceMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "UpdateDevice")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.iot.v1.UpdateDeviceRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.iot.v1.Device.getDefaultInstance())) - .setSchemaDescriptor(new DeviceManagerMethodDescriptorSupplier("UpdateDevice")) - .build(); - } - } - } - return getUpdateDeviceMethod; - } - - private static volatile io.grpc.MethodDescriptor getDeleteDeviceMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "DeleteDevice", - requestType = com.google.cloud.iot.v1.DeleteDeviceRequest.class, - responseType = com.google.protobuf.Empty.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getDeleteDeviceMethod() { - io.grpc.MethodDescriptor getDeleteDeviceMethod; - if ((getDeleteDeviceMethod = DeviceManagerGrpc.getDeleteDeviceMethod) == null) { - synchronized (DeviceManagerGrpc.class) { - if ((getDeleteDeviceMethod = DeviceManagerGrpc.getDeleteDeviceMethod) == null) { - DeviceManagerGrpc.getDeleteDeviceMethod = getDeleteDeviceMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "DeleteDevice")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.iot.v1.DeleteDeviceRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.protobuf.Empty.getDefaultInstance())) - .setSchemaDescriptor(new DeviceManagerMethodDescriptorSupplier("DeleteDevice")) - .build(); - } - } - } - return getDeleteDeviceMethod; - } - - private static volatile io.grpc.MethodDescriptor getListDevicesMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "ListDevices", - requestType = com.google.cloud.iot.v1.ListDevicesRequest.class, - responseType = com.google.cloud.iot.v1.ListDevicesResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getListDevicesMethod() { - io.grpc.MethodDescriptor getListDevicesMethod; - if ((getListDevicesMethod = DeviceManagerGrpc.getListDevicesMethod) == null) { - synchronized (DeviceManagerGrpc.class) { - if ((getListDevicesMethod = DeviceManagerGrpc.getListDevicesMethod) == null) { - DeviceManagerGrpc.getListDevicesMethod = getListDevicesMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListDevices")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.iot.v1.ListDevicesRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.iot.v1.ListDevicesResponse.getDefaultInstance())) - .setSchemaDescriptor(new DeviceManagerMethodDescriptorSupplier("ListDevices")) - .build(); - } - } - } - return getListDevicesMethod; - } - - private static volatile io.grpc.MethodDescriptor getModifyCloudToDeviceConfigMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "ModifyCloudToDeviceConfig", - requestType = com.google.cloud.iot.v1.ModifyCloudToDeviceConfigRequest.class, - responseType = com.google.cloud.iot.v1.DeviceConfig.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getModifyCloudToDeviceConfigMethod() { - io.grpc.MethodDescriptor getModifyCloudToDeviceConfigMethod; - if ((getModifyCloudToDeviceConfigMethod = DeviceManagerGrpc.getModifyCloudToDeviceConfigMethod) == null) { - synchronized (DeviceManagerGrpc.class) { - if ((getModifyCloudToDeviceConfigMethod = DeviceManagerGrpc.getModifyCloudToDeviceConfigMethod) == null) { - DeviceManagerGrpc.getModifyCloudToDeviceConfigMethod = getModifyCloudToDeviceConfigMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ModifyCloudToDeviceConfig")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.iot.v1.ModifyCloudToDeviceConfigRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.iot.v1.DeviceConfig.getDefaultInstance())) - .setSchemaDescriptor(new DeviceManagerMethodDescriptorSupplier("ModifyCloudToDeviceConfig")) - .build(); - } - } - } - return getModifyCloudToDeviceConfigMethod; - } - - private static volatile io.grpc.MethodDescriptor getListDeviceConfigVersionsMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "ListDeviceConfigVersions", - requestType = com.google.cloud.iot.v1.ListDeviceConfigVersionsRequest.class, - responseType = com.google.cloud.iot.v1.ListDeviceConfigVersionsResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getListDeviceConfigVersionsMethod() { - io.grpc.MethodDescriptor getListDeviceConfigVersionsMethod; - if ((getListDeviceConfigVersionsMethod = DeviceManagerGrpc.getListDeviceConfigVersionsMethod) == null) { - synchronized (DeviceManagerGrpc.class) { - if ((getListDeviceConfigVersionsMethod = DeviceManagerGrpc.getListDeviceConfigVersionsMethod) == null) { - DeviceManagerGrpc.getListDeviceConfigVersionsMethod = getListDeviceConfigVersionsMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListDeviceConfigVersions")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.iot.v1.ListDeviceConfigVersionsRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.iot.v1.ListDeviceConfigVersionsResponse.getDefaultInstance())) - .setSchemaDescriptor(new DeviceManagerMethodDescriptorSupplier("ListDeviceConfigVersions")) - .build(); - } - } - } - return getListDeviceConfigVersionsMethod; - } - - private static volatile io.grpc.MethodDescriptor getListDeviceStatesMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "ListDeviceStates", - requestType = com.google.cloud.iot.v1.ListDeviceStatesRequest.class, - responseType = com.google.cloud.iot.v1.ListDeviceStatesResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getListDeviceStatesMethod() { - io.grpc.MethodDescriptor getListDeviceStatesMethod; - if ((getListDeviceStatesMethod = DeviceManagerGrpc.getListDeviceStatesMethod) == null) { - synchronized (DeviceManagerGrpc.class) { - if ((getListDeviceStatesMethod = DeviceManagerGrpc.getListDeviceStatesMethod) == null) { - DeviceManagerGrpc.getListDeviceStatesMethod = getListDeviceStatesMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListDeviceStates")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.iot.v1.ListDeviceStatesRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.iot.v1.ListDeviceStatesResponse.getDefaultInstance())) - .setSchemaDescriptor(new DeviceManagerMethodDescriptorSupplier("ListDeviceStates")) - .build(); - } - } - } - return getListDeviceStatesMethod; - } - - private static volatile io.grpc.MethodDescriptor getSetIamPolicyMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "SetIamPolicy", - requestType = com.google.iam.v1.SetIamPolicyRequest.class, - responseType = com.google.iam.v1.Policy.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getSetIamPolicyMethod() { - io.grpc.MethodDescriptor getSetIamPolicyMethod; - if ((getSetIamPolicyMethod = DeviceManagerGrpc.getSetIamPolicyMethod) == null) { - synchronized (DeviceManagerGrpc.class) { - if ((getSetIamPolicyMethod = DeviceManagerGrpc.getSetIamPolicyMethod) == null) { - DeviceManagerGrpc.getSetIamPolicyMethod = getSetIamPolicyMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "SetIamPolicy")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.iam.v1.SetIamPolicyRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.iam.v1.Policy.getDefaultInstance())) - .setSchemaDescriptor(new DeviceManagerMethodDescriptorSupplier("SetIamPolicy")) - .build(); - } - } - } - return getSetIamPolicyMethod; - } - - private static volatile io.grpc.MethodDescriptor getGetIamPolicyMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "GetIamPolicy", - requestType = com.google.iam.v1.GetIamPolicyRequest.class, - responseType = com.google.iam.v1.Policy.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getGetIamPolicyMethod() { - io.grpc.MethodDescriptor getGetIamPolicyMethod; - if ((getGetIamPolicyMethod = DeviceManagerGrpc.getGetIamPolicyMethod) == null) { - synchronized (DeviceManagerGrpc.class) { - if ((getGetIamPolicyMethod = DeviceManagerGrpc.getGetIamPolicyMethod) == null) { - DeviceManagerGrpc.getGetIamPolicyMethod = getGetIamPolicyMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetIamPolicy")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.iam.v1.GetIamPolicyRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.iam.v1.Policy.getDefaultInstance())) - .setSchemaDescriptor(new DeviceManagerMethodDescriptorSupplier("GetIamPolicy")) - .build(); - } - } - } - return getGetIamPolicyMethod; - } - - private static volatile io.grpc.MethodDescriptor getTestIamPermissionsMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "TestIamPermissions", - requestType = com.google.iam.v1.TestIamPermissionsRequest.class, - responseType = com.google.iam.v1.TestIamPermissionsResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getTestIamPermissionsMethod() { - io.grpc.MethodDescriptor getTestIamPermissionsMethod; - if ((getTestIamPermissionsMethod = DeviceManagerGrpc.getTestIamPermissionsMethod) == null) { - synchronized (DeviceManagerGrpc.class) { - if ((getTestIamPermissionsMethod = DeviceManagerGrpc.getTestIamPermissionsMethod) == null) { - DeviceManagerGrpc.getTestIamPermissionsMethod = getTestIamPermissionsMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "TestIamPermissions")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.iam.v1.TestIamPermissionsRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.iam.v1.TestIamPermissionsResponse.getDefaultInstance())) - .setSchemaDescriptor(new DeviceManagerMethodDescriptorSupplier("TestIamPermissions")) - .build(); - } - } - } - return getTestIamPermissionsMethod; - } - - private static volatile io.grpc.MethodDescriptor getSendCommandToDeviceMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "SendCommandToDevice", - requestType = com.google.cloud.iot.v1.SendCommandToDeviceRequest.class, - responseType = com.google.cloud.iot.v1.SendCommandToDeviceResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getSendCommandToDeviceMethod() { - io.grpc.MethodDescriptor getSendCommandToDeviceMethod; - if ((getSendCommandToDeviceMethod = DeviceManagerGrpc.getSendCommandToDeviceMethod) == null) { - synchronized (DeviceManagerGrpc.class) { - if ((getSendCommandToDeviceMethod = DeviceManagerGrpc.getSendCommandToDeviceMethod) == null) { - DeviceManagerGrpc.getSendCommandToDeviceMethod = getSendCommandToDeviceMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "SendCommandToDevice")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.iot.v1.SendCommandToDeviceRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.iot.v1.SendCommandToDeviceResponse.getDefaultInstance())) - .setSchemaDescriptor(new DeviceManagerMethodDescriptorSupplier("SendCommandToDevice")) - .build(); - } - } - } - return getSendCommandToDeviceMethod; - } - - private static volatile io.grpc.MethodDescriptor getBindDeviceToGatewayMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "BindDeviceToGateway", - requestType = com.google.cloud.iot.v1.BindDeviceToGatewayRequest.class, - responseType = com.google.cloud.iot.v1.BindDeviceToGatewayResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getBindDeviceToGatewayMethod() { - io.grpc.MethodDescriptor getBindDeviceToGatewayMethod; - if ((getBindDeviceToGatewayMethod = DeviceManagerGrpc.getBindDeviceToGatewayMethod) == null) { - synchronized (DeviceManagerGrpc.class) { - if ((getBindDeviceToGatewayMethod = DeviceManagerGrpc.getBindDeviceToGatewayMethod) == null) { - DeviceManagerGrpc.getBindDeviceToGatewayMethod = getBindDeviceToGatewayMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "BindDeviceToGateway")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.iot.v1.BindDeviceToGatewayRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.iot.v1.BindDeviceToGatewayResponse.getDefaultInstance())) - .setSchemaDescriptor(new DeviceManagerMethodDescriptorSupplier("BindDeviceToGateway")) - .build(); - } - } - } - return getBindDeviceToGatewayMethod; - } - - private static volatile io.grpc.MethodDescriptor getUnbindDeviceFromGatewayMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "UnbindDeviceFromGateway", - requestType = com.google.cloud.iot.v1.UnbindDeviceFromGatewayRequest.class, - responseType = com.google.cloud.iot.v1.UnbindDeviceFromGatewayResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getUnbindDeviceFromGatewayMethod() { - io.grpc.MethodDescriptor getUnbindDeviceFromGatewayMethod; - if ((getUnbindDeviceFromGatewayMethod = DeviceManagerGrpc.getUnbindDeviceFromGatewayMethod) == null) { - synchronized (DeviceManagerGrpc.class) { - if ((getUnbindDeviceFromGatewayMethod = DeviceManagerGrpc.getUnbindDeviceFromGatewayMethod) == null) { - DeviceManagerGrpc.getUnbindDeviceFromGatewayMethod = getUnbindDeviceFromGatewayMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "UnbindDeviceFromGateway")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.iot.v1.UnbindDeviceFromGatewayRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.iot.v1.UnbindDeviceFromGatewayResponse.getDefaultInstance())) - .setSchemaDescriptor(new DeviceManagerMethodDescriptorSupplier("UnbindDeviceFromGateway")) - .build(); - } - } - } - return getUnbindDeviceFromGatewayMethod; - } - - /** - * Creates a new async stub that supports all call types for the service - */ - public static DeviceManagerStub newStub(io.grpc.Channel channel) { - io.grpc.stub.AbstractStub.StubFactory factory = - new io.grpc.stub.AbstractStub.StubFactory() { - @java.lang.Override - public DeviceManagerStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new DeviceManagerStub(channel, callOptions); - } - }; - return DeviceManagerStub.newStub(factory, channel); - } - - /** - * Creates a new blocking-style stub that supports unary and streaming output calls on the service - */ - public static DeviceManagerBlockingStub newBlockingStub( - io.grpc.Channel channel) { - io.grpc.stub.AbstractStub.StubFactory factory = - new io.grpc.stub.AbstractStub.StubFactory() { - @java.lang.Override - public DeviceManagerBlockingStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new DeviceManagerBlockingStub(channel, callOptions); - } - }; - return DeviceManagerBlockingStub.newStub(factory, channel); - } - - /** - * Creates a new ListenableFuture-style stub that supports unary calls on the service - */ - public static DeviceManagerFutureStub newFutureStub( - io.grpc.Channel channel) { - io.grpc.stub.AbstractStub.StubFactory factory = - new io.grpc.stub.AbstractStub.StubFactory() { - @java.lang.Override - public DeviceManagerFutureStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new DeviceManagerFutureStub(channel, callOptions); - } - }; - return DeviceManagerFutureStub.newStub(factory, channel); - } - - /** - *
-   * Internet of Things (IoT) service. Securely connect and manage IoT devices.
-   * 
- */ - public static abstract class DeviceManagerImplBase implements io.grpc.BindableService { - - /** - *
-     * Creates a device registry that contains devices.
-     * 
- */ - public void createDeviceRegistry(com.google.cloud.iot.v1.CreateDeviceRegistryRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getCreateDeviceRegistryMethod(), responseObserver); - } - - /** - *
-     * Gets a device registry configuration.
-     * 
- */ - public void getDeviceRegistry(com.google.cloud.iot.v1.GetDeviceRegistryRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetDeviceRegistryMethod(), responseObserver); - } - - /** - *
-     * Updates a device registry configuration.
-     * 
- */ - public void updateDeviceRegistry(com.google.cloud.iot.v1.UpdateDeviceRegistryRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getUpdateDeviceRegistryMethod(), responseObserver); - } - - /** - *
-     * Deletes a device registry configuration.
-     * 
- */ - public void deleteDeviceRegistry(com.google.cloud.iot.v1.DeleteDeviceRegistryRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getDeleteDeviceRegistryMethod(), responseObserver); - } - - /** - *
-     * Lists device registries.
-     * 
- */ - public void listDeviceRegistries(com.google.cloud.iot.v1.ListDeviceRegistriesRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getListDeviceRegistriesMethod(), responseObserver); - } - - /** - *
-     * Creates a device in a device registry.
-     * 
- */ - public void createDevice(com.google.cloud.iot.v1.CreateDeviceRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getCreateDeviceMethod(), responseObserver); - } - - /** - *
-     * Gets details about a device.
-     * 
- */ - public void getDevice(com.google.cloud.iot.v1.GetDeviceRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetDeviceMethod(), responseObserver); - } - - /** - *
-     * Updates a device.
-     * 
- */ - public void updateDevice(com.google.cloud.iot.v1.UpdateDeviceRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getUpdateDeviceMethod(), responseObserver); - } - - /** - *
-     * Deletes a device.
-     * 
- */ - public void deleteDevice(com.google.cloud.iot.v1.DeleteDeviceRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getDeleteDeviceMethod(), responseObserver); - } - - /** - *
-     * List devices in a device registry.
-     * 
- */ - public void listDevices(com.google.cloud.iot.v1.ListDevicesRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getListDevicesMethod(), responseObserver); - } - - /** - *
-     * Modifies the configuration for the device, which is eventually sent from
-     * the Cloud IoT Core servers. Returns the modified configuration version and
-     * its metadata.
-     * 
- */ - public void modifyCloudToDeviceConfig(com.google.cloud.iot.v1.ModifyCloudToDeviceConfigRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getModifyCloudToDeviceConfigMethod(), responseObserver); - } - - /** - *
-     * Lists the last few versions of the device configuration in descending
-     * order (i.e.: newest first).
-     * 
- */ - public void listDeviceConfigVersions(com.google.cloud.iot.v1.ListDeviceConfigVersionsRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getListDeviceConfigVersionsMethod(), responseObserver); - } - - /** - *
-     * Lists the last few versions of the device state in descending order (i.e.:
-     * newest first).
-     * 
- */ - public void listDeviceStates(com.google.cloud.iot.v1.ListDeviceStatesRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getListDeviceStatesMethod(), responseObserver); - } - - /** - *
-     * Sets the access control policy on the specified resource. Replaces any
-     * existing policy.
-     * 
- */ - public void setIamPolicy(com.google.iam.v1.SetIamPolicyRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getSetIamPolicyMethod(), responseObserver); - } - - /** - *
-     * Gets the access control policy for a resource.
-     * Returns an empty policy if the resource exists and does not have a policy
-     * set.
-     * 
- */ - public void getIamPolicy(com.google.iam.v1.GetIamPolicyRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetIamPolicyMethod(), responseObserver); - } - - /** - *
-     * Returns permissions that a caller has on the specified resource.
-     * If the resource does not exist, this will return an empty set of
-     * permissions, not a NOT_FOUND error.
-     * 
- */ - public void testIamPermissions(com.google.iam.v1.TestIamPermissionsRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getTestIamPermissionsMethod(), responseObserver); - } - - /** - *
-     * Sends a command to the specified device. In order for a device to be able
-     * to receive commands, it must:
-     * 1) be connected to Cloud IoT Core using the MQTT protocol, and
-     * 2) be subscribed to the group of MQTT topics specified by
-     *    /devices/{device-id}/commands/#. This subscription will receive commands
-     *    at the top-level topic /devices/{device-id}/commands as well as commands
-     *    for subfolders, like /devices/{device-id}/commands/subfolder.
-     *    Note that subscribing to specific subfolders is not supported.
-     * If the command could not be delivered to the device, this method will
-     * return an error; in particular, if the device is not subscribed, this
-     * method will return FAILED_PRECONDITION. Otherwise, this method will
-     * return OK. If the subscription is QoS 1, at least once delivery will be
-     * guaranteed; for QoS 0, no acknowledgment will be expected from the device.
-     * 
- */ - public void sendCommandToDevice(com.google.cloud.iot.v1.SendCommandToDeviceRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getSendCommandToDeviceMethod(), responseObserver); - } - - /** - *
-     * Associates the device with the gateway.
-     * 
- */ - public void bindDeviceToGateway(com.google.cloud.iot.v1.BindDeviceToGatewayRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getBindDeviceToGatewayMethod(), responseObserver); - } - - /** - *
-     * Deletes the association between the device and the gateway.
-     * 
- */ - public void unbindDeviceFromGateway(com.google.cloud.iot.v1.UnbindDeviceFromGatewayRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getUnbindDeviceFromGatewayMethod(), responseObserver); - } - - @java.lang.Override public final io.grpc.ServerServiceDefinition bindService() { - return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor()) - .addMethod( - getCreateDeviceRegistryMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.iot.v1.CreateDeviceRegistryRequest, - com.google.cloud.iot.v1.DeviceRegistry>( - this, METHODID_CREATE_DEVICE_REGISTRY))) - .addMethod( - getGetDeviceRegistryMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.iot.v1.GetDeviceRegistryRequest, - com.google.cloud.iot.v1.DeviceRegistry>( - this, METHODID_GET_DEVICE_REGISTRY))) - .addMethod( - getUpdateDeviceRegistryMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.iot.v1.UpdateDeviceRegistryRequest, - com.google.cloud.iot.v1.DeviceRegistry>( - this, METHODID_UPDATE_DEVICE_REGISTRY))) - .addMethod( - getDeleteDeviceRegistryMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.iot.v1.DeleteDeviceRegistryRequest, - com.google.protobuf.Empty>( - this, METHODID_DELETE_DEVICE_REGISTRY))) - .addMethod( - getListDeviceRegistriesMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.iot.v1.ListDeviceRegistriesRequest, - com.google.cloud.iot.v1.ListDeviceRegistriesResponse>( - this, METHODID_LIST_DEVICE_REGISTRIES))) - .addMethod( - getCreateDeviceMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.iot.v1.CreateDeviceRequest, - com.google.cloud.iot.v1.Device>( - this, METHODID_CREATE_DEVICE))) - .addMethod( - getGetDeviceMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.iot.v1.GetDeviceRequest, - com.google.cloud.iot.v1.Device>( - this, METHODID_GET_DEVICE))) - .addMethod( - getUpdateDeviceMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.iot.v1.UpdateDeviceRequest, - com.google.cloud.iot.v1.Device>( - this, METHODID_UPDATE_DEVICE))) - .addMethod( - getDeleteDeviceMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.iot.v1.DeleteDeviceRequest, - com.google.protobuf.Empty>( - this, METHODID_DELETE_DEVICE))) - .addMethod( - getListDevicesMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.iot.v1.ListDevicesRequest, - com.google.cloud.iot.v1.ListDevicesResponse>( - this, METHODID_LIST_DEVICES))) - .addMethod( - getModifyCloudToDeviceConfigMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.iot.v1.ModifyCloudToDeviceConfigRequest, - com.google.cloud.iot.v1.DeviceConfig>( - this, METHODID_MODIFY_CLOUD_TO_DEVICE_CONFIG))) - .addMethod( - getListDeviceConfigVersionsMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.iot.v1.ListDeviceConfigVersionsRequest, - com.google.cloud.iot.v1.ListDeviceConfigVersionsResponse>( - this, METHODID_LIST_DEVICE_CONFIG_VERSIONS))) - .addMethod( - getListDeviceStatesMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.iot.v1.ListDeviceStatesRequest, - com.google.cloud.iot.v1.ListDeviceStatesResponse>( - this, METHODID_LIST_DEVICE_STATES))) - .addMethod( - getSetIamPolicyMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.iam.v1.SetIamPolicyRequest, - com.google.iam.v1.Policy>( - this, METHODID_SET_IAM_POLICY))) - .addMethod( - getGetIamPolicyMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.iam.v1.GetIamPolicyRequest, - com.google.iam.v1.Policy>( - this, METHODID_GET_IAM_POLICY))) - .addMethod( - getTestIamPermissionsMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.iam.v1.TestIamPermissionsRequest, - com.google.iam.v1.TestIamPermissionsResponse>( - this, METHODID_TEST_IAM_PERMISSIONS))) - .addMethod( - getSendCommandToDeviceMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.iot.v1.SendCommandToDeviceRequest, - com.google.cloud.iot.v1.SendCommandToDeviceResponse>( - this, METHODID_SEND_COMMAND_TO_DEVICE))) - .addMethod( - getBindDeviceToGatewayMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.iot.v1.BindDeviceToGatewayRequest, - com.google.cloud.iot.v1.BindDeviceToGatewayResponse>( - this, METHODID_BIND_DEVICE_TO_GATEWAY))) - .addMethod( - getUnbindDeviceFromGatewayMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.iot.v1.UnbindDeviceFromGatewayRequest, - com.google.cloud.iot.v1.UnbindDeviceFromGatewayResponse>( - this, METHODID_UNBIND_DEVICE_FROM_GATEWAY))) - .build(); - } - } - - /** - *
-   * Internet of Things (IoT) service. Securely connect and manage IoT devices.
-   * 
- */ - public static final class DeviceManagerStub extends io.grpc.stub.AbstractAsyncStub { - private DeviceManagerStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - super(channel, callOptions); - } - - @java.lang.Override - protected DeviceManagerStub build( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new DeviceManagerStub(channel, callOptions); - } - - /** - *
-     * Creates a device registry that contains devices.
-     * 
- */ - public void createDeviceRegistry(com.google.cloud.iot.v1.CreateDeviceRegistryRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getCreateDeviceRegistryMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Gets a device registry configuration.
-     * 
- */ - public void getDeviceRegistry(com.google.cloud.iot.v1.GetDeviceRegistryRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getGetDeviceRegistryMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Updates a device registry configuration.
-     * 
- */ - public void updateDeviceRegistry(com.google.cloud.iot.v1.UpdateDeviceRegistryRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getUpdateDeviceRegistryMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Deletes a device registry configuration.
-     * 
- */ - public void deleteDeviceRegistry(com.google.cloud.iot.v1.DeleteDeviceRegistryRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getDeleteDeviceRegistryMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Lists device registries.
-     * 
- */ - public void listDeviceRegistries(com.google.cloud.iot.v1.ListDeviceRegistriesRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getListDeviceRegistriesMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Creates a device in a device registry.
-     * 
- */ - public void createDevice(com.google.cloud.iot.v1.CreateDeviceRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getCreateDeviceMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Gets details about a device.
-     * 
- */ - public void getDevice(com.google.cloud.iot.v1.GetDeviceRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getGetDeviceMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Updates a device.
-     * 
- */ - public void updateDevice(com.google.cloud.iot.v1.UpdateDeviceRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getUpdateDeviceMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Deletes a device.
-     * 
- */ - public void deleteDevice(com.google.cloud.iot.v1.DeleteDeviceRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getDeleteDeviceMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * List devices in a device registry.
-     * 
- */ - public void listDevices(com.google.cloud.iot.v1.ListDevicesRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getListDevicesMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Modifies the configuration for the device, which is eventually sent from
-     * the Cloud IoT Core servers. Returns the modified configuration version and
-     * its metadata.
-     * 
- */ - public void modifyCloudToDeviceConfig(com.google.cloud.iot.v1.ModifyCloudToDeviceConfigRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getModifyCloudToDeviceConfigMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Lists the last few versions of the device configuration in descending
-     * order (i.e.: newest first).
-     * 
- */ - public void listDeviceConfigVersions(com.google.cloud.iot.v1.ListDeviceConfigVersionsRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getListDeviceConfigVersionsMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Lists the last few versions of the device state in descending order (i.e.:
-     * newest first).
-     * 
- */ - public void listDeviceStates(com.google.cloud.iot.v1.ListDeviceStatesRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getListDeviceStatesMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Sets the access control policy on the specified resource. Replaces any
-     * existing policy.
-     * 
- */ - public void setIamPolicy(com.google.iam.v1.SetIamPolicyRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getSetIamPolicyMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Gets the access control policy for a resource.
-     * Returns an empty policy if the resource exists and does not have a policy
-     * set.
-     * 
- */ - public void getIamPolicy(com.google.iam.v1.GetIamPolicyRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getGetIamPolicyMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Returns permissions that a caller has on the specified resource.
-     * If the resource does not exist, this will return an empty set of
-     * permissions, not a NOT_FOUND error.
-     * 
- */ - public void testIamPermissions(com.google.iam.v1.TestIamPermissionsRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getTestIamPermissionsMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Sends a command to the specified device. In order for a device to be able
-     * to receive commands, it must:
-     * 1) be connected to Cloud IoT Core using the MQTT protocol, and
-     * 2) be subscribed to the group of MQTT topics specified by
-     *    /devices/{device-id}/commands/#. This subscription will receive commands
-     *    at the top-level topic /devices/{device-id}/commands as well as commands
-     *    for subfolders, like /devices/{device-id}/commands/subfolder.
-     *    Note that subscribing to specific subfolders is not supported.
-     * If the command could not be delivered to the device, this method will
-     * return an error; in particular, if the device is not subscribed, this
-     * method will return FAILED_PRECONDITION. Otherwise, this method will
-     * return OK. If the subscription is QoS 1, at least once delivery will be
-     * guaranteed; for QoS 0, no acknowledgment will be expected from the device.
-     * 
- */ - public void sendCommandToDevice(com.google.cloud.iot.v1.SendCommandToDeviceRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getSendCommandToDeviceMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Associates the device with the gateway.
-     * 
- */ - public void bindDeviceToGateway(com.google.cloud.iot.v1.BindDeviceToGatewayRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getBindDeviceToGatewayMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Deletes the association between the device and the gateway.
-     * 
- */ - public void unbindDeviceFromGateway(com.google.cloud.iot.v1.UnbindDeviceFromGatewayRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getUnbindDeviceFromGatewayMethod(), getCallOptions()), request, responseObserver); - } - } - - /** - *
-   * Internet of Things (IoT) service. Securely connect and manage IoT devices.
-   * 
- */ - public static final class DeviceManagerBlockingStub extends io.grpc.stub.AbstractBlockingStub { - private DeviceManagerBlockingStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - super(channel, callOptions); - } - - @java.lang.Override - protected DeviceManagerBlockingStub build( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new DeviceManagerBlockingStub(channel, callOptions); - } - - /** - *
-     * Creates a device registry that contains devices.
-     * 
- */ - public com.google.cloud.iot.v1.DeviceRegistry createDeviceRegistry(com.google.cloud.iot.v1.CreateDeviceRegistryRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getCreateDeviceRegistryMethod(), getCallOptions(), request); - } - - /** - *
-     * Gets a device registry configuration.
-     * 
- */ - public com.google.cloud.iot.v1.DeviceRegistry getDeviceRegistry(com.google.cloud.iot.v1.GetDeviceRegistryRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getGetDeviceRegistryMethod(), getCallOptions(), request); - } - - /** - *
-     * Updates a device registry configuration.
-     * 
- */ - public com.google.cloud.iot.v1.DeviceRegistry updateDeviceRegistry(com.google.cloud.iot.v1.UpdateDeviceRegistryRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getUpdateDeviceRegistryMethod(), getCallOptions(), request); - } - - /** - *
-     * Deletes a device registry configuration.
-     * 
- */ - public com.google.protobuf.Empty deleteDeviceRegistry(com.google.cloud.iot.v1.DeleteDeviceRegistryRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getDeleteDeviceRegistryMethod(), getCallOptions(), request); - } - - /** - *
-     * Lists device registries.
-     * 
- */ - public com.google.cloud.iot.v1.ListDeviceRegistriesResponse listDeviceRegistries(com.google.cloud.iot.v1.ListDeviceRegistriesRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getListDeviceRegistriesMethod(), getCallOptions(), request); - } - - /** - *
-     * Creates a device in a device registry.
-     * 
- */ - public com.google.cloud.iot.v1.Device createDevice(com.google.cloud.iot.v1.CreateDeviceRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getCreateDeviceMethod(), getCallOptions(), request); - } - - /** - *
-     * Gets details about a device.
-     * 
- */ - public com.google.cloud.iot.v1.Device getDevice(com.google.cloud.iot.v1.GetDeviceRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getGetDeviceMethod(), getCallOptions(), request); - } - - /** - *
-     * Updates a device.
-     * 
- */ - public com.google.cloud.iot.v1.Device updateDevice(com.google.cloud.iot.v1.UpdateDeviceRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getUpdateDeviceMethod(), getCallOptions(), request); - } - - /** - *
-     * Deletes a device.
-     * 
- */ - public com.google.protobuf.Empty deleteDevice(com.google.cloud.iot.v1.DeleteDeviceRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getDeleteDeviceMethod(), getCallOptions(), request); - } - - /** - *
-     * List devices in a device registry.
-     * 
- */ - public com.google.cloud.iot.v1.ListDevicesResponse listDevices(com.google.cloud.iot.v1.ListDevicesRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getListDevicesMethod(), getCallOptions(), request); - } - - /** - *
-     * Modifies the configuration for the device, which is eventually sent from
-     * the Cloud IoT Core servers. Returns the modified configuration version and
-     * its metadata.
-     * 
- */ - public com.google.cloud.iot.v1.DeviceConfig modifyCloudToDeviceConfig(com.google.cloud.iot.v1.ModifyCloudToDeviceConfigRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getModifyCloudToDeviceConfigMethod(), getCallOptions(), request); - } - - /** - *
-     * Lists the last few versions of the device configuration in descending
-     * order (i.e.: newest first).
-     * 
- */ - public com.google.cloud.iot.v1.ListDeviceConfigVersionsResponse listDeviceConfigVersions(com.google.cloud.iot.v1.ListDeviceConfigVersionsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getListDeviceConfigVersionsMethod(), getCallOptions(), request); - } - - /** - *
-     * Lists the last few versions of the device state in descending order (i.e.:
-     * newest first).
-     * 
- */ - public com.google.cloud.iot.v1.ListDeviceStatesResponse listDeviceStates(com.google.cloud.iot.v1.ListDeviceStatesRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getListDeviceStatesMethod(), getCallOptions(), request); - } - - /** - *
-     * Sets the access control policy on the specified resource. Replaces any
-     * existing policy.
-     * 
- */ - public com.google.iam.v1.Policy setIamPolicy(com.google.iam.v1.SetIamPolicyRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getSetIamPolicyMethod(), getCallOptions(), request); - } - - /** - *
-     * Gets the access control policy for a resource.
-     * Returns an empty policy if the resource exists and does not have a policy
-     * set.
-     * 
- */ - public com.google.iam.v1.Policy getIamPolicy(com.google.iam.v1.GetIamPolicyRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getGetIamPolicyMethod(), getCallOptions(), request); - } - - /** - *
-     * Returns permissions that a caller has on the specified resource.
-     * If the resource does not exist, this will return an empty set of
-     * permissions, not a NOT_FOUND error.
-     * 
- */ - public com.google.iam.v1.TestIamPermissionsResponse testIamPermissions(com.google.iam.v1.TestIamPermissionsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getTestIamPermissionsMethod(), getCallOptions(), request); - } - - /** - *
-     * Sends a command to the specified device. In order for a device to be able
-     * to receive commands, it must:
-     * 1) be connected to Cloud IoT Core using the MQTT protocol, and
-     * 2) be subscribed to the group of MQTT topics specified by
-     *    /devices/{device-id}/commands/#. This subscription will receive commands
-     *    at the top-level topic /devices/{device-id}/commands as well as commands
-     *    for subfolders, like /devices/{device-id}/commands/subfolder.
-     *    Note that subscribing to specific subfolders is not supported.
-     * If the command could not be delivered to the device, this method will
-     * return an error; in particular, if the device is not subscribed, this
-     * method will return FAILED_PRECONDITION. Otherwise, this method will
-     * return OK. If the subscription is QoS 1, at least once delivery will be
-     * guaranteed; for QoS 0, no acknowledgment will be expected from the device.
-     * 
- */ - public com.google.cloud.iot.v1.SendCommandToDeviceResponse sendCommandToDevice(com.google.cloud.iot.v1.SendCommandToDeviceRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getSendCommandToDeviceMethod(), getCallOptions(), request); - } - - /** - *
-     * Associates the device with the gateway.
-     * 
- */ - public com.google.cloud.iot.v1.BindDeviceToGatewayResponse bindDeviceToGateway(com.google.cloud.iot.v1.BindDeviceToGatewayRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getBindDeviceToGatewayMethod(), getCallOptions(), request); - } - - /** - *
-     * Deletes the association between the device and the gateway.
-     * 
- */ - public com.google.cloud.iot.v1.UnbindDeviceFromGatewayResponse unbindDeviceFromGateway(com.google.cloud.iot.v1.UnbindDeviceFromGatewayRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getUnbindDeviceFromGatewayMethod(), getCallOptions(), request); - } - } - - /** - *
-   * Internet of Things (IoT) service. Securely connect and manage IoT devices.
-   * 
- */ - public static final class DeviceManagerFutureStub extends io.grpc.stub.AbstractFutureStub { - private DeviceManagerFutureStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - super(channel, callOptions); - } - - @java.lang.Override - protected DeviceManagerFutureStub build( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new DeviceManagerFutureStub(channel, callOptions); - } - - /** - *
-     * Creates a device registry that contains devices.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture createDeviceRegistry( - com.google.cloud.iot.v1.CreateDeviceRegistryRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getCreateDeviceRegistryMethod(), getCallOptions()), request); - } - - /** - *
-     * Gets a device registry configuration.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture getDeviceRegistry( - com.google.cloud.iot.v1.GetDeviceRegistryRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getGetDeviceRegistryMethod(), getCallOptions()), request); - } - - /** - *
-     * Updates a device registry configuration.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture updateDeviceRegistry( - com.google.cloud.iot.v1.UpdateDeviceRegistryRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getUpdateDeviceRegistryMethod(), getCallOptions()), request); - } - - /** - *
-     * Deletes a device registry configuration.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture deleteDeviceRegistry( - com.google.cloud.iot.v1.DeleteDeviceRegistryRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getDeleteDeviceRegistryMethod(), getCallOptions()), request); - } - - /** - *
-     * Lists device registries.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture listDeviceRegistries( - com.google.cloud.iot.v1.ListDeviceRegistriesRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getListDeviceRegistriesMethod(), getCallOptions()), request); - } - - /** - *
-     * Creates a device in a device registry.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture createDevice( - com.google.cloud.iot.v1.CreateDeviceRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getCreateDeviceMethod(), getCallOptions()), request); - } - - /** - *
-     * Gets details about a device.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture getDevice( - com.google.cloud.iot.v1.GetDeviceRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getGetDeviceMethod(), getCallOptions()), request); - } - - /** - *
-     * Updates a device.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture updateDevice( - com.google.cloud.iot.v1.UpdateDeviceRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getUpdateDeviceMethod(), getCallOptions()), request); - } - - /** - *
-     * Deletes a device.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture deleteDevice( - com.google.cloud.iot.v1.DeleteDeviceRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getDeleteDeviceMethod(), getCallOptions()), request); - } - - /** - *
-     * List devices in a device registry.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture listDevices( - com.google.cloud.iot.v1.ListDevicesRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getListDevicesMethod(), getCallOptions()), request); - } - - /** - *
-     * Modifies the configuration for the device, which is eventually sent from
-     * the Cloud IoT Core servers. Returns the modified configuration version and
-     * its metadata.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture modifyCloudToDeviceConfig( - com.google.cloud.iot.v1.ModifyCloudToDeviceConfigRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getModifyCloudToDeviceConfigMethod(), getCallOptions()), request); - } - - /** - *
-     * Lists the last few versions of the device configuration in descending
-     * order (i.e.: newest first).
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture listDeviceConfigVersions( - com.google.cloud.iot.v1.ListDeviceConfigVersionsRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getListDeviceConfigVersionsMethod(), getCallOptions()), request); - } - - /** - *
-     * Lists the last few versions of the device state in descending order (i.e.:
-     * newest first).
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture listDeviceStates( - com.google.cloud.iot.v1.ListDeviceStatesRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getListDeviceStatesMethod(), getCallOptions()), request); - } - - /** - *
-     * Sets the access control policy on the specified resource. Replaces any
-     * existing policy.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture setIamPolicy( - com.google.iam.v1.SetIamPolicyRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getSetIamPolicyMethod(), getCallOptions()), request); - } - - /** - *
-     * Gets the access control policy for a resource.
-     * Returns an empty policy if the resource exists and does not have a policy
-     * set.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture getIamPolicy( - com.google.iam.v1.GetIamPolicyRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getGetIamPolicyMethod(), getCallOptions()), request); - } - - /** - *
-     * Returns permissions that a caller has on the specified resource.
-     * If the resource does not exist, this will return an empty set of
-     * permissions, not a NOT_FOUND error.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture testIamPermissions( - com.google.iam.v1.TestIamPermissionsRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getTestIamPermissionsMethod(), getCallOptions()), request); - } - - /** - *
-     * Sends a command to the specified device. In order for a device to be able
-     * to receive commands, it must:
-     * 1) be connected to Cloud IoT Core using the MQTT protocol, and
-     * 2) be subscribed to the group of MQTT topics specified by
-     *    /devices/{device-id}/commands/#. This subscription will receive commands
-     *    at the top-level topic /devices/{device-id}/commands as well as commands
-     *    for subfolders, like /devices/{device-id}/commands/subfolder.
-     *    Note that subscribing to specific subfolders is not supported.
-     * If the command could not be delivered to the device, this method will
-     * return an error; in particular, if the device is not subscribed, this
-     * method will return FAILED_PRECONDITION. Otherwise, this method will
-     * return OK. If the subscription is QoS 1, at least once delivery will be
-     * guaranteed; for QoS 0, no acknowledgment will be expected from the device.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture sendCommandToDevice( - com.google.cloud.iot.v1.SendCommandToDeviceRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getSendCommandToDeviceMethod(), getCallOptions()), request); - } - - /** - *
-     * Associates the device with the gateway.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture bindDeviceToGateway( - com.google.cloud.iot.v1.BindDeviceToGatewayRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getBindDeviceToGatewayMethod(), getCallOptions()), request); - } - - /** - *
-     * Deletes the association between the device and the gateway.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture unbindDeviceFromGateway( - com.google.cloud.iot.v1.UnbindDeviceFromGatewayRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getUnbindDeviceFromGatewayMethod(), getCallOptions()), request); - } - } - - private static final int METHODID_CREATE_DEVICE_REGISTRY = 0; - private static final int METHODID_GET_DEVICE_REGISTRY = 1; - private static final int METHODID_UPDATE_DEVICE_REGISTRY = 2; - private static final int METHODID_DELETE_DEVICE_REGISTRY = 3; - private static final int METHODID_LIST_DEVICE_REGISTRIES = 4; - private static final int METHODID_CREATE_DEVICE = 5; - private static final int METHODID_GET_DEVICE = 6; - private static final int METHODID_UPDATE_DEVICE = 7; - private static final int METHODID_DELETE_DEVICE = 8; - private static final int METHODID_LIST_DEVICES = 9; - private static final int METHODID_MODIFY_CLOUD_TO_DEVICE_CONFIG = 10; - private static final int METHODID_LIST_DEVICE_CONFIG_VERSIONS = 11; - private static final int METHODID_LIST_DEVICE_STATES = 12; - private static final int METHODID_SET_IAM_POLICY = 13; - private static final int METHODID_GET_IAM_POLICY = 14; - private static final int METHODID_TEST_IAM_PERMISSIONS = 15; - private static final int METHODID_SEND_COMMAND_TO_DEVICE = 16; - private static final int METHODID_BIND_DEVICE_TO_GATEWAY = 17; - private static final int METHODID_UNBIND_DEVICE_FROM_GATEWAY = 18; - - 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 DeviceManagerImplBase serviceImpl; - private final int methodId; - - MethodHandlers(DeviceManagerImplBase 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_CREATE_DEVICE_REGISTRY: - serviceImpl.createDeviceRegistry((com.google.cloud.iot.v1.CreateDeviceRegistryRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_GET_DEVICE_REGISTRY: - serviceImpl.getDeviceRegistry((com.google.cloud.iot.v1.GetDeviceRegistryRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_UPDATE_DEVICE_REGISTRY: - serviceImpl.updateDeviceRegistry((com.google.cloud.iot.v1.UpdateDeviceRegistryRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_DELETE_DEVICE_REGISTRY: - serviceImpl.deleteDeviceRegistry((com.google.cloud.iot.v1.DeleteDeviceRegistryRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_LIST_DEVICE_REGISTRIES: - serviceImpl.listDeviceRegistries((com.google.cloud.iot.v1.ListDeviceRegistriesRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_CREATE_DEVICE: - serviceImpl.createDevice((com.google.cloud.iot.v1.CreateDeviceRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_GET_DEVICE: - serviceImpl.getDevice((com.google.cloud.iot.v1.GetDeviceRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_UPDATE_DEVICE: - serviceImpl.updateDevice((com.google.cloud.iot.v1.UpdateDeviceRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_DELETE_DEVICE: - serviceImpl.deleteDevice((com.google.cloud.iot.v1.DeleteDeviceRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_LIST_DEVICES: - serviceImpl.listDevices((com.google.cloud.iot.v1.ListDevicesRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_MODIFY_CLOUD_TO_DEVICE_CONFIG: - serviceImpl.modifyCloudToDeviceConfig((com.google.cloud.iot.v1.ModifyCloudToDeviceConfigRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_LIST_DEVICE_CONFIG_VERSIONS: - serviceImpl.listDeviceConfigVersions((com.google.cloud.iot.v1.ListDeviceConfigVersionsRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_LIST_DEVICE_STATES: - serviceImpl.listDeviceStates((com.google.cloud.iot.v1.ListDeviceStatesRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_SET_IAM_POLICY: - serviceImpl.setIamPolicy((com.google.iam.v1.SetIamPolicyRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_GET_IAM_POLICY: - serviceImpl.getIamPolicy((com.google.iam.v1.GetIamPolicyRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_TEST_IAM_PERMISSIONS: - serviceImpl.testIamPermissions((com.google.iam.v1.TestIamPermissionsRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_SEND_COMMAND_TO_DEVICE: - serviceImpl.sendCommandToDevice((com.google.cloud.iot.v1.SendCommandToDeviceRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_BIND_DEVICE_TO_GATEWAY: - serviceImpl.bindDeviceToGateway((com.google.cloud.iot.v1.BindDeviceToGatewayRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_UNBIND_DEVICE_FROM_GATEWAY: - serviceImpl.unbindDeviceFromGateway((com.google.cloud.iot.v1.UnbindDeviceFromGatewayRequest) 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 DeviceManagerBaseDescriptorSupplier - implements io.grpc.protobuf.ProtoFileDescriptorSupplier, io.grpc.protobuf.ProtoServiceDescriptorSupplier { - DeviceManagerBaseDescriptorSupplier() {} - - @java.lang.Override - public com.google.protobuf.Descriptors.FileDescriptor getFileDescriptor() { - return com.google.cloud.iot.v1.DeviceManagerProto.getDescriptor(); - } - - @java.lang.Override - public com.google.protobuf.Descriptors.ServiceDescriptor getServiceDescriptor() { - return getFileDescriptor().findServiceByName("DeviceManager"); - } - } - - private static final class DeviceManagerFileDescriptorSupplier - extends DeviceManagerBaseDescriptorSupplier { - DeviceManagerFileDescriptorSupplier() {} - } - - private static final class DeviceManagerMethodDescriptorSupplier - extends DeviceManagerBaseDescriptorSupplier - implements io.grpc.protobuf.ProtoMethodDescriptorSupplier { - private final String methodName; - - DeviceManagerMethodDescriptorSupplier(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 (DeviceManagerGrpc.class) { - result = serviceDescriptor; - if (result == null) { - serviceDescriptor = result = io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) - .setSchemaDescriptor(new DeviceManagerFileDescriptorSupplier()) - .addMethod(getCreateDeviceRegistryMethod()) - .addMethod(getGetDeviceRegistryMethod()) - .addMethod(getUpdateDeviceRegistryMethod()) - .addMethod(getDeleteDeviceRegistryMethod()) - .addMethod(getListDeviceRegistriesMethod()) - .addMethod(getCreateDeviceMethod()) - .addMethod(getGetDeviceMethod()) - .addMethod(getUpdateDeviceMethod()) - .addMethod(getDeleteDeviceMethod()) - .addMethod(getListDevicesMethod()) - .addMethod(getModifyCloudToDeviceConfigMethod()) - .addMethod(getListDeviceConfigVersionsMethod()) - .addMethod(getListDeviceStatesMethod()) - .addMethod(getSetIamPolicyMethod()) - .addMethod(getGetIamPolicyMethod()) - .addMethod(getTestIamPermissionsMethod()) - .addMethod(getSendCommandToDeviceMethod()) - .addMethod(getBindDeviceToGatewayMethod()) - .addMethod(getUnbindDeviceFromGatewayMethod()) - .build(); - } - } - } - return result; - } -} diff --git a/owl-bot-staging/v1/proto-google-cloud-iot-v1/src/main/java/com/google/cloud/iot/v1/BindDeviceToGatewayResponseOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-iot-v1/src/main/java/com/google/cloud/iot/v1/BindDeviceToGatewayResponseOrBuilder.java deleted file mode 100644 index 2e4113e4..00000000 --- a/owl-bot-staging/v1/proto-google-cloud-iot-v1/src/main/java/com/google/cloud/iot/v1/BindDeviceToGatewayResponseOrBuilder.java +++ /dev/null @@ -1,9 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/iot/v1/device_manager.proto - -package com.google.cloud.iot.v1; - -public interface BindDeviceToGatewayResponseOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.cloud.iot.v1.BindDeviceToGatewayResponse) - com.google.protobuf.MessageOrBuilder { -} diff --git a/owl-bot-staging/v1/proto-google-cloud-iot-v1/src/main/java/com/google/cloud/iot/v1/DeleteDeviceRegistryRequestOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-iot-v1/src/main/java/com/google/cloud/iot/v1/DeleteDeviceRegistryRequestOrBuilder.java deleted file mode 100644 index fc026cf3..00000000 --- a/owl-bot-staging/v1/proto-google-cloud-iot-v1/src/main/java/com/google/cloud/iot/v1/DeleteDeviceRegistryRequestOrBuilder.java +++ /dev/null @@ -1,31 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/iot/v1/device_manager.proto - -package com.google.cloud.iot.v1; - -public interface DeleteDeviceRegistryRequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.cloud.iot.v1.DeleteDeviceRegistryRequest) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * Required. The name of the device registry. For example,
-   * `projects/example-project/locations/us-central1/registries/my-registry`.
-   * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The name. - */ - java.lang.String getName(); - /** - *
-   * Required. The name of the device registry. For example,
-   * `projects/example-project/locations/us-central1/registries/my-registry`.
-   * 
- * - * 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-iot-v1/src/main/java/com/google/cloud/iot/v1/DeleteDeviceRequestOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-iot-v1/src/main/java/com/google/cloud/iot/v1/DeleteDeviceRequestOrBuilder.java deleted file mode 100644 index 931d57ca..00000000 --- a/owl-bot-staging/v1/proto-google-cloud-iot-v1/src/main/java/com/google/cloud/iot/v1/DeleteDeviceRequestOrBuilder.java +++ /dev/null @@ -1,33 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/iot/v1/device_manager.proto - -package com.google.cloud.iot.v1; - -public interface DeleteDeviceRequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.cloud.iot.v1.DeleteDeviceRequest) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * Required. The name of the device. For example,
-   * `projects/p0/locations/us-central1/registries/registry0/devices/device0` or
-   * `projects/p0/locations/us-central1/registries/registry0/devices/{num_id}`.
-   * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The name. - */ - java.lang.String getName(); - /** - *
-   * Required. The name of the device. For example,
-   * `projects/p0/locations/us-central1/registries/registry0/devices/device0` or
-   * `projects/p0/locations/us-central1/registries/registry0/devices/{num_id}`.
-   * 
- * - * 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-iot-v1/src/main/java/com/google/cloud/iot/v1/DeviceManagerProto.java b/owl-bot-staging/v1/proto-google-cloud-iot-v1/src/main/java/com/google/cloud/iot/v1/DeviceManagerProto.java deleted file mode 100644 index ca6ef5d9..00000000 --- a/owl-bot-staging/v1/proto-google-cloud-iot-v1/src/main/java/com/google/cloud/iot/v1/DeviceManagerProto.java +++ /dev/null @@ -1,532 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/iot/v1/device_manager.proto - -package com.google.cloud.iot.v1; - -public final class DeviceManagerProto { - private DeviceManagerProto() {} - 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_iot_v1_CreateDeviceRegistryRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_iot_v1_CreateDeviceRegistryRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_iot_v1_GetDeviceRegistryRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_iot_v1_GetDeviceRegistryRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_iot_v1_DeleteDeviceRegistryRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_iot_v1_DeleteDeviceRegistryRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_iot_v1_UpdateDeviceRegistryRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_iot_v1_UpdateDeviceRegistryRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_iot_v1_ListDeviceRegistriesRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_iot_v1_ListDeviceRegistriesRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_iot_v1_ListDeviceRegistriesResponse_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_iot_v1_ListDeviceRegistriesResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_iot_v1_CreateDeviceRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_iot_v1_CreateDeviceRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_iot_v1_GetDeviceRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_iot_v1_GetDeviceRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_iot_v1_UpdateDeviceRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_iot_v1_UpdateDeviceRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_iot_v1_DeleteDeviceRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_iot_v1_DeleteDeviceRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_iot_v1_ListDevicesRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_iot_v1_ListDevicesRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_iot_v1_GatewayListOptions_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_iot_v1_GatewayListOptions_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_iot_v1_ListDevicesResponse_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_iot_v1_ListDevicesResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_iot_v1_ModifyCloudToDeviceConfigRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_iot_v1_ModifyCloudToDeviceConfigRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_iot_v1_ListDeviceConfigVersionsRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_iot_v1_ListDeviceConfigVersionsRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_iot_v1_ListDeviceConfigVersionsResponse_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_iot_v1_ListDeviceConfigVersionsResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_iot_v1_ListDeviceStatesRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_iot_v1_ListDeviceStatesRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_iot_v1_ListDeviceStatesResponse_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_iot_v1_ListDeviceStatesResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_iot_v1_SendCommandToDeviceRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_iot_v1_SendCommandToDeviceRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_iot_v1_SendCommandToDeviceResponse_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_iot_v1_SendCommandToDeviceResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_iot_v1_BindDeviceToGatewayRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_iot_v1_BindDeviceToGatewayRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_iot_v1_BindDeviceToGatewayResponse_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_iot_v1_BindDeviceToGatewayResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_iot_v1_UnbindDeviceFromGatewayRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_iot_v1_UnbindDeviceFromGatewayRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_iot_v1_UnbindDeviceFromGatewayResponse_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_iot_v1_UnbindDeviceFromGatewayResponse_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/iot/v1/device_manager.pro" + - "to\022\023google.cloud.iot.v1\032\034google/api/anno" + - "tations.proto\032\027google/api/client.proto\032\037" + - "google/api/field_behavior.proto\032\031google/" + - "api/resource.proto\032#google/cloud/iot/v1/" + - "resources.proto\032\036google/iam/v1/iam_polic" + - "y.proto\032\032google/iam/v1/policy.proto\032\033goo" + - "gle/protobuf/empty.proto\032 google/protobu" + - "f/field_mask.proto\032\027google/rpc/status.pr" + - "oto\"\233\001\n\033CreateDeviceRegistryRequest\0229\n\006p" + - "arent\030\001 \001(\tB)\340A\002\372A#\n!locations.googleapi" + - "s.com/Location\022A\n\017device_registry\030\002 \001(\0132" + - "#.google.cloud.iot.v1.DeviceRegistryB\003\340A" + - "\002\"R\n\030GetDeviceRegistryRequest\0226\n\004name\030\001 " + - "\001(\tB(\340A\002\372A\"\n cloudiot.googleapis.com/Reg" + - "istry\"U\n\033DeleteDeviceRegistryRequest\0226\n\004" + - "name\030\001 \001(\tB(\340A\002\372A\"\n cloudiot.googleapis." + - "com/Registry\"\226\001\n\033UpdateDeviceRegistryReq" + - "uest\022A\n\017device_registry\030\001 \001(\0132#.google.c" + - "loud.iot.v1.DeviceRegistryB\003\340A\002\0224\n\013updat" + - "e_mask\030\002 \001(\0132\032.google.protobuf.FieldMask" + - "B\003\340A\002\"\177\n\033ListDeviceRegistriesRequest\0229\n\006" + - "parent\030\001 \001(\tB)\340A\002\372A#\n!locations.googleap" + - "is.com/Location\022\021\n\tpage_size\030\002 \001(\005\022\022\n\npa" + - "ge_token\030\003 \001(\t\"w\n\034ListDeviceRegistriesRe" + - "sponse\022>\n\021device_registries\030\001 \003(\0132#.goog" + - "le.cloud.iot.v1.DeviceRegistry\022\027\n\017next_p" + - "age_token\030\002 \001(\t\"\201\001\n\023CreateDeviceRequest\022" + - "8\n\006parent\030\001 \001(\tB(\340A\002\372A\"\n cloudiot.google" + - "apis.com/Registry\0220\n\006device\030\002 \001(\0132\033.goog" + - "le.cloud.iot.v1.DeviceB\003\340A\002\"x\n\020GetDevice" + - "Request\0224\n\004name\030\001 \001(\tB&\340A\002\372A \n\036cloudiot." + - "googleapis.com/Device\022.\n\nfield_mask\030\002 \001(" + - "\0132\032.google.protobuf.FieldMask\"}\n\023UpdateD" + - "eviceRequest\0220\n\006device\030\002 \001(\0132\033.google.cl" + - "oud.iot.v1.DeviceB\003\340A\002\0224\n\013update_mask\030\003 " + - "\001(\0132\032.google.protobuf.FieldMaskB\003\340A\002\"K\n\023" + - "DeleteDeviceRequest\0224\n\004name\030\001 \001(\tB&\340A\002\372A" + - " \n\036cloudiot.googleapis.com/Device\"\230\002\n\022Li" + - "stDevicesRequest\0228\n\006parent\030\001 \001(\tB(\340A\002\372A\"" + - "\n cloudiot.googleapis.com/Registry\022\026\n\016de" + - "vice_num_ids\030\002 \003(\004\022\022\n\ndevice_ids\030\003 \003(\t\022." + - "\n\nfield_mask\030\004 \001(\0132\032.google.protobuf.Fie" + - "ldMask\022E\n\024gateway_list_options\030\006 \001(\0132\'.g" + - "oogle.cloud.iot.v1.GatewayListOptions\022\021\n" + - "\tpage_size\030d \001(\005\022\022\n\npage_token\030e \001(\t\"\235\001\n" + - "\022GatewayListOptions\0228\n\014gateway_type\030\001 \001(" + - "\0162 .google.cloud.iot.v1.GatewayTypeH\000\022!\n" + - "\027associations_gateway_id\030\002 \001(\tH\000\022 \n\026asso" + - "ciations_device_id\030\003 \001(\tH\000B\010\n\006filter\"\\\n\023" + - "ListDevicesResponse\022,\n\007devices\030\001 \003(\0132\033.g" + - "oogle.cloud.iot.v1.Device\022\027\n\017next_page_t" + - "oken\030\002 \001(\t\"\215\001\n ModifyCloudToDeviceConfig" + - "Request\0224\n\004name\030\001 \001(\tB&\340A\002\372A \n\036cloudiot." + - "googleapis.com/Device\022\031\n\021version_to_upda" + - "te\030\002 \001(\003\022\030\n\013binary_data\030\003 \001(\014B\003\340A\002\"m\n\037Li" + - "stDeviceConfigVersionsRequest\0224\n\004name\030\001 " + - "\001(\tB&\340A\002\372A \n\036cloudiot.googleapis.com/Dev" + - "ice\022\024\n\014num_versions\030\002 \001(\005\"]\n ListDeviceC" + - "onfigVersionsResponse\0229\n\016device_configs\030" + - "\001 \003(\0132!.google.cloud.iot.v1.DeviceConfig" + - "\"c\n\027ListDeviceStatesRequest\0224\n\004name\030\001 \001(" + - "\tB&\340A\002\372A \n\036cloudiot.googleapis.com/Devic" + - "e\022\022\n\nnum_states\030\002 \001(\005\"S\n\030ListDeviceState" + - "sResponse\0227\n\rdevice_states\030\001 \003(\0132 .googl" + - "e.cloud.iot.v1.DeviceState\"\177\n\032SendComman" + - "dToDeviceRequest\0224\n\004name\030\001 \001(\tB&\340A\002\372A \n\036" + - "cloudiot.googleapis.com/Device\022\030\n\013binary" + - "_data\030\002 \001(\014B\003\340A\002\022\021\n\tsubfolder\030\003 \001(\t\"\035\n\033S" + - "endCommandToDeviceResponse\"\207\001\n\032BindDevic" + - "eToGatewayRequest\0228\n\006parent\030\001 \001(\tB(\340A\002\372A" + - "\"\n cloudiot.googleapis.com/Registry\022\027\n\ng" + - "ateway_id\030\002 \001(\tB\003\340A\002\022\026\n\tdevice_id\030\003 \001(\tB" + - "\003\340A\002\"\035\n\033BindDeviceToGatewayResponse\"\213\001\n\036" + - "UnbindDeviceFromGatewayRequest\0228\n\006parent" + - "\030\001 \001(\tB(\340A\002\372A\"\n cloudiot.googleapis.com/" + - "Registry\022\027\n\ngateway_id\030\002 \001(\tB\003\340A\002\022\026\n\tdev" + - "ice_id\030\003 \001(\tB\003\340A\002\"!\n\037UnbindDeviceFromGat" + - "ewayResponse2\246&\n\rDeviceManager\022\317\001\n\024Creat" + - "eDeviceRegistry\0220.google.cloud.iot.v1.Cr" + - "eateDeviceRegistryRequest\032#.google.cloud" + - ".iot.v1.DeviceRegistry\"`\202\323\344\223\002A\"./v1/{par" + - "ent=projects/*/locations/*}/registries:\017" + - "device_registry\332A\026parent,device_registry" + - "\022\246\001\n\021GetDeviceRegistry\022-.google.cloud.io" + - "t.v1.GetDeviceRegistryRequest\032#.google.c" + - "loud.iot.v1.DeviceRegistry\"=\202\323\344\223\0020\022./v1/" + - "{name=projects/*/locations/*/registries/" + - "*}\332A\004name\022\344\001\n\024UpdateDeviceRegistry\0220.goo" + - "gle.cloud.iot.v1.UpdateDeviceRegistryReq" + - "uest\032#.google.cloud.iot.v1.DeviceRegistr" + - "y\"u\202\323\344\223\002Q2>/v1/{device_registry.name=pro" + - "jects/*/locations/*/registries/*}:\017devic" + - "e_registry\332A\033device_registry,update_mask" + - "\022\237\001\n\024DeleteDeviceRegistry\0220.google.cloud" + - ".iot.v1.DeleteDeviceRegistryRequest\032\026.go" + - "ogle.protobuf.Empty\"=\202\323\344\223\0020*./v1/{name=p" + - "rojects/*/locations/*/registries/*}\332A\004na" + - "me\022\274\001\n\024ListDeviceRegistries\0220.google.clo" + - "ud.iot.v1.ListDeviceRegistriesRequest\0321." + - "google.cloud.iot.v1.ListDeviceRegistries" + - "Response\"?\202\323\344\223\0020\022./v1/{parent=projects/*" + - "/locations/*}/registries\332A\006parent\022\257\001\n\014Cr" + - "eateDevice\022(.google.cloud.iot.v1.CreateD" + - "eviceRequest\032\033.google.cloud.iot.v1.Devic" + - "e\"X\202\323\344\223\002B\"8/v1/{parent=projects/*/locati" + - "ons/*/registries/*}/devices:\006device\332A\rpa" + - "rent,device\022\336\001\n\tGetDevice\022%.google.cloud" + - ".iot.v1.GetDeviceRequest\032\033.google.cloud." + - "iot.v1.Device\"\214\001\202\323\344\223\002\177\0228/v1/{name=projec" + - "ts/*/locations/*/registries/*/devices/*}" + - "ZC\022A/v1/{name=projects/*/locations/*/reg" + - "istries/*/groups/*/devices/*}\332A\004name\022\221\002\n" + - "\014UpdateDevice\022(.google.cloud.iot.v1.Upda" + - "teDeviceRequest\032\033.google.cloud.iot.v1.De" + - "vice\"\271\001\202\323\344\223\002\235\0012?/v1/{device.name=project" + - "s/*/locations/*/registries/*/devices/*}:" + - "\006deviceZR2H/v1/{device.name=projects/*/l" + - "ocations/*/registries/*/groups/*/devices" + - "/*}:\006device\332A\022device,update_mask\022\231\001\n\014Del" + - "eteDevice\022(.google.cloud.iot.v1.DeleteDe" + - "viceRequest\032\026.google.protobuf.Empty\"G\202\323\344" + - "\223\002:*8/v1/{name=projects/*/locations/*/re" + - "gistries/*/devices/*}\332A\004name\022\361\001\n\013ListDev" + - "ices\022\'.google.cloud.iot.v1.ListDevicesRe" + - "quest\032(.google.cloud.iot.v1.ListDevicesR" + - "esponse\"\216\001\202\323\344\223\002\177\0228/v1/{parent=projects/*" + - "/locations/*/registries/*}/devicesZC\022A/v" + - "1/{parent=projects/*/locations/*/registr" + - "ies/*/groups/*}/devices\332A\006parent\022\313\002\n\031Mod" + - "ifyCloudToDeviceConfig\0225.google.cloud.io" + - "t.v1.ModifyCloudToDeviceConfigRequest\032!." + - "google.cloud.iot.v1.DeviceConfig\"\323\001\202\323\344\223\002" + - "\271\001\"R/v1/{name=projects/*/locations/*/reg" + - "istries/*/devices/*}:modifyCloudToDevice" + - "Config:\001*Z`\"[/v1/{name=projects/*/locati" + - "ons/*/registries/*/groups/*/devices/*}:m" + - "odifyCloudToDeviceConfig:\001*\332A\020name,binar" + - "y_data\022\265\002\n\030ListDeviceConfigVersions\0224.go" + - "ogle.cloud.iot.v1.ListDeviceConfigVersio" + - "nsRequest\0325.google.cloud.iot.v1.ListDevi" + - "ceConfigVersionsResponse\"\253\001\202\323\344\223\002\235\001\022G/v1/" + - "{name=projects/*/locations/*/registries/" + - "*/devices/*}/configVersionsZR\022P/v1/{name" + - "=projects/*/locations/*/registries/*/gro" + - "ups/*/devices/*}/configVersions\332A\004name\022\215" + - "\002\n\020ListDeviceStates\022,.google.cloud.iot.v" + - "1.ListDeviceStatesRequest\032-.google.cloud" + - ".iot.v1.ListDeviceStatesResponse\"\233\001\202\323\344\223\002" + - "\215\001\022?/v1/{name=projects/*/locations/*/reg" + - "istries/*/devices/*}/statesZJ\022H/v1/{name" + - "=projects/*/locations/*/registries/*/gro" + - "ups/*/devices/*}/states\332A\004name\022\370\001\n\014SetIa" + - "mPolicy\022\".google.iam.v1.SetIamPolicyRequ" + - "est\032\025.google.iam.v1.Policy\"\254\001\202\323\344\223\002\223\001\"?/v" + - "1/{resource=projects/*/locations/*/regis" + - "tries/*}:setIamPolicy:\001*ZM\"H/v1/{resourc" + - "e=projects/*/locations/*/registries/*/gr" + - "oups/*}:setIamPolicy:\001*\332A\017resource,polic" + - "y\022\361\001\n\014GetIamPolicy\022\".google.iam.v1.GetIa" + - "mPolicyRequest\032\025.google.iam.v1.Policy\"\245\001" + - "\202\323\344\223\002\223\001\"?/v1/{resource=projects/*/locati" + - "ons/*/registries/*}:getIamPolicy:\001*ZM\"H/" + - "v1/{resource=projects/*/locations/*/regi" + - "stries/*/groups/*}:getIamPolicy:\001*\332A\010res" + - "ource\022\251\002\n\022TestIamPermissions\022(.google.ia" + - "m.v1.TestIamPermissionsRequest\032).google." + - "iam.v1.TestIamPermissionsResponse\"\275\001\202\323\344\223" + - "\002\237\001\"E/v1/{resource=projects/*/locations/" + - "*/registries/*}:testIamPermissions:\001*ZS\"" + - "N/v1/{resource=projects/*/locations/*/re" + - "gistries/*/groups/*}:testIamPermissions:" + - "\001*\332A\024resource,permissions\022\337\002\n\023SendComman" + - "dToDevice\022/.google.cloud.iot.v1.SendComm" + - "andToDeviceRequest\0320.google.cloud.iot.v1" + - ".SendCommandToDeviceResponse\"\344\001\202\323\344\223\002\255\001\"L" + - "/v1/{name=projects/*/locations/*/registr" + - "ies/*/devices/*}:sendCommandToDevice:\001*Z" + - "Z\"U/v1/{name=projects/*/locations/*/regi" + - "stries/*/groups/*/devices/*}:sendCommand" + - "ToDevice:\001*\332A\020name,binary_data\332A\032name,bi" + - "nary_data,subfolder\022\275\002\n\023BindDeviceToGate" + - "way\022/.google.cloud.iot.v1.BindDeviceToGa" + - "tewayRequest\0320.google.cloud.iot.v1.BindD" + - "eviceToGatewayResponse\"\302\001\202\323\344\223\002\235\001\"D/v1/{p" + - "arent=projects/*/locations/*/registries/" + - "*}:bindDeviceToGateway:\001*ZR\"M/v1/{parent" + - "=projects/*/locations/*/registries/*/gro" + - "ups/*}:bindDeviceToGateway:\001*\332A\033parent,g" + - "ateway_id,device_id\022\321\002\n\027UnbindDeviceFrom" + - "Gateway\0223.google.cloud.iot.v1.UnbindDevi" + - "ceFromGatewayRequest\0324.google.cloud.iot." + - "v1.UnbindDeviceFromGatewayResponse\"\312\001\202\323\344" + - "\223\002\245\001\"H/v1/{parent=projects/*/locations/*" + - "/registries/*}:unbindDeviceFromGateway:\001" + - "*ZV\"Q/v1/{parent=projects/*/locations/*/" + - "registries/*/groups/*}:unbindDeviceFromG" + - "ateway:\001*\332A\033parent,gateway_id,device_id\032" + - "t\312A\027cloudiot.googleapis.com\322AWhttps://ww" + - "w.googleapis.com/auth/cloud-platform,htt" + - "ps://www.googleapis.com/auth/cloudiotBj\n" + - "\027com.google.cloud.iot.v1B\022DeviceManagerP" + - "rotoP\001Z6google.golang.org/genproto/googl" + - "eapis/cloud/iot/v1;iot\370\001\001b\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.cloud.iot.v1.ResourcesProto.getDescriptor(), - com.google.iam.v1.IamPolicyProto.getDescriptor(), - com.google.iam.v1.PolicyProto.getDescriptor(), - com.google.protobuf.EmptyProto.getDescriptor(), - com.google.protobuf.FieldMaskProto.getDescriptor(), - com.google.rpc.StatusProto.getDescriptor(), - }); - internal_static_google_cloud_iot_v1_CreateDeviceRegistryRequest_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_google_cloud_iot_v1_CreateDeviceRegistryRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_iot_v1_CreateDeviceRegistryRequest_descriptor, - new java.lang.String[] { "Parent", "DeviceRegistry", }); - internal_static_google_cloud_iot_v1_GetDeviceRegistryRequest_descriptor = - getDescriptor().getMessageTypes().get(1); - internal_static_google_cloud_iot_v1_GetDeviceRegistryRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_iot_v1_GetDeviceRegistryRequest_descriptor, - new java.lang.String[] { "Name", }); - internal_static_google_cloud_iot_v1_DeleteDeviceRegistryRequest_descriptor = - getDescriptor().getMessageTypes().get(2); - internal_static_google_cloud_iot_v1_DeleteDeviceRegistryRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_iot_v1_DeleteDeviceRegistryRequest_descriptor, - new java.lang.String[] { "Name", }); - internal_static_google_cloud_iot_v1_UpdateDeviceRegistryRequest_descriptor = - getDescriptor().getMessageTypes().get(3); - internal_static_google_cloud_iot_v1_UpdateDeviceRegistryRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_iot_v1_UpdateDeviceRegistryRequest_descriptor, - new java.lang.String[] { "DeviceRegistry", "UpdateMask", }); - internal_static_google_cloud_iot_v1_ListDeviceRegistriesRequest_descriptor = - getDescriptor().getMessageTypes().get(4); - internal_static_google_cloud_iot_v1_ListDeviceRegistriesRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_iot_v1_ListDeviceRegistriesRequest_descriptor, - new java.lang.String[] { "Parent", "PageSize", "PageToken", }); - internal_static_google_cloud_iot_v1_ListDeviceRegistriesResponse_descriptor = - getDescriptor().getMessageTypes().get(5); - internal_static_google_cloud_iot_v1_ListDeviceRegistriesResponse_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_iot_v1_ListDeviceRegistriesResponse_descriptor, - new java.lang.String[] { "DeviceRegistries", "NextPageToken", }); - internal_static_google_cloud_iot_v1_CreateDeviceRequest_descriptor = - getDescriptor().getMessageTypes().get(6); - internal_static_google_cloud_iot_v1_CreateDeviceRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_iot_v1_CreateDeviceRequest_descriptor, - new java.lang.String[] { "Parent", "Device", }); - internal_static_google_cloud_iot_v1_GetDeviceRequest_descriptor = - getDescriptor().getMessageTypes().get(7); - internal_static_google_cloud_iot_v1_GetDeviceRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_iot_v1_GetDeviceRequest_descriptor, - new java.lang.String[] { "Name", "FieldMask", }); - internal_static_google_cloud_iot_v1_UpdateDeviceRequest_descriptor = - getDescriptor().getMessageTypes().get(8); - internal_static_google_cloud_iot_v1_UpdateDeviceRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_iot_v1_UpdateDeviceRequest_descriptor, - new java.lang.String[] { "Device", "UpdateMask", }); - internal_static_google_cloud_iot_v1_DeleteDeviceRequest_descriptor = - getDescriptor().getMessageTypes().get(9); - internal_static_google_cloud_iot_v1_DeleteDeviceRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_iot_v1_DeleteDeviceRequest_descriptor, - new java.lang.String[] { "Name", }); - internal_static_google_cloud_iot_v1_ListDevicesRequest_descriptor = - getDescriptor().getMessageTypes().get(10); - internal_static_google_cloud_iot_v1_ListDevicesRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_iot_v1_ListDevicesRequest_descriptor, - new java.lang.String[] { "Parent", "DeviceNumIds", "DeviceIds", "FieldMask", "GatewayListOptions", "PageSize", "PageToken", }); - internal_static_google_cloud_iot_v1_GatewayListOptions_descriptor = - getDescriptor().getMessageTypes().get(11); - internal_static_google_cloud_iot_v1_GatewayListOptions_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_iot_v1_GatewayListOptions_descriptor, - new java.lang.String[] { "GatewayType", "AssociationsGatewayId", "AssociationsDeviceId", "Filter", }); - internal_static_google_cloud_iot_v1_ListDevicesResponse_descriptor = - getDescriptor().getMessageTypes().get(12); - internal_static_google_cloud_iot_v1_ListDevicesResponse_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_iot_v1_ListDevicesResponse_descriptor, - new java.lang.String[] { "Devices", "NextPageToken", }); - internal_static_google_cloud_iot_v1_ModifyCloudToDeviceConfigRequest_descriptor = - getDescriptor().getMessageTypes().get(13); - internal_static_google_cloud_iot_v1_ModifyCloudToDeviceConfigRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_iot_v1_ModifyCloudToDeviceConfigRequest_descriptor, - new java.lang.String[] { "Name", "VersionToUpdate", "BinaryData", }); - internal_static_google_cloud_iot_v1_ListDeviceConfigVersionsRequest_descriptor = - getDescriptor().getMessageTypes().get(14); - internal_static_google_cloud_iot_v1_ListDeviceConfigVersionsRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_iot_v1_ListDeviceConfigVersionsRequest_descriptor, - new java.lang.String[] { "Name", "NumVersions", }); - internal_static_google_cloud_iot_v1_ListDeviceConfigVersionsResponse_descriptor = - getDescriptor().getMessageTypes().get(15); - internal_static_google_cloud_iot_v1_ListDeviceConfigVersionsResponse_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_iot_v1_ListDeviceConfigVersionsResponse_descriptor, - new java.lang.String[] { "DeviceConfigs", }); - internal_static_google_cloud_iot_v1_ListDeviceStatesRequest_descriptor = - getDescriptor().getMessageTypes().get(16); - internal_static_google_cloud_iot_v1_ListDeviceStatesRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_iot_v1_ListDeviceStatesRequest_descriptor, - new java.lang.String[] { "Name", "NumStates", }); - internal_static_google_cloud_iot_v1_ListDeviceStatesResponse_descriptor = - getDescriptor().getMessageTypes().get(17); - internal_static_google_cloud_iot_v1_ListDeviceStatesResponse_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_iot_v1_ListDeviceStatesResponse_descriptor, - new java.lang.String[] { "DeviceStates", }); - internal_static_google_cloud_iot_v1_SendCommandToDeviceRequest_descriptor = - getDescriptor().getMessageTypes().get(18); - internal_static_google_cloud_iot_v1_SendCommandToDeviceRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_iot_v1_SendCommandToDeviceRequest_descriptor, - new java.lang.String[] { "Name", "BinaryData", "Subfolder", }); - internal_static_google_cloud_iot_v1_SendCommandToDeviceResponse_descriptor = - getDescriptor().getMessageTypes().get(19); - internal_static_google_cloud_iot_v1_SendCommandToDeviceResponse_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_iot_v1_SendCommandToDeviceResponse_descriptor, - new java.lang.String[] { }); - internal_static_google_cloud_iot_v1_BindDeviceToGatewayRequest_descriptor = - getDescriptor().getMessageTypes().get(20); - internal_static_google_cloud_iot_v1_BindDeviceToGatewayRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_iot_v1_BindDeviceToGatewayRequest_descriptor, - new java.lang.String[] { "Parent", "GatewayId", "DeviceId", }); - internal_static_google_cloud_iot_v1_BindDeviceToGatewayResponse_descriptor = - getDescriptor().getMessageTypes().get(21); - internal_static_google_cloud_iot_v1_BindDeviceToGatewayResponse_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_iot_v1_BindDeviceToGatewayResponse_descriptor, - new java.lang.String[] { }); - internal_static_google_cloud_iot_v1_UnbindDeviceFromGatewayRequest_descriptor = - getDescriptor().getMessageTypes().get(22); - internal_static_google_cloud_iot_v1_UnbindDeviceFromGatewayRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_iot_v1_UnbindDeviceFromGatewayRequest_descriptor, - new java.lang.String[] { "Parent", "GatewayId", "DeviceId", }); - internal_static_google_cloud_iot_v1_UnbindDeviceFromGatewayResponse_descriptor = - getDescriptor().getMessageTypes().get(23); - internal_static_google_cloud_iot_v1_UnbindDeviceFromGatewayResponse_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_iot_v1_UnbindDeviceFromGatewayResponse_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.resourceReference); - 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.cloud.iot.v1.ResourcesProto.getDescriptor(); - com.google.iam.v1.IamPolicyProto.getDescriptor(); - com.google.iam.v1.PolicyProto.getDescriptor(); - com.google.protobuf.EmptyProto.getDescriptor(); - com.google.protobuf.FieldMaskProto.getDescriptor(); - com.google.rpc.StatusProto.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/owl-bot-staging/v1/proto-google-cloud-iot-v1/src/main/java/com/google/cloud/iot/v1/GetDeviceRegistryRequestOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-iot-v1/src/main/java/com/google/cloud/iot/v1/GetDeviceRegistryRequestOrBuilder.java deleted file mode 100644 index cc13fbb5..00000000 --- a/owl-bot-staging/v1/proto-google-cloud-iot-v1/src/main/java/com/google/cloud/iot/v1/GetDeviceRegistryRequestOrBuilder.java +++ /dev/null @@ -1,31 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/iot/v1/device_manager.proto - -package com.google.cloud.iot.v1; - -public interface GetDeviceRegistryRequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.cloud.iot.v1.GetDeviceRegistryRequest) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * Required. The name of the device registry. For example,
-   * `projects/example-project/locations/us-central1/registries/my-registry`.
-   * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The name. - */ - java.lang.String getName(); - /** - *
-   * Required. The name of the device registry. For example,
-   * `projects/example-project/locations/us-central1/registries/my-registry`.
-   * 
- * - * 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-iot-v1/src/main/java/com/google/cloud/iot/v1/ResourcesProto.java b/owl-bot-staging/v1/proto-google-cloud-iot-v1/src/main/java/com/google/cloud/iot/v1/ResourcesProto.java deleted file mode 100644 index da21b025..00000000 --- a/owl-bot-staging/v1/proto-google-cloud-iot-v1/src/main/java/com/google/cloud/iot/v1/ResourcesProto.java +++ /dev/null @@ -1,309 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/iot/v1/resources.proto - -package com.google.cloud.iot.v1; - -public final class ResourcesProto { - private ResourcesProto() {} - 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_iot_v1_Device_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_iot_v1_Device_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_iot_v1_Device_MetadataEntry_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_iot_v1_Device_MetadataEntry_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_iot_v1_GatewayConfig_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_iot_v1_GatewayConfig_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_iot_v1_DeviceRegistry_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_iot_v1_DeviceRegistry_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_iot_v1_MqttConfig_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_iot_v1_MqttConfig_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_iot_v1_HttpConfig_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_iot_v1_HttpConfig_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_iot_v1_EventNotificationConfig_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_iot_v1_EventNotificationConfig_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_iot_v1_StateNotificationConfig_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_iot_v1_StateNotificationConfig_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_iot_v1_RegistryCredential_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_iot_v1_RegistryCredential_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_iot_v1_X509CertificateDetails_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_iot_v1_X509CertificateDetails_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_iot_v1_PublicKeyCertificate_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_iot_v1_PublicKeyCertificate_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_iot_v1_DeviceCredential_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_iot_v1_DeviceCredential_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_iot_v1_PublicKeyCredential_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_iot_v1_PublicKeyCredential_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_iot_v1_DeviceConfig_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_iot_v1_DeviceConfig_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_iot_v1_DeviceState_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_iot_v1_DeviceState_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/iot/v1/resources.proto\022\023g" + - "oogle.cloud.iot.v1\032\031google/api/resource." + - "proto\032\037google/protobuf/timestamp.proto\032\027" + - "google/rpc/status.proto\"\260\007\n\006Device\022\n\n\002id" + - "\030\001 \001(\t\022\014\n\004name\030\002 \001(\t\022\016\n\006num_id\030\003 \001(\004\022:\n\013" + - "credentials\030\014 \003(\0132%.google.cloud.iot.v1." + - "DeviceCredential\0227\n\023last_heartbeat_time\030" + - "\007 \001(\0132\032.google.protobuf.Timestamp\0223\n\017las" + - "t_event_time\030\010 \001(\0132\032.google.protobuf.Tim" + - "estamp\0223\n\017last_state_time\030\024 \001(\0132\032.google" + - ".protobuf.Timestamp\0228\n\024last_config_ack_t" + - "ime\030\016 \001(\0132\032.google.protobuf.Timestamp\0229\n" + - "\025last_config_send_time\030\022 \001(\0132\032.google.pr" + - "otobuf.Timestamp\022\017\n\007blocked\030\023 \001(\010\0223\n\017las" + - "t_error_time\030\n \001(\0132\032.google.protobuf.Tim" + - "estamp\022-\n\021last_error_status\030\013 \001(\0132\022.goog" + - "le.rpc.Status\0221\n\006config\030\r \001(\0132!.google.c" + - "loud.iot.v1.DeviceConfig\022/\n\005state\030\020 \001(\0132" + - " .google.cloud.iot.v1.DeviceState\0220\n\tlog" + - "_level\030\025 \001(\0162\035.google.cloud.iot.v1.LogLe" + - "vel\022;\n\010metadata\030\021 \003(\0132).google.cloud.iot" + - ".v1.Device.MetadataEntry\022:\n\016gateway_conf" + - "ig\030\030 \001(\0132\".google.cloud.iot.v1.GatewayCo" + - "nfig\032/\n\rMetadataEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005va" + - "lue\030\002 \001(\t:\0028\001:s\352Ap\n\036cloudiot.googleapis." + - "com/Device\022Nprojects/{project}/locations" + - "/{location}/registries/{registry}/device" + - "s/{device}\"\356\001\n\rGatewayConfig\0226\n\014gateway_" + - "type\030\001 \001(\0162 .google.cloud.iot.v1.Gateway" + - "Type\022C\n\023gateway_auth_method\030\002 \001(\0162&.goog" + - "le.cloud.iot.v1.GatewayAuthMethod\022 \n\030las" + - "t_accessed_gateway_id\030\003 \001(\t\022>\n\032last_acce" + - "ssed_gateway_time\030\004 \001(\0132\032.google.protobu" + - "f.Timestamp\"\217\004\n\016DeviceRegistry\022\n\n\002id\030\001 \001" + - "(\t\022\014\n\004name\030\002 \001(\t\022P\n\032event_notification_c" + - "onfigs\030\n \003(\0132,.google.cloud.iot.v1.Event" + - "NotificationConfig\022O\n\031state_notification" + - "_config\030\007 \001(\0132,.google.cloud.iot.v1.Stat" + - "eNotificationConfig\0224\n\013mqtt_config\030\004 \001(\013" + - "2\037.google.cloud.iot.v1.MqttConfig\0224\n\013htt" + - "p_config\030\t \001(\0132\037.google.cloud.iot.v1.Htt" + - "pConfig\0220\n\tlog_level\030\013 \001(\0162\035.google.clou" + - "d.iot.v1.LogLevel\022<\n\013credentials\030\010 \003(\0132\'" + - ".google.cloud.iot.v1.RegistryCredential:" + - "d\352Aa\n cloudiot.googleapis.com/Registry\022=" + - "projects/{project}/locations/{location}/" + - "registries/{registry}\"H\n\nMqttConfig\022:\n\022m" + - "qtt_enabled_state\030\001 \001(\0162\036.google.cloud.i" + - "ot.v1.MqttState\"H\n\nHttpConfig\022:\n\022http_en" + - "abled_state\030\001 \001(\0162\036.google.cloud.iot.v1." + - "HttpState\"O\n\027EventNotificationConfig\022\031\n\021" + - "subfolder_matches\030\002 \001(\t\022\031\n\021pubsub_topic_" + - "name\030\001 \001(\t\"4\n\027StateNotificationConfig\022\031\n" + - "\021pubsub_topic_name\030\001 \001(\t\"o\n\022RegistryCred" + - "ential\022K\n\026public_key_certificate\030\001 \001(\0132)" + - ".google.cloud.iot.v1.PublicKeyCertificat" + - "eH\000B\014\n\ncredential\"\320\001\n\026X509CertificateDet" + - "ails\022\016\n\006issuer\030\001 \001(\t\022\017\n\007subject\030\002 \001(\t\022.\n" + - "\nstart_time\030\003 \001(\0132\032.google.protobuf.Time" + - "stamp\022/\n\013expiry_time\030\004 \001(\0132\032.google.prot" + - "obuf.Timestamp\022\033\n\023signature_algorithm\030\005 " + - "\001(\t\022\027\n\017public_key_type\030\006 \001(\t\"\257\001\n\024PublicK" + - "eyCertificate\022?\n\006format\030\001 \001(\0162/.google.c" + - "loud.iot.v1.PublicKeyCertificateFormat\022\023" + - "\n\013certificate\030\002 \001(\t\022A\n\014x509_details\030\003 \001(" + - "\0132+.google.cloud.iot.v1.X509CertificateD" + - "etails\"\225\001\n\020DeviceCredential\022>\n\npublic_ke" + - "y\030\002 \001(\0132(.google.cloud.iot.v1.PublicKeyC" + - "redentialH\000\0223\n\017expiration_time\030\006 \001(\0132\032.g" + - "oogle.protobuf.TimestampB\014\n\ncredential\"X" + - "\n\023PublicKeyCredential\0224\n\006format\030\001 \001(\0162$." + - "google.cloud.iot.v1.PublicKeyFormat\022\013\n\003k" + - "ey\030\002 \001(\t\"\240\001\n\014DeviceConfig\022\017\n\007version\030\001 \001" + - "(\003\0225\n\021cloud_update_time\030\002 \001(\0132\032.google.p" + - "rotobuf.Timestamp\0223\n\017device_ack_time\030\003 \001" + - "(\0132\032.google.protobuf.Timestamp\022\023\n\013binary" + - "_data\030\004 \001(\014\"S\n\013DeviceState\022/\n\013update_tim" + - "e\030\001 \001(\0132\032.google.protobuf.Timestamp\022\023\n\013b" + - "inary_data\030\002 \001(\014*L\n\tMqttState\022\032\n\026MQTT_ST" + - "ATE_UNSPECIFIED\020\000\022\020\n\014MQTT_ENABLED\020\001\022\021\n\rM" + - "QTT_DISABLED\020\002*L\n\tHttpState\022\032\n\026HTTP_STAT" + - "E_UNSPECIFIED\020\000\022\020\n\014HTTP_ENABLED\020\001\022\021\n\rHTT" + - "P_DISABLED\020\002*O\n\010LogLevel\022\031\n\025LOG_LEVEL_UN" + - "SPECIFIED\020\000\022\010\n\004NONE\020\n\022\t\n\005ERROR\020\024\022\010\n\004INFO" + - "\020\036\022\t\n\005DEBUG\020(*I\n\013GatewayType\022\034\n\030GATEWAY_" + - "TYPE_UNSPECIFIED\020\000\022\013\n\007GATEWAY\020\001\022\017\n\013NON_G" + - "ATEWAY\020\002*\221\001\n\021GatewayAuthMethod\022#\n\037GATEWA" + - "Y_AUTH_METHOD_UNSPECIFIED\020\000\022\024\n\020ASSOCIATI" + - "ON_ONLY\020\001\022\032\n\026DEVICE_AUTH_TOKEN_ONLY\020\002\022%\n" + - "!ASSOCIATION_AND_DEVICE_AUTH_TOKEN\020\003*e\n\032" + - "PublicKeyCertificateFormat\022-\n)UNSPECIFIE" + - "D_PUBLIC_KEY_CERTIFICATE_FORMAT\020\000\022\030\n\024X50" + - "9_CERTIFICATE_PEM\020\001*v\n\017PublicKeyFormat\022!" + - "\n\035UNSPECIFIED_PUBLIC_KEY_FORMAT\020\000\022\013\n\007RSA" + - "_PEM\020\003\022\020\n\014RSA_X509_PEM\020\001\022\r\n\tES256_PEM\020\002\022" + - "\022\n\016ES256_X509_PEM\020\004Bf\n\027com.google.cloud." + - "iot.v1B\016ResourcesProtoP\001Z6google.golang." + - "org/genproto/googleapis/cloud/iot/v1;iot" + - "\370\001\001b\006proto3" - }; - descriptor = com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - com.google.api.ResourceProto.getDescriptor(), - com.google.protobuf.TimestampProto.getDescriptor(), - com.google.rpc.StatusProto.getDescriptor(), - }); - internal_static_google_cloud_iot_v1_Device_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_google_cloud_iot_v1_Device_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_iot_v1_Device_descriptor, - new java.lang.String[] { "Id", "Name", "NumId", "Credentials", "LastHeartbeatTime", "LastEventTime", "LastStateTime", "LastConfigAckTime", "LastConfigSendTime", "Blocked", "LastErrorTime", "LastErrorStatus", "Config", "State", "LogLevel", "Metadata", "GatewayConfig", }); - internal_static_google_cloud_iot_v1_Device_MetadataEntry_descriptor = - internal_static_google_cloud_iot_v1_Device_descriptor.getNestedTypes().get(0); - internal_static_google_cloud_iot_v1_Device_MetadataEntry_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_iot_v1_Device_MetadataEntry_descriptor, - new java.lang.String[] { "Key", "Value", }); - internal_static_google_cloud_iot_v1_GatewayConfig_descriptor = - getDescriptor().getMessageTypes().get(1); - internal_static_google_cloud_iot_v1_GatewayConfig_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_iot_v1_GatewayConfig_descriptor, - new java.lang.String[] { "GatewayType", "GatewayAuthMethod", "LastAccessedGatewayId", "LastAccessedGatewayTime", }); - internal_static_google_cloud_iot_v1_DeviceRegistry_descriptor = - getDescriptor().getMessageTypes().get(2); - internal_static_google_cloud_iot_v1_DeviceRegistry_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_iot_v1_DeviceRegistry_descriptor, - new java.lang.String[] { "Id", "Name", "EventNotificationConfigs", "StateNotificationConfig", "MqttConfig", "HttpConfig", "LogLevel", "Credentials", }); - internal_static_google_cloud_iot_v1_MqttConfig_descriptor = - getDescriptor().getMessageTypes().get(3); - internal_static_google_cloud_iot_v1_MqttConfig_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_iot_v1_MqttConfig_descriptor, - new java.lang.String[] { "MqttEnabledState", }); - internal_static_google_cloud_iot_v1_HttpConfig_descriptor = - getDescriptor().getMessageTypes().get(4); - internal_static_google_cloud_iot_v1_HttpConfig_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_iot_v1_HttpConfig_descriptor, - new java.lang.String[] { "HttpEnabledState", }); - internal_static_google_cloud_iot_v1_EventNotificationConfig_descriptor = - getDescriptor().getMessageTypes().get(5); - internal_static_google_cloud_iot_v1_EventNotificationConfig_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_iot_v1_EventNotificationConfig_descriptor, - new java.lang.String[] { "SubfolderMatches", "PubsubTopicName", }); - internal_static_google_cloud_iot_v1_StateNotificationConfig_descriptor = - getDescriptor().getMessageTypes().get(6); - internal_static_google_cloud_iot_v1_StateNotificationConfig_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_iot_v1_StateNotificationConfig_descriptor, - new java.lang.String[] { "PubsubTopicName", }); - internal_static_google_cloud_iot_v1_RegistryCredential_descriptor = - getDescriptor().getMessageTypes().get(7); - internal_static_google_cloud_iot_v1_RegistryCredential_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_iot_v1_RegistryCredential_descriptor, - new java.lang.String[] { "PublicKeyCertificate", "Credential", }); - internal_static_google_cloud_iot_v1_X509CertificateDetails_descriptor = - getDescriptor().getMessageTypes().get(8); - internal_static_google_cloud_iot_v1_X509CertificateDetails_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_iot_v1_X509CertificateDetails_descriptor, - new java.lang.String[] { "Issuer", "Subject", "StartTime", "ExpiryTime", "SignatureAlgorithm", "PublicKeyType", }); - internal_static_google_cloud_iot_v1_PublicKeyCertificate_descriptor = - getDescriptor().getMessageTypes().get(9); - internal_static_google_cloud_iot_v1_PublicKeyCertificate_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_iot_v1_PublicKeyCertificate_descriptor, - new java.lang.String[] { "Format", "Certificate", "X509Details", }); - internal_static_google_cloud_iot_v1_DeviceCredential_descriptor = - getDescriptor().getMessageTypes().get(10); - internal_static_google_cloud_iot_v1_DeviceCredential_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_iot_v1_DeviceCredential_descriptor, - new java.lang.String[] { "PublicKey", "ExpirationTime", "Credential", }); - internal_static_google_cloud_iot_v1_PublicKeyCredential_descriptor = - getDescriptor().getMessageTypes().get(11); - internal_static_google_cloud_iot_v1_PublicKeyCredential_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_iot_v1_PublicKeyCredential_descriptor, - new java.lang.String[] { "Format", "Key", }); - internal_static_google_cloud_iot_v1_DeviceConfig_descriptor = - getDescriptor().getMessageTypes().get(12); - internal_static_google_cloud_iot_v1_DeviceConfig_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_iot_v1_DeviceConfig_descriptor, - new java.lang.String[] { "Version", "CloudUpdateTime", "DeviceAckTime", "BinaryData", }); - internal_static_google_cloud_iot_v1_DeviceState_descriptor = - getDescriptor().getMessageTypes().get(13); - internal_static_google_cloud_iot_v1_DeviceState_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_iot_v1_DeviceState_descriptor, - new java.lang.String[] { "UpdateTime", "BinaryData", }); - com.google.protobuf.ExtensionRegistry registry = - com.google.protobuf.ExtensionRegistry.newInstance(); - registry.add(com.google.api.ResourceProto.resource); - com.google.protobuf.Descriptors.FileDescriptor - .internalUpdateFileDescriptor(descriptor, registry); - com.google.api.ResourceProto.getDescriptor(); - com.google.protobuf.TimestampProto.getDescriptor(); - com.google.rpc.StatusProto.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/owl-bot-staging/v1/proto-google-cloud-iot-v1/src/main/java/com/google/cloud/iot/v1/SendCommandToDeviceResponseOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-iot-v1/src/main/java/com/google/cloud/iot/v1/SendCommandToDeviceResponseOrBuilder.java deleted file mode 100644 index ef85ec03..00000000 --- a/owl-bot-staging/v1/proto-google-cloud-iot-v1/src/main/java/com/google/cloud/iot/v1/SendCommandToDeviceResponseOrBuilder.java +++ /dev/null @@ -1,9 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/iot/v1/device_manager.proto - -package com.google.cloud.iot.v1; - -public interface SendCommandToDeviceResponseOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.cloud.iot.v1.SendCommandToDeviceResponse) - com.google.protobuf.MessageOrBuilder { -} diff --git a/owl-bot-staging/v1/proto-google-cloud-iot-v1/src/main/java/com/google/cloud/iot/v1/UnbindDeviceFromGatewayResponseOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-iot-v1/src/main/java/com/google/cloud/iot/v1/UnbindDeviceFromGatewayResponseOrBuilder.java deleted file mode 100644 index ace2c0a1..00000000 --- a/owl-bot-staging/v1/proto-google-cloud-iot-v1/src/main/java/com/google/cloud/iot/v1/UnbindDeviceFromGatewayResponseOrBuilder.java +++ /dev/null @@ -1,9 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/iot/v1/device_manager.proto - -package com.google.cloud.iot.v1; - -public interface UnbindDeviceFromGatewayResponseOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.cloud.iot.v1.UnbindDeviceFromGatewayResponse) - com.google.protobuf.MessageOrBuilder { -} diff --git a/owl-bot-staging/v1/proto-google-cloud-iot-v1/src/main/java/com/google/cloud/iot/v1/BindDeviceToGatewayRequest.java b/proto-google-cloud-iot-v1/src/main/java/com/google/cloud/iot/v1/BindDeviceToGatewayRequest.java similarity index 70% rename from owl-bot-staging/v1/proto-google-cloud-iot-v1/src/main/java/com/google/cloud/iot/v1/BindDeviceToGatewayRequest.java rename to proto-google-cloud-iot-v1/src/main/java/com/google/cloud/iot/v1/BindDeviceToGatewayRequest.java index 646c3ce6..572703bf 100644 --- a/owl-bot-staging/v1/proto-google-cloud-iot-v1/src/main/java/com/google/cloud/iot/v1/BindDeviceToGatewayRequest.java +++ b/proto-google-cloud-iot-v1/src/main/java/com/google/cloud/iot/v1/BindDeviceToGatewayRequest.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/iot/v1/device_manager.proto package com.google.cloud.iot.v1; /** + * + * *
  * Request for `BindDeviceToGateway`.
  * 
* * Protobuf type {@code google.cloud.iot.v1.BindDeviceToGatewayRequest} */ -public final class BindDeviceToGatewayRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class BindDeviceToGatewayRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.iot.v1.BindDeviceToGatewayRequest) BindDeviceToGatewayRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use BindDeviceToGatewayRequest.newBuilder() to construct. private BindDeviceToGatewayRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private BindDeviceToGatewayRequest() { parent_ = ""; gatewayId_ = ""; @@ -27,16 +45,15 @@ private BindDeviceToGatewayRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new BindDeviceToGatewayRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private BindDeviceToGatewayRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -55,31 +72,34 @@ private BindDeviceToGatewayRequest( 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(); - gatewayId_ = s; - break; - } - case 26: { - java.lang.String s = input.readStringRequireUtf8(); + gatewayId_ = s; + break; + } + case 26: + { + java.lang.String s = input.readStringRequireUtf8(); - deviceId_ = s; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + deviceId_ = s; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -87,35 +107,42 @@ private BindDeviceToGatewayRequest( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.iot.v1.DeviceManagerProto.internal_static_google_cloud_iot_v1_BindDeviceToGatewayRequest_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.iot.v1.DeviceManagerProto + .internal_static_google_cloud_iot_v1_BindDeviceToGatewayRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.iot.v1.DeviceManagerProto.internal_static_google_cloud_iot_v1_BindDeviceToGatewayRequest_fieldAccessorTable + return com.google.cloud.iot.v1.DeviceManagerProto + .internal_static_google_cloud_iot_v1_BindDeviceToGatewayRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.iot.v1.BindDeviceToGatewayRequest.class, com.google.cloud.iot.v1.BindDeviceToGatewayRequest.Builder.class); + com.google.cloud.iot.v1.BindDeviceToGatewayRequest.class, + com.google.cloud.iot.v1.BindDeviceToGatewayRequest.Builder.class); } public static final int PARENT_FIELD_NUMBER = 1; private volatile java.lang.Object parent_; /** + * + * *
    * Required. The name of the registry. For example,
    * `projects/example-project/locations/us-central1/registries/my-registry`.
    * 
* - * string parent = 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 @@ -124,30 +151,32 @@ public java.lang.String getParent() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; } } /** + * + * *
    * Required. The name of the registry. For example,
    * `projects/example-project/locations/us-central1/registries/my-registry`.
    * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for parent. */ @java.lang.Override - public com.google.protobuf.ByteString - getParentBytes() { + public com.google.protobuf.ByteString getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); parent_ = b; return b; } else { @@ -158,12 +187,15 @@ public java.lang.String getParent() { public static final int GATEWAY_ID_FIELD_NUMBER = 2; private volatile java.lang.Object gatewayId_; /** + * + * *
    * Required. The value of `gateway_id` can be either the device numeric ID or the
    * user-defined device identifier.
    * 
* * string gateway_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The gatewayId. */ @java.lang.Override @@ -172,30 +204,30 @@ public java.lang.String getGatewayId() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); gatewayId_ = s; return s; } } /** + * + * *
    * Required. The value of `gateway_id` can be either the device numeric ID or the
    * user-defined device identifier.
    * 
* * string gateway_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for gatewayId. */ @java.lang.Override - public com.google.protobuf.ByteString - getGatewayIdBytes() { + public com.google.protobuf.ByteString getGatewayIdBytes() { java.lang.Object ref = gatewayId_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); gatewayId_ = b; return b; } else { @@ -206,6 +238,8 @@ public java.lang.String getGatewayId() { public static final int DEVICE_ID_FIELD_NUMBER = 3; private volatile java.lang.Object deviceId_; /** + * + * *
    * Required. The device to associate with the specified gateway. The value of
    * `device_id` can be either the device numeric ID or the user-defined device
@@ -213,6 +247,7 @@ public java.lang.String getGatewayId() {
    * 
* * string device_id = 3 [(.google.api.field_behavior) = REQUIRED]; + * * @return The deviceId. */ @java.lang.Override @@ -221,14 +256,15 @@ public java.lang.String getDeviceId() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); deviceId_ = s; return s; } } /** + * + * *
    * Required. The device to associate with the specified gateway. The value of
    * `device_id` can be either the device numeric ID or the user-defined device
@@ -236,16 +272,15 @@ public java.lang.String getDeviceId() {
    * 
* * string device_id = 3 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for deviceId. */ @java.lang.Override - public com.google.protobuf.ByteString - getDeviceIdBytes() { + public com.google.protobuf.ByteString getDeviceIdBytes() { java.lang.Object ref = deviceId_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); deviceId_ = b; return b; } else { @@ -254,6 +289,7 @@ public java.lang.String getDeviceId() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -265,8 +301,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.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_); } @@ -302,19 +337,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.iot.v1.BindDeviceToGatewayRequest)) { return super.equals(obj); } - com.google.cloud.iot.v1.BindDeviceToGatewayRequest other = (com.google.cloud.iot.v1.BindDeviceToGatewayRequest) obj; + com.google.cloud.iot.v1.BindDeviceToGatewayRequest other = + (com.google.cloud.iot.v1.BindDeviceToGatewayRequest) obj; - if (!getParent() - .equals(other.getParent())) return false; - if (!getGatewayId() - .equals(other.getGatewayId())) return false; - if (!getDeviceId() - .equals(other.getDeviceId())) return false; + if (!getParent().equals(other.getParent())) return false; + if (!getGatewayId().equals(other.getGatewayId())) return false; + if (!getDeviceId().equals(other.getDeviceId())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -338,117 +371,126 @@ public int hashCode() { } public static com.google.cloud.iot.v1.BindDeviceToGatewayRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.iot.v1.BindDeviceToGatewayRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.iot.v1.BindDeviceToGatewayRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.iot.v1.BindDeviceToGatewayRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.iot.v1.BindDeviceToGatewayRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.iot.v1.BindDeviceToGatewayRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.iot.v1.BindDeviceToGatewayRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.iot.v1.BindDeviceToGatewayRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.iot.v1.BindDeviceToGatewayRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.iot.v1.BindDeviceToGatewayRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.iot.v1.BindDeviceToGatewayRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.iot.v1.BindDeviceToGatewayRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.iot.v1.BindDeviceToGatewayRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.iot.v1.BindDeviceToGatewayRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.cloud.iot.v1.BindDeviceToGatewayRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected 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 `BindDeviceToGateway`.
    * 
* * Protobuf type {@code google.cloud.iot.v1.BindDeviceToGatewayRequest} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.iot.v1.BindDeviceToGatewayRequest) com.google.cloud.iot.v1.BindDeviceToGatewayRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.iot.v1.DeviceManagerProto.internal_static_google_cloud_iot_v1_BindDeviceToGatewayRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.iot.v1.DeviceManagerProto + .internal_static_google_cloud_iot_v1_BindDeviceToGatewayRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.iot.v1.DeviceManagerProto.internal_static_google_cloud_iot_v1_BindDeviceToGatewayRequest_fieldAccessorTable + return com.google.cloud.iot.v1.DeviceManagerProto + .internal_static_google_cloud_iot_v1_BindDeviceToGatewayRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.iot.v1.BindDeviceToGatewayRequest.class, com.google.cloud.iot.v1.BindDeviceToGatewayRequest.Builder.class); + com.google.cloud.iot.v1.BindDeviceToGatewayRequest.class, + com.google.cloud.iot.v1.BindDeviceToGatewayRequest.Builder.class); } // Construct using com.google.cloud.iot.v1.BindDeviceToGatewayRequest.newBuilder() @@ -456,16 +498,15 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -479,9 +520,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.iot.v1.DeviceManagerProto.internal_static_google_cloud_iot_v1_BindDeviceToGatewayRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.iot.v1.DeviceManagerProto + .internal_static_google_cloud_iot_v1_BindDeviceToGatewayRequest_descriptor; } @java.lang.Override @@ -500,7 +541,8 @@ public com.google.cloud.iot.v1.BindDeviceToGatewayRequest build() { @java.lang.Override public com.google.cloud.iot.v1.BindDeviceToGatewayRequest buildPartial() { - com.google.cloud.iot.v1.BindDeviceToGatewayRequest result = new com.google.cloud.iot.v1.BindDeviceToGatewayRequest(this); + com.google.cloud.iot.v1.BindDeviceToGatewayRequest result = + new com.google.cloud.iot.v1.BindDeviceToGatewayRequest(this); result.parent_ = parent_; result.gatewayId_ = gatewayId_; result.deviceId_ = deviceId_; @@ -512,38 +554,39 @@ public com.google.cloud.iot.v1.BindDeviceToGatewayRequest buildPartial() { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.iot.v1.BindDeviceToGatewayRequest) { - return mergeFrom((com.google.cloud.iot.v1.BindDeviceToGatewayRequest)other); + return mergeFrom((com.google.cloud.iot.v1.BindDeviceToGatewayRequest) other); } else { super.mergeFrom(other); return this; @@ -551,7 +594,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.iot.v1.BindDeviceToGatewayRequest other) { - if (other == com.google.cloud.iot.v1.BindDeviceToGatewayRequest.getDefaultInstance()) return this; + if (other == com.google.cloud.iot.v1.BindDeviceToGatewayRequest.getDefaultInstance()) + return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; onChanged(); @@ -583,7 +627,8 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.iot.v1.BindDeviceToGatewayRequest) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.iot.v1.BindDeviceToGatewayRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -595,19 +640,23 @@ public Builder mergeFrom( private java.lang.Object parent_ = ""; /** + * + * *
      * Required. The name of the registry. For example,
      * `projects/example-project/locations/us-central1/registries/my-registry`.
      * 
* - * string parent = 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; @@ -616,21 +665,24 @@ public java.lang.String getParent() { } } /** + * + * *
      * Required. The name of the registry. For example,
      * `projects/example-project/locations/us-central1/registries/my-registry`.
      * 
* - * string parent = 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 { @@ -638,57 +690,70 @@ public java.lang.String getParent() { } } /** + * + * *
      * Required. The name of the registry. For example,
      * `projects/example-project/locations/us-central1/registries/my-registry`.
      * 
* - * 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 name of the registry. For example,
      * `projects/example-project/locations/us-central1/registries/my-registry`.
      * 
* - * string 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 name of the registry. For example,
      * `projects/example-project/locations/us-central1/registries/my-registry`.
      * 
* - * 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; @@ -696,19 +761,21 @@ public Builder setParentBytes( private java.lang.Object gatewayId_ = ""; /** + * + * *
      * Required. The value of `gateway_id` can be either the device numeric ID or the
      * user-defined device identifier.
      * 
* * string gateway_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The gatewayId. */ public java.lang.String getGatewayId() { java.lang.Object ref = gatewayId_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); gatewayId_ = s; return s; @@ -717,21 +784,22 @@ public java.lang.String getGatewayId() { } } /** + * + * *
      * Required. The value of `gateway_id` can be either the device numeric ID or the
      * user-defined device identifier.
      * 
* * string gateway_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for gatewayId. */ - public com.google.protobuf.ByteString - getGatewayIdBytes() { + public com.google.protobuf.ByteString getGatewayIdBytes() { java.lang.Object ref = gatewayId_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); gatewayId_ = b; return b; } else { @@ -739,57 +807,64 @@ public java.lang.String getGatewayId() { } } /** + * + * *
      * Required. The value of `gateway_id` can be either the device numeric ID or the
      * user-defined device identifier.
      * 
* * string gateway_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @param value The gatewayId to set. * @return This builder for chaining. */ - public Builder setGatewayId( - java.lang.String value) { + public Builder setGatewayId(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + gatewayId_ = value; onChanged(); return this; } /** + * + * *
      * Required. The value of `gateway_id` can be either the device numeric ID or the
      * user-defined device identifier.
      * 
* * string gateway_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return This builder for chaining. */ public Builder clearGatewayId() { - + gatewayId_ = getDefaultInstance().getGatewayId(); onChanged(); return this; } /** + * + * *
      * Required. The value of `gateway_id` can be either the device numeric ID or the
      * user-defined device identifier.
      * 
* * string gateway_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @param value The bytes for gatewayId to set. * @return This builder for chaining. */ - public Builder setGatewayIdBytes( - com.google.protobuf.ByteString value) { + public Builder setGatewayIdBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + gatewayId_ = value; onChanged(); return this; @@ -797,6 +872,8 @@ public Builder setGatewayIdBytes( private java.lang.Object deviceId_ = ""; /** + * + * *
      * Required. The device to associate with the specified gateway. The value of
      * `device_id` can be either the device numeric ID or the user-defined device
@@ -804,13 +881,13 @@ public Builder setGatewayIdBytes(
      * 
* * string device_id = 3 [(.google.api.field_behavior) = REQUIRED]; + * * @return The deviceId. */ public java.lang.String getDeviceId() { java.lang.Object ref = deviceId_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); deviceId_ = s; return s; @@ -819,6 +896,8 @@ public java.lang.String getDeviceId() { } } /** + * + * *
      * Required. The device to associate with the specified gateway. The value of
      * `device_id` can be either the device numeric ID or the user-defined device
@@ -826,15 +905,14 @@ public java.lang.String getDeviceId() {
      * 
* * string device_id = 3 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for deviceId. */ - public com.google.protobuf.ByteString - getDeviceIdBytes() { + public com.google.protobuf.ByteString getDeviceIdBytes() { java.lang.Object ref = deviceId_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); deviceId_ = b; return b; } else { @@ -842,6 +920,8 @@ public java.lang.String getDeviceId() { } } /** + * + * *
      * Required. The device to associate with the specified gateway. The value of
      * `device_id` can be either the device numeric ID or the user-defined device
@@ -849,20 +929,22 @@ public java.lang.String getDeviceId() {
      * 
* * string device_id = 3 [(.google.api.field_behavior) = REQUIRED]; + * * @param value The deviceId to set. * @return This builder for chaining. */ - public Builder setDeviceId( - java.lang.String value) { + public Builder setDeviceId(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + deviceId_ = value; onChanged(); return this; } /** + * + * *
      * Required. The device to associate with the specified gateway. The value of
      * `device_id` can be either the device numeric ID or the user-defined device
@@ -870,15 +952,18 @@ public Builder setDeviceId(
      * 
* * string device_id = 3 [(.google.api.field_behavior) = REQUIRED]; + * * @return This builder for chaining. */ public Builder clearDeviceId() { - + deviceId_ = getDefaultInstance().getDeviceId(); onChanged(); return this; } /** + * + * *
      * Required. The device to associate with the specified gateway. The value of
      * `device_id` can be either the device numeric ID or the user-defined device
@@ -886,23 +971,23 @@ public Builder clearDeviceId() {
      * 
* * string device_id = 3 [(.google.api.field_behavior) = REQUIRED]; + * * @param value The bytes for deviceId to set. * @return This builder for chaining. */ - public Builder setDeviceIdBytes( - com.google.protobuf.ByteString value) { + public Builder setDeviceIdBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + deviceId_ = value; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -912,12 +997,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.iot.v1.BindDeviceToGatewayRequest) } // @@protoc_insertion_point(class_scope:google.cloud.iot.v1.BindDeviceToGatewayRequest) private static final com.google.cloud.iot.v1.BindDeviceToGatewayRequest DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.iot.v1.BindDeviceToGatewayRequest(); } @@ -926,16 +1011,16 @@ public static com.google.cloud.iot.v1.BindDeviceToGatewayRequest getDefaultInsta return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public BindDeviceToGatewayRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new BindDeviceToGatewayRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public BindDeviceToGatewayRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new BindDeviceToGatewayRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -950,6 +1035,4 @@ public com.google.protobuf.Parser getParserForType() public com.google.cloud.iot.v1.BindDeviceToGatewayRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1/proto-google-cloud-iot-v1/src/main/java/com/google/cloud/iot/v1/BindDeviceToGatewayRequestOrBuilder.java b/proto-google-cloud-iot-v1/src/main/java/com/google/cloud/iot/v1/BindDeviceToGatewayRequestOrBuilder.java similarity index 63% rename from owl-bot-staging/v1/proto-google-cloud-iot-v1/src/main/java/com/google/cloud/iot/v1/BindDeviceToGatewayRequestOrBuilder.java rename to proto-google-cloud-iot-v1/src/main/java/com/google/cloud/iot/v1/BindDeviceToGatewayRequestOrBuilder.java index 5bca7cba..4476be56 100644 --- a/owl-bot-staging/v1/proto-google-cloud-iot-v1/src/main/java/com/google/cloud/iot/v1/BindDeviceToGatewayRequestOrBuilder.java +++ b/proto-google-cloud-iot-v1/src/main/java/com/google/cloud/iot/v1/BindDeviceToGatewayRequestOrBuilder.java @@ -1,57 +1,89 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/iot/v1/device_manager.proto package com.google.cloud.iot.v1; -public interface BindDeviceToGatewayRequestOrBuilder extends +public interface BindDeviceToGatewayRequestOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.iot.v1.BindDeviceToGatewayRequest) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Required. The name of the registry. For example,
    * `projects/example-project/locations/us-central1/registries/my-registry`.
    * 
* - * string parent = 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 name of the registry. For example,
    * `projects/example-project/locations/us-central1/registries/my-registry`.
    * 
* - * string parent = 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 value of `gateway_id` can be either the device numeric ID or the
    * user-defined device identifier.
    * 
* * string gateway_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The gatewayId. */ java.lang.String getGatewayId(); /** + * + * *
    * Required. The value of `gateway_id` can be either the device numeric ID or the
    * user-defined device identifier.
    * 
* * string gateway_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for gatewayId. */ - com.google.protobuf.ByteString - getGatewayIdBytes(); + com.google.protobuf.ByteString getGatewayIdBytes(); /** + * + * *
    * Required. The device to associate with the specified gateway. The value of
    * `device_id` can be either the device numeric ID or the user-defined device
@@ -59,10 +91,13 @@ public interface BindDeviceToGatewayRequestOrBuilder extends
    * 
* * string device_id = 3 [(.google.api.field_behavior) = REQUIRED]; + * * @return The deviceId. */ java.lang.String getDeviceId(); /** + * + * *
    * Required. The device to associate with the specified gateway. The value of
    * `device_id` can be either the device numeric ID or the user-defined device
@@ -70,8 +105,8 @@ public interface BindDeviceToGatewayRequestOrBuilder extends
    * 
* * string device_id = 3 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for deviceId. */ - com.google.protobuf.ByteString - getDeviceIdBytes(); + com.google.protobuf.ByteString getDeviceIdBytes(); } diff --git a/owl-bot-staging/v1/proto-google-cloud-iot-v1/src/main/java/com/google/cloud/iot/v1/BindDeviceToGatewayResponse.java b/proto-google-cloud-iot-v1/src/main/java/com/google/cloud/iot/v1/BindDeviceToGatewayResponse.java similarity index 65% rename from owl-bot-staging/v1/proto-google-cloud-iot-v1/src/main/java/com/google/cloud/iot/v1/BindDeviceToGatewayResponse.java rename to proto-google-cloud-iot-v1/src/main/java/com/google/cloud/iot/v1/BindDeviceToGatewayResponse.java index 7fafea0d..40602ac1 100644 --- a/owl-bot-staging/v1/proto-google-cloud-iot-v1/src/main/java/com/google/cloud/iot/v1/BindDeviceToGatewayResponse.java +++ b/proto-google-cloud-iot-v1/src/main/java/com/google/cloud/iot/v1/BindDeviceToGatewayResponse.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/iot/v1/device_manager.proto package com.google.cloud.iot.v1; /** + * + * *
  * Response for `BindDeviceToGateway`.
  * 
* * Protobuf type {@code google.cloud.iot.v1.BindDeviceToGatewayResponse} */ -public final class BindDeviceToGatewayResponse extends - com.google.protobuf.GeneratedMessageV3 implements +public final class BindDeviceToGatewayResponse extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.iot.v1.BindDeviceToGatewayResponse) BindDeviceToGatewayResponseOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use BindDeviceToGatewayResponse.newBuilder() to construct. private BindDeviceToGatewayResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private BindDeviceToGatewayResponse() { - } + + private BindDeviceToGatewayResponse() {} @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new BindDeviceToGatewayResponse(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private BindDeviceToGatewayResponse( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -52,13 +68,13 @@ private BindDeviceToGatewayResponse( case 0: done = true; break; - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -66,27 +82,30 @@ private BindDeviceToGatewayResponse( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.iot.v1.DeviceManagerProto.internal_static_google_cloud_iot_v1_BindDeviceToGatewayResponse_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.iot.v1.DeviceManagerProto + .internal_static_google_cloud_iot_v1_BindDeviceToGatewayResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.iot.v1.DeviceManagerProto.internal_static_google_cloud_iot_v1_BindDeviceToGatewayResponse_fieldAccessorTable + return com.google.cloud.iot.v1.DeviceManagerProto + .internal_static_google_cloud_iot_v1_BindDeviceToGatewayResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.iot.v1.BindDeviceToGatewayResponse.class, com.google.cloud.iot.v1.BindDeviceToGatewayResponse.Builder.class); + com.google.cloud.iot.v1.BindDeviceToGatewayResponse.class, + com.google.cloud.iot.v1.BindDeviceToGatewayResponse.Builder.class); } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -98,8 +117,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { unknownFields.writeTo(output); } @@ -117,12 +135,13 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.iot.v1.BindDeviceToGatewayResponse)) { return super.equals(obj); } - com.google.cloud.iot.v1.BindDeviceToGatewayResponse other = (com.google.cloud.iot.v1.BindDeviceToGatewayResponse) obj; + com.google.cloud.iot.v1.BindDeviceToGatewayResponse other = + (com.google.cloud.iot.v1.BindDeviceToGatewayResponse) obj; if (!unknownFields.equals(other.unknownFields)) return false; return true; @@ -141,117 +160,126 @@ public int hashCode() { } public static com.google.cloud.iot.v1.BindDeviceToGatewayResponse parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.iot.v1.BindDeviceToGatewayResponse parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.iot.v1.BindDeviceToGatewayResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.iot.v1.BindDeviceToGatewayResponse parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.iot.v1.BindDeviceToGatewayResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.iot.v1.BindDeviceToGatewayResponse parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.iot.v1.BindDeviceToGatewayResponse parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.iot.v1.BindDeviceToGatewayResponse parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.iot.v1.BindDeviceToGatewayResponse parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.iot.v1.BindDeviceToGatewayResponse parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.iot.v1.BindDeviceToGatewayResponse parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.iot.v1.BindDeviceToGatewayResponse parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.iot.v1.BindDeviceToGatewayResponse parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.iot.v1.BindDeviceToGatewayResponse parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.cloud.iot.v1.BindDeviceToGatewayResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected 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 `BindDeviceToGateway`.
    * 
* * Protobuf type {@code google.cloud.iot.v1.BindDeviceToGatewayResponse} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.iot.v1.BindDeviceToGatewayResponse) com.google.cloud.iot.v1.BindDeviceToGatewayResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.iot.v1.DeviceManagerProto.internal_static_google_cloud_iot_v1_BindDeviceToGatewayResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.iot.v1.DeviceManagerProto + .internal_static_google_cloud_iot_v1_BindDeviceToGatewayResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.iot.v1.DeviceManagerProto.internal_static_google_cloud_iot_v1_BindDeviceToGatewayResponse_fieldAccessorTable + return com.google.cloud.iot.v1.DeviceManagerProto + .internal_static_google_cloud_iot_v1_BindDeviceToGatewayResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.iot.v1.BindDeviceToGatewayResponse.class, com.google.cloud.iot.v1.BindDeviceToGatewayResponse.Builder.class); + com.google.cloud.iot.v1.BindDeviceToGatewayResponse.class, + com.google.cloud.iot.v1.BindDeviceToGatewayResponse.Builder.class); } // Construct using com.google.cloud.iot.v1.BindDeviceToGatewayResponse.newBuilder() @@ -259,16 +287,15 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -276,9 +303,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.iot.v1.DeviceManagerProto.internal_static_google_cloud_iot_v1_BindDeviceToGatewayResponse_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.iot.v1.DeviceManagerProto + .internal_static_google_cloud_iot_v1_BindDeviceToGatewayResponse_descriptor; } @java.lang.Override @@ -297,7 +324,8 @@ public com.google.cloud.iot.v1.BindDeviceToGatewayResponse build() { @java.lang.Override public com.google.cloud.iot.v1.BindDeviceToGatewayResponse buildPartial() { - com.google.cloud.iot.v1.BindDeviceToGatewayResponse result = new com.google.cloud.iot.v1.BindDeviceToGatewayResponse(this); + com.google.cloud.iot.v1.BindDeviceToGatewayResponse result = + new com.google.cloud.iot.v1.BindDeviceToGatewayResponse(this); onBuilt(); return result; } @@ -306,38 +334,39 @@ public com.google.cloud.iot.v1.BindDeviceToGatewayResponse buildPartial() { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.iot.v1.BindDeviceToGatewayResponse) { - return mergeFrom((com.google.cloud.iot.v1.BindDeviceToGatewayResponse)other); + return mergeFrom((com.google.cloud.iot.v1.BindDeviceToGatewayResponse) other); } else { super.mergeFrom(other); return this; @@ -345,7 +374,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.iot.v1.BindDeviceToGatewayResponse other) { - if (other == com.google.cloud.iot.v1.BindDeviceToGatewayResponse.getDefaultInstance()) return this; + if (other == com.google.cloud.iot.v1.BindDeviceToGatewayResponse.getDefaultInstance()) + return this; this.mergeUnknownFields(other.unknownFields); onChanged(); return this; @@ -365,7 +395,8 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.iot.v1.BindDeviceToGatewayResponse) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.iot.v1.BindDeviceToGatewayResponse) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -374,9 +405,9 @@ public Builder mergeFrom( } return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -386,12 +417,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.iot.v1.BindDeviceToGatewayResponse) } // @@protoc_insertion_point(class_scope:google.cloud.iot.v1.BindDeviceToGatewayResponse) private static final com.google.cloud.iot.v1.BindDeviceToGatewayResponse DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.iot.v1.BindDeviceToGatewayResponse(); } @@ -400,16 +431,16 @@ public static com.google.cloud.iot.v1.BindDeviceToGatewayResponse getDefaultInst return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public BindDeviceToGatewayResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new BindDeviceToGatewayResponse(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public BindDeviceToGatewayResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new BindDeviceToGatewayResponse(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -424,6 +455,4 @@ public com.google.protobuf.Parser getParserForType( public com.google.cloud.iot.v1.BindDeviceToGatewayResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/proto-google-cloud-iot-v1/src/main/java/com/google/cloud/iot/v1/BindDeviceToGatewayResponseOrBuilder.java b/proto-google-cloud-iot-v1/src/main/java/com/google/cloud/iot/v1/BindDeviceToGatewayResponseOrBuilder.java new file mode 100644 index 00000000..a5011d31 --- /dev/null +++ b/proto-google-cloud-iot-v1/src/main/java/com/google/cloud/iot/v1/BindDeviceToGatewayResponseOrBuilder.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/iot/v1/device_manager.proto + +package com.google.cloud.iot.v1; + +public interface BindDeviceToGatewayResponseOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.iot.v1.BindDeviceToGatewayResponse) + com.google.protobuf.MessageOrBuilder {} diff --git a/owl-bot-staging/v1/proto-google-cloud-iot-v1/src/main/java/com/google/cloud/iot/v1/CreateDeviceRegistryRequest.java b/proto-google-cloud-iot-v1/src/main/java/com/google/cloud/iot/v1/CreateDeviceRegistryRequest.java similarity index 65% rename from owl-bot-staging/v1/proto-google-cloud-iot-v1/src/main/java/com/google/cloud/iot/v1/CreateDeviceRegistryRequest.java rename to proto-google-cloud-iot-v1/src/main/java/com/google/cloud/iot/v1/CreateDeviceRegistryRequest.java index c464495f..edc2adb1 100644 --- a/owl-bot-staging/v1/proto-google-cloud-iot-v1/src/main/java/com/google/cloud/iot/v1/CreateDeviceRegistryRequest.java +++ b/proto-google-cloud-iot-v1/src/main/java/com/google/cloud/iot/v1/CreateDeviceRegistryRequest.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/iot/v1/device_manager.proto package com.google.cloud.iot.v1; /** + * + * *
  * Request for `CreateDeviceRegistry`.
  * 
* * Protobuf type {@code google.cloud.iot.v1.CreateDeviceRegistryRequest} */ -public final class CreateDeviceRegistryRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class CreateDeviceRegistryRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.iot.v1.CreateDeviceRegistryRequest) CreateDeviceRegistryRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use CreateDeviceRegistryRequest.newBuilder() to construct. private CreateDeviceRegistryRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private CreateDeviceRegistryRequest() { parent_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new CreateDeviceRegistryRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private CreateDeviceRegistryRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -53,32 +70,36 @@ private CreateDeviceRegistryRequest( case 0: done = true; break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); - parent_ = s; - break; - } - case 18: { - com.google.cloud.iot.v1.DeviceRegistry.Builder subBuilder = null; - if (deviceRegistry_ != null) { - subBuilder = deviceRegistry_.toBuilder(); + parent_ = s; + break; } - deviceRegistry_ = input.readMessage(com.google.cloud.iot.v1.DeviceRegistry.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(deviceRegistry_); - deviceRegistry_ = subBuilder.buildPartial(); + case 18: + { + com.google.cloud.iot.v1.DeviceRegistry.Builder subBuilder = null; + if (deviceRegistry_ != null) { + subBuilder = deviceRegistry_.toBuilder(); + } + deviceRegistry_ = + input.readMessage( + com.google.cloud.iot.v1.DeviceRegistry.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(deviceRegistry_); + deviceRegistry_ = subBuilder.buildPartial(); + } + + break; } - - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -86,35 +107,42 @@ private CreateDeviceRegistryRequest( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.iot.v1.DeviceManagerProto.internal_static_google_cloud_iot_v1_CreateDeviceRegistryRequest_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.iot.v1.DeviceManagerProto + .internal_static_google_cloud_iot_v1_CreateDeviceRegistryRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.iot.v1.DeviceManagerProto.internal_static_google_cloud_iot_v1_CreateDeviceRegistryRequest_fieldAccessorTable + return com.google.cloud.iot.v1.DeviceManagerProto + .internal_static_google_cloud_iot_v1_CreateDeviceRegistryRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.iot.v1.CreateDeviceRegistryRequest.class, com.google.cloud.iot.v1.CreateDeviceRegistryRequest.Builder.class); + com.google.cloud.iot.v1.CreateDeviceRegistryRequest.class, + com.google.cloud.iot.v1.CreateDeviceRegistryRequest.Builder.class); } public static final int PARENT_FIELD_NUMBER = 1; private volatile java.lang.Object parent_; /** + * + * *
    * Required. The project and cloud region where this device registry must be created.
    * For example, `projects/example-project/locations/us-central1`.
    * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The parent. */ @java.lang.Override @@ -123,30 +151,32 @@ public java.lang.String getParent() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; } } /** + * + * *
    * Required. The project and cloud region where this device registry must be created.
    * For example, `projects/example-project/locations/us-central1`.
    * 
* - * string parent = 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 { @@ -157,13 +187,18 @@ public java.lang.String getParent() { public static final int DEVICE_REGISTRY_FIELD_NUMBER = 2; private com.google.cloud.iot.v1.DeviceRegistry deviceRegistry_; /** + * + * *
    * Required. The device registry. The field `name` must be empty. The server will
    * generate that field from the device registry `id` provided and the
    * `parent` field.
    * 
* - * .google.cloud.iot.v1.DeviceRegistry device_registry = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.iot.v1.DeviceRegistry device_registry = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the deviceRegistry field is set. */ @java.lang.Override @@ -171,27 +206,38 @@ public boolean hasDeviceRegistry() { return deviceRegistry_ != null; } /** + * + * *
    * Required. The device registry. The field `name` must be empty. The server will
    * generate that field from the device registry `id` provided and the
    * `parent` field.
    * 
* - * .google.cloud.iot.v1.DeviceRegistry device_registry = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.iot.v1.DeviceRegistry device_registry = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The deviceRegistry. */ @java.lang.Override public com.google.cloud.iot.v1.DeviceRegistry getDeviceRegistry() { - return deviceRegistry_ == null ? com.google.cloud.iot.v1.DeviceRegistry.getDefaultInstance() : deviceRegistry_; + return deviceRegistry_ == null + ? com.google.cloud.iot.v1.DeviceRegistry.getDefaultInstance() + : deviceRegistry_; } /** + * + * *
    * Required. The device registry. The field `name` must be empty. The server will
    * generate that field from the device registry `id` provided and the
    * `parent` field.
    * 
* - * .google.cloud.iot.v1.DeviceRegistry device_registry = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.iot.v1.DeviceRegistry device_registry = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ @java.lang.Override public com.google.cloud.iot.v1.DeviceRegistryOrBuilder getDeviceRegistryOrBuilder() { @@ -199,6 +245,7 @@ public com.google.cloud.iot.v1.DeviceRegistryOrBuilder getDeviceRegistryOrBuilde } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -210,8 +257,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); } @@ -231,8 +277,7 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); } if (deviceRegistry_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getDeviceRegistry()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getDeviceRegistry()); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -242,19 +287,18 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.iot.v1.CreateDeviceRegistryRequest)) { return super.equals(obj); } - com.google.cloud.iot.v1.CreateDeviceRegistryRequest other = (com.google.cloud.iot.v1.CreateDeviceRegistryRequest) obj; + com.google.cloud.iot.v1.CreateDeviceRegistryRequest other = + (com.google.cloud.iot.v1.CreateDeviceRegistryRequest) obj; - if (!getParent() - .equals(other.getParent())) return false; + if (!getParent().equals(other.getParent())) return false; if (hasDeviceRegistry() != other.hasDeviceRegistry()) return false; if (hasDeviceRegistry()) { - if (!getDeviceRegistry() - .equals(other.getDeviceRegistry())) return false; + if (!getDeviceRegistry().equals(other.getDeviceRegistry())) return false; } if (!unknownFields.equals(other.unknownFields)) return false; return true; @@ -279,117 +323,126 @@ public int hashCode() { } public static com.google.cloud.iot.v1.CreateDeviceRegistryRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.iot.v1.CreateDeviceRegistryRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.iot.v1.CreateDeviceRegistryRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.iot.v1.CreateDeviceRegistryRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.iot.v1.CreateDeviceRegistryRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.iot.v1.CreateDeviceRegistryRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.iot.v1.CreateDeviceRegistryRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.iot.v1.CreateDeviceRegistryRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.iot.v1.CreateDeviceRegistryRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.iot.v1.CreateDeviceRegistryRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.iot.v1.CreateDeviceRegistryRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.iot.v1.CreateDeviceRegistryRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.iot.v1.CreateDeviceRegistryRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.iot.v1.CreateDeviceRegistryRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.cloud.iot.v1.CreateDeviceRegistryRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected 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 `CreateDeviceRegistry`.
    * 
* * Protobuf type {@code google.cloud.iot.v1.CreateDeviceRegistryRequest} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.iot.v1.CreateDeviceRegistryRequest) com.google.cloud.iot.v1.CreateDeviceRegistryRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.iot.v1.DeviceManagerProto.internal_static_google_cloud_iot_v1_CreateDeviceRegistryRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.iot.v1.DeviceManagerProto + .internal_static_google_cloud_iot_v1_CreateDeviceRegistryRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.iot.v1.DeviceManagerProto.internal_static_google_cloud_iot_v1_CreateDeviceRegistryRequest_fieldAccessorTable + return com.google.cloud.iot.v1.DeviceManagerProto + .internal_static_google_cloud_iot_v1_CreateDeviceRegistryRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.iot.v1.CreateDeviceRegistryRequest.class, com.google.cloud.iot.v1.CreateDeviceRegistryRequest.Builder.class); + com.google.cloud.iot.v1.CreateDeviceRegistryRequest.class, + com.google.cloud.iot.v1.CreateDeviceRegistryRequest.Builder.class); } // Construct using com.google.cloud.iot.v1.CreateDeviceRegistryRequest.newBuilder() @@ -397,16 +450,15 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -422,9 +474,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.iot.v1.DeviceManagerProto.internal_static_google_cloud_iot_v1_CreateDeviceRegistryRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.iot.v1.DeviceManagerProto + .internal_static_google_cloud_iot_v1_CreateDeviceRegistryRequest_descriptor; } @java.lang.Override @@ -443,7 +495,8 @@ public com.google.cloud.iot.v1.CreateDeviceRegistryRequest build() { @java.lang.Override public com.google.cloud.iot.v1.CreateDeviceRegistryRequest buildPartial() { - com.google.cloud.iot.v1.CreateDeviceRegistryRequest result = new com.google.cloud.iot.v1.CreateDeviceRegistryRequest(this); + com.google.cloud.iot.v1.CreateDeviceRegistryRequest result = + new com.google.cloud.iot.v1.CreateDeviceRegistryRequest(this); result.parent_ = parent_; if (deviceRegistryBuilder_ == null) { result.deviceRegistry_ = deviceRegistry_; @@ -458,38 +511,39 @@ public com.google.cloud.iot.v1.CreateDeviceRegistryRequest buildPartial() { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.iot.v1.CreateDeviceRegistryRequest) { - return mergeFrom((com.google.cloud.iot.v1.CreateDeviceRegistryRequest)other); + return mergeFrom((com.google.cloud.iot.v1.CreateDeviceRegistryRequest) other); } else { super.mergeFrom(other); return this; @@ -497,7 +551,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.iot.v1.CreateDeviceRegistryRequest other) { - if (other == com.google.cloud.iot.v1.CreateDeviceRegistryRequest.getDefaultInstance()) return this; + if (other == com.google.cloud.iot.v1.CreateDeviceRegistryRequest.getDefaultInstance()) + return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; onChanged(); @@ -524,7 +579,8 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.iot.v1.CreateDeviceRegistryRequest) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.iot.v1.CreateDeviceRegistryRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -536,19 +592,23 @@ public Builder mergeFrom( private java.lang.Object parent_ = ""; /** + * + * *
      * Required. The project and cloud region where this device registry must be created.
      * For example, `projects/example-project/locations/us-central1`.
      * 
* - * string parent = 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; @@ -557,21 +617,24 @@ public java.lang.String getParent() { } } /** + * + * *
      * Required. The project and cloud region where this device registry must be created.
      * For example, `projects/example-project/locations/us-central1`.
      * 
* - * string parent = 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 { @@ -579,57 +642,70 @@ public java.lang.String getParent() { } } /** + * + * *
      * Required. The project and cloud region where this device registry must be created.
      * For example, `projects/example-project/locations/us-central1`.
      * 
* - * 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 project and cloud region where this device registry must be created.
      * For example, `projects/example-project/locations/us-central1`.
      * 
* - * string 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 project and cloud region where this device registry must be created.
      * For example, `projects/example-project/locations/us-central1`.
      * 
* - * 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; @@ -637,45 +713,64 @@ public Builder setParentBytes( private com.google.cloud.iot.v1.DeviceRegistry deviceRegistry_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.iot.v1.DeviceRegistry, com.google.cloud.iot.v1.DeviceRegistry.Builder, com.google.cloud.iot.v1.DeviceRegistryOrBuilder> deviceRegistryBuilder_; + com.google.cloud.iot.v1.DeviceRegistry, + com.google.cloud.iot.v1.DeviceRegistry.Builder, + com.google.cloud.iot.v1.DeviceRegistryOrBuilder> + deviceRegistryBuilder_; /** + * + * *
      * Required. The device registry. The field `name` must be empty. The server will
      * generate that field from the device registry `id` provided and the
      * `parent` field.
      * 
* - * .google.cloud.iot.v1.DeviceRegistry device_registry = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.iot.v1.DeviceRegistry device_registry = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the deviceRegistry field is set. */ public boolean hasDeviceRegistry() { return deviceRegistryBuilder_ != null || deviceRegistry_ != null; } /** + * + * *
      * Required. The device registry. The field `name` must be empty. The server will
      * generate that field from the device registry `id` provided and the
      * `parent` field.
      * 
* - * .google.cloud.iot.v1.DeviceRegistry device_registry = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.iot.v1.DeviceRegistry device_registry = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The deviceRegistry. */ public com.google.cloud.iot.v1.DeviceRegistry getDeviceRegistry() { if (deviceRegistryBuilder_ == null) { - return deviceRegistry_ == null ? com.google.cloud.iot.v1.DeviceRegistry.getDefaultInstance() : deviceRegistry_; + return deviceRegistry_ == null + ? com.google.cloud.iot.v1.DeviceRegistry.getDefaultInstance() + : deviceRegistry_; } else { return deviceRegistryBuilder_.getMessage(); } } /** + * + * *
      * Required. The device registry. The field `name` must be empty. The server will
      * generate that field from the device registry `id` provided and the
      * `parent` field.
      * 
* - * .google.cloud.iot.v1.DeviceRegistry device_registry = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.iot.v1.DeviceRegistry device_registry = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder setDeviceRegistry(com.google.cloud.iot.v1.DeviceRegistry value) { if (deviceRegistryBuilder_ == null) { @@ -691,13 +786,17 @@ public Builder setDeviceRegistry(com.google.cloud.iot.v1.DeviceRegistry value) { return this; } /** + * + * *
      * Required. The device registry. The field `name` must be empty. The server will
      * generate that field from the device registry `id` provided and the
      * `parent` field.
      * 
* - * .google.cloud.iot.v1.DeviceRegistry device_registry = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.iot.v1.DeviceRegistry device_registry = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder setDeviceRegistry( com.google.cloud.iot.v1.DeviceRegistry.Builder builderForValue) { @@ -711,19 +810,25 @@ public Builder setDeviceRegistry( return this; } /** + * + * *
      * Required. The device registry. The field `name` must be empty. The server will
      * generate that field from the device registry `id` provided and the
      * `parent` field.
      * 
* - * .google.cloud.iot.v1.DeviceRegistry device_registry = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.iot.v1.DeviceRegistry device_registry = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder mergeDeviceRegistry(com.google.cloud.iot.v1.DeviceRegistry value) { if (deviceRegistryBuilder_ == null) { if (deviceRegistry_ != null) { deviceRegistry_ = - com.google.cloud.iot.v1.DeviceRegistry.newBuilder(deviceRegistry_).mergeFrom(value).buildPartial(); + com.google.cloud.iot.v1.DeviceRegistry.newBuilder(deviceRegistry_) + .mergeFrom(value) + .buildPartial(); } else { deviceRegistry_ = value; } @@ -735,13 +840,17 @@ public Builder mergeDeviceRegistry(com.google.cloud.iot.v1.DeviceRegistry value) return this; } /** + * + * *
      * Required. The device registry. The field `name` must be empty. The server will
      * generate that field from the device registry `id` provided and the
      * `parent` field.
      * 
* - * .google.cloud.iot.v1.DeviceRegistry device_registry = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.iot.v1.DeviceRegistry device_registry = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder clearDeviceRegistry() { if (deviceRegistryBuilder_ == null) { @@ -755,61 +864,77 @@ public Builder clearDeviceRegistry() { return this; } /** + * + * *
      * Required. The device registry. The field `name` must be empty. The server will
      * generate that field from the device registry `id` provided and the
      * `parent` field.
      * 
* - * .google.cloud.iot.v1.DeviceRegistry device_registry = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.iot.v1.DeviceRegistry device_registry = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.cloud.iot.v1.DeviceRegistry.Builder getDeviceRegistryBuilder() { - + onChanged(); return getDeviceRegistryFieldBuilder().getBuilder(); } /** + * + * *
      * Required. The device registry. The field `name` must be empty. The server will
      * generate that field from the device registry `id` provided and the
      * `parent` field.
      * 
* - * .google.cloud.iot.v1.DeviceRegistry device_registry = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.iot.v1.DeviceRegistry device_registry = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.cloud.iot.v1.DeviceRegistryOrBuilder getDeviceRegistryOrBuilder() { if (deviceRegistryBuilder_ != null) { return deviceRegistryBuilder_.getMessageOrBuilder(); } else { - return deviceRegistry_ == null ? - com.google.cloud.iot.v1.DeviceRegistry.getDefaultInstance() : deviceRegistry_; + return deviceRegistry_ == null + ? com.google.cloud.iot.v1.DeviceRegistry.getDefaultInstance() + : deviceRegistry_; } } /** + * + * *
      * Required. The device registry. The field `name` must be empty. The server will
      * generate that field from the device registry `id` provided and the
      * `parent` field.
      * 
* - * .google.cloud.iot.v1.DeviceRegistry device_registry = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.iot.v1.DeviceRegistry device_registry = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.iot.v1.DeviceRegistry, com.google.cloud.iot.v1.DeviceRegistry.Builder, com.google.cloud.iot.v1.DeviceRegistryOrBuilder> + com.google.cloud.iot.v1.DeviceRegistry, + com.google.cloud.iot.v1.DeviceRegistry.Builder, + com.google.cloud.iot.v1.DeviceRegistryOrBuilder> getDeviceRegistryFieldBuilder() { if (deviceRegistryBuilder_ == null) { - deviceRegistryBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.iot.v1.DeviceRegistry, com.google.cloud.iot.v1.DeviceRegistry.Builder, com.google.cloud.iot.v1.DeviceRegistryOrBuilder>( - getDeviceRegistry(), - getParentForChildren(), - isClean()); + deviceRegistryBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.iot.v1.DeviceRegistry, + com.google.cloud.iot.v1.DeviceRegistry.Builder, + com.google.cloud.iot.v1.DeviceRegistryOrBuilder>( + getDeviceRegistry(), getParentForChildren(), isClean()); deviceRegistry_ = null; } return deviceRegistryBuilder_; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -819,12 +944,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.iot.v1.CreateDeviceRegistryRequest) } // @@protoc_insertion_point(class_scope:google.cloud.iot.v1.CreateDeviceRegistryRequest) private static final com.google.cloud.iot.v1.CreateDeviceRegistryRequest DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.iot.v1.CreateDeviceRegistryRequest(); } @@ -833,16 +958,16 @@ public static com.google.cloud.iot.v1.CreateDeviceRegistryRequest getDefaultInst return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public CreateDeviceRegistryRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new CreateDeviceRegistryRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CreateDeviceRegistryRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new CreateDeviceRegistryRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -857,6 +982,4 @@ public com.google.protobuf.Parser getParserForType( public com.google.cloud.iot.v1.CreateDeviceRegistryRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1/proto-google-cloud-iot-v1/src/main/java/com/google/cloud/iot/v1/CreateDeviceRegistryRequestOrBuilder.java b/proto-google-cloud-iot-v1/src/main/java/com/google/cloud/iot/v1/CreateDeviceRegistryRequestOrBuilder.java similarity index 54% rename from owl-bot-staging/v1/proto-google-cloud-iot-v1/src/main/java/com/google/cloud/iot/v1/CreateDeviceRegistryRequestOrBuilder.java rename to proto-google-cloud-iot-v1/src/main/java/com/google/cloud/iot/v1/CreateDeviceRegistryRequestOrBuilder.java index 730739dd..260d95a0 100644 --- a/owl-bot-staging/v1/proto-google-cloud-iot-v1/src/main/java/com/google/cloud/iot/v1/CreateDeviceRegistryRequestOrBuilder.java +++ b/proto-google-cloud-iot-v1/src/main/java/com/google/cloud/iot/v1/CreateDeviceRegistryRequestOrBuilder.java @@ -1,64 +1,103 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/iot/v1/device_manager.proto package com.google.cloud.iot.v1; -public interface CreateDeviceRegistryRequestOrBuilder extends +public interface CreateDeviceRegistryRequestOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.iot.v1.CreateDeviceRegistryRequest) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Required. The project and cloud region where this device registry must be created.
    * For example, `projects/example-project/locations/us-central1`.
    * 
* - * string parent = 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 project and cloud region where this device registry must be created.
    * For example, `projects/example-project/locations/us-central1`.
    * 
* - * string parent = 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 device registry. The field `name` must be empty. The server will
    * generate that field from the device registry `id` provided and the
    * `parent` field.
    * 
* - * .google.cloud.iot.v1.DeviceRegistry device_registry = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.iot.v1.DeviceRegistry device_registry = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the deviceRegistry field is set. */ boolean hasDeviceRegistry(); /** + * + * *
    * Required. The device registry. The field `name` must be empty. The server will
    * generate that field from the device registry `id` provided and the
    * `parent` field.
    * 
* - * .google.cloud.iot.v1.DeviceRegistry device_registry = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.iot.v1.DeviceRegistry device_registry = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The deviceRegistry. */ com.google.cloud.iot.v1.DeviceRegistry getDeviceRegistry(); /** + * + * *
    * Required. The device registry. The field `name` must be empty. The server will
    * generate that field from the device registry `id` provided and the
    * `parent` field.
    * 
* - * .google.cloud.iot.v1.DeviceRegistry device_registry = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.iot.v1.DeviceRegistry device_registry = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ com.google.cloud.iot.v1.DeviceRegistryOrBuilder getDeviceRegistryOrBuilder(); } diff --git a/owl-bot-staging/v1/proto-google-cloud-iot-v1/src/main/java/com/google/cloud/iot/v1/CreateDeviceRequest.java b/proto-google-cloud-iot-v1/src/main/java/com/google/cloud/iot/v1/CreateDeviceRequest.java similarity index 69% rename from owl-bot-staging/v1/proto-google-cloud-iot-v1/src/main/java/com/google/cloud/iot/v1/CreateDeviceRequest.java rename to proto-google-cloud-iot-v1/src/main/java/com/google/cloud/iot/v1/CreateDeviceRequest.java index ce100f3c..1de4defd 100644 --- a/owl-bot-staging/v1/proto-google-cloud-iot-v1/src/main/java/com/google/cloud/iot/v1/CreateDeviceRequest.java +++ b/proto-google-cloud-iot-v1/src/main/java/com/google/cloud/iot/v1/CreateDeviceRequest.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/iot/v1/device_manager.proto package com.google.cloud.iot.v1; /** + * + * *
  * Request for `CreateDevice`.
  * 
* * Protobuf type {@code google.cloud.iot.v1.CreateDeviceRequest} */ -public final class CreateDeviceRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class CreateDeviceRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.iot.v1.CreateDeviceRequest) CreateDeviceRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use CreateDeviceRequest.newBuilder() to construct. private CreateDeviceRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private CreateDeviceRequest() { parent_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new CreateDeviceRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private CreateDeviceRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -53,32 +70,35 @@ private CreateDeviceRequest( case 0: done = true; break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); - parent_ = s; - break; - } - case 18: { - com.google.cloud.iot.v1.Device.Builder subBuilder = null; - if (device_ != null) { - subBuilder = device_.toBuilder(); + parent_ = s; + break; } - device_ = input.readMessage(com.google.cloud.iot.v1.Device.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(device_); - device_ = subBuilder.buildPartial(); + case 18: + { + com.google.cloud.iot.v1.Device.Builder subBuilder = null; + if (device_ != null) { + subBuilder = device_.toBuilder(); + } + device_ = + input.readMessage(com.google.cloud.iot.v1.Device.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(device_); + device_ = subBuilder.buildPartial(); + } + + break; } - - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -86,36 +106,43 @@ private CreateDeviceRequest( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.iot.v1.DeviceManagerProto.internal_static_google_cloud_iot_v1_CreateDeviceRequest_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.iot.v1.DeviceManagerProto + .internal_static_google_cloud_iot_v1_CreateDeviceRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.iot.v1.DeviceManagerProto.internal_static_google_cloud_iot_v1_CreateDeviceRequest_fieldAccessorTable + return com.google.cloud.iot.v1.DeviceManagerProto + .internal_static_google_cloud_iot_v1_CreateDeviceRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.iot.v1.CreateDeviceRequest.class, com.google.cloud.iot.v1.CreateDeviceRequest.Builder.class); + com.google.cloud.iot.v1.CreateDeviceRequest.class, + com.google.cloud.iot.v1.CreateDeviceRequest.Builder.class); } public static final int PARENT_FIELD_NUMBER = 1; private volatile java.lang.Object parent_; /** + * + * *
    * Required. The name of the device registry where this device should be created.
    * For example,
    * `projects/example-project/locations/us-central1/registries/my-registry`.
    * 
* - * string parent = 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 @@ -124,31 +151,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 name of the device registry where this device should be created.
    * For example,
    * `projects/example-project/locations/us-central1/registries/my-registry`.
    * 
* - * string parent = 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 { @@ -159,6 +188,8 @@ public java.lang.String getParent() { public static final int DEVICE_FIELD_NUMBER = 2; private com.google.cloud.iot.v1.Device device_; /** + * + * *
    * Required. The device registration details. The field `name` must be empty. The server
    * generates `name` from the device registry `id` and the
@@ -166,6 +197,7 @@ public java.lang.String getParent() {
    * 
* * .google.cloud.iot.v1.Device device = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return Whether the device field is set. */ @java.lang.Override @@ -173,6 +205,8 @@ public boolean hasDevice() { return device_ != null; } /** + * + * *
    * Required. The device registration details. The field `name` must be empty. The server
    * generates `name` from the device registry `id` and the
@@ -180,6 +214,7 @@ public boolean hasDevice() {
    * 
* * .google.cloud.iot.v1.Device device = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The device. */ @java.lang.Override @@ -187,6 +222,8 @@ public com.google.cloud.iot.v1.Device getDevice() { return device_ == null ? com.google.cloud.iot.v1.Device.getDefaultInstance() : device_; } /** + * + * *
    * Required. The device registration details. The field `name` must be empty. The server
    * generates `name` from the device registry `id` and the
@@ -201,6 +238,7 @@ public com.google.cloud.iot.v1.DeviceOrBuilder getDeviceOrBuilder() {
   }
 
   private byte memoizedIsInitialized = -1;
+
   @java.lang.Override
   public final boolean isInitialized() {
     byte isInitialized = memoizedIsInitialized;
@@ -212,8 +250,7 @@ public final boolean isInitialized() {
   }
 
   @java.lang.Override
-  public void writeTo(com.google.protobuf.CodedOutputStream output)
-                      throws java.io.IOException {
+  public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
     if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) {
       com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_);
     }
@@ -233,8 +270,7 @@ public int getSerializedSize() {
       size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_);
     }
     if (device_ != null) {
-      size += com.google.protobuf.CodedOutputStream
-        .computeMessageSize(2, getDevice());
+      size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getDevice());
     }
     size += unknownFields.getSerializedSize();
     memoizedSize = size;
@@ -244,19 +280,18 @@ public int getSerializedSize() {
   @java.lang.Override
   public boolean equals(final java.lang.Object obj) {
     if (obj == this) {
-     return true;
+      return true;
     }
     if (!(obj instanceof com.google.cloud.iot.v1.CreateDeviceRequest)) {
       return super.equals(obj);
     }
-    com.google.cloud.iot.v1.CreateDeviceRequest other = (com.google.cloud.iot.v1.CreateDeviceRequest) obj;
+    com.google.cloud.iot.v1.CreateDeviceRequest other =
+        (com.google.cloud.iot.v1.CreateDeviceRequest) obj;
 
-    if (!getParent()
-        .equals(other.getParent())) return false;
+    if (!getParent().equals(other.getParent())) return false;
     if (hasDevice() != other.hasDevice()) return false;
     if (hasDevice()) {
-      if (!getDevice()
-          .equals(other.getDevice())) return false;
+      if (!getDevice().equals(other.getDevice())) return false;
     }
     if (!unknownFields.equals(other.unknownFields)) return false;
     return true;
@@ -280,118 +315,127 @@ public int hashCode() {
     return hash;
   }
 
-  public static com.google.cloud.iot.v1.CreateDeviceRequest parseFrom(
-      java.nio.ByteBuffer data)
+  public static com.google.cloud.iot.v1.CreateDeviceRequest parseFrom(java.nio.ByteBuffer data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
+
   public static com.google.cloud.iot.v1.CreateDeviceRequest parseFrom(
-      java.nio.ByteBuffer data,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
+
   public static com.google.cloud.iot.v1.CreateDeviceRequest parseFrom(
       com.google.protobuf.ByteString data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
+
   public static com.google.cloud.iot.v1.CreateDeviceRequest parseFrom(
       com.google.protobuf.ByteString data,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
+
   public static com.google.cloud.iot.v1.CreateDeviceRequest parseFrom(byte[] data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
+
   public static com.google.cloud.iot.v1.CreateDeviceRequest parseFrom(
-      byte[] data,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
+
   public static com.google.cloud.iot.v1.CreateDeviceRequest 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.iot.v1.CreateDeviceRequest parseFrom(
-      java.io.InputStream input,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
+        PARSER, input, extensionRegistry);
   }
-  public static com.google.cloud.iot.v1.CreateDeviceRequest parseDelimitedFrom(java.io.InputStream input)
-      throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseDelimitedWithIOException(PARSER, input);
+
+  public static com.google.cloud.iot.v1.CreateDeviceRequest parseDelimitedFrom(
+      java.io.InputStream input) throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
   }
+
   public static com.google.cloud.iot.v1.CreateDeviceRequest parseDelimitedFrom(
-      java.io.InputStream input,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
+        PARSER, input, extensionRegistry);
   }
+
   public static com.google.cloud.iot.v1.CreateDeviceRequest parseFrom(
-      com.google.protobuf.CodedInputStream input)
-      throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input);
+      com.google.protobuf.CodedInputStream input) throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
   }
+
   public static com.google.cloud.iot.v1.CreateDeviceRequest parseFrom(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
+        PARSER, input, extensionRegistry);
   }
 
   @java.lang.Override
-  public Builder newBuilderForType() { return newBuilder(); }
+  public Builder newBuilderForType() {
+    return newBuilder();
+  }
+
   public static Builder newBuilder() {
     return DEFAULT_INSTANCE.toBuilder();
   }
+
   public static Builder newBuilder(com.google.cloud.iot.v1.CreateDeviceRequest prototype) {
     return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
   }
+
   @java.lang.Override
   public Builder toBuilder() {
-    return this == DEFAULT_INSTANCE
-        ? new Builder() : new Builder().mergeFrom(this);
+    return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
   }
 
   @java.lang.Override
-  protected 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 `CreateDevice`.
    * 
* * Protobuf type {@code google.cloud.iot.v1.CreateDeviceRequest} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.iot.v1.CreateDeviceRequest) com.google.cloud.iot.v1.CreateDeviceRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.iot.v1.DeviceManagerProto.internal_static_google_cloud_iot_v1_CreateDeviceRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.iot.v1.DeviceManagerProto + .internal_static_google_cloud_iot_v1_CreateDeviceRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.iot.v1.DeviceManagerProto.internal_static_google_cloud_iot_v1_CreateDeviceRequest_fieldAccessorTable + return com.google.cloud.iot.v1.DeviceManagerProto + .internal_static_google_cloud_iot_v1_CreateDeviceRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.iot.v1.CreateDeviceRequest.class, com.google.cloud.iot.v1.CreateDeviceRequest.Builder.class); + com.google.cloud.iot.v1.CreateDeviceRequest.class, + com.google.cloud.iot.v1.CreateDeviceRequest.Builder.class); } // Construct using com.google.cloud.iot.v1.CreateDeviceRequest.newBuilder() @@ -399,16 +443,15 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -424,9 +467,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.iot.v1.DeviceManagerProto.internal_static_google_cloud_iot_v1_CreateDeviceRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.iot.v1.DeviceManagerProto + .internal_static_google_cloud_iot_v1_CreateDeviceRequest_descriptor; } @java.lang.Override @@ -445,7 +488,8 @@ public com.google.cloud.iot.v1.CreateDeviceRequest build() { @java.lang.Override public com.google.cloud.iot.v1.CreateDeviceRequest buildPartial() { - com.google.cloud.iot.v1.CreateDeviceRequest result = new com.google.cloud.iot.v1.CreateDeviceRequest(this); + com.google.cloud.iot.v1.CreateDeviceRequest result = + new com.google.cloud.iot.v1.CreateDeviceRequest(this); result.parent_ = parent_; if (deviceBuilder_ == null) { result.device_ = device_; @@ -460,38 +504,39 @@ public com.google.cloud.iot.v1.CreateDeviceRequest buildPartial() { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.iot.v1.CreateDeviceRequest) { - return mergeFrom((com.google.cloud.iot.v1.CreateDeviceRequest)other); + return mergeFrom((com.google.cloud.iot.v1.CreateDeviceRequest) other); } else { super.mergeFrom(other); return this; @@ -538,20 +583,24 @@ public Builder mergeFrom( private java.lang.Object parent_ = ""; /** + * + * *
      * Required. The name of the device registry where this device should be created.
      * For example,
      * `projects/example-project/locations/us-central1/registries/my-registry`.
      * 
* - * string parent = 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; @@ -560,22 +609,25 @@ public java.lang.String getParent() { } } /** + * + * *
      * Required. The name of the device registry where this device should be created.
      * For example,
      * `projects/example-project/locations/us-central1/registries/my-registry`.
      * 
* - * string parent = 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 { @@ -583,60 +635,73 @@ public java.lang.String getParent() { } } /** + * + * *
      * Required. The name of the device registry where this device should be created.
      * For example,
      * `projects/example-project/locations/us-central1/registries/my-registry`.
      * 
* - * 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 name of the device registry where this device should be created.
      * For example,
      * `projects/example-project/locations/us-central1/registries/my-registry`.
      * 
* - * string 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 name of the device registry where this device should be created.
      * For example,
      * `projects/example-project/locations/us-central1/registries/my-registry`.
      * 
* - * 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; @@ -644,28 +709,39 @@ public Builder setParentBytes( private com.google.cloud.iot.v1.Device device_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.iot.v1.Device, com.google.cloud.iot.v1.Device.Builder, com.google.cloud.iot.v1.DeviceOrBuilder> deviceBuilder_; + com.google.cloud.iot.v1.Device, + com.google.cloud.iot.v1.Device.Builder, + com.google.cloud.iot.v1.DeviceOrBuilder> + deviceBuilder_; /** + * + * *
      * Required. The device registration details. The field `name` must be empty. The server
      * generates `name` from the device registry `id` and the
      * `parent` field.
      * 
* - * .google.cloud.iot.v1.Device device = 2 [(.google.api.field_behavior) = REQUIRED]; + * .google.cloud.iot.v1.Device device = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the device field is set. */ public boolean hasDevice() { return deviceBuilder_ != null || device_ != null; } /** + * + * *
      * Required. The device registration details. The field `name` must be empty. The server
      * generates `name` from the device registry `id` and the
      * `parent` field.
      * 
* - * .google.cloud.iot.v1.Device device = 2 [(.google.api.field_behavior) = REQUIRED]; + * .google.cloud.iot.v1.Device device = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The device. */ public com.google.cloud.iot.v1.Device getDevice() { @@ -676,13 +752,16 @@ public com.google.cloud.iot.v1.Device getDevice() { } } /** + * + * *
      * Required. The device registration details. The field `name` must be empty. The server
      * generates `name` from the device registry `id` and the
      * `parent` field.
      * 
* - * .google.cloud.iot.v1.Device device = 2 [(.google.api.field_behavior) = REQUIRED]; + * .google.cloud.iot.v1.Device device = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder setDevice(com.google.cloud.iot.v1.Device value) { if (deviceBuilder_ == null) { @@ -698,16 +777,18 @@ public Builder setDevice(com.google.cloud.iot.v1.Device value) { return this; } /** + * + * *
      * Required. The device registration details. The field `name` must be empty. The server
      * generates `name` from the device registry `id` and the
      * `parent` field.
      * 
* - * .google.cloud.iot.v1.Device device = 2 [(.google.api.field_behavior) = REQUIRED]; + * .google.cloud.iot.v1.Device device = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ - public Builder setDevice( - com.google.cloud.iot.v1.Device.Builder builderForValue) { + public Builder setDevice(com.google.cloud.iot.v1.Device.Builder builderForValue) { if (deviceBuilder_ == null) { device_ = builderForValue.build(); onChanged(); @@ -718,19 +799,22 @@ public Builder setDevice( return this; } /** + * + * *
      * Required. The device registration details. The field `name` must be empty. The server
      * generates `name` from the device registry `id` and the
      * `parent` field.
      * 
* - * .google.cloud.iot.v1.Device device = 2 [(.google.api.field_behavior) = REQUIRED]; + * .google.cloud.iot.v1.Device device = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder mergeDevice(com.google.cloud.iot.v1.Device value) { if (deviceBuilder_ == null) { if (device_ != null) { device_ = - com.google.cloud.iot.v1.Device.newBuilder(device_).mergeFrom(value).buildPartial(); + com.google.cloud.iot.v1.Device.newBuilder(device_).mergeFrom(value).buildPartial(); } else { device_ = value; } @@ -742,13 +826,16 @@ public Builder mergeDevice(com.google.cloud.iot.v1.Device value) { return this; } /** + * + * *
      * Required. The device registration details. The field `name` must be empty. The server
      * generates `name` from the device registry `id` and the
      * `parent` field.
      * 
* - * .google.cloud.iot.v1.Device device = 2 [(.google.api.field_behavior) = REQUIRED]; + * .google.cloud.iot.v1.Device device = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder clearDevice() { if (deviceBuilder_ == null) { @@ -762,61 +849,72 @@ public Builder clearDevice() { return this; } /** + * + * *
      * Required. The device registration details. The field `name` must be empty. The server
      * generates `name` from the device registry `id` and the
      * `parent` field.
      * 
* - * .google.cloud.iot.v1.Device device = 2 [(.google.api.field_behavior) = REQUIRED]; + * .google.cloud.iot.v1.Device device = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.cloud.iot.v1.Device.Builder getDeviceBuilder() { - + onChanged(); return getDeviceFieldBuilder().getBuilder(); } /** + * + * *
      * Required. The device registration details. The field `name` must be empty. The server
      * generates `name` from the device registry `id` and the
      * `parent` field.
      * 
* - * .google.cloud.iot.v1.Device device = 2 [(.google.api.field_behavior) = REQUIRED]; + * .google.cloud.iot.v1.Device device = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.cloud.iot.v1.DeviceOrBuilder getDeviceOrBuilder() { if (deviceBuilder_ != null) { return deviceBuilder_.getMessageOrBuilder(); } else { - return device_ == null ? - com.google.cloud.iot.v1.Device.getDefaultInstance() : device_; + return device_ == null ? com.google.cloud.iot.v1.Device.getDefaultInstance() : device_; } } /** + * + * *
      * Required. The device registration details. The field `name` must be empty. The server
      * generates `name` from the device registry `id` and the
      * `parent` field.
      * 
* - * .google.cloud.iot.v1.Device device = 2 [(.google.api.field_behavior) = REQUIRED]; + * .google.cloud.iot.v1.Device device = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.iot.v1.Device, com.google.cloud.iot.v1.Device.Builder, com.google.cloud.iot.v1.DeviceOrBuilder> + com.google.cloud.iot.v1.Device, + com.google.cloud.iot.v1.Device.Builder, + com.google.cloud.iot.v1.DeviceOrBuilder> getDeviceFieldBuilder() { if (deviceBuilder_ == null) { - deviceBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.iot.v1.Device, com.google.cloud.iot.v1.Device.Builder, com.google.cloud.iot.v1.DeviceOrBuilder>( - getDevice(), - getParentForChildren(), - isClean()); + deviceBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.iot.v1.Device, + com.google.cloud.iot.v1.Device.Builder, + com.google.cloud.iot.v1.DeviceOrBuilder>( + getDevice(), getParentForChildren(), isClean()); device_ = null; } return deviceBuilder_; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -826,12 +924,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.iot.v1.CreateDeviceRequest) } // @@protoc_insertion_point(class_scope:google.cloud.iot.v1.CreateDeviceRequest) private static final com.google.cloud.iot.v1.CreateDeviceRequest DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.iot.v1.CreateDeviceRequest(); } @@ -840,16 +938,16 @@ public static com.google.cloud.iot.v1.CreateDeviceRequest getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public CreateDeviceRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new CreateDeviceRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CreateDeviceRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new CreateDeviceRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -864,6 +962,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.iot.v1.CreateDeviceRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1/proto-google-cloud-iot-v1/src/main/java/com/google/cloud/iot/v1/CreateDeviceRequestOrBuilder.java b/proto-google-cloud-iot-v1/src/main/java/com/google/cloud/iot/v1/CreateDeviceRequestOrBuilder.java similarity index 65% rename from owl-bot-staging/v1/proto-google-cloud-iot-v1/src/main/java/com/google/cloud/iot/v1/CreateDeviceRequestOrBuilder.java rename to proto-google-cloud-iot-v1/src/main/java/com/google/cloud/iot/v1/CreateDeviceRequestOrBuilder.java index bd02b513..764d45cf 100644 --- a/owl-bot-staging/v1/proto-google-cloud-iot-v1/src/main/java/com/google/cloud/iot/v1/CreateDeviceRequestOrBuilder.java +++ b/proto-google-cloud-iot-v1/src/main/java/com/google/cloud/iot/v1/CreateDeviceRequestOrBuilder.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/iot/v1/device_manager.proto package com.google.cloud.iot.v1; -public interface CreateDeviceRequestOrBuilder extends +public interface CreateDeviceRequestOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.iot.v1.CreateDeviceRequest) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Required. The name of the device registry where this device should be created.
    * For example,
    * `projects/example-project/locations/us-central1/registries/my-registry`.
    * 
* - * string parent = 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 name of the device registry where this device should be created.
    * For example,
    * `projects/example-project/locations/us-central1/registries/my-registry`.
    * 
* - * string parent = 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 device registration details. The field `name` must be empty. The server
    * generates `name` from the device registry `id` and the
@@ -39,10 +66,13 @@ public interface CreateDeviceRequestOrBuilder extends
    * 
* * .google.cloud.iot.v1.Device device = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return Whether the device field is set. */ boolean hasDevice(); /** + * + * *
    * Required. The device registration details. The field `name` must be empty. The server
    * generates `name` from the device registry `id` and the
@@ -50,10 +80,13 @@ public interface CreateDeviceRequestOrBuilder extends
    * 
* * .google.cloud.iot.v1.Device device = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The device. */ com.google.cloud.iot.v1.Device getDevice(); /** + * + * *
    * Required. The device registration details. The field `name` must be empty. The server
    * generates `name` from the device registry `id` and the
diff --git a/owl-bot-staging/v1/proto-google-cloud-iot-v1/src/main/java/com/google/cloud/iot/v1/DeleteDeviceRegistryRequest.java b/proto-google-cloud-iot-v1/src/main/java/com/google/cloud/iot/v1/DeleteDeviceRegistryRequest.java
similarity index 65%
rename from owl-bot-staging/v1/proto-google-cloud-iot-v1/src/main/java/com/google/cloud/iot/v1/DeleteDeviceRegistryRequest.java
rename to proto-google-cloud-iot-v1/src/main/java/com/google/cloud/iot/v1/DeleteDeviceRegistryRequest.java
index 74c9bf0b..a07e32af 100644
--- a/owl-bot-staging/v1/proto-google-cloud-iot-v1/src/main/java/com/google/cloud/iot/v1/DeleteDeviceRegistryRequest.java
+++ b/proto-google-cloud-iot-v1/src/main/java/com/google/cloud/iot/v1/DeleteDeviceRegistryRequest.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/iot/v1/device_manager.proto
 
 package com.google.cloud.iot.v1;
 
 /**
+ *
+ *
  * 
  * Request for `DeleteDeviceRegistry`.
  * 
* * Protobuf type {@code google.cloud.iot.v1.DeleteDeviceRegistryRequest} */ -public final class DeleteDeviceRegistryRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class DeleteDeviceRegistryRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.iot.v1.DeleteDeviceRegistryRequest) DeleteDeviceRegistryRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use DeleteDeviceRegistryRequest.newBuilder() to construct. private DeleteDeviceRegistryRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private DeleteDeviceRegistryRequest() { name_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new DeleteDeviceRegistryRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private DeleteDeviceRegistryRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -53,19 +70,20 @@ private DeleteDeviceRegistryRequest( 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,35 +91,42 @@ private DeleteDeviceRegistryRequest( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.iot.v1.DeviceManagerProto.internal_static_google_cloud_iot_v1_DeleteDeviceRegistryRequest_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.iot.v1.DeviceManagerProto + .internal_static_google_cloud_iot_v1_DeleteDeviceRegistryRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.iot.v1.DeviceManagerProto.internal_static_google_cloud_iot_v1_DeleteDeviceRegistryRequest_fieldAccessorTable + return com.google.cloud.iot.v1.DeviceManagerProto + .internal_static_google_cloud_iot_v1_DeleteDeviceRegistryRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.iot.v1.DeleteDeviceRegistryRequest.class, com.google.cloud.iot.v1.DeleteDeviceRegistryRequest.Builder.class); + com.google.cloud.iot.v1.DeleteDeviceRegistryRequest.class, + com.google.cloud.iot.v1.DeleteDeviceRegistryRequest.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** + * + * *
    * Required. The name of the device registry. For example,
    * `projects/example-project/locations/us-central1/registries/my-registry`.
    * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The name. */ @java.lang.Override @@ -110,30 +135,32 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** + * + * *
    * Required. The name of the device registry. For example,
    * `projects/example-project/locations/us-central1/registries/my-registry`.
    * 
* - * string name = 1 [(.google.api.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 { @@ -142,6 +169,7 @@ public java.lang.String getName() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -153,8 +181,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -178,15 +205,15 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.iot.v1.DeleteDeviceRegistryRequest)) { return super.equals(obj); } - com.google.cloud.iot.v1.DeleteDeviceRegistryRequest other = (com.google.cloud.iot.v1.DeleteDeviceRegistryRequest) obj; + com.google.cloud.iot.v1.DeleteDeviceRegistryRequest other = + (com.google.cloud.iot.v1.DeleteDeviceRegistryRequest) obj; - if (!getName() - .equals(other.getName())) return false; + if (!getName().equals(other.getName())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -206,117 +233,126 @@ public int hashCode() { } public static com.google.cloud.iot.v1.DeleteDeviceRegistryRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.iot.v1.DeleteDeviceRegistryRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.iot.v1.DeleteDeviceRegistryRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.iot.v1.DeleteDeviceRegistryRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.iot.v1.DeleteDeviceRegistryRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.iot.v1.DeleteDeviceRegistryRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.iot.v1.DeleteDeviceRegistryRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.iot.v1.DeleteDeviceRegistryRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.iot.v1.DeleteDeviceRegistryRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.iot.v1.DeleteDeviceRegistryRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.iot.v1.DeleteDeviceRegistryRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.iot.v1.DeleteDeviceRegistryRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.iot.v1.DeleteDeviceRegistryRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.iot.v1.DeleteDeviceRegistryRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.cloud.iot.v1.DeleteDeviceRegistryRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected 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 `DeleteDeviceRegistry`.
    * 
* * Protobuf type {@code google.cloud.iot.v1.DeleteDeviceRegistryRequest} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.iot.v1.DeleteDeviceRegistryRequest) com.google.cloud.iot.v1.DeleteDeviceRegistryRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.iot.v1.DeviceManagerProto.internal_static_google_cloud_iot_v1_DeleteDeviceRegistryRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.iot.v1.DeviceManagerProto + .internal_static_google_cloud_iot_v1_DeleteDeviceRegistryRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.iot.v1.DeviceManagerProto.internal_static_google_cloud_iot_v1_DeleteDeviceRegistryRequest_fieldAccessorTable + return com.google.cloud.iot.v1.DeviceManagerProto + .internal_static_google_cloud_iot_v1_DeleteDeviceRegistryRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.iot.v1.DeleteDeviceRegistryRequest.class, com.google.cloud.iot.v1.DeleteDeviceRegistryRequest.Builder.class); + com.google.cloud.iot.v1.DeleteDeviceRegistryRequest.class, + com.google.cloud.iot.v1.DeleteDeviceRegistryRequest.Builder.class); } // Construct using com.google.cloud.iot.v1.DeleteDeviceRegistryRequest.newBuilder() @@ -324,16 +360,15 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -343,9 +378,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.iot.v1.DeviceManagerProto.internal_static_google_cloud_iot_v1_DeleteDeviceRegistryRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.iot.v1.DeviceManagerProto + .internal_static_google_cloud_iot_v1_DeleteDeviceRegistryRequest_descriptor; } @java.lang.Override @@ -364,7 +399,8 @@ public com.google.cloud.iot.v1.DeleteDeviceRegistryRequest build() { @java.lang.Override public com.google.cloud.iot.v1.DeleteDeviceRegistryRequest buildPartial() { - com.google.cloud.iot.v1.DeleteDeviceRegistryRequest result = new com.google.cloud.iot.v1.DeleteDeviceRegistryRequest(this); + com.google.cloud.iot.v1.DeleteDeviceRegistryRequest result = + new com.google.cloud.iot.v1.DeleteDeviceRegistryRequest(this); result.name_ = name_; onBuilt(); return result; @@ -374,38 +410,39 @@ public com.google.cloud.iot.v1.DeleteDeviceRegistryRequest buildPartial() { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.iot.v1.DeleteDeviceRegistryRequest) { - return mergeFrom((com.google.cloud.iot.v1.DeleteDeviceRegistryRequest)other); + return mergeFrom((com.google.cloud.iot.v1.DeleteDeviceRegistryRequest) other); } else { super.mergeFrom(other); return this; @@ -413,7 +450,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.iot.v1.DeleteDeviceRegistryRequest other) { - if (other == com.google.cloud.iot.v1.DeleteDeviceRegistryRequest.getDefaultInstance()) return this; + if (other == com.google.cloud.iot.v1.DeleteDeviceRegistryRequest.getDefaultInstance()) + return this; if (!other.getName().isEmpty()) { name_ = other.name_; onChanged(); @@ -437,7 +475,8 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.iot.v1.DeleteDeviceRegistryRequest) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.iot.v1.DeleteDeviceRegistryRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -449,19 +488,23 @@ public Builder mergeFrom( private java.lang.Object name_ = ""; /** + * + * *
      * Required. The name of the device registry. For example,
      * `projects/example-project/locations/us-central1/registries/my-registry`.
      * 
* - * string name = 1 [(.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; @@ -470,21 +513,24 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. The name of the device registry. For example,
      * `projects/example-project/locations/us-central1/registries/my-registry`.
      * 
* - * string name = 1 [(.google.api.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 { @@ -492,64 +538,77 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. The name of the device registry. For example,
      * `projects/example-project/locations/us-central1/registries/my-registry`.
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The name to set. * @return This builder for chaining. */ - public Builder setName( - java.lang.String value) { + public Builder setName(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + name_ = value; onChanged(); return this; } /** + * + * *
      * Required. The name of the device registry. For example,
      * `projects/example-project/locations/us-central1/registries/my-registry`.
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return This builder for chaining. */ public Builder clearName() { - + name_ = getDefaultInstance().getName(); onChanged(); return this; } /** + * + * *
      * Required. The name of the device registry. For example,
      * `projects/example-project/locations/us-central1/registries/my-registry`.
      * 
* - * 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); } @@ -559,12 +618,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.iot.v1.DeleteDeviceRegistryRequest) } // @@protoc_insertion_point(class_scope:google.cloud.iot.v1.DeleteDeviceRegistryRequest) private static final com.google.cloud.iot.v1.DeleteDeviceRegistryRequest DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.iot.v1.DeleteDeviceRegistryRequest(); } @@ -573,16 +632,16 @@ public static com.google.cloud.iot.v1.DeleteDeviceRegistryRequest getDefaultInst return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public DeleteDeviceRegistryRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new DeleteDeviceRegistryRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DeleteDeviceRegistryRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new DeleteDeviceRegistryRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -597,6 +656,4 @@ public com.google.protobuf.Parser getParserForType( public com.google.cloud.iot.v1.DeleteDeviceRegistryRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/proto-google-cloud-iot-v1/src/main/java/com/google/cloud/iot/v1/DeleteDeviceRegistryRequestOrBuilder.java b/proto-google-cloud-iot-v1/src/main/java/com/google/cloud/iot/v1/DeleteDeviceRegistryRequestOrBuilder.java new file mode 100644 index 00000000..17946cf9 --- /dev/null +++ b/proto-google-cloud-iot-v1/src/main/java/com/google/cloud/iot/v1/DeleteDeviceRegistryRequestOrBuilder.java @@ -0,0 +1,56 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/iot/v1/device_manager.proto + +package com.google.cloud.iot.v1; + +public interface DeleteDeviceRegistryRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.iot.v1.DeleteDeviceRegistryRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The name of the device registry. For example,
+   * `projects/example-project/locations/us-central1/registries/my-registry`.
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + java.lang.String getName(); + /** + * + * + *
+   * Required. The name of the device registry. For example,
+   * `projects/example-project/locations/us-central1/registries/my-registry`.
+   * 
+ * + * + * 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-iot-v1/src/main/java/com/google/cloud/iot/v1/DeleteDeviceRequest.java b/proto-google-cloud-iot-v1/src/main/java/com/google/cloud/iot/v1/DeleteDeviceRequest.java similarity index 67% rename from owl-bot-staging/v1/proto-google-cloud-iot-v1/src/main/java/com/google/cloud/iot/v1/DeleteDeviceRequest.java rename to proto-google-cloud-iot-v1/src/main/java/com/google/cloud/iot/v1/DeleteDeviceRequest.java index a20fa259..6bf41a45 100644 --- a/owl-bot-staging/v1/proto-google-cloud-iot-v1/src/main/java/com/google/cloud/iot/v1/DeleteDeviceRequest.java +++ b/proto-google-cloud-iot-v1/src/main/java/com/google/cloud/iot/v1/DeleteDeviceRequest.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/iot/v1/device_manager.proto package com.google.cloud.iot.v1; /** + * + * *
  * Request for `DeleteDevice`.
  * 
* * Protobuf type {@code google.cloud.iot.v1.DeleteDeviceRequest} */ -public final class DeleteDeviceRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class DeleteDeviceRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.iot.v1.DeleteDeviceRequest) DeleteDeviceRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use DeleteDeviceRequest.newBuilder() to construct. private DeleteDeviceRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private DeleteDeviceRequest() { name_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new DeleteDeviceRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private DeleteDeviceRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -53,19 +70,20 @@ private DeleteDeviceRequest( 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 DeleteDeviceRequest( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.iot.v1.DeviceManagerProto.internal_static_google_cloud_iot_v1_DeleteDeviceRequest_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.iot.v1.DeviceManagerProto + .internal_static_google_cloud_iot_v1_DeleteDeviceRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.iot.v1.DeviceManagerProto.internal_static_google_cloud_iot_v1_DeleteDeviceRequest_fieldAccessorTable + return com.google.cloud.iot.v1.DeviceManagerProto + .internal_static_google_cloud_iot_v1_DeleteDeviceRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.iot.v1.DeleteDeviceRequest.class, com.google.cloud.iot.v1.DeleteDeviceRequest.Builder.class); + com.google.cloud.iot.v1.DeleteDeviceRequest.class, + com.google.cloud.iot.v1.DeleteDeviceRequest.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** + * + * *
    * Required. The name of the device. For example,
    * `projects/p0/locations/us-central1/registries/registry0/devices/device0` or
    * `projects/p0/locations/us-central1/registries/registry0/devices/{num_id}`.
    * 
* - * string name = 1 [(.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. The name of the device. For example,
    * `projects/p0/locations/us-central1/registries/registry0/devices/device0` or
    * `projects/p0/locations/us-central1/registries/registry0/devices/{num_id}`.
    * 
* - * string name = 1 [(.google.api.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.iot.v1.DeleteDeviceRequest)) { return super.equals(obj); } - com.google.cloud.iot.v1.DeleteDeviceRequest other = (com.google.cloud.iot.v1.DeleteDeviceRequest) obj; + com.google.cloud.iot.v1.DeleteDeviceRequest other = + (com.google.cloud.iot.v1.DeleteDeviceRequest) 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.iot.v1.DeleteDeviceRequest parseFrom( - java.nio.ByteBuffer data) + public static com.google.cloud.iot.v1.DeleteDeviceRequest parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.iot.v1.DeleteDeviceRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.iot.v1.DeleteDeviceRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.iot.v1.DeleteDeviceRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.iot.v1.DeleteDeviceRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.iot.v1.DeleteDeviceRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.iot.v1.DeleteDeviceRequest 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.iot.v1.DeleteDeviceRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.iot.v1.DeleteDeviceRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.iot.v1.DeleteDeviceRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.iot.v1.DeleteDeviceRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.iot.v1.DeleteDeviceRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.iot.v1.DeleteDeviceRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.cloud.iot.v1.DeleteDeviceRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected 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 `DeleteDevice`.
    * 
* * Protobuf type {@code google.cloud.iot.v1.DeleteDeviceRequest} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.iot.v1.DeleteDeviceRequest) com.google.cloud.iot.v1.DeleteDeviceRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.iot.v1.DeviceManagerProto.internal_static_google_cloud_iot_v1_DeleteDeviceRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.iot.v1.DeviceManagerProto + .internal_static_google_cloud_iot_v1_DeleteDeviceRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.iot.v1.DeviceManagerProto.internal_static_google_cloud_iot_v1_DeleteDeviceRequest_fieldAccessorTable + return com.google.cloud.iot.v1.DeviceManagerProto + .internal_static_google_cloud_iot_v1_DeleteDeviceRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.iot.v1.DeleteDeviceRequest.class, com.google.cloud.iot.v1.DeleteDeviceRequest.Builder.class); + com.google.cloud.iot.v1.DeleteDeviceRequest.class, + com.google.cloud.iot.v1.DeleteDeviceRequest.Builder.class); } // Construct using com.google.cloud.iot.v1.DeleteDeviceRequest.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.iot.v1.DeviceManagerProto.internal_static_google_cloud_iot_v1_DeleteDeviceRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.iot.v1.DeviceManagerProto + .internal_static_google_cloud_iot_v1_DeleteDeviceRequest_descriptor; } @java.lang.Override @@ -366,7 +401,8 @@ public com.google.cloud.iot.v1.DeleteDeviceRequest build() { @java.lang.Override public com.google.cloud.iot.v1.DeleteDeviceRequest buildPartial() { - com.google.cloud.iot.v1.DeleteDeviceRequest result = new com.google.cloud.iot.v1.DeleteDeviceRequest(this); + com.google.cloud.iot.v1.DeleteDeviceRequest result = + new com.google.cloud.iot.v1.DeleteDeviceRequest(this); result.name_ = name_; onBuilt(); return result; @@ -376,38 +412,39 @@ public com.google.cloud.iot.v1.DeleteDeviceRequest buildPartial() { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.iot.v1.DeleteDeviceRequest) { - return mergeFrom((com.google.cloud.iot.v1.DeleteDeviceRequest)other); + return mergeFrom((com.google.cloud.iot.v1.DeleteDeviceRequest) other); } else { super.mergeFrom(other); return this; @@ -451,20 +488,24 @@ public Builder mergeFrom( private java.lang.Object name_ = ""; /** + * + * *
      * Required. The name of the device. For example,
      * `projects/p0/locations/us-central1/registries/registry0/devices/device0` or
      * `projects/p0/locations/us-central1/registries/registry0/devices/{num_id}`.
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -473,22 +514,25 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. The name of the device. For example,
      * `projects/p0/locations/us-central1/registries/registry0/devices/device0` or
      * `projects/p0/locations/us-central1/registries/registry0/devices/{num_id}`.
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for name. */ - public com.google.protobuf.ByteString - getNameBytes() { + public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -496,67 +540,80 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. The name of the device. For example,
      * `projects/p0/locations/us-central1/registries/registry0/devices/device0` or
      * `projects/p0/locations/us-central1/registries/registry0/devices/{num_id}`.
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The name to set. * @return This builder for chaining. */ - public Builder setName( - java.lang.String value) { + public Builder setName(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + name_ = value; onChanged(); return this; } /** + * + * *
      * Required. The name of the device. For example,
      * `projects/p0/locations/us-central1/registries/registry0/devices/device0` or
      * `projects/p0/locations/us-central1/registries/registry0/devices/{num_id}`.
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return This builder for chaining. */ public Builder clearName() { - + name_ = getDefaultInstance().getName(); onChanged(); return this; } /** + * + * *
      * Required. The name of the device. For example,
      * `projects/p0/locations/us-central1/registries/registry0/devices/device0` or
      * `projects/p0/locations/us-central1/registries/registry0/devices/{num_id}`.
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes( - com.google.protobuf.ByteString value) { + public Builder setNameBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -566,12 +623,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.iot.v1.DeleteDeviceRequest) } // @@protoc_insertion_point(class_scope:google.cloud.iot.v1.DeleteDeviceRequest) private static final com.google.cloud.iot.v1.DeleteDeviceRequest DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.iot.v1.DeleteDeviceRequest(); } @@ -580,16 +637,16 @@ public static com.google.cloud.iot.v1.DeleteDeviceRequest getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public DeleteDeviceRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new DeleteDeviceRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DeleteDeviceRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new DeleteDeviceRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -604,6 +661,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.iot.v1.DeleteDeviceRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/proto-google-cloud-iot-v1/src/main/java/com/google/cloud/iot/v1/DeleteDeviceRequestOrBuilder.java b/proto-google-cloud-iot-v1/src/main/java/com/google/cloud/iot/v1/DeleteDeviceRequestOrBuilder.java new file mode 100644 index 00000000..86313705 --- /dev/null +++ b/proto-google-cloud-iot-v1/src/main/java/com/google/cloud/iot/v1/DeleteDeviceRequestOrBuilder.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/iot/v1/device_manager.proto + +package com.google.cloud.iot.v1; + +public interface DeleteDeviceRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.iot.v1.DeleteDeviceRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The name of the device. For example,
+   * `projects/p0/locations/us-central1/registries/registry0/devices/device0` or
+   * `projects/p0/locations/us-central1/registries/registry0/devices/{num_id}`.
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + java.lang.String getName(); + /** + * + * + *
+   * Required. The name of the device. For example,
+   * `projects/p0/locations/us-central1/registries/registry0/devices/device0` or
+   * `projects/p0/locations/us-central1/registries/registry0/devices/{num_id}`.
+   * 
+ * + * + * 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-iot-v1/src/main/java/com/google/cloud/iot/v1/Device.java b/proto-google-cloud-iot-v1/src/main/java/com/google/cloud/iot/v1/Device.java similarity index 78% rename from owl-bot-staging/v1/proto-google-cloud-iot-v1/src/main/java/com/google/cloud/iot/v1/Device.java rename to proto-google-cloud-iot-v1/src/main/java/com/google/cloud/iot/v1/Device.java index a86b452b..89348c10 100644 --- a/owl-bot-staging/v1/proto-google-cloud-iot-v1/src/main/java/com/google/cloud/iot/v1/Device.java +++ b/proto-google-cloud-iot-v1/src/main/java/com/google/cloud/iot/v1/Device.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/iot/v1/resources.proto package com.google.cloud.iot.v1; /** + * + * *
  * The device resource.
  * 
* * Protobuf type {@code google.cloud.iot.v1.Device} */ -public final class Device extends - com.google.protobuf.GeneratedMessageV3 implements +public final class Device extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.iot.v1.Device) DeviceOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use Device.newBuilder() to construct. private Device(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private Device() { id_ = ""; name_ = ""; @@ -28,16 +46,15 @@ private Device() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new Device(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private Device( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -57,193 +74,223 @@ private Device( case 0: done = true; break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); - - id_ = s; - break; - } - case 18: { - java.lang.String s = input.readStringRequireUtf8(); - - name_ = s; - break; - } - case 24: { + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); - numId_ = input.readUInt64(); - break; - } - case 58: { - com.google.protobuf.Timestamp.Builder subBuilder = null; - if (lastHeartbeatTime_ != null) { - subBuilder = lastHeartbeatTime_.toBuilder(); - } - lastHeartbeatTime_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(lastHeartbeatTime_); - lastHeartbeatTime_ = subBuilder.buildPartial(); + id_ = s; + break; } + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); - break; - } - case 66: { - com.google.protobuf.Timestamp.Builder subBuilder = null; - if (lastEventTime_ != null) { - subBuilder = lastEventTime_.toBuilder(); + name_ = s; + break; } - lastEventTime_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(lastEventTime_); - lastEventTime_ = subBuilder.buildPartial(); + case 24: + { + numId_ = input.readUInt64(); + break; } - - break; - } - case 82: { - com.google.protobuf.Timestamp.Builder subBuilder = null; - if (lastErrorTime_ != null) { - subBuilder = lastErrorTime_.toBuilder(); + case 58: + { + com.google.protobuf.Timestamp.Builder subBuilder = null; + if (lastHeartbeatTime_ != null) { + subBuilder = lastHeartbeatTime_.toBuilder(); + } + lastHeartbeatTime_ = + input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(lastHeartbeatTime_); + lastHeartbeatTime_ = subBuilder.buildPartial(); + } + + break; } - lastErrorTime_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(lastErrorTime_); - lastErrorTime_ = subBuilder.buildPartial(); + case 66: + { + com.google.protobuf.Timestamp.Builder subBuilder = null; + if (lastEventTime_ != null) { + subBuilder = lastEventTime_.toBuilder(); + } + lastEventTime_ = + input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(lastEventTime_); + lastEventTime_ = subBuilder.buildPartial(); + } + + break; } - - break; - } - case 90: { - com.google.rpc.Status.Builder subBuilder = null; - if (lastErrorStatus_ != null) { - subBuilder = lastErrorStatus_.toBuilder(); + case 82: + { + com.google.protobuf.Timestamp.Builder subBuilder = null; + if (lastErrorTime_ != null) { + subBuilder = lastErrorTime_.toBuilder(); + } + lastErrorTime_ = + input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(lastErrorTime_); + lastErrorTime_ = subBuilder.buildPartial(); + } + + break; } - lastErrorStatus_ = input.readMessage(com.google.rpc.Status.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(lastErrorStatus_); - lastErrorStatus_ = subBuilder.buildPartial(); + case 90: + { + com.google.rpc.Status.Builder subBuilder = null; + if (lastErrorStatus_ != null) { + subBuilder = lastErrorStatus_.toBuilder(); + } + lastErrorStatus_ = + input.readMessage(com.google.rpc.Status.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(lastErrorStatus_); + lastErrorStatus_ = subBuilder.buildPartial(); + } + + break; } - - break; - } - case 98: { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - credentials_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; + case 98: + { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + credentials_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; + } + credentials_.add( + input.readMessage( + com.google.cloud.iot.v1.DeviceCredential.parser(), extensionRegistry)); + break; } - credentials_.add( - input.readMessage(com.google.cloud.iot.v1.DeviceCredential.parser(), extensionRegistry)); - break; - } - case 106: { - com.google.cloud.iot.v1.DeviceConfig.Builder subBuilder = null; - if (config_ != null) { - subBuilder = config_.toBuilder(); + case 106: + { + com.google.cloud.iot.v1.DeviceConfig.Builder subBuilder = null; + if (config_ != null) { + subBuilder = config_.toBuilder(); + } + config_ = + input.readMessage( + com.google.cloud.iot.v1.DeviceConfig.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(config_); + config_ = subBuilder.buildPartial(); + } + + break; } - config_ = input.readMessage(com.google.cloud.iot.v1.DeviceConfig.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(config_); - config_ = subBuilder.buildPartial(); + case 114: + { + com.google.protobuf.Timestamp.Builder subBuilder = null; + if (lastConfigAckTime_ != null) { + subBuilder = lastConfigAckTime_.toBuilder(); + } + lastConfigAckTime_ = + input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(lastConfigAckTime_); + lastConfigAckTime_ = subBuilder.buildPartial(); + } + + break; } - - break; - } - case 114: { - com.google.protobuf.Timestamp.Builder subBuilder = null; - if (lastConfigAckTime_ != null) { - subBuilder = lastConfigAckTime_.toBuilder(); + case 130: + { + com.google.cloud.iot.v1.DeviceState.Builder subBuilder = null; + if (state_ != null) { + subBuilder = state_.toBuilder(); + } + state_ = + input.readMessage( + com.google.cloud.iot.v1.DeviceState.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(state_); + state_ = subBuilder.buildPartial(); + } + + break; } - lastConfigAckTime_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(lastConfigAckTime_); - lastConfigAckTime_ = subBuilder.buildPartial(); + case 138: + { + if (!((mutable_bitField0_ & 0x00000002) != 0)) { + metadata_ = + com.google.protobuf.MapField.newMapField( + MetadataDefaultEntryHolder.defaultEntry); + mutable_bitField0_ |= 0x00000002; + } + com.google.protobuf.MapEntry metadata__ = + input.readMessage( + MetadataDefaultEntryHolder.defaultEntry.getParserForType(), + extensionRegistry); + metadata_.getMutableMap().put(metadata__.getKey(), metadata__.getValue()); + break; } - - break; - } - case 130: { - com.google.cloud.iot.v1.DeviceState.Builder subBuilder = null; - if (state_ != null) { - subBuilder = state_.toBuilder(); + case 146: + { + com.google.protobuf.Timestamp.Builder subBuilder = null; + if (lastConfigSendTime_ != null) { + subBuilder = lastConfigSendTime_.toBuilder(); + } + lastConfigSendTime_ = + input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(lastConfigSendTime_); + lastConfigSendTime_ = subBuilder.buildPartial(); + } + + break; } - state_ = input.readMessage(com.google.cloud.iot.v1.DeviceState.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(state_); - state_ = subBuilder.buildPartial(); + case 152: + { + blocked_ = input.readBool(); + break; } - - break; - } - case 138: { - if (!((mutable_bitField0_ & 0x00000002) != 0)) { - metadata_ = com.google.protobuf.MapField.newMapField( - MetadataDefaultEntryHolder.defaultEntry); - mutable_bitField0_ |= 0x00000002; - } - com.google.protobuf.MapEntry - metadata__ = input.readMessage( - MetadataDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); - metadata_.getMutableMap().put( - metadata__.getKey(), metadata__.getValue()); - break; - } - case 146: { - com.google.protobuf.Timestamp.Builder subBuilder = null; - if (lastConfigSendTime_ != null) { - subBuilder = lastConfigSendTime_.toBuilder(); - } - lastConfigSendTime_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(lastConfigSendTime_); - lastConfigSendTime_ = subBuilder.buildPartial(); + case 162: + { + com.google.protobuf.Timestamp.Builder subBuilder = null; + if (lastStateTime_ != null) { + subBuilder = lastStateTime_.toBuilder(); + } + lastStateTime_ = + input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(lastStateTime_); + lastStateTime_ = subBuilder.buildPartial(); + } + + break; } + case 168: + { + int rawValue = input.readEnum(); - break; - } - case 152: { - - blocked_ = input.readBool(); - break; - } - case 162: { - com.google.protobuf.Timestamp.Builder subBuilder = null; - if (lastStateTime_ != null) { - subBuilder = lastStateTime_.toBuilder(); - } - lastStateTime_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(lastStateTime_); - lastStateTime_ = subBuilder.buildPartial(); - } - - break; - } - case 168: { - int rawValue = input.readEnum(); - - logLevel_ = rawValue; - break; - } - case 194: { - com.google.cloud.iot.v1.GatewayConfig.Builder subBuilder = null; - if (gatewayConfig_ != null) { - subBuilder = gatewayConfig_.toBuilder(); + logLevel_ = rawValue; + break; } - gatewayConfig_ = input.readMessage(com.google.cloud.iot.v1.GatewayConfig.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(gatewayConfig_); - gatewayConfig_ = subBuilder.buildPartial(); + case 194: + { + com.google.cloud.iot.v1.GatewayConfig.Builder subBuilder = null; + if (gatewayConfig_ != null) { + subBuilder = gatewayConfig_.toBuilder(); + } + gatewayConfig_ = + input.readMessage( + com.google.cloud.iot.v1.GatewayConfig.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(gatewayConfig_); + gatewayConfig_ = subBuilder.buildPartial(); + } + + break; } - - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -251,8 +298,7 @@ private Device( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } 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)) { credentials_ = java.util.Collections.unmodifiableList(credentials_); @@ -261,27 +307,28 @@ private Device( makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.iot.v1.ResourcesProto.internal_static_google_cloud_iot_v1_Device_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.iot.v1.ResourcesProto + .internal_static_google_cloud_iot_v1_Device_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 17: return internalGetMetadata(); default: - throw new RuntimeException( - "Invalid map field number: " + number); + throw new RuntimeException("Invalid map field number: " + number); } } + @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.iot.v1.ResourcesProto.internal_static_google_cloud_iot_v1_Device_fieldAccessorTable + return com.google.cloud.iot.v1.ResourcesProto + .internal_static_google_cloud_iot_v1_Device_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.cloud.iot.v1.Device.class, com.google.cloud.iot.v1.Device.Builder.class); } @@ -289,12 +336,15 @@ protected com.google.protobuf.MapField internalGetMapField( public static final int ID_FIELD_NUMBER = 1; private volatile java.lang.Object id_; /** + * + * *
    * The user-defined device identifier. The device ID must be unique
    * within a device registry.
    * 
* * string id = 1; + * * @return The id. */ @java.lang.Override @@ -303,30 +353,30 @@ 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; } } /** + * + * *
    * The user-defined device identifier. The device ID must be unique
    * within a device registry.
    * 
* * string id = 1; + * * @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 { @@ -337,6 +387,8 @@ public java.lang.String getId() { public static final int NAME_FIELD_NUMBER = 2; private volatile java.lang.Object name_; /** + * + * *
    * The resource path name. For example,
    * `projects/p1/locations/us-central1/registries/registry0/devices/dev0` or
@@ -346,6 +398,7 @@ public java.lang.String getId() {
    * 
* * string name = 2; + * * @return The name. */ @java.lang.Override @@ -354,14 +407,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; } } /** + * + * *
    * The resource path name. For example,
    * `projects/p1/locations/us-central1/registries/registry0/devices/dev0` or
@@ -371,16 +425,15 @@ public java.lang.String getName() {
    * 
* * string name = 2; + * * @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 { @@ -391,12 +444,15 @@ public java.lang.String getName() { public static final int NUM_ID_FIELD_NUMBER = 3; private long numId_; /** + * + * *
    * [Output only] A server-defined unique numeric ID for the device. This is a
    * more compact way to identify devices, and it is globally unique.
    * 
* * uint64 num_id = 3; + * * @return The numId. */ @java.lang.Override @@ -407,6 +463,8 @@ public long getNumId() { public static final int CREDENTIALS_FIELD_NUMBER = 12; private java.util.List credentials_; /** + * + * *
    * The credentials used to authenticate this device. To allow credential
    * rotation without interruption, multiple device credentials can be bound to
@@ -423,6 +481,8 @@ public java.util.List getCredentialsLi
     return credentials_;
   }
   /**
+   *
+   *
    * 
    * The credentials used to authenticate this device. To allow credential
    * rotation without interruption, multiple device credentials can be bound to
@@ -435,11 +495,13 @@ public java.util.List getCredentialsLi
    * repeated .google.cloud.iot.v1.DeviceCredential credentials = 12;
    */
   @java.lang.Override
-  public java.util.List 
+  public java.util.List
       getCredentialsOrBuilderList() {
     return credentials_;
   }
   /**
+   *
+   *
    * 
    * The credentials used to authenticate this device. To allow credential
    * rotation without interruption, multiple device credentials can be bound to
@@ -456,6 +518,8 @@ public int getCredentialsCount() {
     return credentials_.size();
   }
   /**
+   *
+   *
    * 
    * The credentials used to authenticate this device. To allow credential
    * rotation without interruption, multiple device credentials can be bound to
@@ -472,6 +536,8 @@ public com.google.cloud.iot.v1.DeviceCredential getCredentials(int index) {
     return credentials_.get(index);
   }
   /**
+   *
+   *
    * 
    * The credentials used to authenticate this device. To allow credential
    * rotation without interruption, multiple device credentials can be bound to
@@ -484,14 +550,15 @@ public com.google.cloud.iot.v1.DeviceCredential getCredentials(int index) {
    * repeated .google.cloud.iot.v1.DeviceCredential credentials = 12;
    */
   @java.lang.Override
-  public com.google.cloud.iot.v1.DeviceCredentialOrBuilder getCredentialsOrBuilder(
-      int index) {
+  public com.google.cloud.iot.v1.DeviceCredentialOrBuilder getCredentialsOrBuilder(int index) {
     return credentials_.get(index);
   }
 
   public static final int LAST_HEARTBEAT_TIME_FIELD_NUMBER = 7;
   private com.google.protobuf.Timestamp lastHeartbeatTime_;
   /**
+   *
+   *
    * 
    * [Output only] The last time an MQTT `PINGREQ` was received. This field
    * applies only to devices connecting through MQTT. MQTT clients usually only
@@ -501,6 +568,7 @@ public com.google.cloud.iot.v1.DeviceCredentialOrBuilder getCredentialsOrBuilder
    * 
* * .google.protobuf.Timestamp last_heartbeat_time = 7; + * * @return Whether the lastHeartbeatTime field is set. */ @java.lang.Override @@ -508,6 +576,8 @@ public boolean hasLastHeartbeatTime() { return lastHeartbeatTime_ != null; } /** + * + * *
    * [Output only] The last time an MQTT `PINGREQ` was received. This field
    * applies only to devices connecting through MQTT. MQTT clients usually only
@@ -517,13 +587,18 @@ public boolean hasLastHeartbeatTime() {
    * 
* * .google.protobuf.Timestamp last_heartbeat_time = 7; + * * @return The lastHeartbeatTime. */ @java.lang.Override public com.google.protobuf.Timestamp getLastHeartbeatTime() { - return lastHeartbeatTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : lastHeartbeatTime_; + return lastHeartbeatTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : lastHeartbeatTime_; } /** + * + * *
    * [Output only] The last time an MQTT `PINGREQ` was received. This field
    * applies only to devices connecting through MQTT. MQTT clients usually only
@@ -542,6 +617,8 @@ public com.google.protobuf.TimestampOrBuilder getLastHeartbeatTimeOrBuilder() {
   public static final int LAST_EVENT_TIME_FIELD_NUMBER = 8;
   private com.google.protobuf.Timestamp lastEventTime_;
   /**
+   *
+   *
    * 
    * [Output only] The last time a telemetry event was received. Timestamps are
    * periodically collected and written to storage; they may be stale by a few
@@ -549,6 +626,7 @@ public com.google.protobuf.TimestampOrBuilder getLastHeartbeatTimeOrBuilder() {
    * 
* * .google.protobuf.Timestamp last_event_time = 8; + * * @return Whether the lastEventTime field is set. */ @java.lang.Override @@ -556,6 +634,8 @@ public boolean hasLastEventTime() { return lastEventTime_ != null; } /** + * + * *
    * [Output only] The last time a telemetry event was received. Timestamps are
    * periodically collected and written to storage; they may be stale by a few
@@ -563,13 +643,18 @@ public boolean hasLastEventTime() {
    * 
* * .google.protobuf.Timestamp last_event_time = 8; + * * @return The lastEventTime. */ @java.lang.Override public com.google.protobuf.Timestamp getLastEventTime() { - return lastEventTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : lastEventTime_; + return lastEventTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : lastEventTime_; } /** + * + * *
    * [Output only] The last time a telemetry event was received. Timestamps are
    * periodically collected and written to storage; they may be stale by a few
@@ -586,6 +671,8 @@ public com.google.protobuf.TimestampOrBuilder getLastEventTimeOrBuilder() {
   public static final int LAST_STATE_TIME_FIELD_NUMBER = 20;
   private com.google.protobuf.Timestamp lastStateTime_;
   /**
+   *
+   *
    * 
    * [Output only] The last time a state event was received. Timestamps are
    * periodically collected and written to storage; they may be stale by a few
@@ -593,6 +680,7 @@ public com.google.protobuf.TimestampOrBuilder getLastEventTimeOrBuilder() {
    * 
* * .google.protobuf.Timestamp last_state_time = 20; + * * @return Whether the lastStateTime field is set. */ @java.lang.Override @@ -600,6 +688,8 @@ public boolean hasLastStateTime() { return lastStateTime_ != null; } /** + * + * *
    * [Output only] The last time a state event was received. Timestamps are
    * periodically collected and written to storage; they may be stale by a few
@@ -607,13 +697,18 @@ public boolean hasLastStateTime() {
    * 
* * .google.protobuf.Timestamp last_state_time = 20; + * * @return The lastStateTime. */ @java.lang.Override public com.google.protobuf.Timestamp getLastStateTime() { - return lastStateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : lastStateTime_; + return lastStateTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : lastStateTime_; } /** + * + * *
    * [Output only] The last time a state event was received. Timestamps are
    * periodically collected and written to storage; they may be stale by a few
@@ -630,6 +725,8 @@ public com.google.protobuf.TimestampOrBuilder getLastStateTimeOrBuilder() {
   public static final int LAST_CONFIG_ACK_TIME_FIELD_NUMBER = 14;
   private com.google.protobuf.Timestamp lastConfigAckTime_;
   /**
+   *
+   *
    * 
    * [Output only] The last time a cloud-to-device config version acknowledgment
    * was received from the device. This field is only for configurations
@@ -637,6 +734,7 @@ public com.google.protobuf.TimestampOrBuilder getLastStateTimeOrBuilder() {
    * 
* * .google.protobuf.Timestamp last_config_ack_time = 14; + * * @return Whether the lastConfigAckTime field is set. */ @java.lang.Override @@ -644,6 +742,8 @@ public boolean hasLastConfigAckTime() { return lastConfigAckTime_ != null; } /** + * + * *
    * [Output only] The last time a cloud-to-device config version acknowledgment
    * was received from the device. This field is only for configurations
@@ -651,13 +751,18 @@ public boolean hasLastConfigAckTime() {
    * 
* * .google.protobuf.Timestamp last_config_ack_time = 14; + * * @return The lastConfigAckTime. */ @java.lang.Override public com.google.protobuf.Timestamp getLastConfigAckTime() { - return lastConfigAckTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : lastConfigAckTime_; + return lastConfigAckTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : lastConfigAckTime_; } /** + * + * *
    * [Output only] The last time a cloud-to-device config version acknowledgment
    * was received from the device. This field is only for configurations
@@ -674,12 +779,15 @@ public com.google.protobuf.TimestampOrBuilder getLastConfigAckTimeOrBuilder() {
   public static final int LAST_CONFIG_SEND_TIME_FIELD_NUMBER = 18;
   private com.google.protobuf.Timestamp lastConfigSendTime_;
   /**
+   *
+   *
    * 
    * [Output only] The last time a cloud-to-device config version was sent to
    * the device.
    * 
* * .google.protobuf.Timestamp last_config_send_time = 18; + * * @return Whether the lastConfigSendTime field is set. */ @java.lang.Override @@ -687,19 +795,26 @@ public boolean hasLastConfigSendTime() { return lastConfigSendTime_ != null; } /** + * + * *
    * [Output only] The last time a cloud-to-device config version was sent to
    * the device.
    * 
* * .google.protobuf.Timestamp last_config_send_time = 18; + * * @return The lastConfigSendTime. */ @java.lang.Override public com.google.protobuf.Timestamp getLastConfigSendTime() { - return lastConfigSendTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : lastConfigSendTime_; + return lastConfigSendTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : lastConfigSendTime_; } /** + * + * *
    * [Output only] The last time a cloud-to-device config version was sent to
    * the device.
@@ -715,6 +830,8 @@ public com.google.protobuf.TimestampOrBuilder getLastConfigSendTimeOrBuilder() {
   public static final int BLOCKED_FIELD_NUMBER = 19;
   private boolean blocked_;
   /**
+   *
+   *
    * 
    * If a device is blocked, connections or requests from this device will fail.
    * Can be used to temporarily prevent the device from connecting if, for
@@ -722,6 +839,7 @@ public com.google.protobuf.TimestampOrBuilder getLastConfigSendTimeOrBuilder() {
    * 
* * bool blocked = 19; + * * @return The blocked. */ @java.lang.Override @@ -732,6 +850,8 @@ public boolean getBlocked() { public static final int LAST_ERROR_TIME_FIELD_NUMBER = 10; private com.google.protobuf.Timestamp lastErrorTime_; /** + * + * *
    * [Output only] The time the most recent error occurred, such as a failure to
    * publish to Cloud Pub/Sub. This field is the timestamp of
@@ -739,6 +859,7 @@ public boolean getBlocked() {
    * 
* * .google.protobuf.Timestamp last_error_time = 10; + * * @return Whether the lastErrorTime field is set. */ @java.lang.Override @@ -746,6 +867,8 @@ public boolean hasLastErrorTime() { return lastErrorTime_ != null; } /** + * + * *
    * [Output only] The time the most recent error occurred, such as a failure to
    * publish to Cloud Pub/Sub. This field is the timestamp of
@@ -753,13 +876,18 @@ public boolean hasLastErrorTime() {
    * 
* * .google.protobuf.Timestamp last_error_time = 10; + * * @return The lastErrorTime. */ @java.lang.Override public com.google.protobuf.Timestamp getLastErrorTime() { - return lastErrorTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : lastErrorTime_; + return lastErrorTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : lastErrorTime_; } /** + * + * *
    * [Output only] The time the most recent error occurred, such as a failure to
    * publish to Cloud Pub/Sub. This field is the timestamp of
@@ -776,6 +904,8 @@ public com.google.protobuf.TimestampOrBuilder getLastErrorTimeOrBuilder() {
   public static final int LAST_ERROR_STATUS_FIELD_NUMBER = 11;
   private com.google.rpc.Status lastErrorStatus_;
   /**
+   *
+   *
    * 
    * [Output only] The error message of the most recent error, such as a failure
    * to publish to Cloud Pub/Sub. 'last_error_time' is the timestamp of this
@@ -785,6 +915,7 @@ public com.google.protobuf.TimestampOrBuilder getLastErrorTimeOrBuilder() {
    * 
* * .google.rpc.Status last_error_status = 11; + * * @return Whether the lastErrorStatus field is set. */ @java.lang.Override @@ -792,6 +923,8 @@ public boolean hasLastErrorStatus() { return lastErrorStatus_ != null; } /** + * + * *
    * [Output only] The error message of the most recent error, such as a failure
    * to publish to Cloud Pub/Sub. 'last_error_time' is the timestamp of this
@@ -801,6 +934,7 @@ public boolean hasLastErrorStatus() {
    * 
* * .google.rpc.Status last_error_status = 11; + * * @return The lastErrorStatus. */ @java.lang.Override @@ -808,6 +942,8 @@ public com.google.rpc.Status getLastErrorStatus() { return lastErrorStatus_ == null ? com.google.rpc.Status.getDefaultInstance() : lastErrorStatus_; } /** + * + * *
    * [Output only] The error message of the most recent error, such as a failure
    * to publish to Cloud Pub/Sub. 'last_error_time' is the timestamp of this
@@ -826,6 +962,8 @@ public com.google.rpc.StatusOrBuilder getLastErrorStatusOrBuilder() {
   public static final int CONFIG_FIELD_NUMBER = 13;
   private com.google.cloud.iot.v1.DeviceConfig config_;
   /**
+   *
+   *
    * 
    * The most recent device configuration, which is eventually sent from
    * Cloud IoT Core to the device. If not present on creation, the
@@ -835,6 +973,7 @@ public com.google.rpc.StatusOrBuilder getLastErrorStatusOrBuilder() {
    * 
* * .google.cloud.iot.v1.DeviceConfig config = 13; + * * @return Whether the config field is set. */ @java.lang.Override @@ -842,6 +981,8 @@ public boolean hasConfig() { return config_ != null; } /** + * + * *
    * The most recent device configuration, which is eventually sent from
    * Cloud IoT Core to the device. If not present on creation, the
@@ -851,6 +992,7 @@ public boolean hasConfig() {
    * 
* * .google.cloud.iot.v1.DeviceConfig config = 13; + * * @return The config. */ @java.lang.Override @@ -858,6 +1000,8 @@ public com.google.cloud.iot.v1.DeviceConfig getConfig() { return config_ == null ? com.google.cloud.iot.v1.DeviceConfig.getDefaultInstance() : config_; } /** + * + * *
    * The most recent device configuration, which is eventually sent from
    * Cloud IoT Core to the device. If not present on creation, the
@@ -876,12 +1020,15 @@ public com.google.cloud.iot.v1.DeviceConfigOrBuilder getConfigOrBuilder() {
   public static final int STATE_FIELD_NUMBER = 16;
   private com.google.cloud.iot.v1.DeviceState state_;
   /**
+   *
+   *
    * 
    * [Output only] The state most recently received from the device. If no state
    * has been reported, this field is not present.
    * 
* * .google.cloud.iot.v1.DeviceState state = 16; + * * @return Whether the state field is set. */ @java.lang.Override @@ -889,12 +1036,15 @@ public boolean hasState() { return state_ != null; } /** + * + * *
    * [Output only] The state most recently received from the device. If no state
    * has been reported, this field is not present.
    * 
* * .google.cloud.iot.v1.DeviceState state = 16; + * * @return The state. */ @java.lang.Override @@ -902,6 +1052,8 @@ public com.google.cloud.iot.v1.DeviceState getState() { return state_ == null ? com.google.cloud.iot.v1.DeviceState.getDefaultInstance() : state_; } /** + * + * *
    * [Output only] The state most recently received from the device. If no state
    * has been reported, this field is not present.
@@ -917,6 +1069,8 @@ public com.google.cloud.iot.v1.DeviceStateOrBuilder getStateOrBuilder() {
   public static final int LOG_LEVEL_FIELD_NUMBER = 21;
   private int logLevel_;
   /**
+   *
+   *
    * 
    * **Beta Feature**
    * The logging verbosity for device activity. If unspecified,
@@ -924,12 +1078,16 @@ public com.google.cloud.iot.v1.DeviceStateOrBuilder getStateOrBuilder() {
    * 
* * .google.cloud.iot.v1.LogLevel log_level = 21; + * * @return The enum numeric value on the wire for logLevel. */ - @java.lang.Override public int getLogLevelValue() { + @java.lang.Override + public int getLogLevelValue() { return logLevel_; } /** + * + * *
    * **Beta Feature**
    * The logging verbosity for device activity. If unspecified,
@@ -937,33 +1095,34 @@ public com.google.cloud.iot.v1.DeviceStateOrBuilder getStateOrBuilder() {
    * 
* * .google.cloud.iot.v1.LogLevel log_level = 21; + * * @return The logLevel. */ - @java.lang.Override public com.google.cloud.iot.v1.LogLevel getLogLevel() { + @java.lang.Override + public com.google.cloud.iot.v1.LogLevel getLogLevel() { @SuppressWarnings("deprecation") com.google.cloud.iot.v1.LogLevel result = com.google.cloud.iot.v1.LogLevel.valueOf(logLevel_); return result == null ? com.google.cloud.iot.v1.LogLevel.UNRECOGNIZED : result; } public static final int METADATA_FIELD_NUMBER = 17; + private static final class MetadataDefaultEntryHolder { - static final com.google.protobuf.MapEntry< - java.lang.String, java.lang.String> defaultEntry = - com.google.protobuf.MapEntry - .newDefaultInstance( - com.google.cloud.iot.v1.ResourcesProto.internal_static_google_cloud_iot_v1_Device_MetadataEntry_descriptor, - com.google.protobuf.WireFormat.FieldType.STRING, - "", - com.google.protobuf.WireFormat.FieldType.STRING, - ""); + static final com.google.protobuf.MapEntry defaultEntry = + com.google.protobuf.MapEntry.newDefaultInstance( + com.google.cloud.iot.v1.ResourcesProto + .internal_static_google_cloud_iot_v1_Device_MetadataEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.STRING, + "", + com.google.protobuf.WireFormat.FieldType.STRING, + ""); } - private com.google.protobuf.MapField< - java.lang.String, java.lang.String> metadata_; - private com.google.protobuf.MapField - internalGetMetadata() { + + private com.google.protobuf.MapField metadata_; + + private com.google.protobuf.MapField internalGetMetadata() { if (metadata_ == null) { - return com.google.protobuf.MapField.emptyMapField( - MetadataDefaultEntryHolder.defaultEntry); + return com.google.protobuf.MapField.emptyMapField(MetadataDefaultEntryHolder.defaultEntry); } return metadata_; } @@ -972,6 +1131,8 @@ public int getMetadataCount() { return internalGetMetadata().getMap().size(); } /** + * + * *
    * The metadata key-value pairs assigned to the device. This metadata is not
    * interpreted or indexed by Cloud IoT Core. It can be used to add contextual
@@ -986,22 +1147,22 @@ public int getMetadataCount() {
    *
    * map<string, string> metadata = 17;
    */
-
   @java.lang.Override
-  public boolean containsMetadata(
-      java.lang.String key) {
-    if (key == null) { throw new NullPointerException("map key"); }
+  public boolean containsMetadata(java.lang.String key) {
+    if (key == null) {
+      throw new NullPointerException("map key");
+    }
     return internalGetMetadata().getMap().containsKey(key);
   }
-  /**
-   * Use {@link #getMetadataMap()} instead.
-   */
+  /** Use {@link #getMetadataMap()} instead. */
   @java.lang.Override
   @java.lang.Deprecated
   public java.util.Map getMetadata() {
     return getMetadataMap();
   }
   /**
+   *
+   *
    * 
    * The metadata key-value pairs assigned to the device. This metadata is not
    * interpreted or indexed by Cloud IoT Core. It can be used to add contextual
@@ -1017,11 +1178,12 @@ public java.util.Map getMetadata() {
    * map<string, string> metadata = 17;
    */
   @java.lang.Override
-
   public java.util.Map getMetadataMap() {
     return internalGetMetadata().getMap();
   }
   /**
+   *
+   *
    * 
    * The metadata key-value pairs assigned to the device. This metadata is not
    * interpreted or indexed by Cloud IoT Core. It can be used to add contextual
@@ -1037,16 +1199,17 @@ public java.util.Map getMetadataMap() {
    * map<string, string> metadata = 17;
    */
   @java.lang.Override
-
   public java.lang.String getMetadataOrDefault(
-      java.lang.String key,
-      java.lang.String defaultValue) {
-    if (key == null) { throw new NullPointerException("map key"); }
-    java.util.Map map =
-        internalGetMetadata().getMap();
+      java.lang.String key, java.lang.String defaultValue) {
+    if (key == null) {
+      throw new NullPointerException("map key");
+    }
+    java.util.Map map = internalGetMetadata().getMap();
     return map.containsKey(key) ? map.get(key) : defaultValue;
   }
   /**
+   *
+   *
    * 
    * The metadata key-value pairs assigned to the device. This metadata is not
    * interpreted or indexed by Cloud IoT Core. It can be used to add contextual
@@ -1062,12 +1225,11 @@ public java.lang.String getMetadataOrDefault(
    * map<string, string> metadata = 17;
    */
   @java.lang.Override
-
-  public java.lang.String getMetadataOrThrow(
-      java.lang.String key) {
-    if (key == null) { throw new NullPointerException("map key"); }
-    java.util.Map map =
-        internalGetMetadata().getMap();
+  public java.lang.String getMetadataOrThrow(java.lang.String key) {
+    if (key == null) {
+      throw new NullPointerException("map key");
+    }
+    java.util.Map map = internalGetMetadata().getMap();
     if (!map.containsKey(key)) {
       throw new java.lang.IllegalArgumentException();
     }
@@ -1077,11 +1239,14 @@ public java.lang.String getMetadataOrThrow(
   public static final int GATEWAY_CONFIG_FIELD_NUMBER = 24;
   private com.google.cloud.iot.v1.GatewayConfig gatewayConfig_;
   /**
+   *
+   *
    * 
    * Gateway-related configuration and state.
    * 
* * .google.cloud.iot.v1.GatewayConfig gateway_config = 24; + * * @return Whether the gatewayConfig field is set. */ @java.lang.Override @@ -1089,18 +1254,25 @@ public boolean hasGatewayConfig() { return gatewayConfig_ != null; } /** + * + * *
    * Gateway-related configuration and state.
    * 
* * .google.cloud.iot.v1.GatewayConfig gateway_config = 24; + * * @return The gatewayConfig. */ @java.lang.Override public com.google.cloud.iot.v1.GatewayConfig getGatewayConfig() { - return gatewayConfig_ == null ? com.google.cloud.iot.v1.GatewayConfig.getDefaultInstance() : gatewayConfig_; + return gatewayConfig_ == null + ? com.google.cloud.iot.v1.GatewayConfig.getDefaultInstance() + : gatewayConfig_; } /** + * + * *
    * Gateway-related configuration and state.
    * 
@@ -1113,6 +1285,7 @@ public com.google.cloud.iot.v1.GatewayConfigOrBuilder getGatewayConfigOrBuilder( } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -1124,8 +1297,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.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_); } @@ -1159,12 +1331,8 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) if (state_ != null) { output.writeMessage(16, getState()); } - com.google.protobuf.GeneratedMessageV3 - .serializeStringMapTo( - output, - internalGetMetadata(), - MetadataDefaultEntryHolder.defaultEntry, - 17); + com.google.protobuf.GeneratedMessageV3.serializeStringMapTo( + output, internalGetMetadata(), MetadataDefaultEntryHolder.defaultEntry, 17); if (lastConfigSendTime_ != null) { output.writeMessage(18, getLastConfigSendTime()); } @@ -1196,70 +1364,56 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, name_); } if (numId_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeUInt64Size(3, numId_); + size += com.google.protobuf.CodedOutputStream.computeUInt64Size(3, numId_); } if (lastHeartbeatTime_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(7, getLastHeartbeatTime()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(7, getLastHeartbeatTime()); } if (lastEventTime_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(8, getLastEventTime()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(8, getLastEventTime()); } if (lastErrorTime_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(10, getLastErrorTime()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(10, getLastErrorTime()); } if (lastErrorStatus_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(11, getLastErrorStatus()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(11, getLastErrorStatus()); } for (int i = 0; i < credentials_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(12, credentials_.get(i)); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(12, credentials_.get(i)); } if (config_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(13, getConfig()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(13, getConfig()); } if (lastConfigAckTime_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(14, getLastConfigAckTime()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(14, getLastConfigAckTime()); } if (state_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(16, getState()); - } - for (java.util.Map.Entry entry - : internalGetMetadata().getMap().entrySet()) { - com.google.protobuf.MapEntry - metadata__ = MetadataDefaultEntryHolder.defaultEntry.newBuilderForType() - .setKey(entry.getKey()) - .setValue(entry.getValue()) - .build(); - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(17, metadata__); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(16, getState()); + } + for (java.util.Map.Entry entry : + internalGetMetadata().getMap().entrySet()) { + com.google.protobuf.MapEntry metadata__ = + MetadataDefaultEntryHolder.defaultEntry + .newBuilderForType() + .setKey(entry.getKey()) + .setValue(entry.getValue()) + .build(); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(17, metadata__); } if (lastConfigSendTime_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(18, getLastConfigSendTime()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(18, getLastConfigSendTime()); } if (blocked_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(19, blocked_); + size += com.google.protobuf.CodedOutputStream.computeBoolSize(19, blocked_); } if (lastStateTime_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(20, getLastStateTime()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(20, getLastStateTime()); } if (logLevel_ != com.google.cloud.iot.v1.LogLevel.LOG_LEVEL_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(21, logLevel_); + size += com.google.protobuf.CodedOutputStream.computeEnumSize(21, logLevel_); } if (gatewayConfig_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(24, getGatewayConfig()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(24, getGatewayConfig()); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -1269,75 +1423,59 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.iot.v1.Device)) { return super.equals(obj); } com.google.cloud.iot.v1.Device other = (com.google.cloud.iot.v1.Device) obj; - if (!getId() - .equals(other.getId())) return false; - if (!getName() - .equals(other.getName())) return false; - if (getNumId() - != other.getNumId()) return false; - if (!getCredentialsList() - .equals(other.getCredentialsList())) return false; + if (!getId().equals(other.getId())) return false; + if (!getName().equals(other.getName())) return false; + if (getNumId() != other.getNumId()) return false; + if (!getCredentialsList().equals(other.getCredentialsList())) return false; if (hasLastHeartbeatTime() != other.hasLastHeartbeatTime()) return false; if (hasLastHeartbeatTime()) { - if (!getLastHeartbeatTime() - .equals(other.getLastHeartbeatTime())) return false; + if (!getLastHeartbeatTime().equals(other.getLastHeartbeatTime())) return false; } if (hasLastEventTime() != other.hasLastEventTime()) return false; if (hasLastEventTime()) { - if (!getLastEventTime() - .equals(other.getLastEventTime())) return false; + if (!getLastEventTime().equals(other.getLastEventTime())) return false; } if (hasLastStateTime() != other.hasLastStateTime()) return false; if (hasLastStateTime()) { - if (!getLastStateTime() - .equals(other.getLastStateTime())) return false; + if (!getLastStateTime().equals(other.getLastStateTime())) return false; } if (hasLastConfigAckTime() != other.hasLastConfigAckTime()) return false; if (hasLastConfigAckTime()) { - if (!getLastConfigAckTime() - .equals(other.getLastConfigAckTime())) return false; + if (!getLastConfigAckTime().equals(other.getLastConfigAckTime())) return false; } if (hasLastConfigSendTime() != other.hasLastConfigSendTime()) return false; if (hasLastConfigSendTime()) { - if (!getLastConfigSendTime() - .equals(other.getLastConfigSendTime())) return false; + if (!getLastConfigSendTime().equals(other.getLastConfigSendTime())) return false; } - if (getBlocked() - != other.getBlocked()) return false; + if (getBlocked() != other.getBlocked()) return false; if (hasLastErrorTime() != other.hasLastErrorTime()) return false; if (hasLastErrorTime()) { - if (!getLastErrorTime() - .equals(other.getLastErrorTime())) return false; + if (!getLastErrorTime().equals(other.getLastErrorTime())) return false; } if (hasLastErrorStatus() != other.hasLastErrorStatus()) return false; if (hasLastErrorStatus()) { - if (!getLastErrorStatus() - .equals(other.getLastErrorStatus())) return false; + if (!getLastErrorStatus().equals(other.getLastErrorStatus())) return false; } if (hasConfig() != other.hasConfig()) return false; if (hasConfig()) { - if (!getConfig() - .equals(other.getConfig())) return false; + if (!getConfig().equals(other.getConfig())) return false; } if (hasState() != other.hasState()) return false; if (hasState()) { - if (!getState() - .equals(other.getState())) return false; + if (!getState().equals(other.getState())) return false; } if (logLevel_ != other.logLevel_) return false; - if (!internalGetMetadata().equals( - other.internalGetMetadata())) return false; + if (!internalGetMetadata().equals(other.internalGetMetadata())) return false; if (hasGatewayConfig() != other.hasGatewayConfig()) return false; if (hasGatewayConfig()) { - if (!getGatewayConfig() - .equals(other.getGatewayConfig())) return false; + if (!getGatewayConfig().equals(other.getGatewayConfig())) return false; } if (!unknownFields.equals(other.unknownFields)) return false; return true; @@ -1355,8 +1493,7 @@ public int hashCode() { hash = (37 * hash) + NAME_FIELD_NUMBER; hash = (53 * hash) + getName().hashCode(); hash = (37 * hash) + NUM_ID_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getNumId()); + hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getNumId()); if (getCredentialsCount() > 0) { hash = (37 * hash) + CREDENTIALS_FIELD_NUMBER; hash = (53 * hash) + getCredentialsList().hashCode(); @@ -1382,8 +1519,7 @@ public int hashCode() { hash = (53 * hash) + getLastConfigSendTime().hashCode(); } hash = (37 * hash) + BLOCKED_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getBlocked()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getBlocked()); if (hasLastErrorTime()) { hash = (37 * hash) + LAST_ERROR_TIME_FIELD_NUMBER; hash = (53 * hash) + getLastErrorTime().hashCode(); @@ -1415,138 +1551,143 @@ public int hashCode() { return hash; } - public static com.google.cloud.iot.v1.Device parseFrom( - java.nio.ByteBuffer data) + public static com.google.cloud.iot.v1.Device parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.iot.v1.Device parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.iot.v1.Device parseFrom( - com.google.protobuf.ByteString data) + + public static com.google.cloud.iot.v1.Device parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.iot.v1.Device parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.iot.v1.Device parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.iot.v1.Device parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.iot.v1.Device 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.iot.v1.Device parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.iot.v1.Device 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.iot.v1.Device parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.iot.v1.Device parseFrom( - com.google.protobuf.CodedInputStream input) + + public static com.google.cloud.iot.v1.Device parseFrom(com.google.protobuf.CodedInputStream 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.iot.v1.Device parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.cloud.iot.v1.Device prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected 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 device resource.
    * 
* * Protobuf type {@code google.cloud.iot.v1.Device} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.iot.v1.Device) com.google.cloud.iot.v1.DeviceOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.iot.v1.ResourcesProto.internal_static_google_cloud_iot_v1_Device_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.iot.v1.ResourcesProto + .internal_static_google_cloud_iot_v1_Device_descriptor; } @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapField internalGetMapField( - int number) { + protected com.google.protobuf.MapField internalGetMapField(int number) { switch (number) { case 17: return internalGetMetadata(); default: - throw new RuntimeException( - "Invalid map field number: " + number); + throw new RuntimeException("Invalid map field number: " + number); } } + @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapField internalGetMutableMapField( - int number) { + protected com.google.protobuf.MapField internalGetMutableMapField(int number) { switch (number) { case 17: return internalGetMutableMetadata(); default: - throw new RuntimeException( - "Invalid map field number: " + number); + throw new RuntimeException("Invalid map field number: " + number); } } + @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.iot.v1.ResourcesProto.internal_static_google_cloud_iot_v1_Device_fieldAccessorTable + return com.google.cloud.iot.v1.ResourcesProto + .internal_static_google_cloud_iot_v1_Device_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.cloud.iot.v1.Device.class, com.google.cloud.iot.v1.Device.Builder.class); } @@ -1556,17 +1697,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) { getCredentialsFieldBuilder(); } } + @java.lang.Override public Builder clear() { super.clear(); @@ -1651,9 +1792,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.iot.v1.ResourcesProto.internal_static_google_cloud_iot_v1_Device_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.iot.v1.ResourcesProto + .internal_static_google_cloud_iot_v1_Device_descriptor; } @java.lang.Override @@ -1748,38 +1889,39 @@ public com.google.cloud.iot.v1.Device buildPartial() { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.iot.v1.Device) { - return mergeFrom((com.google.cloud.iot.v1.Device)other); + return mergeFrom((com.google.cloud.iot.v1.Device) other); } else { super.mergeFrom(other); return this; @@ -1817,9 +1959,10 @@ public Builder mergeFrom(com.google.cloud.iot.v1.Device other) { credentialsBuilder_ = null; credentials_ = other.credentials_; bitField0_ = (bitField0_ & ~0x00000001); - credentialsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getCredentialsFieldBuilder() : null; + credentialsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getCredentialsFieldBuilder() + : null; } else { credentialsBuilder_.addAllMessages(other.credentials_); } @@ -1858,8 +2001,7 @@ public Builder mergeFrom(com.google.cloud.iot.v1.Device other) { if (other.logLevel_ != 0) { setLogLevelValue(other.getLogLevelValue()); } - internalGetMutableMetadata().mergeFrom( - other.internalGetMetadata()); + internalGetMutableMetadata().mergeFrom(other.internalGetMetadata()); if (other.hasGatewayConfig()) { mergeGatewayConfig(other.getGatewayConfig()); } @@ -1891,23 +2033,26 @@ public Builder mergeFrom( } return this; } + private int bitField0_; private java.lang.Object id_ = ""; /** + * + * *
      * The user-defined device identifier. The device ID must be unique
      * within a device registry.
      * 
* * string id = 1; + * * @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; @@ -1916,21 +2061,22 @@ public java.lang.String getId() { } } /** + * + * *
      * The user-defined device identifier. The device ID must be unique
      * within a device registry.
      * 
* * string id = 1; + * * @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 { @@ -1938,57 +2084,64 @@ public java.lang.String getId() { } } /** + * + * *
      * The user-defined device identifier. The device ID must be unique
      * within a device registry.
      * 
* * string id = 1; + * * @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; } /** + * + * *
      * The user-defined device identifier. The device ID must be unique
      * within a device registry.
      * 
* * string id = 1; + * * @return This builder for chaining. */ public Builder clearId() { - + id_ = getDefaultInstance().getId(); onChanged(); return this; } /** + * + * *
      * The user-defined device identifier. The device ID must be unique
      * within a device registry.
      * 
* * string id = 1; + * * @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; @@ -1996,6 +2149,8 @@ public Builder setIdBytes( private java.lang.Object name_ = ""; /** + * + * *
      * The resource path name. For example,
      * `projects/p1/locations/us-central1/registries/registry0/devices/dev0` or
@@ -2005,13 +2160,13 @@ public Builder setIdBytes(
      * 
* * string name = 2; + * * @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; @@ -2020,6 +2175,8 @@ public java.lang.String getName() { } } /** + * + * *
      * The resource path name. For example,
      * `projects/p1/locations/us-central1/registries/registry0/devices/dev0` or
@@ -2029,15 +2186,14 @@ public java.lang.String getName() {
      * 
* * string name = 2; + * * @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 { @@ -2045,6 +2201,8 @@ public java.lang.String getName() { } } /** + * + * *
      * The resource path name. For example,
      * `projects/p1/locations/us-central1/registries/registry0/devices/dev0` or
@@ -2054,20 +2212,22 @@ public java.lang.String getName() {
      * 
* * string name = 2; + * * @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; } /** + * + * *
      * The resource path name. For example,
      * `projects/p1/locations/us-central1/registries/registry0/devices/dev0` or
@@ -2077,15 +2237,18 @@ public Builder setName(
      * 
* * string name = 2; + * * @return This builder for chaining. */ public Builder clearName() { - + name_ = getDefaultInstance().getName(); onChanged(); return this; } /** + * + * *
      * The resource path name. For example,
      * `projects/p1/locations/us-central1/registries/registry0/devices/dev0` or
@@ -2095,29 +2258,32 @@ public Builder clearName() {
      * 
* * string name = 2; + * * @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 long numId_ ; + private long numId_; /** + * + * *
      * [Output only] A server-defined unique numeric ID for the device. This is a
      * more compact way to identify devices, and it is globally unique.
      * 
* * uint64 num_id = 3; + * * @return The numId. */ @java.lang.Override @@ -2125,50 +2291,63 @@ public long getNumId() { return numId_; } /** + * + * *
      * [Output only] A server-defined unique numeric ID for the device. This is a
      * more compact way to identify devices, and it is globally unique.
      * 
* * uint64 num_id = 3; + * * @param value The numId to set. * @return This builder for chaining. */ public Builder setNumId(long value) { - + numId_ = value; onChanged(); return this; } /** + * + * *
      * [Output only] A server-defined unique numeric ID for the device. This is a
      * more compact way to identify devices, and it is globally unique.
      * 
* * uint64 num_id = 3; + * * @return This builder for chaining. */ public Builder clearNumId() { - + numId_ = 0L; onChanged(); return this; } private java.util.List credentials_ = - java.util.Collections.emptyList(); + java.util.Collections.emptyList(); + private void ensureCredentialsIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { - credentials_ = new java.util.ArrayList(credentials_); + credentials_ = + new java.util.ArrayList(credentials_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.iot.v1.DeviceCredential, com.google.cloud.iot.v1.DeviceCredential.Builder, com.google.cloud.iot.v1.DeviceCredentialOrBuilder> credentialsBuilder_; + com.google.cloud.iot.v1.DeviceCredential, + com.google.cloud.iot.v1.DeviceCredential.Builder, + com.google.cloud.iot.v1.DeviceCredentialOrBuilder> + credentialsBuilder_; /** + * + * *
      * The credentials used to authenticate this device. To allow credential
      * rotation without interruption, multiple device credentials can be bound to
@@ -2188,6 +2367,8 @@ public java.util.List getCredentialsLi
       }
     }
     /**
+     *
+     *
      * 
      * The credentials used to authenticate this device. To allow credential
      * rotation without interruption, multiple device credentials can be bound to
@@ -2207,6 +2388,8 @@ public int getCredentialsCount() {
       }
     }
     /**
+     *
+     *
      * 
      * The credentials used to authenticate this device. To allow credential
      * rotation without interruption, multiple device credentials can be bound to
@@ -2226,6 +2409,8 @@ public com.google.cloud.iot.v1.DeviceCredential getCredentials(int index) {
       }
     }
     /**
+     *
+     *
      * 
      * The credentials used to authenticate this device. To allow credential
      * rotation without interruption, multiple device credentials can be bound to
@@ -2237,8 +2422,7 @@ public com.google.cloud.iot.v1.DeviceCredential getCredentials(int index) {
      *
      * repeated .google.cloud.iot.v1.DeviceCredential credentials = 12;
      */
-    public Builder setCredentials(
-        int index, com.google.cloud.iot.v1.DeviceCredential value) {
+    public Builder setCredentials(int index, com.google.cloud.iot.v1.DeviceCredential value) {
       if (credentialsBuilder_ == null) {
         if (value == null) {
           throw new NullPointerException();
@@ -2252,6 +2436,8 @@ public Builder setCredentials(
       return this;
     }
     /**
+     *
+     *
      * 
      * The credentials used to authenticate this device. To allow credential
      * rotation without interruption, multiple device credentials can be bound to
@@ -2275,6 +2461,8 @@ public Builder setCredentials(
       return this;
     }
     /**
+     *
+     *
      * 
      * The credentials used to authenticate this device. To allow credential
      * rotation without interruption, multiple device credentials can be bound to
@@ -2300,6 +2488,8 @@ public Builder addCredentials(com.google.cloud.iot.v1.DeviceCredential value) {
       return this;
     }
     /**
+     *
+     *
      * 
      * The credentials used to authenticate this device. To allow credential
      * rotation without interruption, multiple device credentials can be bound to
@@ -2311,8 +2501,7 @@ public Builder addCredentials(com.google.cloud.iot.v1.DeviceCredential value) {
      *
      * repeated .google.cloud.iot.v1.DeviceCredential credentials = 12;
      */
-    public Builder addCredentials(
-        int index, com.google.cloud.iot.v1.DeviceCredential value) {
+    public Builder addCredentials(int index, com.google.cloud.iot.v1.DeviceCredential value) {
       if (credentialsBuilder_ == null) {
         if (value == null) {
           throw new NullPointerException();
@@ -2326,6 +2515,8 @@ public Builder addCredentials(
       return this;
     }
     /**
+     *
+     *
      * 
      * The credentials used to authenticate this device. To allow credential
      * rotation without interruption, multiple device credentials can be bound to
@@ -2349,6 +2540,8 @@ public Builder addCredentials(
       return this;
     }
     /**
+     *
+     *
      * 
      * The credentials used to authenticate this device. To allow credential
      * rotation without interruption, multiple device credentials can be bound to
@@ -2372,6 +2565,8 @@ public Builder addCredentials(
       return this;
     }
     /**
+     *
+     *
      * 
      * The credentials used to authenticate this device. To allow credential
      * rotation without interruption, multiple device credentials can be bound to
@@ -2387,8 +2582,7 @@ public Builder addAllCredentials(
         java.lang.Iterable values) {
       if (credentialsBuilder_ == null) {
         ensureCredentialsIsMutable();
-        com.google.protobuf.AbstractMessageLite.Builder.addAll(
-            values, credentials_);
+        com.google.protobuf.AbstractMessageLite.Builder.addAll(values, credentials_);
         onChanged();
       } else {
         credentialsBuilder_.addAllMessages(values);
@@ -2396,6 +2590,8 @@ public Builder addAllCredentials(
       return this;
     }
     /**
+     *
+     *
      * 
      * The credentials used to authenticate this device. To allow credential
      * rotation without interruption, multiple device credentials can be bound to
@@ -2418,6 +2614,8 @@ public Builder clearCredentials() {
       return this;
     }
     /**
+     *
+     *
      * 
      * The credentials used to authenticate this device. To allow credential
      * rotation without interruption, multiple device credentials can be bound to
@@ -2440,6 +2638,8 @@ public Builder removeCredentials(int index) {
       return this;
     }
     /**
+     *
+     *
      * 
      * The credentials used to authenticate this device. To allow credential
      * rotation without interruption, multiple device credentials can be bound to
@@ -2451,11 +2651,12 @@ public Builder removeCredentials(int index) {
      *
      * repeated .google.cloud.iot.v1.DeviceCredential credentials = 12;
      */
-    public com.google.cloud.iot.v1.DeviceCredential.Builder getCredentialsBuilder(
-        int index) {
+    public com.google.cloud.iot.v1.DeviceCredential.Builder getCredentialsBuilder(int index) {
       return getCredentialsFieldBuilder().getBuilder(index);
     }
     /**
+     *
+     *
      * 
      * The credentials used to authenticate this device. To allow credential
      * rotation without interruption, multiple device credentials can be bound to
@@ -2467,14 +2668,16 @@ public com.google.cloud.iot.v1.DeviceCredential.Builder getCredentialsBuilder(
      *
      * repeated .google.cloud.iot.v1.DeviceCredential credentials = 12;
      */
-    public com.google.cloud.iot.v1.DeviceCredentialOrBuilder getCredentialsOrBuilder(
-        int index) {
+    public com.google.cloud.iot.v1.DeviceCredentialOrBuilder getCredentialsOrBuilder(int index) {
       if (credentialsBuilder_ == null) {
-        return credentials_.get(index);  } else {
+        return credentials_.get(index);
+      } else {
         return credentialsBuilder_.getMessageOrBuilder(index);
       }
     }
     /**
+     *
+     *
      * 
      * The credentials used to authenticate this device. To allow credential
      * rotation without interruption, multiple device credentials can be bound to
@@ -2486,8 +2689,8 @@ public com.google.cloud.iot.v1.DeviceCredentialOrBuilder getCredentialsOrBuilder
      *
      * repeated .google.cloud.iot.v1.DeviceCredential credentials = 12;
      */
-    public java.util.List 
-         getCredentialsOrBuilderList() {
+    public java.util.List
+        getCredentialsOrBuilderList() {
       if (credentialsBuilder_ != null) {
         return credentialsBuilder_.getMessageOrBuilderList();
       } else {
@@ -2495,6 +2698,8 @@ public com.google.cloud.iot.v1.DeviceCredentialOrBuilder getCredentialsOrBuilder
       }
     }
     /**
+     *
+     *
      * 
      * The credentials used to authenticate this device. To allow credential
      * rotation without interruption, multiple device credentials can be bound to
@@ -2507,10 +2712,12 @@ public com.google.cloud.iot.v1.DeviceCredentialOrBuilder getCredentialsOrBuilder
      * repeated .google.cloud.iot.v1.DeviceCredential credentials = 12;
      */
     public com.google.cloud.iot.v1.DeviceCredential.Builder addCredentialsBuilder() {
-      return getCredentialsFieldBuilder().addBuilder(
-          com.google.cloud.iot.v1.DeviceCredential.getDefaultInstance());
+      return getCredentialsFieldBuilder()
+          .addBuilder(com.google.cloud.iot.v1.DeviceCredential.getDefaultInstance());
     }
     /**
+     *
+     *
      * 
      * The credentials used to authenticate this device. To allow credential
      * rotation without interruption, multiple device credentials can be bound to
@@ -2522,12 +2729,13 @@ public com.google.cloud.iot.v1.DeviceCredential.Builder addCredentialsBuilder()
      *
      * repeated .google.cloud.iot.v1.DeviceCredential credentials = 12;
      */
-    public com.google.cloud.iot.v1.DeviceCredential.Builder addCredentialsBuilder(
-        int index) {
-      return getCredentialsFieldBuilder().addBuilder(
-          index, com.google.cloud.iot.v1.DeviceCredential.getDefaultInstance());
+    public com.google.cloud.iot.v1.DeviceCredential.Builder addCredentialsBuilder(int index) {
+      return getCredentialsFieldBuilder()
+          .addBuilder(index, com.google.cloud.iot.v1.DeviceCredential.getDefaultInstance());
     }
     /**
+     *
+     *
      * 
      * The credentials used to authenticate this device. To allow credential
      * rotation without interruption, multiple device credentials can be bound to
@@ -2539,20 +2747,23 @@ public com.google.cloud.iot.v1.DeviceCredential.Builder addCredentialsBuilder(
      *
      * repeated .google.cloud.iot.v1.DeviceCredential credentials = 12;
      */
-    public java.util.List 
-         getCredentialsBuilderList() {
+    public java.util.List
+        getCredentialsBuilderList() {
       return getCredentialsFieldBuilder().getBuilderList();
     }
+
     private com.google.protobuf.RepeatedFieldBuilderV3<
-        com.google.cloud.iot.v1.DeviceCredential, com.google.cloud.iot.v1.DeviceCredential.Builder, com.google.cloud.iot.v1.DeviceCredentialOrBuilder> 
+            com.google.cloud.iot.v1.DeviceCredential,
+            com.google.cloud.iot.v1.DeviceCredential.Builder,
+            com.google.cloud.iot.v1.DeviceCredentialOrBuilder>
         getCredentialsFieldBuilder() {
       if (credentialsBuilder_ == null) {
-        credentialsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
-            com.google.cloud.iot.v1.DeviceCredential, com.google.cloud.iot.v1.DeviceCredential.Builder, com.google.cloud.iot.v1.DeviceCredentialOrBuilder>(
-                credentials_,
-                ((bitField0_ & 0x00000001) != 0),
-                getParentForChildren(),
-                isClean());
+        credentialsBuilder_ =
+            new com.google.protobuf.RepeatedFieldBuilderV3<
+                com.google.cloud.iot.v1.DeviceCredential,
+                com.google.cloud.iot.v1.DeviceCredential.Builder,
+                com.google.cloud.iot.v1.DeviceCredentialOrBuilder>(
+                credentials_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean());
         credentials_ = null;
       }
       return credentialsBuilder_;
@@ -2560,8 +2771,13 @@ public com.google.cloud.iot.v1.DeviceCredential.Builder addCredentialsBuilder(
 
     private com.google.protobuf.Timestamp lastHeartbeatTime_;
     private com.google.protobuf.SingleFieldBuilderV3<
-        com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> lastHeartbeatTimeBuilder_;
+            com.google.protobuf.Timestamp,
+            com.google.protobuf.Timestamp.Builder,
+            com.google.protobuf.TimestampOrBuilder>
+        lastHeartbeatTimeBuilder_;
     /**
+     *
+     *
      * 
      * [Output only] The last time an MQTT `PINGREQ` was received. This field
      * applies only to devices connecting through MQTT. MQTT clients usually only
@@ -2571,12 +2787,15 @@ public com.google.cloud.iot.v1.DeviceCredential.Builder addCredentialsBuilder(
      * 
* * .google.protobuf.Timestamp last_heartbeat_time = 7; + * * @return Whether the lastHeartbeatTime field is set. */ public boolean hasLastHeartbeatTime() { return lastHeartbeatTimeBuilder_ != null || lastHeartbeatTime_ != null; } /** + * + * *
      * [Output only] The last time an MQTT `PINGREQ` was received. This field
      * applies only to devices connecting through MQTT. MQTT clients usually only
@@ -2586,16 +2805,21 @@ public boolean hasLastHeartbeatTime() {
      * 
* * .google.protobuf.Timestamp last_heartbeat_time = 7; + * * @return The lastHeartbeatTime. */ public com.google.protobuf.Timestamp getLastHeartbeatTime() { if (lastHeartbeatTimeBuilder_ == null) { - return lastHeartbeatTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : lastHeartbeatTime_; + return lastHeartbeatTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : lastHeartbeatTime_; } else { return lastHeartbeatTimeBuilder_.getMessage(); } } /** + * + * *
      * [Output only] The last time an MQTT `PINGREQ` was received. This field
      * applies only to devices connecting through MQTT. MQTT clients usually only
@@ -2620,6 +2844,8 @@ public Builder setLastHeartbeatTime(com.google.protobuf.Timestamp value) {
       return this;
     }
     /**
+     *
+     *
      * 
      * [Output only] The last time an MQTT `PINGREQ` was received. This field
      * applies only to devices connecting through MQTT. MQTT clients usually only
@@ -2630,8 +2856,7 @@ public Builder setLastHeartbeatTime(com.google.protobuf.Timestamp value) {
      *
      * .google.protobuf.Timestamp last_heartbeat_time = 7;
      */
-    public Builder setLastHeartbeatTime(
-        com.google.protobuf.Timestamp.Builder builderForValue) {
+    public Builder setLastHeartbeatTime(com.google.protobuf.Timestamp.Builder builderForValue) {
       if (lastHeartbeatTimeBuilder_ == null) {
         lastHeartbeatTime_ = builderForValue.build();
         onChanged();
@@ -2642,6 +2867,8 @@ public Builder setLastHeartbeatTime(
       return this;
     }
     /**
+     *
+     *
      * 
      * [Output only] The last time an MQTT `PINGREQ` was received. This field
      * applies only to devices connecting through MQTT. MQTT clients usually only
@@ -2656,7 +2883,9 @@ public Builder mergeLastHeartbeatTime(com.google.protobuf.Timestamp value) {
       if (lastHeartbeatTimeBuilder_ == null) {
         if (lastHeartbeatTime_ != null) {
           lastHeartbeatTime_ =
-            com.google.protobuf.Timestamp.newBuilder(lastHeartbeatTime_).mergeFrom(value).buildPartial();
+              com.google.protobuf.Timestamp.newBuilder(lastHeartbeatTime_)
+                  .mergeFrom(value)
+                  .buildPartial();
         } else {
           lastHeartbeatTime_ = value;
         }
@@ -2668,6 +2897,8 @@ public Builder mergeLastHeartbeatTime(com.google.protobuf.Timestamp value) {
       return this;
     }
     /**
+     *
+     *
      * 
      * [Output only] The last time an MQTT `PINGREQ` was received. This field
      * applies only to devices connecting through MQTT. MQTT clients usually only
@@ -2690,6 +2921,8 @@ public Builder clearLastHeartbeatTime() {
       return this;
     }
     /**
+     *
+     *
      * 
      * [Output only] The last time an MQTT `PINGREQ` was received. This field
      * applies only to devices connecting through MQTT. MQTT clients usually only
@@ -2701,11 +2934,13 @@ public Builder clearLastHeartbeatTime() {
      * .google.protobuf.Timestamp last_heartbeat_time = 7;
      */
     public com.google.protobuf.Timestamp.Builder getLastHeartbeatTimeBuilder() {
-      
+
       onChanged();
       return getLastHeartbeatTimeFieldBuilder().getBuilder();
     }
     /**
+     *
+     *
      * 
      * [Output only] The last time an MQTT `PINGREQ` was received. This field
      * applies only to devices connecting through MQTT. MQTT clients usually only
@@ -2720,11 +2955,14 @@ public com.google.protobuf.TimestampOrBuilder getLastHeartbeatTimeOrBuilder() {
       if (lastHeartbeatTimeBuilder_ != null) {
         return lastHeartbeatTimeBuilder_.getMessageOrBuilder();
       } else {
-        return lastHeartbeatTime_ == null ?
-            com.google.protobuf.Timestamp.getDefaultInstance() : lastHeartbeatTime_;
+        return lastHeartbeatTime_ == null
+            ? com.google.protobuf.Timestamp.getDefaultInstance()
+            : lastHeartbeatTime_;
       }
     }
     /**
+     *
+     *
      * 
      * [Output only] The last time an MQTT `PINGREQ` was received. This field
      * applies only to devices connecting through MQTT. MQTT clients usually only
@@ -2736,14 +2974,17 @@ public com.google.protobuf.TimestampOrBuilder getLastHeartbeatTimeOrBuilder() {
      * .google.protobuf.Timestamp last_heartbeat_time = 7;
      */
     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>
         getLastHeartbeatTimeFieldBuilder() {
       if (lastHeartbeatTimeBuilder_ == null) {
-        lastHeartbeatTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
-            com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>(
-                getLastHeartbeatTime(),
-                getParentForChildren(),
-                isClean());
+        lastHeartbeatTimeBuilder_ =
+            new com.google.protobuf.SingleFieldBuilderV3<
+                com.google.protobuf.Timestamp,
+                com.google.protobuf.Timestamp.Builder,
+                com.google.protobuf.TimestampOrBuilder>(
+                getLastHeartbeatTime(), getParentForChildren(), isClean());
         lastHeartbeatTime_ = null;
       }
       return lastHeartbeatTimeBuilder_;
@@ -2751,8 +2992,13 @@ public com.google.protobuf.TimestampOrBuilder getLastHeartbeatTimeOrBuilder() {
 
     private com.google.protobuf.Timestamp lastEventTime_;
     private com.google.protobuf.SingleFieldBuilderV3<
-        com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> lastEventTimeBuilder_;
+            com.google.protobuf.Timestamp,
+            com.google.protobuf.Timestamp.Builder,
+            com.google.protobuf.TimestampOrBuilder>
+        lastEventTimeBuilder_;
     /**
+     *
+     *
      * 
      * [Output only] The last time a telemetry event was received. Timestamps are
      * periodically collected and written to storage; they may be stale by a few
@@ -2760,12 +3006,15 @@ public com.google.protobuf.TimestampOrBuilder getLastHeartbeatTimeOrBuilder() {
      * 
* * .google.protobuf.Timestamp last_event_time = 8; + * * @return Whether the lastEventTime field is set. */ public boolean hasLastEventTime() { return lastEventTimeBuilder_ != null || lastEventTime_ != null; } /** + * + * *
      * [Output only] The last time a telemetry event was received. Timestamps are
      * periodically collected and written to storage; they may be stale by a few
@@ -2773,16 +3022,21 @@ public boolean hasLastEventTime() {
      * 
* * .google.protobuf.Timestamp last_event_time = 8; + * * @return The lastEventTime. */ public com.google.protobuf.Timestamp getLastEventTime() { if (lastEventTimeBuilder_ == null) { - return lastEventTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : lastEventTime_; + return lastEventTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : lastEventTime_; } else { return lastEventTimeBuilder_.getMessage(); } } /** + * + * *
      * [Output only] The last time a telemetry event was received. Timestamps are
      * periodically collected and written to storage; they may be stale by a few
@@ -2805,6 +3059,8 @@ public Builder setLastEventTime(com.google.protobuf.Timestamp value) {
       return this;
     }
     /**
+     *
+     *
      * 
      * [Output only] The last time a telemetry event was received. Timestamps are
      * periodically collected and written to storage; they may be stale by a few
@@ -2813,8 +3069,7 @@ public Builder setLastEventTime(com.google.protobuf.Timestamp value) {
      *
      * .google.protobuf.Timestamp last_event_time = 8;
      */
-    public Builder setLastEventTime(
-        com.google.protobuf.Timestamp.Builder builderForValue) {
+    public Builder setLastEventTime(com.google.protobuf.Timestamp.Builder builderForValue) {
       if (lastEventTimeBuilder_ == null) {
         lastEventTime_ = builderForValue.build();
         onChanged();
@@ -2825,6 +3080,8 @@ public Builder setLastEventTime(
       return this;
     }
     /**
+     *
+     *
      * 
      * [Output only] The last time a telemetry event was received. Timestamps are
      * periodically collected and written to storage; they may be stale by a few
@@ -2837,7 +3094,9 @@ public Builder mergeLastEventTime(com.google.protobuf.Timestamp value) {
       if (lastEventTimeBuilder_ == null) {
         if (lastEventTime_ != null) {
           lastEventTime_ =
-            com.google.protobuf.Timestamp.newBuilder(lastEventTime_).mergeFrom(value).buildPartial();
+              com.google.protobuf.Timestamp.newBuilder(lastEventTime_)
+                  .mergeFrom(value)
+                  .buildPartial();
         } else {
           lastEventTime_ = value;
         }
@@ -2849,6 +3108,8 @@ public Builder mergeLastEventTime(com.google.protobuf.Timestamp value) {
       return this;
     }
     /**
+     *
+     *
      * 
      * [Output only] The last time a telemetry event was received. Timestamps are
      * periodically collected and written to storage; they may be stale by a few
@@ -2869,6 +3130,8 @@ public Builder clearLastEventTime() {
       return this;
     }
     /**
+     *
+     *
      * 
      * [Output only] The last time a telemetry event was received. Timestamps are
      * periodically collected and written to storage; they may be stale by a few
@@ -2878,11 +3141,13 @@ public Builder clearLastEventTime() {
      * .google.protobuf.Timestamp last_event_time = 8;
      */
     public com.google.protobuf.Timestamp.Builder getLastEventTimeBuilder() {
-      
+
       onChanged();
       return getLastEventTimeFieldBuilder().getBuilder();
     }
     /**
+     *
+     *
      * 
      * [Output only] The last time a telemetry event was received. Timestamps are
      * periodically collected and written to storage; they may be stale by a few
@@ -2895,11 +3160,14 @@ public com.google.protobuf.TimestampOrBuilder getLastEventTimeOrBuilder() {
       if (lastEventTimeBuilder_ != null) {
         return lastEventTimeBuilder_.getMessageOrBuilder();
       } else {
-        return lastEventTime_ == null ?
-            com.google.protobuf.Timestamp.getDefaultInstance() : lastEventTime_;
+        return lastEventTime_ == null
+            ? com.google.protobuf.Timestamp.getDefaultInstance()
+            : lastEventTime_;
       }
     }
     /**
+     *
+     *
      * 
      * [Output only] The last time a telemetry event was received. Timestamps are
      * periodically collected and written to storage; they may be stale by a few
@@ -2909,14 +3177,17 @@ public com.google.protobuf.TimestampOrBuilder getLastEventTimeOrBuilder() {
      * .google.protobuf.Timestamp last_event_time = 8;
      */
     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>
         getLastEventTimeFieldBuilder() {
       if (lastEventTimeBuilder_ == null) {
-        lastEventTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
-            com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>(
-                getLastEventTime(),
-                getParentForChildren(),
-                isClean());
+        lastEventTimeBuilder_ =
+            new com.google.protobuf.SingleFieldBuilderV3<
+                com.google.protobuf.Timestamp,
+                com.google.protobuf.Timestamp.Builder,
+                com.google.protobuf.TimestampOrBuilder>(
+                getLastEventTime(), getParentForChildren(), isClean());
         lastEventTime_ = null;
       }
       return lastEventTimeBuilder_;
@@ -2924,8 +3195,13 @@ public com.google.protobuf.TimestampOrBuilder getLastEventTimeOrBuilder() {
 
     private com.google.protobuf.Timestamp lastStateTime_;
     private com.google.protobuf.SingleFieldBuilderV3<
-        com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> lastStateTimeBuilder_;
+            com.google.protobuf.Timestamp,
+            com.google.protobuf.Timestamp.Builder,
+            com.google.protobuf.TimestampOrBuilder>
+        lastStateTimeBuilder_;
     /**
+     *
+     *
      * 
      * [Output only] The last time a state event was received. Timestamps are
      * periodically collected and written to storage; they may be stale by a few
@@ -2933,12 +3209,15 @@ public com.google.protobuf.TimestampOrBuilder getLastEventTimeOrBuilder() {
      * 
* * .google.protobuf.Timestamp last_state_time = 20; + * * @return Whether the lastStateTime field is set. */ public boolean hasLastStateTime() { return lastStateTimeBuilder_ != null || lastStateTime_ != null; } /** + * + * *
      * [Output only] The last time a state event was received. Timestamps are
      * periodically collected and written to storage; they may be stale by a few
@@ -2946,16 +3225,21 @@ public boolean hasLastStateTime() {
      * 
* * .google.protobuf.Timestamp last_state_time = 20; + * * @return The lastStateTime. */ public com.google.protobuf.Timestamp getLastStateTime() { if (lastStateTimeBuilder_ == null) { - return lastStateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : lastStateTime_; + return lastStateTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : lastStateTime_; } else { return lastStateTimeBuilder_.getMessage(); } } /** + * + * *
      * [Output only] The last time a state event was received. Timestamps are
      * periodically collected and written to storage; they may be stale by a few
@@ -2978,6 +3262,8 @@ public Builder setLastStateTime(com.google.protobuf.Timestamp value) {
       return this;
     }
     /**
+     *
+     *
      * 
      * [Output only] The last time a state event was received. Timestamps are
      * periodically collected and written to storage; they may be stale by a few
@@ -2986,8 +3272,7 @@ public Builder setLastStateTime(com.google.protobuf.Timestamp value) {
      *
      * .google.protobuf.Timestamp last_state_time = 20;
      */
-    public Builder setLastStateTime(
-        com.google.protobuf.Timestamp.Builder builderForValue) {
+    public Builder setLastStateTime(com.google.protobuf.Timestamp.Builder builderForValue) {
       if (lastStateTimeBuilder_ == null) {
         lastStateTime_ = builderForValue.build();
         onChanged();
@@ -2998,6 +3283,8 @@ public Builder setLastStateTime(
       return this;
     }
     /**
+     *
+     *
      * 
      * [Output only] The last time a state event was received. Timestamps are
      * periodically collected and written to storage; they may be stale by a few
@@ -3010,7 +3297,9 @@ public Builder mergeLastStateTime(com.google.protobuf.Timestamp value) {
       if (lastStateTimeBuilder_ == null) {
         if (lastStateTime_ != null) {
           lastStateTime_ =
-            com.google.protobuf.Timestamp.newBuilder(lastStateTime_).mergeFrom(value).buildPartial();
+              com.google.protobuf.Timestamp.newBuilder(lastStateTime_)
+                  .mergeFrom(value)
+                  .buildPartial();
         } else {
           lastStateTime_ = value;
         }
@@ -3022,6 +3311,8 @@ public Builder mergeLastStateTime(com.google.protobuf.Timestamp value) {
       return this;
     }
     /**
+     *
+     *
      * 
      * [Output only] The last time a state event was received. Timestamps are
      * periodically collected and written to storage; they may be stale by a few
@@ -3042,6 +3333,8 @@ public Builder clearLastStateTime() {
       return this;
     }
     /**
+     *
+     *
      * 
      * [Output only] The last time a state event was received. Timestamps are
      * periodically collected and written to storage; they may be stale by a few
@@ -3051,11 +3344,13 @@ public Builder clearLastStateTime() {
      * .google.protobuf.Timestamp last_state_time = 20;
      */
     public com.google.protobuf.Timestamp.Builder getLastStateTimeBuilder() {
-      
+
       onChanged();
       return getLastStateTimeFieldBuilder().getBuilder();
     }
     /**
+     *
+     *
      * 
      * [Output only] The last time a state event was received. Timestamps are
      * periodically collected and written to storage; they may be stale by a few
@@ -3068,11 +3363,14 @@ public com.google.protobuf.TimestampOrBuilder getLastStateTimeOrBuilder() {
       if (lastStateTimeBuilder_ != null) {
         return lastStateTimeBuilder_.getMessageOrBuilder();
       } else {
-        return lastStateTime_ == null ?
-            com.google.protobuf.Timestamp.getDefaultInstance() : lastStateTime_;
+        return lastStateTime_ == null
+            ? com.google.protobuf.Timestamp.getDefaultInstance()
+            : lastStateTime_;
       }
     }
     /**
+     *
+     *
      * 
      * [Output only] The last time a state event was received. Timestamps are
      * periodically collected and written to storage; they may be stale by a few
@@ -3082,14 +3380,17 @@ public com.google.protobuf.TimestampOrBuilder getLastStateTimeOrBuilder() {
      * .google.protobuf.Timestamp last_state_time = 20;
      */
     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>
         getLastStateTimeFieldBuilder() {
       if (lastStateTimeBuilder_ == null) {
-        lastStateTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
-            com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>(
-                getLastStateTime(),
-                getParentForChildren(),
-                isClean());
+        lastStateTimeBuilder_ =
+            new com.google.protobuf.SingleFieldBuilderV3<
+                com.google.protobuf.Timestamp,
+                com.google.protobuf.Timestamp.Builder,
+                com.google.protobuf.TimestampOrBuilder>(
+                getLastStateTime(), getParentForChildren(), isClean());
         lastStateTime_ = null;
       }
       return lastStateTimeBuilder_;
@@ -3097,8 +3398,13 @@ public com.google.protobuf.TimestampOrBuilder getLastStateTimeOrBuilder() {
 
     private com.google.protobuf.Timestamp lastConfigAckTime_;
     private com.google.protobuf.SingleFieldBuilderV3<
-        com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> lastConfigAckTimeBuilder_;
+            com.google.protobuf.Timestamp,
+            com.google.protobuf.Timestamp.Builder,
+            com.google.protobuf.TimestampOrBuilder>
+        lastConfigAckTimeBuilder_;
     /**
+     *
+     *
      * 
      * [Output only] The last time a cloud-to-device config version acknowledgment
      * was received from the device. This field is only for configurations
@@ -3106,12 +3412,15 @@ public com.google.protobuf.TimestampOrBuilder getLastStateTimeOrBuilder() {
      * 
* * .google.protobuf.Timestamp last_config_ack_time = 14; + * * @return Whether the lastConfigAckTime field is set. */ public boolean hasLastConfigAckTime() { return lastConfigAckTimeBuilder_ != null || lastConfigAckTime_ != null; } /** + * + * *
      * [Output only] The last time a cloud-to-device config version acknowledgment
      * was received from the device. This field is only for configurations
@@ -3119,16 +3428,21 @@ public boolean hasLastConfigAckTime() {
      * 
* * .google.protobuf.Timestamp last_config_ack_time = 14; + * * @return The lastConfigAckTime. */ public com.google.protobuf.Timestamp getLastConfigAckTime() { if (lastConfigAckTimeBuilder_ == null) { - return lastConfigAckTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : lastConfigAckTime_; + return lastConfigAckTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : lastConfigAckTime_; } else { return lastConfigAckTimeBuilder_.getMessage(); } } /** + * + * *
      * [Output only] The last time a cloud-to-device config version acknowledgment
      * was received from the device. This field is only for configurations
@@ -3151,6 +3465,8 @@ public Builder setLastConfigAckTime(com.google.protobuf.Timestamp value) {
       return this;
     }
     /**
+     *
+     *
      * 
      * [Output only] The last time a cloud-to-device config version acknowledgment
      * was received from the device. This field is only for configurations
@@ -3159,8 +3475,7 @@ public Builder setLastConfigAckTime(com.google.protobuf.Timestamp value) {
      *
      * .google.protobuf.Timestamp last_config_ack_time = 14;
      */
-    public Builder setLastConfigAckTime(
-        com.google.protobuf.Timestamp.Builder builderForValue) {
+    public Builder setLastConfigAckTime(com.google.protobuf.Timestamp.Builder builderForValue) {
       if (lastConfigAckTimeBuilder_ == null) {
         lastConfigAckTime_ = builderForValue.build();
         onChanged();
@@ -3171,6 +3486,8 @@ public Builder setLastConfigAckTime(
       return this;
     }
     /**
+     *
+     *
      * 
      * [Output only] The last time a cloud-to-device config version acknowledgment
      * was received from the device. This field is only for configurations
@@ -3183,7 +3500,9 @@ public Builder mergeLastConfigAckTime(com.google.protobuf.Timestamp value) {
       if (lastConfigAckTimeBuilder_ == null) {
         if (lastConfigAckTime_ != null) {
           lastConfigAckTime_ =
-            com.google.protobuf.Timestamp.newBuilder(lastConfigAckTime_).mergeFrom(value).buildPartial();
+              com.google.protobuf.Timestamp.newBuilder(lastConfigAckTime_)
+                  .mergeFrom(value)
+                  .buildPartial();
         } else {
           lastConfigAckTime_ = value;
         }
@@ -3195,6 +3514,8 @@ public Builder mergeLastConfigAckTime(com.google.protobuf.Timestamp value) {
       return this;
     }
     /**
+     *
+     *
      * 
      * [Output only] The last time a cloud-to-device config version acknowledgment
      * was received from the device. This field is only for configurations
@@ -3215,6 +3536,8 @@ public Builder clearLastConfigAckTime() {
       return this;
     }
     /**
+     *
+     *
      * 
      * [Output only] The last time a cloud-to-device config version acknowledgment
      * was received from the device. This field is only for configurations
@@ -3224,11 +3547,13 @@ public Builder clearLastConfigAckTime() {
      * .google.protobuf.Timestamp last_config_ack_time = 14;
      */
     public com.google.protobuf.Timestamp.Builder getLastConfigAckTimeBuilder() {
-      
+
       onChanged();
       return getLastConfigAckTimeFieldBuilder().getBuilder();
     }
     /**
+     *
+     *
      * 
      * [Output only] The last time a cloud-to-device config version acknowledgment
      * was received from the device. This field is only for configurations
@@ -3241,11 +3566,14 @@ public com.google.protobuf.TimestampOrBuilder getLastConfigAckTimeOrBuilder() {
       if (lastConfigAckTimeBuilder_ != null) {
         return lastConfigAckTimeBuilder_.getMessageOrBuilder();
       } else {
-        return lastConfigAckTime_ == null ?
-            com.google.protobuf.Timestamp.getDefaultInstance() : lastConfigAckTime_;
+        return lastConfigAckTime_ == null
+            ? com.google.protobuf.Timestamp.getDefaultInstance()
+            : lastConfigAckTime_;
       }
     }
     /**
+     *
+     *
      * 
      * [Output only] The last time a cloud-to-device config version acknowledgment
      * was received from the device. This field is only for configurations
@@ -3255,14 +3583,17 @@ public com.google.protobuf.TimestampOrBuilder getLastConfigAckTimeOrBuilder() {
      * .google.protobuf.Timestamp last_config_ack_time = 14;
      */
     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>
         getLastConfigAckTimeFieldBuilder() {
       if (lastConfigAckTimeBuilder_ == null) {
-        lastConfigAckTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
-            com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>(
-                getLastConfigAckTime(),
-                getParentForChildren(),
-                isClean());
+        lastConfigAckTimeBuilder_ =
+            new com.google.protobuf.SingleFieldBuilderV3<
+                com.google.protobuf.Timestamp,
+                com.google.protobuf.Timestamp.Builder,
+                com.google.protobuf.TimestampOrBuilder>(
+                getLastConfigAckTime(), getParentForChildren(), isClean());
         lastConfigAckTime_ = null;
       }
       return lastConfigAckTimeBuilder_;
@@ -3270,36 +3601,49 @@ public com.google.protobuf.TimestampOrBuilder getLastConfigAckTimeOrBuilder() {
 
     private com.google.protobuf.Timestamp lastConfigSendTime_;
     private com.google.protobuf.SingleFieldBuilderV3<
-        com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> lastConfigSendTimeBuilder_;
+            com.google.protobuf.Timestamp,
+            com.google.protobuf.Timestamp.Builder,
+            com.google.protobuf.TimestampOrBuilder>
+        lastConfigSendTimeBuilder_;
     /**
+     *
+     *
      * 
      * [Output only] The last time a cloud-to-device config version was sent to
      * the device.
      * 
* * .google.protobuf.Timestamp last_config_send_time = 18; + * * @return Whether the lastConfigSendTime field is set. */ public boolean hasLastConfigSendTime() { return lastConfigSendTimeBuilder_ != null || lastConfigSendTime_ != null; } /** + * + * *
      * [Output only] The last time a cloud-to-device config version was sent to
      * the device.
      * 
* * .google.protobuf.Timestamp last_config_send_time = 18; + * * @return The lastConfigSendTime. */ public com.google.protobuf.Timestamp getLastConfigSendTime() { if (lastConfigSendTimeBuilder_ == null) { - return lastConfigSendTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : lastConfigSendTime_; + return lastConfigSendTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : lastConfigSendTime_; } else { return lastConfigSendTimeBuilder_.getMessage(); } } /** + * + * *
      * [Output only] The last time a cloud-to-device config version was sent to
      * the device.
@@ -3321,6 +3665,8 @@ public Builder setLastConfigSendTime(com.google.protobuf.Timestamp value) {
       return this;
     }
     /**
+     *
+     *
      * 
      * [Output only] The last time a cloud-to-device config version was sent to
      * the device.
@@ -3328,8 +3674,7 @@ public Builder setLastConfigSendTime(com.google.protobuf.Timestamp value) {
      *
      * .google.protobuf.Timestamp last_config_send_time = 18;
      */
-    public Builder setLastConfigSendTime(
-        com.google.protobuf.Timestamp.Builder builderForValue) {
+    public Builder setLastConfigSendTime(com.google.protobuf.Timestamp.Builder builderForValue) {
       if (lastConfigSendTimeBuilder_ == null) {
         lastConfigSendTime_ = builderForValue.build();
         onChanged();
@@ -3340,6 +3685,8 @@ public Builder setLastConfigSendTime(
       return this;
     }
     /**
+     *
+     *
      * 
      * [Output only] The last time a cloud-to-device config version was sent to
      * the device.
@@ -3351,7 +3698,9 @@ public Builder mergeLastConfigSendTime(com.google.protobuf.Timestamp value) {
       if (lastConfigSendTimeBuilder_ == null) {
         if (lastConfigSendTime_ != null) {
           lastConfigSendTime_ =
-            com.google.protobuf.Timestamp.newBuilder(lastConfigSendTime_).mergeFrom(value).buildPartial();
+              com.google.protobuf.Timestamp.newBuilder(lastConfigSendTime_)
+                  .mergeFrom(value)
+                  .buildPartial();
         } else {
           lastConfigSendTime_ = value;
         }
@@ -3363,6 +3712,8 @@ public Builder mergeLastConfigSendTime(com.google.protobuf.Timestamp value) {
       return this;
     }
     /**
+     *
+     *
      * 
      * [Output only] The last time a cloud-to-device config version was sent to
      * the device.
@@ -3382,6 +3733,8 @@ public Builder clearLastConfigSendTime() {
       return this;
     }
     /**
+     *
+     *
      * 
      * [Output only] The last time a cloud-to-device config version was sent to
      * the device.
@@ -3390,11 +3743,13 @@ public Builder clearLastConfigSendTime() {
      * .google.protobuf.Timestamp last_config_send_time = 18;
      */
     public com.google.protobuf.Timestamp.Builder getLastConfigSendTimeBuilder() {
-      
+
       onChanged();
       return getLastConfigSendTimeFieldBuilder().getBuilder();
     }
     /**
+     *
+     *
      * 
      * [Output only] The last time a cloud-to-device config version was sent to
      * the device.
@@ -3406,11 +3761,14 @@ public com.google.protobuf.TimestampOrBuilder getLastConfigSendTimeOrBuilder() {
       if (lastConfigSendTimeBuilder_ != null) {
         return lastConfigSendTimeBuilder_.getMessageOrBuilder();
       } else {
-        return lastConfigSendTime_ == null ?
-            com.google.protobuf.Timestamp.getDefaultInstance() : lastConfigSendTime_;
+        return lastConfigSendTime_ == null
+            ? com.google.protobuf.Timestamp.getDefaultInstance()
+            : lastConfigSendTime_;
       }
     }
     /**
+     *
+     *
      * 
      * [Output only] The last time a cloud-to-device config version was sent to
      * the device.
@@ -3419,21 +3777,26 @@ public com.google.protobuf.TimestampOrBuilder getLastConfigSendTimeOrBuilder() {
      * .google.protobuf.Timestamp last_config_send_time = 18;
      */
     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>
         getLastConfigSendTimeFieldBuilder() {
       if (lastConfigSendTimeBuilder_ == null) {
-        lastConfigSendTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
-            com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>(
-                getLastConfigSendTime(),
-                getParentForChildren(),
-                isClean());
+        lastConfigSendTimeBuilder_ =
+            new com.google.protobuf.SingleFieldBuilderV3<
+                com.google.protobuf.Timestamp,
+                com.google.protobuf.Timestamp.Builder,
+                com.google.protobuf.TimestampOrBuilder>(
+                getLastConfigSendTime(), getParentForChildren(), isClean());
         lastConfigSendTime_ = null;
       }
       return lastConfigSendTimeBuilder_;
     }
 
-    private boolean blocked_ ;
+    private boolean blocked_;
     /**
+     *
+     *
      * 
      * If a device is blocked, connections or requests from this device will fail.
      * Can be used to temporarily prevent the device from connecting if, for
@@ -3441,6 +3804,7 @@ public com.google.protobuf.TimestampOrBuilder getLastConfigSendTimeOrBuilder() {
      * 
* * bool blocked = 19; + * * @return The blocked. */ @java.lang.Override @@ -3448,6 +3812,8 @@ public boolean getBlocked() { return blocked_; } /** + * + * *
      * If a device is blocked, connections or requests from this device will fail.
      * Can be used to temporarily prevent the device from connecting if, for
@@ -3455,16 +3821,19 @@ public boolean getBlocked() {
      * 
* * bool blocked = 19; + * * @param value The blocked to set. * @return This builder for chaining. */ public Builder setBlocked(boolean value) { - + blocked_ = value; onChanged(); return this; } /** + * + * *
      * If a device is blocked, connections or requests from this device will fail.
      * Can be used to temporarily prevent the device from connecting if, for
@@ -3472,10 +3841,11 @@ public Builder setBlocked(boolean value) {
      * 
* * bool blocked = 19; + * * @return This builder for chaining. */ public Builder clearBlocked() { - + blocked_ = false; onChanged(); return this; @@ -3483,8 +3853,13 @@ public Builder clearBlocked() { private com.google.protobuf.Timestamp lastErrorTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> lastErrorTimeBuilder_; + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + lastErrorTimeBuilder_; /** + * + * *
      * [Output only] The time the most recent error occurred, such as a failure to
      * publish to Cloud Pub/Sub. This field is the timestamp of
@@ -3492,12 +3867,15 @@ public Builder clearBlocked() {
      * 
* * .google.protobuf.Timestamp last_error_time = 10; + * * @return Whether the lastErrorTime field is set. */ public boolean hasLastErrorTime() { return lastErrorTimeBuilder_ != null || lastErrorTime_ != null; } /** + * + * *
      * [Output only] The time the most recent error occurred, such as a failure to
      * publish to Cloud Pub/Sub. This field is the timestamp of
@@ -3505,16 +3883,21 @@ public boolean hasLastErrorTime() {
      * 
* * .google.protobuf.Timestamp last_error_time = 10; + * * @return The lastErrorTime. */ public com.google.protobuf.Timestamp getLastErrorTime() { if (lastErrorTimeBuilder_ == null) { - return lastErrorTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : lastErrorTime_; + return lastErrorTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : lastErrorTime_; } else { return lastErrorTimeBuilder_.getMessage(); } } /** + * + * *
      * [Output only] The time the most recent error occurred, such as a failure to
      * publish to Cloud Pub/Sub. This field is the timestamp of
@@ -3537,6 +3920,8 @@ public Builder setLastErrorTime(com.google.protobuf.Timestamp value) {
       return this;
     }
     /**
+     *
+     *
      * 
      * [Output only] The time the most recent error occurred, such as a failure to
      * publish to Cloud Pub/Sub. This field is the timestamp of
@@ -3545,8 +3930,7 @@ public Builder setLastErrorTime(com.google.protobuf.Timestamp value) {
      *
      * .google.protobuf.Timestamp last_error_time = 10;
      */
-    public Builder setLastErrorTime(
-        com.google.protobuf.Timestamp.Builder builderForValue) {
+    public Builder setLastErrorTime(com.google.protobuf.Timestamp.Builder builderForValue) {
       if (lastErrorTimeBuilder_ == null) {
         lastErrorTime_ = builderForValue.build();
         onChanged();
@@ -3557,6 +3941,8 @@ public Builder setLastErrorTime(
       return this;
     }
     /**
+     *
+     *
      * 
      * [Output only] The time the most recent error occurred, such as a failure to
      * publish to Cloud Pub/Sub. This field is the timestamp of
@@ -3569,7 +3955,9 @@ public Builder mergeLastErrorTime(com.google.protobuf.Timestamp value) {
       if (lastErrorTimeBuilder_ == null) {
         if (lastErrorTime_ != null) {
           lastErrorTime_ =
-            com.google.protobuf.Timestamp.newBuilder(lastErrorTime_).mergeFrom(value).buildPartial();
+              com.google.protobuf.Timestamp.newBuilder(lastErrorTime_)
+                  .mergeFrom(value)
+                  .buildPartial();
         } else {
           lastErrorTime_ = value;
         }
@@ -3581,6 +3969,8 @@ public Builder mergeLastErrorTime(com.google.protobuf.Timestamp value) {
       return this;
     }
     /**
+     *
+     *
      * 
      * [Output only] The time the most recent error occurred, such as a failure to
      * publish to Cloud Pub/Sub. This field is the timestamp of
@@ -3601,6 +3991,8 @@ public Builder clearLastErrorTime() {
       return this;
     }
     /**
+     *
+     *
      * 
      * [Output only] The time the most recent error occurred, such as a failure to
      * publish to Cloud Pub/Sub. This field is the timestamp of
@@ -3610,11 +4002,13 @@ public Builder clearLastErrorTime() {
      * .google.protobuf.Timestamp last_error_time = 10;
      */
     public com.google.protobuf.Timestamp.Builder getLastErrorTimeBuilder() {
-      
+
       onChanged();
       return getLastErrorTimeFieldBuilder().getBuilder();
     }
     /**
+     *
+     *
      * 
      * [Output only] The time the most recent error occurred, such as a failure to
      * publish to Cloud Pub/Sub. This field is the timestamp of
@@ -3627,11 +4021,14 @@ public com.google.protobuf.TimestampOrBuilder getLastErrorTimeOrBuilder() {
       if (lastErrorTimeBuilder_ != null) {
         return lastErrorTimeBuilder_.getMessageOrBuilder();
       } else {
-        return lastErrorTime_ == null ?
-            com.google.protobuf.Timestamp.getDefaultInstance() : lastErrorTime_;
+        return lastErrorTime_ == null
+            ? com.google.protobuf.Timestamp.getDefaultInstance()
+            : lastErrorTime_;
       }
     }
     /**
+     *
+     *
      * 
      * [Output only] The time the most recent error occurred, such as a failure to
      * publish to Cloud Pub/Sub. This field is the timestamp of
@@ -3641,14 +4038,17 @@ public com.google.protobuf.TimestampOrBuilder getLastErrorTimeOrBuilder() {
      * .google.protobuf.Timestamp last_error_time = 10;
      */
     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>
         getLastErrorTimeFieldBuilder() {
       if (lastErrorTimeBuilder_ == null) {
-        lastErrorTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
-            com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>(
-                getLastErrorTime(),
-                getParentForChildren(),
-                isClean());
+        lastErrorTimeBuilder_ =
+            new com.google.protobuf.SingleFieldBuilderV3<
+                com.google.protobuf.Timestamp,
+                com.google.protobuf.Timestamp.Builder,
+                com.google.protobuf.TimestampOrBuilder>(
+                getLastErrorTime(), getParentForChildren(), isClean());
         lastErrorTime_ = null;
       }
       return lastErrorTimeBuilder_;
@@ -3656,8 +4056,11 @@ public com.google.protobuf.TimestampOrBuilder getLastErrorTimeOrBuilder() {
 
     private com.google.rpc.Status lastErrorStatus_;
     private com.google.protobuf.SingleFieldBuilderV3<
-        com.google.rpc.Status, com.google.rpc.Status.Builder, com.google.rpc.StatusOrBuilder> lastErrorStatusBuilder_;
+            com.google.rpc.Status, com.google.rpc.Status.Builder, com.google.rpc.StatusOrBuilder>
+        lastErrorStatusBuilder_;
     /**
+     *
+     *
      * 
      * [Output only] The error message of the most recent error, such as a failure
      * to publish to Cloud Pub/Sub. 'last_error_time' is the timestamp of this
@@ -3667,12 +4070,15 @@ public com.google.protobuf.TimestampOrBuilder getLastErrorTimeOrBuilder() {
      * 
* * .google.rpc.Status last_error_status = 11; + * * @return Whether the lastErrorStatus field is set. */ public boolean hasLastErrorStatus() { return lastErrorStatusBuilder_ != null || lastErrorStatus_ != null; } /** + * + * *
      * [Output only] The error message of the most recent error, such as a failure
      * to publish to Cloud Pub/Sub. 'last_error_time' is the timestamp of this
@@ -3682,16 +4088,21 @@ public boolean hasLastErrorStatus() {
      * 
* * .google.rpc.Status last_error_status = 11; + * * @return The lastErrorStatus. */ public com.google.rpc.Status getLastErrorStatus() { if (lastErrorStatusBuilder_ == null) { - return lastErrorStatus_ == null ? com.google.rpc.Status.getDefaultInstance() : lastErrorStatus_; + return lastErrorStatus_ == null + ? com.google.rpc.Status.getDefaultInstance() + : lastErrorStatus_; } else { return lastErrorStatusBuilder_.getMessage(); } } /** + * + * *
      * [Output only] The error message of the most recent error, such as a failure
      * to publish to Cloud Pub/Sub. 'last_error_time' is the timestamp of this
@@ -3716,6 +4127,8 @@ public Builder setLastErrorStatus(com.google.rpc.Status value) {
       return this;
     }
     /**
+     *
+     *
      * 
      * [Output only] The error message of the most recent error, such as a failure
      * to publish to Cloud Pub/Sub. 'last_error_time' is the timestamp of this
@@ -3726,8 +4139,7 @@ public Builder setLastErrorStatus(com.google.rpc.Status value) {
      *
      * .google.rpc.Status last_error_status = 11;
      */
-    public Builder setLastErrorStatus(
-        com.google.rpc.Status.Builder builderForValue) {
+    public Builder setLastErrorStatus(com.google.rpc.Status.Builder builderForValue) {
       if (lastErrorStatusBuilder_ == null) {
         lastErrorStatus_ = builderForValue.build();
         onChanged();
@@ -3738,6 +4150,8 @@ public Builder setLastErrorStatus(
       return this;
     }
     /**
+     *
+     *
      * 
      * [Output only] The error message of the most recent error, such as a failure
      * to publish to Cloud Pub/Sub. 'last_error_time' is the timestamp of this
@@ -3752,7 +4166,7 @@ public Builder mergeLastErrorStatus(com.google.rpc.Status value) {
       if (lastErrorStatusBuilder_ == null) {
         if (lastErrorStatus_ != null) {
           lastErrorStatus_ =
-            com.google.rpc.Status.newBuilder(lastErrorStatus_).mergeFrom(value).buildPartial();
+              com.google.rpc.Status.newBuilder(lastErrorStatus_).mergeFrom(value).buildPartial();
         } else {
           lastErrorStatus_ = value;
         }
@@ -3764,6 +4178,8 @@ public Builder mergeLastErrorStatus(com.google.rpc.Status value) {
       return this;
     }
     /**
+     *
+     *
      * 
      * [Output only] The error message of the most recent error, such as a failure
      * to publish to Cloud Pub/Sub. 'last_error_time' is the timestamp of this
@@ -3786,6 +4202,8 @@ public Builder clearLastErrorStatus() {
       return this;
     }
     /**
+     *
+     *
      * 
      * [Output only] The error message of the most recent error, such as a failure
      * to publish to Cloud Pub/Sub. 'last_error_time' is the timestamp of this
@@ -3797,11 +4215,13 @@ public Builder clearLastErrorStatus() {
      * .google.rpc.Status last_error_status = 11;
      */
     public com.google.rpc.Status.Builder getLastErrorStatusBuilder() {
-      
+
       onChanged();
       return getLastErrorStatusFieldBuilder().getBuilder();
     }
     /**
+     *
+     *
      * 
      * [Output only] The error message of the most recent error, such as a failure
      * to publish to Cloud Pub/Sub. 'last_error_time' is the timestamp of this
@@ -3816,11 +4236,14 @@ public com.google.rpc.StatusOrBuilder getLastErrorStatusOrBuilder() {
       if (lastErrorStatusBuilder_ != null) {
         return lastErrorStatusBuilder_.getMessageOrBuilder();
       } else {
-        return lastErrorStatus_ == null ?
-            com.google.rpc.Status.getDefaultInstance() : lastErrorStatus_;
+        return lastErrorStatus_ == null
+            ? com.google.rpc.Status.getDefaultInstance()
+            : lastErrorStatus_;
       }
     }
     /**
+     *
+     *
      * 
      * [Output only] The error message of the most recent error, such as a failure
      * to publish to Cloud Pub/Sub. 'last_error_time' is the timestamp of this
@@ -3832,14 +4255,15 @@ public com.google.rpc.StatusOrBuilder getLastErrorStatusOrBuilder() {
      * .google.rpc.Status last_error_status = 11;
      */
     private com.google.protobuf.SingleFieldBuilderV3<
-        com.google.rpc.Status, com.google.rpc.Status.Builder, com.google.rpc.StatusOrBuilder> 
+            com.google.rpc.Status, com.google.rpc.Status.Builder, com.google.rpc.StatusOrBuilder>
         getLastErrorStatusFieldBuilder() {
       if (lastErrorStatusBuilder_ == null) {
-        lastErrorStatusBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
-            com.google.rpc.Status, com.google.rpc.Status.Builder, com.google.rpc.StatusOrBuilder>(
-                getLastErrorStatus(),
-                getParentForChildren(),
-                isClean());
+        lastErrorStatusBuilder_ =
+            new com.google.protobuf.SingleFieldBuilderV3<
+                com.google.rpc.Status,
+                com.google.rpc.Status.Builder,
+                com.google.rpc.StatusOrBuilder>(
+                getLastErrorStatus(), getParentForChildren(), isClean());
         lastErrorStatus_ = null;
       }
       return lastErrorStatusBuilder_;
@@ -3847,8 +4271,13 @@ public com.google.rpc.StatusOrBuilder getLastErrorStatusOrBuilder() {
 
     private com.google.cloud.iot.v1.DeviceConfig config_;
     private com.google.protobuf.SingleFieldBuilderV3<
-        com.google.cloud.iot.v1.DeviceConfig, com.google.cloud.iot.v1.DeviceConfig.Builder, com.google.cloud.iot.v1.DeviceConfigOrBuilder> configBuilder_;
+            com.google.cloud.iot.v1.DeviceConfig,
+            com.google.cloud.iot.v1.DeviceConfig.Builder,
+            com.google.cloud.iot.v1.DeviceConfigOrBuilder>
+        configBuilder_;
     /**
+     *
+     *
      * 
      * The most recent device configuration, which is eventually sent from
      * Cloud IoT Core to the device. If not present on creation, the
@@ -3858,12 +4287,15 @@ public com.google.rpc.StatusOrBuilder getLastErrorStatusOrBuilder() {
      * 
* * .google.cloud.iot.v1.DeviceConfig config = 13; + * * @return Whether the config field is set. */ public boolean hasConfig() { return configBuilder_ != null || config_ != null; } /** + * + * *
      * The most recent device configuration, which is eventually sent from
      * Cloud IoT Core to the device. If not present on creation, the
@@ -3873,16 +4305,21 @@ public boolean hasConfig() {
      * 
* * .google.cloud.iot.v1.DeviceConfig config = 13; + * * @return The config. */ public com.google.cloud.iot.v1.DeviceConfig getConfig() { if (configBuilder_ == null) { - return config_ == null ? com.google.cloud.iot.v1.DeviceConfig.getDefaultInstance() : config_; + return config_ == null + ? com.google.cloud.iot.v1.DeviceConfig.getDefaultInstance() + : config_; } else { return configBuilder_.getMessage(); } } /** + * + * *
      * The most recent device configuration, which is eventually sent from
      * Cloud IoT Core to the device. If not present on creation, the
@@ -3907,6 +4344,8 @@ public Builder setConfig(com.google.cloud.iot.v1.DeviceConfig value) {
       return this;
     }
     /**
+     *
+     *
      * 
      * The most recent device configuration, which is eventually sent from
      * Cloud IoT Core to the device. If not present on creation, the
@@ -3917,8 +4356,7 @@ public Builder setConfig(com.google.cloud.iot.v1.DeviceConfig value) {
      *
      * .google.cloud.iot.v1.DeviceConfig config = 13;
      */
-    public Builder setConfig(
-        com.google.cloud.iot.v1.DeviceConfig.Builder builderForValue) {
+    public Builder setConfig(com.google.cloud.iot.v1.DeviceConfig.Builder builderForValue) {
       if (configBuilder_ == null) {
         config_ = builderForValue.build();
         onChanged();
@@ -3929,6 +4367,8 @@ public Builder setConfig(
       return this;
     }
     /**
+     *
+     *
      * 
      * The most recent device configuration, which is eventually sent from
      * Cloud IoT Core to the device. If not present on creation, the
@@ -3943,7 +4383,9 @@ public Builder mergeConfig(com.google.cloud.iot.v1.DeviceConfig value) {
       if (configBuilder_ == null) {
         if (config_ != null) {
           config_ =
-            com.google.cloud.iot.v1.DeviceConfig.newBuilder(config_).mergeFrom(value).buildPartial();
+              com.google.cloud.iot.v1.DeviceConfig.newBuilder(config_)
+                  .mergeFrom(value)
+                  .buildPartial();
         } else {
           config_ = value;
         }
@@ -3955,6 +4397,8 @@ public Builder mergeConfig(com.google.cloud.iot.v1.DeviceConfig value) {
       return this;
     }
     /**
+     *
+     *
      * 
      * The most recent device configuration, which is eventually sent from
      * Cloud IoT Core to the device. If not present on creation, the
@@ -3977,6 +4421,8 @@ public Builder clearConfig() {
       return this;
     }
     /**
+     *
+     *
      * 
      * The most recent device configuration, which is eventually sent from
      * Cloud IoT Core to the device. If not present on creation, the
@@ -3988,11 +4434,13 @@ public Builder clearConfig() {
      * .google.cloud.iot.v1.DeviceConfig config = 13;
      */
     public com.google.cloud.iot.v1.DeviceConfig.Builder getConfigBuilder() {
-      
+
       onChanged();
       return getConfigFieldBuilder().getBuilder();
     }
     /**
+     *
+     *
      * 
      * The most recent device configuration, which is eventually sent from
      * Cloud IoT Core to the device. If not present on creation, the
@@ -4007,11 +4455,14 @@ public com.google.cloud.iot.v1.DeviceConfigOrBuilder getConfigOrBuilder() {
       if (configBuilder_ != null) {
         return configBuilder_.getMessageOrBuilder();
       } else {
-        return config_ == null ?
-            com.google.cloud.iot.v1.DeviceConfig.getDefaultInstance() : config_;
+        return config_ == null
+            ? com.google.cloud.iot.v1.DeviceConfig.getDefaultInstance()
+            : config_;
       }
     }
     /**
+     *
+     *
      * 
      * The most recent device configuration, which is eventually sent from
      * Cloud IoT Core to the device. If not present on creation, the
@@ -4023,14 +4474,17 @@ public com.google.cloud.iot.v1.DeviceConfigOrBuilder getConfigOrBuilder() {
      * .google.cloud.iot.v1.DeviceConfig config = 13;
      */
     private com.google.protobuf.SingleFieldBuilderV3<
-        com.google.cloud.iot.v1.DeviceConfig, com.google.cloud.iot.v1.DeviceConfig.Builder, com.google.cloud.iot.v1.DeviceConfigOrBuilder> 
+            com.google.cloud.iot.v1.DeviceConfig,
+            com.google.cloud.iot.v1.DeviceConfig.Builder,
+            com.google.cloud.iot.v1.DeviceConfigOrBuilder>
         getConfigFieldBuilder() {
       if (configBuilder_ == null) {
-        configBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
-            com.google.cloud.iot.v1.DeviceConfig, com.google.cloud.iot.v1.DeviceConfig.Builder, com.google.cloud.iot.v1.DeviceConfigOrBuilder>(
-                getConfig(),
-                getParentForChildren(),
-                isClean());
+        configBuilder_ =
+            new com.google.protobuf.SingleFieldBuilderV3<
+                com.google.cloud.iot.v1.DeviceConfig,
+                com.google.cloud.iot.v1.DeviceConfig.Builder,
+                com.google.cloud.iot.v1.DeviceConfigOrBuilder>(
+                getConfig(), getParentForChildren(), isClean());
         config_ = null;
       }
       return configBuilder_;
@@ -4038,26 +4492,35 @@ public com.google.cloud.iot.v1.DeviceConfigOrBuilder getConfigOrBuilder() {
 
     private com.google.cloud.iot.v1.DeviceState state_;
     private com.google.protobuf.SingleFieldBuilderV3<
-        com.google.cloud.iot.v1.DeviceState, com.google.cloud.iot.v1.DeviceState.Builder, com.google.cloud.iot.v1.DeviceStateOrBuilder> stateBuilder_;
+            com.google.cloud.iot.v1.DeviceState,
+            com.google.cloud.iot.v1.DeviceState.Builder,
+            com.google.cloud.iot.v1.DeviceStateOrBuilder>
+        stateBuilder_;
     /**
+     *
+     *
      * 
      * [Output only] The state most recently received from the device. If no state
      * has been reported, this field is not present.
      * 
* * .google.cloud.iot.v1.DeviceState state = 16; + * * @return Whether the state field is set. */ public boolean hasState() { return stateBuilder_ != null || state_ != null; } /** + * + * *
      * [Output only] The state most recently received from the device. If no state
      * has been reported, this field is not present.
      * 
* * .google.cloud.iot.v1.DeviceState state = 16; + * * @return The state. */ public com.google.cloud.iot.v1.DeviceState getState() { @@ -4068,6 +4531,8 @@ public com.google.cloud.iot.v1.DeviceState getState() { } } /** + * + * *
      * [Output only] The state most recently received from the device. If no state
      * has been reported, this field is not present.
@@ -4089,6 +4554,8 @@ public Builder setState(com.google.cloud.iot.v1.DeviceState value) {
       return this;
     }
     /**
+     *
+     *
      * 
      * [Output only] The state most recently received from the device. If no state
      * has been reported, this field is not present.
@@ -4096,8 +4563,7 @@ public Builder setState(com.google.cloud.iot.v1.DeviceState value) {
      *
      * .google.cloud.iot.v1.DeviceState state = 16;
      */
-    public Builder setState(
-        com.google.cloud.iot.v1.DeviceState.Builder builderForValue) {
+    public Builder setState(com.google.cloud.iot.v1.DeviceState.Builder builderForValue) {
       if (stateBuilder_ == null) {
         state_ = builderForValue.build();
         onChanged();
@@ -4108,6 +4574,8 @@ public Builder setState(
       return this;
     }
     /**
+     *
+     *
      * 
      * [Output only] The state most recently received from the device. If no state
      * has been reported, this field is not present.
@@ -4119,7 +4587,9 @@ public Builder mergeState(com.google.cloud.iot.v1.DeviceState value) {
       if (stateBuilder_ == null) {
         if (state_ != null) {
           state_ =
-            com.google.cloud.iot.v1.DeviceState.newBuilder(state_).mergeFrom(value).buildPartial();
+              com.google.cloud.iot.v1.DeviceState.newBuilder(state_)
+                  .mergeFrom(value)
+                  .buildPartial();
         } else {
           state_ = value;
         }
@@ -4131,6 +4601,8 @@ public Builder mergeState(com.google.cloud.iot.v1.DeviceState value) {
       return this;
     }
     /**
+     *
+     *
      * 
      * [Output only] The state most recently received from the device. If no state
      * has been reported, this field is not present.
@@ -4150,6 +4622,8 @@ public Builder clearState() {
       return this;
     }
     /**
+     *
+     *
      * 
      * [Output only] The state most recently received from the device. If no state
      * has been reported, this field is not present.
@@ -4158,11 +4632,13 @@ public Builder clearState() {
      * .google.cloud.iot.v1.DeviceState state = 16;
      */
     public com.google.cloud.iot.v1.DeviceState.Builder getStateBuilder() {
-      
+
       onChanged();
       return getStateFieldBuilder().getBuilder();
     }
     /**
+     *
+     *
      * 
      * [Output only] The state most recently received from the device. If no state
      * has been reported, this field is not present.
@@ -4174,11 +4650,12 @@ public com.google.cloud.iot.v1.DeviceStateOrBuilder getStateOrBuilder() {
       if (stateBuilder_ != null) {
         return stateBuilder_.getMessageOrBuilder();
       } else {
-        return state_ == null ?
-            com.google.cloud.iot.v1.DeviceState.getDefaultInstance() : state_;
+        return state_ == null ? com.google.cloud.iot.v1.DeviceState.getDefaultInstance() : state_;
       }
     }
     /**
+     *
+     *
      * 
      * [Output only] The state most recently received from the device. If no state
      * has been reported, this field is not present.
@@ -4187,14 +4664,17 @@ public com.google.cloud.iot.v1.DeviceStateOrBuilder getStateOrBuilder() {
      * .google.cloud.iot.v1.DeviceState state = 16;
      */
     private com.google.protobuf.SingleFieldBuilderV3<
-        com.google.cloud.iot.v1.DeviceState, com.google.cloud.iot.v1.DeviceState.Builder, com.google.cloud.iot.v1.DeviceStateOrBuilder> 
+            com.google.cloud.iot.v1.DeviceState,
+            com.google.cloud.iot.v1.DeviceState.Builder,
+            com.google.cloud.iot.v1.DeviceStateOrBuilder>
         getStateFieldBuilder() {
       if (stateBuilder_ == null) {
-        stateBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
-            com.google.cloud.iot.v1.DeviceState, com.google.cloud.iot.v1.DeviceState.Builder, com.google.cloud.iot.v1.DeviceStateOrBuilder>(
-                getState(),
-                getParentForChildren(),
-                isClean());
+        stateBuilder_ =
+            new com.google.protobuf.SingleFieldBuilderV3<
+                com.google.cloud.iot.v1.DeviceState,
+                com.google.cloud.iot.v1.DeviceState.Builder,
+                com.google.cloud.iot.v1.DeviceStateOrBuilder>(
+                getState(), getParentForChildren(), isClean());
         state_ = null;
       }
       return stateBuilder_;
@@ -4202,6 +4682,8 @@ public com.google.cloud.iot.v1.DeviceStateOrBuilder getStateOrBuilder() {
 
     private int logLevel_ = 0;
     /**
+     *
+     *
      * 
      * **Beta Feature**
      * The logging verbosity for device activity. If unspecified,
@@ -4209,12 +4691,16 @@ public com.google.cloud.iot.v1.DeviceStateOrBuilder getStateOrBuilder() {
      * 
* * .google.cloud.iot.v1.LogLevel log_level = 21; + * * @return The enum numeric value on the wire for logLevel. */ - @java.lang.Override public int getLogLevelValue() { + @java.lang.Override + public int getLogLevelValue() { return logLevel_; } /** + * + * *
      * **Beta Feature**
      * The logging verbosity for device activity. If unspecified,
@@ -4222,16 +4708,19 @@ public com.google.cloud.iot.v1.DeviceStateOrBuilder getStateOrBuilder() {
      * 
* * .google.cloud.iot.v1.LogLevel log_level = 21; + * * @param value The enum numeric value on the wire for logLevel to set. * @return This builder for chaining. */ public Builder setLogLevelValue(int value) { - + logLevel_ = value; onChanged(); return this; } /** + * + * *
      * **Beta Feature**
      * The logging verbosity for device activity. If unspecified,
@@ -4239,6 +4728,7 @@ public Builder setLogLevelValue(int value) {
      * 
* * .google.cloud.iot.v1.LogLevel log_level = 21; + * * @return The logLevel. */ @java.lang.Override @@ -4248,6 +4738,8 @@ public com.google.cloud.iot.v1.LogLevel getLogLevel() { return result == null ? com.google.cloud.iot.v1.LogLevel.UNRECOGNIZED : result; } /** + * + * *
      * **Beta Feature**
      * The logging verbosity for device activity. If unspecified,
@@ -4255,6 +4747,7 @@ public com.google.cloud.iot.v1.LogLevel getLogLevel() {
      * 
* * .google.cloud.iot.v1.LogLevel log_level = 21; + * * @param value The logLevel to set. * @return This builder for chaining. */ @@ -4262,12 +4755,14 @@ public Builder setLogLevel(com.google.cloud.iot.v1.LogLevel value) { if (value == null) { throw new NullPointerException(); } - + logLevel_ = value.getNumber(); onChanged(); return this; } /** + * + * *
      * **Beta Feature**
      * The logging verbosity for device activity. If unspecified,
@@ -4275,31 +4770,32 @@ public Builder setLogLevel(com.google.cloud.iot.v1.LogLevel value) {
      * 
* * .google.cloud.iot.v1.LogLevel log_level = 21; + * * @return This builder for chaining. */ public Builder clearLogLevel() { - + logLevel_ = 0; onChanged(); return this; } - private com.google.protobuf.MapField< - java.lang.String, java.lang.String> metadata_; - private com.google.protobuf.MapField - internalGetMetadata() { + private com.google.protobuf.MapField metadata_; + + private com.google.protobuf.MapField internalGetMetadata() { if (metadata_ == null) { - return com.google.protobuf.MapField.emptyMapField( - MetadataDefaultEntryHolder.defaultEntry); + return com.google.protobuf.MapField.emptyMapField(MetadataDefaultEntryHolder.defaultEntry); } return metadata_; } + private com.google.protobuf.MapField - internalGetMutableMetadata() { - onChanged();; + internalGetMutableMetadata() { + onChanged(); + ; if (metadata_ == null) { - metadata_ = com.google.protobuf.MapField.newMapField( - MetadataDefaultEntryHolder.defaultEntry); + metadata_ = + com.google.protobuf.MapField.newMapField(MetadataDefaultEntryHolder.defaultEntry); } if (!metadata_.isMutable()) { metadata_ = metadata_.copy(); @@ -4311,6 +4807,8 @@ public int getMetadataCount() { return internalGetMetadata().getMap().size(); } /** + * + * *
      * The metadata key-value pairs assigned to the device. This metadata is not
      * interpreted or indexed by Cloud IoT Core. It can be used to add contextual
@@ -4325,22 +4823,22 @@ public int getMetadataCount() {
      *
      * map<string, string> metadata = 17;
      */
-
     @java.lang.Override
-    public boolean containsMetadata(
-        java.lang.String key) {
-      if (key == null) { throw new NullPointerException("map key"); }
+    public boolean containsMetadata(java.lang.String key) {
+      if (key == null) {
+        throw new NullPointerException("map key");
+      }
       return internalGetMetadata().getMap().containsKey(key);
     }
-    /**
-     * Use {@link #getMetadataMap()} instead.
-     */
+    /** Use {@link #getMetadataMap()} instead. */
     @java.lang.Override
     @java.lang.Deprecated
     public java.util.Map getMetadata() {
       return getMetadataMap();
     }
     /**
+     *
+     *
      * 
      * The metadata key-value pairs assigned to the device. This metadata is not
      * interpreted or indexed by Cloud IoT Core. It can be used to add contextual
@@ -4356,11 +4854,12 @@ public java.util.Map getMetadata() {
      * map<string, string> metadata = 17;
      */
     @java.lang.Override
-
     public java.util.Map getMetadataMap() {
       return internalGetMetadata().getMap();
     }
     /**
+     *
+     *
      * 
      * The metadata key-value pairs assigned to the device. This metadata is not
      * interpreted or indexed by Cloud IoT Core. It can be used to add contextual
@@ -4376,16 +4875,17 @@ public java.util.Map getMetadataMap() {
      * map<string, string> metadata = 17;
      */
     @java.lang.Override
-
     public java.lang.String getMetadataOrDefault(
-        java.lang.String key,
-        java.lang.String defaultValue) {
-      if (key == null) { throw new NullPointerException("map key"); }
-      java.util.Map map =
-          internalGetMetadata().getMap();
+        java.lang.String key, java.lang.String defaultValue) {
+      if (key == null) {
+        throw new NullPointerException("map key");
+      }
+      java.util.Map map = internalGetMetadata().getMap();
       return map.containsKey(key) ? map.get(key) : defaultValue;
     }
     /**
+     *
+     *
      * 
      * The metadata key-value pairs assigned to the device. This metadata is not
      * interpreted or indexed by Cloud IoT Core. It can be used to add contextual
@@ -4401,12 +4901,11 @@ public java.lang.String getMetadataOrDefault(
      * map<string, string> metadata = 17;
      */
     @java.lang.Override
-
-    public java.lang.String getMetadataOrThrow(
-        java.lang.String key) {
-      if (key == null) { throw new NullPointerException("map key"); }
-      java.util.Map map =
-          internalGetMetadata().getMap();
+    public java.lang.String getMetadataOrThrow(java.lang.String key) {
+      if (key == null) {
+        throw new NullPointerException("map key");
+      }
+      java.util.Map map = internalGetMetadata().getMap();
       if (!map.containsKey(key)) {
         throw new java.lang.IllegalArgumentException();
       }
@@ -4414,11 +4913,12 @@ public java.lang.String getMetadataOrThrow(
     }
 
     public Builder clearMetadata() {
-      internalGetMutableMetadata().getMutableMap()
-          .clear();
+      internalGetMutableMetadata().getMutableMap().clear();
       return this;
     }
     /**
+     *
+     *
      * 
      * The metadata key-value pairs assigned to the device. This metadata is not
      * interpreted or indexed by Cloud IoT Core. It can be used to add contextual
@@ -4433,23 +4933,21 @@ public Builder clearMetadata() {
      *
      * map<string, string> metadata = 17;
      */
-
-    public Builder removeMetadata(
-        java.lang.String key) {
-      if (key == null) { throw new NullPointerException("map key"); }
-      internalGetMutableMetadata().getMutableMap()
-          .remove(key);
+    public Builder removeMetadata(java.lang.String key) {
+      if (key == null) {
+        throw new NullPointerException("map key");
+      }
+      internalGetMutableMetadata().getMutableMap().remove(key);
       return this;
     }
-    /**
-     * Use alternate mutation accessors instead.
-     */
+    /** Use alternate mutation accessors instead. */
     @java.lang.Deprecated
-    public java.util.Map
-    getMutableMetadata() {
+    public java.util.Map getMutableMetadata() {
       return internalGetMutableMetadata().getMutableMap();
     }
     /**
+     *
+     *
      * 
      * The metadata key-value pairs assigned to the device. This metadata is not
      * interpreted or indexed by Cloud IoT Core. It can be used to add contextual
@@ -4464,19 +4962,20 @@ public Builder removeMetadata(
      *
      * map<string, string> metadata = 17;
      */
-    public Builder putMetadata(
-        java.lang.String key,
-        java.lang.String value) {
-      if (key == null) { throw new NullPointerException("map key"); }
+    public Builder putMetadata(java.lang.String key, java.lang.String value) {
+      if (key == null) {
+        throw new NullPointerException("map key");
+      }
       if (value == null) {
-  throw new NullPointerException("map value");
-}
+        throw new NullPointerException("map value");
+      }
 
-      internalGetMutableMetadata().getMutableMap()
-          .put(key, value);
+      internalGetMutableMetadata().getMutableMap().put(key, value);
       return this;
     }
     /**
+     *
+     *
      * 
      * The metadata key-value pairs assigned to the device. This metadata is not
      * interpreted or indexed by Cloud IoT Core. It can be used to add contextual
@@ -4491,44 +4990,54 @@ public Builder putMetadata(
      *
      * map<string, string> metadata = 17;
      */
-
-    public Builder putAllMetadata(
-        java.util.Map values) {
-      internalGetMutableMetadata().getMutableMap()
-          .putAll(values);
+    public Builder putAllMetadata(java.util.Map values) {
+      internalGetMutableMetadata().getMutableMap().putAll(values);
       return this;
     }
 
     private com.google.cloud.iot.v1.GatewayConfig gatewayConfig_;
     private com.google.protobuf.SingleFieldBuilderV3<
-        com.google.cloud.iot.v1.GatewayConfig, com.google.cloud.iot.v1.GatewayConfig.Builder, com.google.cloud.iot.v1.GatewayConfigOrBuilder> gatewayConfigBuilder_;
+            com.google.cloud.iot.v1.GatewayConfig,
+            com.google.cloud.iot.v1.GatewayConfig.Builder,
+            com.google.cloud.iot.v1.GatewayConfigOrBuilder>
+        gatewayConfigBuilder_;
     /**
+     *
+     *
      * 
      * Gateway-related configuration and state.
      * 
* * .google.cloud.iot.v1.GatewayConfig gateway_config = 24; + * * @return Whether the gatewayConfig field is set. */ public boolean hasGatewayConfig() { return gatewayConfigBuilder_ != null || gatewayConfig_ != null; } /** + * + * *
      * Gateway-related configuration and state.
      * 
* * .google.cloud.iot.v1.GatewayConfig gateway_config = 24; + * * @return The gatewayConfig. */ public com.google.cloud.iot.v1.GatewayConfig getGatewayConfig() { if (gatewayConfigBuilder_ == null) { - return gatewayConfig_ == null ? com.google.cloud.iot.v1.GatewayConfig.getDefaultInstance() : gatewayConfig_; + return gatewayConfig_ == null + ? com.google.cloud.iot.v1.GatewayConfig.getDefaultInstance() + : gatewayConfig_; } else { return gatewayConfigBuilder_.getMessage(); } } /** + * + * *
      * Gateway-related configuration and state.
      * 
@@ -4549,14 +5058,15 @@ public Builder setGatewayConfig(com.google.cloud.iot.v1.GatewayConfig value) { return this; } /** + * + * *
      * Gateway-related configuration and state.
      * 
* * .google.cloud.iot.v1.GatewayConfig gateway_config = 24; */ - public Builder setGatewayConfig( - com.google.cloud.iot.v1.GatewayConfig.Builder builderForValue) { + public Builder setGatewayConfig(com.google.cloud.iot.v1.GatewayConfig.Builder builderForValue) { if (gatewayConfigBuilder_ == null) { gatewayConfig_ = builderForValue.build(); onChanged(); @@ -4567,6 +5077,8 @@ public Builder setGatewayConfig( return this; } /** + * + * *
      * Gateway-related configuration and state.
      * 
@@ -4577,7 +5089,9 @@ public Builder mergeGatewayConfig(com.google.cloud.iot.v1.GatewayConfig value) { if (gatewayConfigBuilder_ == null) { if (gatewayConfig_ != null) { gatewayConfig_ = - com.google.cloud.iot.v1.GatewayConfig.newBuilder(gatewayConfig_).mergeFrom(value).buildPartial(); + com.google.cloud.iot.v1.GatewayConfig.newBuilder(gatewayConfig_) + .mergeFrom(value) + .buildPartial(); } else { gatewayConfig_ = value; } @@ -4589,6 +5103,8 @@ public Builder mergeGatewayConfig(com.google.cloud.iot.v1.GatewayConfig value) { return this; } /** + * + * *
      * Gateway-related configuration and state.
      * 
@@ -4607,6 +5123,8 @@ public Builder clearGatewayConfig() { return this; } /** + * + * *
      * Gateway-related configuration and state.
      * 
@@ -4614,11 +5132,13 @@ public Builder clearGatewayConfig() { * .google.cloud.iot.v1.GatewayConfig gateway_config = 24; */ public com.google.cloud.iot.v1.GatewayConfig.Builder getGatewayConfigBuilder() { - + onChanged(); return getGatewayConfigFieldBuilder().getBuilder(); } /** + * + * *
      * Gateway-related configuration and state.
      * 
@@ -4629,11 +5149,14 @@ public com.google.cloud.iot.v1.GatewayConfigOrBuilder getGatewayConfigOrBuilder( if (gatewayConfigBuilder_ != null) { return gatewayConfigBuilder_.getMessageOrBuilder(); } else { - return gatewayConfig_ == null ? - com.google.cloud.iot.v1.GatewayConfig.getDefaultInstance() : gatewayConfig_; + return gatewayConfig_ == null + ? com.google.cloud.iot.v1.GatewayConfig.getDefaultInstance() + : gatewayConfig_; } } /** + * + * *
      * Gateway-related configuration and state.
      * 
@@ -4641,21 +5164,24 @@ public com.google.cloud.iot.v1.GatewayConfigOrBuilder getGatewayConfigOrBuilder( * .google.cloud.iot.v1.GatewayConfig gateway_config = 24; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.iot.v1.GatewayConfig, com.google.cloud.iot.v1.GatewayConfig.Builder, com.google.cloud.iot.v1.GatewayConfigOrBuilder> + com.google.cloud.iot.v1.GatewayConfig, + com.google.cloud.iot.v1.GatewayConfig.Builder, + com.google.cloud.iot.v1.GatewayConfigOrBuilder> getGatewayConfigFieldBuilder() { if (gatewayConfigBuilder_ == null) { - gatewayConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.iot.v1.GatewayConfig, com.google.cloud.iot.v1.GatewayConfig.Builder, com.google.cloud.iot.v1.GatewayConfigOrBuilder>( - getGatewayConfig(), - getParentForChildren(), - isClean()); + gatewayConfigBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.iot.v1.GatewayConfig, + com.google.cloud.iot.v1.GatewayConfig.Builder, + com.google.cloud.iot.v1.GatewayConfigOrBuilder>( + getGatewayConfig(), getParentForChildren(), isClean()); gatewayConfig_ = null; } return gatewayConfigBuilder_; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -4665,12 +5191,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.iot.v1.Device) } // @@protoc_insertion_point(class_scope:google.cloud.iot.v1.Device) private static final com.google.cloud.iot.v1.Device DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.iot.v1.Device(); } @@ -4679,16 +5205,16 @@ public static com.google.cloud.iot.v1.Device getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Device parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new Device(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Device parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new Device(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -4703,6 +5229,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.iot.v1.Device getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1/proto-google-cloud-iot-v1/src/main/java/com/google/cloud/iot/v1/DeviceConfig.java b/proto-google-cloud-iot-v1/src/main/java/com/google/cloud/iot/v1/DeviceConfig.java similarity index 77% rename from owl-bot-staging/v1/proto-google-cloud-iot-v1/src/main/java/com/google/cloud/iot/v1/DeviceConfig.java rename to proto-google-cloud-iot-v1/src/main/java/com/google/cloud/iot/v1/DeviceConfig.java index f928f166..81b81142 100644 --- a/owl-bot-staging/v1/proto-google-cloud-iot-v1/src/main/java/com/google/cloud/iot/v1/DeviceConfig.java +++ b/proto-google-cloud-iot-v1/src/main/java/com/google/cloud/iot/v1/DeviceConfig.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/iot/v1/resources.proto package com.google.cloud.iot.v1; /** + * + * *
  * The device configuration. Eventually delivered to devices.
  * 
* * Protobuf type {@code google.cloud.iot.v1.DeviceConfig} */ -public final class DeviceConfig extends - com.google.protobuf.GeneratedMessageV3 implements +public final class DeviceConfig extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.iot.v1.DeviceConfig) DeviceConfigOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use DeviceConfig.newBuilder() to construct. private DeviceConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private DeviceConfig() { binaryData_ = com.google.protobuf.ByteString.EMPTY; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new DeviceConfig(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private DeviceConfig( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -53,49 +70,53 @@ private DeviceConfig( case 0: done = true; break; - case 8: { - - version_ = input.readInt64(); - break; - } - case 18: { - com.google.protobuf.Timestamp.Builder subBuilder = null; - if (cloudUpdateTime_ != null) { - subBuilder = cloudUpdateTime_.toBuilder(); + case 8: + { + version_ = input.readInt64(); + break; } - cloudUpdateTime_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(cloudUpdateTime_); - cloudUpdateTime_ = subBuilder.buildPartial(); + case 18: + { + com.google.protobuf.Timestamp.Builder subBuilder = null; + if (cloudUpdateTime_ != null) { + subBuilder = cloudUpdateTime_.toBuilder(); + } + cloudUpdateTime_ = + input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(cloudUpdateTime_); + cloudUpdateTime_ = subBuilder.buildPartial(); + } + + break; } + case 26: + { + com.google.protobuf.Timestamp.Builder subBuilder = null; + if (deviceAckTime_ != null) { + subBuilder = deviceAckTime_.toBuilder(); + } + deviceAckTime_ = + input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(deviceAckTime_); + deviceAckTime_ = subBuilder.buildPartial(); + } - break; - } - case 26: { - com.google.protobuf.Timestamp.Builder subBuilder = null; - if (deviceAckTime_ != null) { - subBuilder = deviceAckTime_.toBuilder(); + break; } - deviceAckTime_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(deviceAckTime_); - deviceAckTime_ = subBuilder.buildPartial(); + case 34: + { + binaryData_ = input.readBytes(); + break; } - - break; - } - case 34: { - - binaryData_ = input.readBytes(); - 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) { @@ -103,29 +124,33 @@ private DeviceConfig( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.iot.v1.ResourcesProto.internal_static_google_cloud_iot_v1_DeviceConfig_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.iot.v1.ResourcesProto + .internal_static_google_cloud_iot_v1_DeviceConfig_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.iot.v1.ResourcesProto.internal_static_google_cloud_iot_v1_DeviceConfig_fieldAccessorTable + return com.google.cloud.iot.v1.ResourcesProto + .internal_static_google_cloud_iot_v1_DeviceConfig_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.iot.v1.DeviceConfig.class, com.google.cloud.iot.v1.DeviceConfig.Builder.class); + com.google.cloud.iot.v1.DeviceConfig.class, + com.google.cloud.iot.v1.DeviceConfig.Builder.class); } public static final int VERSION_FIELD_NUMBER = 1; private long version_; /** + * + * *
    * [Output only] The version of this update. The version number is assigned by
    * the server, and is always greater than 0 after device creation. The
@@ -134,6 +159,7 @@ private DeviceConfig(
    * 
* * int64 version = 1; + * * @return The version. */ @java.lang.Override @@ -144,12 +170,15 @@ public long getVersion() { public static final int CLOUD_UPDATE_TIME_FIELD_NUMBER = 2; private com.google.protobuf.Timestamp cloudUpdateTime_; /** + * + * *
    * [Output only] The time at which this configuration version was updated in
    * Cloud IoT Core. This timestamp is set by the server.
    * 
* * .google.protobuf.Timestamp cloud_update_time = 2; + * * @return Whether the cloudUpdateTime field is set. */ @java.lang.Override @@ -157,19 +186,26 @@ public boolean hasCloudUpdateTime() { return cloudUpdateTime_ != null; } /** + * + * *
    * [Output only] The time at which this configuration version was updated in
    * Cloud IoT Core. This timestamp is set by the server.
    * 
* * .google.protobuf.Timestamp cloud_update_time = 2; + * * @return The cloudUpdateTime. */ @java.lang.Override public com.google.protobuf.Timestamp getCloudUpdateTime() { - return cloudUpdateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : cloudUpdateTime_; + return cloudUpdateTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : cloudUpdateTime_; } /** + * + * *
    * [Output only] The time at which this configuration version was updated in
    * Cloud IoT Core. This timestamp is set by the server.
@@ -185,6 +221,8 @@ public com.google.protobuf.TimestampOrBuilder getCloudUpdateTimeOrBuilder() {
   public static final int DEVICE_ACK_TIME_FIELD_NUMBER = 3;
   private com.google.protobuf.Timestamp deviceAckTime_;
   /**
+   *
+   *
    * 
    * [Output only] The time at which Cloud IoT Core received the
    * acknowledgment from the device, indicating that the device has received
@@ -198,6 +236,7 @@ public com.google.protobuf.TimestampOrBuilder getCloudUpdateTimeOrBuilder() {
    * 
* * .google.protobuf.Timestamp device_ack_time = 3; + * * @return Whether the deviceAckTime field is set. */ @java.lang.Override @@ -205,6 +244,8 @@ public boolean hasDeviceAckTime() { return deviceAckTime_ != null; } /** + * + * *
    * [Output only] The time at which Cloud IoT Core received the
    * acknowledgment from the device, indicating that the device has received
@@ -218,13 +259,18 @@ public boolean hasDeviceAckTime() {
    * 
* * .google.protobuf.Timestamp device_ack_time = 3; + * * @return The deviceAckTime. */ @java.lang.Override public com.google.protobuf.Timestamp getDeviceAckTime() { - return deviceAckTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : deviceAckTime_; + return deviceAckTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : deviceAckTime_; } /** + * + * *
    * [Output only] The time at which Cloud IoT Core received the
    * acknowledgment from the device, indicating that the device has received
@@ -247,11 +293,14 @@ public com.google.protobuf.TimestampOrBuilder getDeviceAckTimeOrBuilder() {
   public static final int BINARY_DATA_FIELD_NUMBER = 4;
   private com.google.protobuf.ByteString binaryData_;
   /**
+   *
+   *
    * 
    * The device configuration data.
    * 
* * bytes binary_data = 4; + * * @return The binaryData. */ @java.lang.Override @@ -260,6 +309,7 @@ public com.google.protobuf.ByteString getBinaryData() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -271,8 +321,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (version_ != 0L) { output.writeInt64(1, version_); } @@ -295,20 +344,16 @@ public int getSerializedSize() { size = 0; if (version_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeInt64Size(1, version_); + size += com.google.protobuf.CodedOutputStream.computeInt64Size(1, version_); } if (cloudUpdateTime_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getCloudUpdateTime()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getCloudUpdateTime()); } if (deviceAckTime_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(3, getDeviceAckTime()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getDeviceAckTime()); } if (!binaryData_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(4, binaryData_); + size += com.google.protobuf.CodedOutputStream.computeBytesSize(4, binaryData_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -318,27 +363,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.iot.v1.DeviceConfig)) { return super.equals(obj); } com.google.cloud.iot.v1.DeviceConfig other = (com.google.cloud.iot.v1.DeviceConfig) obj; - if (getVersion() - != other.getVersion()) return false; + if (getVersion() != other.getVersion()) return false; if (hasCloudUpdateTime() != other.hasCloudUpdateTime()) return false; if (hasCloudUpdateTime()) { - if (!getCloudUpdateTime() - .equals(other.getCloudUpdateTime())) return false; + if (!getCloudUpdateTime().equals(other.getCloudUpdateTime())) return false; } if (hasDeviceAckTime() != other.hasDeviceAckTime()) return false; if (hasDeviceAckTime()) { - if (!getDeviceAckTime() - .equals(other.getDeviceAckTime())) return false; + if (!getDeviceAckTime().equals(other.getDeviceAckTime())) return false; } - if (!getBinaryData() - .equals(other.getBinaryData())) return false; + if (!getBinaryData().equals(other.getBinaryData())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -351,8 +392,7 @@ public int hashCode() { int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + VERSION_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getVersion()); + hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getVersion()); if (hasCloudUpdateTime()) { hash = (37 * hash) + CLOUD_UPDATE_TIME_FIELD_NUMBER; hash = (53 * hash) + getCloudUpdateTime().hashCode(); @@ -368,118 +408,126 @@ public int hashCode() { return hash; } - public static com.google.cloud.iot.v1.DeviceConfig parseFrom( - java.nio.ByteBuffer data) + public static com.google.cloud.iot.v1.DeviceConfig parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.iot.v1.DeviceConfig parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.iot.v1.DeviceConfig parseFrom( - com.google.protobuf.ByteString data) + + public static com.google.cloud.iot.v1.DeviceConfig parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.iot.v1.DeviceConfig parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.iot.v1.DeviceConfig parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.iot.v1.DeviceConfig parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.iot.v1.DeviceConfig 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.iot.v1.DeviceConfig parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.iot.v1.DeviceConfig 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.iot.v1.DeviceConfig parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.iot.v1.DeviceConfig parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.iot.v1.DeviceConfig parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.cloud.iot.v1.DeviceConfig prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected 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 device configuration. Eventually delivered to devices.
    * 
* * Protobuf type {@code google.cloud.iot.v1.DeviceConfig} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.iot.v1.DeviceConfig) com.google.cloud.iot.v1.DeviceConfigOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.iot.v1.ResourcesProto.internal_static_google_cloud_iot_v1_DeviceConfig_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.iot.v1.ResourcesProto + .internal_static_google_cloud_iot_v1_DeviceConfig_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.iot.v1.ResourcesProto.internal_static_google_cloud_iot_v1_DeviceConfig_fieldAccessorTable + return com.google.cloud.iot.v1.ResourcesProto + .internal_static_google_cloud_iot_v1_DeviceConfig_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.iot.v1.DeviceConfig.class, com.google.cloud.iot.v1.DeviceConfig.Builder.class); + com.google.cloud.iot.v1.DeviceConfig.class, + com.google.cloud.iot.v1.DeviceConfig.Builder.class); } // Construct using com.google.cloud.iot.v1.DeviceConfig.newBuilder() @@ -487,16 +535,15 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -520,9 +567,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.iot.v1.ResourcesProto.internal_static_google_cloud_iot_v1_DeviceConfig_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.iot.v1.ResourcesProto + .internal_static_google_cloud_iot_v1_DeviceConfig_descriptor; } @java.lang.Override @@ -562,38 +609,39 @@ public com.google.cloud.iot.v1.DeviceConfig buildPartial() { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.iot.v1.DeviceConfig) { - return mergeFrom((com.google.cloud.iot.v1.DeviceConfig)other); + return mergeFrom((com.google.cloud.iot.v1.DeviceConfig) other); } else { super.mergeFrom(other); return this; @@ -643,8 +691,10 @@ public Builder mergeFrom( return this; } - private long version_ ; + private long version_; /** + * + * *
      * [Output only] The version of this update. The version number is assigned by
      * the server, and is always greater than 0 after device creation. The
@@ -653,6 +703,7 @@ public Builder mergeFrom(
      * 
* * int64 version = 1; + * * @return The version. */ @java.lang.Override @@ -660,6 +711,8 @@ public long getVersion() { return version_; } /** + * + * *
      * [Output only] The version of this update. The version number is assigned by
      * the server, and is always greater than 0 after device creation. The
@@ -668,16 +721,19 @@ public long getVersion() {
      * 
* * int64 version = 1; + * * @param value The version to set. * @return This builder for chaining. */ public Builder setVersion(long value) { - + version_ = value; onChanged(); return this; } /** + * + * *
      * [Output only] The version of this update. The version number is assigned by
      * the server, and is always greater than 0 after device creation. The
@@ -686,10 +742,11 @@ public Builder setVersion(long value) {
      * 
* * int64 version = 1; + * * @return This builder for chaining. */ public Builder clearVersion() { - + version_ = 0L; onChanged(); return this; @@ -697,36 +754,49 @@ public Builder clearVersion() { private com.google.protobuf.Timestamp cloudUpdateTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> cloudUpdateTimeBuilder_; + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + cloudUpdateTimeBuilder_; /** + * + * *
      * [Output only] The time at which this configuration version was updated in
      * Cloud IoT Core. This timestamp is set by the server.
      * 
* * .google.protobuf.Timestamp cloud_update_time = 2; + * * @return Whether the cloudUpdateTime field is set. */ public boolean hasCloudUpdateTime() { return cloudUpdateTimeBuilder_ != null || cloudUpdateTime_ != null; } /** + * + * *
      * [Output only] The time at which this configuration version was updated in
      * Cloud IoT Core. This timestamp is set by the server.
      * 
* * .google.protobuf.Timestamp cloud_update_time = 2; + * * @return The cloudUpdateTime. */ public com.google.protobuf.Timestamp getCloudUpdateTime() { if (cloudUpdateTimeBuilder_ == null) { - return cloudUpdateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : cloudUpdateTime_; + return cloudUpdateTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : cloudUpdateTime_; } else { return cloudUpdateTimeBuilder_.getMessage(); } } /** + * + * *
      * [Output only] The time at which this configuration version was updated in
      * Cloud IoT Core. This timestamp is set by the server.
@@ -748,6 +818,8 @@ public Builder setCloudUpdateTime(com.google.protobuf.Timestamp value) {
       return this;
     }
     /**
+     *
+     *
      * 
      * [Output only] The time at which this configuration version was updated in
      * Cloud IoT Core. This timestamp is set by the server.
@@ -755,8 +827,7 @@ public Builder setCloudUpdateTime(com.google.protobuf.Timestamp value) {
      *
      * .google.protobuf.Timestamp cloud_update_time = 2;
      */
-    public Builder setCloudUpdateTime(
-        com.google.protobuf.Timestamp.Builder builderForValue) {
+    public Builder setCloudUpdateTime(com.google.protobuf.Timestamp.Builder builderForValue) {
       if (cloudUpdateTimeBuilder_ == null) {
         cloudUpdateTime_ = builderForValue.build();
         onChanged();
@@ -767,6 +838,8 @@ public Builder setCloudUpdateTime(
       return this;
     }
     /**
+     *
+     *
      * 
      * [Output only] The time at which this configuration version was updated in
      * Cloud IoT Core. This timestamp is set by the server.
@@ -778,7 +851,9 @@ public Builder mergeCloudUpdateTime(com.google.protobuf.Timestamp value) {
       if (cloudUpdateTimeBuilder_ == null) {
         if (cloudUpdateTime_ != null) {
           cloudUpdateTime_ =
-            com.google.protobuf.Timestamp.newBuilder(cloudUpdateTime_).mergeFrom(value).buildPartial();
+              com.google.protobuf.Timestamp.newBuilder(cloudUpdateTime_)
+                  .mergeFrom(value)
+                  .buildPartial();
         } else {
           cloudUpdateTime_ = value;
         }
@@ -790,6 +865,8 @@ public Builder mergeCloudUpdateTime(com.google.protobuf.Timestamp value) {
       return this;
     }
     /**
+     *
+     *
      * 
      * [Output only] The time at which this configuration version was updated in
      * Cloud IoT Core. This timestamp is set by the server.
@@ -809,6 +886,8 @@ public Builder clearCloudUpdateTime() {
       return this;
     }
     /**
+     *
+     *
      * 
      * [Output only] The time at which this configuration version was updated in
      * Cloud IoT Core. This timestamp is set by the server.
@@ -817,11 +896,13 @@ public Builder clearCloudUpdateTime() {
      * .google.protobuf.Timestamp cloud_update_time = 2;
      */
     public com.google.protobuf.Timestamp.Builder getCloudUpdateTimeBuilder() {
-      
+
       onChanged();
       return getCloudUpdateTimeFieldBuilder().getBuilder();
     }
     /**
+     *
+     *
      * 
      * [Output only] The time at which this configuration version was updated in
      * Cloud IoT Core. This timestamp is set by the server.
@@ -833,11 +914,14 @@ public com.google.protobuf.TimestampOrBuilder getCloudUpdateTimeOrBuilder() {
       if (cloudUpdateTimeBuilder_ != null) {
         return cloudUpdateTimeBuilder_.getMessageOrBuilder();
       } else {
-        return cloudUpdateTime_ == null ?
-            com.google.protobuf.Timestamp.getDefaultInstance() : cloudUpdateTime_;
+        return cloudUpdateTime_ == null
+            ? com.google.protobuf.Timestamp.getDefaultInstance()
+            : cloudUpdateTime_;
       }
     }
     /**
+     *
+     *
      * 
      * [Output only] The time at which this configuration version was updated in
      * Cloud IoT Core. This timestamp is set by the server.
@@ -846,14 +930,17 @@ public com.google.protobuf.TimestampOrBuilder getCloudUpdateTimeOrBuilder() {
      * .google.protobuf.Timestamp cloud_update_time = 2;
      */
     private com.google.protobuf.SingleFieldBuilderV3<
-        com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> 
+            com.google.protobuf.Timestamp,
+            com.google.protobuf.Timestamp.Builder,
+            com.google.protobuf.TimestampOrBuilder>
         getCloudUpdateTimeFieldBuilder() {
       if (cloudUpdateTimeBuilder_ == null) {
-        cloudUpdateTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
-            com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>(
-                getCloudUpdateTime(),
-                getParentForChildren(),
-                isClean());
+        cloudUpdateTimeBuilder_ =
+            new com.google.protobuf.SingleFieldBuilderV3<
+                com.google.protobuf.Timestamp,
+                com.google.protobuf.Timestamp.Builder,
+                com.google.protobuf.TimestampOrBuilder>(
+                getCloudUpdateTime(), getParentForChildren(), isClean());
         cloudUpdateTime_ = null;
       }
       return cloudUpdateTimeBuilder_;
@@ -861,8 +948,13 @@ public com.google.protobuf.TimestampOrBuilder getCloudUpdateTimeOrBuilder() {
 
     private com.google.protobuf.Timestamp deviceAckTime_;
     private com.google.protobuf.SingleFieldBuilderV3<
-        com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> deviceAckTimeBuilder_;
+            com.google.protobuf.Timestamp,
+            com.google.protobuf.Timestamp.Builder,
+            com.google.protobuf.TimestampOrBuilder>
+        deviceAckTimeBuilder_;
     /**
+     *
+     *
      * 
      * [Output only] The time at which Cloud IoT Core received the
      * acknowledgment from the device, indicating that the device has received
@@ -876,12 +968,15 @@ public com.google.protobuf.TimestampOrBuilder getCloudUpdateTimeOrBuilder() {
      * 
* * .google.protobuf.Timestamp device_ack_time = 3; + * * @return Whether the deviceAckTime field is set. */ public boolean hasDeviceAckTime() { return deviceAckTimeBuilder_ != null || deviceAckTime_ != null; } /** + * + * *
      * [Output only] The time at which Cloud IoT Core received the
      * acknowledgment from the device, indicating that the device has received
@@ -895,16 +990,21 @@ public boolean hasDeviceAckTime() {
      * 
* * .google.protobuf.Timestamp device_ack_time = 3; + * * @return The deviceAckTime. */ public com.google.protobuf.Timestamp getDeviceAckTime() { if (deviceAckTimeBuilder_ == null) { - return deviceAckTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : deviceAckTime_; + return deviceAckTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : deviceAckTime_; } else { return deviceAckTimeBuilder_.getMessage(); } } /** + * + * *
      * [Output only] The time at which Cloud IoT Core received the
      * acknowledgment from the device, indicating that the device has received
@@ -933,6 +1033,8 @@ public Builder setDeviceAckTime(com.google.protobuf.Timestamp value) {
       return this;
     }
     /**
+     *
+     *
      * 
      * [Output only] The time at which Cloud IoT Core received the
      * acknowledgment from the device, indicating that the device has received
@@ -947,8 +1049,7 @@ public Builder setDeviceAckTime(com.google.protobuf.Timestamp value) {
      *
      * .google.protobuf.Timestamp device_ack_time = 3;
      */
-    public Builder setDeviceAckTime(
-        com.google.protobuf.Timestamp.Builder builderForValue) {
+    public Builder setDeviceAckTime(com.google.protobuf.Timestamp.Builder builderForValue) {
       if (deviceAckTimeBuilder_ == null) {
         deviceAckTime_ = builderForValue.build();
         onChanged();
@@ -959,6 +1060,8 @@ public Builder setDeviceAckTime(
       return this;
     }
     /**
+     *
+     *
      * 
      * [Output only] The time at which Cloud IoT Core received the
      * acknowledgment from the device, indicating that the device has received
@@ -977,7 +1080,9 @@ public Builder mergeDeviceAckTime(com.google.protobuf.Timestamp value) {
       if (deviceAckTimeBuilder_ == null) {
         if (deviceAckTime_ != null) {
           deviceAckTime_ =
-            com.google.protobuf.Timestamp.newBuilder(deviceAckTime_).mergeFrom(value).buildPartial();
+              com.google.protobuf.Timestamp.newBuilder(deviceAckTime_)
+                  .mergeFrom(value)
+                  .buildPartial();
         } else {
           deviceAckTime_ = value;
         }
@@ -989,6 +1094,8 @@ public Builder mergeDeviceAckTime(com.google.protobuf.Timestamp value) {
       return this;
     }
     /**
+     *
+     *
      * 
      * [Output only] The time at which Cloud IoT Core received the
      * acknowledgment from the device, indicating that the device has received
@@ -1015,6 +1122,8 @@ public Builder clearDeviceAckTime() {
       return this;
     }
     /**
+     *
+     *
      * 
      * [Output only] The time at which Cloud IoT Core received the
      * acknowledgment from the device, indicating that the device has received
@@ -1030,11 +1139,13 @@ public Builder clearDeviceAckTime() {
      * .google.protobuf.Timestamp device_ack_time = 3;
      */
     public com.google.protobuf.Timestamp.Builder getDeviceAckTimeBuilder() {
-      
+
       onChanged();
       return getDeviceAckTimeFieldBuilder().getBuilder();
     }
     /**
+     *
+     *
      * 
      * [Output only] The time at which Cloud IoT Core received the
      * acknowledgment from the device, indicating that the device has received
@@ -1053,11 +1164,14 @@ public com.google.protobuf.TimestampOrBuilder getDeviceAckTimeOrBuilder() {
       if (deviceAckTimeBuilder_ != null) {
         return deviceAckTimeBuilder_.getMessageOrBuilder();
       } else {
-        return deviceAckTime_ == null ?
-            com.google.protobuf.Timestamp.getDefaultInstance() : deviceAckTime_;
+        return deviceAckTime_ == null
+            ? com.google.protobuf.Timestamp.getDefaultInstance()
+            : deviceAckTime_;
       }
     }
     /**
+     *
+     *
      * 
      * [Output only] The time at which Cloud IoT Core received the
      * acknowledgment from the device, indicating that the device has received
@@ -1073,14 +1187,17 @@ public com.google.protobuf.TimestampOrBuilder getDeviceAckTimeOrBuilder() {
      * .google.protobuf.Timestamp device_ack_time = 3;
      */
     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>
         getDeviceAckTimeFieldBuilder() {
       if (deviceAckTimeBuilder_ == null) {
-        deviceAckTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
-            com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>(
-                getDeviceAckTime(),
-                getParentForChildren(),
-                isClean());
+        deviceAckTimeBuilder_ =
+            new com.google.protobuf.SingleFieldBuilderV3<
+                com.google.protobuf.Timestamp,
+                com.google.protobuf.Timestamp.Builder,
+                com.google.protobuf.TimestampOrBuilder>(
+                getDeviceAckTime(), getParentForChildren(), isClean());
         deviceAckTime_ = null;
       }
       return deviceAckTimeBuilder_;
@@ -1088,11 +1205,14 @@ public com.google.protobuf.TimestampOrBuilder getDeviceAckTimeOrBuilder() {
 
     private com.google.protobuf.ByteString binaryData_ = com.google.protobuf.ByteString.EMPTY;
     /**
+     *
+     *
      * 
      * The device configuration data.
      * 
* * bytes binary_data = 4; + * * @return The binaryData. */ @java.lang.Override @@ -1100,40 +1220,46 @@ public com.google.protobuf.ByteString getBinaryData() { return binaryData_; } /** + * + * *
      * The device configuration data.
      * 
* * bytes binary_data = 4; + * * @param value The binaryData to set. * @return This builder for chaining. */ public Builder setBinaryData(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + binaryData_ = value; onChanged(); return this; } /** + * + * *
      * The device configuration data.
      * 
* * bytes binary_data = 4; + * * @return This builder for chaining. */ public Builder clearBinaryData() { - + binaryData_ = getDefaultInstance().getBinaryData(); onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1143,12 +1269,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.iot.v1.DeviceConfig) } // @@protoc_insertion_point(class_scope:google.cloud.iot.v1.DeviceConfig) private static final com.google.cloud.iot.v1.DeviceConfig DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.iot.v1.DeviceConfig(); } @@ -1157,16 +1283,16 @@ public static com.google.cloud.iot.v1.DeviceConfig getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public DeviceConfig parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new DeviceConfig(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DeviceConfig parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new DeviceConfig(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1181,6 +1307,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.iot.v1.DeviceConfig getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1/proto-google-cloud-iot-v1/src/main/java/com/google/cloud/iot/v1/DeviceConfigOrBuilder.java b/proto-google-cloud-iot-v1/src/main/java/com/google/cloud/iot/v1/DeviceConfigOrBuilder.java similarity index 85% rename from owl-bot-staging/v1/proto-google-cloud-iot-v1/src/main/java/com/google/cloud/iot/v1/DeviceConfigOrBuilder.java rename to proto-google-cloud-iot-v1/src/main/java/com/google/cloud/iot/v1/DeviceConfigOrBuilder.java index 489097f3..762a4f2d 100644 --- a/owl-bot-staging/v1/proto-google-cloud-iot-v1/src/main/java/com/google/cloud/iot/v1/DeviceConfigOrBuilder.java +++ b/proto-google-cloud-iot-v1/src/main/java/com/google/cloud/iot/v1/DeviceConfigOrBuilder.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/iot/v1/resources.proto package com.google.cloud.iot.v1; -public interface DeviceConfigOrBuilder extends +public interface DeviceConfigOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.iot.v1.DeviceConfig) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * [Output only] The version of this update. The version number is assigned by
    * the server, and is always greater than 0 after device creation. The
@@ -16,31 +34,40 @@ public interface DeviceConfigOrBuilder extends
    * 
* * int64 version = 1; + * * @return The version. */ long getVersion(); /** + * + * *
    * [Output only] The time at which this configuration version was updated in
    * Cloud IoT Core. This timestamp is set by the server.
    * 
* * .google.protobuf.Timestamp cloud_update_time = 2; + * * @return Whether the cloudUpdateTime field is set. */ boolean hasCloudUpdateTime(); /** + * + * *
    * [Output only] The time at which this configuration version was updated in
    * Cloud IoT Core. This timestamp is set by the server.
    * 
* * .google.protobuf.Timestamp cloud_update_time = 2; + * * @return The cloudUpdateTime. */ com.google.protobuf.Timestamp getCloudUpdateTime(); /** + * + * *
    * [Output only] The time at which this configuration version was updated in
    * Cloud IoT Core. This timestamp is set by the server.
@@ -51,6 +78,8 @@ public interface DeviceConfigOrBuilder extends
   com.google.protobuf.TimestampOrBuilder getCloudUpdateTimeOrBuilder();
 
   /**
+   *
+   *
    * 
    * [Output only] The time at which Cloud IoT Core received the
    * acknowledgment from the device, indicating that the device has received
@@ -64,10 +93,13 @@ public interface DeviceConfigOrBuilder extends
    * 
* * .google.protobuf.Timestamp device_ack_time = 3; + * * @return Whether the deviceAckTime field is set. */ boolean hasDeviceAckTime(); /** + * + * *
    * [Output only] The time at which Cloud IoT Core received the
    * acknowledgment from the device, indicating that the device has received
@@ -81,10 +113,13 @@ public interface DeviceConfigOrBuilder extends
    * 
* * .google.protobuf.Timestamp device_ack_time = 3; + * * @return The deviceAckTime. */ com.google.protobuf.Timestamp getDeviceAckTime(); /** + * + * *
    * [Output only] The time at which Cloud IoT Core received the
    * acknowledgment from the device, indicating that the device has received
@@ -102,11 +137,14 @@ public interface DeviceConfigOrBuilder extends
   com.google.protobuf.TimestampOrBuilder getDeviceAckTimeOrBuilder();
 
   /**
+   *
+   *
    * 
    * The device configuration data.
    * 
* * bytes binary_data = 4; + * * @return The binaryData. */ com.google.protobuf.ByteString getBinaryData(); diff --git a/owl-bot-staging/v1/proto-google-cloud-iot-v1/src/main/java/com/google/cloud/iot/v1/DeviceCredential.java b/proto-google-cloud-iot-v1/src/main/java/com/google/cloud/iot/v1/DeviceCredential.java similarity index 77% rename from owl-bot-staging/v1/proto-google-cloud-iot-v1/src/main/java/com/google/cloud/iot/v1/DeviceCredential.java rename to proto-google-cloud-iot-v1/src/main/java/com/google/cloud/iot/v1/DeviceCredential.java index d1f8233e..13fac301 100644 --- a/owl-bot-staging/v1/proto-google-cloud-iot-v1/src/main/java/com/google/cloud/iot/v1/DeviceCredential.java +++ b/proto-google-cloud-iot-v1/src/main/java/com/google/cloud/iot/v1/DeviceCredential.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/iot/v1/resources.proto package com.google.cloud.iot.v1; /** + * + * *
  * A server-stored device credential used for authentication.
  * 
* * Protobuf type {@code google.cloud.iot.v1.DeviceCredential} */ -public final class DeviceCredential extends - com.google.protobuf.GeneratedMessageV3 implements +public final class DeviceCredential extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.iot.v1.DeviceCredential) DeviceCredentialOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use DeviceCredential.newBuilder() to construct. private DeviceCredential(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private DeviceCredential() { - } + + private DeviceCredential() {} @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new DeviceCredential(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private DeviceCredential( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -52,40 +68,45 @@ private DeviceCredential( case 0: done = true; break; - case 18: { - com.google.cloud.iot.v1.PublicKeyCredential.Builder subBuilder = null; - if (credentialCase_ == 2) { - subBuilder = ((com.google.cloud.iot.v1.PublicKeyCredential) credential_).toBuilder(); - } - credential_ = - input.readMessage(com.google.cloud.iot.v1.PublicKeyCredential.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom((com.google.cloud.iot.v1.PublicKeyCredential) credential_); - credential_ = subBuilder.buildPartial(); - } - credentialCase_ = 2; - break; - } - case 50: { - com.google.protobuf.Timestamp.Builder subBuilder = null; - if (expirationTime_ != null) { - subBuilder = expirationTime_.toBuilder(); - } - expirationTime_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(expirationTime_); - expirationTime_ = subBuilder.buildPartial(); + case 18: + { + com.google.cloud.iot.v1.PublicKeyCredential.Builder subBuilder = null; + if (credentialCase_ == 2) { + subBuilder = + ((com.google.cloud.iot.v1.PublicKeyCredential) credential_).toBuilder(); + } + credential_ = + input.readMessage( + com.google.cloud.iot.v1.PublicKeyCredential.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom((com.google.cloud.iot.v1.PublicKeyCredential) credential_); + credential_ = subBuilder.buildPartial(); + } + credentialCase_ = 2; + break; } + case 50: + { + com.google.protobuf.Timestamp.Builder subBuilder = null; + if (expirationTime_ != null) { + subBuilder = expirationTime_.toBuilder(); + } + expirationTime_ = + input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(expirationTime_); + expirationTime_ = 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,34 +114,39 @@ private DeviceCredential( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.iot.v1.ResourcesProto.internal_static_google_cloud_iot_v1_DeviceCredential_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.iot.v1.ResourcesProto + .internal_static_google_cloud_iot_v1_DeviceCredential_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.iot.v1.ResourcesProto.internal_static_google_cloud_iot_v1_DeviceCredential_fieldAccessorTable + return com.google.cloud.iot.v1.ResourcesProto + .internal_static_google_cloud_iot_v1_DeviceCredential_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.iot.v1.DeviceCredential.class, com.google.cloud.iot.v1.DeviceCredential.Builder.class); + com.google.cloud.iot.v1.DeviceCredential.class, + com.google.cloud.iot.v1.DeviceCredential.Builder.class); } private int credentialCase_ = 0; private java.lang.Object credential_; + public enum CredentialCase - implements com.google.protobuf.Internal.EnumLite, + implements + com.google.protobuf.Internal.EnumLite, com.google.protobuf.AbstractMessage.InternalOneOfEnum { PUBLIC_KEY(2), CREDENTIAL_NOT_SET(0); private final int value; + private CredentialCase(int value) { this.value = value; } @@ -136,24 +162,28 @@ public static CredentialCase valueOf(int value) { public static CredentialCase forNumber(int value) { switch (value) { - case 2: return PUBLIC_KEY; - case 0: return CREDENTIAL_NOT_SET; - default: return null; + case 2: + return PUBLIC_KEY; + case 0: + return CREDENTIAL_NOT_SET; + default: + return null; } } + public int getNumber() { return this.value; } }; - public CredentialCase - getCredentialCase() { - return CredentialCase.forNumber( - credentialCase_); + public CredentialCase getCredentialCase() { + return CredentialCase.forNumber(credentialCase_); } public static final int PUBLIC_KEY_FIELD_NUMBER = 2; /** + * + * *
    * A public key used to verify the signature of JSON Web Tokens (JWTs).
    * When adding a new device credential, either via device creation or via
@@ -169,6 +199,7 @@ public int getNumber() {
    * 
* * .google.cloud.iot.v1.PublicKeyCredential public_key = 2; + * * @return Whether the publicKey field is set. */ @java.lang.Override @@ -176,6 +207,8 @@ public boolean hasPublicKey() { return credentialCase_ == 2; } /** + * + * *
    * A public key used to verify the signature of JSON Web Tokens (JWTs).
    * When adding a new device credential, either via device creation or via
@@ -191,16 +224,19 @@ public boolean hasPublicKey() {
    * 
* * .google.cloud.iot.v1.PublicKeyCredential public_key = 2; + * * @return The publicKey. */ @java.lang.Override public com.google.cloud.iot.v1.PublicKeyCredential getPublicKey() { if (credentialCase_ == 2) { - return (com.google.cloud.iot.v1.PublicKeyCredential) credential_; + return (com.google.cloud.iot.v1.PublicKeyCredential) credential_; } return com.google.cloud.iot.v1.PublicKeyCredential.getDefaultInstance(); } /** + * + * *
    * A public key used to verify the signature of JSON Web Tokens (JWTs).
    * When adding a new device credential, either via device creation or via
@@ -220,7 +256,7 @@ public com.google.cloud.iot.v1.PublicKeyCredential getPublicKey() {
   @java.lang.Override
   public com.google.cloud.iot.v1.PublicKeyCredentialOrBuilder getPublicKeyOrBuilder() {
     if (credentialCase_ == 2) {
-       return (com.google.cloud.iot.v1.PublicKeyCredential) credential_;
+      return (com.google.cloud.iot.v1.PublicKeyCredential) credential_;
     }
     return com.google.cloud.iot.v1.PublicKeyCredential.getDefaultInstance();
   }
@@ -228,6 +264,8 @@ public com.google.cloud.iot.v1.PublicKeyCredentialOrBuilder getPublicKeyOrBuilde
   public static final int EXPIRATION_TIME_FIELD_NUMBER = 6;
   private com.google.protobuf.Timestamp expirationTime_;
   /**
+   *
+   *
    * 
    * [Optional] The time at which this credential becomes invalid. This
    * credential will be ignored for new client authentication requests after
@@ -235,6 +273,7 @@ public com.google.cloud.iot.v1.PublicKeyCredentialOrBuilder getPublicKeyOrBuilde
    * 
* * .google.protobuf.Timestamp expiration_time = 6; + * * @return Whether the expirationTime field is set. */ @java.lang.Override @@ -242,6 +281,8 @@ public boolean hasExpirationTime() { return expirationTime_ != null; } /** + * + * *
    * [Optional] The time at which this credential becomes invalid. This
    * credential will be ignored for new client authentication requests after
@@ -249,13 +290,18 @@ public boolean hasExpirationTime() {
    * 
* * .google.protobuf.Timestamp expiration_time = 6; + * * @return The expirationTime. */ @java.lang.Override public com.google.protobuf.Timestamp getExpirationTime() { - return expirationTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : expirationTime_; + return expirationTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : expirationTime_; } /** + * + * *
    * [Optional] The time at which this credential becomes invalid. This
    * credential will be ignored for new client authentication requests after
@@ -270,6 +316,7 @@ public com.google.protobuf.TimestampOrBuilder getExpirationTimeOrBuilder() {
   }
 
   private byte memoizedIsInitialized = -1;
+
   @java.lang.Override
   public final boolean isInitialized() {
     byte isInitialized = memoizedIsInitialized;
@@ -281,8 +328,7 @@ public final boolean isInitialized() {
   }
 
   @java.lang.Override
-  public void writeTo(com.google.protobuf.CodedOutputStream output)
-                      throws java.io.IOException {
+  public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
     if (credentialCase_ == 2) {
       output.writeMessage(2, (com.google.cloud.iot.v1.PublicKeyCredential) credential_);
     }
@@ -299,12 +345,12 @@ public int getSerializedSize() {
 
     size = 0;
     if (credentialCase_ == 2) {
-      size += com.google.protobuf.CodedOutputStream
-        .computeMessageSize(2, (com.google.cloud.iot.v1.PublicKeyCredential) credential_);
+      size +=
+          com.google.protobuf.CodedOutputStream.computeMessageSize(
+              2, (com.google.cloud.iot.v1.PublicKeyCredential) credential_);
     }
     if (expirationTime_ != null) {
-      size += com.google.protobuf.CodedOutputStream
-        .computeMessageSize(6, getExpirationTime());
+      size += com.google.protobuf.CodedOutputStream.computeMessageSize(6, getExpirationTime());
     }
     size += unknownFields.getSerializedSize();
     memoizedSize = size;
@@ -314,7 +360,7 @@ public int getSerializedSize() {
   @java.lang.Override
   public boolean equals(final java.lang.Object obj) {
     if (obj == this) {
-     return true;
+      return true;
     }
     if (!(obj instanceof com.google.cloud.iot.v1.DeviceCredential)) {
       return super.equals(obj);
@@ -323,14 +369,12 @@ public boolean equals(final java.lang.Object obj) {
 
     if (hasExpirationTime() != other.hasExpirationTime()) return false;
     if (hasExpirationTime()) {
-      if (!getExpirationTime()
-          .equals(other.getExpirationTime())) return false;
+      if (!getExpirationTime().equals(other.getExpirationTime())) return false;
     }
     if (!getCredentialCase().equals(other.getCredentialCase())) return false;
     switch (credentialCase_) {
       case 2:
-        if (!getPublicKey()
-            .equals(other.getPublicKey())) return false;
+        if (!getPublicKey().equals(other.getPublicKey())) return false;
         break;
       case 0:
       default:
@@ -363,118 +407,127 @@ public int hashCode() {
     return hash;
   }
 
-  public static com.google.cloud.iot.v1.DeviceCredential parseFrom(
-      java.nio.ByteBuffer data)
+  public static com.google.cloud.iot.v1.DeviceCredential parseFrom(java.nio.ByteBuffer data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
+
   public static com.google.cloud.iot.v1.DeviceCredential parseFrom(
-      java.nio.ByteBuffer data,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
+
   public static com.google.cloud.iot.v1.DeviceCredential parseFrom(
       com.google.protobuf.ByteString data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
+
   public static com.google.cloud.iot.v1.DeviceCredential parseFrom(
       com.google.protobuf.ByteString data,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
+
   public static com.google.cloud.iot.v1.DeviceCredential parseFrom(byte[] data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
+
   public static com.google.cloud.iot.v1.DeviceCredential parseFrom(
-      byte[] data,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
+
   public static com.google.cloud.iot.v1.DeviceCredential 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.iot.v1.DeviceCredential parseFrom(
-      java.io.InputStream input,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
+        PARSER, input, extensionRegistry);
   }
-  public static com.google.cloud.iot.v1.DeviceCredential parseDelimitedFrom(java.io.InputStream input)
-      throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseDelimitedWithIOException(PARSER, input);
+
+  public static com.google.cloud.iot.v1.DeviceCredential parseDelimitedFrom(
+      java.io.InputStream input) throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
   }
+
   public static com.google.cloud.iot.v1.DeviceCredential parseDelimitedFrom(
-      java.io.InputStream input,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
+        PARSER, input, extensionRegistry);
   }
+
   public static com.google.cloud.iot.v1.DeviceCredential parseFrom(
-      com.google.protobuf.CodedInputStream input)
-      throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input);
+      com.google.protobuf.CodedInputStream input) throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
   }
+
   public static com.google.cloud.iot.v1.DeviceCredential parseFrom(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
+        PARSER, input, extensionRegistry);
   }
 
   @java.lang.Override
-  public Builder newBuilderForType() { return newBuilder(); }
+  public Builder newBuilderForType() {
+    return newBuilder();
+  }
+
   public static Builder newBuilder() {
     return DEFAULT_INSTANCE.toBuilder();
   }
+
   public static Builder newBuilder(com.google.cloud.iot.v1.DeviceCredential prototype) {
     return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
   }
+
   @java.lang.Override
   public Builder toBuilder() {
-    return this == DEFAULT_INSTANCE
-        ? new Builder() : new Builder().mergeFrom(this);
+    return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
   }
 
   @java.lang.Override
-  protected 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 server-stored device credential used for authentication.
    * 
* * Protobuf type {@code google.cloud.iot.v1.DeviceCredential} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.iot.v1.DeviceCredential) com.google.cloud.iot.v1.DeviceCredentialOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.iot.v1.ResourcesProto.internal_static_google_cloud_iot_v1_DeviceCredential_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.iot.v1.ResourcesProto + .internal_static_google_cloud_iot_v1_DeviceCredential_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.iot.v1.ResourcesProto.internal_static_google_cloud_iot_v1_DeviceCredential_fieldAccessorTable + return com.google.cloud.iot.v1.ResourcesProto + .internal_static_google_cloud_iot_v1_DeviceCredential_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.iot.v1.DeviceCredential.class, com.google.cloud.iot.v1.DeviceCredential.Builder.class); + com.google.cloud.iot.v1.DeviceCredential.class, + com.google.cloud.iot.v1.DeviceCredential.Builder.class); } // Construct using com.google.cloud.iot.v1.DeviceCredential.newBuilder() @@ -482,16 +535,15 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); 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 +559,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.iot.v1.ResourcesProto.internal_static_google_cloud_iot_v1_DeviceCredential_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.iot.v1.ResourcesProto + .internal_static_google_cloud_iot_v1_DeviceCredential_descriptor; } @java.lang.Override @@ -528,7 +580,8 @@ public com.google.cloud.iot.v1.DeviceCredential build() { @java.lang.Override public com.google.cloud.iot.v1.DeviceCredential buildPartial() { - com.google.cloud.iot.v1.DeviceCredential result = new com.google.cloud.iot.v1.DeviceCredential(this); + com.google.cloud.iot.v1.DeviceCredential result = + new com.google.cloud.iot.v1.DeviceCredential(this); if (credentialCase_ == 2) { if (publicKeyBuilder_ == null) { result.credential_ = credential_; @@ -550,38 +603,39 @@ public com.google.cloud.iot.v1.DeviceCredential buildPartial() { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.iot.v1.DeviceCredential) { - return mergeFrom((com.google.cloud.iot.v1.DeviceCredential)other); + return mergeFrom((com.google.cloud.iot.v1.DeviceCredential) other); } else { super.mergeFrom(other); return this; @@ -594,13 +648,15 @@ public Builder mergeFrom(com.google.cloud.iot.v1.DeviceCredential other) { mergeExpirationTime(other.getExpirationTime()); } switch (other.getCredentialCase()) { - case PUBLIC_KEY: { - mergePublicKey(other.getPublicKey()); - break; - } - case CREDENTIAL_NOT_SET: { - break; - } + case PUBLIC_KEY: + { + mergePublicKey(other.getPublicKey()); + break; + } + case CREDENTIAL_NOT_SET: + { + break; + } } this.mergeUnknownFields(other.unknownFields); onChanged(); @@ -630,12 +686,12 @@ public Builder mergeFrom( } return this; } + private int credentialCase_ = 0; private java.lang.Object credential_; - public CredentialCase - getCredentialCase() { - return CredentialCase.forNumber( - credentialCase_); + + public CredentialCase getCredentialCase() { + return CredentialCase.forNumber(credentialCase_); } public Builder clearCredential() { @@ -645,10 +701,14 @@ public Builder clearCredential() { return this; } - private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.iot.v1.PublicKeyCredential, com.google.cloud.iot.v1.PublicKeyCredential.Builder, com.google.cloud.iot.v1.PublicKeyCredentialOrBuilder> publicKeyBuilder_; + com.google.cloud.iot.v1.PublicKeyCredential, + com.google.cloud.iot.v1.PublicKeyCredential.Builder, + com.google.cloud.iot.v1.PublicKeyCredentialOrBuilder> + publicKeyBuilder_; /** + * + * *
      * A public key used to verify the signature of JSON Web Tokens (JWTs).
      * When adding a new device credential, either via device creation or via
@@ -664,6 +724,7 @@ public Builder clearCredential() {
      * 
* * .google.cloud.iot.v1.PublicKeyCredential public_key = 2; + * * @return Whether the publicKey field is set. */ @java.lang.Override @@ -671,6 +732,8 @@ public boolean hasPublicKey() { return credentialCase_ == 2; } /** + * + * *
      * A public key used to verify the signature of JSON Web Tokens (JWTs).
      * When adding a new device credential, either via device creation or via
@@ -686,6 +749,7 @@ public boolean hasPublicKey() {
      * 
* * .google.cloud.iot.v1.PublicKeyCredential public_key = 2; + * * @return The publicKey. */ @java.lang.Override @@ -703,6 +767,8 @@ public com.google.cloud.iot.v1.PublicKeyCredential getPublicKey() { } } /** + * + * *
      * A public key used to verify the signature of JSON Web Tokens (JWTs).
      * When adding a new device credential, either via device creation or via
@@ -733,6 +799,8 @@ public Builder setPublicKey(com.google.cloud.iot.v1.PublicKeyCredential value) {
       return this;
     }
     /**
+     *
+     *
      * 
      * A public key used to verify the signature of JSON Web Tokens (JWTs).
      * When adding a new device credential, either via device creation or via
@@ -761,6 +829,8 @@ public Builder setPublicKey(
       return this;
     }
     /**
+     *
+     *
      * 
      * A public key used to verify the signature of JSON Web Tokens (JWTs).
      * When adding a new device credential, either via device creation or via
@@ -779,10 +849,13 @@ public Builder setPublicKey(
      */
     public Builder mergePublicKey(com.google.cloud.iot.v1.PublicKeyCredential value) {
       if (publicKeyBuilder_ == null) {
-        if (credentialCase_ == 2 &&
-            credential_ != com.google.cloud.iot.v1.PublicKeyCredential.getDefaultInstance()) {
-          credential_ = com.google.cloud.iot.v1.PublicKeyCredential.newBuilder((com.google.cloud.iot.v1.PublicKeyCredential) credential_)
-              .mergeFrom(value).buildPartial();
+        if (credentialCase_ == 2
+            && credential_ != com.google.cloud.iot.v1.PublicKeyCredential.getDefaultInstance()) {
+          credential_ =
+              com.google.cloud.iot.v1.PublicKeyCredential.newBuilder(
+                      (com.google.cloud.iot.v1.PublicKeyCredential) credential_)
+                  .mergeFrom(value)
+                  .buildPartial();
         } else {
           credential_ = value;
         }
@@ -798,6 +871,8 @@ public Builder mergePublicKey(com.google.cloud.iot.v1.PublicKeyCredential value)
       return this;
     }
     /**
+     *
+     *
      * 
      * A public key used to verify the signature of JSON Web Tokens (JWTs).
      * When adding a new device credential, either via device creation or via
@@ -831,6 +906,8 @@ public Builder clearPublicKey() {
       return this;
     }
     /**
+     *
+     *
      * 
      * A public key used to verify the signature of JSON Web Tokens (JWTs).
      * When adding a new device credential, either via device creation or via
@@ -851,6 +928,8 @@ public com.google.cloud.iot.v1.PublicKeyCredential.Builder getPublicKeyBuilder()
       return getPublicKeyFieldBuilder().getBuilder();
     }
     /**
+     *
+     *
      * 
      * A public key used to verify the signature of JSON Web Tokens (JWTs).
      * When adding a new device credential, either via device creation or via
@@ -879,6 +958,8 @@ public com.google.cloud.iot.v1.PublicKeyCredentialOrBuilder getPublicKeyOrBuilde
       }
     }
     /**
+     *
+     *
      * 
      * A public key used to verify the signature of JSON Web Tokens (JWTs).
      * When adding a new device credential, either via device creation or via
@@ -896,28 +977,39 @@ public com.google.cloud.iot.v1.PublicKeyCredentialOrBuilder getPublicKeyOrBuilde
      * .google.cloud.iot.v1.PublicKeyCredential public_key = 2;
      */
     private com.google.protobuf.SingleFieldBuilderV3<
-        com.google.cloud.iot.v1.PublicKeyCredential, com.google.cloud.iot.v1.PublicKeyCredential.Builder, com.google.cloud.iot.v1.PublicKeyCredentialOrBuilder> 
+            com.google.cloud.iot.v1.PublicKeyCredential,
+            com.google.cloud.iot.v1.PublicKeyCredential.Builder,
+            com.google.cloud.iot.v1.PublicKeyCredentialOrBuilder>
         getPublicKeyFieldBuilder() {
       if (publicKeyBuilder_ == null) {
         if (!(credentialCase_ == 2)) {
           credential_ = com.google.cloud.iot.v1.PublicKeyCredential.getDefaultInstance();
         }
-        publicKeyBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
-            com.google.cloud.iot.v1.PublicKeyCredential, com.google.cloud.iot.v1.PublicKeyCredential.Builder, com.google.cloud.iot.v1.PublicKeyCredentialOrBuilder>(
+        publicKeyBuilder_ =
+            new com.google.protobuf.SingleFieldBuilderV3<
+                com.google.cloud.iot.v1.PublicKeyCredential,
+                com.google.cloud.iot.v1.PublicKeyCredential.Builder,
+                com.google.cloud.iot.v1.PublicKeyCredentialOrBuilder>(
                 (com.google.cloud.iot.v1.PublicKeyCredential) credential_,
                 getParentForChildren(),
                 isClean());
         credential_ = null;
       }
       credentialCase_ = 2;
-      onChanged();;
+      onChanged();
+      ;
       return publicKeyBuilder_;
     }
 
     private com.google.protobuf.Timestamp expirationTime_;
     private com.google.protobuf.SingleFieldBuilderV3<
-        com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> expirationTimeBuilder_;
+            com.google.protobuf.Timestamp,
+            com.google.protobuf.Timestamp.Builder,
+            com.google.protobuf.TimestampOrBuilder>
+        expirationTimeBuilder_;
     /**
+     *
+     *
      * 
      * [Optional] The time at which this credential becomes invalid. This
      * credential will be ignored for new client authentication requests after
@@ -925,12 +1017,15 @@ public com.google.cloud.iot.v1.PublicKeyCredentialOrBuilder getPublicKeyOrBuilde
      * 
* * .google.protobuf.Timestamp expiration_time = 6; + * * @return Whether the expirationTime field is set. */ public boolean hasExpirationTime() { return expirationTimeBuilder_ != null || expirationTime_ != null; } /** + * + * *
      * [Optional] The time at which this credential becomes invalid. This
      * credential will be ignored for new client authentication requests after
@@ -938,16 +1033,21 @@ public boolean hasExpirationTime() {
      * 
* * .google.protobuf.Timestamp expiration_time = 6; + * * @return The expirationTime. */ public com.google.protobuf.Timestamp getExpirationTime() { if (expirationTimeBuilder_ == null) { - return expirationTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : expirationTime_; + return expirationTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : expirationTime_; } else { return expirationTimeBuilder_.getMessage(); } } /** + * + * *
      * [Optional] The time at which this credential becomes invalid. This
      * credential will be ignored for new client authentication requests after
@@ -970,6 +1070,8 @@ public Builder setExpirationTime(com.google.protobuf.Timestamp value) {
       return this;
     }
     /**
+     *
+     *
      * 
      * [Optional] The time at which this credential becomes invalid. This
      * credential will be ignored for new client authentication requests after
@@ -978,8 +1080,7 @@ public Builder setExpirationTime(com.google.protobuf.Timestamp value) {
      *
      * .google.protobuf.Timestamp expiration_time = 6;
      */
-    public Builder setExpirationTime(
-        com.google.protobuf.Timestamp.Builder builderForValue) {
+    public Builder setExpirationTime(com.google.protobuf.Timestamp.Builder builderForValue) {
       if (expirationTimeBuilder_ == null) {
         expirationTime_ = builderForValue.build();
         onChanged();
@@ -990,6 +1091,8 @@ public Builder setExpirationTime(
       return this;
     }
     /**
+     *
+     *
      * 
      * [Optional] The time at which this credential becomes invalid. This
      * credential will be ignored for new client authentication requests after
@@ -1002,7 +1105,9 @@ public Builder mergeExpirationTime(com.google.protobuf.Timestamp value) {
       if (expirationTimeBuilder_ == null) {
         if (expirationTime_ != null) {
           expirationTime_ =
-            com.google.protobuf.Timestamp.newBuilder(expirationTime_).mergeFrom(value).buildPartial();
+              com.google.protobuf.Timestamp.newBuilder(expirationTime_)
+                  .mergeFrom(value)
+                  .buildPartial();
         } else {
           expirationTime_ = value;
         }
@@ -1014,6 +1119,8 @@ public Builder mergeExpirationTime(com.google.protobuf.Timestamp value) {
       return this;
     }
     /**
+     *
+     *
      * 
      * [Optional] The time at which this credential becomes invalid. This
      * credential will be ignored for new client authentication requests after
@@ -1034,6 +1141,8 @@ public Builder clearExpirationTime() {
       return this;
     }
     /**
+     *
+     *
      * 
      * [Optional] The time at which this credential becomes invalid. This
      * credential will be ignored for new client authentication requests after
@@ -1043,11 +1152,13 @@ public Builder clearExpirationTime() {
      * .google.protobuf.Timestamp expiration_time = 6;
      */
     public com.google.protobuf.Timestamp.Builder getExpirationTimeBuilder() {
-      
+
       onChanged();
       return getExpirationTimeFieldBuilder().getBuilder();
     }
     /**
+     *
+     *
      * 
      * [Optional] The time at which this credential becomes invalid. This
      * credential will be ignored for new client authentication requests after
@@ -1060,11 +1171,14 @@ public com.google.protobuf.TimestampOrBuilder getExpirationTimeOrBuilder() {
       if (expirationTimeBuilder_ != null) {
         return expirationTimeBuilder_.getMessageOrBuilder();
       } else {
-        return expirationTime_ == null ?
-            com.google.protobuf.Timestamp.getDefaultInstance() : expirationTime_;
+        return expirationTime_ == null
+            ? com.google.protobuf.Timestamp.getDefaultInstance()
+            : expirationTime_;
       }
     }
     /**
+     *
+     *
      * 
      * [Optional] The time at which this credential becomes invalid. This
      * credential will be ignored for new client authentication requests after
@@ -1074,21 +1188,24 @@ public com.google.protobuf.TimestampOrBuilder getExpirationTimeOrBuilder() {
      * .google.protobuf.Timestamp expiration_time = 6;
      */
     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>
         getExpirationTimeFieldBuilder() {
       if (expirationTimeBuilder_ == null) {
-        expirationTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
-            com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>(
-                getExpirationTime(),
-                getParentForChildren(),
-                isClean());
+        expirationTimeBuilder_ =
+            new com.google.protobuf.SingleFieldBuilderV3<
+                com.google.protobuf.Timestamp,
+                com.google.protobuf.Timestamp.Builder,
+                com.google.protobuf.TimestampOrBuilder>(
+                getExpirationTime(), getParentForChildren(), isClean());
         expirationTime_ = null;
       }
       return expirationTimeBuilder_;
     }
+
     @java.lang.Override
-    public final Builder setUnknownFields(
-        final com.google.protobuf.UnknownFieldSet unknownFields) {
+    public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) {
       return super.setUnknownFields(unknownFields);
     }
 
@@ -1098,12 +1215,12 @@ public final Builder mergeUnknownFields(
       return super.mergeUnknownFields(unknownFields);
     }
 
-
     // @@protoc_insertion_point(builder_scope:google.cloud.iot.v1.DeviceCredential)
   }
 
   // @@protoc_insertion_point(class_scope:google.cloud.iot.v1.DeviceCredential)
   private static final com.google.cloud.iot.v1.DeviceCredential DEFAULT_INSTANCE;
+
   static {
     DEFAULT_INSTANCE = new com.google.cloud.iot.v1.DeviceCredential();
   }
@@ -1112,16 +1229,16 @@ public static com.google.cloud.iot.v1.DeviceCredential getDefaultInstance() {
     return DEFAULT_INSTANCE;
   }
 
-  private static final com.google.protobuf.Parser
-      PARSER = new com.google.protobuf.AbstractParser() {
-    @java.lang.Override
-    public DeviceCredential parsePartialFrom(
-        com.google.protobuf.CodedInputStream input,
-        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
-        throws com.google.protobuf.InvalidProtocolBufferException {
-      return new DeviceCredential(input, extensionRegistry);
-    }
-  };
+  private static final com.google.protobuf.Parser PARSER =
+      new com.google.protobuf.AbstractParser() {
+        @java.lang.Override
+        public DeviceCredential parsePartialFrom(
+            com.google.protobuf.CodedInputStream input,
+            com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+            throws com.google.protobuf.InvalidProtocolBufferException {
+          return new DeviceCredential(input, extensionRegistry);
+        }
+      };
 
   public static com.google.protobuf.Parser parser() {
     return PARSER;
@@ -1136,6 +1253,4 @@ public com.google.protobuf.Parser getParserForType() {
   public com.google.cloud.iot.v1.DeviceCredential getDefaultInstanceForType() {
     return DEFAULT_INSTANCE;
   }
-
 }
-
diff --git a/owl-bot-staging/v1/proto-google-cloud-iot-v1/src/main/java/com/google/cloud/iot/v1/DeviceCredentialOrBuilder.java b/proto-google-cloud-iot-v1/src/main/java/com/google/cloud/iot/v1/DeviceCredentialOrBuilder.java
similarity index 85%
rename from owl-bot-staging/v1/proto-google-cloud-iot-v1/src/main/java/com/google/cloud/iot/v1/DeviceCredentialOrBuilder.java
rename to proto-google-cloud-iot-v1/src/main/java/com/google/cloud/iot/v1/DeviceCredentialOrBuilder.java
index 7d26081a..6f59a8f7 100644
--- a/owl-bot-staging/v1/proto-google-cloud-iot-v1/src/main/java/com/google/cloud/iot/v1/DeviceCredentialOrBuilder.java
+++ b/proto-google-cloud-iot-v1/src/main/java/com/google/cloud/iot/v1/DeviceCredentialOrBuilder.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/iot/v1/resources.proto
 
 package com.google.cloud.iot.v1;
 
-public interface DeviceCredentialOrBuilder extends
+public interface DeviceCredentialOrBuilder
+    extends
     // @@protoc_insertion_point(interface_extends:google.cloud.iot.v1.DeviceCredential)
     com.google.protobuf.MessageOrBuilder {
 
   /**
+   *
+   *
    * 
    * A public key used to verify the signature of JSON Web Tokens (JWTs).
    * When adding a new device credential, either via device creation or via
@@ -23,10 +41,13 @@ public interface DeviceCredentialOrBuilder extends
    * 
* * .google.cloud.iot.v1.PublicKeyCredential public_key = 2; + * * @return Whether the publicKey field is set. */ boolean hasPublicKey(); /** + * + * *
    * A public key used to verify the signature of JSON Web Tokens (JWTs).
    * When adding a new device credential, either via device creation or via
@@ -42,10 +63,13 @@ public interface DeviceCredentialOrBuilder extends
    * 
* * .google.cloud.iot.v1.PublicKeyCredential public_key = 2; + * * @return The publicKey. */ com.google.cloud.iot.v1.PublicKeyCredential getPublicKey(); /** + * + * *
    * A public key used to verify the signature of JSON Web Tokens (JWTs).
    * When adding a new device credential, either via device creation or via
@@ -65,6 +89,8 @@ public interface DeviceCredentialOrBuilder extends
   com.google.cloud.iot.v1.PublicKeyCredentialOrBuilder getPublicKeyOrBuilder();
 
   /**
+   *
+   *
    * 
    * [Optional] The time at which this credential becomes invalid. This
    * credential will be ignored for new client authentication requests after
@@ -72,10 +98,13 @@ public interface DeviceCredentialOrBuilder extends
    * 
* * .google.protobuf.Timestamp expiration_time = 6; + * * @return Whether the expirationTime field is set. */ boolean hasExpirationTime(); /** + * + * *
    * [Optional] The time at which this credential becomes invalid. This
    * credential will be ignored for new client authentication requests after
@@ -83,10 +112,13 @@ public interface DeviceCredentialOrBuilder extends
    * 
* * .google.protobuf.Timestamp expiration_time = 6; + * * @return The expirationTime. */ com.google.protobuf.Timestamp getExpirationTime(); /** + * + * *
    * [Optional] The time at which this credential becomes invalid. This
    * credential will be ignored for new client authentication requests after
diff --git a/proto-google-cloud-iot-v1/src/main/java/com/google/cloud/iot/v1/DeviceManagerProto.java b/proto-google-cloud-iot-v1/src/main/java/com/google/cloud/iot/v1/DeviceManagerProto.java
new file mode 100644
index 00000000..5c7b63b8
--- /dev/null
+++ b/proto-google-cloud-iot-v1/src/main/java/com/google/cloud/iot/v1/DeviceManagerProto.java
@@ -0,0 +1,570 @@
+/*
+ * Copyright 2020 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+// Generated by the protocol buffer compiler.  DO NOT EDIT!
+// source: google/cloud/iot/v1/device_manager.proto
+
+package com.google.cloud.iot.v1;
+
+public final class DeviceManagerProto {
+  private DeviceManagerProto() {}
+
+  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_iot_v1_CreateDeviceRegistryRequest_descriptor;
+  static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_cloud_iot_v1_CreateDeviceRegistryRequest_fieldAccessorTable;
+  static final com.google.protobuf.Descriptors.Descriptor
+      internal_static_google_cloud_iot_v1_GetDeviceRegistryRequest_descriptor;
+  static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_cloud_iot_v1_GetDeviceRegistryRequest_fieldAccessorTable;
+  static final com.google.protobuf.Descriptors.Descriptor
+      internal_static_google_cloud_iot_v1_DeleteDeviceRegistryRequest_descriptor;
+  static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_cloud_iot_v1_DeleteDeviceRegistryRequest_fieldAccessorTable;
+  static final com.google.protobuf.Descriptors.Descriptor
+      internal_static_google_cloud_iot_v1_UpdateDeviceRegistryRequest_descriptor;
+  static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_cloud_iot_v1_UpdateDeviceRegistryRequest_fieldAccessorTable;
+  static final com.google.protobuf.Descriptors.Descriptor
+      internal_static_google_cloud_iot_v1_ListDeviceRegistriesRequest_descriptor;
+  static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_cloud_iot_v1_ListDeviceRegistriesRequest_fieldAccessorTable;
+  static final com.google.protobuf.Descriptors.Descriptor
+      internal_static_google_cloud_iot_v1_ListDeviceRegistriesResponse_descriptor;
+  static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_cloud_iot_v1_ListDeviceRegistriesResponse_fieldAccessorTable;
+  static final com.google.protobuf.Descriptors.Descriptor
+      internal_static_google_cloud_iot_v1_CreateDeviceRequest_descriptor;
+  static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_cloud_iot_v1_CreateDeviceRequest_fieldAccessorTable;
+  static final com.google.protobuf.Descriptors.Descriptor
+      internal_static_google_cloud_iot_v1_GetDeviceRequest_descriptor;
+  static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_cloud_iot_v1_GetDeviceRequest_fieldAccessorTable;
+  static final com.google.protobuf.Descriptors.Descriptor
+      internal_static_google_cloud_iot_v1_UpdateDeviceRequest_descriptor;
+  static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_cloud_iot_v1_UpdateDeviceRequest_fieldAccessorTable;
+  static final com.google.protobuf.Descriptors.Descriptor
+      internal_static_google_cloud_iot_v1_DeleteDeviceRequest_descriptor;
+  static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_cloud_iot_v1_DeleteDeviceRequest_fieldAccessorTable;
+  static final com.google.protobuf.Descriptors.Descriptor
+      internal_static_google_cloud_iot_v1_ListDevicesRequest_descriptor;
+  static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_cloud_iot_v1_ListDevicesRequest_fieldAccessorTable;
+  static final com.google.protobuf.Descriptors.Descriptor
+      internal_static_google_cloud_iot_v1_GatewayListOptions_descriptor;
+  static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_cloud_iot_v1_GatewayListOptions_fieldAccessorTable;
+  static final com.google.protobuf.Descriptors.Descriptor
+      internal_static_google_cloud_iot_v1_ListDevicesResponse_descriptor;
+  static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_cloud_iot_v1_ListDevicesResponse_fieldAccessorTable;
+  static final com.google.protobuf.Descriptors.Descriptor
+      internal_static_google_cloud_iot_v1_ModifyCloudToDeviceConfigRequest_descriptor;
+  static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_cloud_iot_v1_ModifyCloudToDeviceConfigRequest_fieldAccessorTable;
+  static final com.google.protobuf.Descriptors.Descriptor
+      internal_static_google_cloud_iot_v1_ListDeviceConfigVersionsRequest_descriptor;
+  static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_cloud_iot_v1_ListDeviceConfigVersionsRequest_fieldAccessorTable;
+  static final com.google.protobuf.Descriptors.Descriptor
+      internal_static_google_cloud_iot_v1_ListDeviceConfigVersionsResponse_descriptor;
+  static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_cloud_iot_v1_ListDeviceConfigVersionsResponse_fieldAccessorTable;
+  static final com.google.protobuf.Descriptors.Descriptor
+      internal_static_google_cloud_iot_v1_ListDeviceStatesRequest_descriptor;
+  static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_cloud_iot_v1_ListDeviceStatesRequest_fieldAccessorTable;
+  static final com.google.protobuf.Descriptors.Descriptor
+      internal_static_google_cloud_iot_v1_ListDeviceStatesResponse_descriptor;
+  static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_cloud_iot_v1_ListDeviceStatesResponse_fieldAccessorTable;
+  static final com.google.protobuf.Descriptors.Descriptor
+      internal_static_google_cloud_iot_v1_SendCommandToDeviceRequest_descriptor;
+  static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_cloud_iot_v1_SendCommandToDeviceRequest_fieldAccessorTable;
+  static final com.google.protobuf.Descriptors.Descriptor
+      internal_static_google_cloud_iot_v1_SendCommandToDeviceResponse_descriptor;
+  static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_cloud_iot_v1_SendCommandToDeviceResponse_fieldAccessorTable;
+  static final com.google.protobuf.Descriptors.Descriptor
+      internal_static_google_cloud_iot_v1_BindDeviceToGatewayRequest_descriptor;
+  static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_cloud_iot_v1_BindDeviceToGatewayRequest_fieldAccessorTable;
+  static final com.google.protobuf.Descriptors.Descriptor
+      internal_static_google_cloud_iot_v1_BindDeviceToGatewayResponse_descriptor;
+  static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_cloud_iot_v1_BindDeviceToGatewayResponse_fieldAccessorTable;
+  static final com.google.protobuf.Descriptors.Descriptor
+      internal_static_google_cloud_iot_v1_UnbindDeviceFromGatewayRequest_descriptor;
+  static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_cloud_iot_v1_UnbindDeviceFromGatewayRequest_fieldAccessorTable;
+  static final com.google.protobuf.Descriptors.Descriptor
+      internal_static_google_cloud_iot_v1_UnbindDeviceFromGatewayResponse_descriptor;
+  static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_cloud_iot_v1_UnbindDeviceFromGatewayResponse_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/iot/v1/device_manager.pro"
+          + "to\022\023google.cloud.iot.v1\032\034google/api/anno"
+          + "tations.proto\032\027google/api/client.proto\032\037"
+          + "google/api/field_behavior.proto\032\031google/"
+          + "api/resource.proto\032#google/cloud/iot/v1/"
+          + "resources.proto\032\036google/iam/v1/iam_polic"
+          + "y.proto\032\032google/iam/v1/policy.proto\032\033goo"
+          + "gle/protobuf/empty.proto\032 google/protobu"
+          + "f/field_mask.proto\032\027google/rpc/status.pr"
+          + "oto\"\233\001\n\033CreateDeviceRegistryRequest\0229\n\006p"
+          + "arent\030\001 \001(\tB)\340A\002\372A#\n!locations.googleapi"
+          + "s.com/Location\022A\n\017device_registry\030\002 \001(\0132"
+          + "#.google.cloud.iot.v1.DeviceRegistryB\003\340A"
+          + "\002\"R\n\030GetDeviceRegistryRequest\0226\n\004name\030\001 "
+          + "\001(\tB(\340A\002\372A\"\n cloudiot.googleapis.com/Reg"
+          + "istry\"U\n\033DeleteDeviceRegistryRequest\0226\n\004"
+          + "name\030\001 \001(\tB(\340A\002\372A\"\n cloudiot.googleapis."
+          + "com/Registry\"\226\001\n\033UpdateDeviceRegistryReq"
+          + "uest\022A\n\017device_registry\030\001 \001(\0132#.google.c"
+          + "loud.iot.v1.DeviceRegistryB\003\340A\002\0224\n\013updat"
+          + "e_mask\030\002 \001(\0132\032.google.protobuf.FieldMask"
+          + "B\003\340A\002\"\177\n\033ListDeviceRegistriesRequest\0229\n\006"
+          + "parent\030\001 \001(\tB)\340A\002\372A#\n!locations.googleap"
+          + "is.com/Location\022\021\n\tpage_size\030\002 \001(\005\022\022\n\npa"
+          + "ge_token\030\003 \001(\t\"w\n\034ListDeviceRegistriesRe"
+          + "sponse\022>\n\021device_registries\030\001 \003(\0132#.goog"
+          + "le.cloud.iot.v1.DeviceRegistry\022\027\n\017next_p"
+          + "age_token\030\002 \001(\t\"\201\001\n\023CreateDeviceRequest\022"
+          + "8\n\006parent\030\001 \001(\tB(\340A\002\372A\"\n cloudiot.google"
+          + "apis.com/Registry\0220\n\006device\030\002 \001(\0132\033.goog"
+          + "le.cloud.iot.v1.DeviceB\003\340A\002\"x\n\020GetDevice"
+          + "Request\0224\n\004name\030\001 \001(\tB&\340A\002\372A \n\036cloudiot."
+          + "googleapis.com/Device\022.\n\nfield_mask\030\002 \001("
+          + "\0132\032.google.protobuf.FieldMask\"}\n\023UpdateD"
+          + "eviceRequest\0220\n\006device\030\002 \001(\0132\033.google.cl"
+          + "oud.iot.v1.DeviceB\003\340A\002\0224\n\013update_mask\030\003 "
+          + "\001(\0132\032.google.protobuf.FieldMaskB\003\340A\002\"K\n\023"
+          + "DeleteDeviceRequest\0224\n\004name\030\001 \001(\tB&\340A\002\372A"
+          + " \n\036cloudiot.googleapis.com/Device\"\230\002\n\022Li"
+          + "stDevicesRequest\0228\n\006parent\030\001 \001(\tB(\340A\002\372A\""
+          + "\n cloudiot.googleapis.com/Registry\022\026\n\016de"
+          + "vice_num_ids\030\002 \003(\004\022\022\n\ndevice_ids\030\003 \003(\t\022."
+          + "\n\nfield_mask\030\004 \001(\0132\032.google.protobuf.Fie"
+          + "ldMask\022E\n\024gateway_list_options\030\006 \001(\0132\'.g"
+          + "oogle.cloud.iot.v1.GatewayListOptions\022\021\n"
+          + "\tpage_size\030d \001(\005\022\022\n\npage_token\030e \001(\t\"\235\001\n"
+          + "\022GatewayListOptions\0228\n\014gateway_type\030\001 \001("
+          + "\0162 .google.cloud.iot.v1.GatewayTypeH\000\022!\n"
+          + "\027associations_gateway_id\030\002 \001(\tH\000\022 \n\026asso"
+          + "ciations_device_id\030\003 \001(\tH\000B\010\n\006filter\"\\\n\023"
+          + "ListDevicesResponse\022,\n\007devices\030\001 \003(\0132\033.g"
+          + "oogle.cloud.iot.v1.Device\022\027\n\017next_page_t"
+          + "oken\030\002 \001(\t\"\215\001\n ModifyCloudToDeviceConfig"
+          + "Request\0224\n\004name\030\001 \001(\tB&\340A\002\372A \n\036cloudiot."
+          + "googleapis.com/Device\022\031\n\021version_to_upda"
+          + "te\030\002 \001(\003\022\030\n\013binary_data\030\003 \001(\014B\003\340A\002\"m\n\037Li"
+          + "stDeviceConfigVersionsRequest\0224\n\004name\030\001 "
+          + "\001(\tB&\340A\002\372A \n\036cloudiot.googleapis.com/Dev"
+          + "ice\022\024\n\014num_versions\030\002 \001(\005\"]\n ListDeviceC"
+          + "onfigVersionsResponse\0229\n\016device_configs\030"
+          + "\001 \003(\0132!.google.cloud.iot.v1.DeviceConfig"
+          + "\"c\n\027ListDeviceStatesRequest\0224\n\004name\030\001 \001("
+          + "\tB&\340A\002\372A \n\036cloudiot.googleapis.com/Devic"
+          + "e\022\022\n\nnum_states\030\002 \001(\005\"S\n\030ListDeviceState"
+          + "sResponse\0227\n\rdevice_states\030\001 \003(\0132 .googl"
+          + "e.cloud.iot.v1.DeviceState\"\177\n\032SendComman"
+          + "dToDeviceRequest\0224\n\004name\030\001 \001(\tB&\340A\002\372A \n\036"
+          + "cloudiot.googleapis.com/Device\022\030\n\013binary"
+          + "_data\030\002 \001(\014B\003\340A\002\022\021\n\tsubfolder\030\003 \001(\t\"\035\n\033S"
+          + "endCommandToDeviceResponse\"\207\001\n\032BindDevic"
+          + "eToGatewayRequest\0228\n\006parent\030\001 \001(\tB(\340A\002\372A"
+          + "\"\n cloudiot.googleapis.com/Registry\022\027\n\ng"
+          + "ateway_id\030\002 \001(\tB\003\340A\002\022\026\n\tdevice_id\030\003 \001(\tB"
+          + "\003\340A\002\"\035\n\033BindDeviceToGatewayResponse\"\213\001\n\036"
+          + "UnbindDeviceFromGatewayRequest\0228\n\006parent"
+          + "\030\001 \001(\tB(\340A\002\372A\"\n cloudiot.googleapis.com/"
+          + "Registry\022\027\n\ngateway_id\030\002 \001(\tB\003\340A\002\022\026\n\tdev"
+          + "ice_id\030\003 \001(\tB\003\340A\002\"!\n\037UnbindDeviceFromGat"
+          + "ewayResponse2\246&\n\rDeviceManager\022\317\001\n\024Creat"
+          + "eDeviceRegistry\0220.google.cloud.iot.v1.Cr"
+          + "eateDeviceRegistryRequest\032#.google.cloud"
+          + ".iot.v1.DeviceRegistry\"`\202\323\344\223\002A\"./v1/{par"
+          + "ent=projects/*/locations/*}/registries:\017"
+          + "device_registry\332A\026parent,device_registry"
+          + "\022\246\001\n\021GetDeviceRegistry\022-.google.cloud.io"
+          + "t.v1.GetDeviceRegistryRequest\032#.google.c"
+          + "loud.iot.v1.DeviceRegistry\"=\202\323\344\223\0020\022./v1/"
+          + "{name=projects/*/locations/*/registries/"
+          + "*}\332A\004name\022\344\001\n\024UpdateDeviceRegistry\0220.goo"
+          + "gle.cloud.iot.v1.UpdateDeviceRegistryReq"
+          + "uest\032#.google.cloud.iot.v1.DeviceRegistr"
+          + "y\"u\202\323\344\223\002Q2>/v1/{device_registry.name=pro"
+          + "jects/*/locations/*/registries/*}:\017devic"
+          + "e_registry\332A\033device_registry,update_mask"
+          + "\022\237\001\n\024DeleteDeviceRegistry\0220.google.cloud"
+          + ".iot.v1.DeleteDeviceRegistryRequest\032\026.go"
+          + "ogle.protobuf.Empty\"=\202\323\344\223\0020*./v1/{name=p"
+          + "rojects/*/locations/*/registries/*}\332A\004na"
+          + "me\022\274\001\n\024ListDeviceRegistries\0220.google.clo"
+          + "ud.iot.v1.ListDeviceRegistriesRequest\0321."
+          + "google.cloud.iot.v1.ListDeviceRegistries"
+          + "Response\"?\202\323\344\223\0020\022./v1/{parent=projects/*"
+          + "/locations/*}/registries\332A\006parent\022\257\001\n\014Cr"
+          + "eateDevice\022(.google.cloud.iot.v1.CreateD"
+          + "eviceRequest\032\033.google.cloud.iot.v1.Devic"
+          + "e\"X\202\323\344\223\002B\"8/v1/{parent=projects/*/locati"
+          + "ons/*/registries/*}/devices:\006device\332A\rpa"
+          + "rent,device\022\336\001\n\tGetDevice\022%.google.cloud"
+          + ".iot.v1.GetDeviceRequest\032\033.google.cloud."
+          + "iot.v1.Device\"\214\001\202\323\344\223\002\177\0228/v1/{name=projec"
+          + "ts/*/locations/*/registries/*/devices/*}"
+          + "ZC\022A/v1/{name=projects/*/locations/*/reg"
+          + "istries/*/groups/*/devices/*}\332A\004name\022\221\002\n"
+          + "\014UpdateDevice\022(.google.cloud.iot.v1.Upda"
+          + "teDeviceRequest\032\033.google.cloud.iot.v1.De"
+          + "vice\"\271\001\202\323\344\223\002\235\0012?/v1/{device.name=project"
+          + "s/*/locations/*/registries/*/devices/*}:"
+          + "\006deviceZR2H/v1/{device.name=projects/*/l"
+          + "ocations/*/registries/*/groups/*/devices"
+          + "/*}:\006device\332A\022device,update_mask\022\231\001\n\014Del"
+          + "eteDevice\022(.google.cloud.iot.v1.DeleteDe"
+          + "viceRequest\032\026.google.protobuf.Empty\"G\202\323\344"
+          + "\223\002:*8/v1/{name=projects/*/locations/*/re"
+          + "gistries/*/devices/*}\332A\004name\022\361\001\n\013ListDev"
+          + "ices\022\'.google.cloud.iot.v1.ListDevicesRe"
+          + "quest\032(.google.cloud.iot.v1.ListDevicesR"
+          + "esponse\"\216\001\202\323\344\223\002\177\0228/v1/{parent=projects/*"
+          + "/locations/*/registries/*}/devicesZC\022A/v"
+          + "1/{parent=projects/*/locations/*/registr"
+          + "ies/*/groups/*}/devices\332A\006parent\022\313\002\n\031Mod"
+          + "ifyCloudToDeviceConfig\0225.google.cloud.io"
+          + "t.v1.ModifyCloudToDeviceConfigRequest\032!."
+          + "google.cloud.iot.v1.DeviceConfig\"\323\001\202\323\344\223\002"
+          + "\271\001\"R/v1/{name=projects/*/locations/*/reg"
+          + "istries/*/devices/*}:modifyCloudToDevice"
+          + "Config:\001*Z`\"[/v1/{name=projects/*/locati"
+          + "ons/*/registries/*/groups/*/devices/*}:m"
+          + "odifyCloudToDeviceConfig:\001*\332A\020name,binar"
+          + "y_data\022\265\002\n\030ListDeviceConfigVersions\0224.go"
+          + "ogle.cloud.iot.v1.ListDeviceConfigVersio"
+          + "nsRequest\0325.google.cloud.iot.v1.ListDevi"
+          + "ceConfigVersionsResponse\"\253\001\202\323\344\223\002\235\001\022G/v1/"
+          + "{name=projects/*/locations/*/registries/"
+          + "*/devices/*}/configVersionsZR\022P/v1/{name"
+          + "=projects/*/locations/*/registries/*/gro"
+          + "ups/*/devices/*}/configVersions\332A\004name\022\215"
+          + "\002\n\020ListDeviceStates\022,.google.cloud.iot.v"
+          + "1.ListDeviceStatesRequest\032-.google.cloud"
+          + ".iot.v1.ListDeviceStatesResponse\"\233\001\202\323\344\223\002"
+          + "\215\001\022?/v1/{name=projects/*/locations/*/reg"
+          + "istries/*/devices/*}/statesZJ\022H/v1/{name"
+          + "=projects/*/locations/*/registries/*/gro"
+          + "ups/*/devices/*}/states\332A\004name\022\370\001\n\014SetIa"
+          + "mPolicy\022\".google.iam.v1.SetIamPolicyRequ"
+          + "est\032\025.google.iam.v1.Policy\"\254\001\202\323\344\223\002\223\001\"?/v"
+          + "1/{resource=projects/*/locations/*/regis"
+          + "tries/*}:setIamPolicy:\001*ZM\"H/v1/{resourc"
+          + "e=projects/*/locations/*/registries/*/gr"
+          + "oups/*}:setIamPolicy:\001*\332A\017resource,polic"
+          + "y\022\361\001\n\014GetIamPolicy\022\".google.iam.v1.GetIa"
+          + "mPolicyRequest\032\025.google.iam.v1.Policy\"\245\001"
+          + "\202\323\344\223\002\223\001\"?/v1/{resource=projects/*/locati"
+          + "ons/*/registries/*}:getIamPolicy:\001*ZM\"H/"
+          + "v1/{resource=projects/*/locations/*/regi"
+          + "stries/*/groups/*}:getIamPolicy:\001*\332A\010res"
+          + "ource\022\251\002\n\022TestIamPermissions\022(.google.ia"
+          + "m.v1.TestIamPermissionsRequest\032).google."
+          + "iam.v1.TestIamPermissionsResponse\"\275\001\202\323\344\223"
+          + "\002\237\001\"E/v1/{resource=projects/*/locations/"
+          + "*/registries/*}:testIamPermissions:\001*ZS\""
+          + "N/v1/{resource=projects/*/locations/*/re"
+          + "gistries/*/groups/*}:testIamPermissions:"
+          + "\001*\332A\024resource,permissions\022\337\002\n\023SendComman"
+          + "dToDevice\022/.google.cloud.iot.v1.SendComm"
+          + "andToDeviceRequest\0320.google.cloud.iot.v1"
+          + ".SendCommandToDeviceResponse\"\344\001\202\323\344\223\002\255\001\"L"
+          + "/v1/{name=projects/*/locations/*/registr"
+          + "ies/*/devices/*}:sendCommandToDevice:\001*Z"
+          + "Z\"U/v1/{name=projects/*/locations/*/regi"
+          + "stries/*/groups/*/devices/*}:sendCommand"
+          + "ToDevice:\001*\332A\020name,binary_data\332A\032name,bi"
+          + "nary_data,subfolder\022\275\002\n\023BindDeviceToGate"
+          + "way\022/.google.cloud.iot.v1.BindDeviceToGa"
+          + "tewayRequest\0320.google.cloud.iot.v1.BindD"
+          + "eviceToGatewayResponse\"\302\001\202\323\344\223\002\235\001\"D/v1/{p"
+          + "arent=projects/*/locations/*/registries/"
+          + "*}:bindDeviceToGateway:\001*ZR\"M/v1/{parent"
+          + "=projects/*/locations/*/registries/*/gro"
+          + "ups/*}:bindDeviceToGateway:\001*\332A\033parent,g"
+          + "ateway_id,device_id\022\321\002\n\027UnbindDeviceFrom"
+          + "Gateway\0223.google.cloud.iot.v1.UnbindDevi"
+          + "ceFromGatewayRequest\0324.google.cloud.iot."
+          + "v1.UnbindDeviceFromGatewayResponse\"\312\001\202\323\344"
+          + "\223\002\245\001\"H/v1/{parent=projects/*/locations/*"
+          + "/registries/*}:unbindDeviceFromGateway:\001"
+          + "*ZV\"Q/v1/{parent=projects/*/locations/*/"
+          + "registries/*/groups/*}:unbindDeviceFromG"
+          + "ateway:\001*\332A\033parent,gateway_id,device_id\032"
+          + "t\312A\027cloudiot.googleapis.com\322AWhttps://ww"
+          + "w.googleapis.com/auth/cloud-platform,htt"
+          + "ps://www.googleapis.com/auth/cloudiotBj\n"
+          + "\027com.google.cloud.iot.v1B\022DeviceManagerP"
+          + "rotoP\001Z6google.golang.org/genproto/googl"
+          + "eapis/cloud/iot/v1;iot\370\001\001b\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.cloud.iot.v1.ResourcesProto.getDescriptor(),
+              com.google.iam.v1.IamPolicyProto.getDescriptor(),
+              com.google.iam.v1.PolicyProto.getDescriptor(),
+              com.google.protobuf.EmptyProto.getDescriptor(),
+              com.google.protobuf.FieldMaskProto.getDescriptor(),
+              com.google.rpc.StatusProto.getDescriptor(),
+            });
+    internal_static_google_cloud_iot_v1_CreateDeviceRegistryRequest_descriptor =
+        getDescriptor().getMessageTypes().get(0);
+    internal_static_google_cloud_iot_v1_CreateDeviceRegistryRequest_fieldAccessorTable =
+        new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+            internal_static_google_cloud_iot_v1_CreateDeviceRegistryRequest_descriptor,
+            new java.lang.String[] {
+              "Parent", "DeviceRegistry",
+            });
+    internal_static_google_cloud_iot_v1_GetDeviceRegistryRequest_descriptor =
+        getDescriptor().getMessageTypes().get(1);
+    internal_static_google_cloud_iot_v1_GetDeviceRegistryRequest_fieldAccessorTable =
+        new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+            internal_static_google_cloud_iot_v1_GetDeviceRegistryRequest_descriptor,
+            new java.lang.String[] {
+              "Name",
+            });
+    internal_static_google_cloud_iot_v1_DeleteDeviceRegistryRequest_descriptor =
+        getDescriptor().getMessageTypes().get(2);
+    internal_static_google_cloud_iot_v1_DeleteDeviceRegistryRequest_fieldAccessorTable =
+        new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+            internal_static_google_cloud_iot_v1_DeleteDeviceRegistryRequest_descriptor,
+            new java.lang.String[] {
+              "Name",
+            });
+    internal_static_google_cloud_iot_v1_UpdateDeviceRegistryRequest_descriptor =
+        getDescriptor().getMessageTypes().get(3);
+    internal_static_google_cloud_iot_v1_UpdateDeviceRegistryRequest_fieldAccessorTable =
+        new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+            internal_static_google_cloud_iot_v1_UpdateDeviceRegistryRequest_descriptor,
+            new java.lang.String[] {
+              "DeviceRegistry", "UpdateMask",
+            });
+    internal_static_google_cloud_iot_v1_ListDeviceRegistriesRequest_descriptor =
+        getDescriptor().getMessageTypes().get(4);
+    internal_static_google_cloud_iot_v1_ListDeviceRegistriesRequest_fieldAccessorTable =
+        new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+            internal_static_google_cloud_iot_v1_ListDeviceRegistriesRequest_descriptor,
+            new java.lang.String[] {
+              "Parent", "PageSize", "PageToken",
+            });
+    internal_static_google_cloud_iot_v1_ListDeviceRegistriesResponse_descriptor =
+        getDescriptor().getMessageTypes().get(5);
+    internal_static_google_cloud_iot_v1_ListDeviceRegistriesResponse_fieldAccessorTable =
+        new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+            internal_static_google_cloud_iot_v1_ListDeviceRegistriesResponse_descriptor,
+            new java.lang.String[] {
+              "DeviceRegistries", "NextPageToken",
+            });
+    internal_static_google_cloud_iot_v1_CreateDeviceRequest_descriptor =
+        getDescriptor().getMessageTypes().get(6);
+    internal_static_google_cloud_iot_v1_CreateDeviceRequest_fieldAccessorTable =
+        new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+            internal_static_google_cloud_iot_v1_CreateDeviceRequest_descriptor,
+            new java.lang.String[] {
+              "Parent", "Device",
+            });
+    internal_static_google_cloud_iot_v1_GetDeviceRequest_descriptor =
+        getDescriptor().getMessageTypes().get(7);
+    internal_static_google_cloud_iot_v1_GetDeviceRequest_fieldAccessorTable =
+        new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+            internal_static_google_cloud_iot_v1_GetDeviceRequest_descriptor,
+            new java.lang.String[] {
+              "Name", "FieldMask",
+            });
+    internal_static_google_cloud_iot_v1_UpdateDeviceRequest_descriptor =
+        getDescriptor().getMessageTypes().get(8);
+    internal_static_google_cloud_iot_v1_UpdateDeviceRequest_fieldAccessorTable =
+        new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+            internal_static_google_cloud_iot_v1_UpdateDeviceRequest_descriptor,
+            new java.lang.String[] {
+              "Device", "UpdateMask",
+            });
+    internal_static_google_cloud_iot_v1_DeleteDeviceRequest_descriptor =
+        getDescriptor().getMessageTypes().get(9);
+    internal_static_google_cloud_iot_v1_DeleteDeviceRequest_fieldAccessorTable =
+        new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+            internal_static_google_cloud_iot_v1_DeleteDeviceRequest_descriptor,
+            new java.lang.String[] {
+              "Name",
+            });
+    internal_static_google_cloud_iot_v1_ListDevicesRequest_descriptor =
+        getDescriptor().getMessageTypes().get(10);
+    internal_static_google_cloud_iot_v1_ListDevicesRequest_fieldAccessorTable =
+        new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+            internal_static_google_cloud_iot_v1_ListDevicesRequest_descriptor,
+            new java.lang.String[] {
+              "Parent",
+              "DeviceNumIds",
+              "DeviceIds",
+              "FieldMask",
+              "GatewayListOptions",
+              "PageSize",
+              "PageToken",
+            });
+    internal_static_google_cloud_iot_v1_GatewayListOptions_descriptor =
+        getDescriptor().getMessageTypes().get(11);
+    internal_static_google_cloud_iot_v1_GatewayListOptions_fieldAccessorTable =
+        new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+            internal_static_google_cloud_iot_v1_GatewayListOptions_descriptor,
+            new java.lang.String[] {
+              "GatewayType", "AssociationsGatewayId", "AssociationsDeviceId", "Filter",
+            });
+    internal_static_google_cloud_iot_v1_ListDevicesResponse_descriptor =
+        getDescriptor().getMessageTypes().get(12);
+    internal_static_google_cloud_iot_v1_ListDevicesResponse_fieldAccessorTable =
+        new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+            internal_static_google_cloud_iot_v1_ListDevicesResponse_descriptor,
+            new java.lang.String[] {
+              "Devices", "NextPageToken",
+            });
+    internal_static_google_cloud_iot_v1_ModifyCloudToDeviceConfigRequest_descriptor =
+        getDescriptor().getMessageTypes().get(13);
+    internal_static_google_cloud_iot_v1_ModifyCloudToDeviceConfigRequest_fieldAccessorTable =
+        new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+            internal_static_google_cloud_iot_v1_ModifyCloudToDeviceConfigRequest_descriptor,
+            new java.lang.String[] {
+              "Name", "VersionToUpdate", "BinaryData",
+            });
+    internal_static_google_cloud_iot_v1_ListDeviceConfigVersionsRequest_descriptor =
+        getDescriptor().getMessageTypes().get(14);
+    internal_static_google_cloud_iot_v1_ListDeviceConfigVersionsRequest_fieldAccessorTable =
+        new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+            internal_static_google_cloud_iot_v1_ListDeviceConfigVersionsRequest_descriptor,
+            new java.lang.String[] {
+              "Name", "NumVersions",
+            });
+    internal_static_google_cloud_iot_v1_ListDeviceConfigVersionsResponse_descriptor =
+        getDescriptor().getMessageTypes().get(15);
+    internal_static_google_cloud_iot_v1_ListDeviceConfigVersionsResponse_fieldAccessorTable =
+        new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+            internal_static_google_cloud_iot_v1_ListDeviceConfigVersionsResponse_descriptor,
+            new java.lang.String[] {
+              "DeviceConfigs",
+            });
+    internal_static_google_cloud_iot_v1_ListDeviceStatesRequest_descriptor =
+        getDescriptor().getMessageTypes().get(16);
+    internal_static_google_cloud_iot_v1_ListDeviceStatesRequest_fieldAccessorTable =
+        new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+            internal_static_google_cloud_iot_v1_ListDeviceStatesRequest_descriptor,
+            new java.lang.String[] {
+              "Name", "NumStates",
+            });
+    internal_static_google_cloud_iot_v1_ListDeviceStatesResponse_descriptor =
+        getDescriptor().getMessageTypes().get(17);
+    internal_static_google_cloud_iot_v1_ListDeviceStatesResponse_fieldAccessorTable =
+        new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+            internal_static_google_cloud_iot_v1_ListDeviceStatesResponse_descriptor,
+            new java.lang.String[] {
+              "DeviceStates",
+            });
+    internal_static_google_cloud_iot_v1_SendCommandToDeviceRequest_descriptor =
+        getDescriptor().getMessageTypes().get(18);
+    internal_static_google_cloud_iot_v1_SendCommandToDeviceRequest_fieldAccessorTable =
+        new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+            internal_static_google_cloud_iot_v1_SendCommandToDeviceRequest_descriptor,
+            new java.lang.String[] {
+              "Name", "BinaryData", "Subfolder",
+            });
+    internal_static_google_cloud_iot_v1_SendCommandToDeviceResponse_descriptor =
+        getDescriptor().getMessageTypes().get(19);
+    internal_static_google_cloud_iot_v1_SendCommandToDeviceResponse_fieldAccessorTable =
+        new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+            internal_static_google_cloud_iot_v1_SendCommandToDeviceResponse_descriptor,
+            new java.lang.String[] {});
+    internal_static_google_cloud_iot_v1_BindDeviceToGatewayRequest_descriptor =
+        getDescriptor().getMessageTypes().get(20);
+    internal_static_google_cloud_iot_v1_BindDeviceToGatewayRequest_fieldAccessorTable =
+        new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+            internal_static_google_cloud_iot_v1_BindDeviceToGatewayRequest_descriptor,
+            new java.lang.String[] {
+              "Parent", "GatewayId", "DeviceId",
+            });
+    internal_static_google_cloud_iot_v1_BindDeviceToGatewayResponse_descriptor =
+        getDescriptor().getMessageTypes().get(21);
+    internal_static_google_cloud_iot_v1_BindDeviceToGatewayResponse_fieldAccessorTable =
+        new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+            internal_static_google_cloud_iot_v1_BindDeviceToGatewayResponse_descriptor,
+            new java.lang.String[] {});
+    internal_static_google_cloud_iot_v1_UnbindDeviceFromGatewayRequest_descriptor =
+        getDescriptor().getMessageTypes().get(22);
+    internal_static_google_cloud_iot_v1_UnbindDeviceFromGatewayRequest_fieldAccessorTable =
+        new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+            internal_static_google_cloud_iot_v1_UnbindDeviceFromGatewayRequest_descriptor,
+            new java.lang.String[] {
+              "Parent", "GatewayId", "DeviceId",
+            });
+    internal_static_google_cloud_iot_v1_UnbindDeviceFromGatewayResponse_descriptor =
+        getDescriptor().getMessageTypes().get(23);
+    internal_static_google_cloud_iot_v1_UnbindDeviceFromGatewayResponse_fieldAccessorTable =
+        new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+            internal_static_google_cloud_iot_v1_UnbindDeviceFromGatewayResponse_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.resourceReference);
+    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.cloud.iot.v1.ResourcesProto.getDescriptor();
+    com.google.iam.v1.IamPolicyProto.getDescriptor();
+    com.google.iam.v1.PolicyProto.getDescriptor();
+    com.google.protobuf.EmptyProto.getDescriptor();
+    com.google.protobuf.FieldMaskProto.getDescriptor();
+    com.google.rpc.StatusProto.getDescriptor();
+  }
+
+  // @@protoc_insertion_point(outer_class_scope)
+}
diff --git a/owl-bot-staging/v1/proto-google-cloud-iot-v1/src/main/java/com/google/cloud/iot/v1/DeviceName.java b/proto-google-cloud-iot-v1/src/main/java/com/google/cloud/iot/v1/DeviceName.java
similarity index 100%
rename from owl-bot-staging/v1/proto-google-cloud-iot-v1/src/main/java/com/google/cloud/iot/v1/DeviceName.java
rename to proto-google-cloud-iot-v1/src/main/java/com/google/cloud/iot/v1/DeviceName.java
diff --git a/owl-bot-staging/v1/proto-google-cloud-iot-v1/src/main/java/com/google/cloud/iot/v1/DeviceOrBuilder.java b/proto-google-cloud-iot-v1/src/main/java/com/google/cloud/iot/v1/DeviceOrBuilder.java
similarity index 91%
rename from owl-bot-staging/v1/proto-google-cloud-iot-v1/src/main/java/com/google/cloud/iot/v1/DeviceOrBuilder.java
rename to proto-google-cloud-iot-v1/src/main/java/com/google/cloud/iot/v1/DeviceOrBuilder.java
index 2d80813c..7596ff3f 100644
--- a/owl-bot-staging/v1/proto-google-cloud-iot-v1/src/main/java/com/google/cloud/iot/v1/DeviceOrBuilder.java
+++ b/proto-google-cloud-iot-v1/src/main/java/com/google/cloud/iot/v1/DeviceOrBuilder.java
@@ -1,35 +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/iot/v1/resources.proto
 
 package com.google.cloud.iot.v1;
 
-public interface DeviceOrBuilder extends
+public interface DeviceOrBuilder
+    extends
     // @@protoc_insertion_point(interface_extends:google.cloud.iot.v1.Device)
     com.google.protobuf.MessageOrBuilder {
 
   /**
+   *
+   *
    * 
    * The user-defined device identifier. The device ID must be unique
    * within a device registry.
    * 
* * string id = 1; + * * @return The id. */ java.lang.String getId(); /** + * + * *
    * The user-defined device identifier. The device ID must be unique
    * within a device registry.
    * 
* * string id = 1; + * * @return The bytes for id. */ - com.google.protobuf.ByteString - getIdBytes(); + com.google.protobuf.ByteString getIdBytes(); /** + * + * *
    * The resource path name. For example,
    * `projects/p1/locations/us-central1/registries/registry0/devices/dev0` or
@@ -39,10 +62,13 @@ public interface DeviceOrBuilder extends
    * 
* * string name = 2; + * * @return The name. */ java.lang.String getName(); /** + * + * *
    * The resource path name. For example,
    * `projects/p1/locations/us-central1/registries/registry0/devices/dev0` or
@@ -52,23 +78,28 @@ public interface DeviceOrBuilder extends
    * 
* * string name = 2; + * * @return The bytes for name. */ - com.google.protobuf.ByteString - getNameBytes(); + com.google.protobuf.ByteString getNameBytes(); /** + * + * *
    * [Output only] A server-defined unique numeric ID for the device. This is a
    * more compact way to identify devices, and it is globally unique.
    * 
* * uint64 num_id = 3; + * * @return The numId. */ long getNumId(); /** + * + * *
    * The credentials used to authenticate this device. To allow credential
    * rotation without interruption, multiple device credentials can be bound to
@@ -80,9 +111,10 @@ public interface DeviceOrBuilder extends
    *
    * repeated .google.cloud.iot.v1.DeviceCredential credentials = 12;
    */
-  java.util.List 
-      getCredentialsList();
+  java.util.List getCredentialsList();
   /**
+   *
+   *
    * 
    * The credentials used to authenticate this device. To allow credential
    * rotation without interruption, multiple device credentials can be bound to
@@ -96,6 +128,8 @@ public interface DeviceOrBuilder extends
    */
   com.google.cloud.iot.v1.DeviceCredential getCredentials(int index);
   /**
+   *
+   *
    * 
    * The credentials used to authenticate this device. To allow credential
    * rotation without interruption, multiple device credentials can be bound to
@@ -109,6 +143,8 @@ public interface DeviceOrBuilder extends
    */
   int getCredentialsCount();
   /**
+   *
+   *
    * 
    * The credentials used to authenticate this device. To allow credential
    * rotation without interruption, multiple device credentials can be bound to
@@ -120,9 +156,11 @@ public interface DeviceOrBuilder extends
    *
    * repeated .google.cloud.iot.v1.DeviceCredential credentials = 12;
    */
-  java.util.List 
+  java.util.List
       getCredentialsOrBuilderList();
   /**
+   *
+   *
    * 
    * The credentials used to authenticate this device. To allow credential
    * rotation without interruption, multiple device credentials can be bound to
@@ -134,10 +172,11 @@ public interface DeviceOrBuilder extends
    *
    * repeated .google.cloud.iot.v1.DeviceCredential credentials = 12;
    */
-  com.google.cloud.iot.v1.DeviceCredentialOrBuilder getCredentialsOrBuilder(
-      int index);
+  com.google.cloud.iot.v1.DeviceCredentialOrBuilder getCredentialsOrBuilder(int index);
 
   /**
+   *
+   *
    * 
    * [Output only] The last time an MQTT `PINGREQ` was received. This field
    * applies only to devices connecting through MQTT. MQTT clients usually only
@@ -147,10 +186,13 @@ com.google.cloud.iot.v1.DeviceCredentialOrBuilder getCredentialsOrBuilder(
    * 
* * .google.protobuf.Timestamp last_heartbeat_time = 7; + * * @return Whether the lastHeartbeatTime field is set. */ boolean hasLastHeartbeatTime(); /** + * + * *
    * [Output only] The last time an MQTT `PINGREQ` was received. This field
    * applies only to devices connecting through MQTT. MQTT clients usually only
@@ -160,10 +202,13 @@ com.google.cloud.iot.v1.DeviceCredentialOrBuilder getCredentialsOrBuilder(
    * 
* * .google.protobuf.Timestamp last_heartbeat_time = 7; + * * @return The lastHeartbeatTime. */ com.google.protobuf.Timestamp getLastHeartbeatTime(); /** + * + * *
    * [Output only] The last time an MQTT `PINGREQ` was received. This field
    * applies only to devices connecting through MQTT. MQTT clients usually only
@@ -177,6 +222,8 @@ com.google.cloud.iot.v1.DeviceCredentialOrBuilder getCredentialsOrBuilder(
   com.google.protobuf.TimestampOrBuilder getLastHeartbeatTimeOrBuilder();
 
   /**
+   *
+   *
    * 
    * [Output only] The last time a telemetry event was received. Timestamps are
    * periodically collected and written to storage; they may be stale by a few
@@ -184,10 +231,13 @@ com.google.cloud.iot.v1.DeviceCredentialOrBuilder getCredentialsOrBuilder(
    * 
* * .google.protobuf.Timestamp last_event_time = 8; + * * @return Whether the lastEventTime field is set. */ boolean hasLastEventTime(); /** + * + * *
    * [Output only] The last time a telemetry event was received. Timestamps are
    * periodically collected and written to storage; they may be stale by a few
@@ -195,10 +245,13 @@ com.google.cloud.iot.v1.DeviceCredentialOrBuilder getCredentialsOrBuilder(
    * 
* * .google.protobuf.Timestamp last_event_time = 8; + * * @return The lastEventTime. */ com.google.protobuf.Timestamp getLastEventTime(); /** + * + * *
    * [Output only] The last time a telemetry event was received. Timestamps are
    * periodically collected and written to storage; they may be stale by a few
@@ -210,6 +263,8 @@ com.google.cloud.iot.v1.DeviceCredentialOrBuilder getCredentialsOrBuilder(
   com.google.protobuf.TimestampOrBuilder getLastEventTimeOrBuilder();
 
   /**
+   *
+   *
    * 
    * [Output only] The last time a state event was received. Timestamps are
    * periodically collected and written to storage; they may be stale by a few
@@ -217,10 +272,13 @@ com.google.cloud.iot.v1.DeviceCredentialOrBuilder getCredentialsOrBuilder(
    * 
* * .google.protobuf.Timestamp last_state_time = 20; + * * @return Whether the lastStateTime field is set. */ boolean hasLastStateTime(); /** + * + * *
    * [Output only] The last time a state event was received. Timestamps are
    * periodically collected and written to storage; they may be stale by a few
@@ -228,10 +286,13 @@ com.google.cloud.iot.v1.DeviceCredentialOrBuilder getCredentialsOrBuilder(
    * 
* * .google.protobuf.Timestamp last_state_time = 20; + * * @return The lastStateTime. */ com.google.protobuf.Timestamp getLastStateTime(); /** + * + * *
    * [Output only] The last time a state event was received. Timestamps are
    * periodically collected and written to storage; they may be stale by a few
@@ -243,6 +304,8 @@ com.google.cloud.iot.v1.DeviceCredentialOrBuilder getCredentialsOrBuilder(
   com.google.protobuf.TimestampOrBuilder getLastStateTimeOrBuilder();
 
   /**
+   *
+   *
    * 
    * [Output only] The last time a cloud-to-device config version acknowledgment
    * was received from the device. This field is only for configurations
@@ -250,10 +313,13 @@ com.google.cloud.iot.v1.DeviceCredentialOrBuilder getCredentialsOrBuilder(
    * 
* * .google.protobuf.Timestamp last_config_ack_time = 14; + * * @return Whether the lastConfigAckTime field is set. */ boolean hasLastConfigAckTime(); /** + * + * *
    * [Output only] The last time a cloud-to-device config version acknowledgment
    * was received from the device. This field is only for configurations
@@ -261,10 +327,13 @@ com.google.cloud.iot.v1.DeviceCredentialOrBuilder getCredentialsOrBuilder(
    * 
* * .google.protobuf.Timestamp last_config_ack_time = 14; + * * @return The lastConfigAckTime. */ com.google.protobuf.Timestamp getLastConfigAckTime(); /** + * + * *
    * [Output only] The last time a cloud-to-device config version acknowledgment
    * was received from the device. This field is only for configurations
@@ -276,26 +345,34 @@ com.google.cloud.iot.v1.DeviceCredentialOrBuilder getCredentialsOrBuilder(
   com.google.protobuf.TimestampOrBuilder getLastConfigAckTimeOrBuilder();
 
   /**
+   *
+   *
    * 
    * [Output only] The last time a cloud-to-device config version was sent to
    * the device.
    * 
* * .google.protobuf.Timestamp last_config_send_time = 18; + * * @return Whether the lastConfigSendTime field is set. */ boolean hasLastConfigSendTime(); /** + * + * *
    * [Output only] The last time a cloud-to-device config version was sent to
    * the device.
    * 
* * .google.protobuf.Timestamp last_config_send_time = 18; + * * @return The lastConfigSendTime. */ com.google.protobuf.Timestamp getLastConfigSendTime(); /** + * + * *
    * [Output only] The last time a cloud-to-device config version was sent to
    * the device.
@@ -306,6 +383,8 @@ com.google.cloud.iot.v1.DeviceCredentialOrBuilder getCredentialsOrBuilder(
   com.google.protobuf.TimestampOrBuilder getLastConfigSendTimeOrBuilder();
 
   /**
+   *
+   *
    * 
    * If a device is blocked, connections or requests from this device will fail.
    * Can be used to temporarily prevent the device from connecting if, for
@@ -313,11 +392,14 @@ com.google.cloud.iot.v1.DeviceCredentialOrBuilder getCredentialsOrBuilder(
    * 
* * bool blocked = 19; + * * @return The blocked. */ boolean getBlocked(); /** + * + * *
    * [Output only] The time the most recent error occurred, such as a failure to
    * publish to Cloud Pub/Sub. This field is the timestamp of
@@ -325,10 +407,13 @@ com.google.cloud.iot.v1.DeviceCredentialOrBuilder getCredentialsOrBuilder(
    * 
* * .google.protobuf.Timestamp last_error_time = 10; + * * @return Whether the lastErrorTime field is set. */ boolean hasLastErrorTime(); /** + * + * *
    * [Output only] The time the most recent error occurred, such as a failure to
    * publish to Cloud Pub/Sub. This field is the timestamp of
@@ -336,10 +421,13 @@ com.google.cloud.iot.v1.DeviceCredentialOrBuilder getCredentialsOrBuilder(
    * 
* * .google.protobuf.Timestamp last_error_time = 10; + * * @return The lastErrorTime. */ com.google.protobuf.Timestamp getLastErrorTime(); /** + * + * *
    * [Output only] The time the most recent error occurred, such as a failure to
    * publish to Cloud Pub/Sub. This field is the timestamp of
@@ -351,6 +439,8 @@ com.google.cloud.iot.v1.DeviceCredentialOrBuilder getCredentialsOrBuilder(
   com.google.protobuf.TimestampOrBuilder getLastErrorTimeOrBuilder();
 
   /**
+   *
+   *
    * 
    * [Output only] The error message of the most recent error, such as a failure
    * to publish to Cloud Pub/Sub. 'last_error_time' is the timestamp of this
@@ -360,10 +450,13 @@ com.google.cloud.iot.v1.DeviceCredentialOrBuilder getCredentialsOrBuilder(
    * 
* * .google.rpc.Status last_error_status = 11; + * * @return Whether the lastErrorStatus field is set. */ boolean hasLastErrorStatus(); /** + * + * *
    * [Output only] The error message of the most recent error, such as a failure
    * to publish to Cloud Pub/Sub. 'last_error_time' is the timestamp of this
@@ -373,10 +466,13 @@ com.google.cloud.iot.v1.DeviceCredentialOrBuilder getCredentialsOrBuilder(
    * 
* * .google.rpc.Status last_error_status = 11; + * * @return The lastErrorStatus. */ com.google.rpc.Status getLastErrorStatus(); /** + * + * *
    * [Output only] The error message of the most recent error, such as a failure
    * to publish to Cloud Pub/Sub. 'last_error_time' is the timestamp of this
@@ -390,6 +486,8 @@ com.google.cloud.iot.v1.DeviceCredentialOrBuilder getCredentialsOrBuilder(
   com.google.rpc.StatusOrBuilder getLastErrorStatusOrBuilder();
 
   /**
+   *
+   *
    * 
    * The most recent device configuration, which is eventually sent from
    * Cloud IoT Core to the device. If not present on creation, the
@@ -399,10 +497,13 @@ com.google.cloud.iot.v1.DeviceCredentialOrBuilder getCredentialsOrBuilder(
    * 
* * .google.cloud.iot.v1.DeviceConfig config = 13; + * * @return Whether the config field is set. */ boolean hasConfig(); /** + * + * *
    * The most recent device configuration, which is eventually sent from
    * Cloud IoT Core to the device. If not present on creation, the
@@ -412,10 +513,13 @@ com.google.cloud.iot.v1.DeviceCredentialOrBuilder getCredentialsOrBuilder(
    * 
* * .google.cloud.iot.v1.DeviceConfig config = 13; + * * @return The config. */ com.google.cloud.iot.v1.DeviceConfig getConfig(); /** + * + * *
    * The most recent device configuration, which is eventually sent from
    * Cloud IoT Core to the device. If not present on creation, the
@@ -429,26 +533,34 @@ com.google.cloud.iot.v1.DeviceCredentialOrBuilder getCredentialsOrBuilder(
   com.google.cloud.iot.v1.DeviceConfigOrBuilder getConfigOrBuilder();
 
   /**
+   *
+   *
    * 
    * [Output only] The state most recently received from the device. If no state
    * has been reported, this field is not present.
    * 
* * .google.cloud.iot.v1.DeviceState state = 16; + * * @return Whether the state field is set. */ boolean hasState(); /** + * + * *
    * [Output only] The state most recently received from the device. If no state
    * has been reported, this field is not present.
    * 
* * .google.cloud.iot.v1.DeviceState state = 16; + * * @return The state. */ com.google.cloud.iot.v1.DeviceState getState(); /** + * + * *
    * [Output only] The state most recently received from the device. If no state
    * has been reported, this field is not present.
@@ -459,6 +571,8 @@ com.google.cloud.iot.v1.DeviceCredentialOrBuilder getCredentialsOrBuilder(
   com.google.cloud.iot.v1.DeviceStateOrBuilder getStateOrBuilder();
 
   /**
+   *
+   *
    * 
    * **Beta Feature**
    * The logging verbosity for device activity. If unspecified,
@@ -466,10 +580,13 @@ com.google.cloud.iot.v1.DeviceCredentialOrBuilder getCredentialsOrBuilder(
    * 
* * .google.cloud.iot.v1.LogLevel log_level = 21; + * * @return The enum numeric value on the wire for logLevel. */ int getLogLevelValue(); /** + * + * *
    * **Beta Feature**
    * The logging verbosity for device activity. If unspecified,
@@ -477,11 +594,14 @@ com.google.cloud.iot.v1.DeviceCredentialOrBuilder getCredentialsOrBuilder(
    * 
* * .google.cloud.iot.v1.LogLevel log_level = 21; + * * @return The logLevel. */ com.google.cloud.iot.v1.LogLevel getLogLevel(); /** + * + * *
    * The metadata key-value pairs assigned to the device. This metadata is not
    * interpreted or indexed by Cloud IoT Core. It can be used to add contextual
@@ -498,6 +618,8 @@ com.google.cloud.iot.v1.DeviceCredentialOrBuilder getCredentialsOrBuilder(
    */
   int getMetadataCount();
   /**
+   *
+   *
    * 
    * The metadata key-value pairs assigned to the device. This metadata is not
    * interpreted or indexed by Cloud IoT Core. It can be used to add contextual
@@ -512,15 +634,13 @@ com.google.cloud.iot.v1.DeviceCredentialOrBuilder getCredentialsOrBuilder(
    *
    * map<string, string> metadata = 17;
    */
-  boolean containsMetadata(
-      java.lang.String key);
-  /**
-   * Use {@link #getMetadataMap()} instead.
-   */
+  boolean containsMetadata(java.lang.String key);
+  /** Use {@link #getMetadataMap()} instead. */
   @java.lang.Deprecated
-  java.util.Map
-  getMetadata();
+  java.util.Map getMetadata();
   /**
+   *
+   *
    * 
    * The metadata key-value pairs assigned to the device. This metadata is not
    * interpreted or indexed by Cloud IoT Core. It can be used to add contextual
@@ -535,9 +655,10 @@ boolean containsMetadata(
    *
    * map<string, string> metadata = 17;
    */
-  java.util.Map
-  getMetadataMap();
+  java.util.Map getMetadataMap();
   /**
+   *
+   *
    * 
    * The metadata key-value pairs assigned to the device. This metadata is not
    * interpreted or indexed by Cloud IoT Core. It can be used to add contextual
@@ -554,11 +675,13 @@ boolean containsMetadata(
    */
 
   /* nullable */
-java.lang.String getMetadataOrDefault(
+  java.lang.String getMetadataOrDefault(
       java.lang.String key,
       /* nullable */
-java.lang.String defaultValue);
+      java.lang.String defaultValue);
   /**
+   *
+   *
    * 
    * The metadata key-value pairs assigned to the device. This metadata is not
    * interpreted or indexed by Cloud IoT Core. It can be used to add contextual
@@ -573,29 +696,35 @@ java.lang.String getMetadataOrDefault(
    *
    * map<string, string> metadata = 17;
    */
-
-  java.lang.String getMetadataOrThrow(
-      java.lang.String key);
+  java.lang.String getMetadataOrThrow(java.lang.String key);
 
   /**
+   *
+   *
    * 
    * Gateway-related configuration and state.
    * 
* * .google.cloud.iot.v1.GatewayConfig gateway_config = 24; + * * @return Whether the gatewayConfig field is set. */ boolean hasGatewayConfig(); /** + * + * *
    * Gateway-related configuration and state.
    * 
* * .google.cloud.iot.v1.GatewayConfig gateway_config = 24; + * * @return The gatewayConfig. */ com.google.cloud.iot.v1.GatewayConfig getGatewayConfig(); /** + * + * *
    * Gateway-related configuration and state.
    * 
diff --git a/owl-bot-staging/v1/proto-google-cloud-iot-v1/src/main/java/com/google/cloud/iot/v1/DeviceRegistry.java b/proto-google-cloud-iot-v1/src/main/java/com/google/cloud/iot/v1/DeviceRegistry.java similarity index 81% rename from owl-bot-staging/v1/proto-google-cloud-iot-v1/src/main/java/com/google/cloud/iot/v1/DeviceRegistry.java rename to proto-google-cloud-iot-v1/src/main/java/com/google/cloud/iot/v1/DeviceRegistry.java index 279f0d2a..7f79e37f 100644 --- a/owl-bot-staging/v1/proto-google-cloud-iot-v1/src/main/java/com/google/cloud/iot/v1/DeviceRegistry.java +++ b/proto-google-cloud-iot-v1/src/main/java/com/google/cloud/iot/v1/DeviceRegistry.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/iot/v1/resources.proto package com.google.cloud.iot.v1; /** + * + * *
  * A container for a group of devices.
  * 
* * Protobuf type {@code google.cloud.iot.v1.DeviceRegistry} */ -public final class DeviceRegistry extends - com.google.protobuf.GeneratedMessageV3 implements +public final class DeviceRegistry extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.iot.v1.DeviceRegistry) DeviceRegistryOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use DeviceRegistry.newBuilder() to construct. private DeviceRegistry(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private DeviceRegistry() { id_ = ""; name_ = ""; @@ -29,16 +47,15 @@ private DeviceRegistry() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new DeviceRegistry(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private DeviceRegistry( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -58,88 +75,104 @@ private DeviceRegistry( case 0: done = true; break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); - - id_ = s; - break; - } - case 18: { - java.lang.String s = input.readStringRequireUtf8(); + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); - name_ = s; - break; - } - case 34: { - com.google.cloud.iot.v1.MqttConfig.Builder subBuilder = null; - if (mqttConfig_ != null) { - subBuilder = mqttConfig_.toBuilder(); - } - mqttConfig_ = input.readMessage(com.google.cloud.iot.v1.MqttConfig.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(mqttConfig_); - mqttConfig_ = subBuilder.buildPartial(); + id_ = s; + break; } + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); - break; - } - case 58: { - com.google.cloud.iot.v1.StateNotificationConfig.Builder subBuilder = null; - if (stateNotificationConfig_ != null) { - subBuilder = stateNotificationConfig_.toBuilder(); + name_ = s; + break; } - stateNotificationConfig_ = input.readMessage(com.google.cloud.iot.v1.StateNotificationConfig.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(stateNotificationConfig_); - stateNotificationConfig_ = subBuilder.buildPartial(); + case 34: + { + com.google.cloud.iot.v1.MqttConfig.Builder subBuilder = null; + if (mqttConfig_ != null) { + subBuilder = mqttConfig_.toBuilder(); + } + mqttConfig_ = + input.readMessage(com.google.cloud.iot.v1.MqttConfig.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(mqttConfig_); + mqttConfig_ = subBuilder.buildPartial(); + } + + break; } - - break; - } - case 66: { - if (!((mutable_bitField0_ & 0x00000002) != 0)) { - credentials_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000002; + case 58: + { + com.google.cloud.iot.v1.StateNotificationConfig.Builder subBuilder = null; + if (stateNotificationConfig_ != null) { + subBuilder = stateNotificationConfig_.toBuilder(); + } + stateNotificationConfig_ = + input.readMessage( + com.google.cloud.iot.v1.StateNotificationConfig.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(stateNotificationConfig_); + stateNotificationConfig_ = subBuilder.buildPartial(); + } + + break; } - credentials_.add( - input.readMessage(com.google.cloud.iot.v1.RegistryCredential.parser(), extensionRegistry)); - break; - } - case 74: { - com.google.cloud.iot.v1.HttpConfig.Builder subBuilder = null; - if (httpConfig_ != null) { - subBuilder = httpConfig_.toBuilder(); + case 66: + { + if (!((mutable_bitField0_ & 0x00000002) != 0)) { + credentials_ = + new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000002; + } + credentials_.add( + input.readMessage( + com.google.cloud.iot.v1.RegistryCredential.parser(), extensionRegistry)); + break; } - httpConfig_ = input.readMessage(com.google.cloud.iot.v1.HttpConfig.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(httpConfig_); - httpConfig_ = subBuilder.buildPartial(); + case 74: + { + com.google.cloud.iot.v1.HttpConfig.Builder subBuilder = null; + if (httpConfig_ != null) { + subBuilder = httpConfig_.toBuilder(); + } + httpConfig_ = + input.readMessage(com.google.cloud.iot.v1.HttpConfig.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(httpConfig_); + httpConfig_ = subBuilder.buildPartial(); + } + + break; } - - break; - } - case 82: { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - eventNotificationConfigs_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; + case 82: + { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + eventNotificationConfigs_ = + new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; + } + eventNotificationConfigs_.add( + input.readMessage( + com.google.cloud.iot.v1.EventNotificationConfig.parser(), extensionRegistry)); + break; } - eventNotificationConfigs_.add( - input.readMessage(com.google.cloud.iot.v1.EventNotificationConfig.parser(), extensionRegistry)); - break; - } - case 88: { - int rawValue = input.readEnum(); + case 88: + { + int rawValue = input.readEnum(); - logLevel_ = rawValue; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + logLevel_ = rawValue; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -147,40 +180,46 @@ private DeviceRegistry( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } 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)) { credentials_ = java.util.Collections.unmodifiableList(credentials_); } if (((mutable_bitField0_ & 0x00000001) != 0)) { - eventNotificationConfigs_ = java.util.Collections.unmodifiableList(eventNotificationConfigs_); + eventNotificationConfigs_ = + java.util.Collections.unmodifiableList(eventNotificationConfigs_); } this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.iot.v1.ResourcesProto.internal_static_google_cloud_iot_v1_DeviceRegistry_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.iot.v1.ResourcesProto + .internal_static_google_cloud_iot_v1_DeviceRegistry_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.iot.v1.ResourcesProto.internal_static_google_cloud_iot_v1_DeviceRegistry_fieldAccessorTable + return com.google.cloud.iot.v1.ResourcesProto + .internal_static_google_cloud_iot_v1_DeviceRegistry_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.iot.v1.DeviceRegistry.class, com.google.cloud.iot.v1.DeviceRegistry.Builder.class); + com.google.cloud.iot.v1.DeviceRegistry.class, + com.google.cloud.iot.v1.DeviceRegistry.Builder.class); } public static final int ID_FIELD_NUMBER = 1; private volatile java.lang.Object id_; /** + * + * *
    * The identifier of this device registry. For example, `myRegistry`.
    * 
* * string id = 1; + * * @return The id. */ @java.lang.Override @@ -189,29 +228,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; } } /** + * + * *
    * The identifier of this device registry. For example, `myRegistry`.
    * 
* * string id = 1; + * * @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 { @@ -222,12 +261,15 @@ public java.lang.String getId() { public static final int NAME_FIELD_NUMBER = 2; private volatile java.lang.Object name_; /** + * + * *
    * The resource path name. For example,
    * `projects/example-project/locations/us-central1/registries/my-registry`.
    * 
* * string name = 2; + * * @return The name. */ @java.lang.Override @@ -236,30 +278,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; } } /** + * + * *
    * The resource path name. For example,
    * `projects/example-project/locations/us-central1/registries/my-registry`.
    * 
* * string name = 2; + * * @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 { @@ -270,6 +312,8 @@ public java.lang.String getName() { public static final int EVENT_NOTIFICATION_CONFIGS_FIELD_NUMBER = 10; private java.util.List eventNotificationConfigs_; /** + * + * *
    * The configuration for notification of telemetry events received from the
    * device. All telemetry events that were successfully published by the
@@ -282,13 +326,17 @@ public java.lang.String getName() {
    * configurations may be provided.
    * 
* - * repeated .google.cloud.iot.v1.EventNotificationConfig event_notification_configs = 10; + * repeated .google.cloud.iot.v1.EventNotificationConfig event_notification_configs = 10; + * */ @java.lang.Override - public java.util.List getEventNotificationConfigsList() { + public java.util.List + getEventNotificationConfigsList() { return eventNotificationConfigs_; } /** + * + * *
    * The configuration for notification of telemetry events received from the
    * device. All telemetry events that were successfully published by the
@@ -301,14 +349,17 @@ public java.util.List getEventN
    * configurations may be provided.
    * 
* - * repeated .google.cloud.iot.v1.EventNotificationConfig event_notification_configs = 10; + * repeated .google.cloud.iot.v1.EventNotificationConfig event_notification_configs = 10; + * */ @java.lang.Override - public java.util.List + public java.util.List getEventNotificationConfigsOrBuilderList() { return eventNotificationConfigs_; } /** + * + * *
    * The configuration for notification of telemetry events received from the
    * device. All telemetry events that were successfully published by the
@@ -321,13 +372,16 @@ public java.util.List getEventN
    * configurations may be provided.
    * 
* - * repeated .google.cloud.iot.v1.EventNotificationConfig event_notification_configs = 10; + * repeated .google.cloud.iot.v1.EventNotificationConfig event_notification_configs = 10; + * */ @java.lang.Override public int getEventNotificationConfigsCount() { return eventNotificationConfigs_.size(); } /** + * + * *
    * The configuration for notification of telemetry events received from the
    * device. All telemetry events that were successfully published by the
@@ -340,13 +394,16 @@ public int getEventNotificationConfigsCount() {
    * configurations may be provided.
    * 
* - * repeated .google.cloud.iot.v1.EventNotificationConfig event_notification_configs = 10; + * repeated .google.cloud.iot.v1.EventNotificationConfig event_notification_configs = 10; + * */ @java.lang.Override public com.google.cloud.iot.v1.EventNotificationConfig getEventNotificationConfigs(int index) { return eventNotificationConfigs_.get(index); } /** + * + * *
    * The configuration for notification of telemetry events received from the
    * device. All telemetry events that were successfully published by the
@@ -359,17 +416,20 @@ public com.google.cloud.iot.v1.EventNotificationConfig getEventNotificationConfi
    * configurations may be provided.
    * 
* - * repeated .google.cloud.iot.v1.EventNotificationConfig event_notification_configs = 10; + * repeated .google.cloud.iot.v1.EventNotificationConfig event_notification_configs = 10; + * */ @java.lang.Override - public com.google.cloud.iot.v1.EventNotificationConfigOrBuilder getEventNotificationConfigsOrBuilder( - int index) { + public com.google.cloud.iot.v1.EventNotificationConfigOrBuilder + getEventNotificationConfigsOrBuilder(int index) { return eventNotificationConfigs_.get(index); } public static final int STATE_NOTIFICATION_CONFIG_FIELD_NUMBER = 7; private com.google.cloud.iot.v1.StateNotificationConfig stateNotificationConfig_; /** + * + * *
    * The configuration for notification of new states received from the device.
    * State updates are guaranteed to be stored in the state history, but
@@ -380,6 +440,7 @@ public com.google.cloud.iot.v1.EventNotificationConfigOrBuilder getEventNotifica
    * 
* * .google.cloud.iot.v1.StateNotificationConfig state_notification_config = 7; + * * @return Whether the stateNotificationConfig field is set. */ @java.lang.Override @@ -387,6 +448,8 @@ public boolean hasStateNotificationConfig() { return stateNotificationConfig_ != null; } /** + * + * *
    * The configuration for notification of new states received from the device.
    * State updates are guaranteed to be stored in the state history, but
@@ -397,13 +460,18 @@ public boolean hasStateNotificationConfig() {
    * 
* * .google.cloud.iot.v1.StateNotificationConfig state_notification_config = 7; + * * @return The stateNotificationConfig. */ @java.lang.Override public com.google.cloud.iot.v1.StateNotificationConfig getStateNotificationConfig() { - return stateNotificationConfig_ == null ? com.google.cloud.iot.v1.StateNotificationConfig.getDefaultInstance() : stateNotificationConfig_; + return stateNotificationConfig_ == null + ? com.google.cloud.iot.v1.StateNotificationConfig.getDefaultInstance() + : stateNotificationConfig_; } /** + * + * *
    * The configuration for notification of new states received from the device.
    * State updates are guaranteed to be stored in the state history, but
@@ -416,18 +484,22 @@ public com.google.cloud.iot.v1.StateNotificationConfig getStateNotificationConfi
    * .google.cloud.iot.v1.StateNotificationConfig state_notification_config = 7;
    */
   @java.lang.Override
-  public com.google.cloud.iot.v1.StateNotificationConfigOrBuilder getStateNotificationConfigOrBuilder() {
+  public com.google.cloud.iot.v1.StateNotificationConfigOrBuilder
+      getStateNotificationConfigOrBuilder() {
     return getStateNotificationConfig();
   }
 
   public static final int MQTT_CONFIG_FIELD_NUMBER = 4;
   private com.google.cloud.iot.v1.MqttConfig mqttConfig_;
   /**
+   *
+   *
    * 
    * The MQTT configuration for this device registry.
    * 
* * .google.cloud.iot.v1.MqttConfig mqtt_config = 4; + * * @return Whether the mqttConfig field is set. */ @java.lang.Override @@ -435,18 +507,25 @@ public boolean hasMqttConfig() { return mqttConfig_ != null; } /** + * + * *
    * The MQTT configuration for this device registry.
    * 
* * .google.cloud.iot.v1.MqttConfig mqtt_config = 4; + * * @return The mqttConfig. */ @java.lang.Override public com.google.cloud.iot.v1.MqttConfig getMqttConfig() { - return mqttConfig_ == null ? com.google.cloud.iot.v1.MqttConfig.getDefaultInstance() : mqttConfig_; + return mqttConfig_ == null + ? com.google.cloud.iot.v1.MqttConfig.getDefaultInstance() + : mqttConfig_; } /** + * + * *
    * The MQTT configuration for this device registry.
    * 
@@ -461,11 +540,14 @@ public com.google.cloud.iot.v1.MqttConfigOrBuilder getMqttConfigOrBuilder() { public static final int HTTP_CONFIG_FIELD_NUMBER = 9; private com.google.cloud.iot.v1.HttpConfig httpConfig_; /** + * + * *
    * The DeviceService (HTTP) configuration for this device registry.
    * 
* * .google.cloud.iot.v1.HttpConfig http_config = 9; + * * @return Whether the httpConfig field is set. */ @java.lang.Override @@ -473,18 +555,25 @@ public boolean hasHttpConfig() { return httpConfig_ != null; } /** + * + * *
    * The DeviceService (HTTP) configuration for this device registry.
    * 
* * .google.cloud.iot.v1.HttpConfig http_config = 9; + * * @return The httpConfig. */ @java.lang.Override public com.google.cloud.iot.v1.HttpConfig getHttpConfig() { - return httpConfig_ == null ? com.google.cloud.iot.v1.HttpConfig.getDefaultInstance() : httpConfig_; + return httpConfig_ == null + ? com.google.cloud.iot.v1.HttpConfig.getDefaultInstance() + : httpConfig_; } /** + * + * *
    * The DeviceService (HTTP) configuration for this device registry.
    * 
@@ -499,6 +588,8 @@ public com.google.cloud.iot.v1.HttpConfigOrBuilder getHttpConfigOrBuilder() { public static final int LOG_LEVEL_FIELD_NUMBER = 11; private int logLevel_; /** + * + * *
    * **Beta Feature**
    * The default logging verbosity for activity from devices in this registry.
@@ -506,12 +597,16 @@ public com.google.cloud.iot.v1.HttpConfigOrBuilder getHttpConfigOrBuilder() {
    * 
* * .google.cloud.iot.v1.LogLevel log_level = 11; + * * @return The enum numeric value on the wire for logLevel. */ - @java.lang.Override public int getLogLevelValue() { + @java.lang.Override + public int getLogLevelValue() { return logLevel_; } /** + * + * *
    * **Beta Feature**
    * The default logging verbosity for activity from devices in this registry.
@@ -519,9 +614,11 @@ public com.google.cloud.iot.v1.HttpConfigOrBuilder getHttpConfigOrBuilder() {
    * 
* * .google.cloud.iot.v1.LogLevel log_level = 11; + * * @return The logLevel. */ - @java.lang.Override public com.google.cloud.iot.v1.LogLevel getLogLevel() { + @java.lang.Override + public com.google.cloud.iot.v1.LogLevel getLogLevel() { @SuppressWarnings("deprecation") com.google.cloud.iot.v1.LogLevel result = com.google.cloud.iot.v1.LogLevel.valueOf(logLevel_); return result == null ? com.google.cloud.iot.v1.LogLevel.UNRECOGNIZED : result; @@ -530,6 +627,8 @@ public com.google.cloud.iot.v1.HttpConfigOrBuilder getHttpConfigOrBuilder() { public static final int CREDENTIALS_FIELD_NUMBER = 8; private java.util.List credentials_; /** + * + * *
    * The credentials used to verify the device credentials. No more than 10
    * credentials can be bound to a single registry at a time. The verification
@@ -550,6 +649,8 @@ public java.util.List getCredentials
     return credentials_;
   }
   /**
+   *
+   *
    * 
    * The credentials used to verify the device credentials. No more than 10
    * credentials can be bound to a single registry at a time. The verification
@@ -566,11 +667,13 @@ public java.util.List getCredentials
    * repeated .google.cloud.iot.v1.RegistryCredential credentials = 8;
    */
   @java.lang.Override
-  public java.util.List 
+  public java.util.List
       getCredentialsOrBuilderList() {
     return credentials_;
   }
   /**
+   *
+   *
    * 
    * The credentials used to verify the device credentials. No more than 10
    * credentials can be bound to a single registry at a time. The verification
@@ -591,6 +694,8 @@ public int getCredentialsCount() {
     return credentials_.size();
   }
   /**
+   *
+   *
    * 
    * The credentials used to verify the device credentials. No more than 10
    * credentials can be bound to a single registry at a time. The verification
@@ -611,6 +716,8 @@ public com.google.cloud.iot.v1.RegistryCredential getCredentials(int index) {
     return credentials_.get(index);
   }
   /**
+   *
+   *
    * 
    * The credentials used to verify the device credentials. No more than 10
    * credentials can be bound to a single registry at a time. The verification
@@ -627,12 +734,12 @@ public com.google.cloud.iot.v1.RegistryCredential getCredentials(int index) {
    * repeated .google.cloud.iot.v1.RegistryCredential credentials = 8;
    */
   @java.lang.Override
-  public com.google.cloud.iot.v1.RegistryCredentialOrBuilder getCredentialsOrBuilder(
-      int index) {
+  public com.google.cloud.iot.v1.RegistryCredentialOrBuilder getCredentialsOrBuilder(int index) {
     return credentials_.get(index);
   }
 
   private byte memoizedIsInitialized = -1;
+
   @java.lang.Override
   public final boolean isInitialized() {
     byte isInitialized = memoizedIsInitialized;
@@ -644,8 +751,7 @@ public final boolean isInitialized() {
   }
 
   @java.lang.Override
-  public void writeTo(com.google.protobuf.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_);
     }
@@ -686,28 +792,25 @@ public int getSerializedSize() {
       size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, name_);
     }
     if (mqttConfig_ != null) {
-      size += com.google.protobuf.CodedOutputStream
-        .computeMessageSize(4, getMqttConfig());
+      size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getMqttConfig());
     }
     if (stateNotificationConfig_ != null) {
-      size += com.google.protobuf.CodedOutputStream
-        .computeMessageSize(7, getStateNotificationConfig());
+      size +=
+          com.google.protobuf.CodedOutputStream.computeMessageSize(7, getStateNotificationConfig());
     }
     for (int i = 0; i < credentials_.size(); i++) {
-      size += com.google.protobuf.CodedOutputStream
-        .computeMessageSize(8, credentials_.get(i));
+      size += com.google.protobuf.CodedOutputStream.computeMessageSize(8, credentials_.get(i));
     }
     if (httpConfig_ != null) {
-      size += com.google.protobuf.CodedOutputStream
-        .computeMessageSize(9, getHttpConfig());
+      size += com.google.protobuf.CodedOutputStream.computeMessageSize(9, getHttpConfig());
     }
     for (int i = 0; i < eventNotificationConfigs_.size(); i++) {
-      size += com.google.protobuf.CodedOutputStream
-        .computeMessageSize(10, eventNotificationConfigs_.get(i));
+      size +=
+          com.google.protobuf.CodedOutputStream.computeMessageSize(
+              10, eventNotificationConfigs_.get(i));
     }
     if (logLevel_ != com.google.cloud.iot.v1.LogLevel.LOG_LEVEL_UNSPECIFIED.getNumber()) {
-      size += com.google.protobuf.CodedOutputStream
-        .computeEnumSize(11, logLevel_);
+      size += com.google.protobuf.CodedOutputStream.computeEnumSize(11, logLevel_);
     }
     size += unknownFields.getSerializedSize();
     memoizedSize = size;
@@ -717,37 +820,31 @@ public int getSerializedSize() {
   @java.lang.Override
   public boolean equals(final java.lang.Object obj) {
     if (obj == this) {
-     return true;
+      return true;
     }
     if (!(obj instanceof com.google.cloud.iot.v1.DeviceRegistry)) {
       return super.equals(obj);
     }
     com.google.cloud.iot.v1.DeviceRegistry other = (com.google.cloud.iot.v1.DeviceRegistry) obj;
 
-    if (!getId()
-        .equals(other.getId())) return false;
-    if (!getName()
-        .equals(other.getName())) return false;
-    if (!getEventNotificationConfigsList()
-        .equals(other.getEventNotificationConfigsList())) return false;
+    if (!getId().equals(other.getId())) return false;
+    if (!getName().equals(other.getName())) return false;
+    if (!getEventNotificationConfigsList().equals(other.getEventNotificationConfigsList()))
+      return false;
     if (hasStateNotificationConfig() != other.hasStateNotificationConfig()) return false;
     if (hasStateNotificationConfig()) {
-      if (!getStateNotificationConfig()
-          .equals(other.getStateNotificationConfig())) return false;
+      if (!getStateNotificationConfig().equals(other.getStateNotificationConfig())) return false;
     }
     if (hasMqttConfig() != other.hasMqttConfig()) return false;
     if (hasMqttConfig()) {
-      if (!getMqttConfig()
-          .equals(other.getMqttConfig())) return false;
+      if (!getMqttConfig().equals(other.getMqttConfig())) return false;
     }
     if (hasHttpConfig() != other.hasHttpConfig()) return false;
     if (hasHttpConfig()) {
-      if (!getHttpConfig()
-          .equals(other.getHttpConfig())) return false;
+      if (!getHttpConfig().equals(other.getHttpConfig())) return false;
     }
     if (logLevel_ != other.logLevel_) return false;
-    if (!getCredentialsList()
-        .equals(other.getCredentialsList())) return false;
+    if (!getCredentialsList().equals(other.getCredentialsList())) return false;
     if (!unknownFields.equals(other.unknownFields)) return false;
     return true;
   }
@@ -790,118 +887,127 @@ public int hashCode() {
     return hash;
   }
 
-  public static com.google.cloud.iot.v1.DeviceRegistry parseFrom(
-      java.nio.ByteBuffer data)
+  public static com.google.cloud.iot.v1.DeviceRegistry parseFrom(java.nio.ByteBuffer data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
+
   public static com.google.cloud.iot.v1.DeviceRegistry parseFrom(
-      java.nio.ByteBuffer data,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
+
   public static com.google.cloud.iot.v1.DeviceRegistry parseFrom(
       com.google.protobuf.ByteString data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
+
   public static com.google.cloud.iot.v1.DeviceRegistry parseFrom(
       com.google.protobuf.ByteString data,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
+
   public static com.google.cloud.iot.v1.DeviceRegistry parseFrom(byte[] data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
+
   public static com.google.cloud.iot.v1.DeviceRegistry parseFrom(
-      byte[] data,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
+
   public static com.google.cloud.iot.v1.DeviceRegistry 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.iot.v1.DeviceRegistry parseFrom(
-      java.io.InputStream input,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
+        PARSER, input, extensionRegistry);
   }
+
   public static com.google.cloud.iot.v1.DeviceRegistry 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.iot.v1.DeviceRegistry parseDelimitedFrom(
-      java.io.InputStream input,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
+        PARSER, input, extensionRegistry);
   }
+
   public static com.google.cloud.iot.v1.DeviceRegistry parseFrom(
-      com.google.protobuf.CodedInputStream input)
-      throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input);
+      com.google.protobuf.CodedInputStream input) throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
   }
+
   public static com.google.cloud.iot.v1.DeviceRegistry parseFrom(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
+        PARSER, input, extensionRegistry);
   }
 
   @java.lang.Override
-  public Builder newBuilderForType() { return newBuilder(); }
+  public Builder newBuilderForType() {
+    return newBuilder();
+  }
+
   public static Builder newBuilder() {
     return DEFAULT_INSTANCE.toBuilder();
   }
+
   public static Builder newBuilder(com.google.cloud.iot.v1.DeviceRegistry prototype) {
     return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
   }
+
   @java.lang.Override
   public Builder toBuilder() {
-    return this == DEFAULT_INSTANCE
-        ? new Builder() : new Builder().mergeFrom(this);
+    return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
   }
 
   @java.lang.Override
-  protected 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 container for a group of devices.
    * 
* * Protobuf type {@code google.cloud.iot.v1.DeviceRegistry} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.iot.v1.DeviceRegistry) com.google.cloud.iot.v1.DeviceRegistryOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.iot.v1.ResourcesProto.internal_static_google_cloud_iot_v1_DeviceRegistry_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.iot.v1.ResourcesProto + .internal_static_google_cloud_iot_v1_DeviceRegistry_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.iot.v1.ResourcesProto.internal_static_google_cloud_iot_v1_DeviceRegistry_fieldAccessorTable + return com.google.cloud.iot.v1.ResourcesProto + .internal_static_google_cloud_iot_v1_DeviceRegistry_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.iot.v1.DeviceRegistry.class, com.google.cloud.iot.v1.DeviceRegistry.Builder.class); + com.google.cloud.iot.v1.DeviceRegistry.class, + com.google.cloud.iot.v1.DeviceRegistry.Builder.class); } // Construct using com.google.cloud.iot.v1.DeviceRegistry.newBuilder() @@ -909,18 +1015,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) { getEventNotificationConfigsFieldBuilder(); getCredentialsFieldBuilder(); } } + @java.lang.Override public Builder clear() { super.clear(); @@ -964,9 +1070,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.iot.v1.ResourcesProto.internal_static_google_cloud_iot_v1_DeviceRegistry_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.iot.v1.ResourcesProto + .internal_static_google_cloud_iot_v1_DeviceRegistry_descriptor; } @java.lang.Override @@ -985,13 +1091,15 @@ public com.google.cloud.iot.v1.DeviceRegistry build() { @java.lang.Override public com.google.cloud.iot.v1.DeviceRegistry buildPartial() { - com.google.cloud.iot.v1.DeviceRegistry result = new com.google.cloud.iot.v1.DeviceRegistry(this); + com.google.cloud.iot.v1.DeviceRegistry result = + new com.google.cloud.iot.v1.DeviceRegistry(this); int from_bitField0_ = bitField0_; result.id_ = id_; result.name_ = name_; if (eventNotificationConfigsBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { - eventNotificationConfigs_ = java.util.Collections.unmodifiableList(eventNotificationConfigs_); + eventNotificationConfigs_ = + java.util.Collections.unmodifiableList(eventNotificationConfigs_); bitField0_ = (bitField0_ & ~0x00000001); } result.eventNotificationConfigs_ = eventNotificationConfigs_; @@ -1031,38 +1139,39 @@ public com.google.cloud.iot.v1.DeviceRegistry buildPartial() { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.iot.v1.DeviceRegistry) { - return mergeFrom((com.google.cloud.iot.v1.DeviceRegistry)other); + return mergeFrom((com.google.cloud.iot.v1.DeviceRegistry) other); } else { super.mergeFrom(other); return this; @@ -1097,9 +1206,10 @@ public Builder mergeFrom(com.google.cloud.iot.v1.DeviceRegistry other) { eventNotificationConfigsBuilder_ = null; eventNotificationConfigs_ = other.eventNotificationConfigs_; bitField0_ = (bitField0_ & ~0x00000001); - eventNotificationConfigsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getEventNotificationConfigsFieldBuilder() : null; + eventNotificationConfigsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getEventNotificationConfigsFieldBuilder() + : null; } else { eventNotificationConfigsBuilder_.addAllMessages(other.eventNotificationConfigs_); } @@ -1135,9 +1245,10 @@ public Builder mergeFrom(com.google.cloud.iot.v1.DeviceRegistry other) { credentialsBuilder_ = null; credentials_ = other.credentials_; bitField0_ = (bitField0_ & ~0x00000002); - credentialsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getCredentialsFieldBuilder() : null; + credentialsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getCredentialsFieldBuilder() + : null; } else { credentialsBuilder_.addAllMessages(other.credentials_); } @@ -1171,22 +1282,25 @@ public Builder mergeFrom( } return this; } + private int bitField0_; private java.lang.Object id_ = ""; /** + * + * *
      * The identifier of this device registry. For example, `myRegistry`.
      * 
* * string id = 1; + * * @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; @@ -1195,20 +1309,21 @@ public java.lang.String getId() { } } /** + * + * *
      * The identifier of this device registry. For example, `myRegistry`.
      * 
* * string id = 1; + * * @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 { @@ -1216,54 +1331,61 @@ public java.lang.String getId() { } } /** + * + * *
      * The identifier of this device registry. For example, `myRegistry`.
      * 
* * string id = 1; + * * @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; } /** + * + * *
      * The identifier of this device registry. For example, `myRegistry`.
      * 
* * string id = 1; + * * @return This builder for chaining. */ public Builder clearId() { - + id_ = getDefaultInstance().getId(); onChanged(); return this; } /** + * + * *
      * The identifier of this device registry. For example, `myRegistry`.
      * 
* * string id = 1; + * * @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; @@ -1271,19 +1393,21 @@ public Builder setIdBytes( private java.lang.Object name_ = ""; /** + * + * *
      * The resource path name. For example,
      * `projects/example-project/locations/us-central1/registries/my-registry`.
      * 
* * string name = 2; + * * @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; @@ -1292,21 +1416,22 @@ public java.lang.String getName() { } } /** + * + * *
      * The resource path name. For example,
      * `projects/example-project/locations/us-central1/registries/my-registry`.
      * 
* * string name = 2; + * * @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 { @@ -1314,75 +1439,90 @@ public java.lang.String getName() { } } /** + * + * *
      * The resource path name. For example,
      * `projects/example-project/locations/us-central1/registries/my-registry`.
      * 
* * string name = 2; + * * @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; } /** + * + * *
      * The resource path name. For example,
      * `projects/example-project/locations/us-central1/registries/my-registry`.
      * 
* * string name = 2; + * * @return This builder for chaining. */ public Builder clearName() { - + name_ = getDefaultInstance().getName(); onChanged(); return this; } /** + * + * *
      * The resource path name. For example,
      * `projects/example-project/locations/us-central1/registries/my-registry`.
      * 
* * string name = 2; + * * @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 java.util.List eventNotificationConfigs_ = - java.util.Collections.emptyList(); + private java.util.List + eventNotificationConfigs_ = java.util.Collections.emptyList(); + private void ensureEventNotificationConfigsIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { - eventNotificationConfigs_ = new java.util.ArrayList(eventNotificationConfigs_); + eventNotificationConfigs_ = + new java.util.ArrayList( + eventNotificationConfigs_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.iot.v1.EventNotificationConfig, com.google.cloud.iot.v1.EventNotificationConfig.Builder, com.google.cloud.iot.v1.EventNotificationConfigOrBuilder> eventNotificationConfigsBuilder_; + com.google.cloud.iot.v1.EventNotificationConfig, + com.google.cloud.iot.v1.EventNotificationConfig.Builder, + com.google.cloud.iot.v1.EventNotificationConfigOrBuilder> + eventNotificationConfigsBuilder_; /** + * + * *
      * The configuration for notification of telemetry events received from the
      * device. All telemetry events that were successfully published by the
@@ -1395,9 +1535,11 @@ private void ensureEventNotificationConfigsIsMutable() {
      * configurations may be provided.
      * 
* - * repeated .google.cloud.iot.v1.EventNotificationConfig event_notification_configs = 10; + * repeated .google.cloud.iot.v1.EventNotificationConfig event_notification_configs = 10; + * */ - public java.util.List getEventNotificationConfigsList() { + public java.util.List + getEventNotificationConfigsList() { if (eventNotificationConfigsBuilder_ == null) { return java.util.Collections.unmodifiableList(eventNotificationConfigs_); } else { @@ -1405,6 +1547,8 @@ public java.util.List getEventN } } /** + * + * *
      * The configuration for notification of telemetry events received from the
      * device. All telemetry events that were successfully published by the
@@ -1417,7 +1561,8 @@ public java.util.List getEventN
      * configurations may be provided.
      * 
* - * repeated .google.cloud.iot.v1.EventNotificationConfig event_notification_configs = 10; + * repeated .google.cloud.iot.v1.EventNotificationConfig event_notification_configs = 10; + * */ public int getEventNotificationConfigsCount() { if (eventNotificationConfigsBuilder_ == null) { @@ -1427,6 +1572,8 @@ public int getEventNotificationConfigsCount() { } } /** + * + * *
      * The configuration for notification of telemetry events received from the
      * device. All telemetry events that were successfully published by the
@@ -1439,7 +1586,8 @@ public int getEventNotificationConfigsCount() {
      * configurations may be provided.
      * 
* - * repeated .google.cloud.iot.v1.EventNotificationConfig event_notification_configs = 10; + * repeated .google.cloud.iot.v1.EventNotificationConfig event_notification_configs = 10; + * */ public com.google.cloud.iot.v1.EventNotificationConfig getEventNotificationConfigs(int index) { if (eventNotificationConfigsBuilder_ == null) { @@ -1449,6 +1597,8 @@ public com.google.cloud.iot.v1.EventNotificationConfig getEventNotificationConfi } } /** + * + * *
      * The configuration for notification of telemetry events received from the
      * device. All telemetry events that were successfully published by the
@@ -1461,7 +1611,8 @@ public com.google.cloud.iot.v1.EventNotificationConfig getEventNotificationConfi
      * configurations may be provided.
      * 
* - * repeated .google.cloud.iot.v1.EventNotificationConfig event_notification_configs = 10; + * repeated .google.cloud.iot.v1.EventNotificationConfig event_notification_configs = 10; + * */ public Builder setEventNotificationConfigs( int index, com.google.cloud.iot.v1.EventNotificationConfig value) { @@ -1478,6 +1629,8 @@ public Builder setEventNotificationConfigs( return this; } /** + * + * *
      * The configuration for notification of telemetry events received from the
      * device. All telemetry events that were successfully published by the
@@ -1490,7 +1643,8 @@ public Builder setEventNotificationConfigs(
      * configurations may be provided.
      * 
* - * repeated .google.cloud.iot.v1.EventNotificationConfig event_notification_configs = 10; + * repeated .google.cloud.iot.v1.EventNotificationConfig event_notification_configs = 10; + * */ public Builder setEventNotificationConfigs( int index, com.google.cloud.iot.v1.EventNotificationConfig.Builder builderForValue) { @@ -1504,6 +1658,8 @@ public Builder setEventNotificationConfigs( return this; } /** + * + * *
      * The configuration for notification of telemetry events received from the
      * device. All telemetry events that were successfully published by the
@@ -1516,9 +1672,11 @@ public Builder setEventNotificationConfigs(
      * configurations may be provided.
      * 
* - * repeated .google.cloud.iot.v1.EventNotificationConfig event_notification_configs = 10; + * repeated .google.cloud.iot.v1.EventNotificationConfig event_notification_configs = 10; + * */ - public Builder addEventNotificationConfigs(com.google.cloud.iot.v1.EventNotificationConfig value) { + public Builder addEventNotificationConfigs( + com.google.cloud.iot.v1.EventNotificationConfig value) { if (eventNotificationConfigsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -1532,6 +1690,8 @@ public Builder addEventNotificationConfigs(com.google.cloud.iot.v1.EventNotifica return this; } /** + * + * *
      * The configuration for notification of telemetry events received from the
      * device. All telemetry events that were successfully published by the
@@ -1544,7 +1704,8 @@ public Builder addEventNotificationConfigs(com.google.cloud.iot.v1.EventNotifica
      * configurations may be provided.
      * 
* - * repeated .google.cloud.iot.v1.EventNotificationConfig event_notification_configs = 10; + * repeated .google.cloud.iot.v1.EventNotificationConfig event_notification_configs = 10; + * */ public Builder addEventNotificationConfigs( int index, com.google.cloud.iot.v1.EventNotificationConfig value) { @@ -1561,6 +1722,8 @@ public Builder addEventNotificationConfigs( return this; } /** + * + * *
      * The configuration for notification of telemetry events received from the
      * device. All telemetry events that were successfully published by the
@@ -1573,7 +1736,8 @@ public Builder addEventNotificationConfigs(
      * configurations may be provided.
      * 
* - * repeated .google.cloud.iot.v1.EventNotificationConfig event_notification_configs = 10; + * repeated .google.cloud.iot.v1.EventNotificationConfig event_notification_configs = 10; + * */ public Builder addEventNotificationConfigs( com.google.cloud.iot.v1.EventNotificationConfig.Builder builderForValue) { @@ -1587,6 +1751,8 @@ public Builder addEventNotificationConfigs( return this; } /** + * + * *
      * The configuration for notification of telemetry events received from the
      * device. All telemetry events that were successfully published by the
@@ -1599,7 +1765,8 @@ public Builder addEventNotificationConfigs(
      * configurations may be provided.
      * 
* - * repeated .google.cloud.iot.v1.EventNotificationConfig event_notification_configs = 10; + * repeated .google.cloud.iot.v1.EventNotificationConfig event_notification_configs = 10; + * */ public Builder addEventNotificationConfigs( int index, com.google.cloud.iot.v1.EventNotificationConfig.Builder builderForValue) { @@ -1613,6 +1780,8 @@ public Builder addEventNotificationConfigs( return this; } /** + * + * *
      * The configuration for notification of telemetry events received from the
      * device. All telemetry events that were successfully published by the
@@ -1625,14 +1794,14 @@ public Builder addEventNotificationConfigs(
      * configurations may be provided.
      * 
* - * repeated .google.cloud.iot.v1.EventNotificationConfig event_notification_configs = 10; + * repeated .google.cloud.iot.v1.EventNotificationConfig event_notification_configs = 10; + * */ public Builder addAllEventNotificationConfigs( java.lang.Iterable values) { if (eventNotificationConfigsBuilder_ == null) { ensureEventNotificationConfigsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, eventNotificationConfigs_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, eventNotificationConfigs_); onChanged(); } else { eventNotificationConfigsBuilder_.addAllMessages(values); @@ -1640,6 +1809,8 @@ public Builder addAllEventNotificationConfigs( return this; } /** + * + * *
      * The configuration for notification of telemetry events received from the
      * device. All telemetry events that were successfully published by the
@@ -1652,7 +1823,8 @@ public Builder addAllEventNotificationConfigs(
      * configurations may be provided.
      * 
* - * repeated .google.cloud.iot.v1.EventNotificationConfig event_notification_configs = 10; + * repeated .google.cloud.iot.v1.EventNotificationConfig event_notification_configs = 10; + * */ public Builder clearEventNotificationConfigs() { if (eventNotificationConfigsBuilder_ == null) { @@ -1665,6 +1837,8 @@ public Builder clearEventNotificationConfigs() { return this; } /** + * + * *
      * The configuration for notification of telemetry events received from the
      * device. All telemetry events that were successfully published by the
@@ -1677,7 +1851,8 @@ public Builder clearEventNotificationConfigs() {
      * configurations may be provided.
      * 
* - * repeated .google.cloud.iot.v1.EventNotificationConfig event_notification_configs = 10; + * repeated .google.cloud.iot.v1.EventNotificationConfig event_notification_configs = 10; + * */ public Builder removeEventNotificationConfigs(int index) { if (eventNotificationConfigsBuilder_ == null) { @@ -1690,6 +1865,8 @@ public Builder removeEventNotificationConfigs(int index) { return this; } /** + * + * *
      * The configuration for notification of telemetry events received from the
      * device. All telemetry events that were successfully published by the
@@ -1702,13 +1879,16 @@ public Builder removeEventNotificationConfigs(int index) {
      * configurations may be provided.
      * 
* - * repeated .google.cloud.iot.v1.EventNotificationConfig event_notification_configs = 10; + * repeated .google.cloud.iot.v1.EventNotificationConfig event_notification_configs = 10; + * */ - public com.google.cloud.iot.v1.EventNotificationConfig.Builder getEventNotificationConfigsBuilder( - int index) { + public com.google.cloud.iot.v1.EventNotificationConfig.Builder + getEventNotificationConfigsBuilder(int index) { return getEventNotificationConfigsFieldBuilder().getBuilder(index); } /** + * + * *
      * The configuration for notification of telemetry events received from the
      * device. All telemetry events that were successfully published by the
@@ -1721,16 +1901,20 @@ public com.google.cloud.iot.v1.EventNotificationConfig.Builder getEventNotificat
      * configurations may be provided.
      * 
* - * repeated .google.cloud.iot.v1.EventNotificationConfig event_notification_configs = 10; + * repeated .google.cloud.iot.v1.EventNotificationConfig event_notification_configs = 10; + * */ - public com.google.cloud.iot.v1.EventNotificationConfigOrBuilder getEventNotificationConfigsOrBuilder( - int index) { + public com.google.cloud.iot.v1.EventNotificationConfigOrBuilder + getEventNotificationConfigsOrBuilder(int index) { if (eventNotificationConfigsBuilder_ == null) { - return eventNotificationConfigs_.get(index); } else { + return eventNotificationConfigs_.get(index); + } else { return eventNotificationConfigsBuilder_.getMessageOrBuilder(index); } } /** + * + * *
      * The configuration for notification of telemetry events received from the
      * device. All telemetry events that were successfully published by the
@@ -1743,10 +1927,11 @@ public com.google.cloud.iot.v1.EventNotificationConfigOrBuilder getEventNotifica
      * configurations may be provided.
      * 
* - * repeated .google.cloud.iot.v1.EventNotificationConfig event_notification_configs = 10; + * repeated .google.cloud.iot.v1.EventNotificationConfig event_notification_configs = 10; + * */ - public java.util.List - getEventNotificationConfigsOrBuilderList() { + public java.util.List + getEventNotificationConfigsOrBuilderList() { if (eventNotificationConfigsBuilder_ != null) { return eventNotificationConfigsBuilder_.getMessageOrBuilderList(); } else { @@ -1754,6 +1939,8 @@ public com.google.cloud.iot.v1.EventNotificationConfigOrBuilder getEventNotifica } } /** + * + * *
      * The configuration for notification of telemetry events received from the
      * device. All telemetry events that were successfully published by the
@@ -1766,13 +1953,17 @@ public com.google.cloud.iot.v1.EventNotificationConfigOrBuilder getEventNotifica
      * configurations may be provided.
      * 
* - * repeated .google.cloud.iot.v1.EventNotificationConfig event_notification_configs = 10; + * repeated .google.cloud.iot.v1.EventNotificationConfig event_notification_configs = 10; + * */ - public com.google.cloud.iot.v1.EventNotificationConfig.Builder addEventNotificationConfigsBuilder() { - return getEventNotificationConfigsFieldBuilder().addBuilder( - com.google.cloud.iot.v1.EventNotificationConfig.getDefaultInstance()); + public com.google.cloud.iot.v1.EventNotificationConfig.Builder + addEventNotificationConfigsBuilder() { + return getEventNotificationConfigsFieldBuilder() + .addBuilder(com.google.cloud.iot.v1.EventNotificationConfig.getDefaultInstance()); } /** + * + * *
      * The configuration for notification of telemetry events received from the
      * device. All telemetry events that were successfully published by the
@@ -1785,14 +1976,17 @@ public com.google.cloud.iot.v1.EventNotificationConfig.Builder addEventNotificat
      * configurations may be provided.
      * 
* - * repeated .google.cloud.iot.v1.EventNotificationConfig event_notification_configs = 10; + * repeated .google.cloud.iot.v1.EventNotificationConfig event_notification_configs = 10; + * */ - public com.google.cloud.iot.v1.EventNotificationConfig.Builder addEventNotificationConfigsBuilder( - int index) { - return getEventNotificationConfigsFieldBuilder().addBuilder( - index, com.google.cloud.iot.v1.EventNotificationConfig.getDefaultInstance()); + public com.google.cloud.iot.v1.EventNotificationConfig.Builder + addEventNotificationConfigsBuilder(int index) { + return getEventNotificationConfigsFieldBuilder() + .addBuilder(index, com.google.cloud.iot.v1.EventNotificationConfig.getDefaultInstance()); } /** + * + * *
      * The configuration for notification of telemetry events received from the
      * device. All telemetry events that were successfully published by the
@@ -1805,18 +1999,25 @@ public com.google.cloud.iot.v1.EventNotificationConfig.Builder addEventNotificat
      * configurations may be provided.
      * 
* - * repeated .google.cloud.iot.v1.EventNotificationConfig event_notification_configs = 10; + * repeated .google.cloud.iot.v1.EventNotificationConfig event_notification_configs = 10; + * */ - public java.util.List - getEventNotificationConfigsBuilderList() { + public java.util.List + getEventNotificationConfigsBuilderList() { return getEventNotificationConfigsFieldBuilder().getBuilderList(); } + private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.iot.v1.EventNotificationConfig, com.google.cloud.iot.v1.EventNotificationConfig.Builder, com.google.cloud.iot.v1.EventNotificationConfigOrBuilder> + com.google.cloud.iot.v1.EventNotificationConfig, + com.google.cloud.iot.v1.EventNotificationConfig.Builder, + com.google.cloud.iot.v1.EventNotificationConfigOrBuilder> getEventNotificationConfigsFieldBuilder() { if (eventNotificationConfigsBuilder_ == null) { - eventNotificationConfigsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.iot.v1.EventNotificationConfig, com.google.cloud.iot.v1.EventNotificationConfig.Builder, com.google.cloud.iot.v1.EventNotificationConfigOrBuilder>( + eventNotificationConfigsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.iot.v1.EventNotificationConfig, + com.google.cloud.iot.v1.EventNotificationConfig.Builder, + com.google.cloud.iot.v1.EventNotificationConfigOrBuilder>( eventNotificationConfigs_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), @@ -1828,8 +2029,13 @@ public com.google.cloud.iot.v1.EventNotificationConfig.Builder addEventNotificat private com.google.cloud.iot.v1.StateNotificationConfig stateNotificationConfig_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.iot.v1.StateNotificationConfig, com.google.cloud.iot.v1.StateNotificationConfig.Builder, com.google.cloud.iot.v1.StateNotificationConfigOrBuilder> stateNotificationConfigBuilder_; + com.google.cloud.iot.v1.StateNotificationConfig, + com.google.cloud.iot.v1.StateNotificationConfig.Builder, + com.google.cloud.iot.v1.StateNotificationConfigOrBuilder> + stateNotificationConfigBuilder_; /** + * + * *
      * The configuration for notification of new states received from the device.
      * State updates are guaranteed to be stored in the state history, but
@@ -1840,12 +2046,15 @@ public com.google.cloud.iot.v1.EventNotificationConfig.Builder addEventNotificat
      * 
* * .google.cloud.iot.v1.StateNotificationConfig state_notification_config = 7; + * * @return Whether the stateNotificationConfig field is set. */ public boolean hasStateNotificationConfig() { return stateNotificationConfigBuilder_ != null || stateNotificationConfig_ != null; } /** + * + * *
      * The configuration for notification of new states received from the device.
      * State updates are guaranteed to be stored in the state history, but
@@ -1856,16 +2065,21 @@ public boolean hasStateNotificationConfig() {
      * 
* * .google.cloud.iot.v1.StateNotificationConfig state_notification_config = 7; + * * @return The stateNotificationConfig. */ public com.google.cloud.iot.v1.StateNotificationConfig getStateNotificationConfig() { if (stateNotificationConfigBuilder_ == null) { - return stateNotificationConfig_ == null ? com.google.cloud.iot.v1.StateNotificationConfig.getDefaultInstance() : stateNotificationConfig_; + return stateNotificationConfig_ == null + ? com.google.cloud.iot.v1.StateNotificationConfig.getDefaultInstance() + : stateNotificationConfig_; } else { return stateNotificationConfigBuilder_.getMessage(); } } /** + * + * *
      * The configuration for notification of new states received from the device.
      * State updates are guaranteed to be stored in the state history, but
@@ -1877,7 +2091,8 @@ public com.google.cloud.iot.v1.StateNotificationConfig getStateNotificationConfi
      *
      * .google.cloud.iot.v1.StateNotificationConfig state_notification_config = 7;
      */
-    public Builder setStateNotificationConfig(com.google.cloud.iot.v1.StateNotificationConfig value) {
+    public Builder setStateNotificationConfig(
+        com.google.cloud.iot.v1.StateNotificationConfig value) {
       if (stateNotificationConfigBuilder_ == null) {
         if (value == null) {
           throw new NullPointerException();
@@ -1891,6 +2106,8 @@ public Builder setStateNotificationConfig(com.google.cloud.iot.v1.StateNotificat
       return this;
     }
     /**
+     *
+     *
      * 
      * The configuration for notification of new states received from the device.
      * State updates are guaranteed to be stored in the state history, but
@@ -1914,6 +2131,8 @@ public Builder setStateNotificationConfig(
       return this;
     }
     /**
+     *
+     *
      * 
      * The configuration for notification of new states received from the device.
      * State updates are guaranteed to be stored in the state history, but
@@ -1925,11 +2144,14 @@ public Builder setStateNotificationConfig(
      *
      * .google.cloud.iot.v1.StateNotificationConfig state_notification_config = 7;
      */
-    public Builder mergeStateNotificationConfig(com.google.cloud.iot.v1.StateNotificationConfig value) {
+    public Builder mergeStateNotificationConfig(
+        com.google.cloud.iot.v1.StateNotificationConfig value) {
       if (stateNotificationConfigBuilder_ == null) {
         if (stateNotificationConfig_ != null) {
           stateNotificationConfig_ =
-            com.google.cloud.iot.v1.StateNotificationConfig.newBuilder(stateNotificationConfig_).mergeFrom(value).buildPartial();
+              com.google.cloud.iot.v1.StateNotificationConfig.newBuilder(stateNotificationConfig_)
+                  .mergeFrom(value)
+                  .buildPartial();
         } else {
           stateNotificationConfig_ = value;
         }
@@ -1941,6 +2163,8 @@ public Builder mergeStateNotificationConfig(com.google.cloud.iot.v1.StateNotific
       return this;
     }
     /**
+     *
+     *
      * 
      * The configuration for notification of new states received from the device.
      * State updates are guaranteed to be stored in the state history, but
@@ -1964,6 +2188,8 @@ public Builder clearStateNotificationConfig() {
       return this;
     }
     /**
+     *
+     *
      * 
      * The configuration for notification of new states received from the device.
      * State updates are guaranteed to be stored in the state history, but
@@ -1975,12 +2201,15 @@ public Builder clearStateNotificationConfig() {
      *
      * .google.cloud.iot.v1.StateNotificationConfig state_notification_config = 7;
      */
-    public com.google.cloud.iot.v1.StateNotificationConfig.Builder getStateNotificationConfigBuilder() {
-      
+    public com.google.cloud.iot.v1.StateNotificationConfig.Builder
+        getStateNotificationConfigBuilder() {
+
       onChanged();
       return getStateNotificationConfigFieldBuilder().getBuilder();
     }
     /**
+     *
+     *
      * 
      * The configuration for notification of new states received from the device.
      * State updates are guaranteed to be stored in the state history, but
@@ -1992,15 +2221,19 @@ public com.google.cloud.iot.v1.StateNotificationConfig.Builder getStateNotificat
      *
      * .google.cloud.iot.v1.StateNotificationConfig state_notification_config = 7;
      */
-    public com.google.cloud.iot.v1.StateNotificationConfigOrBuilder getStateNotificationConfigOrBuilder() {
+    public com.google.cloud.iot.v1.StateNotificationConfigOrBuilder
+        getStateNotificationConfigOrBuilder() {
       if (stateNotificationConfigBuilder_ != null) {
         return stateNotificationConfigBuilder_.getMessageOrBuilder();
       } else {
-        return stateNotificationConfig_ == null ?
-            com.google.cloud.iot.v1.StateNotificationConfig.getDefaultInstance() : stateNotificationConfig_;
+        return stateNotificationConfig_ == null
+            ? com.google.cloud.iot.v1.StateNotificationConfig.getDefaultInstance()
+            : stateNotificationConfig_;
       }
     }
     /**
+     *
+     *
      * 
      * The configuration for notification of new states received from the device.
      * State updates are guaranteed to be stored in the state history, but
@@ -2013,14 +2246,17 @@ public com.google.cloud.iot.v1.StateNotificationConfigOrBuilder getStateNotifica
      * .google.cloud.iot.v1.StateNotificationConfig state_notification_config = 7;
      */
     private com.google.protobuf.SingleFieldBuilderV3<
-        com.google.cloud.iot.v1.StateNotificationConfig, com.google.cloud.iot.v1.StateNotificationConfig.Builder, com.google.cloud.iot.v1.StateNotificationConfigOrBuilder> 
+            com.google.cloud.iot.v1.StateNotificationConfig,
+            com.google.cloud.iot.v1.StateNotificationConfig.Builder,
+            com.google.cloud.iot.v1.StateNotificationConfigOrBuilder>
         getStateNotificationConfigFieldBuilder() {
       if (stateNotificationConfigBuilder_ == null) {
-        stateNotificationConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
-            com.google.cloud.iot.v1.StateNotificationConfig, com.google.cloud.iot.v1.StateNotificationConfig.Builder, com.google.cloud.iot.v1.StateNotificationConfigOrBuilder>(
-                getStateNotificationConfig(),
-                getParentForChildren(),
-                isClean());
+        stateNotificationConfigBuilder_ =
+            new com.google.protobuf.SingleFieldBuilderV3<
+                com.google.cloud.iot.v1.StateNotificationConfig,
+                com.google.cloud.iot.v1.StateNotificationConfig.Builder,
+                com.google.cloud.iot.v1.StateNotificationConfigOrBuilder>(
+                getStateNotificationConfig(), getParentForChildren(), isClean());
         stateNotificationConfig_ = null;
       }
       return stateNotificationConfigBuilder_;
@@ -2028,34 +2264,47 @@ public com.google.cloud.iot.v1.StateNotificationConfigOrBuilder getStateNotifica
 
     private com.google.cloud.iot.v1.MqttConfig mqttConfig_;
     private com.google.protobuf.SingleFieldBuilderV3<
-        com.google.cloud.iot.v1.MqttConfig, com.google.cloud.iot.v1.MqttConfig.Builder, com.google.cloud.iot.v1.MqttConfigOrBuilder> mqttConfigBuilder_;
+            com.google.cloud.iot.v1.MqttConfig,
+            com.google.cloud.iot.v1.MqttConfig.Builder,
+            com.google.cloud.iot.v1.MqttConfigOrBuilder>
+        mqttConfigBuilder_;
     /**
+     *
+     *
      * 
      * The MQTT configuration for this device registry.
      * 
* * .google.cloud.iot.v1.MqttConfig mqtt_config = 4; + * * @return Whether the mqttConfig field is set. */ public boolean hasMqttConfig() { return mqttConfigBuilder_ != null || mqttConfig_ != null; } /** + * + * *
      * The MQTT configuration for this device registry.
      * 
* * .google.cloud.iot.v1.MqttConfig mqtt_config = 4; + * * @return The mqttConfig. */ public com.google.cloud.iot.v1.MqttConfig getMqttConfig() { if (mqttConfigBuilder_ == null) { - return mqttConfig_ == null ? com.google.cloud.iot.v1.MqttConfig.getDefaultInstance() : mqttConfig_; + return mqttConfig_ == null + ? com.google.cloud.iot.v1.MqttConfig.getDefaultInstance() + : mqttConfig_; } else { return mqttConfigBuilder_.getMessage(); } } /** + * + * *
      * The MQTT configuration for this device registry.
      * 
@@ -2076,14 +2325,15 @@ public Builder setMqttConfig(com.google.cloud.iot.v1.MqttConfig value) { return this; } /** + * + * *
      * The MQTT configuration for this device registry.
      * 
* * .google.cloud.iot.v1.MqttConfig mqtt_config = 4; */ - public Builder setMqttConfig( - com.google.cloud.iot.v1.MqttConfig.Builder builderForValue) { + public Builder setMqttConfig(com.google.cloud.iot.v1.MqttConfig.Builder builderForValue) { if (mqttConfigBuilder_ == null) { mqttConfig_ = builderForValue.build(); onChanged(); @@ -2094,6 +2344,8 @@ public Builder setMqttConfig( return this; } /** + * + * *
      * The MQTT configuration for this device registry.
      * 
@@ -2104,7 +2356,9 @@ public Builder mergeMqttConfig(com.google.cloud.iot.v1.MqttConfig value) { if (mqttConfigBuilder_ == null) { if (mqttConfig_ != null) { mqttConfig_ = - com.google.cloud.iot.v1.MqttConfig.newBuilder(mqttConfig_).mergeFrom(value).buildPartial(); + com.google.cloud.iot.v1.MqttConfig.newBuilder(mqttConfig_) + .mergeFrom(value) + .buildPartial(); } else { mqttConfig_ = value; } @@ -2116,6 +2370,8 @@ public Builder mergeMqttConfig(com.google.cloud.iot.v1.MqttConfig value) { return this; } /** + * + * *
      * The MQTT configuration for this device registry.
      * 
@@ -2134,6 +2390,8 @@ public Builder clearMqttConfig() { return this; } /** + * + * *
      * The MQTT configuration for this device registry.
      * 
@@ -2141,11 +2399,13 @@ public Builder clearMqttConfig() { * .google.cloud.iot.v1.MqttConfig mqtt_config = 4; */ public com.google.cloud.iot.v1.MqttConfig.Builder getMqttConfigBuilder() { - + onChanged(); return getMqttConfigFieldBuilder().getBuilder(); } /** + * + * *
      * The MQTT configuration for this device registry.
      * 
@@ -2156,11 +2416,14 @@ public com.google.cloud.iot.v1.MqttConfigOrBuilder getMqttConfigOrBuilder() { if (mqttConfigBuilder_ != null) { return mqttConfigBuilder_.getMessageOrBuilder(); } else { - return mqttConfig_ == null ? - com.google.cloud.iot.v1.MqttConfig.getDefaultInstance() : mqttConfig_; + return mqttConfig_ == null + ? com.google.cloud.iot.v1.MqttConfig.getDefaultInstance() + : mqttConfig_; } } /** + * + * *
      * The MQTT configuration for this device registry.
      * 
@@ -2168,14 +2431,17 @@ public com.google.cloud.iot.v1.MqttConfigOrBuilder getMqttConfigOrBuilder() { * .google.cloud.iot.v1.MqttConfig mqtt_config = 4; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.iot.v1.MqttConfig, com.google.cloud.iot.v1.MqttConfig.Builder, com.google.cloud.iot.v1.MqttConfigOrBuilder> + com.google.cloud.iot.v1.MqttConfig, + com.google.cloud.iot.v1.MqttConfig.Builder, + com.google.cloud.iot.v1.MqttConfigOrBuilder> getMqttConfigFieldBuilder() { if (mqttConfigBuilder_ == null) { - mqttConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.iot.v1.MqttConfig, com.google.cloud.iot.v1.MqttConfig.Builder, com.google.cloud.iot.v1.MqttConfigOrBuilder>( - getMqttConfig(), - getParentForChildren(), - isClean()); + mqttConfigBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.iot.v1.MqttConfig, + com.google.cloud.iot.v1.MqttConfig.Builder, + com.google.cloud.iot.v1.MqttConfigOrBuilder>( + getMqttConfig(), getParentForChildren(), isClean()); mqttConfig_ = null; } return mqttConfigBuilder_; @@ -2183,34 +2449,47 @@ public com.google.cloud.iot.v1.MqttConfigOrBuilder getMqttConfigOrBuilder() { private com.google.cloud.iot.v1.HttpConfig httpConfig_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.iot.v1.HttpConfig, com.google.cloud.iot.v1.HttpConfig.Builder, com.google.cloud.iot.v1.HttpConfigOrBuilder> httpConfigBuilder_; + com.google.cloud.iot.v1.HttpConfig, + com.google.cloud.iot.v1.HttpConfig.Builder, + com.google.cloud.iot.v1.HttpConfigOrBuilder> + httpConfigBuilder_; /** + * + * *
      * The DeviceService (HTTP) configuration for this device registry.
      * 
* * .google.cloud.iot.v1.HttpConfig http_config = 9; + * * @return Whether the httpConfig field is set. */ public boolean hasHttpConfig() { return httpConfigBuilder_ != null || httpConfig_ != null; } /** + * + * *
      * The DeviceService (HTTP) configuration for this device registry.
      * 
* * .google.cloud.iot.v1.HttpConfig http_config = 9; + * * @return The httpConfig. */ public com.google.cloud.iot.v1.HttpConfig getHttpConfig() { if (httpConfigBuilder_ == null) { - return httpConfig_ == null ? com.google.cloud.iot.v1.HttpConfig.getDefaultInstance() : httpConfig_; + return httpConfig_ == null + ? com.google.cloud.iot.v1.HttpConfig.getDefaultInstance() + : httpConfig_; } else { return httpConfigBuilder_.getMessage(); } } /** + * + * *
      * The DeviceService (HTTP) configuration for this device registry.
      * 
@@ -2231,14 +2510,15 @@ public Builder setHttpConfig(com.google.cloud.iot.v1.HttpConfig value) { return this; } /** + * + * *
      * The DeviceService (HTTP) configuration for this device registry.
      * 
* * .google.cloud.iot.v1.HttpConfig http_config = 9; */ - public Builder setHttpConfig( - com.google.cloud.iot.v1.HttpConfig.Builder builderForValue) { + public Builder setHttpConfig(com.google.cloud.iot.v1.HttpConfig.Builder builderForValue) { if (httpConfigBuilder_ == null) { httpConfig_ = builderForValue.build(); onChanged(); @@ -2249,6 +2529,8 @@ public Builder setHttpConfig( return this; } /** + * + * *
      * The DeviceService (HTTP) configuration for this device registry.
      * 
@@ -2259,7 +2541,9 @@ public Builder mergeHttpConfig(com.google.cloud.iot.v1.HttpConfig value) { if (httpConfigBuilder_ == null) { if (httpConfig_ != null) { httpConfig_ = - com.google.cloud.iot.v1.HttpConfig.newBuilder(httpConfig_).mergeFrom(value).buildPartial(); + com.google.cloud.iot.v1.HttpConfig.newBuilder(httpConfig_) + .mergeFrom(value) + .buildPartial(); } else { httpConfig_ = value; } @@ -2271,6 +2555,8 @@ public Builder mergeHttpConfig(com.google.cloud.iot.v1.HttpConfig value) { return this; } /** + * + * *
      * The DeviceService (HTTP) configuration for this device registry.
      * 
@@ -2289,6 +2575,8 @@ public Builder clearHttpConfig() { return this; } /** + * + * *
      * The DeviceService (HTTP) configuration for this device registry.
      * 
@@ -2296,11 +2584,13 @@ public Builder clearHttpConfig() { * .google.cloud.iot.v1.HttpConfig http_config = 9; */ public com.google.cloud.iot.v1.HttpConfig.Builder getHttpConfigBuilder() { - + onChanged(); return getHttpConfigFieldBuilder().getBuilder(); } /** + * + * *
      * The DeviceService (HTTP) configuration for this device registry.
      * 
@@ -2311,11 +2601,14 @@ public com.google.cloud.iot.v1.HttpConfigOrBuilder getHttpConfigOrBuilder() { if (httpConfigBuilder_ != null) { return httpConfigBuilder_.getMessageOrBuilder(); } else { - return httpConfig_ == null ? - com.google.cloud.iot.v1.HttpConfig.getDefaultInstance() : httpConfig_; + return httpConfig_ == null + ? com.google.cloud.iot.v1.HttpConfig.getDefaultInstance() + : httpConfig_; } } /** + * + * *
      * The DeviceService (HTTP) configuration for this device registry.
      * 
@@ -2323,14 +2616,17 @@ public com.google.cloud.iot.v1.HttpConfigOrBuilder getHttpConfigOrBuilder() { * .google.cloud.iot.v1.HttpConfig http_config = 9; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.iot.v1.HttpConfig, com.google.cloud.iot.v1.HttpConfig.Builder, com.google.cloud.iot.v1.HttpConfigOrBuilder> + com.google.cloud.iot.v1.HttpConfig, + com.google.cloud.iot.v1.HttpConfig.Builder, + com.google.cloud.iot.v1.HttpConfigOrBuilder> getHttpConfigFieldBuilder() { if (httpConfigBuilder_ == null) { - httpConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.iot.v1.HttpConfig, com.google.cloud.iot.v1.HttpConfig.Builder, com.google.cloud.iot.v1.HttpConfigOrBuilder>( - getHttpConfig(), - getParentForChildren(), - isClean()); + httpConfigBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.iot.v1.HttpConfig, + com.google.cloud.iot.v1.HttpConfig.Builder, + com.google.cloud.iot.v1.HttpConfigOrBuilder>( + getHttpConfig(), getParentForChildren(), isClean()); httpConfig_ = null; } return httpConfigBuilder_; @@ -2338,6 +2634,8 @@ public com.google.cloud.iot.v1.HttpConfigOrBuilder getHttpConfigOrBuilder() { private int logLevel_ = 0; /** + * + * *
      * **Beta Feature**
      * The default logging verbosity for activity from devices in this registry.
@@ -2345,12 +2643,16 @@ public com.google.cloud.iot.v1.HttpConfigOrBuilder getHttpConfigOrBuilder() {
      * 
* * .google.cloud.iot.v1.LogLevel log_level = 11; + * * @return The enum numeric value on the wire for logLevel. */ - @java.lang.Override public int getLogLevelValue() { + @java.lang.Override + public int getLogLevelValue() { return logLevel_; } /** + * + * *
      * **Beta Feature**
      * The default logging verbosity for activity from devices in this registry.
@@ -2358,16 +2660,19 @@ public com.google.cloud.iot.v1.HttpConfigOrBuilder getHttpConfigOrBuilder() {
      * 
* * .google.cloud.iot.v1.LogLevel log_level = 11; + * * @param value The enum numeric value on the wire for logLevel to set. * @return This builder for chaining. */ public Builder setLogLevelValue(int value) { - + logLevel_ = value; onChanged(); return this; } /** + * + * *
      * **Beta Feature**
      * The default logging verbosity for activity from devices in this registry.
@@ -2375,6 +2680,7 @@ public Builder setLogLevelValue(int value) {
      * 
* * .google.cloud.iot.v1.LogLevel log_level = 11; + * * @return The logLevel. */ @java.lang.Override @@ -2384,6 +2690,8 @@ public com.google.cloud.iot.v1.LogLevel getLogLevel() { return result == null ? com.google.cloud.iot.v1.LogLevel.UNRECOGNIZED : result; } /** + * + * *
      * **Beta Feature**
      * The default logging verbosity for activity from devices in this registry.
@@ -2391,6 +2699,7 @@ public com.google.cloud.iot.v1.LogLevel getLogLevel() {
      * 
* * .google.cloud.iot.v1.LogLevel log_level = 11; + * * @param value The logLevel to set. * @return This builder for chaining. */ @@ -2398,12 +2707,14 @@ public Builder setLogLevel(com.google.cloud.iot.v1.LogLevel value) { if (value == null) { throw new NullPointerException(); } - + logLevel_ = value.getNumber(); onChanged(); return this; } /** + * + * *
      * **Beta Feature**
      * The default logging verbosity for activity from devices in this registry.
@@ -2411,28 +2722,36 @@ public Builder setLogLevel(com.google.cloud.iot.v1.LogLevel value) {
      * 
* * .google.cloud.iot.v1.LogLevel log_level = 11; + * * @return This builder for chaining. */ public Builder clearLogLevel() { - + logLevel_ = 0; onChanged(); return this; } private java.util.List credentials_ = - java.util.Collections.emptyList(); + java.util.Collections.emptyList(); + private void ensureCredentialsIsMutable() { if (!((bitField0_ & 0x00000002) != 0)) { - credentials_ = new java.util.ArrayList(credentials_); + credentials_ = + new java.util.ArrayList(credentials_); bitField0_ |= 0x00000002; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.iot.v1.RegistryCredential, com.google.cloud.iot.v1.RegistryCredential.Builder, com.google.cloud.iot.v1.RegistryCredentialOrBuilder> credentialsBuilder_; + com.google.cloud.iot.v1.RegistryCredential, + com.google.cloud.iot.v1.RegistryCredential.Builder, + com.google.cloud.iot.v1.RegistryCredentialOrBuilder> + credentialsBuilder_; /** + * + * *
      * The credentials used to verify the device credentials. No more than 10
      * credentials can be bound to a single registry at a time. The verification
@@ -2456,6 +2775,8 @@ public java.util.List getCredentials
       }
     }
     /**
+     *
+     *
      * 
      * The credentials used to verify the device credentials. No more than 10
      * credentials can be bound to a single registry at a time. The verification
@@ -2479,6 +2800,8 @@ public int getCredentialsCount() {
       }
     }
     /**
+     *
+     *
      * 
      * The credentials used to verify the device credentials. No more than 10
      * credentials can be bound to a single registry at a time. The verification
@@ -2502,6 +2825,8 @@ public com.google.cloud.iot.v1.RegistryCredential getCredentials(int index) {
       }
     }
     /**
+     *
+     *
      * 
      * The credentials used to verify the device credentials. No more than 10
      * credentials can be bound to a single registry at a time. The verification
@@ -2517,8 +2842,7 @@ public com.google.cloud.iot.v1.RegistryCredential getCredentials(int index) {
      *
      * repeated .google.cloud.iot.v1.RegistryCredential credentials = 8;
      */
-    public Builder setCredentials(
-        int index, com.google.cloud.iot.v1.RegistryCredential value) {
+    public Builder setCredentials(int index, com.google.cloud.iot.v1.RegistryCredential value) {
       if (credentialsBuilder_ == null) {
         if (value == null) {
           throw new NullPointerException();
@@ -2532,6 +2856,8 @@ public Builder setCredentials(
       return this;
     }
     /**
+     *
+     *
      * 
      * The credentials used to verify the device credentials. No more than 10
      * credentials can be bound to a single registry at a time. The verification
@@ -2559,6 +2885,8 @@ public Builder setCredentials(
       return this;
     }
     /**
+     *
+     *
      * 
      * The credentials used to verify the device credentials. No more than 10
      * credentials can be bound to a single registry at a time. The verification
@@ -2588,6 +2916,8 @@ public Builder addCredentials(com.google.cloud.iot.v1.RegistryCredential value)
       return this;
     }
     /**
+     *
+     *
      * 
      * The credentials used to verify the device credentials. No more than 10
      * credentials can be bound to a single registry at a time. The verification
@@ -2603,8 +2933,7 @@ public Builder addCredentials(com.google.cloud.iot.v1.RegistryCredential value)
      *
      * repeated .google.cloud.iot.v1.RegistryCredential credentials = 8;
      */
-    public Builder addCredentials(
-        int index, com.google.cloud.iot.v1.RegistryCredential value) {
+    public Builder addCredentials(int index, com.google.cloud.iot.v1.RegistryCredential value) {
       if (credentialsBuilder_ == null) {
         if (value == null) {
           throw new NullPointerException();
@@ -2618,6 +2947,8 @@ public Builder addCredentials(
       return this;
     }
     /**
+     *
+     *
      * 
      * The credentials used to verify the device credentials. No more than 10
      * credentials can be bound to a single registry at a time. The verification
@@ -2645,6 +2976,8 @@ public Builder addCredentials(
       return this;
     }
     /**
+     *
+     *
      * 
      * The credentials used to verify the device credentials. No more than 10
      * credentials can be bound to a single registry at a time. The verification
@@ -2672,6 +3005,8 @@ public Builder addCredentials(
       return this;
     }
     /**
+     *
+     *
      * 
      * The credentials used to verify the device credentials. No more than 10
      * credentials can be bound to a single registry at a time. The verification
@@ -2691,8 +3026,7 @@ public Builder addAllCredentials(
         java.lang.Iterable values) {
       if (credentialsBuilder_ == null) {
         ensureCredentialsIsMutable();
-        com.google.protobuf.AbstractMessageLite.Builder.addAll(
-            values, credentials_);
+        com.google.protobuf.AbstractMessageLite.Builder.addAll(values, credentials_);
         onChanged();
       } else {
         credentialsBuilder_.addAllMessages(values);
@@ -2700,6 +3034,8 @@ public Builder addAllCredentials(
       return this;
     }
     /**
+     *
+     *
      * 
      * The credentials used to verify the device credentials. No more than 10
      * credentials can be bound to a single registry at a time. The verification
@@ -2726,6 +3062,8 @@ public Builder clearCredentials() {
       return this;
     }
     /**
+     *
+     *
      * 
      * The credentials used to verify the device credentials. No more than 10
      * credentials can be bound to a single registry at a time. The verification
@@ -2752,6 +3090,8 @@ public Builder removeCredentials(int index) {
       return this;
     }
     /**
+     *
+     *
      * 
      * The credentials used to verify the device credentials. No more than 10
      * credentials can be bound to a single registry at a time. The verification
@@ -2767,11 +3107,12 @@ public Builder removeCredentials(int index) {
      *
      * repeated .google.cloud.iot.v1.RegistryCredential credentials = 8;
      */
-    public com.google.cloud.iot.v1.RegistryCredential.Builder getCredentialsBuilder(
-        int index) {
+    public com.google.cloud.iot.v1.RegistryCredential.Builder getCredentialsBuilder(int index) {
       return getCredentialsFieldBuilder().getBuilder(index);
     }
     /**
+     *
+     *
      * 
      * The credentials used to verify the device credentials. No more than 10
      * credentials can be bound to a single registry at a time. The verification
@@ -2787,14 +3128,16 @@ public com.google.cloud.iot.v1.RegistryCredential.Builder getCredentialsBuilder(
      *
      * repeated .google.cloud.iot.v1.RegistryCredential credentials = 8;
      */
-    public com.google.cloud.iot.v1.RegistryCredentialOrBuilder getCredentialsOrBuilder(
-        int index) {
+    public com.google.cloud.iot.v1.RegistryCredentialOrBuilder getCredentialsOrBuilder(int index) {
       if (credentialsBuilder_ == null) {
-        return credentials_.get(index);  } else {
+        return credentials_.get(index);
+      } else {
         return credentialsBuilder_.getMessageOrBuilder(index);
       }
     }
     /**
+     *
+     *
      * 
      * The credentials used to verify the device credentials. No more than 10
      * credentials can be bound to a single registry at a time. The verification
@@ -2810,8 +3153,8 @@ public com.google.cloud.iot.v1.RegistryCredentialOrBuilder getCredentialsOrBuild
      *
      * repeated .google.cloud.iot.v1.RegistryCredential credentials = 8;
      */
-    public java.util.List 
-         getCredentialsOrBuilderList() {
+    public java.util.List
+        getCredentialsOrBuilderList() {
       if (credentialsBuilder_ != null) {
         return credentialsBuilder_.getMessageOrBuilderList();
       } else {
@@ -2819,6 +3162,8 @@ public com.google.cloud.iot.v1.RegistryCredentialOrBuilder getCredentialsOrBuild
       }
     }
     /**
+     *
+     *
      * 
      * The credentials used to verify the device credentials. No more than 10
      * credentials can be bound to a single registry at a time. The verification
@@ -2835,10 +3180,12 @@ public com.google.cloud.iot.v1.RegistryCredentialOrBuilder getCredentialsOrBuild
      * repeated .google.cloud.iot.v1.RegistryCredential credentials = 8;
      */
     public com.google.cloud.iot.v1.RegistryCredential.Builder addCredentialsBuilder() {
-      return getCredentialsFieldBuilder().addBuilder(
-          com.google.cloud.iot.v1.RegistryCredential.getDefaultInstance());
+      return getCredentialsFieldBuilder()
+          .addBuilder(com.google.cloud.iot.v1.RegistryCredential.getDefaultInstance());
     }
     /**
+     *
+     *
      * 
      * The credentials used to verify the device credentials. No more than 10
      * credentials can be bound to a single registry at a time. The verification
@@ -2854,12 +3201,13 @@ public com.google.cloud.iot.v1.RegistryCredential.Builder addCredentialsBuilder(
      *
      * repeated .google.cloud.iot.v1.RegistryCredential credentials = 8;
      */
-    public com.google.cloud.iot.v1.RegistryCredential.Builder addCredentialsBuilder(
-        int index) {
-      return getCredentialsFieldBuilder().addBuilder(
-          index, com.google.cloud.iot.v1.RegistryCredential.getDefaultInstance());
+    public com.google.cloud.iot.v1.RegistryCredential.Builder addCredentialsBuilder(int index) {
+      return getCredentialsFieldBuilder()
+          .addBuilder(index, com.google.cloud.iot.v1.RegistryCredential.getDefaultInstance());
     }
     /**
+     *
+     *
      * 
      * The credentials used to verify the device credentials. No more than 10
      * credentials can be bound to a single registry at a time. The verification
@@ -2875,27 +3223,30 @@ public com.google.cloud.iot.v1.RegistryCredential.Builder addCredentialsBuilder(
      *
      * repeated .google.cloud.iot.v1.RegistryCredential credentials = 8;
      */
-    public java.util.List 
-         getCredentialsBuilderList() {
+    public java.util.List
+        getCredentialsBuilderList() {
       return getCredentialsFieldBuilder().getBuilderList();
     }
+
     private com.google.protobuf.RepeatedFieldBuilderV3<
-        com.google.cloud.iot.v1.RegistryCredential, com.google.cloud.iot.v1.RegistryCredential.Builder, com.google.cloud.iot.v1.RegistryCredentialOrBuilder> 
+            com.google.cloud.iot.v1.RegistryCredential,
+            com.google.cloud.iot.v1.RegistryCredential.Builder,
+            com.google.cloud.iot.v1.RegistryCredentialOrBuilder>
         getCredentialsFieldBuilder() {
       if (credentialsBuilder_ == null) {
-        credentialsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
-            com.google.cloud.iot.v1.RegistryCredential, com.google.cloud.iot.v1.RegistryCredential.Builder, com.google.cloud.iot.v1.RegistryCredentialOrBuilder>(
-                credentials_,
-                ((bitField0_ & 0x00000002) != 0),
-                getParentForChildren(),
-                isClean());
+        credentialsBuilder_ =
+            new com.google.protobuf.RepeatedFieldBuilderV3<
+                com.google.cloud.iot.v1.RegistryCredential,
+                com.google.cloud.iot.v1.RegistryCredential.Builder,
+                com.google.cloud.iot.v1.RegistryCredentialOrBuilder>(
+                credentials_, ((bitField0_ & 0x00000002) != 0), getParentForChildren(), isClean());
         credentials_ = null;
       }
       return credentialsBuilder_;
     }
+
     @java.lang.Override
-    public final Builder setUnknownFields(
-        final com.google.protobuf.UnknownFieldSet unknownFields) {
+    public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) {
       return super.setUnknownFields(unknownFields);
     }
 
@@ -2905,12 +3256,12 @@ public final Builder mergeUnknownFields(
       return super.mergeUnknownFields(unknownFields);
     }
 
-
     // @@protoc_insertion_point(builder_scope:google.cloud.iot.v1.DeviceRegistry)
   }
 
   // @@protoc_insertion_point(class_scope:google.cloud.iot.v1.DeviceRegistry)
   private static final com.google.cloud.iot.v1.DeviceRegistry DEFAULT_INSTANCE;
+
   static {
     DEFAULT_INSTANCE = new com.google.cloud.iot.v1.DeviceRegistry();
   }
@@ -2919,16 +3270,16 @@ public static com.google.cloud.iot.v1.DeviceRegistry getDefaultInstance() {
     return DEFAULT_INSTANCE;
   }
 
-  private static final com.google.protobuf.Parser
-      PARSER = new com.google.protobuf.AbstractParser() {
-    @java.lang.Override
-    public DeviceRegistry parsePartialFrom(
-        com.google.protobuf.CodedInputStream input,
-        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
-        throws com.google.protobuf.InvalidProtocolBufferException {
-      return new DeviceRegistry(input, extensionRegistry);
-    }
-  };
+  private static final com.google.protobuf.Parser PARSER =
+      new com.google.protobuf.AbstractParser() {
+        @java.lang.Override
+        public DeviceRegistry parsePartialFrom(
+            com.google.protobuf.CodedInputStream input,
+            com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+            throws com.google.protobuf.InvalidProtocolBufferException {
+          return new DeviceRegistry(input, extensionRegistry);
+        }
+      };
 
   public static com.google.protobuf.Parser parser() {
     return PARSER;
@@ -2943,6 +3294,4 @@ public com.google.protobuf.Parser getParserForType() {
   public com.google.cloud.iot.v1.DeviceRegistry getDefaultInstanceForType() {
     return DEFAULT_INSTANCE;
   }
-
 }
-
diff --git a/owl-bot-staging/v1/proto-google-cloud-iot-v1/src/main/java/com/google/cloud/iot/v1/DeviceRegistryOrBuilder.java b/proto-google-cloud-iot-v1/src/main/java/com/google/cloud/iot/v1/DeviceRegistryOrBuilder.java
similarity index 90%
rename from owl-bot-staging/v1/proto-google-cloud-iot-v1/src/main/java/com/google/cloud/iot/v1/DeviceRegistryOrBuilder.java
rename to proto-google-cloud-iot-v1/src/main/java/com/google/cloud/iot/v1/DeviceRegistryOrBuilder.java
index a4108651..21b4b684 100644
--- a/owl-bot-staging/v1/proto-google-cloud-iot-v1/src/main/java/com/google/cloud/iot/v1/DeviceRegistryOrBuilder.java
+++ b/proto-google-cloud-iot-v1/src/main/java/com/google/cloud/iot/v1/DeviceRegistryOrBuilder.java
@@ -1,55 +1,83 @@
+/*
+ * Copyright 2020 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/cloud/iot/v1/resources.proto
 
 package com.google.cloud.iot.v1;
 
-public interface DeviceRegistryOrBuilder extends
+public interface DeviceRegistryOrBuilder
+    extends
     // @@protoc_insertion_point(interface_extends:google.cloud.iot.v1.DeviceRegistry)
     com.google.protobuf.MessageOrBuilder {
 
   /**
+   *
+   *
    * 
    * The identifier of this device registry. For example, `myRegistry`.
    * 
* * string id = 1; + * * @return The id. */ java.lang.String getId(); /** + * + * *
    * The identifier of this device registry. For example, `myRegistry`.
    * 
* * string id = 1; + * * @return The bytes for id. */ - com.google.protobuf.ByteString - getIdBytes(); + com.google.protobuf.ByteString getIdBytes(); /** + * + * *
    * The resource path name. For example,
    * `projects/example-project/locations/us-central1/registries/my-registry`.
    * 
* * string name = 2; + * * @return The name. */ java.lang.String getName(); /** + * + * *
    * The resource path name. For example,
    * `projects/example-project/locations/us-central1/registries/my-registry`.
    * 
* * string name = 2; + * * @return The bytes for name. */ - com.google.protobuf.ByteString - getNameBytes(); + com.google.protobuf.ByteString getNameBytes(); /** + * + * *
    * The configuration for notification of telemetry events received from the
    * device. All telemetry events that were successfully published by the
@@ -62,11 +90,13 @@ public interface DeviceRegistryOrBuilder extends
    * configurations may be provided.
    * 
* - * repeated .google.cloud.iot.v1.EventNotificationConfig event_notification_configs = 10; + * repeated .google.cloud.iot.v1.EventNotificationConfig event_notification_configs = 10; + * */ - java.util.List - getEventNotificationConfigsList(); + java.util.List getEventNotificationConfigsList(); /** + * + * *
    * The configuration for notification of telemetry events received from the
    * device. All telemetry events that were successfully published by the
@@ -79,10 +109,13 @@ public interface DeviceRegistryOrBuilder extends
    * configurations may be provided.
    * 
* - * repeated .google.cloud.iot.v1.EventNotificationConfig event_notification_configs = 10; + * repeated .google.cloud.iot.v1.EventNotificationConfig event_notification_configs = 10; + * */ com.google.cloud.iot.v1.EventNotificationConfig getEventNotificationConfigs(int index); /** + * + * *
    * The configuration for notification of telemetry events received from the
    * device. All telemetry events that were successfully published by the
@@ -95,10 +128,13 @@ public interface DeviceRegistryOrBuilder extends
    * configurations may be provided.
    * 
* - * repeated .google.cloud.iot.v1.EventNotificationConfig event_notification_configs = 10; + * repeated .google.cloud.iot.v1.EventNotificationConfig event_notification_configs = 10; + * */ int getEventNotificationConfigsCount(); /** + * + * *
    * The configuration for notification of telemetry events received from the
    * device. All telemetry events that were successfully published by the
@@ -111,11 +147,14 @@ public interface DeviceRegistryOrBuilder extends
    * configurations may be provided.
    * 
* - * repeated .google.cloud.iot.v1.EventNotificationConfig event_notification_configs = 10; + * repeated .google.cloud.iot.v1.EventNotificationConfig event_notification_configs = 10; + * */ - java.util.List + java.util.List getEventNotificationConfigsOrBuilderList(); /** + * + * *
    * The configuration for notification of telemetry events received from the
    * device. All telemetry events that were successfully published by the
@@ -128,12 +167,15 @@ public interface DeviceRegistryOrBuilder extends
    * configurations may be provided.
    * 
* - * repeated .google.cloud.iot.v1.EventNotificationConfig event_notification_configs = 10; + * repeated .google.cloud.iot.v1.EventNotificationConfig event_notification_configs = 10; + * */ com.google.cloud.iot.v1.EventNotificationConfigOrBuilder getEventNotificationConfigsOrBuilder( int index); /** + * + * *
    * The configuration for notification of new states received from the device.
    * State updates are guaranteed to be stored in the state history, but
@@ -144,10 +186,13 @@ com.google.cloud.iot.v1.EventNotificationConfigOrBuilder getEventNotificationCon
    * 
* * .google.cloud.iot.v1.StateNotificationConfig state_notification_config = 7; + * * @return Whether the stateNotificationConfig field is set. */ boolean hasStateNotificationConfig(); /** + * + * *
    * The configuration for notification of new states received from the device.
    * State updates are guaranteed to be stored in the state history, but
@@ -158,10 +203,13 @@ com.google.cloud.iot.v1.EventNotificationConfigOrBuilder getEventNotificationCon
    * 
* * .google.cloud.iot.v1.StateNotificationConfig state_notification_config = 7; + * * @return The stateNotificationConfig. */ com.google.cloud.iot.v1.StateNotificationConfig getStateNotificationConfig(); /** + * + * *
    * The configuration for notification of new states received from the device.
    * State updates are guaranteed to be stored in the state history, but
@@ -176,24 +224,32 @@ com.google.cloud.iot.v1.EventNotificationConfigOrBuilder getEventNotificationCon
   com.google.cloud.iot.v1.StateNotificationConfigOrBuilder getStateNotificationConfigOrBuilder();
 
   /**
+   *
+   *
    * 
    * The MQTT configuration for this device registry.
    * 
* * .google.cloud.iot.v1.MqttConfig mqtt_config = 4; + * * @return Whether the mqttConfig field is set. */ boolean hasMqttConfig(); /** + * + * *
    * The MQTT configuration for this device registry.
    * 
* * .google.cloud.iot.v1.MqttConfig mqtt_config = 4; + * * @return The mqttConfig. */ com.google.cloud.iot.v1.MqttConfig getMqttConfig(); /** + * + * *
    * The MQTT configuration for this device registry.
    * 
@@ -203,24 +259,32 @@ com.google.cloud.iot.v1.EventNotificationConfigOrBuilder getEventNotificationCon com.google.cloud.iot.v1.MqttConfigOrBuilder getMqttConfigOrBuilder(); /** + * + * *
    * The DeviceService (HTTP) configuration for this device registry.
    * 
* * .google.cloud.iot.v1.HttpConfig http_config = 9; + * * @return Whether the httpConfig field is set. */ boolean hasHttpConfig(); /** + * + * *
    * The DeviceService (HTTP) configuration for this device registry.
    * 
* * .google.cloud.iot.v1.HttpConfig http_config = 9; + * * @return The httpConfig. */ com.google.cloud.iot.v1.HttpConfig getHttpConfig(); /** + * + * *
    * The DeviceService (HTTP) configuration for this device registry.
    * 
@@ -230,6 +294,8 @@ com.google.cloud.iot.v1.EventNotificationConfigOrBuilder getEventNotificationCon com.google.cloud.iot.v1.HttpConfigOrBuilder getHttpConfigOrBuilder(); /** + * + * *
    * **Beta Feature**
    * The default logging verbosity for activity from devices in this registry.
@@ -237,10 +303,13 @@ com.google.cloud.iot.v1.EventNotificationConfigOrBuilder getEventNotificationCon
    * 
* * .google.cloud.iot.v1.LogLevel log_level = 11; + * * @return The enum numeric value on the wire for logLevel. */ int getLogLevelValue(); /** + * + * *
    * **Beta Feature**
    * The default logging verbosity for activity from devices in this registry.
@@ -248,11 +317,14 @@ com.google.cloud.iot.v1.EventNotificationConfigOrBuilder getEventNotificationCon
    * 
* * .google.cloud.iot.v1.LogLevel log_level = 11; + * * @return The logLevel. */ com.google.cloud.iot.v1.LogLevel getLogLevel(); /** + * + * *
    * The credentials used to verify the device credentials. No more than 10
    * credentials can be bound to a single registry at a time. The verification
@@ -268,9 +340,10 @@ com.google.cloud.iot.v1.EventNotificationConfigOrBuilder getEventNotificationCon
    *
    * repeated .google.cloud.iot.v1.RegistryCredential credentials = 8;
    */
-  java.util.List 
-      getCredentialsList();
+  java.util.List getCredentialsList();
   /**
+   *
+   *
    * 
    * The credentials used to verify the device credentials. No more than 10
    * credentials can be bound to a single registry at a time. The verification
@@ -288,6 +361,8 @@ com.google.cloud.iot.v1.EventNotificationConfigOrBuilder getEventNotificationCon
    */
   com.google.cloud.iot.v1.RegistryCredential getCredentials(int index);
   /**
+   *
+   *
    * 
    * The credentials used to verify the device credentials. No more than 10
    * credentials can be bound to a single registry at a time. The verification
@@ -305,6 +380,8 @@ com.google.cloud.iot.v1.EventNotificationConfigOrBuilder getEventNotificationCon
    */
   int getCredentialsCount();
   /**
+   *
+   *
    * 
    * The credentials used to verify the device credentials. No more than 10
    * credentials can be bound to a single registry at a time. The verification
@@ -320,9 +397,11 @@ com.google.cloud.iot.v1.EventNotificationConfigOrBuilder getEventNotificationCon
    *
    * repeated .google.cloud.iot.v1.RegistryCredential credentials = 8;
    */
-  java.util.List 
+  java.util.List
       getCredentialsOrBuilderList();
   /**
+   *
+   *
    * 
    * The credentials used to verify the device credentials. No more than 10
    * credentials can be bound to a single registry at a time. The verification
@@ -338,6 +417,5 @@ com.google.cloud.iot.v1.EventNotificationConfigOrBuilder getEventNotificationCon
    *
    * repeated .google.cloud.iot.v1.RegistryCredential credentials = 8;
    */
-  com.google.cloud.iot.v1.RegistryCredentialOrBuilder getCredentialsOrBuilder(
-      int index);
+  com.google.cloud.iot.v1.RegistryCredentialOrBuilder getCredentialsOrBuilder(int index);
 }
diff --git a/owl-bot-staging/v1/proto-google-cloud-iot-v1/src/main/java/com/google/cloud/iot/v1/DeviceState.java b/proto-google-cloud-iot-v1/src/main/java/com/google/cloud/iot/v1/DeviceState.java
similarity index 71%
rename from owl-bot-staging/v1/proto-google-cloud-iot-v1/src/main/java/com/google/cloud/iot/v1/DeviceState.java
rename to proto-google-cloud-iot-v1/src/main/java/com/google/cloud/iot/v1/DeviceState.java
index 5c2a5074..5614b4bd 100644
--- a/owl-bot-staging/v1/proto-google-cloud-iot-v1/src/main/java/com/google/cloud/iot/v1/DeviceState.java
+++ b/proto-google-cloud-iot-v1/src/main/java/com/google/cloud/iot/v1/DeviceState.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/iot/v1/resources.proto
 
 package com.google.cloud.iot.v1;
 
 /**
+ *
+ *
  * 
  * The device state, as reported by the device.
  * 
* * Protobuf type {@code google.cloud.iot.v1.DeviceState} */ -public final class DeviceState extends - com.google.protobuf.GeneratedMessageV3 implements +public final class DeviceState extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.iot.v1.DeviceState) DeviceStateOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use DeviceState.newBuilder() to construct. private DeviceState(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private DeviceState() { binaryData_ = com.google.protobuf.ByteString.EMPTY; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new DeviceState(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private DeviceState( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -53,31 +70,33 @@ private DeviceState( case 0: done = true; break; - case 10: { - com.google.protobuf.Timestamp.Builder subBuilder = null; - if (updateTime_ != null) { - subBuilder = updateTime_.toBuilder(); + case 10: + { + com.google.protobuf.Timestamp.Builder subBuilder = null; + if (updateTime_ != null) { + subBuilder = updateTime_.toBuilder(); + } + updateTime_ = + input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(updateTime_); + updateTime_ = subBuilder.buildPartial(); + } + + break; } - updateTime_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(updateTime_); - updateTime_ = subBuilder.buildPartial(); + case 18: + { + binaryData_ = input.readBytes(); + break; } - - break; - } - case 18: { - - binaryData_ = input.readBytes(); - 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) { @@ -85,35 +104,40 @@ private DeviceState( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.iot.v1.ResourcesProto.internal_static_google_cloud_iot_v1_DeviceState_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.iot.v1.ResourcesProto + .internal_static_google_cloud_iot_v1_DeviceState_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.iot.v1.ResourcesProto.internal_static_google_cloud_iot_v1_DeviceState_fieldAccessorTable + return com.google.cloud.iot.v1.ResourcesProto + .internal_static_google_cloud_iot_v1_DeviceState_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.iot.v1.DeviceState.class, com.google.cloud.iot.v1.DeviceState.Builder.class); + com.google.cloud.iot.v1.DeviceState.class, + com.google.cloud.iot.v1.DeviceState.Builder.class); } public static final int UPDATE_TIME_FIELD_NUMBER = 1; private com.google.protobuf.Timestamp updateTime_; /** + * + * *
    * [Output only] The time at which this state version was updated in Cloud
    * IoT Core.
    * 
* * .google.protobuf.Timestamp update_time = 1; + * * @return Whether the updateTime field is set. */ @java.lang.Override @@ -121,12 +145,15 @@ public boolean hasUpdateTime() { return updateTime_ != null; } /** + * + * *
    * [Output only] The time at which this state version was updated in Cloud
    * IoT Core.
    * 
* * .google.protobuf.Timestamp update_time = 1; + * * @return The updateTime. */ @java.lang.Override @@ -134,6 +161,8 @@ public com.google.protobuf.Timestamp getUpdateTime() { return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; } /** + * + * *
    * [Output only] The time at which this state version was updated in Cloud
    * IoT Core.
@@ -149,11 +178,14 @@ public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() {
   public static final int BINARY_DATA_FIELD_NUMBER = 2;
   private com.google.protobuf.ByteString binaryData_;
   /**
+   *
+   *
    * 
    * The device state data.
    * 
* * bytes binary_data = 2; + * * @return The binaryData. */ @java.lang.Override @@ -162,6 +194,7 @@ public com.google.protobuf.ByteString getBinaryData() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -173,8 +206,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (updateTime_ != null) { output.writeMessage(1, getUpdateTime()); } @@ -191,12 +223,10 @@ public int getSerializedSize() { size = 0; if (updateTime_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getUpdateTime()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getUpdateTime()); } if (!binaryData_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(2, binaryData_); + size += com.google.protobuf.CodedOutputStream.computeBytesSize(2, binaryData_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -206,7 +236,7 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.iot.v1.DeviceState)) { return super.equals(obj); @@ -215,11 +245,9 @@ public boolean equals(final java.lang.Object obj) { if (hasUpdateTime() != other.hasUpdateTime()) return false; if (hasUpdateTime()) { - if (!getUpdateTime() - .equals(other.getUpdateTime())) return false; + if (!getUpdateTime().equals(other.getUpdateTime())) return false; } - if (!getBinaryData() - .equals(other.getBinaryData())) return false; + if (!getBinaryData().equals(other.getBinaryData())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -242,118 +270,126 @@ public int hashCode() { return hash; } - public static com.google.cloud.iot.v1.DeviceState parseFrom( - java.nio.ByteBuffer data) + public static com.google.cloud.iot.v1.DeviceState parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.iot.v1.DeviceState parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.iot.v1.DeviceState parseFrom( - com.google.protobuf.ByteString data) + + public static com.google.cloud.iot.v1.DeviceState parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.iot.v1.DeviceState parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.iot.v1.DeviceState parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.iot.v1.DeviceState parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.iot.v1.DeviceState 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.iot.v1.DeviceState parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.iot.v1.DeviceState 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.iot.v1.DeviceState parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.iot.v1.DeviceState parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.iot.v1.DeviceState parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.cloud.iot.v1.DeviceState prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected 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 device state, as reported by the device.
    * 
* * Protobuf type {@code google.cloud.iot.v1.DeviceState} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.iot.v1.DeviceState) com.google.cloud.iot.v1.DeviceStateOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.iot.v1.ResourcesProto.internal_static_google_cloud_iot_v1_DeviceState_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.iot.v1.ResourcesProto + .internal_static_google_cloud_iot_v1_DeviceState_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.iot.v1.ResourcesProto.internal_static_google_cloud_iot_v1_DeviceState_fieldAccessorTable + return com.google.cloud.iot.v1.ResourcesProto + .internal_static_google_cloud_iot_v1_DeviceState_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.iot.v1.DeviceState.class, com.google.cloud.iot.v1.DeviceState.Builder.class); + com.google.cloud.iot.v1.DeviceState.class, + com.google.cloud.iot.v1.DeviceState.Builder.class); } // Construct using com.google.cloud.iot.v1.DeviceState.newBuilder() @@ -361,16 +397,15 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -386,9 +421,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.iot.v1.ResourcesProto.internal_static_google_cloud_iot_v1_DeviceState_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.iot.v1.ResourcesProto + .internal_static_google_cloud_iot_v1_DeviceState_descriptor; } @java.lang.Override @@ -422,38 +457,39 @@ public com.google.cloud.iot.v1.DeviceState buildPartial() { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.iot.v1.DeviceState) { - return mergeFrom((com.google.cloud.iot.v1.DeviceState)other); + return mergeFrom((com.google.cloud.iot.v1.DeviceState) other); } else { super.mergeFrom(other); return this; @@ -499,36 +535,49 @@ public Builder mergeFrom( 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 at which this state version was updated in Cloud
      * IoT Core.
      * 
* * .google.protobuf.Timestamp update_time = 1; + * * @return Whether the updateTime field is set. */ public boolean hasUpdateTime() { return updateTimeBuilder_ != null || updateTime_ != null; } /** + * + * *
      * [Output only] The time at which this state version was updated in Cloud
      * IoT Core.
      * 
* * .google.protobuf.Timestamp update_time = 1; + * * @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 at which this state version was updated in Cloud
      * IoT Core.
@@ -550,6 +599,8 @@ public Builder setUpdateTime(com.google.protobuf.Timestamp value) {
       return this;
     }
     /**
+     *
+     *
      * 
      * [Output only] The time at which this state version was updated in Cloud
      * IoT Core.
@@ -557,8 +608,7 @@ public Builder setUpdateTime(com.google.protobuf.Timestamp value) {
      *
      * .google.protobuf.Timestamp update_time = 1;
      */
-    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();
@@ -569,6 +619,8 @@ public Builder setUpdateTime(
       return this;
     }
     /**
+     *
+     *
      * 
      * [Output only] The time at which this state version was updated in Cloud
      * IoT Core.
@@ -580,7 +632,7 @@ 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;
         }
@@ -592,6 +644,8 @@ public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) {
       return this;
     }
     /**
+     *
+     *
      * 
      * [Output only] The time at which this state version was updated in Cloud
      * IoT Core.
@@ -611,6 +665,8 @@ public Builder clearUpdateTime() {
       return this;
     }
     /**
+     *
+     *
      * 
      * [Output only] The time at which this state version was updated in Cloud
      * IoT Core.
@@ -619,11 +675,13 @@ public Builder clearUpdateTime() {
      * .google.protobuf.Timestamp update_time = 1;
      */
     public com.google.protobuf.Timestamp.Builder getUpdateTimeBuilder() {
-      
+
       onChanged();
       return getUpdateTimeFieldBuilder().getBuilder();
     }
     /**
+     *
+     *
      * 
      * [Output only] The time at which this state version was updated in Cloud
      * IoT Core.
@@ -635,11 +693,14 @@ 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 at which this state version was updated in Cloud
      * IoT Core.
@@ -648,14 +709,17 @@ public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() {
      * .google.protobuf.Timestamp update_time = 1;
      */
     private com.google.protobuf.SingleFieldBuilderV3<
-        com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> 
+            com.google.protobuf.Timestamp,
+            com.google.protobuf.Timestamp.Builder,
+            com.google.protobuf.TimestampOrBuilder>
         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_;
@@ -663,11 +727,14 @@ public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() {
 
     private com.google.protobuf.ByteString binaryData_ = com.google.protobuf.ByteString.EMPTY;
     /**
+     *
+     *
      * 
      * The device state data.
      * 
* * bytes binary_data = 2; + * * @return The binaryData. */ @java.lang.Override @@ -675,40 +742,46 @@ public com.google.protobuf.ByteString getBinaryData() { return binaryData_; } /** + * + * *
      * The device state data.
      * 
* * bytes binary_data = 2; + * * @param value The binaryData to set. * @return This builder for chaining. */ public Builder setBinaryData(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + binaryData_ = value; onChanged(); return this; } /** + * + * *
      * The device state data.
      * 
* * bytes binary_data = 2; + * * @return This builder for chaining. */ public Builder clearBinaryData() { - + binaryData_ = getDefaultInstance().getBinaryData(); onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -718,12 +791,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.iot.v1.DeviceState) } // @@protoc_insertion_point(class_scope:google.cloud.iot.v1.DeviceState) private static final com.google.cloud.iot.v1.DeviceState DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.iot.v1.DeviceState(); } @@ -732,16 +805,16 @@ public static com.google.cloud.iot.v1.DeviceState getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public DeviceState parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new DeviceState(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DeviceState parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new DeviceState(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -756,6 +829,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.iot.v1.DeviceState getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1/proto-google-cloud-iot-v1/src/main/java/com/google/cloud/iot/v1/DeviceStateOrBuilder.java b/proto-google-cloud-iot-v1/src/main/java/com/google/cloud/iot/v1/DeviceStateOrBuilder.java similarity index 64% rename from owl-bot-staging/v1/proto-google-cloud-iot-v1/src/main/java/com/google/cloud/iot/v1/DeviceStateOrBuilder.java rename to proto-google-cloud-iot-v1/src/main/java/com/google/cloud/iot/v1/DeviceStateOrBuilder.java index 4e14c143..e47221c1 100644 --- a/owl-bot-staging/v1/proto-google-cloud-iot-v1/src/main/java/com/google/cloud/iot/v1/DeviceStateOrBuilder.java +++ b/proto-google-cloud-iot-v1/src/main/java/com/google/cloud/iot/v1/DeviceStateOrBuilder.java @@ -1,33 +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/iot/v1/resources.proto package com.google.cloud.iot.v1; -public interface DeviceStateOrBuilder extends +public interface DeviceStateOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.iot.v1.DeviceState) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * [Output only] The time at which this state version was updated in Cloud
    * IoT Core.
    * 
* * .google.protobuf.Timestamp update_time = 1; + * * @return Whether the updateTime field is set. */ boolean hasUpdateTime(); /** + * + * *
    * [Output only] The time at which this state version was updated in Cloud
    * IoT Core.
    * 
* * .google.protobuf.Timestamp update_time = 1; + * * @return The updateTime. */ com.google.protobuf.Timestamp getUpdateTime(); /** + * + * *
    * [Output only] The time at which this state version was updated in Cloud
    * IoT Core.
@@ -38,11 +62,14 @@ public interface DeviceStateOrBuilder extends
   com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder();
 
   /**
+   *
+   *
    * 
    * The device state data.
    * 
* * bytes binary_data = 2; + * * @return The binaryData. */ com.google.protobuf.ByteString getBinaryData(); diff --git a/owl-bot-staging/v1/proto-google-cloud-iot-v1/src/main/java/com/google/cloud/iot/v1/EventNotificationConfig.java b/proto-google-cloud-iot-v1/src/main/java/com/google/cloud/iot/v1/EventNotificationConfig.java similarity index 72% rename from owl-bot-staging/v1/proto-google-cloud-iot-v1/src/main/java/com/google/cloud/iot/v1/EventNotificationConfig.java rename to proto-google-cloud-iot-v1/src/main/java/com/google/cloud/iot/v1/EventNotificationConfig.java index 640c3ed3..d3a66188 100644 --- a/owl-bot-staging/v1/proto-google-cloud-iot-v1/src/main/java/com/google/cloud/iot/v1/EventNotificationConfig.java +++ b/proto-google-cloud-iot-v1/src/main/java/com/google/cloud/iot/v1/EventNotificationConfig.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/iot/v1/resources.proto package com.google.cloud.iot.v1; /** + * + * *
  * The configuration for forwarding telemetry events.
  * 
* * Protobuf type {@code google.cloud.iot.v1.EventNotificationConfig} */ -public final class EventNotificationConfig extends - com.google.protobuf.GeneratedMessageV3 implements +public final class EventNotificationConfig extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.iot.v1.EventNotificationConfig) EventNotificationConfigOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use EventNotificationConfig.newBuilder() to construct. private EventNotificationConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private EventNotificationConfig() { subfolderMatches_ = ""; pubsubTopicName_ = ""; @@ -26,16 +44,15 @@ private EventNotificationConfig() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new EventNotificationConfig(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private EventNotificationConfig( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -54,25 +71,27 @@ private EventNotificationConfig( case 0: done = true; break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); - pubsubTopicName_ = s; - break; - } - case 18: { - java.lang.String s = input.readStringRequireUtf8(); + pubsubTopicName_ = s; + break; + } + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); - subfolderMatches_ = s; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + subfolderMatches_ = s; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -80,29 +99,33 @@ private EventNotificationConfig( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.iot.v1.ResourcesProto.internal_static_google_cloud_iot_v1_EventNotificationConfig_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.iot.v1.ResourcesProto + .internal_static_google_cloud_iot_v1_EventNotificationConfig_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.iot.v1.ResourcesProto.internal_static_google_cloud_iot_v1_EventNotificationConfig_fieldAccessorTable + return com.google.cloud.iot.v1.ResourcesProto + .internal_static_google_cloud_iot_v1_EventNotificationConfig_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.iot.v1.EventNotificationConfig.class, com.google.cloud.iot.v1.EventNotificationConfig.Builder.class); + com.google.cloud.iot.v1.EventNotificationConfig.class, + com.google.cloud.iot.v1.EventNotificationConfig.Builder.class); } public static final int SUBFOLDER_MATCHES_FIELD_NUMBER = 2; private volatile java.lang.Object subfolderMatches_; /** + * + * *
    * If the subfolder name matches this string exactly, this configuration will
    * be used. The string must not include the leading '/' character. If empty,
@@ -111,6 +134,7 @@ private EventNotificationConfig(
    * 
* * string subfolder_matches = 2; + * * @return The subfolderMatches. */ @java.lang.Override @@ -119,14 +143,15 @@ public java.lang.String getSubfolderMatches() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); subfolderMatches_ = s; return s; } } /** + * + * *
    * If the subfolder name matches this string exactly, this configuration will
    * be used. The string must not include the leading '/' character. If empty,
@@ -135,16 +160,15 @@ public java.lang.String getSubfolderMatches() {
    * 
* * string subfolder_matches = 2; + * * @return The bytes for subfolderMatches. */ @java.lang.Override - public com.google.protobuf.ByteString - getSubfolderMatchesBytes() { + public com.google.protobuf.ByteString getSubfolderMatchesBytes() { java.lang.Object ref = subfolderMatches_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); subfolderMatches_ = b; return b; } else { @@ -155,12 +179,15 @@ public java.lang.String getSubfolderMatches() { public static final int PUBSUB_TOPIC_NAME_FIELD_NUMBER = 1; private volatile java.lang.Object pubsubTopicName_; /** + * + * *
    * A Cloud Pub/Sub topic name. For example,
    * `projects/myProject/topics/deviceEvents`.
    * 
* * string pubsub_topic_name = 1; + * * @return The pubsubTopicName. */ @java.lang.Override @@ -169,30 +196,30 @@ public java.lang.String getPubsubTopicName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); pubsubTopicName_ = s; return s; } } /** + * + * *
    * A Cloud Pub/Sub topic name. For example,
    * `projects/myProject/topics/deviceEvents`.
    * 
* * string pubsub_topic_name = 1; + * * @return The bytes for pubsubTopicName. */ @java.lang.Override - public com.google.protobuf.ByteString - getPubsubTopicNameBytes() { + public com.google.protobuf.ByteString getPubsubTopicNameBytes() { java.lang.Object ref = pubsubTopicName_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); pubsubTopicName_ = b; return b; } else { @@ -201,6 +228,7 @@ public java.lang.String getPubsubTopicName() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -212,8 +240,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pubsubTopicName_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, pubsubTopicName_); } @@ -243,17 +270,16 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.iot.v1.EventNotificationConfig)) { return super.equals(obj); } - com.google.cloud.iot.v1.EventNotificationConfig other = (com.google.cloud.iot.v1.EventNotificationConfig) obj; + com.google.cloud.iot.v1.EventNotificationConfig other = + (com.google.cloud.iot.v1.EventNotificationConfig) obj; - if (!getSubfolderMatches() - .equals(other.getSubfolderMatches())) return false; - if (!getPubsubTopicName() - .equals(other.getPubsubTopicName())) return false; + if (!getSubfolderMatches().equals(other.getSubfolderMatches())) return false; + if (!getPubsubTopicName().equals(other.getPubsubTopicName())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -274,118 +300,127 @@ public int hashCode() { return hash; } - public static com.google.cloud.iot.v1.EventNotificationConfig parseFrom( - java.nio.ByteBuffer data) + public static com.google.cloud.iot.v1.EventNotificationConfig parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.iot.v1.EventNotificationConfig parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.iot.v1.EventNotificationConfig parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.iot.v1.EventNotificationConfig parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.iot.v1.EventNotificationConfig parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.iot.v1.EventNotificationConfig parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.iot.v1.EventNotificationConfig 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.iot.v1.EventNotificationConfig parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.iot.v1.EventNotificationConfig parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.iot.v1.EventNotificationConfig parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.iot.v1.EventNotificationConfig parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.iot.v1.EventNotificationConfig parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.iot.v1.EventNotificationConfig parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.cloud.iot.v1.EventNotificationConfig prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * The configuration for forwarding telemetry events.
    * 
* * Protobuf type {@code google.cloud.iot.v1.EventNotificationConfig} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.iot.v1.EventNotificationConfig) com.google.cloud.iot.v1.EventNotificationConfigOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.iot.v1.ResourcesProto.internal_static_google_cloud_iot_v1_EventNotificationConfig_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.iot.v1.ResourcesProto + .internal_static_google_cloud_iot_v1_EventNotificationConfig_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.iot.v1.ResourcesProto.internal_static_google_cloud_iot_v1_EventNotificationConfig_fieldAccessorTable + return com.google.cloud.iot.v1.ResourcesProto + .internal_static_google_cloud_iot_v1_EventNotificationConfig_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.iot.v1.EventNotificationConfig.class, com.google.cloud.iot.v1.EventNotificationConfig.Builder.class); + com.google.cloud.iot.v1.EventNotificationConfig.class, + com.google.cloud.iot.v1.EventNotificationConfig.Builder.class); } // Construct using com.google.cloud.iot.v1.EventNotificationConfig.newBuilder() @@ -393,16 +428,15 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -414,9 +448,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.iot.v1.ResourcesProto.internal_static_google_cloud_iot_v1_EventNotificationConfig_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.iot.v1.ResourcesProto + .internal_static_google_cloud_iot_v1_EventNotificationConfig_descriptor; } @java.lang.Override @@ -435,7 +469,8 @@ public com.google.cloud.iot.v1.EventNotificationConfig build() { @java.lang.Override public com.google.cloud.iot.v1.EventNotificationConfig buildPartial() { - com.google.cloud.iot.v1.EventNotificationConfig result = new com.google.cloud.iot.v1.EventNotificationConfig(this); + com.google.cloud.iot.v1.EventNotificationConfig result = + new com.google.cloud.iot.v1.EventNotificationConfig(this); result.subfolderMatches_ = subfolderMatches_; result.pubsubTopicName_ = pubsubTopicName_; onBuilt(); @@ -446,38 +481,39 @@ public com.google.cloud.iot.v1.EventNotificationConfig buildPartial() { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.iot.v1.EventNotificationConfig) { - return mergeFrom((com.google.cloud.iot.v1.EventNotificationConfig)other); + return mergeFrom((com.google.cloud.iot.v1.EventNotificationConfig) other); } else { super.mergeFrom(other); return this; @@ -485,7 +521,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.iot.v1.EventNotificationConfig other) { - if (other == com.google.cloud.iot.v1.EventNotificationConfig.getDefaultInstance()) return this; + if (other == com.google.cloud.iot.v1.EventNotificationConfig.getDefaultInstance()) + return this; if (!other.getSubfolderMatches().isEmpty()) { subfolderMatches_ = other.subfolderMatches_; onChanged(); @@ -525,6 +562,8 @@ public Builder mergeFrom( private java.lang.Object subfolderMatches_ = ""; /** + * + * *
      * If the subfolder name matches this string exactly, this configuration will
      * be used. The string must not include the leading '/' character. If empty,
@@ -533,13 +572,13 @@ public Builder mergeFrom(
      * 
* * string subfolder_matches = 2; + * * @return The subfolderMatches. */ public java.lang.String getSubfolderMatches() { java.lang.Object ref = subfolderMatches_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); subfolderMatches_ = s; return s; @@ -548,6 +587,8 @@ public java.lang.String getSubfolderMatches() { } } /** + * + * *
      * If the subfolder name matches this string exactly, this configuration will
      * be used. The string must not include the leading '/' character. If empty,
@@ -556,15 +597,14 @@ public java.lang.String getSubfolderMatches() {
      * 
* * string subfolder_matches = 2; + * * @return The bytes for subfolderMatches. */ - public com.google.protobuf.ByteString - getSubfolderMatchesBytes() { + public com.google.protobuf.ByteString getSubfolderMatchesBytes() { java.lang.Object ref = subfolderMatches_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); subfolderMatches_ = b; return b; } else { @@ -572,6 +612,8 @@ public java.lang.String getSubfolderMatches() { } } /** + * + * *
      * If the subfolder name matches this string exactly, this configuration will
      * be used. The string must not include the leading '/' character. If empty,
@@ -580,20 +622,22 @@ public java.lang.String getSubfolderMatches() {
      * 
* * string subfolder_matches = 2; + * * @param value The subfolderMatches to set. * @return This builder for chaining. */ - public Builder setSubfolderMatches( - java.lang.String value) { + public Builder setSubfolderMatches(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + subfolderMatches_ = value; onChanged(); return this; } /** + * + * *
      * If the subfolder name matches this string exactly, this configuration will
      * be used. The string must not include the leading '/' character. If empty,
@@ -602,15 +646,18 @@ public Builder setSubfolderMatches(
      * 
* * string subfolder_matches = 2; + * * @return This builder for chaining. */ public Builder clearSubfolderMatches() { - + subfolderMatches_ = getDefaultInstance().getSubfolderMatches(); onChanged(); return this; } /** + * + * *
      * If the subfolder name matches this string exactly, this configuration will
      * be used. The string must not include the leading '/' character. If empty,
@@ -619,16 +666,16 @@ public Builder clearSubfolderMatches() {
      * 
* * string subfolder_matches = 2; + * * @param value The bytes for subfolderMatches to set. * @return This builder for chaining. */ - public Builder setSubfolderMatchesBytes( - com.google.protobuf.ByteString value) { + public Builder setSubfolderMatchesBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + subfolderMatches_ = value; onChanged(); return this; @@ -636,19 +683,21 @@ public Builder setSubfolderMatchesBytes( private java.lang.Object pubsubTopicName_ = ""; /** + * + * *
      * A Cloud Pub/Sub topic name. For example,
      * `projects/myProject/topics/deviceEvents`.
      * 
* * string pubsub_topic_name = 1; + * * @return The pubsubTopicName. */ public java.lang.String getPubsubTopicName() { java.lang.Object ref = pubsubTopicName_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); pubsubTopicName_ = s; return s; @@ -657,21 +706,22 @@ public java.lang.String getPubsubTopicName() { } } /** + * + * *
      * A Cloud Pub/Sub topic name. For example,
      * `projects/myProject/topics/deviceEvents`.
      * 
* * string pubsub_topic_name = 1; + * * @return The bytes for pubsubTopicName. */ - public com.google.protobuf.ByteString - getPubsubTopicNameBytes() { + public com.google.protobuf.ByteString getPubsubTopicNameBytes() { java.lang.Object ref = pubsubTopicName_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); pubsubTopicName_ = b; return b; } else { @@ -679,64 +729,71 @@ public java.lang.String getPubsubTopicName() { } } /** + * + * *
      * A Cloud Pub/Sub topic name. For example,
      * `projects/myProject/topics/deviceEvents`.
      * 
* * string pubsub_topic_name = 1; + * * @param value The pubsubTopicName to set. * @return This builder for chaining. */ - public Builder setPubsubTopicName( - java.lang.String value) { + public Builder setPubsubTopicName(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + pubsubTopicName_ = value; onChanged(); return this; } /** + * + * *
      * A Cloud Pub/Sub topic name. For example,
      * `projects/myProject/topics/deviceEvents`.
      * 
* * string pubsub_topic_name = 1; + * * @return This builder for chaining. */ public Builder clearPubsubTopicName() { - + pubsubTopicName_ = getDefaultInstance().getPubsubTopicName(); onChanged(); return this; } /** + * + * *
      * A Cloud Pub/Sub topic name. For example,
      * `projects/myProject/topics/deviceEvents`.
      * 
* * string pubsub_topic_name = 1; + * * @param value The bytes for pubsubTopicName to set. * @return This builder for chaining. */ - public Builder setPubsubTopicNameBytes( - com.google.protobuf.ByteString value) { + public Builder setPubsubTopicNameBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + pubsubTopicName_ = value; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -746,12 +803,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.iot.v1.EventNotificationConfig) } // @@protoc_insertion_point(class_scope:google.cloud.iot.v1.EventNotificationConfig) private static final com.google.cloud.iot.v1.EventNotificationConfig DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.iot.v1.EventNotificationConfig(); } @@ -760,16 +817,16 @@ public static com.google.cloud.iot.v1.EventNotificationConfig getDefaultInstance return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public EventNotificationConfig parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new EventNotificationConfig(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public EventNotificationConfig parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new EventNotificationConfig(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -784,6 +841,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.iot.v1.EventNotificationConfig getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1/proto-google-cloud-iot-v1/src/main/java/com/google/cloud/iot/v1/EventNotificationConfigOrBuilder.java b/proto-google-cloud-iot-v1/src/main/java/com/google/cloud/iot/v1/EventNotificationConfigOrBuilder.java similarity index 66% rename from owl-bot-staging/v1/proto-google-cloud-iot-v1/src/main/java/com/google/cloud/iot/v1/EventNotificationConfigOrBuilder.java rename to proto-google-cloud-iot-v1/src/main/java/com/google/cloud/iot/v1/EventNotificationConfigOrBuilder.java index 473467fe..40cd05f7 100644 --- a/owl-bot-staging/v1/proto-google-cloud-iot-v1/src/main/java/com/google/cloud/iot/v1/EventNotificationConfigOrBuilder.java +++ b/proto-google-cloud-iot-v1/src/main/java/com/google/cloud/iot/v1/EventNotificationConfigOrBuilder.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/iot/v1/resources.proto package com.google.cloud.iot.v1; -public interface EventNotificationConfigOrBuilder extends +public interface EventNotificationConfigOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.iot.v1.EventNotificationConfig) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * If the subfolder name matches this string exactly, this configuration will
    * be used. The string must not include the leading '/' character. If empty,
@@ -16,10 +34,13 @@ public interface EventNotificationConfigOrBuilder extends
    * 
* * string subfolder_matches = 2; + * * @return The subfolderMatches. */ java.lang.String getSubfolderMatches(); /** + * + * *
    * If the subfolder name matches this string exactly, this configuration will
    * be used. The string must not include the leading '/' character. If empty,
@@ -28,30 +49,35 @@ public interface EventNotificationConfigOrBuilder extends
    * 
* * string subfolder_matches = 2; + * * @return The bytes for subfolderMatches. */ - com.google.protobuf.ByteString - getSubfolderMatchesBytes(); + com.google.protobuf.ByteString getSubfolderMatchesBytes(); /** + * + * *
    * A Cloud Pub/Sub topic name. For example,
    * `projects/myProject/topics/deviceEvents`.
    * 
* * string pubsub_topic_name = 1; + * * @return The pubsubTopicName. */ java.lang.String getPubsubTopicName(); /** + * + * *
    * A Cloud Pub/Sub topic name. For example,
    * `projects/myProject/topics/deviceEvents`.
    * 
* * string pubsub_topic_name = 1; + * * @return The bytes for pubsubTopicName. */ - com.google.protobuf.ByteString - getPubsubTopicNameBytes(); + com.google.protobuf.ByteString getPubsubTopicNameBytes(); } diff --git a/owl-bot-staging/v1/proto-google-cloud-iot-v1/src/main/java/com/google/cloud/iot/v1/GatewayAuthMethod.java b/proto-google-cloud-iot-v1/src/main/java/com/google/cloud/iot/v1/GatewayAuthMethod.java similarity index 73% rename from owl-bot-staging/v1/proto-google-cloud-iot-v1/src/main/java/com/google/cloud/iot/v1/GatewayAuthMethod.java rename to proto-google-cloud-iot-v1/src/main/java/com/google/cloud/iot/v1/GatewayAuthMethod.java index 3a8f7dda..d4088e00 100644 --- a/owl-bot-staging/v1/proto-google-cloud-iot-v1/src/main/java/com/google/cloud/iot/v1/GatewayAuthMethod.java +++ b/proto-google-cloud-iot-v1/src/main/java/com/google/cloud/iot/v1/GatewayAuthMethod.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/iot/v1/resources.proto package com.google.cloud.iot.v1; /** + * + * *
  * The gateway authorization/authentication method. This setting determines how
  * Cloud IoT Core authorizes/authenticate devices to access the gateway.
@@ -11,9 +28,10 @@
  *
  * Protobuf enum {@code google.cloud.iot.v1.GatewayAuthMethod}
  */
-public enum GatewayAuthMethod
-    implements com.google.protobuf.ProtocolMessageEnum {
+public enum GatewayAuthMethod implements com.google.protobuf.ProtocolMessageEnum {
   /**
+   *
+   *
    * 
    * No authentication/authorization method specified. No devices are allowed to
    * access the gateway.
@@ -23,6 +41,8 @@ public enum GatewayAuthMethod
    */
   GATEWAY_AUTH_METHOD_UNSPECIFIED(0),
   /**
+   *
+   *
    * 
    * The device is authenticated through the gateway association only. Device
    * credentials are ignored even if provided.
@@ -32,6 +52,8 @@ public enum GatewayAuthMethod
    */
   ASSOCIATION_ONLY(1),
   /**
+   *
+   *
    * 
    * The device is authenticated through its own credentials. Gateway
    * association is not checked.
@@ -41,6 +63,8 @@ public enum GatewayAuthMethod
    */
   DEVICE_AUTH_TOKEN_ONLY(2),
   /**
+   *
+   *
    * 
    * The device is authenticated through both device credentials and gateway
    * association. The device must be bound to the gateway and must provide its
@@ -54,6 +78,8 @@ public enum GatewayAuthMethod
   ;
 
   /**
+   *
+   *
    * 
    * No authentication/authorization method specified. No devices are allowed to
    * access the gateway.
@@ -63,6 +89,8 @@ public enum GatewayAuthMethod
    */
   public static final int GATEWAY_AUTH_METHOD_UNSPECIFIED_VALUE = 0;
   /**
+   *
+   *
    * 
    * The device is authenticated through the gateway association only. Device
    * credentials are ignored even if provided.
@@ -72,6 +100,8 @@ public enum GatewayAuthMethod
    */
   public static final int ASSOCIATION_ONLY_VALUE = 1;
   /**
+   *
+   *
    * 
    * The device is authenticated through its own credentials. Gateway
    * association is not checked.
@@ -81,6 +111,8 @@ public enum GatewayAuthMethod
    */
   public static final int DEVICE_AUTH_TOKEN_ONLY_VALUE = 2;
   /**
+   *
+   *
    * 
    * The device is authenticated through both device credentials and gateway
    * association. The device must be bound to the gateway and must provide its
@@ -91,7 +123,6 @@ public enum GatewayAuthMethod
    */
   public static final int ASSOCIATION_AND_DEVICE_AUTH_TOKEN_VALUE = 3;
 
-
   public final int getNumber() {
     if (this == UNRECOGNIZED) {
       throw new java.lang.IllegalArgumentException(
@@ -116,40 +147,44 @@ public static GatewayAuthMethod valueOf(int value) {
    */
   public static GatewayAuthMethod forNumber(int value) {
     switch (value) {
-      case 0: return GATEWAY_AUTH_METHOD_UNSPECIFIED;
-      case 1: return ASSOCIATION_ONLY;
-      case 2: return DEVICE_AUTH_TOKEN_ONLY;
-      case 3: return ASSOCIATION_AND_DEVICE_AUTH_TOKEN;
-      default: return null;
+      case 0:
+        return GATEWAY_AUTH_METHOD_UNSPECIFIED;
+      case 1:
+        return ASSOCIATION_ONLY;
+      case 2:
+        return DEVICE_AUTH_TOKEN_ONLY;
+      case 3:
+        return ASSOCIATION_AND_DEVICE_AUTH_TOKEN;
+      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<
-      GatewayAuthMethod> internalValueMap =
-        new com.google.protobuf.Internal.EnumLiteMap() {
-          public GatewayAuthMethod findValueByNumber(int number) {
-            return GatewayAuthMethod.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 GatewayAuthMethod findValueByNumber(int number) {
+              return GatewayAuthMethod.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.iot.v1.ResourcesProto.getDescriptor().getEnumTypes().get(4);
   }
 
@@ -158,8 +193,7 @@ public GatewayAuthMethod findValueByNumber(int number) {
   public static GatewayAuthMethod 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;
@@ -175,4 +209,3 @@ private GatewayAuthMethod(int value) {
 
   // @@protoc_insertion_point(enum_scope:google.cloud.iot.v1.GatewayAuthMethod)
 }
-
diff --git a/owl-bot-staging/v1/proto-google-cloud-iot-v1/src/main/java/com/google/cloud/iot/v1/GatewayConfig.java b/proto-google-cloud-iot-v1/src/main/java/com/google/cloud/iot/v1/GatewayConfig.java
similarity index 73%
rename from owl-bot-staging/v1/proto-google-cloud-iot-v1/src/main/java/com/google/cloud/iot/v1/GatewayConfig.java
rename to proto-google-cloud-iot-v1/src/main/java/com/google/cloud/iot/v1/GatewayConfig.java
index a10175f9..cae89af6 100644
--- a/owl-bot-staging/v1/proto-google-cloud-iot-v1/src/main/java/com/google/cloud/iot/v1/GatewayConfig.java
+++ b/proto-google-cloud-iot-v1/src/main/java/com/google/cloud/iot/v1/GatewayConfig.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/iot/v1/resources.proto
 
 package com.google.cloud.iot.v1;
 
 /**
+ *
+ *
  * 
  * Gateway-related configuration and state.
  * 
* * Protobuf type {@code google.cloud.iot.v1.GatewayConfig} */ -public final class GatewayConfig extends - com.google.protobuf.GeneratedMessageV3 implements +public final class GatewayConfig extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.iot.v1.GatewayConfig) GatewayConfigOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use GatewayConfig.newBuilder() to construct. private GatewayConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private GatewayConfig() { gatewayType_ = 0; gatewayAuthMethod_ = 0; @@ -27,16 +45,15 @@ private GatewayConfig() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new GatewayConfig(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private GatewayConfig( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -55,44 +72,49 @@ private GatewayConfig( case 0: done = true; break; - case 8: { - int rawValue = input.readEnum(); - - gatewayType_ = rawValue; - break; - } - case 16: { - int rawValue = input.readEnum(); + case 8: + { + int rawValue = input.readEnum(); - gatewayAuthMethod_ = rawValue; - break; - } - case 26: { - java.lang.String s = input.readStringRequireUtf8(); + gatewayType_ = rawValue; + break; + } + case 16: + { + int rawValue = input.readEnum(); - lastAccessedGatewayId_ = s; - break; - } - case 34: { - com.google.protobuf.Timestamp.Builder subBuilder = null; - if (lastAccessedGatewayTime_ != null) { - subBuilder = lastAccessedGatewayTime_.toBuilder(); + gatewayAuthMethod_ = rawValue; + break; } - lastAccessedGatewayTime_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(lastAccessedGatewayTime_); - lastAccessedGatewayTime_ = subBuilder.buildPartial(); + case 26: + { + java.lang.String s = input.readStringRequireUtf8(); + + lastAccessedGatewayId_ = s; + break; } + case 34: + { + com.google.protobuf.Timestamp.Builder subBuilder = null; + if (lastAccessedGatewayTime_ != null) { + subBuilder = lastAccessedGatewayTime_.toBuilder(); + } + lastAccessedGatewayTime_ = + input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(lastAccessedGatewayTime_); + lastAccessedGatewayTime_ = subBuilder.buildPartial(); + } - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -100,90 +122,113 @@ private GatewayConfig( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.iot.v1.ResourcesProto.internal_static_google_cloud_iot_v1_GatewayConfig_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.iot.v1.ResourcesProto + .internal_static_google_cloud_iot_v1_GatewayConfig_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.iot.v1.ResourcesProto.internal_static_google_cloud_iot_v1_GatewayConfig_fieldAccessorTable + return com.google.cloud.iot.v1.ResourcesProto + .internal_static_google_cloud_iot_v1_GatewayConfig_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.iot.v1.GatewayConfig.class, com.google.cloud.iot.v1.GatewayConfig.Builder.class); + com.google.cloud.iot.v1.GatewayConfig.class, + com.google.cloud.iot.v1.GatewayConfig.Builder.class); } public static final int GATEWAY_TYPE_FIELD_NUMBER = 1; private int gatewayType_; /** + * + * *
    * Indicates whether the device is a gateway.
    * 
* * .google.cloud.iot.v1.GatewayType gateway_type = 1; + * * @return The enum numeric value on the wire for gatewayType. */ - @java.lang.Override public int getGatewayTypeValue() { + @java.lang.Override + public int getGatewayTypeValue() { return gatewayType_; } /** + * + * *
    * Indicates whether the device is a gateway.
    * 
* * .google.cloud.iot.v1.GatewayType gateway_type = 1; + * * @return The gatewayType. */ - @java.lang.Override public com.google.cloud.iot.v1.GatewayType getGatewayType() { + @java.lang.Override + public com.google.cloud.iot.v1.GatewayType getGatewayType() { @SuppressWarnings("deprecation") - com.google.cloud.iot.v1.GatewayType result = com.google.cloud.iot.v1.GatewayType.valueOf(gatewayType_); + com.google.cloud.iot.v1.GatewayType result = + com.google.cloud.iot.v1.GatewayType.valueOf(gatewayType_); return result == null ? com.google.cloud.iot.v1.GatewayType.UNRECOGNIZED : result; } public static final int GATEWAY_AUTH_METHOD_FIELD_NUMBER = 2; private int gatewayAuthMethod_; /** + * + * *
    * Indicates how to authorize and/or authenticate devices to access the
    * gateway.
    * 
* * .google.cloud.iot.v1.GatewayAuthMethod gateway_auth_method = 2; + * * @return The enum numeric value on the wire for gatewayAuthMethod. */ - @java.lang.Override public int getGatewayAuthMethodValue() { + @java.lang.Override + public int getGatewayAuthMethodValue() { return gatewayAuthMethod_; } /** + * + * *
    * Indicates how to authorize and/or authenticate devices to access the
    * gateway.
    * 
* * .google.cloud.iot.v1.GatewayAuthMethod gateway_auth_method = 2; + * * @return The gatewayAuthMethod. */ - @java.lang.Override public com.google.cloud.iot.v1.GatewayAuthMethod getGatewayAuthMethod() { + @java.lang.Override + public com.google.cloud.iot.v1.GatewayAuthMethod getGatewayAuthMethod() { @SuppressWarnings("deprecation") - com.google.cloud.iot.v1.GatewayAuthMethod result = com.google.cloud.iot.v1.GatewayAuthMethod.valueOf(gatewayAuthMethod_); + com.google.cloud.iot.v1.GatewayAuthMethod result = + com.google.cloud.iot.v1.GatewayAuthMethod.valueOf(gatewayAuthMethod_); return result == null ? com.google.cloud.iot.v1.GatewayAuthMethod.UNRECOGNIZED : result; } public static final int LAST_ACCESSED_GATEWAY_ID_FIELD_NUMBER = 3; private volatile java.lang.Object lastAccessedGatewayId_; /** + * + * *
    * [Output only] The ID of the gateway the device accessed most recently.
    * 
* * string last_accessed_gateway_id = 3; + * * @return The lastAccessedGatewayId. */ @java.lang.Override @@ -192,29 +237,29 @@ public java.lang.String getLastAccessedGatewayId() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); lastAccessedGatewayId_ = s; return s; } } /** + * + * *
    * [Output only] The ID of the gateway the device accessed most recently.
    * 
* * string last_accessed_gateway_id = 3; + * * @return The bytes for lastAccessedGatewayId. */ @java.lang.Override - public com.google.protobuf.ByteString - getLastAccessedGatewayIdBytes() { + public com.google.protobuf.ByteString getLastAccessedGatewayIdBytes() { java.lang.Object ref = lastAccessedGatewayId_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); lastAccessedGatewayId_ = b; return b; } else { @@ -225,12 +270,15 @@ public java.lang.String getLastAccessedGatewayId() { public static final int LAST_ACCESSED_GATEWAY_TIME_FIELD_NUMBER = 4; private com.google.protobuf.Timestamp lastAccessedGatewayTime_; /** + * + * *
    * [Output only] The most recent time at which the device accessed the gateway
    * specified in `last_accessed_gateway`.
    * 
* * .google.protobuf.Timestamp last_accessed_gateway_time = 4; + * * @return Whether the lastAccessedGatewayTime field is set. */ @java.lang.Override @@ -238,19 +286,26 @@ public boolean hasLastAccessedGatewayTime() { return lastAccessedGatewayTime_ != null; } /** + * + * *
    * [Output only] The most recent time at which the device accessed the gateway
    * specified in `last_accessed_gateway`.
    * 
* * .google.protobuf.Timestamp last_accessed_gateway_time = 4; + * * @return The lastAccessedGatewayTime. */ @java.lang.Override public com.google.protobuf.Timestamp getLastAccessedGatewayTime() { - return lastAccessedGatewayTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : lastAccessedGatewayTime_; + return lastAccessedGatewayTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : lastAccessedGatewayTime_; } /** + * + * *
    * [Output only] The most recent time at which the device accessed the gateway
    * specified in `last_accessed_gateway`.
@@ -264,6 +319,7 @@ public com.google.protobuf.TimestampOrBuilder getLastAccessedGatewayTimeOrBuilde
   }
 
   private byte memoizedIsInitialized = -1;
+
   @java.lang.Override
   public final boolean isInitialized() {
     byte isInitialized = memoizedIsInitialized;
@@ -275,12 +331,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 (gatewayType_ != com.google.cloud.iot.v1.GatewayType.GATEWAY_TYPE_UNSPECIFIED.getNumber()) {
       output.writeEnum(1, gatewayType_);
     }
-    if (gatewayAuthMethod_ != com.google.cloud.iot.v1.GatewayAuthMethod.GATEWAY_AUTH_METHOD_UNSPECIFIED.getNumber()) {
+    if (gatewayAuthMethod_
+        != com.google.cloud.iot.v1.GatewayAuthMethod.GATEWAY_AUTH_METHOD_UNSPECIFIED.getNumber()) {
       output.writeEnum(2, gatewayAuthMethod_);
     }
     if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(lastAccessedGatewayId_)) {
@@ -299,19 +355,18 @@ public int getSerializedSize() {
 
     size = 0;
     if (gatewayType_ != com.google.cloud.iot.v1.GatewayType.GATEWAY_TYPE_UNSPECIFIED.getNumber()) {
-      size += com.google.protobuf.CodedOutputStream
-        .computeEnumSize(1, gatewayType_);
+      size += com.google.protobuf.CodedOutputStream.computeEnumSize(1, gatewayType_);
     }
-    if (gatewayAuthMethod_ != com.google.cloud.iot.v1.GatewayAuthMethod.GATEWAY_AUTH_METHOD_UNSPECIFIED.getNumber()) {
-      size += com.google.protobuf.CodedOutputStream
-        .computeEnumSize(2, gatewayAuthMethod_);
+    if (gatewayAuthMethod_
+        != com.google.cloud.iot.v1.GatewayAuthMethod.GATEWAY_AUTH_METHOD_UNSPECIFIED.getNumber()) {
+      size += com.google.protobuf.CodedOutputStream.computeEnumSize(2, gatewayAuthMethod_);
     }
     if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(lastAccessedGatewayId_)) {
       size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, lastAccessedGatewayId_);
     }
     if (lastAccessedGatewayTime_ != null) {
-      size += com.google.protobuf.CodedOutputStream
-        .computeMessageSize(4, getLastAccessedGatewayTime());
+      size +=
+          com.google.protobuf.CodedOutputStream.computeMessageSize(4, getLastAccessedGatewayTime());
     }
     size += unknownFields.getSerializedSize();
     memoizedSize = size;
@@ -321,7 +376,7 @@ public int getSerializedSize() {
   @java.lang.Override
   public boolean equals(final java.lang.Object obj) {
     if (obj == this) {
-     return true;
+      return true;
     }
     if (!(obj instanceof com.google.cloud.iot.v1.GatewayConfig)) {
       return super.equals(obj);
@@ -330,12 +385,10 @@ public boolean equals(final java.lang.Object obj) {
 
     if (gatewayType_ != other.gatewayType_) return false;
     if (gatewayAuthMethod_ != other.gatewayAuthMethod_) return false;
-    if (!getLastAccessedGatewayId()
-        .equals(other.getLastAccessedGatewayId())) return false;
+    if (!getLastAccessedGatewayId().equals(other.getLastAccessedGatewayId())) return false;
     if (hasLastAccessedGatewayTime() != other.hasLastAccessedGatewayTime()) return false;
     if (hasLastAccessedGatewayTime()) {
-      if (!getLastAccessedGatewayTime()
-          .equals(other.getLastAccessedGatewayTime())) return false;
+      if (!getLastAccessedGatewayTime().equals(other.getLastAccessedGatewayTime())) return false;
     }
     if (!unknownFields.equals(other.unknownFields)) return false;
     return true;
@@ -363,118 +416,126 @@ public int hashCode() {
     return hash;
   }
 
-  public static com.google.cloud.iot.v1.GatewayConfig parseFrom(
-      java.nio.ByteBuffer data)
+  public static com.google.cloud.iot.v1.GatewayConfig parseFrom(java.nio.ByteBuffer data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
+
   public static com.google.cloud.iot.v1.GatewayConfig parseFrom(
-      java.nio.ByteBuffer data,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-  public static com.google.cloud.iot.v1.GatewayConfig parseFrom(
-      com.google.protobuf.ByteString data)
+
+  public static com.google.cloud.iot.v1.GatewayConfig parseFrom(com.google.protobuf.ByteString data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
+
   public static com.google.cloud.iot.v1.GatewayConfig parseFrom(
       com.google.protobuf.ByteString data,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
+
   public static com.google.cloud.iot.v1.GatewayConfig parseFrom(byte[] data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
+
   public static com.google.cloud.iot.v1.GatewayConfig parseFrom(
-      byte[] data,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
+
   public static com.google.cloud.iot.v1.GatewayConfig 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.iot.v1.GatewayConfig parseFrom(
-      java.io.InputStream input,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
+        PARSER, input, extensionRegistry);
   }
+
   public static com.google.cloud.iot.v1.GatewayConfig 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.iot.v1.GatewayConfig parseDelimitedFrom(
-      java.io.InputStream input,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
+        PARSER, input, extensionRegistry);
   }
+
   public static com.google.cloud.iot.v1.GatewayConfig parseFrom(
-      com.google.protobuf.CodedInputStream input)
-      throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input);
+      com.google.protobuf.CodedInputStream input) throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
   }
+
   public static com.google.cloud.iot.v1.GatewayConfig parseFrom(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
+        PARSER, input, extensionRegistry);
   }
 
   @java.lang.Override
-  public Builder newBuilderForType() { return newBuilder(); }
+  public Builder newBuilderForType() {
+    return newBuilder();
+  }
+
   public static Builder newBuilder() {
     return DEFAULT_INSTANCE.toBuilder();
   }
+
   public static Builder newBuilder(com.google.cloud.iot.v1.GatewayConfig prototype) {
     return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
   }
+
   @java.lang.Override
   public Builder toBuilder() {
-    return this == DEFAULT_INSTANCE
-        ? new Builder() : new Builder().mergeFrom(this);
+    return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
   }
 
   @java.lang.Override
-  protected Builder newBuilderForType(
-      com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+  protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
     Builder builder = new Builder(parent);
     return builder;
   }
   /**
+   *
+   *
    * 
    * Gateway-related configuration and state.
    * 
* * Protobuf type {@code google.cloud.iot.v1.GatewayConfig} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.iot.v1.GatewayConfig) com.google.cloud.iot.v1.GatewayConfigOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.iot.v1.ResourcesProto.internal_static_google_cloud_iot_v1_GatewayConfig_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.iot.v1.ResourcesProto + .internal_static_google_cloud_iot_v1_GatewayConfig_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.iot.v1.ResourcesProto.internal_static_google_cloud_iot_v1_GatewayConfig_fieldAccessorTable + return com.google.cloud.iot.v1.ResourcesProto + .internal_static_google_cloud_iot_v1_GatewayConfig_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.iot.v1.GatewayConfig.class, com.google.cloud.iot.v1.GatewayConfig.Builder.class); + com.google.cloud.iot.v1.GatewayConfig.class, + com.google.cloud.iot.v1.GatewayConfig.Builder.class); } // Construct using com.google.cloud.iot.v1.GatewayConfig.newBuilder() @@ -482,16 +543,15 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -511,9 +571,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.iot.v1.ResourcesProto.internal_static_google_cloud_iot_v1_GatewayConfig_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.iot.v1.ResourcesProto + .internal_static_google_cloud_iot_v1_GatewayConfig_descriptor; } @java.lang.Override @@ -532,7 +592,8 @@ public com.google.cloud.iot.v1.GatewayConfig build() { @java.lang.Override public com.google.cloud.iot.v1.GatewayConfig buildPartial() { - com.google.cloud.iot.v1.GatewayConfig result = new com.google.cloud.iot.v1.GatewayConfig(this); + com.google.cloud.iot.v1.GatewayConfig result = + new com.google.cloud.iot.v1.GatewayConfig(this); result.gatewayType_ = gatewayType_; result.gatewayAuthMethod_ = gatewayAuthMethod_; result.lastAccessedGatewayId_ = lastAccessedGatewayId_; @@ -549,38 +610,39 @@ public com.google.cloud.iot.v1.GatewayConfig buildPartial() { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.iot.v1.GatewayConfig) { - return mergeFrom((com.google.cloud.iot.v1.GatewayConfig)other); + return mergeFrom((com.google.cloud.iot.v1.GatewayConfig) other); } else { super.mergeFrom(other); return this; @@ -633,51 +695,65 @@ public Builder mergeFrom( private int gatewayType_ = 0; /** + * + * *
      * Indicates whether the device is a gateway.
      * 
* * .google.cloud.iot.v1.GatewayType gateway_type = 1; + * * @return The enum numeric value on the wire for gatewayType. */ - @java.lang.Override public int getGatewayTypeValue() { + @java.lang.Override + public int getGatewayTypeValue() { return gatewayType_; } /** + * + * *
      * Indicates whether the device is a gateway.
      * 
* * .google.cloud.iot.v1.GatewayType gateway_type = 1; + * * @param value The enum numeric value on the wire for gatewayType to set. * @return This builder for chaining. */ public Builder setGatewayTypeValue(int value) { - + gatewayType_ = value; onChanged(); return this; } /** + * + * *
      * Indicates whether the device is a gateway.
      * 
* * .google.cloud.iot.v1.GatewayType gateway_type = 1; + * * @return The gatewayType. */ @java.lang.Override public com.google.cloud.iot.v1.GatewayType getGatewayType() { @SuppressWarnings("deprecation") - com.google.cloud.iot.v1.GatewayType result = com.google.cloud.iot.v1.GatewayType.valueOf(gatewayType_); + com.google.cloud.iot.v1.GatewayType result = + com.google.cloud.iot.v1.GatewayType.valueOf(gatewayType_); return result == null ? com.google.cloud.iot.v1.GatewayType.UNRECOGNIZED : result; } /** + * + * *
      * Indicates whether the device is a gateway.
      * 
* * .google.cloud.iot.v1.GatewayType gateway_type = 1; + * * @param value The gatewayType to set. * @return This builder for chaining. */ @@ -685,21 +761,24 @@ public Builder setGatewayType(com.google.cloud.iot.v1.GatewayType value) { if (value == null) { throw new NullPointerException(); } - + gatewayType_ = value.getNumber(); onChanged(); return this; } /** + * + * *
      * Indicates whether the device is a gateway.
      * 
* * .google.cloud.iot.v1.GatewayType gateway_type = 1; + * * @return This builder for chaining. */ public Builder clearGatewayType() { - + gatewayType_ = 0; onChanged(); return this; @@ -707,55 +786,69 @@ public Builder clearGatewayType() { private int gatewayAuthMethod_ = 0; /** + * + * *
      * Indicates how to authorize and/or authenticate devices to access the
      * gateway.
      * 
* * .google.cloud.iot.v1.GatewayAuthMethod gateway_auth_method = 2; + * * @return The enum numeric value on the wire for gatewayAuthMethod. */ - @java.lang.Override public int getGatewayAuthMethodValue() { + @java.lang.Override + public int getGatewayAuthMethodValue() { return gatewayAuthMethod_; } /** + * + * *
      * Indicates how to authorize and/or authenticate devices to access the
      * gateway.
      * 
* * .google.cloud.iot.v1.GatewayAuthMethod gateway_auth_method = 2; + * * @param value The enum numeric value on the wire for gatewayAuthMethod to set. * @return This builder for chaining. */ public Builder setGatewayAuthMethodValue(int value) { - + gatewayAuthMethod_ = value; onChanged(); return this; } /** + * + * *
      * Indicates how to authorize and/or authenticate devices to access the
      * gateway.
      * 
* * .google.cloud.iot.v1.GatewayAuthMethod gateway_auth_method = 2; + * * @return The gatewayAuthMethod. */ @java.lang.Override public com.google.cloud.iot.v1.GatewayAuthMethod getGatewayAuthMethod() { @SuppressWarnings("deprecation") - com.google.cloud.iot.v1.GatewayAuthMethod result = com.google.cloud.iot.v1.GatewayAuthMethod.valueOf(gatewayAuthMethod_); + com.google.cloud.iot.v1.GatewayAuthMethod result = + com.google.cloud.iot.v1.GatewayAuthMethod.valueOf(gatewayAuthMethod_); return result == null ? com.google.cloud.iot.v1.GatewayAuthMethod.UNRECOGNIZED : result; } /** + * + * *
      * Indicates how to authorize and/or authenticate devices to access the
      * gateway.
      * 
* * .google.cloud.iot.v1.GatewayAuthMethod gateway_auth_method = 2; + * * @param value The gatewayAuthMethod to set. * @return This builder for chaining. */ @@ -763,22 +856,25 @@ public Builder setGatewayAuthMethod(com.google.cloud.iot.v1.GatewayAuthMethod va if (value == null) { throw new NullPointerException(); } - + gatewayAuthMethod_ = value.getNumber(); onChanged(); return this; } /** + * + * *
      * Indicates how to authorize and/or authenticate devices to access the
      * gateway.
      * 
* * .google.cloud.iot.v1.GatewayAuthMethod gateway_auth_method = 2; + * * @return This builder for chaining. */ public Builder clearGatewayAuthMethod() { - + gatewayAuthMethod_ = 0; onChanged(); return this; @@ -786,18 +882,20 @@ public Builder clearGatewayAuthMethod() { private java.lang.Object lastAccessedGatewayId_ = ""; /** + * + * *
      * [Output only] The ID of the gateway the device accessed most recently.
      * 
* * string last_accessed_gateway_id = 3; + * * @return The lastAccessedGatewayId. */ public java.lang.String getLastAccessedGatewayId() { java.lang.Object ref = lastAccessedGatewayId_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); lastAccessedGatewayId_ = s; return s; @@ -806,20 +904,21 @@ public java.lang.String getLastAccessedGatewayId() { } } /** + * + * *
      * [Output only] The ID of the gateway the device accessed most recently.
      * 
* * string last_accessed_gateway_id = 3; + * * @return The bytes for lastAccessedGatewayId. */ - public com.google.protobuf.ByteString - getLastAccessedGatewayIdBytes() { + public com.google.protobuf.ByteString getLastAccessedGatewayIdBytes() { java.lang.Object ref = lastAccessedGatewayId_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); lastAccessedGatewayId_ = b; return b; } else { @@ -827,54 +926,61 @@ public java.lang.String getLastAccessedGatewayId() { } } /** + * + * *
      * [Output only] The ID of the gateway the device accessed most recently.
      * 
* * string last_accessed_gateway_id = 3; + * * @param value The lastAccessedGatewayId to set. * @return This builder for chaining. */ - public Builder setLastAccessedGatewayId( - java.lang.String value) { + public Builder setLastAccessedGatewayId(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + lastAccessedGatewayId_ = value; onChanged(); return this; } /** + * + * *
      * [Output only] The ID of the gateway the device accessed most recently.
      * 
* * string last_accessed_gateway_id = 3; + * * @return This builder for chaining. */ public Builder clearLastAccessedGatewayId() { - + lastAccessedGatewayId_ = getDefaultInstance().getLastAccessedGatewayId(); onChanged(); return this; } /** + * + * *
      * [Output only] The ID of the gateway the device accessed most recently.
      * 
* * string last_accessed_gateway_id = 3; + * * @param value The bytes for lastAccessedGatewayId to set. * @return This builder for chaining. */ - public Builder setLastAccessedGatewayIdBytes( - com.google.protobuf.ByteString value) { + public Builder setLastAccessedGatewayIdBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + lastAccessedGatewayId_ = value; onChanged(); return this; @@ -882,36 +988,49 @@ public Builder setLastAccessedGatewayIdBytes( private com.google.protobuf.Timestamp lastAccessedGatewayTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> lastAccessedGatewayTimeBuilder_; + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + lastAccessedGatewayTimeBuilder_; /** + * + * *
      * [Output only] The most recent time at which the device accessed the gateway
      * specified in `last_accessed_gateway`.
      * 
* * .google.protobuf.Timestamp last_accessed_gateway_time = 4; + * * @return Whether the lastAccessedGatewayTime field is set. */ public boolean hasLastAccessedGatewayTime() { return lastAccessedGatewayTimeBuilder_ != null || lastAccessedGatewayTime_ != null; } /** + * + * *
      * [Output only] The most recent time at which the device accessed the gateway
      * specified in `last_accessed_gateway`.
      * 
* * .google.protobuf.Timestamp last_accessed_gateway_time = 4; + * * @return The lastAccessedGatewayTime. */ public com.google.protobuf.Timestamp getLastAccessedGatewayTime() { if (lastAccessedGatewayTimeBuilder_ == null) { - return lastAccessedGatewayTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : lastAccessedGatewayTime_; + return lastAccessedGatewayTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : lastAccessedGatewayTime_; } else { return lastAccessedGatewayTimeBuilder_.getMessage(); } } /** + * + * *
      * [Output only] The most recent time at which the device accessed the gateway
      * specified in `last_accessed_gateway`.
@@ -933,6 +1052,8 @@ public Builder setLastAccessedGatewayTime(com.google.protobuf.Timestamp value) {
       return this;
     }
     /**
+     *
+     *
      * 
      * [Output only] The most recent time at which the device accessed the gateway
      * specified in `last_accessed_gateway`.
@@ -952,6 +1073,8 @@ public Builder setLastAccessedGatewayTime(
       return this;
     }
     /**
+     *
+     *
      * 
      * [Output only] The most recent time at which the device accessed the gateway
      * specified in `last_accessed_gateway`.
@@ -963,7 +1086,9 @@ public Builder mergeLastAccessedGatewayTime(com.google.protobuf.Timestamp value)
       if (lastAccessedGatewayTimeBuilder_ == null) {
         if (lastAccessedGatewayTime_ != null) {
           lastAccessedGatewayTime_ =
-            com.google.protobuf.Timestamp.newBuilder(lastAccessedGatewayTime_).mergeFrom(value).buildPartial();
+              com.google.protobuf.Timestamp.newBuilder(lastAccessedGatewayTime_)
+                  .mergeFrom(value)
+                  .buildPartial();
         } else {
           lastAccessedGatewayTime_ = value;
         }
@@ -975,6 +1100,8 @@ public Builder mergeLastAccessedGatewayTime(com.google.protobuf.Timestamp value)
       return this;
     }
     /**
+     *
+     *
      * 
      * [Output only] The most recent time at which the device accessed the gateway
      * specified in `last_accessed_gateway`.
@@ -994,6 +1121,8 @@ public Builder clearLastAccessedGatewayTime() {
       return this;
     }
     /**
+     *
+     *
      * 
      * [Output only] The most recent time at which the device accessed the gateway
      * specified in `last_accessed_gateway`.
@@ -1002,11 +1131,13 @@ public Builder clearLastAccessedGatewayTime() {
      * .google.protobuf.Timestamp last_accessed_gateway_time = 4;
      */
     public com.google.protobuf.Timestamp.Builder getLastAccessedGatewayTimeBuilder() {
-      
+
       onChanged();
       return getLastAccessedGatewayTimeFieldBuilder().getBuilder();
     }
     /**
+     *
+     *
      * 
      * [Output only] The most recent time at which the device accessed the gateway
      * specified in `last_accessed_gateway`.
@@ -1018,11 +1149,14 @@ public com.google.protobuf.TimestampOrBuilder getLastAccessedGatewayTimeOrBuilde
       if (lastAccessedGatewayTimeBuilder_ != null) {
         return lastAccessedGatewayTimeBuilder_.getMessageOrBuilder();
       } else {
-        return lastAccessedGatewayTime_ == null ?
-            com.google.protobuf.Timestamp.getDefaultInstance() : lastAccessedGatewayTime_;
+        return lastAccessedGatewayTime_ == null
+            ? com.google.protobuf.Timestamp.getDefaultInstance()
+            : lastAccessedGatewayTime_;
       }
     }
     /**
+     *
+     *
      * 
      * [Output only] The most recent time at which the device accessed the gateway
      * specified in `last_accessed_gateway`.
@@ -1031,21 +1165,24 @@ public com.google.protobuf.TimestampOrBuilder getLastAccessedGatewayTimeOrBuilde
      * .google.protobuf.Timestamp last_accessed_gateway_time = 4;
      */
     private com.google.protobuf.SingleFieldBuilderV3<
-        com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> 
+            com.google.protobuf.Timestamp,
+            com.google.protobuf.Timestamp.Builder,
+            com.google.protobuf.TimestampOrBuilder>
         getLastAccessedGatewayTimeFieldBuilder() {
       if (lastAccessedGatewayTimeBuilder_ == null) {
-        lastAccessedGatewayTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
-            com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>(
-                getLastAccessedGatewayTime(),
-                getParentForChildren(),
-                isClean());
+        lastAccessedGatewayTimeBuilder_ =
+            new com.google.protobuf.SingleFieldBuilderV3<
+                com.google.protobuf.Timestamp,
+                com.google.protobuf.Timestamp.Builder,
+                com.google.protobuf.TimestampOrBuilder>(
+                getLastAccessedGatewayTime(), getParentForChildren(), isClean());
         lastAccessedGatewayTime_ = null;
       }
       return lastAccessedGatewayTimeBuilder_;
     }
+
     @java.lang.Override
-    public final Builder setUnknownFields(
-        final com.google.protobuf.UnknownFieldSet unknownFields) {
+    public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) {
       return super.setUnknownFields(unknownFields);
     }
 
@@ -1055,12 +1192,12 @@ public final Builder mergeUnknownFields(
       return super.mergeUnknownFields(unknownFields);
     }
 
-
     // @@protoc_insertion_point(builder_scope:google.cloud.iot.v1.GatewayConfig)
   }
 
   // @@protoc_insertion_point(class_scope:google.cloud.iot.v1.GatewayConfig)
   private static final com.google.cloud.iot.v1.GatewayConfig DEFAULT_INSTANCE;
+
   static {
     DEFAULT_INSTANCE = new com.google.cloud.iot.v1.GatewayConfig();
   }
@@ -1069,16 +1206,16 @@ public static com.google.cloud.iot.v1.GatewayConfig getDefaultInstance() {
     return DEFAULT_INSTANCE;
   }
 
-  private static final com.google.protobuf.Parser
-      PARSER = new com.google.protobuf.AbstractParser() {
-    @java.lang.Override
-    public GatewayConfig parsePartialFrom(
-        com.google.protobuf.CodedInputStream input,
-        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
-        throws com.google.protobuf.InvalidProtocolBufferException {
-      return new GatewayConfig(input, extensionRegistry);
-    }
-  };
+  private static final com.google.protobuf.Parser PARSER =
+      new com.google.protobuf.AbstractParser() {
+        @java.lang.Override
+        public GatewayConfig parsePartialFrom(
+            com.google.protobuf.CodedInputStream input,
+            com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+            throws com.google.protobuf.InvalidProtocolBufferException {
+          return new GatewayConfig(input, extensionRegistry);
+        }
+      };
 
   public static com.google.protobuf.Parser parser() {
     return PARSER;
@@ -1093,6 +1230,4 @@ public com.google.protobuf.Parser getParserForType() {
   public com.google.cloud.iot.v1.GatewayConfig getDefaultInstanceForType() {
     return DEFAULT_INSTANCE;
   }
-
 }
-
diff --git a/owl-bot-staging/v1/proto-google-cloud-iot-v1/src/main/java/com/google/cloud/iot/v1/GatewayConfigOrBuilder.java b/proto-google-cloud-iot-v1/src/main/java/com/google/cloud/iot/v1/GatewayConfigOrBuilder.java
similarity index 77%
rename from owl-bot-staging/v1/proto-google-cloud-iot-v1/src/main/java/com/google/cloud/iot/v1/GatewayConfigOrBuilder.java
rename to proto-google-cloud-iot-v1/src/main/java/com/google/cloud/iot/v1/GatewayConfigOrBuilder.java
index 426014dc..1268e4a0 100644
--- a/owl-bot-staging/v1/proto-google-cloud-iot-v1/src/main/java/com/google/cloud/iot/v1/GatewayConfigOrBuilder.java
+++ b/proto-google-cloud-iot-v1/src/main/java/com/google/cloud/iot/v1/GatewayConfigOrBuilder.java
@@ -1,93 +1,134 @@
+/*
+ * Copyright 2020 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/cloud/iot/v1/resources.proto
 
 package com.google.cloud.iot.v1;
 
-public interface GatewayConfigOrBuilder extends
+public interface GatewayConfigOrBuilder
+    extends
     // @@protoc_insertion_point(interface_extends:google.cloud.iot.v1.GatewayConfig)
     com.google.protobuf.MessageOrBuilder {
 
   /**
+   *
+   *
    * 
    * Indicates whether the device is a gateway.
    * 
* * .google.cloud.iot.v1.GatewayType gateway_type = 1; + * * @return The enum numeric value on the wire for gatewayType. */ int getGatewayTypeValue(); /** + * + * *
    * Indicates whether the device is a gateway.
    * 
* * .google.cloud.iot.v1.GatewayType gateway_type = 1; + * * @return The gatewayType. */ com.google.cloud.iot.v1.GatewayType getGatewayType(); /** + * + * *
    * Indicates how to authorize and/or authenticate devices to access the
    * gateway.
    * 
* * .google.cloud.iot.v1.GatewayAuthMethod gateway_auth_method = 2; + * * @return The enum numeric value on the wire for gatewayAuthMethod. */ int getGatewayAuthMethodValue(); /** + * + * *
    * Indicates how to authorize and/or authenticate devices to access the
    * gateway.
    * 
* * .google.cloud.iot.v1.GatewayAuthMethod gateway_auth_method = 2; + * * @return The gatewayAuthMethod. */ com.google.cloud.iot.v1.GatewayAuthMethod getGatewayAuthMethod(); /** + * + * *
    * [Output only] The ID of the gateway the device accessed most recently.
    * 
* * string last_accessed_gateway_id = 3; + * * @return The lastAccessedGatewayId. */ java.lang.String getLastAccessedGatewayId(); /** + * + * *
    * [Output only] The ID of the gateway the device accessed most recently.
    * 
* * string last_accessed_gateway_id = 3; + * * @return The bytes for lastAccessedGatewayId. */ - com.google.protobuf.ByteString - getLastAccessedGatewayIdBytes(); + com.google.protobuf.ByteString getLastAccessedGatewayIdBytes(); /** + * + * *
    * [Output only] The most recent time at which the device accessed the gateway
    * specified in `last_accessed_gateway`.
    * 
* * .google.protobuf.Timestamp last_accessed_gateway_time = 4; + * * @return Whether the lastAccessedGatewayTime field is set. */ boolean hasLastAccessedGatewayTime(); /** + * + * *
    * [Output only] The most recent time at which the device accessed the gateway
    * specified in `last_accessed_gateway`.
    * 
* * .google.protobuf.Timestamp last_accessed_gateway_time = 4; + * * @return The lastAccessedGatewayTime. */ com.google.protobuf.Timestamp getLastAccessedGatewayTime(); /** + * + * *
    * [Output only] The most recent time at which the device accessed the gateway
    * specified in `last_accessed_gateway`.
diff --git a/owl-bot-staging/v1/proto-google-cloud-iot-v1/src/main/java/com/google/cloud/iot/v1/GatewayListOptions.java b/proto-google-cloud-iot-v1/src/main/java/com/google/cloud/iot/v1/GatewayListOptions.java
similarity index 76%
rename from owl-bot-staging/v1/proto-google-cloud-iot-v1/src/main/java/com/google/cloud/iot/v1/GatewayListOptions.java
rename to proto-google-cloud-iot-v1/src/main/java/com/google/cloud/iot/v1/GatewayListOptions.java
index 751d36ce..8a9dceef 100644
--- a/owl-bot-staging/v1/proto-google-cloud-iot-v1/src/main/java/com/google/cloud/iot/v1/GatewayListOptions.java
+++ b/proto-google-cloud-iot-v1/src/main/java/com/google/cloud/iot/v1/GatewayListOptions.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/iot/v1/device_manager.proto
 
 package com.google.cloud.iot.v1;
 
 /**
+ *
+ *
  * 
  * Options for limiting the list based on gateway type and associations.
  * 
* * Protobuf type {@code google.cloud.iot.v1.GatewayListOptions} */ -public final class GatewayListOptions extends - com.google.protobuf.GeneratedMessageV3 implements +public final class GatewayListOptions extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.iot.v1.GatewayListOptions) GatewayListOptionsOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use GatewayListOptions.newBuilder() to construct. private GatewayListOptions(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private GatewayListOptions() { - } + + private GatewayListOptions() {} @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new GatewayListOptions(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private GatewayListOptions( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -52,31 +68,34 @@ private GatewayListOptions( case 0: done = true; break; - case 8: { - int rawValue = input.readEnum(); - filterCase_ = 1; - filter_ = rawValue; - break; - } - case 18: { - java.lang.String s = input.readStringRequireUtf8(); - filterCase_ = 2; - filter_ = s; - break; - } - case 26: { - java.lang.String s = input.readStringRequireUtf8(); - filterCase_ = 3; - filter_ = s; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + case 8: + { + int rawValue = input.readEnum(); + filterCase_ = 1; + filter_ = rawValue; + break; + } + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); + filterCase_ = 2; + filter_ = s; + break; + } + case 26: + { + java.lang.String s = input.readStringRequireUtf8(); + filterCase_ = 3; + filter_ = s; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -84,36 +103,41 @@ private GatewayListOptions( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.iot.v1.DeviceManagerProto.internal_static_google_cloud_iot_v1_GatewayListOptions_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.iot.v1.DeviceManagerProto + .internal_static_google_cloud_iot_v1_GatewayListOptions_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.iot.v1.DeviceManagerProto.internal_static_google_cloud_iot_v1_GatewayListOptions_fieldAccessorTable + return com.google.cloud.iot.v1.DeviceManagerProto + .internal_static_google_cloud_iot_v1_GatewayListOptions_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.iot.v1.GatewayListOptions.class, com.google.cloud.iot.v1.GatewayListOptions.Builder.class); + com.google.cloud.iot.v1.GatewayListOptions.class, + com.google.cloud.iot.v1.GatewayListOptions.Builder.class); } private int filterCase_ = 0; private java.lang.Object filter_; + public enum FilterCase - implements com.google.protobuf.Internal.EnumLite, + implements + com.google.protobuf.Internal.EnumLite, com.google.protobuf.AbstractMessage.InternalOneOfEnum { GATEWAY_TYPE(1), ASSOCIATIONS_GATEWAY_ID(2), ASSOCIATIONS_DEVICE_ID(3), FILTER_NOT_SET(0); private final int value; + private FilterCase(int value) { this.value = value; } @@ -129,26 +153,32 @@ public static FilterCase valueOf(int value) { public static FilterCase forNumber(int value) { switch (value) { - case 1: return GATEWAY_TYPE; - case 2: return ASSOCIATIONS_GATEWAY_ID; - case 3: return ASSOCIATIONS_DEVICE_ID; - case 0: return FILTER_NOT_SET; - default: return null; + case 1: + return GATEWAY_TYPE; + case 2: + return ASSOCIATIONS_GATEWAY_ID; + case 3: + return ASSOCIATIONS_DEVICE_ID; + case 0: + return FILTER_NOT_SET; + default: + return null; } } + public int getNumber() { return this.value; } }; - public FilterCase - getFilterCase() { - return FilterCase.forNumber( - filterCase_); + public FilterCase getFilterCase() { + return FilterCase.forNumber(filterCase_); } public static final int GATEWAY_TYPE_FIELD_NUMBER = 1; /** + * + * *
    * If `GATEWAY` is specified, only gateways are returned. If `NON_GATEWAY`
    * is specified, only non-gateway devices are returned. If
@@ -156,12 +186,15 @@ public int getNumber() {
    * 
* * .google.cloud.iot.v1.GatewayType gateway_type = 1; + * * @return Whether the gatewayType field is set. */ public boolean hasGatewayType() { return filterCase_ == 1; } /** + * + * *
    * If `GATEWAY` is specified, only gateways are returned. If `NON_GATEWAY`
    * is specified, only non-gateway devices are returned. If
@@ -169,6 +202,7 @@ public boolean hasGatewayType() {
    * 
* * .google.cloud.iot.v1.GatewayType gateway_type = 1; + * * @return The enum numeric value on the wire for gatewayType. */ public int getGatewayTypeValue() { @@ -178,6 +212,8 @@ public int getGatewayTypeValue() { return 0; } /** + * + * *
    * If `GATEWAY` is specified, only gateways are returned. If `NON_GATEWAY`
    * is specified, only non-gateway devices are returned. If
@@ -185,13 +221,14 @@ public int getGatewayTypeValue() {
    * 
* * .google.cloud.iot.v1.GatewayType gateway_type = 1; + * * @return The gatewayType. */ public com.google.cloud.iot.v1.GatewayType getGatewayType() { if (filterCase_ == 1) { @SuppressWarnings("deprecation") - com.google.cloud.iot.v1.GatewayType result = com.google.cloud.iot.v1.GatewayType.valueOf( - (java.lang.Integer) filter_); + com.google.cloud.iot.v1.GatewayType result = + com.google.cloud.iot.v1.GatewayType.valueOf((java.lang.Integer) filter_); return result == null ? com.google.cloud.iot.v1.GatewayType.UNRECOGNIZED : result; } return com.google.cloud.iot.v1.GatewayType.GATEWAY_TYPE_UNSPECIFIED; @@ -199,6 +236,8 @@ public com.google.cloud.iot.v1.GatewayType getGatewayType() { public static final int ASSOCIATIONS_GATEWAY_ID_FIELD_NUMBER = 2; /** + * + * *
    * If set, only devices associated with the specified gateway are returned.
    * The gateway ID can be numeric (`num_id`) or the user-defined string
@@ -207,12 +246,15 @@ public com.google.cloud.iot.v1.GatewayType getGatewayType() {
    * 
* * string associations_gateway_id = 2; + * * @return Whether the associationsGatewayId field is set. */ public boolean hasAssociationsGatewayId() { return filterCase_ == 2; } /** + * + * *
    * If set, only devices associated with the specified gateway are returned.
    * The gateway ID can be numeric (`num_id`) or the user-defined string
@@ -221,6 +263,7 @@ public boolean hasAssociationsGatewayId() {
    * 
* * string associations_gateway_id = 2; + * * @return The associationsGatewayId. */ public java.lang.String getAssociationsGatewayId() { @@ -231,8 +274,7 @@ public java.lang.String getAssociationsGatewayId() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (filterCase_ == 2) { filter_ = s; @@ -241,6 +283,8 @@ public java.lang.String getAssociationsGatewayId() { } } /** + * + * *
    * If set, only devices associated with the specified gateway are returned.
    * The gateway ID can be numeric (`num_id`) or the user-defined string
@@ -249,18 +293,17 @@ public java.lang.String getAssociationsGatewayId() {
    * 
* * string associations_gateway_id = 2; + * * @return The bytes for associationsGatewayId. */ - public com.google.protobuf.ByteString - getAssociationsGatewayIdBytes() { + public com.google.protobuf.ByteString getAssociationsGatewayIdBytes() { java.lang.Object ref = ""; if (filterCase_ == 2) { 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); if (filterCase_ == 2) { filter_ = b; } @@ -272,6 +315,8 @@ public java.lang.String getAssociationsGatewayId() { public static final int ASSOCIATIONS_DEVICE_ID_FIELD_NUMBER = 3; /** + * + * *
    * If set, returns only the gateways with which the specified device is
    * associated. The device ID can be numeric (`num_id`) or the user-defined
@@ -280,12 +325,15 @@ public java.lang.String getAssociationsGatewayId() {
    * 
* * string associations_device_id = 3; + * * @return Whether the associationsDeviceId field is set. */ public boolean hasAssociationsDeviceId() { return filterCase_ == 3; } /** + * + * *
    * If set, returns only the gateways with which the specified device is
    * associated. The device ID can be numeric (`num_id`) or the user-defined
@@ -294,6 +342,7 @@ public boolean hasAssociationsDeviceId() {
    * 
* * string associations_device_id = 3; + * * @return The associationsDeviceId. */ public java.lang.String getAssociationsDeviceId() { @@ -304,8 +353,7 @@ public java.lang.String getAssociationsDeviceId() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (filterCase_ == 3) { filter_ = s; @@ -314,6 +362,8 @@ public java.lang.String getAssociationsDeviceId() { } } /** + * + * *
    * If set, returns only the gateways with which the specified device is
    * associated. The device ID can be numeric (`num_id`) or the user-defined
@@ -322,18 +372,17 @@ public java.lang.String getAssociationsDeviceId() {
    * 
* * string associations_device_id = 3; + * * @return The bytes for associationsDeviceId. */ - public com.google.protobuf.ByteString - getAssociationsDeviceIdBytes() { + public com.google.protobuf.ByteString getAssociationsDeviceIdBytes() { java.lang.Object ref = ""; if (filterCase_ == 3) { 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); if (filterCase_ == 3) { filter_ = b; } @@ -344,6 +393,7 @@ public java.lang.String getAssociationsDeviceId() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -355,8 +405,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (filterCase_ == 1) { output.writeEnum(1, ((java.lang.Integer) filter_)); } @@ -376,8 +425,8 @@ public int getSerializedSize() { size = 0; if (filterCase_ == 1) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(1, ((java.lang.Integer) filter_)); + size += + com.google.protobuf.CodedOutputStream.computeEnumSize(1, ((java.lang.Integer) filter_)); } if (filterCase_ == 2) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, filter_); @@ -393,26 +442,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.iot.v1.GatewayListOptions)) { return super.equals(obj); } - com.google.cloud.iot.v1.GatewayListOptions other = (com.google.cloud.iot.v1.GatewayListOptions) obj; + com.google.cloud.iot.v1.GatewayListOptions other = + (com.google.cloud.iot.v1.GatewayListOptions) obj; if (!getFilterCase().equals(other.getFilterCase())) return false; switch (filterCase_) { case 1: - if (getGatewayTypeValue() - != other.getGatewayTypeValue()) return false; + if (getGatewayTypeValue() != other.getGatewayTypeValue()) return false; break; case 2: - if (!getAssociationsGatewayId() - .equals(other.getAssociationsGatewayId())) return false; + if (!getAssociationsGatewayId().equals(other.getAssociationsGatewayId())) return false; break; case 3: - if (!getAssociationsDeviceId() - .equals(other.getAssociationsDeviceId())) return false; + if (!getAssociationsDeviceId().equals(other.getAssociationsDeviceId())) return false; break; case 0: default: @@ -449,118 +496,127 @@ public int hashCode() { return hash; } - public static com.google.cloud.iot.v1.GatewayListOptions parseFrom( - java.nio.ByteBuffer data) + public static com.google.cloud.iot.v1.GatewayListOptions parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.iot.v1.GatewayListOptions parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.iot.v1.GatewayListOptions parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.iot.v1.GatewayListOptions parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.iot.v1.GatewayListOptions parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.iot.v1.GatewayListOptions parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.iot.v1.GatewayListOptions 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.iot.v1.GatewayListOptions parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.iot.v1.GatewayListOptions parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.iot.v1.GatewayListOptions parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.iot.v1.GatewayListOptions parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.iot.v1.GatewayListOptions parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.iot.v1.GatewayListOptions parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.cloud.iot.v1.GatewayListOptions prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Options for limiting the list based on gateway type and associations.
    * 
* * Protobuf type {@code google.cloud.iot.v1.GatewayListOptions} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.iot.v1.GatewayListOptions) com.google.cloud.iot.v1.GatewayListOptionsOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.iot.v1.DeviceManagerProto.internal_static_google_cloud_iot_v1_GatewayListOptions_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.iot.v1.DeviceManagerProto + .internal_static_google_cloud_iot_v1_GatewayListOptions_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.iot.v1.DeviceManagerProto.internal_static_google_cloud_iot_v1_GatewayListOptions_fieldAccessorTable + return com.google.cloud.iot.v1.DeviceManagerProto + .internal_static_google_cloud_iot_v1_GatewayListOptions_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.iot.v1.GatewayListOptions.class, com.google.cloud.iot.v1.GatewayListOptions.Builder.class); + com.google.cloud.iot.v1.GatewayListOptions.class, + com.google.cloud.iot.v1.GatewayListOptions.Builder.class); } // Construct using com.google.cloud.iot.v1.GatewayListOptions.newBuilder() @@ -568,16 +624,15 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -587,9 +642,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.iot.v1.DeviceManagerProto.internal_static_google_cloud_iot_v1_GatewayListOptions_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.iot.v1.DeviceManagerProto + .internal_static_google_cloud_iot_v1_GatewayListOptions_descriptor; } @java.lang.Override @@ -608,7 +663,8 @@ public com.google.cloud.iot.v1.GatewayListOptions build() { @java.lang.Override public com.google.cloud.iot.v1.GatewayListOptions buildPartial() { - com.google.cloud.iot.v1.GatewayListOptions result = new com.google.cloud.iot.v1.GatewayListOptions(this); + com.google.cloud.iot.v1.GatewayListOptions result = + new com.google.cloud.iot.v1.GatewayListOptions(this); if (filterCase_ == 1) { result.filter_ = filter_; } @@ -627,38 +683,39 @@ public com.google.cloud.iot.v1.GatewayListOptions buildPartial() { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.iot.v1.GatewayListOptions) { - return mergeFrom((com.google.cloud.iot.v1.GatewayListOptions)other); + return mergeFrom((com.google.cloud.iot.v1.GatewayListOptions) other); } else { super.mergeFrom(other); return this; @@ -668,25 +725,29 @@ public Builder mergeFrom(com.google.protobuf.Message other) { public Builder mergeFrom(com.google.cloud.iot.v1.GatewayListOptions other) { if (other == com.google.cloud.iot.v1.GatewayListOptions.getDefaultInstance()) return this; switch (other.getFilterCase()) { - case GATEWAY_TYPE: { - setGatewayTypeValue(other.getGatewayTypeValue()); - break; - } - case ASSOCIATIONS_GATEWAY_ID: { - filterCase_ = 2; - filter_ = other.filter_; - onChanged(); - break; - } - case ASSOCIATIONS_DEVICE_ID: { - filterCase_ = 3; - filter_ = other.filter_; - onChanged(); - break; - } - case FILTER_NOT_SET: { - break; - } + case GATEWAY_TYPE: + { + setGatewayTypeValue(other.getGatewayTypeValue()); + break; + } + case ASSOCIATIONS_GATEWAY_ID: + { + filterCase_ = 2; + filter_ = other.filter_; + onChanged(); + break; + } + case ASSOCIATIONS_DEVICE_ID: + { + filterCase_ = 3; + filter_ = other.filter_; + onChanged(); + break; + } + case FILTER_NOT_SET: + { + break; + } } this.mergeUnknownFields(other.unknownFields); onChanged(); @@ -716,12 +777,12 @@ public Builder mergeFrom( } return this; } + private int filterCase_ = 0; private java.lang.Object filter_; - public FilterCase - getFilterCase() { - return FilterCase.forNumber( - filterCase_); + + public FilterCase getFilterCase() { + return FilterCase.forNumber(filterCase_); } public Builder clearFilter() { @@ -731,8 +792,9 @@ public Builder clearFilter() { return this; } - /** + * + * *
      * If `GATEWAY` is specified, only gateways are returned. If `NON_GATEWAY`
      * is specified, only non-gateway devices are returned. If
@@ -740,6 +802,7 @@ public Builder clearFilter() {
      * 
* * .google.cloud.iot.v1.GatewayType gateway_type = 1; + * * @return Whether the gatewayType field is set. */ @java.lang.Override @@ -747,6 +810,8 @@ public boolean hasGatewayType() { return filterCase_ == 1; } /** + * + * *
      * If `GATEWAY` is specified, only gateways are returned. If `NON_GATEWAY`
      * is specified, only non-gateway devices are returned. If
@@ -754,6 +819,7 @@ public boolean hasGatewayType() {
      * 
* * .google.cloud.iot.v1.GatewayType gateway_type = 1; + * * @return The enum numeric value on the wire for gatewayType. */ @java.lang.Override @@ -764,6 +830,8 @@ public int getGatewayTypeValue() { return 0; } /** + * + * *
      * If `GATEWAY` is specified, only gateways are returned. If `NON_GATEWAY`
      * is specified, only non-gateway devices are returned. If
@@ -771,6 +839,7 @@ public int getGatewayTypeValue() {
      * 
* * .google.cloud.iot.v1.GatewayType gateway_type = 1; + * * @param value The enum numeric value on the wire for gatewayType to set. * @return This builder for chaining. */ @@ -781,6 +850,8 @@ public Builder setGatewayTypeValue(int value) { return this; } /** + * + * *
      * If `GATEWAY` is specified, only gateways are returned. If `NON_GATEWAY`
      * is specified, only non-gateway devices are returned. If
@@ -788,19 +859,22 @@ public Builder setGatewayTypeValue(int value) {
      * 
* * .google.cloud.iot.v1.GatewayType gateway_type = 1; + * * @return The gatewayType. */ @java.lang.Override public com.google.cloud.iot.v1.GatewayType getGatewayType() { if (filterCase_ == 1) { @SuppressWarnings("deprecation") - com.google.cloud.iot.v1.GatewayType result = com.google.cloud.iot.v1.GatewayType.valueOf( - (java.lang.Integer) filter_); + com.google.cloud.iot.v1.GatewayType result = + com.google.cloud.iot.v1.GatewayType.valueOf((java.lang.Integer) filter_); return result == null ? com.google.cloud.iot.v1.GatewayType.UNRECOGNIZED : result; } return com.google.cloud.iot.v1.GatewayType.GATEWAY_TYPE_UNSPECIFIED; } /** + * + * *
      * If `GATEWAY` is specified, only gateways are returned. If `NON_GATEWAY`
      * is specified, only non-gateway devices are returned. If
@@ -808,6 +882,7 @@ public com.google.cloud.iot.v1.GatewayType getGatewayType() {
      * 
* * .google.cloud.iot.v1.GatewayType gateway_type = 1; + * * @param value The gatewayType to set. * @return This builder for chaining. */ @@ -821,6 +896,8 @@ public Builder setGatewayType(com.google.cloud.iot.v1.GatewayType value) { return this; } /** + * + * *
      * If `GATEWAY` is specified, only gateways are returned. If `NON_GATEWAY`
      * is specified, only non-gateway devices are returned. If
@@ -828,6 +905,7 @@ public Builder setGatewayType(com.google.cloud.iot.v1.GatewayType value) {
      * 
* * .google.cloud.iot.v1.GatewayType gateway_type = 1; + * * @return This builder for chaining. */ public Builder clearGatewayType() { @@ -840,6 +918,8 @@ public Builder clearGatewayType() { } /** + * + * *
      * If set, only devices associated with the specified gateway are returned.
      * The gateway ID can be numeric (`num_id`) or the user-defined string
@@ -848,6 +928,7 @@ public Builder clearGatewayType() {
      * 
* * string associations_gateway_id = 2; + * * @return Whether the associationsGatewayId field is set. */ @java.lang.Override @@ -855,6 +936,8 @@ public boolean hasAssociationsGatewayId() { return filterCase_ == 2; } /** + * + * *
      * If set, only devices associated with the specified gateway are returned.
      * The gateway ID can be numeric (`num_id`) or the user-defined string
@@ -863,6 +946,7 @@ public boolean hasAssociationsGatewayId() {
      * 
* * string associations_gateway_id = 2; + * * @return The associationsGatewayId. */ @java.lang.Override @@ -872,8 +956,7 @@ public java.lang.String getAssociationsGatewayId() { 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(); if (filterCase_ == 2) { filter_ = s; @@ -884,6 +967,8 @@ public java.lang.String getAssociationsGatewayId() { } } /** + * + * *
      * If set, only devices associated with the specified gateway are returned.
      * The gateway ID can be numeric (`num_id`) or the user-defined string
@@ -892,19 +977,18 @@ public java.lang.String getAssociationsGatewayId() {
      * 
* * string associations_gateway_id = 2; + * * @return The bytes for associationsGatewayId. */ @java.lang.Override - public com.google.protobuf.ByteString - getAssociationsGatewayIdBytes() { + public com.google.protobuf.ByteString getAssociationsGatewayIdBytes() { java.lang.Object ref = ""; if (filterCase_ == 2) { 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); if (filterCase_ == 2) { filter_ = b; } @@ -914,6 +998,8 @@ public java.lang.String getAssociationsGatewayId() { } } /** + * + * *
      * If set, only devices associated with the specified gateway are returned.
      * The gateway ID can be numeric (`num_id`) or the user-defined string
@@ -922,20 +1008,22 @@ public java.lang.String getAssociationsGatewayId() {
      * 
* * string associations_gateway_id = 2; + * * @param value The associationsGatewayId to set. * @return This builder for chaining. */ - public Builder setAssociationsGatewayId( - java.lang.String value) { + public Builder setAssociationsGatewayId(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - filterCase_ = 2; + throw new NullPointerException(); + } + filterCase_ = 2; filter_ = value; onChanged(); return this; } /** + * + * *
      * If set, only devices associated with the specified gateway are returned.
      * The gateway ID can be numeric (`num_id`) or the user-defined string
@@ -944,6 +1032,7 @@ public Builder setAssociationsGatewayId(
      * 
* * string associations_gateway_id = 2; + * * @return This builder for chaining. */ public Builder clearAssociationsGatewayId() { @@ -955,6 +1044,8 @@ public Builder clearAssociationsGatewayId() { return this; } /** + * + * *
      * If set, only devices associated with the specified gateway are returned.
      * The gateway ID can be numeric (`num_id`) or the user-defined string
@@ -963,15 +1054,15 @@ public Builder clearAssociationsGatewayId() {
      * 
* * string associations_gateway_id = 2; + * * @param value The bytes for associationsGatewayId to set. * @return This builder for chaining. */ - public Builder setAssociationsGatewayIdBytes( - com.google.protobuf.ByteString value) { + public Builder setAssociationsGatewayIdBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); filterCase_ = 2; filter_ = value; onChanged(); @@ -979,6 +1070,8 @@ public Builder setAssociationsGatewayIdBytes( } /** + * + * *
      * If set, returns only the gateways with which the specified device is
      * associated. The device ID can be numeric (`num_id`) or the user-defined
@@ -987,6 +1080,7 @@ public Builder setAssociationsGatewayIdBytes(
      * 
* * string associations_device_id = 3; + * * @return Whether the associationsDeviceId field is set. */ @java.lang.Override @@ -994,6 +1088,8 @@ public boolean hasAssociationsDeviceId() { return filterCase_ == 3; } /** + * + * *
      * If set, returns only the gateways with which the specified device is
      * associated. The device ID can be numeric (`num_id`) or the user-defined
@@ -1002,6 +1098,7 @@ public boolean hasAssociationsDeviceId() {
      * 
* * string associations_device_id = 3; + * * @return The associationsDeviceId. */ @java.lang.Override @@ -1011,8 +1108,7 @@ public java.lang.String getAssociationsDeviceId() { 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(); if (filterCase_ == 3) { filter_ = s; @@ -1023,6 +1119,8 @@ public java.lang.String getAssociationsDeviceId() { } } /** + * + * *
      * If set, returns only the gateways with which the specified device is
      * associated. The device ID can be numeric (`num_id`) or the user-defined
@@ -1031,19 +1129,18 @@ public java.lang.String getAssociationsDeviceId() {
      * 
* * string associations_device_id = 3; + * * @return The bytes for associationsDeviceId. */ @java.lang.Override - public com.google.protobuf.ByteString - getAssociationsDeviceIdBytes() { + public com.google.protobuf.ByteString getAssociationsDeviceIdBytes() { java.lang.Object ref = ""; if (filterCase_ == 3) { 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); if (filterCase_ == 3) { filter_ = b; } @@ -1053,6 +1150,8 @@ public java.lang.String getAssociationsDeviceId() { } } /** + * + * *
      * If set, returns only the gateways with which the specified device is
      * associated. The device ID can be numeric (`num_id`) or the user-defined
@@ -1061,20 +1160,22 @@ public java.lang.String getAssociationsDeviceId() {
      * 
* * string associations_device_id = 3; + * * @param value The associationsDeviceId to set. * @return This builder for chaining. */ - public Builder setAssociationsDeviceId( - java.lang.String value) { + public Builder setAssociationsDeviceId(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - filterCase_ = 3; + throw new NullPointerException(); + } + filterCase_ = 3; filter_ = value; onChanged(); return this; } /** + * + * *
      * If set, returns only the gateways with which the specified device is
      * associated. The device ID can be numeric (`num_id`) or the user-defined
@@ -1083,6 +1184,7 @@ public Builder setAssociationsDeviceId(
      * 
* * string associations_device_id = 3; + * * @return This builder for chaining. */ public Builder clearAssociationsDeviceId() { @@ -1094,6 +1196,8 @@ public Builder clearAssociationsDeviceId() { return this; } /** + * + * *
      * If set, returns only the gateways with which the specified device is
      * associated. The device ID can be numeric (`num_id`) or the user-defined
@@ -1102,23 +1206,23 @@ public Builder clearAssociationsDeviceId() {
      * 
* * string associations_device_id = 3; + * * @param value The bytes for associationsDeviceId to set. * @return This builder for chaining. */ - public Builder setAssociationsDeviceIdBytes( - com.google.protobuf.ByteString value) { + public Builder setAssociationsDeviceIdBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); filterCase_ = 3; filter_ = value; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1128,12 +1232,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.iot.v1.GatewayListOptions) } // @@protoc_insertion_point(class_scope:google.cloud.iot.v1.GatewayListOptions) private static final com.google.cloud.iot.v1.GatewayListOptions DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.iot.v1.GatewayListOptions(); } @@ -1142,16 +1246,16 @@ public static com.google.cloud.iot.v1.GatewayListOptions getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public GatewayListOptions parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new GatewayListOptions(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GatewayListOptions parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new GatewayListOptions(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1166,6 +1270,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.iot.v1.GatewayListOptions getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1/proto-google-cloud-iot-v1/src/main/java/com/google/cloud/iot/v1/GatewayListOptionsOrBuilder.java b/proto-google-cloud-iot-v1/src/main/java/com/google/cloud/iot/v1/GatewayListOptionsOrBuilder.java similarity index 82% rename from owl-bot-staging/v1/proto-google-cloud-iot-v1/src/main/java/com/google/cloud/iot/v1/GatewayListOptionsOrBuilder.java rename to proto-google-cloud-iot-v1/src/main/java/com/google/cloud/iot/v1/GatewayListOptionsOrBuilder.java index bdf10aed..e0b4861e 100644 --- a/owl-bot-staging/v1/proto-google-cloud-iot-v1/src/main/java/com/google/cloud/iot/v1/GatewayListOptionsOrBuilder.java +++ b/proto-google-cloud-iot-v1/src/main/java/com/google/cloud/iot/v1/GatewayListOptionsOrBuilder.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/iot/v1/device_manager.proto package com.google.cloud.iot.v1; -public interface GatewayListOptionsOrBuilder extends +public interface GatewayListOptionsOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.iot.v1.GatewayListOptions) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * If `GATEWAY` is specified, only gateways are returned. If `NON_GATEWAY`
    * is specified, only non-gateway devices are returned. If
@@ -15,10 +33,13 @@ public interface GatewayListOptionsOrBuilder extends
    * 
* * .google.cloud.iot.v1.GatewayType gateway_type = 1; + * * @return Whether the gatewayType field is set. */ boolean hasGatewayType(); /** + * + * *
    * If `GATEWAY` is specified, only gateways are returned. If `NON_GATEWAY`
    * is specified, only non-gateway devices are returned. If
@@ -26,10 +47,13 @@ public interface GatewayListOptionsOrBuilder extends
    * 
* * .google.cloud.iot.v1.GatewayType gateway_type = 1; + * * @return The enum numeric value on the wire for gatewayType. */ int getGatewayTypeValue(); /** + * + * *
    * If `GATEWAY` is specified, only gateways are returned. If `NON_GATEWAY`
    * is specified, only non-gateway devices are returned. If
@@ -37,11 +61,14 @@ public interface GatewayListOptionsOrBuilder extends
    * 
* * .google.cloud.iot.v1.GatewayType gateway_type = 1; + * * @return The gatewayType. */ com.google.cloud.iot.v1.GatewayType getGatewayType(); /** + * + * *
    * If set, only devices associated with the specified gateway are returned.
    * The gateway ID can be numeric (`num_id`) or the user-defined string
@@ -50,10 +77,13 @@ public interface GatewayListOptionsOrBuilder extends
    * 
* * string associations_gateway_id = 2; + * * @return Whether the associationsGatewayId field is set. */ boolean hasAssociationsGatewayId(); /** + * + * *
    * If set, only devices associated with the specified gateway are returned.
    * The gateway ID can be numeric (`num_id`) or the user-defined string
@@ -62,10 +92,13 @@ public interface GatewayListOptionsOrBuilder extends
    * 
* * string associations_gateway_id = 2; + * * @return The associationsGatewayId. */ java.lang.String getAssociationsGatewayId(); /** + * + * *
    * If set, only devices associated with the specified gateway are returned.
    * The gateway ID can be numeric (`num_id`) or the user-defined string
@@ -74,12 +107,14 @@ public interface GatewayListOptionsOrBuilder extends
    * 
* * string associations_gateway_id = 2; + * * @return The bytes for associationsGatewayId. */ - com.google.protobuf.ByteString - getAssociationsGatewayIdBytes(); + com.google.protobuf.ByteString getAssociationsGatewayIdBytes(); /** + * + * *
    * If set, returns only the gateways with which the specified device is
    * associated. The device ID can be numeric (`num_id`) or the user-defined
@@ -88,10 +123,13 @@ public interface GatewayListOptionsOrBuilder extends
    * 
* * string associations_device_id = 3; + * * @return Whether the associationsDeviceId field is set. */ boolean hasAssociationsDeviceId(); /** + * + * *
    * If set, returns only the gateways with which the specified device is
    * associated. The device ID can be numeric (`num_id`) or the user-defined
@@ -100,10 +138,13 @@ public interface GatewayListOptionsOrBuilder extends
    * 
* * string associations_device_id = 3; + * * @return The associationsDeviceId. */ java.lang.String getAssociationsDeviceId(); /** + * + * *
    * If set, returns only the gateways with which the specified device is
    * associated. The device ID can be numeric (`num_id`) or the user-defined
@@ -112,10 +153,10 @@ public interface GatewayListOptionsOrBuilder extends
    * 
* * string associations_device_id = 3; + * * @return The bytes for associationsDeviceId. */ - com.google.protobuf.ByteString - getAssociationsDeviceIdBytes(); + com.google.protobuf.ByteString getAssociationsDeviceIdBytes(); public com.google.cloud.iot.v1.GatewayListOptions.FilterCase getFilterCase(); } diff --git a/owl-bot-staging/v1/proto-google-cloud-iot-v1/src/main/java/com/google/cloud/iot/v1/GatewayType.java b/proto-google-cloud-iot-v1/src/main/java/com/google/cloud/iot/v1/GatewayType.java similarity index 66% rename from owl-bot-staging/v1/proto-google-cloud-iot-v1/src/main/java/com/google/cloud/iot/v1/GatewayType.java rename to proto-google-cloud-iot-v1/src/main/java/com/google/cloud/iot/v1/GatewayType.java index 0443a4ec..569e6959 100644 --- a/owl-bot-staging/v1/proto-google-cloud-iot-v1/src/main/java/com/google/cloud/iot/v1/GatewayType.java +++ b/proto-google-cloud-iot-v1/src/main/java/com/google/cloud/iot/v1/GatewayType.java @@ -1,18 +1,36 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/iot/v1/resources.proto package com.google.cloud.iot.v1; /** + * + * *
  * Gateway type.
  * 
* * Protobuf enum {@code google.cloud.iot.v1.GatewayType} */ -public enum GatewayType - implements com.google.protobuf.ProtocolMessageEnum { +public enum GatewayType implements com.google.protobuf.ProtocolMessageEnum { /** + * + * *
    * If unspecified, the device is considered a non-gateway device.
    * 
@@ -21,6 +39,8 @@ public enum GatewayType */ GATEWAY_TYPE_UNSPECIFIED(0), /** + * + * *
    * The device is a gateway.
    * 
@@ -29,6 +49,8 @@ public enum GatewayType */ GATEWAY(1), /** + * + * *
    * The device is not a gateway.
    * 
@@ -40,6 +62,8 @@ public enum GatewayType ; /** + * + * *
    * If unspecified, the device is considered a non-gateway device.
    * 
@@ -48,6 +72,8 @@ public enum GatewayType */ public static final int GATEWAY_TYPE_UNSPECIFIED_VALUE = 0; /** + * + * *
    * The device is a gateway.
    * 
@@ -56,6 +82,8 @@ public enum GatewayType */ public static final int GATEWAY_VALUE = 1; /** + * + * *
    * The device is not a gateway.
    * 
@@ -64,7 +92,6 @@ public enum GatewayType */ public static final int NON_GATEWAY_VALUE = 2; - public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( @@ -89,49 +116,49 @@ public static GatewayType valueOf(int value) { */ public static GatewayType forNumber(int value) { switch (value) { - case 0: return GATEWAY_TYPE_UNSPECIFIED; - case 1: return GATEWAY; - case 2: return NON_GATEWAY; - default: return null; + case 0: + return GATEWAY_TYPE_UNSPECIFIED; + case 1: + return GATEWAY; + case 2: + return NON_GATEWAY; + 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< - GatewayType> internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public GatewayType findValueByNumber(int number) { - return GatewayType.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 GatewayType findValueByNumber(int number) { + return GatewayType.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.iot.v1.ResourcesProto.getDescriptor().getEnumTypes().get(3); } private static final GatewayType[] VALUES = values(); - public static GatewayType valueOf( - com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + public static GatewayType valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { if (desc.getType() != getDescriptor()) { - throw new java.lang.IllegalArgumentException( - "EnumValueDescriptor is not for this type."); + throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); } if (desc.getIndex() == -1) { return UNRECOGNIZED; @@ -147,4 +174,3 @@ private GatewayType(int value) { // @@protoc_insertion_point(enum_scope:google.cloud.iot.v1.GatewayType) } - diff --git a/owl-bot-staging/v1/proto-google-cloud-iot-v1/src/main/java/com/google/cloud/iot/v1/GetDeviceRegistryRequest.java b/proto-google-cloud-iot-v1/src/main/java/com/google/cloud/iot/v1/GetDeviceRegistryRequest.java similarity index 66% rename from owl-bot-staging/v1/proto-google-cloud-iot-v1/src/main/java/com/google/cloud/iot/v1/GetDeviceRegistryRequest.java rename to proto-google-cloud-iot-v1/src/main/java/com/google/cloud/iot/v1/GetDeviceRegistryRequest.java index 4328dbcc..6fa2086d 100644 --- a/owl-bot-staging/v1/proto-google-cloud-iot-v1/src/main/java/com/google/cloud/iot/v1/GetDeviceRegistryRequest.java +++ b/proto-google-cloud-iot-v1/src/main/java/com/google/cloud/iot/v1/GetDeviceRegistryRequest.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/iot/v1/device_manager.proto package com.google.cloud.iot.v1; /** + * + * *
  * Request for `GetDeviceRegistry`.
  * 
* * Protobuf type {@code google.cloud.iot.v1.GetDeviceRegistryRequest} */ -public final class GetDeviceRegistryRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class GetDeviceRegistryRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.iot.v1.GetDeviceRegistryRequest) GetDeviceRegistryRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use GetDeviceRegistryRequest.newBuilder() to construct. private GetDeviceRegistryRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private GetDeviceRegistryRequest() { name_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new GetDeviceRegistryRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private GetDeviceRegistryRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -53,19 +70,20 @@ private GetDeviceRegistryRequest( 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,35 +91,42 @@ private GetDeviceRegistryRequest( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.iot.v1.DeviceManagerProto.internal_static_google_cloud_iot_v1_GetDeviceRegistryRequest_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.iot.v1.DeviceManagerProto + .internal_static_google_cloud_iot_v1_GetDeviceRegistryRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.iot.v1.DeviceManagerProto.internal_static_google_cloud_iot_v1_GetDeviceRegistryRequest_fieldAccessorTable + return com.google.cloud.iot.v1.DeviceManagerProto + .internal_static_google_cloud_iot_v1_GetDeviceRegistryRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.iot.v1.GetDeviceRegistryRequest.class, com.google.cloud.iot.v1.GetDeviceRegistryRequest.Builder.class); + com.google.cloud.iot.v1.GetDeviceRegistryRequest.class, + com.google.cloud.iot.v1.GetDeviceRegistryRequest.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** + * + * *
    * Required. The name of the device registry. For example,
    * `projects/example-project/locations/us-central1/registries/my-registry`.
    * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The name. */ @java.lang.Override @@ -110,30 +135,32 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** + * + * *
    * Required. The name of the device registry. For example,
    * `projects/example-project/locations/us-central1/registries/my-registry`.
    * 
* - * string name = 1 [(.google.api.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 { @@ -142,6 +169,7 @@ public java.lang.String getName() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -153,8 +181,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -178,15 +205,15 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.iot.v1.GetDeviceRegistryRequest)) { return super.equals(obj); } - com.google.cloud.iot.v1.GetDeviceRegistryRequest other = (com.google.cloud.iot.v1.GetDeviceRegistryRequest) obj; + com.google.cloud.iot.v1.GetDeviceRegistryRequest other = + (com.google.cloud.iot.v1.GetDeviceRegistryRequest) obj; - if (!getName() - .equals(other.getName())) return false; + if (!getName().equals(other.getName())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -205,118 +232,127 @@ public int hashCode() { return hash; } - public static com.google.cloud.iot.v1.GetDeviceRegistryRequest parseFrom( - java.nio.ByteBuffer data) + public static com.google.cloud.iot.v1.GetDeviceRegistryRequest parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.iot.v1.GetDeviceRegistryRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.iot.v1.GetDeviceRegistryRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.iot.v1.GetDeviceRegistryRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.iot.v1.GetDeviceRegistryRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.iot.v1.GetDeviceRegistryRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.iot.v1.GetDeviceRegistryRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.iot.v1.GetDeviceRegistryRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.iot.v1.GetDeviceRegistryRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.iot.v1.GetDeviceRegistryRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.iot.v1.GetDeviceRegistryRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.iot.v1.GetDeviceRegistryRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.iot.v1.GetDeviceRegistryRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.iot.v1.GetDeviceRegistryRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.cloud.iot.v1.GetDeviceRegistryRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected 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 `GetDeviceRegistry`.
    * 
* * Protobuf type {@code google.cloud.iot.v1.GetDeviceRegistryRequest} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.iot.v1.GetDeviceRegistryRequest) com.google.cloud.iot.v1.GetDeviceRegistryRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.iot.v1.DeviceManagerProto.internal_static_google_cloud_iot_v1_GetDeviceRegistryRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.iot.v1.DeviceManagerProto + .internal_static_google_cloud_iot_v1_GetDeviceRegistryRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.iot.v1.DeviceManagerProto.internal_static_google_cloud_iot_v1_GetDeviceRegistryRequest_fieldAccessorTable + return com.google.cloud.iot.v1.DeviceManagerProto + .internal_static_google_cloud_iot_v1_GetDeviceRegistryRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.iot.v1.GetDeviceRegistryRequest.class, com.google.cloud.iot.v1.GetDeviceRegistryRequest.Builder.class); + com.google.cloud.iot.v1.GetDeviceRegistryRequest.class, + com.google.cloud.iot.v1.GetDeviceRegistryRequest.Builder.class); } // Construct using com.google.cloud.iot.v1.GetDeviceRegistryRequest.newBuilder() @@ -324,16 +360,15 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -343,9 +378,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.iot.v1.DeviceManagerProto.internal_static_google_cloud_iot_v1_GetDeviceRegistryRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.iot.v1.DeviceManagerProto + .internal_static_google_cloud_iot_v1_GetDeviceRegistryRequest_descriptor; } @java.lang.Override @@ -364,7 +399,8 @@ public com.google.cloud.iot.v1.GetDeviceRegistryRequest build() { @java.lang.Override public com.google.cloud.iot.v1.GetDeviceRegistryRequest buildPartial() { - com.google.cloud.iot.v1.GetDeviceRegistryRequest result = new com.google.cloud.iot.v1.GetDeviceRegistryRequest(this); + com.google.cloud.iot.v1.GetDeviceRegistryRequest result = + new com.google.cloud.iot.v1.GetDeviceRegistryRequest(this); result.name_ = name_; onBuilt(); return result; @@ -374,38 +410,39 @@ public com.google.cloud.iot.v1.GetDeviceRegistryRequest buildPartial() { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.iot.v1.GetDeviceRegistryRequest) { - return mergeFrom((com.google.cloud.iot.v1.GetDeviceRegistryRequest)other); + return mergeFrom((com.google.cloud.iot.v1.GetDeviceRegistryRequest) other); } else { super.mergeFrom(other); return this; @@ -413,7 +450,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.iot.v1.GetDeviceRegistryRequest other) { - if (other == com.google.cloud.iot.v1.GetDeviceRegistryRequest.getDefaultInstance()) return this; + if (other == com.google.cloud.iot.v1.GetDeviceRegistryRequest.getDefaultInstance()) + return this; if (!other.getName().isEmpty()) { name_ = other.name_; onChanged(); @@ -449,19 +487,23 @@ public Builder mergeFrom( private java.lang.Object name_ = ""; /** + * + * *
      * Required. The name of the device registry. For example,
      * `projects/example-project/locations/us-central1/registries/my-registry`.
      * 
* - * string name = 1 [(.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; @@ -470,21 +512,24 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. The name of the device registry. For example,
      * `projects/example-project/locations/us-central1/registries/my-registry`.
      * 
* - * string name = 1 [(.google.api.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 { @@ -492,64 +537,77 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. The name of the device registry. For example,
      * `projects/example-project/locations/us-central1/registries/my-registry`.
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The name to set. * @return This builder for chaining. */ - public Builder setName( - java.lang.String value) { + public Builder setName(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + name_ = value; onChanged(); return this; } /** + * + * *
      * Required. The name of the device registry. For example,
      * `projects/example-project/locations/us-central1/registries/my-registry`.
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return This builder for chaining. */ public Builder clearName() { - + name_ = getDefaultInstance().getName(); onChanged(); return this; } /** + * + * *
      * Required. The name of the device registry. For example,
      * `projects/example-project/locations/us-central1/registries/my-registry`.
      * 
* - * 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); } @@ -559,12 +617,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.iot.v1.GetDeviceRegistryRequest) } // @@protoc_insertion_point(class_scope:google.cloud.iot.v1.GetDeviceRegistryRequest) private static final com.google.cloud.iot.v1.GetDeviceRegistryRequest DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.iot.v1.GetDeviceRegistryRequest(); } @@ -573,16 +631,16 @@ public static com.google.cloud.iot.v1.GetDeviceRegistryRequest getDefaultInstanc return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public GetDeviceRegistryRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new GetDeviceRegistryRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GetDeviceRegistryRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new GetDeviceRegistryRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -597,6 +655,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.iot.v1.GetDeviceRegistryRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/proto-google-cloud-iot-v1/src/main/java/com/google/cloud/iot/v1/GetDeviceRegistryRequestOrBuilder.java b/proto-google-cloud-iot-v1/src/main/java/com/google/cloud/iot/v1/GetDeviceRegistryRequestOrBuilder.java new file mode 100644 index 00000000..36c5a33a --- /dev/null +++ b/proto-google-cloud-iot-v1/src/main/java/com/google/cloud/iot/v1/GetDeviceRegistryRequestOrBuilder.java @@ -0,0 +1,56 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/iot/v1/device_manager.proto + +package com.google.cloud.iot.v1; + +public interface GetDeviceRegistryRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.iot.v1.GetDeviceRegistryRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The name of the device registry. For example,
+   * `projects/example-project/locations/us-central1/registries/my-registry`.
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + java.lang.String getName(); + /** + * + * + *
+   * Required. The name of the device registry. For example,
+   * `projects/example-project/locations/us-central1/registries/my-registry`.
+   * 
+ * + * + * 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-iot-v1/src/main/java/com/google/cloud/iot/v1/GetDeviceRequest.java b/proto-google-cloud-iot-v1/src/main/java/com/google/cloud/iot/v1/GetDeviceRequest.java similarity index 71% rename from owl-bot-staging/v1/proto-google-cloud-iot-v1/src/main/java/com/google/cloud/iot/v1/GetDeviceRequest.java rename to proto-google-cloud-iot-v1/src/main/java/com/google/cloud/iot/v1/GetDeviceRequest.java index c5d72a96..d4b8683f 100644 --- a/owl-bot-staging/v1/proto-google-cloud-iot-v1/src/main/java/com/google/cloud/iot/v1/GetDeviceRequest.java +++ b/proto-google-cloud-iot-v1/src/main/java/com/google/cloud/iot/v1/GetDeviceRequest.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/iot/v1/device_manager.proto package com.google.cloud.iot.v1; /** + * + * *
  * Request for `GetDevice`.
  * 
* * Protobuf type {@code google.cloud.iot.v1.GetDeviceRequest} */ -public final class GetDeviceRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class GetDeviceRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.iot.v1.GetDeviceRequest) GetDeviceRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use GetDeviceRequest.newBuilder() to construct. private GetDeviceRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private GetDeviceRequest() { name_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new GetDeviceRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private GetDeviceRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -53,32 +70,35 @@ private GetDeviceRequest( 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 (fieldMask_ != null) { - subBuilder = fieldMask_.toBuilder(); + name_ = s; + break; } - fieldMask_ = input.readMessage(com.google.protobuf.FieldMask.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(fieldMask_); - fieldMask_ = subBuilder.buildPartial(); + case 18: + { + com.google.protobuf.FieldMask.Builder subBuilder = null; + if (fieldMask_ != null) { + subBuilder = fieldMask_.toBuilder(); + } + fieldMask_ = + input.readMessage(com.google.protobuf.FieldMask.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(fieldMask_); + fieldMask_ = subBuilder.buildPartial(); + } + + break; } - - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -86,36 +106,43 @@ private GetDeviceRequest( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.iot.v1.DeviceManagerProto.internal_static_google_cloud_iot_v1_GetDeviceRequest_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.iot.v1.DeviceManagerProto + .internal_static_google_cloud_iot_v1_GetDeviceRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.iot.v1.DeviceManagerProto.internal_static_google_cloud_iot_v1_GetDeviceRequest_fieldAccessorTable + return com.google.cloud.iot.v1.DeviceManagerProto + .internal_static_google_cloud_iot_v1_GetDeviceRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.iot.v1.GetDeviceRequest.class, com.google.cloud.iot.v1.GetDeviceRequest.Builder.class); + com.google.cloud.iot.v1.GetDeviceRequest.class, + com.google.cloud.iot.v1.GetDeviceRequest.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** + * + * *
    * Required. The name of the device. For example,
    * `projects/p0/locations/us-central1/registries/registry0/devices/device0` or
    * `projects/p0/locations/us-central1/registries/registry0/devices/{num_id}`.
    * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The name. */ @java.lang.Override @@ -124,31 +151,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. The name of the device. For example,
    * `projects/p0/locations/us-central1/registries/registry0/devices/device0` or
    * `projects/p0/locations/us-central1/registries/registry0/devices/{num_id}`.
    * 
* - * string name = 1 [(.google.api.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 { @@ -159,6 +188,8 @@ public java.lang.String getName() { public static final int FIELD_MASK_FIELD_NUMBER = 2; private com.google.protobuf.FieldMask fieldMask_; /** + * + * *
    * The fields of the `Device` resource to be returned in the response. If the
    * field mask is unset or empty, all fields are returned. Fields have to be
@@ -166,6 +197,7 @@ public java.lang.String getName() {
    * 
* * .google.protobuf.FieldMask field_mask = 2; + * * @return Whether the fieldMask field is set. */ @java.lang.Override @@ -173,6 +205,8 @@ public boolean hasFieldMask() { return fieldMask_ != null; } /** + * + * *
    * The fields of the `Device` resource to be returned in the response. If the
    * field mask is unset or empty, all fields are returned. Fields have to be
@@ -180,6 +214,7 @@ public boolean hasFieldMask() {
    * 
* * .google.protobuf.FieldMask field_mask = 2; + * * @return The fieldMask. */ @java.lang.Override @@ -187,6 +222,8 @@ public com.google.protobuf.FieldMask getFieldMask() { return fieldMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : fieldMask_; } /** + * + * *
    * The fields of the `Device` resource to be returned in the response. If the
    * field mask is unset or empty, all fields are returned. Fields have to be
@@ -201,6 +238,7 @@ public com.google.protobuf.FieldMaskOrBuilder getFieldMaskOrBuilder() {
   }
 
   private byte memoizedIsInitialized = -1;
+
   @java.lang.Override
   public final boolean isInitialized() {
     byte isInitialized = memoizedIsInitialized;
@@ -212,8 +250,7 @@ public final boolean isInitialized() {
   }
 
   @java.lang.Override
-  public void writeTo(com.google.protobuf.CodedOutputStream output)
-                      throws java.io.IOException {
+  public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
     if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) {
       com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_);
     }
@@ -233,8 +270,7 @@ public int getSerializedSize() {
       size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_);
     }
     if (fieldMask_ != null) {
-      size += com.google.protobuf.CodedOutputStream
-        .computeMessageSize(2, getFieldMask());
+      size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getFieldMask());
     }
     size += unknownFields.getSerializedSize();
     memoizedSize = size;
@@ -244,19 +280,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.iot.v1.GetDeviceRequest)) {
       return super.equals(obj);
     }
     com.google.cloud.iot.v1.GetDeviceRequest other = (com.google.cloud.iot.v1.GetDeviceRequest) obj;
 
-    if (!getName()
-        .equals(other.getName())) return false;
+    if (!getName().equals(other.getName())) return false;
     if (hasFieldMask() != other.hasFieldMask()) return false;
     if (hasFieldMask()) {
-      if (!getFieldMask()
-          .equals(other.getFieldMask())) return false;
+      if (!getFieldMask().equals(other.getFieldMask())) return false;
     }
     if (!unknownFields.equals(other.unknownFields)) return false;
     return true;
@@ -280,118 +314,127 @@ public int hashCode() {
     return hash;
   }
 
-  public static com.google.cloud.iot.v1.GetDeviceRequest parseFrom(
-      java.nio.ByteBuffer data)
+  public static com.google.cloud.iot.v1.GetDeviceRequest parseFrom(java.nio.ByteBuffer data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
+
   public static com.google.cloud.iot.v1.GetDeviceRequest parseFrom(
-      java.nio.ByteBuffer data,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
+
   public static com.google.cloud.iot.v1.GetDeviceRequest parseFrom(
       com.google.protobuf.ByteString data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
+
   public static com.google.cloud.iot.v1.GetDeviceRequest parseFrom(
       com.google.protobuf.ByteString data,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
+
   public static com.google.cloud.iot.v1.GetDeviceRequest parseFrom(byte[] data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
+
   public static com.google.cloud.iot.v1.GetDeviceRequest parseFrom(
-      byte[] data,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
+
   public static com.google.cloud.iot.v1.GetDeviceRequest 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.iot.v1.GetDeviceRequest parseFrom(
-      java.io.InputStream input,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
+        PARSER, input, extensionRegistry);
   }
-  public static com.google.cloud.iot.v1.GetDeviceRequest parseDelimitedFrom(java.io.InputStream input)
-      throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseDelimitedWithIOException(PARSER, input);
+
+  public static com.google.cloud.iot.v1.GetDeviceRequest parseDelimitedFrom(
+      java.io.InputStream input) throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
   }
+
   public static com.google.cloud.iot.v1.GetDeviceRequest parseDelimitedFrom(
-      java.io.InputStream input,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
+        PARSER, input, extensionRegistry);
   }
+
   public static com.google.cloud.iot.v1.GetDeviceRequest parseFrom(
-      com.google.protobuf.CodedInputStream input)
-      throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input);
+      com.google.protobuf.CodedInputStream input) throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
   }
+
   public static com.google.cloud.iot.v1.GetDeviceRequest parseFrom(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
+        PARSER, input, extensionRegistry);
   }
 
   @java.lang.Override
-  public Builder newBuilderForType() { return newBuilder(); }
+  public Builder newBuilderForType() {
+    return newBuilder();
+  }
+
   public static Builder newBuilder() {
     return DEFAULT_INSTANCE.toBuilder();
   }
+
   public static Builder newBuilder(com.google.cloud.iot.v1.GetDeviceRequest prototype) {
     return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
   }
+
   @java.lang.Override
   public Builder toBuilder() {
-    return this == DEFAULT_INSTANCE
-        ? new Builder() : new Builder().mergeFrom(this);
+    return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
   }
 
   @java.lang.Override
-  protected 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 `GetDevice`.
    * 
* * Protobuf type {@code google.cloud.iot.v1.GetDeviceRequest} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.iot.v1.GetDeviceRequest) com.google.cloud.iot.v1.GetDeviceRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.iot.v1.DeviceManagerProto.internal_static_google_cloud_iot_v1_GetDeviceRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.iot.v1.DeviceManagerProto + .internal_static_google_cloud_iot_v1_GetDeviceRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.iot.v1.DeviceManagerProto.internal_static_google_cloud_iot_v1_GetDeviceRequest_fieldAccessorTable + return com.google.cloud.iot.v1.DeviceManagerProto + .internal_static_google_cloud_iot_v1_GetDeviceRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.iot.v1.GetDeviceRequest.class, com.google.cloud.iot.v1.GetDeviceRequest.Builder.class); + com.google.cloud.iot.v1.GetDeviceRequest.class, + com.google.cloud.iot.v1.GetDeviceRequest.Builder.class); } // Construct using com.google.cloud.iot.v1.GetDeviceRequest.newBuilder() @@ -399,16 +442,15 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -424,9 +466,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.iot.v1.DeviceManagerProto.internal_static_google_cloud_iot_v1_GetDeviceRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.iot.v1.DeviceManagerProto + .internal_static_google_cloud_iot_v1_GetDeviceRequest_descriptor; } @java.lang.Override @@ -445,7 +487,8 @@ public com.google.cloud.iot.v1.GetDeviceRequest build() { @java.lang.Override public com.google.cloud.iot.v1.GetDeviceRequest buildPartial() { - com.google.cloud.iot.v1.GetDeviceRequest result = new com.google.cloud.iot.v1.GetDeviceRequest(this); + com.google.cloud.iot.v1.GetDeviceRequest result = + new com.google.cloud.iot.v1.GetDeviceRequest(this); result.name_ = name_; if (fieldMaskBuilder_ == null) { result.fieldMask_ = fieldMask_; @@ -460,38 +503,39 @@ public com.google.cloud.iot.v1.GetDeviceRequest buildPartial() { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.iot.v1.GetDeviceRequest) { - return mergeFrom((com.google.cloud.iot.v1.GetDeviceRequest)other); + return mergeFrom((com.google.cloud.iot.v1.GetDeviceRequest) other); } else { super.mergeFrom(other); return this; @@ -538,20 +582,24 @@ public Builder mergeFrom( private java.lang.Object name_ = ""; /** + * + * *
      * Required. The name of the device. For example,
      * `projects/p0/locations/us-central1/registries/registry0/devices/device0` or
      * `projects/p0/locations/us-central1/registries/registry0/devices/{num_id}`.
      * 
* - * string name = 1 [(.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; @@ -560,22 +608,25 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. The name of the device. For example,
      * `projects/p0/locations/us-central1/registries/registry0/devices/device0` or
      * `projects/p0/locations/us-central1/registries/registry0/devices/{num_id}`.
      * 
* - * string name = 1 [(.google.api.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 { @@ -583,60 +634,73 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. The name of the device. For example,
      * `projects/p0/locations/us-central1/registries/registry0/devices/device0` or
      * `projects/p0/locations/us-central1/registries/registry0/devices/{num_id}`.
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The name to set. * @return This builder for chaining. */ - public Builder setName( - java.lang.String value) { + public Builder setName(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + name_ = value; onChanged(); return this; } /** + * + * *
      * Required. The name of the device. For example,
      * `projects/p0/locations/us-central1/registries/registry0/devices/device0` or
      * `projects/p0/locations/us-central1/registries/registry0/devices/{num_id}`.
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return This builder for chaining. */ public Builder clearName() { - + name_ = getDefaultInstance().getName(); onChanged(); return this; } /** + * + * *
      * Required. The name of the device. For example,
      * `projects/p0/locations/us-central1/registries/registry0/devices/device0` or
      * `projects/p0/locations/us-central1/registries/registry0/devices/{num_id}`.
      * 
* - * 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; @@ -644,8 +708,13 @@ public Builder setNameBytes( private com.google.protobuf.FieldMask fieldMask_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.FieldMask, com.google.protobuf.FieldMask.Builder, com.google.protobuf.FieldMaskOrBuilder> fieldMaskBuilder_; + com.google.protobuf.FieldMask, + com.google.protobuf.FieldMask.Builder, + com.google.protobuf.FieldMaskOrBuilder> + fieldMaskBuilder_; /** + * + * *
      * The fields of the `Device` resource to be returned in the response. If the
      * field mask is unset or empty, all fields are returned. Fields have to be
@@ -653,12 +722,15 @@ public Builder setNameBytes(
      * 
* * .google.protobuf.FieldMask field_mask = 2; + * * @return Whether the fieldMask field is set. */ public boolean hasFieldMask() { return fieldMaskBuilder_ != null || fieldMask_ != null; } /** + * + * *
      * The fields of the `Device` resource to be returned in the response. If the
      * field mask is unset or empty, all fields are returned. Fields have to be
@@ -666,6 +738,7 @@ public boolean hasFieldMask() {
      * 
* * .google.protobuf.FieldMask field_mask = 2; + * * @return The fieldMask. */ public com.google.protobuf.FieldMask getFieldMask() { @@ -676,6 +749,8 @@ public com.google.protobuf.FieldMask getFieldMask() { } } /** + * + * *
      * The fields of the `Device` resource to be returned in the response. If the
      * field mask is unset or empty, all fields are returned. Fields have to be
@@ -698,6 +773,8 @@ public Builder setFieldMask(com.google.protobuf.FieldMask value) {
       return this;
     }
     /**
+     *
+     *
      * 
      * The fields of the `Device` resource to be returned in the response. If the
      * field mask is unset or empty, all fields are returned. Fields have to be
@@ -706,8 +783,7 @@ public Builder setFieldMask(com.google.protobuf.FieldMask value) {
      *
      * .google.protobuf.FieldMask field_mask = 2;
      */
-    public Builder setFieldMask(
-        com.google.protobuf.FieldMask.Builder builderForValue) {
+    public Builder setFieldMask(com.google.protobuf.FieldMask.Builder builderForValue) {
       if (fieldMaskBuilder_ == null) {
         fieldMask_ = builderForValue.build();
         onChanged();
@@ -718,6 +794,8 @@ public Builder setFieldMask(
       return this;
     }
     /**
+     *
+     *
      * 
      * The fields of the `Device` resource to be returned in the response. If the
      * field mask is unset or empty, all fields are returned. Fields have to be
@@ -730,7 +808,7 @@ public Builder mergeFieldMask(com.google.protobuf.FieldMask value) {
       if (fieldMaskBuilder_ == null) {
         if (fieldMask_ != null) {
           fieldMask_ =
-            com.google.protobuf.FieldMask.newBuilder(fieldMask_).mergeFrom(value).buildPartial();
+              com.google.protobuf.FieldMask.newBuilder(fieldMask_).mergeFrom(value).buildPartial();
         } else {
           fieldMask_ = value;
         }
@@ -742,6 +820,8 @@ public Builder mergeFieldMask(com.google.protobuf.FieldMask value) {
       return this;
     }
     /**
+     *
+     *
      * 
      * The fields of the `Device` resource to be returned in the response. If the
      * field mask is unset or empty, all fields are returned. Fields have to be
@@ -762,6 +842,8 @@ public Builder clearFieldMask() {
       return this;
     }
     /**
+     *
+     *
      * 
      * The fields of the `Device` resource to be returned in the response. If the
      * field mask is unset or empty, all fields are returned. Fields have to be
@@ -771,11 +853,13 @@ public Builder clearFieldMask() {
      * .google.protobuf.FieldMask field_mask = 2;
      */
     public com.google.protobuf.FieldMask.Builder getFieldMaskBuilder() {
-      
+
       onChanged();
       return getFieldMaskFieldBuilder().getBuilder();
     }
     /**
+     *
+     *
      * 
      * The fields of the `Device` resource to be returned in the response. If the
      * field mask is unset or empty, all fields are returned. Fields have to be
@@ -788,11 +872,12 @@ public com.google.protobuf.FieldMaskOrBuilder getFieldMaskOrBuilder() {
       if (fieldMaskBuilder_ != null) {
         return fieldMaskBuilder_.getMessageOrBuilder();
       } else {
-        return fieldMask_ == null ?
-            com.google.protobuf.FieldMask.getDefaultInstance() : fieldMask_;
+        return fieldMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : fieldMask_;
       }
     }
     /**
+     *
+     *
      * 
      * The fields of the `Device` resource to be returned in the response. If the
      * field mask is unset or empty, all fields are returned. Fields have to be
@@ -802,21 +887,24 @@ public com.google.protobuf.FieldMaskOrBuilder getFieldMaskOrBuilder() {
      * .google.protobuf.FieldMask field_mask = 2;
      */
     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>
         getFieldMaskFieldBuilder() {
       if (fieldMaskBuilder_ == null) {
-        fieldMaskBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
-            com.google.protobuf.FieldMask, com.google.protobuf.FieldMask.Builder, com.google.protobuf.FieldMaskOrBuilder>(
-                getFieldMask(),
-                getParentForChildren(),
-                isClean());
+        fieldMaskBuilder_ =
+            new com.google.protobuf.SingleFieldBuilderV3<
+                com.google.protobuf.FieldMask,
+                com.google.protobuf.FieldMask.Builder,
+                com.google.protobuf.FieldMaskOrBuilder>(
+                getFieldMask(), getParentForChildren(), isClean());
         fieldMask_ = null;
       }
       return fieldMaskBuilder_;
     }
+
     @java.lang.Override
-    public final Builder setUnknownFields(
-        final com.google.protobuf.UnknownFieldSet unknownFields) {
+    public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) {
       return super.setUnknownFields(unknownFields);
     }
 
@@ -826,12 +914,12 @@ public final Builder mergeUnknownFields(
       return super.mergeUnknownFields(unknownFields);
     }
 
-
     // @@protoc_insertion_point(builder_scope:google.cloud.iot.v1.GetDeviceRequest)
   }
 
   // @@protoc_insertion_point(class_scope:google.cloud.iot.v1.GetDeviceRequest)
   private static final com.google.cloud.iot.v1.GetDeviceRequest DEFAULT_INSTANCE;
+
   static {
     DEFAULT_INSTANCE = new com.google.cloud.iot.v1.GetDeviceRequest();
   }
@@ -840,16 +928,16 @@ public static com.google.cloud.iot.v1.GetDeviceRequest getDefaultInstance() {
     return DEFAULT_INSTANCE;
   }
 
-  private static final com.google.protobuf.Parser
-      PARSER = new com.google.protobuf.AbstractParser() {
-    @java.lang.Override
-    public GetDeviceRequest parsePartialFrom(
-        com.google.protobuf.CodedInputStream input,
-        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
-        throws com.google.protobuf.InvalidProtocolBufferException {
-      return new GetDeviceRequest(input, extensionRegistry);
-    }
-  };
+  private static final com.google.protobuf.Parser PARSER =
+      new com.google.protobuf.AbstractParser() {
+        @java.lang.Override
+        public GetDeviceRequest parsePartialFrom(
+            com.google.protobuf.CodedInputStream input,
+            com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+            throws com.google.protobuf.InvalidProtocolBufferException {
+          return new GetDeviceRequest(input, extensionRegistry);
+        }
+      };
 
   public static com.google.protobuf.Parser parser() {
     return PARSER;
@@ -864,6 +952,4 @@ public com.google.protobuf.Parser getParserForType() {
   public com.google.cloud.iot.v1.GetDeviceRequest getDefaultInstanceForType() {
     return DEFAULT_INSTANCE;
   }
-
 }
-
diff --git a/owl-bot-staging/v1/proto-google-cloud-iot-v1/src/main/java/com/google/cloud/iot/v1/GetDeviceRequestOrBuilder.java b/proto-google-cloud-iot-v1/src/main/java/com/google/cloud/iot/v1/GetDeviceRequestOrBuilder.java
similarity index 66%
rename from owl-bot-staging/v1/proto-google-cloud-iot-v1/src/main/java/com/google/cloud/iot/v1/GetDeviceRequestOrBuilder.java
rename to proto-google-cloud-iot-v1/src/main/java/com/google/cloud/iot/v1/GetDeviceRequestOrBuilder.java
index dcfbf967..424790a6 100644
--- a/owl-bot-staging/v1/proto-google-cloud-iot-v1/src/main/java/com/google/cloud/iot/v1/GetDeviceRequestOrBuilder.java
+++ b/proto-google-cloud-iot-v1/src/main/java/com/google/cloud/iot/v1/GetDeviceRequestOrBuilder.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/iot/v1/device_manager.proto
 
 package com.google.cloud.iot.v1;
 
-public interface GetDeviceRequestOrBuilder extends
+public interface GetDeviceRequestOrBuilder
+    extends
     // @@protoc_insertion_point(interface_extends:google.cloud.iot.v1.GetDeviceRequest)
     com.google.protobuf.MessageOrBuilder {
 
   /**
+   *
+   *
    * 
    * Required. The name of the device. For example,
    * `projects/p0/locations/us-central1/registries/registry0/devices/device0` or
    * `projects/p0/locations/us-central1/registries/registry0/devices/{num_id}`.
    * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The name. */ java.lang.String getName(); /** + * + * *
    * Required. The name of the device. For example,
    * `projects/p0/locations/us-central1/registries/registry0/devices/device0` or
    * `projects/p0/locations/us-central1/registries/registry0/devices/{num_id}`.
    * 
* - * string name = 1 [(.google.api.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(); /** + * + * *
    * The fields of the `Device` resource to be returned in the response. If the
    * field mask is unset or empty, all fields are returned. Fields have to be
@@ -39,10 +66,13 @@ public interface GetDeviceRequestOrBuilder extends
    * 
* * .google.protobuf.FieldMask field_mask = 2; + * * @return Whether the fieldMask field is set. */ boolean hasFieldMask(); /** + * + * *
    * The fields of the `Device` resource to be returned in the response. If the
    * field mask is unset or empty, all fields are returned. Fields have to be
@@ -50,10 +80,13 @@ public interface GetDeviceRequestOrBuilder extends
    * 
* * .google.protobuf.FieldMask field_mask = 2; + * * @return The fieldMask. */ com.google.protobuf.FieldMask getFieldMask(); /** + * + * *
    * The fields of the `Device` resource to be returned in the response. If the
    * field mask is unset or empty, all fields are returned. Fields have to be
diff --git a/owl-bot-staging/v1/proto-google-cloud-iot-v1/src/main/java/com/google/cloud/iot/v1/HttpConfig.java b/proto-google-cloud-iot-v1/src/main/java/com/google/cloud/iot/v1/HttpConfig.java
similarity index 70%
rename from owl-bot-staging/v1/proto-google-cloud-iot-v1/src/main/java/com/google/cloud/iot/v1/HttpConfig.java
rename to proto-google-cloud-iot-v1/src/main/java/com/google/cloud/iot/v1/HttpConfig.java
index 100ff6cb..e4838599 100644
--- a/owl-bot-staging/v1/proto-google-cloud-iot-v1/src/main/java/com/google/cloud/iot/v1/HttpConfig.java
+++ b/proto-google-cloud-iot-v1/src/main/java/com/google/cloud/iot/v1/HttpConfig.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/iot/v1/resources.proto
 
 package com.google.cloud.iot.v1;
 
 /**
+ *
+ *
  * 
  * The configuration of the HTTP bridge for a device registry.
  * 
* * Protobuf type {@code google.cloud.iot.v1.HttpConfig} */ -public final class HttpConfig extends - com.google.protobuf.GeneratedMessageV3 implements +public final class HttpConfig extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.iot.v1.HttpConfig) HttpConfigOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use HttpConfig.newBuilder() to construct. private HttpConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private HttpConfig() { httpEnabledState_ = 0; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new HttpConfig(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private HttpConfig( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -53,19 +70,20 @@ private HttpConfig( case 0: done = true; break; - case 8: { - int rawValue = input.readEnum(); + case 8: + { + int rawValue = input.readEnum(); - httpEnabledState_ = rawValue; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + httpEnabledState_ = rawValue; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -73,56 +91,68 @@ private HttpConfig( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.iot.v1.ResourcesProto.internal_static_google_cloud_iot_v1_HttpConfig_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.iot.v1.ResourcesProto + .internal_static_google_cloud_iot_v1_HttpConfig_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.iot.v1.ResourcesProto.internal_static_google_cloud_iot_v1_HttpConfig_fieldAccessorTable + return com.google.cloud.iot.v1.ResourcesProto + .internal_static_google_cloud_iot_v1_HttpConfig_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.iot.v1.HttpConfig.class, com.google.cloud.iot.v1.HttpConfig.Builder.class); + com.google.cloud.iot.v1.HttpConfig.class, + com.google.cloud.iot.v1.HttpConfig.Builder.class); } public static final int HTTP_ENABLED_STATE_FIELD_NUMBER = 1; private int httpEnabledState_; /** + * + * *
    * If enabled, allows devices to use DeviceService via the HTTP protocol.
    * Otherwise, any requests to DeviceService will fail for this registry.
    * 
* * .google.cloud.iot.v1.HttpState http_enabled_state = 1; + * * @return The enum numeric value on the wire for httpEnabledState. */ - @java.lang.Override public int getHttpEnabledStateValue() { + @java.lang.Override + public int getHttpEnabledStateValue() { return httpEnabledState_; } /** + * + * *
    * If enabled, allows devices to use DeviceService via the HTTP protocol.
    * Otherwise, any requests to DeviceService will fail for this registry.
    * 
* * .google.cloud.iot.v1.HttpState http_enabled_state = 1; + * * @return The httpEnabledState. */ - @java.lang.Override public com.google.cloud.iot.v1.HttpState getHttpEnabledState() { + @java.lang.Override + public com.google.cloud.iot.v1.HttpState getHttpEnabledState() { @SuppressWarnings("deprecation") - com.google.cloud.iot.v1.HttpState result = com.google.cloud.iot.v1.HttpState.valueOf(httpEnabledState_); + com.google.cloud.iot.v1.HttpState result = + com.google.cloud.iot.v1.HttpState.valueOf(httpEnabledState_); return result == null ? com.google.cloud.iot.v1.HttpState.UNRECOGNIZED : result; } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -134,8 +164,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (httpEnabledState_ != com.google.cloud.iot.v1.HttpState.HTTP_STATE_UNSPECIFIED.getNumber()) { output.writeEnum(1, httpEnabledState_); } @@ -149,8 +178,7 @@ public int getSerializedSize() { size = 0; if (httpEnabledState_ != com.google.cloud.iot.v1.HttpState.HTTP_STATE_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(1, httpEnabledState_); + size += com.google.protobuf.CodedOutputStream.computeEnumSize(1, httpEnabledState_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -160,7 +188,7 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.iot.v1.HttpConfig)) { return super.equals(obj); @@ -186,118 +214,126 @@ public int hashCode() { return hash; } - public static com.google.cloud.iot.v1.HttpConfig parseFrom( - java.nio.ByteBuffer data) + public static com.google.cloud.iot.v1.HttpConfig parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.iot.v1.HttpConfig parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.iot.v1.HttpConfig parseFrom( - com.google.protobuf.ByteString data) + + public static com.google.cloud.iot.v1.HttpConfig parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.iot.v1.HttpConfig parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.iot.v1.HttpConfig parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.iot.v1.HttpConfig parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.iot.v1.HttpConfig 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.iot.v1.HttpConfig parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.iot.v1.HttpConfig 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.iot.v1.HttpConfig parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.iot.v1.HttpConfig parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.iot.v1.HttpConfig parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.cloud.iot.v1.HttpConfig prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * The configuration of the HTTP bridge for a device registry.
    * 
* * Protobuf type {@code google.cloud.iot.v1.HttpConfig} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.iot.v1.HttpConfig) com.google.cloud.iot.v1.HttpConfigOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.iot.v1.ResourcesProto.internal_static_google_cloud_iot_v1_HttpConfig_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.iot.v1.ResourcesProto + .internal_static_google_cloud_iot_v1_HttpConfig_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.iot.v1.ResourcesProto.internal_static_google_cloud_iot_v1_HttpConfig_fieldAccessorTable + return com.google.cloud.iot.v1.ResourcesProto + .internal_static_google_cloud_iot_v1_HttpConfig_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.iot.v1.HttpConfig.class, com.google.cloud.iot.v1.HttpConfig.Builder.class); + com.google.cloud.iot.v1.HttpConfig.class, + com.google.cloud.iot.v1.HttpConfig.Builder.class); } // Construct using com.google.cloud.iot.v1.HttpConfig.newBuilder() @@ -305,16 +341,15 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -324,9 +359,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.iot.v1.ResourcesProto.internal_static_google_cloud_iot_v1_HttpConfig_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.iot.v1.ResourcesProto + .internal_static_google_cloud_iot_v1_HttpConfig_descriptor; } @java.lang.Override @@ -355,38 +390,39 @@ public com.google.cloud.iot.v1.HttpConfig buildPartial() { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.iot.v1.HttpConfig) { - return mergeFrom((com.google.cloud.iot.v1.HttpConfig)other); + return mergeFrom((com.google.cloud.iot.v1.HttpConfig) other); } else { super.mergeFrom(other); return this; @@ -429,55 +465,69 @@ public Builder mergeFrom( private int httpEnabledState_ = 0; /** + * + * *
      * If enabled, allows devices to use DeviceService via the HTTP protocol.
      * Otherwise, any requests to DeviceService will fail for this registry.
      * 
* * .google.cloud.iot.v1.HttpState http_enabled_state = 1; + * * @return The enum numeric value on the wire for httpEnabledState. */ - @java.lang.Override public int getHttpEnabledStateValue() { + @java.lang.Override + public int getHttpEnabledStateValue() { return httpEnabledState_; } /** + * + * *
      * If enabled, allows devices to use DeviceService via the HTTP protocol.
      * Otherwise, any requests to DeviceService will fail for this registry.
      * 
* * .google.cloud.iot.v1.HttpState http_enabled_state = 1; + * * @param value The enum numeric value on the wire for httpEnabledState to set. * @return This builder for chaining. */ public Builder setHttpEnabledStateValue(int value) { - + httpEnabledState_ = value; onChanged(); return this; } /** + * + * *
      * If enabled, allows devices to use DeviceService via the HTTP protocol.
      * Otherwise, any requests to DeviceService will fail for this registry.
      * 
* * .google.cloud.iot.v1.HttpState http_enabled_state = 1; + * * @return The httpEnabledState. */ @java.lang.Override public com.google.cloud.iot.v1.HttpState getHttpEnabledState() { @SuppressWarnings("deprecation") - com.google.cloud.iot.v1.HttpState result = com.google.cloud.iot.v1.HttpState.valueOf(httpEnabledState_); + com.google.cloud.iot.v1.HttpState result = + com.google.cloud.iot.v1.HttpState.valueOf(httpEnabledState_); return result == null ? com.google.cloud.iot.v1.HttpState.UNRECOGNIZED : result; } /** + * + * *
      * If enabled, allows devices to use DeviceService via the HTTP protocol.
      * Otherwise, any requests to DeviceService will fail for this registry.
      * 
* * .google.cloud.iot.v1.HttpState http_enabled_state = 1; + * * @param value The httpEnabledState to set. * @return This builder for chaining. */ @@ -485,29 +535,32 @@ public Builder setHttpEnabledState(com.google.cloud.iot.v1.HttpState value) { if (value == null) { throw new NullPointerException(); } - + httpEnabledState_ = value.getNumber(); onChanged(); return this; } /** + * + * *
      * If enabled, allows devices to use DeviceService via the HTTP protocol.
      * Otherwise, any requests to DeviceService will fail for this registry.
      * 
* * .google.cloud.iot.v1.HttpState http_enabled_state = 1; + * * @return This builder for chaining. */ public Builder clearHttpEnabledState() { - + httpEnabledState_ = 0; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -517,12 +570,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.iot.v1.HttpConfig) } // @@protoc_insertion_point(class_scope:google.cloud.iot.v1.HttpConfig) private static final com.google.cloud.iot.v1.HttpConfig DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.iot.v1.HttpConfig(); } @@ -531,16 +584,16 @@ public static com.google.cloud.iot.v1.HttpConfig getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public HttpConfig parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new HttpConfig(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public HttpConfig parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new HttpConfig(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -555,6 +608,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.iot.v1.HttpConfig getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1/proto-google-cloud-iot-v1/src/main/java/com/google/cloud/iot/v1/HttpConfigOrBuilder.java b/proto-google-cloud-iot-v1/src/main/java/com/google/cloud/iot/v1/HttpConfigOrBuilder.java similarity index 59% rename from owl-bot-staging/v1/proto-google-cloud-iot-v1/src/main/java/com/google/cloud/iot/v1/HttpConfigOrBuilder.java rename to proto-google-cloud-iot-v1/src/main/java/com/google/cloud/iot/v1/HttpConfigOrBuilder.java index df556d1e..843fcde6 100644 --- a/owl-bot-staging/v1/proto-google-cloud-iot-v1/src/main/java/com/google/cloud/iot/v1/HttpConfigOrBuilder.java +++ b/proto-google-cloud-iot-v1/src/main/java/com/google/cloud/iot/v1/HttpConfigOrBuilder.java @@ -1,29 +1,51 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/iot/v1/resources.proto package com.google.cloud.iot.v1; -public interface HttpConfigOrBuilder extends +public interface HttpConfigOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.iot.v1.HttpConfig) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * If enabled, allows devices to use DeviceService via the HTTP protocol.
    * Otherwise, any requests to DeviceService will fail for this registry.
    * 
* * .google.cloud.iot.v1.HttpState http_enabled_state = 1; + * * @return The enum numeric value on the wire for httpEnabledState. */ int getHttpEnabledStateValue(); /** + * + * *
    * If enabled, allows devices to use DeviceService via the HTTP protocol.
    * Otherwise, any requests to DeviceService will fail for this registry.
    * 
* * .google.cloud.iot.v1.HttpState http_enabled_state = 1; + * * @return The httpEnabledState. */ com.google.cloud.iot.v1.HttpState getHttpEnabledState(); diff --git a/owl-bot-staging/v1/proto-google-cloud-iot-v1/src/main/java/com/google/cloud/iot/v1/HttpState.java b/proto-google-cloud-iot-v1/src/main/java/com/google/cloud/iot/v1/HttpState.java similarity index 68% rename from owl-bot-staging/v1/proto-google-cloud-iot-v1/src/main/java/com/google/cloud/iot/v1/HttpState.java rename to proto-google-cloud-iot-v1/src/main/java/com/google/cloud/iot/v1/HttpState.java index ec2efc71..10a5efb1 100644 --- a/owl-bot-staging/v1/proto-google-cloud-iot-v1/src/main/java/com/google/cloud/iot/v1/HttpState.java +++ b/proto-google-cloud-iot-v1/src/main/java/com/google/cloud/iot/v1/HttpState.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/iot/v1/resources.proto package com.google.cloud.iot.v1; /** + * + * *
  * Indicates whether DeviceService (HTTP) is enabled or disabled for the
  * registry. See the field description for details.
@@ -11,9 +28,10 @@
  *
  * Protobuf enum {@code google.cloud.iot.v1.HttpState}
  */
-public enum HttpState
-    implements com.google.protobuf.ProtocolMessageEnum {
+public enum HttpState implements com.google.protobuf.ProtocolMessageEnum {
   /**
+   *
+   *
    * 
    * No HTTP state specified. If not specified, DeviceService will be
    * enabled by default.
@@ -23,6 +41,8 @@ public enum HttpState
    */
   HTTP_STATE_UNSPECIFIED(0),
   /**
+   *
+   *
    * 
    * Enables DeviceService (HTTP) service for the registry.
    * 
@@ -31,6 +51,8 @@ public enum HttpState */ HTTP_ENABLED(1), /** + * + * *
    * Disables DeviceService (HTTP) service for the registry.
    * 
@@ -42,6 +64,8 @@ public enum HttpState ; /** + * + * *
    * No HTTP state specified. If not specified, DeviceService will be
    * enabled by default.
@@ -51,6 +75,8 @@ public enum HttpState
    */
   public static final int HTTP_STATE_UNSPECIFIED_VALUE = 0;
   /**
+   *
+   *
    * 
    * Enables DeviceService (HTTP) service for the registry.
    * 
@@ -59,6 +85,8 @@ public enum HttpState */ public static final int HTTP_ENABLED_VALUE = 1; /** + * + * *
    * Disables DeviceService (HTTP) service for the registry.
    * 
@@ -67,7 +95,6 @@ public enum HttpState */ public static final int HTTP_DISABLED_VALUE = 2; - public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( @@ -92,49 +119,49 @@ public static HttpState valueOf(int value) { */ public static HttpState forNumber(int value) { switch (value) { - case 0: return HTTP_STATE_UNSPECIFIED; - case 1: return HTTP_ENABLED; - case 2: return HTTP_DISABLED; - default: return null; + case 0: + return HTTP_STATE_UNSPECIFIED; + case 1: + return HTTP_ENABLED; + case 2: + return HTTP_DISABLED; + 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< - HttpState> internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public HttpState findValueByNumber(int number) { - return HttpState.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 HttpState findValueByNumber(int number) { + return HttpState.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.iot.v1.ResourcesProto.getDescriptor().getEnumTypes().get(1); } private static final HttpState[] VALUES = values(); - public static HttpState valueOf( - com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + public static HttpState 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; @@ -150,4 +177,3 @@ private HttpState(int value) { // @@protoc_insertion_point(enum_scope:google.cloud.iot.v1.HttpState) } - diff --git a/owl-bot-staging/v1/proto-google-cloud-iot-v1/src/main/java/com/google/cloud/iot/v1/ListDeviceConfigVersionsRequest.java b/proto-google-cloud-iot-v1/src/main/java/com/google/cloud/iot/v1/ListDeviceConfigVersionsRequest.java similarity index 67% rename from owl-bot-staging/v1/proto-google-cloud-iot-v1/src/main/java/com/google/cloud/iot/v1/ListDeviceConfigVersionsRequest.java rename to proto-google-cloud-iot-v1/src/main/java/com/google/cloud/iot/v1/ListDeviceConfigVersionsRequest.java index 4900a8e9..7a691015 100644 --- a/owl-bot-staging/v1/proto-google-cloud-iot-v1/src/main/java/com/google/cloud/iot/v1/ListDeviceConfigVersionsRequest.java +++ b/proto-google-cloud-iot-v1/src/main/java/com/google/cloud/iot/v1/ListDeviceConfigVersionsRequest.java @@ -1,40 +1,58 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/iot/v1/device_manager.proto package com.google.cloud.iot.v1; /** + * + * *
  * Request for `ListDeviceConfigVersions`.
  * 
* * Protobuf type {@code google.cloud.iot.v1.ListDeviceConfigVersionsRequest} */ -public final class ListDeviceConfigVersionsRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class ListDeviceConfigVersionsRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.iot.v1.ListDeviceConfigVersionsRequest) ListDeviceConfigVersionsRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use ListDeviceConfigVersionsRequest.newBuilder() to construct. - private ListDeviceConfigVersionsRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + private ListDeviceConfigVersionsRequest( + com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private ListDeviceConfigVersionsRequest() { name_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new ListDeviceConfigVersionsRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private ListDeviceConfigVersionsRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -53,24 +71,25 @@ private ListDeviceConfigVersionsRequest( case 0: done = true; break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); - - name_ = s; - break; - } - case 16: { + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); - numVersions_ = input.readInt32(); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + name_ = s; + break; + } + case 16: + { + numVersions_ = input.readInt32(); + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -78,36 +97,43 @@ private ListDeviceConfigVersionsRequest( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.iot.v1.DeviceManagerProto.internal_static_google_cloud_iot_v1_ListDeviceConfigVersionsRequest_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.iot.v1.DeviceManagerProto + .internal_static_google_cloud_iot_v1_ListDeviceConfigVersionsRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.iot.v1.DeviceManagerProto.internal_static_google_cloud_iot_v1_ListDeviceConfigVersionsRequest_fieldAccessorTable + return com.google.cloud.iot.v1.DeviceManagerProto + .internal_static_google_cloud_iot_v1_ListDeviceConfigVersionsRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.iot.v1.ListDeviceConfigVersionsRequest.class, com.google.cloud.iot.v1.ListDeviceConfigVersionsRequest.Builder.class); + com.google.cloud.iot.v1.ListDeviceConfigVersionsRequest.class, + com.google.cloud.iot.v1.ListDeviceConfigVersionsRequest.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** + * + * *
    * Required. The name of the device. For example,
    * `projects/p0/locations/us-central1/registries/registry0/devices/device0` or
    * `projects/p0/locations/us-central1/registries/registry0/devices/{num_id}`.
    * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The name. */ @java.lang.Override @@ -116,31 +142,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. The name of the device. For example,
    * `projects/p0/locations/us-central1/registries/registry0/devices/device0` or
    * `projects/p0/locations/us-central1/registries/registry0/devices/{num_id}`.
    * 
* - * string name = 1 [(.google.api.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 { @@ -151,6 +179,8 @@ public java.lang.String getName() { public static final int NUM_VERSIONS_FIELD_NUMBER = 2; private int numVersions_; /** + * + * *
    * The number of versions to list. Versions are listed in decreasing order of
    * the version number. The maximum number of versions retained is 10. If this
@@ -158,6 +188,7 @@ public java.lang.String getName() {
    * 
* * int32 num_versions = 2; + * * @return The numVersions. */ @java.lang.Override @@ -166,6 +197,7 @@ public int getNumVersions() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -177,8 +209,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.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_); } @@ -198,8 +229,7 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); } if (numVersions_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(2, numVersions_); + size += com.google.protobuf.CodedOutputStream.computeInt32Size(2, numVersions_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -209,17 +239,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.iot.v1.ListDeviceConfigVersionsRequest)) { return super.equals(obj); } - com.google.cloud.iot.v1.ListDeviceConfigVersionsRequest other = (com.google.cloud.iot.v1.ListDeviceConfigVersionsRequest) obj; + com.google.cloud.iot.v1.ListDeviceConfigVersionsRequest other = + (com.google.cloud.iot.v1.ListDeviceConfigVersionsRequest) obj; - if (!getName() - .equals(other.getName())) return false; - if (getNumVersions() - != other.getNumVersions()) return false; + if (!getName().equals(other.getName())) return false; + if (getNumVersions() != other.getNumVersions()) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -241,117 +270,127 @@ public int hashCode() { } public static com.google.cloud.iot.v1.ListDeviceConfigVersionsRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.iot.v1.ListDeviceConfigVersionsRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.iot.v1.ListDeviceConfigVersionsRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.iot.v1.ListDeviceConfigVersionsRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.iot.v1.ListDeviceConfigVersionsRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.iot.v1.ListDeviceConfigVersionsRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.iot.v1.ListDeviceConfigVersionsRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.iot.v1.ListDeviceConfigVersionsRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.iot.v1.ListDeviceConfigVersionsRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.iot.v1.ListDeviceConfigVersionsRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.iot.v1.ListDeviceConfigVersionsRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.iot.v1.ListDeviceConfigVersionsRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.iot.v1.ListDeviceConfigVersionsRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.iot.v1.ListDeviceConfigVersionsRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.iot.v1.ListDeviceConfigVersionsRequest prototype) { + + public static Builder newBuilder( + com.google.cloud.iot.v1.ListDeviceConfigVersionsRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected 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 `ListDeviceConfigVersions`.
    * 
* * Protobuf type {@code google.cloud.iot.v1.ListDeviceConfigVersionsRequest} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.iot.v1.ListDeviceConfigVersionsRequest) com.google.cloud.iot.v1.ListDeviceConfigVersionsRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.iot.v1.DeviceManagerProto.internal_static_google_cloud_iot_v1_ListDeviceConfigVersionsRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.iot.v1.DeviceManagerProto + .internal_static_google_cloud_iot_v1_ListDeviceConfigVersionsRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.iot.v1.DeviceManagerProto.internal_static_google_cloud_iot_v1_ListDeviceConfigVersionsRequest_fieldAccessorTable + return com.google.cloud.iot.v1.DeviceManagerProto + .internal_static_google_cloud_iot_v1_ListDeviceConfigVersionsRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.iot.v1.ListDeviceConfigVersionsRequest.class, com.google.cloud.iot.v1.ListDeviceConfigVersionsRequest.Builder.class); + com.google.cloud.iot.v1.ListDeviceConfigVersionsRequest.class, + com.google.cloud.iot.v1.ListDeviceConfigVersionsRequest.Builder.class); } // Construct using com.google.cloud.iot.v1.ListDeviceConfigVersionsRequest.newBuilder() @@ -359,16 +398,15 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); 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 +418,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.iot.v1.DeviceManagerProto.internal_static_google_cloud_iot_v1_ListDeviceConfigVersionsRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.iot.v1.DeviceManagerProto + .internal_static_google_cloud_iot_v1_ListDeviceConfigVersionsRequest_descriptor; } @java.lang.Override @@ -401,7 +439,8 @@ public com.google.cloud.iot.v1.ListDeviceConfigVersionsRequest build() { @java.lang.Override public com.google.cloud.iot.v1.ListDeviceConfigVersionsRequest buildPartial() { - com.google.cloud.iot.v1.ListDeviceConfigVersionsRequest result = new com.google.cloud.iot.v1.ListDeviceConfigVersionsRequest(this); + com.google.cloud.iot.v1.ListDeviceConfigVersionsRequest result = + new com.google.cloud.iot.v1.ListDeviceConfigVersionsRequest(this); result.name_ = name_; result.numVersions_ = numVersions_; onBuilt(); @@ -412,38 +451,39 @@ public com.google.cloud.iot.v1.ListDeviceConfigVersionsRequest buildPartial() { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.iot.v1.ListDeviceConfigVersionsRequest) { - return mergeFrom((com.google.cloud.iot.v1.ListDeviceConfigVersionsRequest)other); + return mergeFrom((com.google.cloud.iot.v1.ListDeviceConfigVersionsRequest) other); } else { super.mergeFrom(other); return this; @@ -451,7 +491,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.iot.v1.ListDeviceConfigVersionsRequest other) { - if (other == com.google.cloud.iot.v1.ListDeviceConfigVersionsRequest.getDefaultInstance()) return this; + if (other == com.google.cloud.iot.v1.ListDeviceConfigVersionsRequest.getDefaultInstance()) + return this; if (!other.getName().isEmpty()) { name_ = other.name_; onChanged(); @@ -478,7 +519,8 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.iot.v1.ListDeviceConfigVersionsRequest) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.iot.v1.ListDeviceConfigVersionsRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -490,20 +532,24 @@ public Builder mergeFrom( private java.lang.Object name_ = ""; /** + * + * *
      * Required. The name of the device. For example,
      * `projects/p0/locations/us-central1/registries/registry0/devices/device0` or
      * `projects/p0/locations/us-central1/registries/registry0/devices/{num_id}`.
      * 
* - * string name = 1 [(.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; @@ -512,22 +558,25 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. The name of the device. For example,
      * `projects/p0/locations/us-central1/registries/registry0/devices/device0` or
      * `projects/p0/locations/us-central1/registries/registry0/devices/{num_id}`.
      * 
* - * string name = 1 [(.google.api.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 { @@ -535,67 +584,82 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. The name of the device. For example,
      * `projects/p0/locations/us-central1/registries/registry0/devices/device0` or
      * `projects/p0/locations/us-central1/registries/registry0/devices/{num_id}`.
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The name to set. * @return This builder for chaining. */ - public Builder setName( - java.lang.String value) { + public Builder setName(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + name_ = value; onChanged(); return this; } /** + * + * *
      * Required. The name of the device. For example,
      * `projects/p0/locations/us-central1/registries/registry0/devices/device0` or
      * `projects/p0/locations/us-central1/registries/registry0/devices/{num_id}`.
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return This builder for chaining. */ public Builder clearName() { - + name_ = getDefaultInstance().getName(); onChanged(); return this; } /** + * + * *
      * Required. The name of the device. For example,
      * `projects/p0/locations/us-central1/registries/registry0/devices/device0` or
      * `projects/p0/locations/us-central1/registries/registry0/devices/{num_id}`.
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes( - com.google.protobuf.ByteString value) { + public Builder setNameBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; onChanged(); return this; } - private int numVersions_ ; + private int numVersions_; /** + * + * *
      * The number of versions to list. Versions are listed in decreasing order of
      * the version number. The maximum number of versions retained is 10. If this
@@ -603,6 +667,7 @@ public Builder setNameBytes(
      * 
* * int32 num_versions = 2; + * * @return The numVersions. */ @java.lang.Override @@ -610,6 +675,8 @@ public int getNumVersions() { return numVersions_; } /** + * + * *
      * The number of versions to list. Versions are listed in decreasing order of
      * the version number. The maximum number of versions retained is 10. If this
@@ -617,16 +684,19 @@ public int getNumVersions() {
      * 
* * int32 num_versions = 2; + * * @param value The numVersions to set. * @return This builder for chaining. */ public Builder setNumVersions(int value) { - + numVersions_ = value; onChanged(); return this; } /** + * + * *
      * The number of versions to list. Versions are listed in decreasing order of
      * the version number. The maximum number of versions retained is 10. If this
@@ -634,17 +704,18 @@ public Builder setNumVersions(int value) {
      * 
* * int32 num_versions = 2; + * * @return This builder for chaining. */ public Builder clearNumVersions() { - + numVersions_ = 0; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -654,12 +725,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.iot.v1.ListDeviceConfigVersionsRequest) } // @@protoc_insertion_point(class_scope:google.cloud.iot.v1.ListDeviceConfigVersionsRequest) private static final com.google.cloud.iot.v1.ListDeviceConfigVersionsRequest DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.iot.v1.ListDeviceConfigVersionsRequest(); } @@ -668,16 +739,16 @@ public static com.google.cloud.iot.v1.ListDeviceConfigVersionsRequest getDefault return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListDeviceConfigVersionsRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ListDeviceConfigVersionsRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListDeviceConfigVersionsRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ListDeviceConfigVersionsRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -692,6 +763,4 @@ public com.google.protobuf.Parser getParserForT public com.google.cloud.iot.v1.ListDeviceConfigVersionsRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1/proto-google-cloud-iot-v1/src/main/java/com/google/cloud/iot/v1/ListDeviceConfigVersionsRequestOrBuilder.java b/proto-google-cloud-iot-v1/src/main/java/com/google/cloud/iot/v1/ListDeviceConfigVersionsRequestOrBuilder.java similarity index 55% rename from owl-bot-staging/v1/proto-google-cloud-iot-v1/src/main/java/com/google/cloud/iot/v1/ListDeviceConfigVersionsRequestOrBuilder.java rename to proto-google-cloud-iot-v1/src/main/java/com/google/cloud/iot/v1/ListDeviceConfigVersionsRequestOrBuilder.java index 4d01f538..ee1066be 100644 --- a/owl-bot-staging/v1/proto-google-cloud-iot-v1/src/main/java/com/google/cloud/iot/v1/ListDeviceConfigVersionsRequestOrBuilder.java +++ b/proto-google-cloud-iot-v1/src/main/java/com/google/cloud/iot/v1/ListDeviceConfigVersionsRequestOrBuilder.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/iot/v1/device_manager.proto package com.google.cloud.iot.v1; -public interface ListDeviceConfigVersionsRequestOrBuilder extends +public interface ListDeviceConfigVersionsRequestOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.iot.v1.ListDeviceConfigVersionsRequest) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Required. The name of the device. For example,
    * `projects/p0/locations/us-central1/registries/registry0/devices/device0` or
    * `projects/p0/locations/us-central1/registries/registry0/devices/{num_id}`.
    * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The name. */ java.lang.String getName(); /** + * + * *
    * Required. The name of the device. For example,
    * `projects/p0/locations/us-central1/registries/registry0/devices/device0` or
    * `projects/p0/locations/us-central1/registries/registry0/devices/{num_id}`.
    * 
* - * string name = 1 [(.google.api.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(); /** + * + * *
    * The number of versions to list. Versions are listed in decreasing order of
    * the version number. The maximum number of versions retained is 10. If this
@@ -39,6 +66,7 @@ public interface ListDeviceConfigVersionsRequestOrBuilder extends
    * 
* * int32 num_versions = 2; + * * @return The numVersions. */ int getNumVersions(); diff --git a/owl-bot-staging/v1/proto-google-cloud-iot-v1/src/main/java/com/google/cloud/iot/v1/ListDeviceConfigVersionsResponse.java b/proto-google-cloud-iot-v1/src/main/java/com/google/cloud/iot/v1/ListDeviceConfigVersionsResponse.java similarity index 74% rename from owl-bot-staging/v1/proto-google-cloud-iot-v1/src/main/java/com/google/cloud/iot/v1/ListDeviceConfigVersionsResponse.java rename to proto-google-cloud-iot-v1/src/main/java/com/google/cloud/iot/v1/ListDeviceConfigVersionsResponse.java index c71e11d0..0d894e24 100644 --- a/owl-bot-staging/v1/proto-google-cloud-iot-v1/src/main/java/com/google/cloud/iot/v1/ListDeviceConfigVersionsResponse.java +++ b/proto-google-cloud-iot-v1/src/main/java/com/google/cloud/iot/v1/ListDeviceConfigVersionsResponse.java @@ -1,40 +1,58 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/iot/v1/device_manager.proto package com.google.cloud.iot.v1; /** + * + * *
  * Response for `ListDeviceConfigVersions`.
  * 
* * Protobuf type {@code google.cloud.iot.v1.ListDeviceConfigVersionsResponse} */ -public final class ListDeviceConfigVersionsResponse extends - com.google.protobuf.GeneratedMessageV3 implements +public final class ListDeviceConfigVersionsResponse extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.iot.v1.ListDeviceConfigVersionsResponse) ListDeviceConfigVersionsResponseOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use ListDeviceConfigVersionsResponse.newBuilder() to construct. - private ListDeviceConfigVersionsResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { + private ListDeviceConfigVersionsResponse( + com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private ListDeviceConfigVersionsResponse() { deviceConfigs_ = java.util.Collections.emptyList(); } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new ListDeviceConfigVersionsResponse(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private ListDeviceConfigVersionsResponse( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -54,22 +72,24 @@ private ListDeviceConfigVersionsResponse( case 0: done = true; break; - case 10: { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - deviceConfigs_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; + case 10: + { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + deviceConfigs_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; + } + deviceConfigs_.add( + input.readMessage( + com.google.cloud.iot.v1.DeviceConfig.parser(), extensionRegistry)); + break; } - deviceConfigs_.add( - input.readMessage(com.google.cloud.iot.v1.DeviceConfig.parser(), extensionRegistry)); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -77,8 +97,7 @@ private ListDeviceConfigVersionsResponse( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } 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)) { deviceConfigs_ = java.util.Collections.unmodifiableList(deviceConfigs_); @@ -87,22 +106,27 @@ private ListDeviceConfigVersionsResponse( makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.iot.v1.DeviceManagerProto.internal_static_google_cloud_iot_v1_ListDeviceConfigVersionsResponse_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.iot.v1.DeviceManagerProto + .internal_static_google_cloud_iot_v1_ListDeviceConfigVersionsResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.iot.v1.DeviceManagerProto.internal_static_google_cloud_iot_v1_ListDeviceConfigVersionsResponse_fieldAccessorTable + return com.google.cloud.iot.v1.DeviceManagerProto + .internal_static_google_cloud_iot_v1_ListDeviceConfigVersionsResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.iot.v1.ListDeviceConfigVersionsResponse.class, com.google.cloud.iot.v1.ListDeviceConfigVersionsResponse.Builder.class); + com.google.cloud.iot.v1.ListDeviceConfigVersionsResponse.class, + com.google.cloud.iot.v1.ListDeviceConfigVersionsResponse.Builder.class); } public static final int DEVICE_CONFIGS_FIELD_NUMBER = 1; private java.util.List deviceConfigs_; /** + * + * *
    * The device configuration for the last few versions. Versions are listed
    * in decreasing order, starting from the most recent one.
@@ -115,6 +139,8 @@ public java.util.List getDeviceConfigsList
     return deviceConfigs_;
   }
   /**
+   *
+   *
    * 
    * The device configuration for the last few versions. Versions are listed
    * in decreasing order, starting from the most recent one.
@@ -123,11 +149,13 @@ public java.util.List getDeviceConfigsList
    * repeated .google.cloud.iot.v1.DeviceConfig device_configs = 1;
    */
   @java.lang.Override
-  public java.util.List 
+  public java.util.List
       getDeviceConfigsOrBuilderList() {
     return deviceConfigs_;
   }
   /**
+   *
+   *
    * 
    * The device configuration for the last few versions. Versions are listed
    * in decreasing order, starting from the most recent one.
@@ -140,6 +168,8 @@ public int getDeviceConfigsCount() {
     return deviceConfigs_.size();
   }
   /**
+   *
+   *
    * 
    * The device configuration for the last few versions. Versions are listed
    * in decreasing order, starting from the most recent one.
@@ -152,6 +182,8 @@ public com.google.cloud.iot.v1.DeviceConfig getDeviceConfigs(int index) {
     return deviceConfigs_.get(index);
   }
   /**
+   *
+   *
    * 
    * The device configuration for the last few versions. Versions are listed
    * in decreasing order, starting from the most recent one.
@@ -160,12 +192,12 @@ public com.google.cloud.iot.v1.DeviceConfig getDeviceConfigs(int index) {
    * repeated .google.cloud.iot.v1.DeviceConfig device_configs = 1;
    */
   @java.lang.Override
-  public com.google.cloud.iot.v1.DeviceConfigOrBuilder getDeviceConfigsOrBuilder(
-      int index) {
+  public com.google.cloud.iot.v1.DeviceConfigOrBuilder getDeviceConfigsOrBuilder(int index) {
     return deviceConfigs_.get(index);
   }
 
   private byte memoizedIsInitialized = -1;
+
   @java.lang.Override
   public final boolean isInitialized() {
     byte isInitialized = memoizedIsInitialized;
@@ -177,8 +209,7 @@ public final boolean isInitialized() {
   }
 
   @java.lang.Override
-  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 < deviceConfigs_.size(); i++) {
       output.writeMessage(1, deviceConfigs_.get(i));
     }
@@ -192,8 +223,7 @@ public int getSerializedSize() {
 
     size = 0;
     for (int i = 0; i < deviceConfigs_.size(); i++) {
-      size += com.google.protobuf.CodedOutputStream
-        .computeMessageSize(1, deviceConfigs_.get(i));
+      size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, deviceConfigs_.get(i));
     }
     size += unknownFields.getSerializedSize();
     memoizedSize = size;
@@ -203,15 +233,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.iot.v1.ListDeviceConfigVersionsResponse)) {
       return super.equals(obj);
     }
-    com.google.cloud.iot.v1.ListDeviceConfigVersionsResponse other = (com.google.cloud.iot.v1.ListDeviceConfigVersionsResponse) obj;
+    com.google.cloud.iot.v1.ListDeviceConfigVersionsResponse other =
+        (com.google.cloud.iot.v1.ListDeviceConfigVersionsResponse) obj;
 
-    if (!getDeviceConfigsList()
-        .equals(other.getDeviceConfigsList())) return false;
+    if (!getDeviceConfigsList().equals(other.getDeviceConfigsList())) return false;
     if (!unknownFields.equals(other.unknownFields)) return false;
     return true;
   }
@@ -233,117 +263,127 @@ public int hashCode() {
   }
 
   public static com.google.cloud.iot.v1.ListDeviceConfigVersionsResponse parseFrom(
-      java.nio.ByteBuffer data)
-      throws com.google.protobuf.InvalidProtocolBufferException {
+      java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
+
   public static com.google.cloud.iot.v1.ListDeviceConfigVersionsResponse parseFrom(
-      java.nio.ByteBuffer data,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
+
   public static com.google.cloud.iot.v1.ListDeviceConfigVersionsResponse parseFrom(
       com.google.protobuf.ByteString data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
+
   public static com.google.cloud.iot.v1.ListDeviceConfigVersionsResponse parseFrom(
       com.google.protobuf.ByteString data,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
+
   public static com.google.cloud.iot.v1.ListDeviceConfigVersionsResponse parseFrom(byte[] data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
+
   public static com.google.cloud.iot.v1.ListDeviceConfigVersionsResponse parseFrom(
-      byte[] data,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-  public static com.google.cloud.iot.v1.ListDeviceConfigVersionsResponse parseFrom(java.io.InputStream input)
-      throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input);
+
+  public static com.google.cloud.iot.v1.ListDeviceConfigVersionsResponse parseFrom(
+      java.io.InputStream input) throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
   }
+
   public static com.google.cloud.iot.v1.ListDeviceConfigVersionsResponse parseFrom(
-      java.io.InputStream input,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
+        PARSER, input, extensionRegistry);
   }
-  public static com.google.cloud.iot.v1.ListDeviceConfigVersionsResponse parseDelimitedFrom(java.io.InputStream input)
-      throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseDelimitedWithIOException(PARSER, input);
+
+  public static com.google.cloud.iot.v1.ListDeviceConfigVersionsResponse parseDelimitedFrom(
+      java.io.InputStream input) throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
   }
+
   public static com.google.cloud.iot.v1.ListDeviceConfigVersionsResponse parseDelimitedFrom(
-      java.io.InputStream input,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
+        PARSER, input, extensionRegistry);
   }
+
   public static com.google.cloud.iot.v1.ListDeviceConfigVersionsResponse parseFrom(
-      com.google.protobuf.CodedInputStream input)
-      throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input);
+      com.google.protobuf.CodedInputStream input) throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
   }
+
   public static com.google.cloud.iot.v1.ListDeviceConfigVersionsResponse parseFrom(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
+        PARSER, input, extensionRegistry);
   }
 
   @java.lang.Override
-  public Builder newBuilderForType() { return newBuilder(); }
+  public Builder newBuilderForType() {
+    return newBuilder();
+  }
+
   public static Builder newBuilder() {
     return DEFAULT_INSTANCE.toBuilder();
   }
-  public static Builder newBuilder(com.google.cloud.iot.v1.ListDeviceConfigVersionsResponse prototype) {
+
+  public static Builder newBuilder(
+      com.google.cloud.iot.v1.ListDeviceConfigVersionsResponse prototype) {
     return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
   }
+
   @java.lang.Override
   public Builder toBuilder() {
-    return this == DEFAULT_INSTANCE
-        ? new Builder() : new Builder().mergeFrom(this);
+    return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
   }
 
   @java.lang.Override
-  protected 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 `ListDeviceConfigVersions`.
    * 
* * Protobuf type {@code google.cloud.iot.v1.ListDeviceConfigVersionsResponse} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.iot.v1.ListDeviceConfigVersionsResponse) com.google.cloud.iot.v1.ListDeviceConfigVersionsResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.iot.v1.DeviceManagerProto.internal_static_google_cloud_iot_v1_ListDeviceConfigVersionsResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.iot.v1.DeviceManagerProto + .internal_static_google_cloud_iot_v1_ListDeviceConfigVersionsResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.iot.v1.DeviceManagerProto.internal_static_google_cloud_iot_v1_ListDeviceConfigVersionsResponse_fieldAccessorTable + return com.google.cloud.iot.v1.DeviceManagerProto + .internal_static_google_cloud_iot_v1_ListDeviceConfigVersionsResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.iot.v1.ListDeviceConfigVersionsResponse.class, com.google.cloud.iot.v1.ListDeviceConfigVersionsResponse.Builder.class); + com.google.cloud.iot.v1.ListDeviceConfigVersionsResponse.class, + com.google.cloud.iot.v1.ListDeviceConfigVersionsResponse.Builder.class); } // Construct using com.google.cloud.iot.v1.ListDeviceConfigVersionsResponse.newBuilder() @@ -351,17 +391,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) { getDeviceConfigsFieldBuilder(); } } + @java.lang.Override public Builder clear() { super.clear(); @@ -375,9 +415,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.iot.v1.DeviceManagerProto.internal_static_google_cloud_iot_v1_ListDeviceConfigVersionsResponse_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.iot.v1.DeviceManagerProto + .internal_static_google_cloud_iot_v1_ListDeviceConfigVersionsResponse_descriptor; } @java.lang.Override @@ -396,7 +436,8 @@ public com.google.cloud.iot.v1.ListDeviceConfigVersionsResponse build() { @java.lang.Override public com.google.cloud.iot.v1.ListDeviceConfigVersionsResponse buildPartial() { - com.google.cloud.iot.v1.ListDeviceConfigVersionsResponse result = new com.google.cloud.iot.v1.ListDeviceConfigVersionsResponse(this); + com.google.cloud.iot.v1.ListDeviceConfigVersionsResponse result = + new com.google.cloud.iot.v1.ListDeviceConfigVersionsResponse(this); int from_bitField0_ = bitField0_; if (deviceConfigsBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { @@ -415,38 +456,39 @@ public com.google.cloud.iot.v1.ListDeviceConfigVersionsResponse buildPartial() { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.iot.v1.ListDeviceConfigVersionsResponse) { - return mergeFrom((com.google.cloud.iot.v1.ListDeviceConfigVersionsResponse)other); + return mergeFrom((com.google.cloud.iot.v1.ListDeviceConfigVersionsResponse) other); } else { super.mergeFrom(other); return this; @@ -454,7 +496,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.iot.v1.ListDeviceConfigVersionsResponse other) { - if (other == com.google.cloud.iot.v1.ListDeviceConfigVersionsResponse.getDefaultInstance()) return this; + if (other == com.google.cloud.iot.v1.ListDeviceConfigVersionsResponse.getDefaultInstance()) + return this; if (deviceConfigsBuilder_ == null) { if (!other.deviceConfigs_.isEmpty()) { if (deviceConfigs_.isEmpty()) { @@ -473,9 +516,10 @@ public Builder mergeFrom(com.google.cloud.iot.v1.ListDeviceConfigVersionsRespons deviceConfigsBuilder_ = null; deviceConfigs_ = other.deviceConfigs_; bitField0_ = (bitField0_ & ~0x00000001); - deviceConfigsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getDeviceConfigsFieldBuilder() : null; + deviceConfigsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getDeviceConfigsFieldBuilder() + : null; } else { deviceConfigsBuilder_.addAllMessages(other.deviceConfigs_); } @@ -500,7 +544,8 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.iot.v1.ListDeviceConfigVersionsResponse) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.iot.v1.ListDeviceConfigVersionsResponse) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -509,21 +554,29 @@ public Builder mergeFrom( } return this; } + private int bitField0_; private java.util.List deviceConfigs_ = - java.util.Collections.emptyList(); + java.util.Collections.emptyList(); + private void ensureDeviceConfigsIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { - deviceConfigs_ = new java.util.ArrayList(deviceConfigs_); + deviceConfigs_ = + new java.util.ArrayList(deviceConfigs_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.iot.v1.DeviceConfig, com.google.cloud.iot.v1.DeviceConfig.Builder, com.google.cloud.iot.v1.DeviceConfigOrBuilder> deviceConfigsBuilder_; + com.google.cloud.iot.v1.DeviceConfig, + com.google.cloud.iot.v1.DeviceConfig.Builder, + com.google.cloud.iot.v1.DeviceConfigOrBuilder> + deviceConfigsBuilder_; /** + * + * *
      * The device configuration for the last few versions. Versions are listed
      * in decreasing order, starting from the most recent one.
@@ -539,6 +592,8 @@ public java.util.List getDeviceConfigsList
       }
     }
     /**
+     *
+     *
      * 
      * The device configuration for the last few versions. Versions are listed
      * in decreasing order, starting from the most recent one.
@@ -554,6 +609,8 @@ public int getDeviceConfigsCount() {
       }
     }
     /**
+     *
+     *
      * 
      * The device configuration for the last few versions. Versions are listed
      * in decreasing order, starting from the most recent one.
@@ -569,6 +626,8 @@ public com.google.cloud.iot.v1.DeviceConfig getDeviceConfigs(int index) {
       }
     }
     /**
+     *
+     *
      * 
      * The device configuration for the last few versions. Versions are listed
      * in decreasing order, starting from the most recent one.
@@ -576,8 +635,7 @@ public com.google.cloud.iot.v1.DeviceConfig getDeviceConfigs(int index) {
      *
      * repeated .google.cloud.iot.v1.DeviceConfig device_configs = 1;
      */
-    public Builder setDeviceConfigs(
-        int index, com.google.cloud.iot.v1.DeviceConfig value) {
+    public Builder setDeviceConfigs(int index, com.google.cloud.iot.v1.DeviceConfig value) {
       if (deviceConfigsBuilder_ == null) {
         if (value == null) {
           throw new NullPointerException();
@@ -591,6 +649,8 @@ public Builder setDeviceConfigs(
       return this;
     }
     /**
+     *
+     *
      * 
      * The device configuration for the last few versions. Versions are listed
      * in decreasing order, starting from the most recent one.
@@ -610,6 +670,8 @@ public Builder setDeviceConfigs(
       return this;
     }
     /**
+     *
+     *
      * 
      * The device configuration for the last few versions. Versions are listed
      * in decreasing order, starting from the most recent one.
@@ -631,6 +693,8 @@ public Builder addDeviceConfigs(com.google.cloud.iot.v1.DeviceConfig value) {
       return this;
     }
     /**
+     *
+     *
      * 
      * The device configuration for the last few versions. Versions are listed
      * in decreasing order, starting from the most recent one.
@@ -638,8 +702,7 @@ public Builder addDeviceConfigs(com.google.cloud.iot.v1.DeviceConfig value) {
      *
      * repeated .google.cloud.iot.v1.DeviceConfig device_configs = 1;
      */
-    public Builder addDeviceConfigs(
-        int index, com.google.cloud.iot.v1.DeviceConfig value) {
+    public Builder addDeviceConfigs(int index, com.google.cloud.iot.v1.DeviceConfig value) {
       if (deviceConfigsBuilder_ == null) {
         if (value == null) {
           throw new NullPointerException();
@@ -653,6 +716,8 @@ public Builder addDeviceConfigs(
       return this;
     }
     /**
+     *
+     *
      * 
      * The device configuration for the last few versions. Versions are listed
      * in decreasing order, starting from the most recent one.
@@ -660,8 +725,7 @@ public Builder addDeviceConfigs(
      *
      * repeated .google.cloud.iot.v1.DeviceConfig device_configs = 1;
      */
-    public Builder addDeviceConfigs(
-        com.google.cloud.iot.v1.DeviceConfig.Builder builderForValue) {
+    public Builder addDeviceConfigs(com.google.cloud.iot.v1.DeviceConfig.Builder builderForValue) {
       if (deviceConfigsBuilder_ == null) {
         ensureDeviceConfigsIsMutable();
         deviceConfigs_.add(builderForValue.build());
@@ -672,6 +736,8 @@ public Builder addDeviceConfigs(
       return this;
     }
     /**
+     *
+     *
      * 
      * The device configuration for the last few versions. Versions are listed
      * in decreasing order, starting from the most recent one.
@@ -691,6 +757,8 @@ public Builder addDeviceConfigs(
       return this;
     }
     /**
+     *
+     *
      * 
      * The device configuration for the last few versions. Versions are listed
      * in decreasing order, starting from the most recent one.
@@ -702,8 +770,7 @@ public Builder addAllDeviceConfigs(
         java.lang.Iterable values) {
       if (deviceConfigsBuilder_ == null) {
         ensureDeviceConfigsIsMutable();
-        com.google.protobuf.AbstractMessageLite.Builder.addAll(
-            values, deviceConfigs_);
+        com.google.protobuf.AbstractMessageLite.Builder.addAll(values, deviceConfigs_);
         onChanged();
       } else {
         deviceConfigsBuilder_.addAllMessages(values);
@@ -711,6 +778,8 @@ public Builder addAllDeviceConfigs(
       return this;
     }
     /**
+     *
+     *
      * 
      * The device configuration for the last few versions. Versions are listed
      * in decreasing order, starting from the most recent one.
@@ -729,6 +798,8 @@ public Builder clearDeviceConfigs() {
       return this;
     }
     /**
+     *
+     *
      * 
      * The device configuration for the last few versions. Versions are listed
      * in decreasing order, starting from the most recent one.
@@ -747,6 +818,8 @@ public Builder removeDeviceConfigs(int index) {
       return this;
     }
     /**
+     *
+     *
      * 
      * The device configuration for the last few versions. Versions are listed
      * in decreasing order, starting from the most recent one.
@@ -754,11 +827,12 @@ public Builder removeDeviceConfigs(int index) {
      *
      * repeated .google.cloud.iot.v1.DeviceConfig device_configs = 1;
      */
-    public com.google.cloud.iot.v1.DeviceConfig.Builder getDeviceConfigsBuilder(
-        int index) {
+    public com.google.cloud.iot.v1.DeviceConfig.Builder getDeviceConfigsBuilder(int index) {
       return getDeviceConfigsFieldBuilder().getBuilder(index);
     }
     /**
+     *
+     *
      * 
      * The device configuration for the last few versions. Versions are listed
      * in decreasing order, starting from the most recent one.
@@ -766,14 +840,16 @@ public com.google.cloud.iot.v1.DeviceConfig.Builder getDeviceConfigsBuilder(
      *
      * repeated .google.cloud.iot.v1.DeviceConfig device_configs = 1;
      */
-    public com.google.cloud.iot.v1.DeviceConfigOrBuilder getDeviceConfigsOrBuilder(
-        int index) {
+    public com.google.cloud.iot.v1.DeviceConfigOrBuilder getDeviceConfigsOrBuilder(int index) {
       if (deviceConfigsBuilder_ == null) {
-        return deviceConfigs_.get(index);  } else {
+        return deviceConfigs_.get(index);
+      } else {
         return deviceConfigsBuilder_.getMessageOrBuilder(index);
       }
     }
     /**
+     *
+     *
      * 
      * The device configuration for the last few versions. Versions are listed
      * in decreasing order, starting from the most recent one.
@@ -781,8 +857,8 @@ public com.google.cloud.iot.v1.DeviceConfigOrBuilder getDeviceConfigsOrBuilder(
      *
      * repeated .google.cloud.iot.v1.DeviceConfig device_configs = 1;
      */
-    public java.util.List 
-         getDeviceConfigsOrBuilderList() {
+    public java.util.List
+        getDeviceConfigsOrBuilderList() {
       if (deviceConfigsBuilder_ != null) {
         return deviceConfigsBuilder_.getMessageOrBuilderList();
       } else {
@@ -790,6 +866,8 @@ public com.google.cloud.iot.v1.DeviceConfigOrBuilder getDeviceConfigsOrBuilder(
       }
     }
     /**
+     *
+     *
      * 
      * The device configuration for the last few versions. Versions are listed
      * in decreasing order, starting from the most recent one.
@@ -798,10 +876,12 @@ public com.google.cloud.iot.v1.DeviceConfigOrBuilder getDeviceConfigsOrBuilder(
      * repeated .google.cloud.iot.v1.DeviceConfig device_configs = 1;
      */
     public com.google.cloud.iot.v1.DeviceConfig.Builder addDeviceConfigsBuilder() {
-      return getDeviceConfigsFieldBuilder().addBuilder(
-          com.google.cloud.iot.v1.DeviceConfig.getDefaultInstance());
+      return getDeviceConfigsFieldBuilder()
+          .addBuilder(com.google.cloud.iot.v1.DeviceConfig.getDefaultInstance());
     }
     /**
+     *
+     *
      * 
      * The device configuration for the last few versions. Versions are listed
      * in decreasing order, starting from the most recent one.
@@ -809,12 +889,13 @@ public com.google.cloud.iot.v1.DeviceConfig.Builder addDeviceConfigsBuilder() {
      *
      * repeated .google.cloud.iot.v1.DeviceConfig device_configs = 1;
      */
-    public com.google.cloud.iot.v1.DeviceConfig.Builder addDeviceConfigsBuilder(
-        int index) {
-      return getDeviceConfigsFieldBuilder().addBuilder(
-          index, com.google.cloud.iot.v1.DeviceConfig.getDefaultInstance());
+    public com.google.cloud.iot.v1.DeviceConfig.Builder addDeviceConfigsBuilder(int index) {
+      return getDeviceConfigsFieldBuilder()
+          .addBuilder(index, com.google.cloud.iot.v1.DeviceConfig.getDefaultInstance());
     }
     /**
+     *
+     *
      * 
      * The device configuration for the last few versions. Versions are listed
      * in decreasing order, starting from the most recent one.
@@ -822,16 +903,22 @@ public com.google.cloud.iot.v1.DeviceConfig.Builder addDeviceConfigsBuilder(
      *
      * repeated .google.cloud.iot.v1.DeviceConfig device_configs = 1;
      */
-    public java.util.List 
-         getDeviceConfigsBuilderList() {
+    public java.util.List
+        getDeviceConfigsBuilderList() {
       return getDeviceConfigsFieldBuilder().getBuilderList();
     }
+
     private com.google.protobuf.RepeatedFieldBuilderV3<
-        com.google.cloud.iot.v1.DeviceConfig, com.google.cloud.iot.v1.DeviceConfig.Builder, com.google.cloud.iot.v1.DeviceConfigOrBuilder> 
+            com.google.cloud.iot.v1.DeviceConfig,
+            com.google.cloud.iot.v1.DeviceConfig.Builder,
+            com.google.cloud.iot.v1.DeviceConfigOrBuilder>
         getDeviceConfigsFieldBuilder() {
       if (deviceConfigsBuilder_ == null) {
-        deviceConfigsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
-            com.google.cloud.iot.v1.DeviceConfig, com.google.cloud.iot.v1.DeviceConfig.Builder, com.google.cloud.iot.v1.DeviceConfigOrBuilder>(
+        deviceConfigsBuilder_ =
+            new com.google.protobuf.RepeatedFieldBuilderV3<
+                com.google.cloud.iot.v1.DeviceConfig,
+                com.google.cloud.iot.v1.DeviceConfig.Builder,
+                com.google.cloud.iot.v1.DeviceConfigOrBuilder>(
                 deviceConfigs_,
                 ((bitField0_ & 0x00000001) != 0),
                 getParentForChildren(),
@@ -840,9 +927,9 @@ public com.google.cloud.iot.v1.DeviceConfig.Builder addDeviceConfigsBuilder(
       }
       return deviceConfigsBuilder_;
     }
+
     @java.lang.Override
-    public final Builder setUnknownFields(
-        final com.google.protobuf.UnknownFieldSet unknownFields) {
+    public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) {
       return super.setUnknownFields(unknownFields);
     }
 
@@ -852,12 +939,12 @@ public final Builder mergeUnknownFields(
       return super.mergeUnknownFields(unknownFields);
     }
 
-
     // @@protoc_insertion_point(builder_scope:google.cloud.iot.v1.ListDeviceConfigVersionsResponse)
   }
 
   // @@protoc_insertion_point(class_scope:google.cloud.iot.v1.ListDeviceConfigVersionsResponse)
   private static final com.google.cloud.iot.v1.ListDeviceConfigVersionsResponse DEFAULT_INSTANCE;
+
   static {
     DEFAULT_INSTANCE = new com.google.cloud.iot.v1.ListDeviceConfigVersionsResponse();
   }
@@ -866,16 +953,16 @@ public static com.google.cloud.iot.v1.ListDeviceConfigVersionsResponse getDefaul
     return DEFAULT_INSTANCE;
   }
 
-  private static final com.google.protobuf.Parser
-      PARSER = new com.google.protobuf.AbstractParser() {
-    @java.lang.Override
-    public ListDeviceConfigVersionsResponse parsePartialFrom(
-        com.google.protobuf.CodedInputStream input,
-        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
-        throws com.google.protobuf.InvalidProtocolBufferException {
-      return new ListDeviceConfigVersionsResponse(input, extensionRegistry);
-    }
-  };
+  private static final com.google.protobuf.Parser PARSER =
+      new com.google.protobuf.AbstractParser() {
+        @java.lang.Override
+        public ListDeviceConfigVersionsResponse parsePartialFrom(
+            com.google.protobuf.CodedInputStream input,
+            com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+            throws com.google.protobuf.InvalidProtocolBufferException {
+          return new ListDeviceConfigVersionsResponse(input, extensionRegistry);
+        }
+      };
 
   public static com.google.protobuf.Parser parser() {
     return PARSER;
@@ -890,6 +977,4 @@ public com.google.protobuf.Parser getParserFor
   public com.google.cloud.iot.v1.ListDeviceConfigVersionsResponse getDefaultInstanceForType() {
     return DEFAULT_INSTANCE;
   }
-
 }
-
diff --git a/owl-bot-staging/v1/proto-google-cloud-iot-v1/src/main/java/com/google/cloud/iot/v1/ListDeviceConfigVersionsResponseOrBuilder.java b/proto-google-cloud-iot-v1/src/main/java/com/google/cloud/iot/v1/ListDeviceConfigVersionsResponseOrBuilder.java
similarity index 69%
rename from owl-bot-staging/v1/proto-google-cloud-iot-v1/src/main/java/com/google/cloud/iot/v1/ListDeviceConfigVersionsResponseOrBuilder.java
rename to proto-google-cloud-iot-v1/src/main/java/com/google/cloud/iot/v1/ListDeviceConfigVersionsResponseOrBuilder.java
index 78eb05c0..2784e68a 100644
--- a/owl-bot-staging/v1/proto-google-cloud-iot-v1/src/main/java/com/google/cloud/iot/v1/ListDeviceConfigVersionsResponseOrBuilder.java
+++ b/proto-google-cloud-iot-v1/src/main/java/com/google/cloud/iot/v1/ListDeviceConfigVersionsResponseOrBuilder.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/iot/v1/device_manager.proto
 
 package com.google.cloud.iot.v1;
 
-public interface ListDeviceConfigVersionsResponseOrBuilder extends
+public interface ListDeviceConfigVersionsResponseOrBuilder
+    extends
     // @@protoc_insertion_point(interface_extends:google.cloud.iot.v1.ListDeviceConfigVersionsResponse)
     com.google.protobuf.MessageOrBuilder {
 
   /**
+   *
+   *
    * 
    * The device configuration for the last few versions. Versions are listed
    * in decreasing order, starting from the most recent one.
@@ -15,9 +33,10 @@ public interface ListDeviceConfigVersionsResponseOrBuilder extends
    *
    * repeated .google.cloud.iot.v1.DeviceConfig device_configs = 1;
    */
-  java.util.List 
-      getDeviceConfigsList();
+  java.util.List getDeviceConfigsList();
   /**
+   *
+   *
    * 
    * The device configuration for the last few versions. Versions are listed
    * in decreasing order, starting from the most recent one.
@@ -27,6 +46,8 @@ public interface ListDeviceConfigVersionsResponseOrBuilder extends
    */
   com.google.cloud.iot.v1.DeviceConfig getDeviceConfigs(int index);
   /**
+   *
+   *
    * 
    * The device configuration for the last few versions. Versions are listed
    * in decreasing order, starting from the most recent one.
@@ -36,6 +57,8 @@ public interface ListDeviceConfigVersionsResponseOrBuilder extends
    */
   int getDeviceConfigsCount();
   /**
+   *
+   *
    * 
    * The device configuration for the last few versions. Versions are listed
    * in decreasing order, starting from the most recent one.
@@ -43,9 +66,11 @@ public interface ListDeviceConfigVersionsResponseOrBuilder extends
    *
    * repeated .google.cloud.iot.v1.DeviceConfig device_configs = 1;
    */
-  java.util.List 
+  java.util.List
       getDeviceConfigsOrBuilderList();
   /**
+   *
+   *
    * 
    * The device configuration for the last few versions. Versions are listed
    * in decreasing order, starting from the most recent one.
@@ -53,6 +78,5 @@ public interface ListDeviceConfigVersionsResponseOrBuilder extends
    *
    * repeated .google.cloud.iot.v1.DeviceConfig device_configs = 1;
    */
-  com.google.cloud.iot.v1.DeviceConfigOrBuilder getDeviceConfigsOrBuilder(
-      int index);
+  com.google.cloud.iot.v1.DeviceConfigOrBuilder getDeviceConfigsOrBuilder(int index);
 }
diff --git a/owl-bot-staging/v1/proto-google-cloud-iot-v1/src/main/java/com/google/cloud/iot/v1/ListDeviceRegistriesRequest.java b/proto-google-cloud-iot-v1/src/main/java/com/google/cloud/iot/v1/ListDeviceRegistriesRequest.java
similarity index 70%
rename from owl-bot-staging/v1/proto-google-cloud-iot-v1/src/main/java/com/google/cloud/iot/v1/ListDeviceRegistriesRequest.java
rename to proto-google-cloud-iot-v1/src/main/java/com/google/cloud/iot/v1/ListDeviceRegistriesRequest.java
index 5ce4dc25..749a3848 100644
--- a/owl-bot-staging/v1/proto-google-cloud-iot-v1/src/main/java/com/google/cloud/iot/v1/ListDeviceRegistriesRequest.java
+++ b/proto-google-cloud-iot-v1/src/main/java/com/google/cloud/iot/v1/ListDeviceRegistriesRequest.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/iot/v1/device_manager.proto
 
 package com.google.cloud.iot.v1;
 
 /**
+ *
+ *
  * 
  * Request for `ListDeviceRegistries`.
  * 
* * Protobuf type {@code google.cloud.iot.v1.ListDeviceRegistriesRequest} */ -public final class ListDeviceRegistriesRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class ListDeviceRegistriesRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.iot.v1.ListDeviceRegistriesRequest) ListDeviceRegistriesRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use ListDeviceRegistriesRequest.newBuilder() to construct. private ListDeviceRegistriesRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private ListDeviceRegistriesRequest() { parent_ = ""; pageToken_ = ""; @@ -26,16 +44,15 @@ private ListDeviceRegistriesRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new ListDeviceRegistriesRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private ListDeviceRegistriesRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -54,30 +71,32 @@ private ListDeviceRegistriesRequest( case 0: done = true; break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); - - parent_ = s; - break; - } - case 16: { + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); - pageSize_ = input.readInt32(); - break; - } - case 26: { - java.lang.String s = input.readStringRequireUtf8(); + parent_ = s; + break; + } + case 16: + { + pageSize_ = input.readInt32(); + break; + } + case 26: + { + java.lang.String s = input.readStringRequireUtf8(); - pageToken_ = s; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + pageToken_ = s; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -85,35 +104,42 @@ private ListDeviceRegistriesRequest( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.iot.v1.DeviceManagerProto.internal_static_google_cloud_iot_v1_ListDeviceRegistriesRequest_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.iot.v1.DeviceManagerProto + .internal_static_google_cloud_iot_v1_ListDeviceRegistriesRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.iot.v1.DeviceManagerProto.internal_static_google_cloud_iot_v1_ListDeviceRegistriesRequest_fieldAccessorTable + return com.google.cloud.iot.v1.DeviceManagerProto + .internal_static_google_cloud_iot_v1_ListDeviceRegistriesRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.iot.v1.ListDeviceRegistriesRequest.class, com.google.cloud.iot.v1.ListDeviceRegistriesRequest.Builder.class); + com.google.cloud.iot.v1.ListDeviceRegistriesRequest.class, + com.google.cloud.iot.v1.ListDeviceRegistriesRequest.Builder.class); } public static final int PARENT_FIELD_NUMBER = 1; private volatile java.lang.Object parent_; /** + * + * *
    * Required. The project and cloud region path. For example,
    * `projects/example-project/locations/us-central1`.
    * 
* - * string parent = 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 @@ -122,30 +148,32 @@ public java.lang.String getParent() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; } } /** + * + * *
    * Required. The project and cloud region path. For example,
    * `projects/example-project/locations/us-central1`.
    * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for parent. */ @java.lang.Override - public com.google.protobuf.ByteString - getParentBytes() { + public com.google.protobuf.ByteString getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); parent_ = b; return b; } else { @@ -156,6 +184,8 @@ public java.lang.String getParent() { public static final int PAGE_SIZE_FIELD_NUMBER = 2; private int pageSize_; /** + * + * *
    * The maximum number of registries to return in the response. If this value
    * is zero, the service will select a default size. A call may return fewer
@@ -164,6 +194,7 @@ public java.lang.String getParent() {
    * 
* * int32 page_size = 2; + * * @return The pageSize. */ @java.lang.Override @@ -174,6 +205,8 @@ public int getPageSize() { public static final int PAGE_TOKEN_FIELD_NUMBER = 3; private volatile java.lang.Object pageToken_; /** + * + * *
    * The value returned by the last `ListDeviceRegistriesResponse`; indicates
    * that this is a continuation of a prior `ListDeviceRegistries` call and
@@ -181,6 +214,7 @@ public int getPageSize() {
    * 
* * string page_token = 3; + * * @return The pageToken. */ @java.lang.Override @@ -189,14 +223,15 @@ public java.lang.String getPageToken() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); pageToken_ = s; return s; } } /** + * + * *
    * The value returned by the last `ListDeviceRegistriesResponse`; indicates
    * that this is a continuation of a prior `ListDeviceRegistries` call and
@@ -204,16 +239,15 @@ public java.lang.String getPageToken() {
    * 
* * string page_token = 3; + * * @return The bytes for pageToken. */ @java.lang.Override - public com.google.protobuf.ByteString - getPageTokenBytes() { + public com.google.protobuf.ByteString getPageTokenBytes() { java.lang.Object ref = pageToken_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); pageToken_ = b; return b; } else { @@ -222,6 +256,7 @@ public java.lang.String getPageToken() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -233,8 +268,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); } @@ -257,8 +291,7 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); } if (pageSize_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(2, pageSize_); + size += com.google.protobuf.CodedOutputStream.computeInt32Size(2, pageSize_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, pageToken_); @@ -271,19 +304,17 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.iot.v1.ListDeviceRegistriesRequest)) { return super.equals(obj); } - com.google.cloud.iot.v1.ListDeviceRegistriesRequest other = (com.google.cloud.iot.v1.ListDeviceRegistriesRequest) obj; + com.google.cloud.iot.v1.ListDeviceRegistriesRequest other = + (com.google.cloud.iot.v1.ListDeviceRegistriesRequest) obj; - if (!getParent() - .equals(other.getParent())) return false; - if (getPageSize() - != other.getPageSize()) return false; - if (!getPageToken() - .equals(other.getPageToken())) return false; + if (!getParent().equals(other.getParent())) return false; + if (getPageSize() != other.getPageSize()) return false; + if (!getPageToken().equals(other.getPageToken())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -307,117 +338,126 @@ public int hashCode() { } public static com.google.cloud.iot.v1.ListDeviceRegistriesRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.iot.v1.ListDeviceRegistriesRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.iot.v1.ListDeviceRegistriesRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.iot.v1.ListDeviceRegistriesRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.iot.v1.ListDeviceRegistriesRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.iot.v1.ListDeviceRegistriesRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.iot.v1.ListDeviceRegistriesRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.iot.v1.ListDeviceRegistriesRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.iot.v1.ListDeviceRegistriesRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.iot.v1.ListDeviceRegistriesRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.iot.v1.ListDeviceRegistriesRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.iot.v1.ListDeviceRegistriesRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.iot.v1.ListDeviceRegistriesRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.iot.v1.ListDeviceRegistriesRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.cloud.iot.v1.ListDeviceRegistriesRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected 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 `ListDeviceRegistries`.
    * 
* * Protobuf type {@code google.cloud.iot.v1.ListDeviceRegistriesRequest} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.iot.v1.ListDeviceRegistriesRequest) com.google.cloud.iot.v1.ListDeviceRegistriesRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.iot.v1.DeviceManagerProto.internal_static_google_cloud_iot_v1_ListDeviceRegistriesRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.iot.v1.DeviceManagerProto + .internal_static_google_cloud_iot_v1_ListDeviceRegistriesRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.iot.v1.DeviceManagerProto.internal_static_google_cloud_iot_v1_ListDeviceRegistriesRequest_fieldAccessorTable + return com.google.cloud.iot.v1.DeviceManagerProto + .internal_static_google_cloud_iot_v1_ListDeviceRegistriesRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.iot.v1.ListDeviceRegistriesRequest.class, com.google.cloud.iot.v1.ListDeviceRegistriesRequest.Builder.class); + com.google.cloud.iot.v1.ListDeviceRegistriesRequest.class, + com.google.cloud.iot.v1.ListDeviceRegistriesRequest.Builder.class); } // Construct using com.google.cloud.iot.v1.ListDeviceRegistriesRequest.newBuilder() @@ -425,16 +465,15 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -448,9 +487,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.iot.v1.DeviceManagerProto.internal_static_google_cloud_iot_v1_ListDeviceRegistriesRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.iot.v1.DeviceManagerProto + .internal_static_google_cloud_iot_v1_ListDeviceRegistriesRequest_descriptor; } @java.lang.Override @@ -469,7 +508,8 @@ public com.google.cloud.iot.v1.ListDeviceRegistriesRequest build() { @java.lang.Override public com.google.cloud.iot.v1.ListDeviceRegistriesRequest buildPartial() { - com.google.cloud.iot.v1.ListDeviceRegistriesRequest result = new com.google.cloud.iot.v1.ListDeviceRegistriesRequest(this); + com.google.cloud.iot.v1.ListDeviceRegistriesRequest result = + new com.google.cloud.iot.v1.ListDeviceRegistriesRequest(this); result.parent_ = parent_; result.pageSize_ = pageSize_; result.pageToken_ = pageToken_; @@ -481,38 +521,39 @@ public com.google.cloud.iot.v1.ListDeviceRegistriesRequest buildPartial() { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.iot.v1.ListDeviceRegistriesRequest) { - return mergeFrom((com.google.cloud.iot.v1.ListDeviceRegistriesRequest)other); + return mergeFrom((com.google.cloud.iot.v1.ListDeviceRegistriesRequest) other); } else { super.mergeFrom(other); return this; @@ -520,7 +561,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.iot.v1.ListDeviceRegistriesRequest other) { - if (other == com.google.cloud.iot.v1.ListDeviceRegistriesRequest.getDefaultInstance()) return this; + if (other == com.google.cloud.iot.v1.ListDeviceRegistriesRequest.getDefaultInstance()) + return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; onChanged(); @@ -551,7 +593,8 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.iot.v1.ListDeviceRegistriesRequest) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.iot.v1.ListDeviceRegistriesRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -563,19 +606,23 @@ public Builder mergeFrom( private java.lang.Object parent_ = ""; /** + * + * *
      * Required. The project and cloud region path. For example,
      * `projects/example-project/locations/us-central1`.
      * 
* - * string parent = 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; @@ -584,21 +631,24 @@ public java.lang.String getParent() { } } /** + * + * *
      * Required. The project and cloud region path. For example,
      * `projects/example-project/locations/us-central1`.
      * 
* - * string parent = 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 { @@ -606,64 +656,79 @@ public java.lang.String getParent() { } } /** + * + * *
      * Required. The project and cloud region path. For example,
      * `projects/example-project/locations/us-central1`.
      * 
* - * 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 project and cloud region path. For example,
      * `projects/example-project/locations/us-central1`.
      * 
* - * string 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 project and cloud region path. For example,
      * `projects/example-project/locations/us-central1`.
      * 
* - * 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 registries to return in the response. If this value
      * is zero, the service will select a default size. A call may return fewer
@@ -672,6 +737,7 @@ public Builder setParentBytes(
      * 
* * int32 page_size = 2; + * * @return The pageSize. */ @java.lang.Override @@ -679,6 +745,8 @@ public int getPageSize() { return pageSize_; } /** + * + * *
      * The maximum number of registries to return in the response. If this value
      * is zero, the service will select a default size. A call may return fewer
@@ -687,16 +755,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 registries to return in the response. If this value
      * is zero, the service will select a default size. A call may return fewer
@@ -705,10 +776,11 @@ public Builder setPageSize(int value) {
      * 
* * int32 page_size = 2; + * * @return This builder for chaining. */ public Builder clearPageSize() { - + pageSize_ = 0; onChanged(); return this; @@ -716,6 +788,8 @@ public Builder clearPageSize() { private java.lang.Object pageToken_ = ""; /** + * + * *
      * The value returned by the last `ListDeviceRegistriesResponse`; indicates
      * that this is a continuation of a prior `ListDeviceRegistries` call and
@@ -723,13 +797,13 @@ public Builder clearPageSize() {
      * 
* * string page_token = 3; + * * @return The pageToken. */ public java.lang.String getPageToken() { java.lang.Object ref = pageToken_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); pageToken_ = s; return s; @@ -738,6 +812,8 @@ public java.lang.String getPageToken() { } } /** + * + * *
      * The value returned by the last `ListDeviceRegistriesResponse`; indicates
      * that this is a continuation of a prior `ListDeviceRegistries` call and
@@ -745,15 +821,14 @@ public java.lang.String getPageToken() {
      * 
* * string page_token = 3; + * * @return The bytes for pageToken. */ - public com.google.protobuf.ByteString - getPageTokenBytes() { + public com.google.protobuf.ByteString getPageTokenBytes() { java.lang.Object ref = pageToken_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); pageToken_ = b; return b; } else { @@ -761,6 +836,8 @@ public java.lang.String getPageToken() { } } /** + * + * *
      * The value returned by the last `ListDeviceRegistriesResponse`; indicates
      * that this is a continuation of a prior `ListDeviceRegistries` call and
@@ -768,20 +845,22 @@ public java.lang.String getPageToken() {
      * 
* * string page_token = 3; + * * @param value The pageToken to set. * @return This builder for chaining. */ - public Builder setPageToken( - java.lang.String value) { + public Builder setPageToken(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + pageToken_ = value; onChanged(); return this; } /** + * + * *
      * The value returned by the last `ListDeviceRegistriesResponse`; indicates
      * that this is a continuation of a prior `ListDeviceRegistries` call and
@@ -789,15 +868,18 @@ public Builder setPageToken(
      * 
* * string page_token = 3; + * * @return This builder for chaining. */ public Builder clearPageToken() { - + pageToken_ = getDefaultInstance().getPageToken(); onChanged(); return this; } /** + * + * *
      * The value returned by the last `ListDeviceRegistriesResponse`; indicates
      * that this is a continuation of a prior `ListDeviceRegistries` call and
@@ -805,23 +887,23 @@ public Builder clearPageToken() {
      * 
* * string page_token = 3; + * * @param value The bytes for pageToken to set. * @return This builder for chaining. */ - public Builder setPageTokenBytes( - com.google.protobuf.ByteString value) { + public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + pageToken_ = value; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -831,12 +913,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.iot.v1.ListDeviceRegistriesRequest) } // @@protoc_insertion_point(class_scope:google.cloud.iot.v1.ListDeviceRegistriesRequest) private static final com.google.cloud.iot.v1.ListDeviceRegistriesRequest DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.iot.v1.ListDeviceRegistriesRequest(); } @@ -845,16 +927,16 @@ public static com.google.cloud.iot.v1.ListDeviceRegistriesRequest getDefaultInst return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListDeviceRegistriesRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ListDeviceRegistriesRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListDeviceRegistriesRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ListDeviceRegistriesRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -869,6 +951,4 @@ public com.google.protobuf.Parser getParserForType( public com.google.cloud.iot.v1.ListDeviceRegistriesRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1/proto-google-cloud-iot-v1/src/main/java/com/google/cloud/iot/v1/ListDeviceRegistriesRequestOrBuilder.java b/proto-google-cloud-iot-v1/src/main/java/com/google/cloud/iot/v1/ListDeviceRegistriesRequestOrBuilder.java similarity index 61% rename from owl-bot-staging/v1/proto-google-cloud-iot-v1/src/main/java/com/google/cloud/iot/v1/ListDeviceRegistriesRequestOrBuilder.java rename to proto-google-cloud-iot-v1/src/main/java/com/google/cloud/iot/v1/ListDeviceRegistriesRequestOrBuilder.java index a318f993..df99ea40 100644 --- a/owl-bot-staging/v1/proto-google-cloud-iot-v1/src/main/java/com/google/cloud/iot/v1/ListDeviceRegistriesRequestOrBuilder.java +++ b/proto-google-cloud-iot-v1/src/main/java/com/google/cloud/iot/v1/ListDeviceRegistriesRequestOrBuilder.java @@ -1,35 +1,62 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/iot/v1/device_manager.proto package com.google.cloud.iot.v1; -public interface ListDeviceRegistriesRequestOrBuilder extends +public interface ListDeviceRegistriesRequestOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.iot.v1.ListDeviceRegistriesRequest) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Required. The project and cloud region path. For example,
    * `projects/example-project/locations/us-central1`.
    * 
* - * string parent = 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 project and cloud region path. For example,
    * `projects/example-project/locations/us-central1`.
    * 
* - * string parent = 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 registries to return in the response. If this value
    * is zero, the service will select a default size. A call may return fewer
@@ -38,11 +65,14 @@ public interface ListDeviceRegistriesRequestOrBuilder extends
    * 
* * int32 page_size = 2; + * * @return The pageSize. */ int getPageSize(); /** + * + * *
    * The value returned by the last `ListDeviceRegistriesResponse`; indicates
    * that this is a continuation of a prior `ListDeviceRegistries` call and
@@ -50,10 +80,13 @@ public interface ListDeviceRegistriesRequestOrBuilder extends
    * 
* * string page_token = 3; + * * @return The pageToken. */ java.lang.String getPageToken(); /** + * + * *
    * The value returned by the last `ListDeviceRegistriesResponse`; indicates
    * that this is a continuation of a prior `ListDeviceRegistries` call and
@@ -61,8 +94,8 @@ public interface ListDeviceRegistriesRequestOrBuilder extends
    * 
* * string page_token = 3; + * * @return The bytes for pageToken. */ - com.google.protobuf.ByteString - getPageTokenBytes(); + com.google.protobuf.ByteString getPageTokenBytes(); } diff --git a/owl-bot-staging/v1/proto-google-cloud-iot-v1/src/main/java/com/google/cloud/iot/v1/ListDeviceRegistriesResponse.java b/proto-google-cloud-iot-v1/src/main/java/com/google/cloud/iot/v1/ListDeviceRegistriesResponse.java similarity index 74% rename from owl-bot-staging/v1/proto-google-cloud-iot-v1/src/main/java/com/google/cloud/iot/v1/ListDeviceRegistriesResponse.java rename to proto-google-cloud-iot-v1/src/main/java/com/google/cloud/iot/v1/ListDeviceRegistriesResponse.java index 6d9d6e5d..e6bd3272 100644 --- a/owl-bot-staging/v1/proto-google-cloud-iot-v1/src/main/java/com/google/cloud/iot/v1/ListDeviceRegistriesResponse.java +++ b/proto-google-cloud-iot-v1/src/main/java/com/google/cloud/iot/v1/ListDeviceRegistriesResponse.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/iot/v1/device_manager.proto package com.google.cloud.iot.v1; /** + * + * *
  * Response for `ListDeviceRegistries`.
  * 
* * Protobuf type {@code google.cloud.iot.v1.ListDeviceRegistriesResponse} */ -public final class ListDeviceRegistriesResponse extends - com.google.protobuf.GeneratedMessageV3 implements +public final class ListDeviceRegistriesResponse extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.iot.v1.ListDeviceRegistriesResponse) ListDeviceRegistriesResponseOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use ListDeviceRegistriesResponse.newBuilder() to construct. private ListDeviceRegistriesResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private ListDeviceRegistriesResponse() { deviceRegistries_ = java.util.Collections.emptyList(); nextPageToken_ = ""; @@ -26,16 +44,15 @@ private ListDeviceRegistriesResponse() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new ListDeviceRegistriesResponse(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private ListDeviceRegistriesResponse( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -55,28 +72,32 @@ private ListDeviceRegistriesResponse( case 0: done = true; break; - case 10: { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - deviceRegistries_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; + case 10: + { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + deviceRegistries_ = + new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; + } + deviceRegistries_.add( + input.readMessage( + com.google.cloud.iot.v1.DeviceRegistry.parser(), extensionRegistry)); + break; } - deviceRegistries_.add( - input.readMessage(com.google.cloud.iot.v1.DeviceRegistry.parser(), extensionRegistry)); - break; - } - case 18: { - java.lang.String s = input.readStringRequireUtf8(); + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); - nextPageToken_ = s; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + nextPageToken_ = s; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -84,8 +105,7 @@ private ListDeviceRegistriesResponse( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } 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)) { deviceRegistries_ = java.util.Collections.unmodifiableList(deviceRegistries_); @@ -94,22 +114,27 @@ private ListDeviceRegistriesResponse( makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.iot.v1.DeviceManagerProto.internal_static_google_cloud_iot_v1_ListDeviceRegistriesResponse_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.iot.v1.DeviceManagerProto + .internal_static_google_cloud_iot_v1_ListDeviceRegistriesResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.iot.v1.DeviceManagerProto.internal_static_google_cloud_iot_v1_ListDeviceRegistriesResponse_fieldAccessorTable + return com.google.cloud.iot.v1.DeviceManagerProto + .internal_static_google_cloud_iot_v1_ListDeviceRegistriesResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.iot.v1.ListDeviceRegistriesResponse.class, com.google.cloud.iot.v1.ListDeviceRegistriesResponse.Builder.class); + com.google.cloud.iot.v1.ListDeviceRegistriesResponse.class, + com.google.cloud.iot.v1.ListDeviceRegistriesResponse.Builder.class); } public static final int DEVICE_REGISTRIES_FIELD_NUMBER = 1; private java.util.List deviceRegistries_; /** + * + * *
    * The registries that matched the query.
    * 
@@ -121,6 +146,8 @@ public java.util.List getDeviceRegistrie return deviceRegistries_; } /** + * + * *
    * The registries that matched the query.
    * 
@@ -128,11 +155,13 @@ public java.util.List getDeviceRegistrie * repeated .google.cloud.iot.v1.DeviceRegistry device_registries = 1; */ @java.lang.Override - public java.util.List + public java.util.List getDeviceRegistriesOrBuilderList() { return deviceRegistries_; } /** + * + * *
    * The registries that matched the query.
    * 
@@ -144,6 +173,8 @@ public int getDeviceRegistriesCount() { return deviceRegistries_.size(); } /** + * + * *
    * The registries that matched the query.
    * 
@@ -155,6 +186,8 @@ public com.google.cloud.iot.v1.DeviceRegistry getDeviceRegistries(int index) { return deviceRegistries_.get(index); } /** + * + * *
    * The registries that matched the query.
    * 
@@ -162,14 +195,15 @@ public com.google.cloud.iot.v1.DeviceRegistry getDeviceRegistries(int index) { * repeated .google.cloud.iot.v1.DeviceRegistry device_registries = 1; */ @java.lang.Override - public com.google.cloud.iot.v1.DeviceRegistryOrBuilder getDeviceRegistriesOrBuilder( - int index) { + public com.google.cloud.iot.v1.DeviceRegistryOrBuilder getDeviceRegistriesOrBuilder(int index) { return deviceRegistries_.get(index); } public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; private volatile java.lang.Object nextPageToken_; /** + * + * *
    * If not empty, indicates that there may be more registries that match the
    * request; this value should be passed in a new
@@ -177,6 +211,7 @@ public com.google.cloud.iot.v1.DeviceRegistryOrBuilder getDeviceRegistriesOrBuil
    * 
* * string next_page_token = 2; + * * @return The nextPageToken. */ @java.lang.Override @@ -185,14 +220,15 @@ 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; } } /** + * + * *
    * If not empty, indicates that there may be more registries that match the
    * request; this value should be passed in a new
@@ -200,16 +236,15 @@ public java.lang.String getNextPageToken() {
    * 
* * 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 { @@ -218,6 +253,7 @@ public java.lang.String getNextPageToken() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -229,8 +265,7 @@ public final boolean isInitialized() { } @java.lang.Override - 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 < deviceRegistries_.size(); i++) { output.writeMessage(1, deviceRegistries_.get(i)); } @@ -247,8 +282,7 @@ public int getSerializedSize() { size = 0; for (int i = 0; i < deviceRegistries_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, deviceRegistries_.get(i)); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, deviceRegistries_.get(i)); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextPageToken_); @@ -261,17 +295,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.iot.v1.ListDeviceRegistriesResponse)) { return super.equals(obj); } - com.google.cloud.iot.v1.ListDeviceRegistriesResponse other = (com.google.cloud.iot.v1.ListDeviceRegistriesResponse) obj; + com.google.cloud.iot.v1.ListDeviceRegistriesResponse other = + (com.google.cloud.iot.v1.ListDeviceRegistriesResponse) obj; - if (!getDeviceRegistriesList() - .equals(other.getDeviceRegistriesList())) return false; - if (!getNextPageToken() - .equals(other.getNextPageToken())) return false; + if (!getDeviceRegistriesList().equals(other.getDeviceRegistriesList())) return false; + if (!getNextPageToken().equals(other.getNextPageToken())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -295,117 +328,126 @@ public int hashCode() { } public static com.google.cloud.iot.v1.ListDeviceRegistriesResponse parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.iot.v1.ListDeviceRegistriesResponse parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.iot.v1.ListDeviceRegistriesResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.iot.v1.ListDeviceRegistriesResponse parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.iot.v1.ListDeviceRegistriesResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.iot.v1.ListDeviceRegistriesResponse parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.iot.v1.ListDeviceRegistriesResponse parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.iot.v1.ListDeviceRegistriesResponse parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.iot.v1.ListDeviceRegistriesResponse parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.iot.v1.ListDeviceRegistriesResponse parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.iot.v1.ListDeviceRegistriesResponse parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.iot.v1.ListDeviceRegistriesResponse parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.iot.v1.ListDeviceRegistriesResponse parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.iot.v1.ListDeviceRegistriesResponse parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.cloud.iot.v1.ListDeviceRegistriesResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected 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 `ListDeviceRegistries`.
    * 
* * Protobuf type {@code google.cloud.iot.v1.ListDeviceRegistriesResponse} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.iot.v1.ListDeviceRegistriesResponse) com.google.cloud.iot.v1.ListDeviceRegistriesResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.iot.v1.DeviceManagerProto.internal_static_google_cloud_iot_v1_ListDeviceRegistriesResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.iot.v1.DeviceManagerProto + .internal_static_google_cloud_iot_v1_ListDeviceRegistriesResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.iot.v1.DeviceManagerProto.internal_static_google_cloud_iot_v1_ListDeviceRegistriesResponse_fieldAccessorTable + return com.google.cloud.iot.v1.DeviceManagerProto + .internal_static_google_cloud_iot_v1_ListDeviceRegistriesResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.iot.v1.ListDeviceRegistriesResponse.class, com.google.cloud.iot.v1.ListDeviceRegistriesResponse.Builder.class); + com.google.cloud.iot.v1.ListDeviceRegistriesResponse.class, + com.google.cloud.iot.v1.ListDeviceRegistriesResponse.Builder.class); } // Construct using com.google.cloud.iot.v1.ListDeviceRegistriesResponse.newBuilder() @@ -413,17 +455,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) { getDeviceRegistriesFieldBuilder(); } } + @java.lang.Override public Builder clear() { super.clear(); @@ -439,9 +481,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.iot.v1.DeviceManagerProto.internal_static_google_cloud_iot_v1_ListDeviceRegistriesResponse_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.iot.v1.DeviceManagerProto + .internal_static_google_cloud_iot_v1_ListDeviceRegistriesResponse_descriptor; } @java.lang.Override @@ -460,7 +502,8 @@ public com.google.cloud.iot.v1.ListDeviceRegistriesResponse build() { @java.lang.Override public com.google.cloud.iot.v1.ListDeviceRegistriesResponse buildPartial() { - com.google.cloud.iot.v1.ListDeviceRegistriesResponse result = new com.google.cloud.iot.v1.ListDeviceRegistriesResponse(this); + com.google.cloud.iot.v1.ListDeviceRegistriesResponse result = + new com.google.cloud.iot.v1.ListDeviceRegistriesResponse(this); int from_bitField0_ = bitField0_; if (deviceRegistriesBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { @@ -480,38 +523,39 @@ public com.google.cloud.iot.v1.ListDeviceRegistriesResponse buildPartial() { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.iot.v1.ListDeviceRegistriesResponse) { - return mergeFrom((com.google.cloud.iot.v1.ListDeviceRegistriesResponse)other); + return mergeFrom((com.google.cloud.iot.v1.ListDeviceRegistriesResponse) other); } else { super.mergeFrom(other); return this; @@ -519,7 +563,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.iot.v1.ListDeviceRegistriesResponse other) { - if (other == com.google.cloud.iot.v1.ListDeviceRegistriesResponse.getDefaultInstance()) return this; + if (other == com.google.cloud.iot.v1.ListDeviceRegistriesResponse.getDefaultInstance()) + return this; if (deviceRegistriesBuilder_ == null) { if (!other.deviceRegistries_.isEmpty()) { if (deviceRegistries_.isEmpty()) { @@ -538,9 +583,10 @@ public Builder mergeFrom(com.google.cloud.iot.v1.ListDeviceRegistriesResponse ot deviceRegistriesBuilder_ = null; deviceRegistries_ = other.deviceRegistries_; bitField0_ = (bitField0_ & ~0x00000001); - deviceRegistriesBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getDeviceRegistriesFieldBuilder() : null; + deviceRegistriesBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getDeviceRegistriesFieldBuilder() + : null; } else { deviceRegistriesBuilder_.addAllMessages(other.deviceRegistries_); } @@ -569,7 +615,8 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.iot.v1.ListDeviceRegistriesResponse) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.iot.v1.ListDeviceRegistriesResponse) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -578,21 +625,29 @@ public Builder mergeFrom( } return this; } + private int bitField0_; private java.util.List deviceRegistries_ = - java.util.Collections.emptyList(); + java.util.Collections.emptyList(); + private void ensureDeviceRegistriesIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { - deviceRegistries_ = new java.util.ArrayList(deviceRegistries_); + deviceRegistries_ = + new java.util.ArrayList(deviceRegistries_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.iot.v1.DeviceRegistry, com.google.cloud.iot.v1.DeviceRegistry.Builder, com.google.cloud.iot.v1.DeviceRegistryOrBuilder> deviceRegistriesBuilder_; + com.google.cloud.iot.v1.DeviceRegistry, + com.google.cloud.iot.v1.DeviceRegistry.Builder, + com.google.cloud.iot.v1.DeviceRegistryOrBuilder> + deviceRegistriesBuilder_; /** + * + * *
      * The registries that matched the query.
      * 
@@ -607,6 +662,8 @@ public java.util.List getDeviceRegistrie } } /** + * + * *
      * The registries that matched the query.
      * 
@@ -621,6 +678,8 @@ public int getDeviceRegistriesCount() { } } /** + * + * *
      * The registries that matched the query.
      * 
@@ -635,14 +694,15 @@ public com.google.cloud.iot.v1.DeviceRegistry getDeviceRegistries(int index) { } } /** + * + * *
      * The registries that matched the query.
      * 
* * repeated .google.cloud.iot.v1.DeviceRegistry device_registries = 1; */ - public Builder setDeviceRegistries( - int index, com.google.cloud.iot.v1.DeviceRegistry value) { + public Builder setDeviceRegistries(int index, com.google.cloud.iot.v1.DeviceRegistry value) { if (deviceRegistriesBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -656,6 +716,8 @@ public Builder setDeviceRegistries( return this; } /** + * + * *
      * The registries that matched the query.
      * 
@@ -674,6 +736,8 @@ public Builder setDeviceRegistries( return this; } /** + * + * *
      * The registries that matched the query.
      * 
@@ -694,14 +758,15 @@ public Builder addDeviceRegistries(com.google.cloud.iot.v1.DeviceRegistry value) return this; } /** + * + * *
      * The registries that matched the query.
      * 
* * repeated .google.cloud.iot.v1.DeviceRegistry device_registries = 1; */ - public Builder addDeviceRegistries( - int index, com.google.cloud.iot.v1.DeviceRegistry value) { + public Builder addDeviceRegistries(int index, com.google.cloud.iot.v1.DeviceRegistry value) { if (deviceRegistriesBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -715,6 +780,8 @@ public Builder addDeviceRegistries( return this; } /** + * + * *
      * The registries that matched the query.
      * 
@@ -733,6 +800,8 @@ public Builder addDeviceRegistries( return this; } /** + * + * *
      * The registries that matched the query.
      * 
@@ -751,6 +820,8 @@ public Builder addDeviceRegistries( return this; } /** + * + * *
      * The registries that matched the query.
      * 
@@ -761,8 +832,7 @@ public Builder addAllDeviceRegistries( java.lang.Iterable values) { if (deviceRegistriesBuilder_ == null) { ensureDeviceRegistriesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, deviceRegistries_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, deviceRegistries_); onChanged(); } else { deviceRegistriesBuilder_.addAllMessages(values); @@ -770,6 +840,8 @@ public Builder addAllDeviceRegistries( return this; } /** + * + * *
      * The registries that matched the query.
      * 
@@ -787,6 +859,8 @@ public Builder clearDeviceRegistries() { return this; } /** + * + * *
      * The registries that matched the query.
      * 
@@ -804,39 +878,44 @@ public Builder removeDeviceRegistries(int index) { return this; } /** + * + * *
      * The registries that matched the query.
      * 
* * repeated .google.cloud.iot.v1.DeviceRegistry device_registries = 1; */ - public com.google.cloud.iot.v1.DeviceRegistry.Builder getDeviceRegistriesBuilder( - int index) { + public com.google.cloud.iot.v1.DeviceRegistry.Builder getDeviceRegistriesBuilder(int index) { return getDeviceRegistriesFieldBuilder().getBuilder(index); } /** + * + * *
      * The registries that matched the query.
      * 
* * repeated .google.cloud.iot.v1.DeviceRegistry device_registries = 1; */ - public com.google.cloud.iot.v1.DeviceRegistryOrBuilder getDeviceRegistriesOrBuilder( - int index) { + public com.google.cloud.iot.v1.DeviceRegistryOrBuilder getDeviceRegistriesOrBuilder(int index) { if (deviceRegistriesBuilder_ == null) { - return deviceRegistries_.get(index); } else { + return deviceRegistries_.get(index); + } else { return deviceRegistriesBuilder_.getMessageOrBuilder(index); } } /** + * + * *
      * The registries that matched the query.
      * 
* * repeated .google.cloud.iot.v1.DeviceRegistry device_registries = 1; */ - public java.util.List - getDeviceRegistriesOrBuilderList() { + public java.util.List + getDeviceRegistriesOrBuilderList() { if (deviceRegistriesBuilder_ != null) { return deviceRegistriesBuilder_.getMessageOrBuilderList(); } else { @@ -844,6 +923,8 @@ public com.google.cloud.iot.v1.DeviceRegistryOrBuilder getDeviceRegistriesOrBuil } } /** + * + * *
      * The registries that matched the query.
      * 
@@ -851,38 +932,47 @@ public com.google.cloud.iot.v1.DeviceRegistryOrBuilder getDeviceRegistriesOrBuil * repeated .google.cloud.iot.v1.DeviceRegistry device_registries = 1; */ public com.google.cloud.iot.v1.DeviceRegistry.Builder addDeviceRegistriesBuilder() { - return getDeviceRegistriesFieldBuilder().addBuilder( - com.google.cloud.iot.v1.DeviceRegistry.getDefaultInstance()); + return getDeviceRegistriesFieldBuilder() + .addBuilder(com.google.cloud.iot.v1.DeviceRegistry.getDefaultInstance()); } /** + * + * *
      * The registries that matched the query.
      * 
* * repeated .google.cloud.iot.v1.DeviceRegistry device_registries = 1; */ - public com.google.cloud.iot.v1.DeviceRegistry.Builder addDeviceRegistriesBuilder( - int index) { - return getDeviceRegistriesFieldBuilder().addBuilder( - index, com.google.cloud.iot.v1.DeviceRegistry.getDefaultInstance()); + public com.google.cloud.iot.v1.DeviceRegistry.Builder addDeviceRegistriesBuilder(int index) { + return getDeviceRegistriesFieldBuilder() + .addBuilder(index, com.google.cloud.iot.v1.DeviceRegistry.getDefaultInstance()); } /** + * + * *
      * The registries that matched the query.
      * 
* * repeated .google.cloud.iot.v1.DeviceRegistry device_registries = 1; */ - public java.util.List - getDeviceRegistriesBuilderList() { + public java.util.List + getDeviceRegistriesBuilderList() { return getDeviceRegistriesFieldBuilder().getBuilderList(); } + private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.iot.v1.DeviceRegistry, com.google.cloud.iot.v1.DeviceRegistry.Builder, com.google.cloud.iot.v1.DeviceRegistryOrBuilder> + com.google.cloud.iot.v1.DeviceRegistry, + com.google.cloud.iot.v1.DeviceRegistry.Builder, + com.google.cloud.iot.v1.DeviceRegistryOrBuilder> getDeviceRegistriesFieldBuilder() { if (deviceRegistriesBuilder_ == null) { - deviceRegistriesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.iot.v1.DeviceRegistry, com.google.cloud.iot.v1.DeviceRegistry.Builder, com.google.cloud.iot.v1.DeviceRegistryOrBuilder>( + deviceRegistriesBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.iot.v1.DeviceRegistry, + com.google.cloud.iot.v1.DeviceRegistry.Builder, + com.google.cloud.iot.v1.DeviceRegistryOrBuilder>( deviceRegistries_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), @@ -894,6 +984,8 @@ public com.google.cloud.iot.v1.DeviceRegistry.Builder addDeviceRegistriesBuilder private java.lang.Object nextPageToken_ = ""; /** + * + * *
      * If not empty, indicates that there may be more registries that match the
      * request; this value should be passed in a new
@@ -901,13 +993,13 @@ public com.google.cloud.iot.v1.DeviceRegistry.Builder addDeviceRegistriesBuilder
      * 
* * 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; @@ -916,6 +1008,8 @@ public java.lang.String getNextPageToken() { } } /** + * + * *
      * If not empty, indicates that there may be more registries that match the
      * request; this value should be passed in a new
@@ -923,15 +1017,14 @@ public java.lang.String getNextPageToken() {
      * 
* * 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 { @@ -939,6 +1032,8 @@ public java.lang.String getNextPageToken() { } } /** + * + * *
      * If not empty, indicates that there may be more registries that match the
      * request; this value should be passed in a new
@@ -946,20 +1041,22 @@ public java.lang.String getNextPageToken() {
      * 
* * 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; } /** + * + * *
      * If not empty, indicates that there may be more registries that match the
      * request; this value should be passed in a new
@@ -967,15 +1064,18 @@ public Builder setNextPageToken(
      * 
* * string next_page_token = 2; + * * @return This builder for chaining. */ public Builder clearNextPageToken() { - + nextPageToken_ = getDefaultInstance().getNextPageToken(); onChanged(); return this; } /** + * + * *
      * If not empty, indicates that there may be more registries that match the
      * request; this value should be passed in a new
@@ -983,23 +1083,23 @@ public Builder clearNextPageToken() {
      * 
* * string next_page_token = 2; + * * @param value The bytes for nextPageToken to set. * @return This builder for chaining. */ - public Builder setNextPageTokenBytes( - com.google.protobuf.ByteString value) { + public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + nextPageToken_ = value; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1009,12 +1109,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.iot.v1.ListDeviceRegistriesResponse) } // @@protoc_insertion_point(class_scope:google.cloud.iot.v1.ListDeviceRegistriesResponse) private static final com.google.cloud.iot.v1.ListDeviceRegistriesResponse DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.iot.v1.ListDeviceRegistriesResponse(); } @@ -1023,16 +1123,16 @@ public static com.google.cloud.iot.v1.ListDeviceRegistriesResponse getDefaultIns return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListDeviceRegistriesResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ListDeviceRegistriesResponse(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListDeviceRegistriesResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ListDeviceRegistriesResponse(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1047,6 +1147,4 @@ public com.google.protobuf.Parser getParserForType public com.google.cloud.iot.v1.ListDeviceRegistriesResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1/proto-google-cloud-iot-v1/src/main/java/com/google/cloud/iot/v1/ListDeviceRegistriesResponseOrBuilder.java b/proto-google-cloud-iot-v1/src/main/java/com/google/cloud/iot/v1/ListDeviceRegistriesResponseOrBuilder.java similarity index 68% rename from owl-bot-staging/v1/proto-google-cloud-iot-v1/src/main/java/com/google/cloud/iot/v1/ListDeviceRegistriesResponseOrBuilder.java rename to proto-google-cloud-iot-v1/src/main/java/com/google/cloud/iot/v1/ListDeviceRegistriesResponseOrBuilder.java index b341c6c0..769fcc29 100644 --- a/owl-bot-staging/v1/proto-google-cloud-iot-v1/src/main/java/com/google/cloud/iot/v1/ListDeviceRegistriesResponseOrBuilder.java +++ b/proto-google-cloud-iot-v1/src/main/java/com/google/cloud/iot/v1/ListDeviceRegistriesResponseOrBuilder.java @@ -1,22 +1,41 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/iot/v1/device_manager.proto package com.google.cloud.iot.v1; -public interface ListDeviceRegistriesResponseOrBuilder extends +public interface ListDeviceRegistriesResponseOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.iot.v1.ListDeviceRegistriesResponse) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * The registries that matched the query.
    * 
* * repeated .google.cloud.iot.v1.DeviceRegistry device_registries = 1; */ - java.util.List - getDeviceRegistriesList(); + java.util.List getDeviceRegistriesList(); /** + * + * *
    * The registries that matched the query.
    * 
@@ -25,6 +44,8 @@ public interface ListDeviceRegistriesResponseOrBuilder extends */ com.google.cloud.iot.v1.DeviceRegistry getDeviceRegistries(int index); /** + * + * *
    * The registries that matched the query.
    * 
@@ -33,25 +54,30 @@ public interface ListDeviceRegistriesResponseOrBuilder extends */ int getDeviceRegistriesCount(); /** + * + * *
    * The registries that matched the query.
    * 
* * repeated .google.cloud.iot.v1.DeviceRegistry device_registries = 1; */ - java.util.List + java.util.List getDeviceRegistriesOrBuilderList(); /** + * + * *
    * The registries that matched the query.
    * 
* * repeated .google.cloud.iot.v1.DeviceRegistry device_registries = 1; */ - com.google.cloud.iot.v1.DeviceRegistryOrBuilder getDeviceRegistriesOrBuilder( - int index); + com.google.cloud.iot.v1.DeviceRegistryOrBuilder getDeviceRegistriesOrBuilder(int index); /** + * + * *
    * If not empty, indicates that there may be more registries that match the
    * request; this value should be passed in a new
@@ -59,10 +85,13 @@ com.google.cloud.iot.v1.DeviceRegistryOrBuilder getDeviceRegistriesOrBuilder(
    * 
* * string next_page_token = 2; + * * @return The nextPageToken. */ java.lang.String getNextPageToken(); /** + * + * *
    * If not empty, indicates that there may be more registries that match the
    * request; this value should be passed in a new
@@ -70,8 +99,8 @@ com.google.cloud.iot.v1.DeviceRegistryOrBuilder getDeviceRegistriesOrBuilder(
    * 
* * string next_page_token = 2; + * * @return The bytes for nextPageToken. */ - com.google.protobuf.ByteString - getNextPageTokenBytes(); + com.google.protobuf.ByteString getNextPageTokenBytes(); } diff --git a/owl-bot-staging/v1/proto-google-cloud-iot-v1/src/main/java/com/google/cloud/iot/v1/ListDeviceStatesRequest.java b/proto-google-cloud-iot-v1/src/main/java/com/google/cloud/iot/v1/ListDeviceStatesRequest.java similarity index 69% rename from owl-bot-staging/v1/proto-google-cloud-iot-v1/src/main/java/com/google/cloud/iot/v1/ListDeviceStatesRequest.java rename to proto-google-cloud-iot-v1/src/main/java/com/google/cloud/iot/v1/ListDeviceStatesRequest.java index e4221b95..cae14f96 100644 --- a/owl-bot-staging/v1/proto-google-cloud-iot-v1/src/main/java/com/google/cloud/iot/v1/ListDeviceStatesRequest.java +++ b/proto-google-cloud-iot-v1/src/main/java/com/google/cloud/iot/v1/ListDeviceStatesRequest.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/iot/v1/device_manager.proto package com.google.cloud.iot.v1; /** + * + * *
  * Request for `ListDeviceStates`.
  * 
* * Protobuf type {@code google.cloud.iot.v1.ListDeviceStatesRequest} */ -public final class ListDeviceStatesRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class ListDeviceStatesRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.iot.v1.ListDeviceStatesRequest) ListDeviceStatesRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use ListDeviceStatesRequest.newBuilder() to construct. private ListDeviceStatesRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private ListDeviceStatesRequest() { name_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new ListDeviceStatesRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private ListDeviceStatesRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -53,24 +70,25 @@ private ListDeviceStatesRequest( case 0: done = true; break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); - - name_ = s; - break; - } - case 16: { + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); - numStates_ = input.readInt32(); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + name_ = s; + break; + } + case 16: + { + numStates_ = input.readInt32(); + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -78,36 +96,43 @@ private ListDeviceStatesRequest( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.iot.v1.DeviceManagerProto.internal_static_google_cloud_iot_v1_ListDeviceStatesRequest_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.iot.v1.DeviceManagerProto + .internal_static_google_cloud_iot_v1_ListDeviceStatesRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.iot.v1.DeviceManagerProto.internal_static_google_cloud_iot_v1_ListDeviceStatesRequest_fieldAccessorTable + return com.google.cloud.iot.v1.DeviceManagerProto + .internal_static_google_cloud_iot_v1_ListDeviceStatesRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.iot.v1.ListDeviceStatesRequest.class, com.google.cloud.iot.v1.ListDeviceStatesRequest.Builder.class); + com.google.cloud.iot.v1.ListDeviceStatesRequest.class, + com.google.cloud.iot.v1.ListDeviceStatesRequest.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** + * + * *
    * Required. The name of the device. For example,
    * `projects/p0/locations/us-central1/registries/registry0/devices/device0` or
    * `projects/p0/locations/us-central1/registries/registry0/devices/{num_id}`.
    * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The name. */ @java.lang.Override @@ -116,31 +141,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. The name of the device. For example,
    * `projects/p0/locations/us-central1/registries/registry0/devices/device0` or
    * `projects/p0/locations/us-central1/registries/registry0/devices/{num_id}`.
    * 
* - * string name = 1 [(.google.api.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 { @@ -151,6 +178,8 @@ public java.lang.String getName() { public static final int NUM_STATES_FIELD_NUMBER = 2; private int numStates_; /** + * + * *
    * The number of states to list. States are listed in descending order of
    * update time. The maximum number of states retained is 10. If this
@@ -158,6 +187,7 @@ public java.lang.String getName() {
    * 
* * int32 num_states = 2; + * * @return The numStates. */ @java.lang.Override @@ -166,6 +196,7 @@ public int getNumStates() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -177,8 +208,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -198,8 +228,7 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); } if (numStates_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(2, numStates_); + size += com.google.protobuf.CodedOutputStream.computeInt32Size(2, numStates_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -209,17 +238,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.iot.v1.ListDeviceStatesRequest)) { return super.equals(obj); } - com.google.cloud.iot.v1.ListDeviceStatesRequest other = (com.google.cloud.iot.v1.ListDeviceStatesRequest) obj; + com.google.cloud.iot.v1.ListDeviceStatesRequest other = + (com.google.cloud.iot.v1.ListDeviceStatesRequest) obj; - if (!getName() - .equals(other.getName())) return false; - if (getNumStates() - != other.getNumStates()) return false; + if (!getName().equals(other.getName())) return false; + if (getNumStates() != other.getNumStates()) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -240,118 +268,127 @@ public int hashCode() { return hash; } - public static com.google.cloud.iot.v1.ListDeviceStatesRequest parseFrom( - java.nio.ByteBuffer data) + public static com.google.cloud.iot.v1.ListDeviceStatesRequest parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.iot.v1.ListDeviceStatesRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.iot.v1.ListDeviceStatesRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.iot.v1.ListDeviceStatesRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.iot.v1.ListDeviceStatesRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.iot.v1.ListDeviceStatesRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.iot.v1.ListDeviceStatesRequest 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.iot.v1.ListDeviceStatesRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.iot.v1.ListDeviceStatesRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.iot.v1.ListDeviceStatesRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.iot.v1.ListDeviceStatesRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.iot.v1.ListDeviceStatesRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.iot.v1.ListDeviceStatesRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.cloud.iot.v1.ListDeviceStatesRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected 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 `ListDeviceStates`.
    * 
* * Protobuf type {@code google.cloud.iot.v1.ListDeviceStatesRequest} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.iot.v1.ListDeviceStatesRequest) com.google.cloud.iot.v1.ListDeviceStatesRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.iot.v1.DeviceManagerProto.internal_static_google_cloud_iot_v1_ListDeviceStatesRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.iot.v1.DeviceManagerProto + .internal_static_google_cloud_iot_v1_ListDeviceStatesRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.iot.v1.DeviceManagerProto.internal_static_google_cloud_iot_v1_ListDeviceStatesRequest_fieldAccessorTable + return com.google.cloud.iot.v1.DeviceManagerProto + .internal_static_google_cloud_iot_v1_ListDeviceStatesRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.iot.v1.ListDeviceStatesRequest.class, com.google.cloud.iot.v1.ListDeviceStatesRequest.Builder.class); + com.google.cloud.iot.v1.ListDeviceStatesRequest.class, + com.google.cloud.iot.v1.ListDeviceStatesRequest.Builder.class); } // Construct using com.google.cloud.iot.v1.ListDeviceStatesRequest.newBuilder() @@ -359,16 +396,15 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); 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 +416,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.iot.v1.DeviceManagerProto.internal_static_google_cloud_iot_v1_ListDeviceStatesRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.iot.v1.DeviceManagerProto + .internal_static_google_cloud_iot_v1_ListDeviceStatesRequest_descriptor; } @java.lang.Override @@ -401,7 +437,8 @@ public com.google.cloud.iot.v1.ListDeviceStatesRequest build() { @java.lang.Override public com.google.cloud.iot.v1.ListDeviceStatesRequest buildPartial() { - com.google.cloud.iot.v1.ListDeviceStatesRequest result = new com.google.cloud.iot.v1.ListDeviceStatesRequest(this); + com.google.cloud.iot.v1.ListDeviceStatesRequest result = + new com.google.cloud.iot.v1.ListDeviceStatesRequest(this); result.name_ = name_; result.numStates_ = numStates_; onBuilt(); @@ -412,38 +449,39 @@ public com.google.cloud.iot.v1.ListDeviceStatesRequest buildPartial() { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.iot.v1.ListDeviceStatesRequest) { - return mergeFrom((com.google.cloud.iot.v1.ListDeviceStatesRequest)other); + return mergeFrom((com.google.cloud.iot.v1.ListDeviceStatesRequest) other); } else { super.mergeFrom(other); return this; @@ -451,7 +489,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.iot.v1.ListDeviceStatesRequest other) { - if (other == com.google.cloud.iot.v1.ListDeviceStatesRequest.getDefaultInstance()) return this; + if (other == com.google.cloud.iot.v1.ListDeviceStatesRequest.getDefaultInstance()) + return this; if (!other.getName().isEmpty()) { name_ = other.name_; onChanged(); @@ -490,20 +529,24 @@ public Builder mergeFrom( private java.lang.Object name_ = ""; /** + * + * *
      * Required. The name of the device. For example,
      * `projects/p0/locations/us-central1/registries/registry0/devices/device0` or
      * `projects/p0/locations/us-central1/registries/registry0/devices/{num_id}`.
      * 
* - * string name = 1 [(.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; @@ -512,22 +555,25 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. The name of the device. For example,
      * `projects/p0/locations/us-central1/registries/registry0/devices/device0` or
      * `projects/p0/locations/us-central1/registries/registry0/devices/{num_id}`.
      * 
* - * string name = 1 [(.google.api.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 { @@ -535,67 +581,82 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. The name of the device. For example,
      * `projects/p0/locations/us-central1/registries/registry0/devices/device0` or
      * `projects/p0/locations/us-central1/registries/registry0/devices/{num_id}`.
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The name to set. * @return This builder for chaining. */ - public Builder setName( - java.lang.String value) { + public Builder setName(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + name_ = value; onChanged(); return this; } /** + * + * *
      * Required. The name of the device. For example,
      * `projects/p0/locations/us-central1/registries/registry0/devices/device0` or
      * `projects/p0/locations/us-central1/registries/registry0/devices/{num_id}`.
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return This builder for chaining. */ public Builder clearName() { - + name_ = getDefaultInstance().getName(); onChanged(); return this; } /** + * + * *
      * Required. The name of the device. For example,
      * `projects/p0/locations/us-central1/registries/registry0/devices/device0` or
      * `projects/p0/locations/us-central1/registries/registry0/devices/{num_id}`.
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes( - com.google.protobuf.ByteString value) { + public Builder setNameBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; onChanged(); return this; } - private int numStates_ ; + private int numStates_; /** + * + * *
      * The number of states to list. States are listed in descending order of
      * update time. The maximum number of states retained is 10. If this
@@ -603,6 +664,7 @@ public Builder setNameBytes(
      * 
* * int32 num_states = 2; + * * @return The numStates. */ @java.lang.Override @@ -610,6 +672,8 @@ public int getNumStates() { return numStates_; } /** + * + * *
      * The number of states to list. States are listed in descending order of
      * update time. The maximum number of states retained is 10. If this
@@ -617,16 +681,19 @@ public int getNumStates() {
      * 
* * int32 num_states = 2; + * * @param value The numStates to set. * @return This builder for chaining. */ public Builder setNumStates(int value) { - + numStates_ = value; onChanged(); return this; } /** + * + * *
      * The number of states to list. States are listed in descending order of
      * update time. The maximum number of states retained is 10. If this
@@ -634,17 +701,18 @@ public Builder setNumStates(int value) {
      * 
* * int32 num_states = 2; + * * @return This builder for chaining. */ public Builder clearNumStates() { - + numStates_ = 0; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -654,12 +722,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.iot.v1.ListDeviceStatesRequest) } // @@protoc_insertion_point(class_scope:google.cloud.iot.v1.ListDeviceStatesRequest) private static final com.google.cloud.iot.v1.ListDeviceStatesRequest DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.iot.v1.ListDeviceStatesRequest(); } @@ -668,16 +736,16 @@ public static com.google.cloud.iot.v1.ListDeviceStatesRequest getDefaultInstance return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListDeviceStatesRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ListDeviceStatesRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListDeviceStatesRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ListDeviceStatesRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -692,6 +760,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.iot.v1.ListDeviceStatesRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1/proto-google-cloud-iot-v1/src/main/java/com/google/cloud/iot/v1/ListDeviceStatesRequestOrBuilder.java b/proto-google-cloud-iot-v1/src/main/java/com/google/cloud/iot/v1/ListDeviceStatesRequestOrBuilder.java similarity index 54% rename from owl-bot-staging/v1/proto-google-cloud-iot-v1/src/main/java/com/google/cloud/iot/v1/ListDeviceStatesRequestOrBuilder.java rename to proto-google-cloud-iot-v1/src/main/java/com/google/cloud/iot/v1/ListDeviceStatesRequestOrBuilder.java index b19cd7fb..dd4137a8 100644 --- a/owl-bot-staging/v1/proto-google-cloud-iot-v1/src/main/java/com/google/cloud/iot/v1/ListDeviceStatesRequestOrBuilder.java +++ b/proto-google-cloud-iot-v1/src/main/java/com/google/cloud/iot/v1/ListDeviceStatesRequestOrBuilder.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/iot/v1/device_manager.proto package com.google.cloud.iot.v1; -public interface ListDeviceStatesRequestOrBuilder extends +public interface ListDeviceStatesRequestOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.iot.v1.ListDeviceStatesRequest) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Required. The name of the device. For example,
    * `projects/p0/locations/us-central1/registries/registry0/devices/device0` or
    * `projects/p0/locations/us-central1/registries/registry0/devices/{num_id}`.
    * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The name. */ java.lang.String getName(); /** + * + * *
    * Required. The name of the device. For example,
    * `projects/p0/locations/us-central1/registries/registry0/devices/device0` or
    * `projects/p0/locations/us-central1/registries/registry0/devices/{num_id}`.
    * 
* - * string name = 1 [(.google.api.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(); /** + * + * *
    * The number of states to list. States are listed in descending order of
    * update time. The maximum number of states retained is 10. If this
@@ -39,6 +66,7 @@ public interface ListDeviceStatesRequestOrBuilder extends
    * 
* * int32 num_states = 2; + * * @return The numStates. */ int getNumStates(); diff --git a/owl-bot-staging/v1/proto-google-cloud-iot-v1/src/main/java/com/google/cloud/iot/v1/ListDeviceStatesResponse.java b/proto-google-cloud-iot-v1/src/main/java/com/google/cloud/iot/v1/ListDeviceStatesResponse.java similarity index 75% rename from owl-bot-staging/v1/proto-google-cloud-iot-v1/src/main/java/com/google/cloud/iot/v1/ListDeviceStatesResponse.java rename to proto-google-cloud-iot-v1/src/main/java/com/google/cloud/iot/v1/ListDeviceStatesResponse.java index dac0f630..be6ed6db 100644 --- a/owl-bot-staging/v1/proto-google-cloud-iot-v1/src/main/java/com/google/cloud/iot/v1/ListDeviceStatesResponse.java +++ b/proto-google-cloud-iot-v1/src/main/java/com/google/cloud/iot/v1/ListDeviceStatesResponse.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/iot/v1/device_manager.proto package com.google.cloud.iot.v1; /** + * + * *
  * Response for `ListDeviceStates`.
  * 
* * Protobuf type {@code google.cloud.iot.v1.ListDeviceStatesResponse} */ -public final class ListDeviceStatesResponse extends - com.google.protobuf.GeneratedMessageV3 implements +public final class ListDeviceStatesResponse extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.iot.v1.ListDeviceStatesResponse) ListDeviceStatesResponseOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use ListDeviceStatesResponse.newBuilder() to construct. private ListDeviceStatesResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private ListDeviceStatesResponse() { deviceStates_ = java.util.Collections.emptyList(); } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new ListDeviceStatesResponse(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private ListDeviceStatesResponse( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -54,22 +71,24 @@ private ListDeviceStatesResponse( case 0: done = true; break; - case 10: { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - deviceStates_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; + case 10: + { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + deviceStates_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; + } + deviceStates_.add( + input.readMessage( + com.google.cloud.iot.v1.DeviceState.parser(), extensionRegistry)); + break; } - deviceStates_.add( - input.readMessage(com.google.cloud.iot.v1.DeviceState.parser(), extensionRegistry)); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -77,8 +96,7 @@ private ListDeviceStatesResponse( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } 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)) { deviceStates_ = java.util.Collections.unmodifiableList(deviceStates_); @@ -87,22 +105,27 @@ private ListDeviceStatesResponse( makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.iot.v1.DeviceManagerProto.internal_static_google_cloud_iot_v1_ListDeviceStatesResponse_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.iot.v1.DeviceManagerProto + .internal_static_google_cloud_iot_v1_ListDeviceStatesResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.iot.v1.DeviceManagerProto.internal_static_google_cloud_iot_v1_ListDeviceStatesResponse_fieldAccessorTable + return com.google.cloud.iot.v1.DeviceManagerProto + .internal_static_google_cloud_iot_v1_ListDeviceStatesResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.iot.v1.ListDeviceStatesResponse.class, com.google.cloud.iot.v1.ListDeviceStatesResponse.Builder.class); + com.google.cloud.iot.v1.ListDeviceStatesResponse.class, + com.google.cloud.iot.v1.ListDeviceStatesResponse.Builder.class); } public static final int DEVICE_STATES_FIELD_NUMBER = 1; private java.util.List deviceStates_; /** + * + * *
    * The last few device states. States are listed in descending order of server
    * update time, starting from the most recent one.
@@ -115,6 +138,8 @@ public java.util.List getDeviceStatesList()
     return deviceStates_;
   }
   /**
+   *
+   *
    * 
    * The last few device states. States are listed in descending order of server
    * update time, starting from the most recent one.
@@ -123,11 +148,13 @@ public java.util.List getDeviceStatesList()
    * repeated .google.cloud.iot.v1.DeviceState device_states = 1;
    */
   @java.lang.Override
-  public java.util.List 
+  public java.util.List
       getDeviceStatesOrBuilderList() {
     return deviceStates_;
   }
   /**
+   *
+   *
    * 
    * The last few device states. States are listed in descending order of server
    * update time, starting from the most recent one.
@@ -140,6 +167,8 @@ public int getDeviceStatesCount() {
     return deviceStates_.size();
   }
   /**
+   *
+   *
    * 
    * The last few device states. States are listed in descending order of server
    * update time, starting from the most recent one.
@@ -152,6 +181,8 @@ public com.google.cloud.iot.v1.DeviceState getDeviceStates(int index) {
     return deviceStates_.get(index);
   }
   /**
+   *
+   *
    * 
    * The last few device states. States are listed in descending order of server
    * update time, starting from the most recent one.
@@ -160,12 +191,12 @@ public com.google.cloud.iot.v1.DeviceState getDeviceStates(int index) {
    * repeated .google.cloud.iot.v1.DeviceState device_states = 1;
    */
   @java.lang.Override
-  public com.google.cloud.iot.v1.DeviceStateOrBuilder getDeviceStatesOrBuilder(
-      int index) {
+  public com.google.cloud.iot.v1.DeviceStateOrBuilder getDeviceStatesOrBuilder(int index) {
     return deviceStates_.get(index);
   }
 
   private byte memoizedIsInitialized = -1;
+
   @java.lang.Override
   public final boolean isInitialized() {
     byte isInitialized = memoizedIsInitialized;
@@ -177,8 +208,7 @@ public final boolean isInitialized() {
   }
 
   @java.lang.Override
-  public void writeTo(com.google.protobuf.CodedOutputStream output)
-                      throws java.io.IOException {
+  public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
     for (int i = 0; i < deviceStates_.size(); i++) {
       output.writeMessage(1, deviceStates_.get(i));
     }
@@ -192,8 +222,7 @@ public int getSerializedSize() {
 
     size = 0;
     for (int i = 0; i < deviceStates_.size(); i++) {
-      size += com.google.protobuf.CodedOutputStream
-        .computeMessageSize(1, deviceStates_.get(i));
+      size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, deviceStates_.get(i));
     }
     size += unknownFields.getSerializedSize();
     memoizedSize = size;
@@ -203,15 +232,15 @@ public int getSerializedSize() {
   @java.lang.Override
   public boolean equals(final java.lang.Object obj) {
     if (obj == this) {
-     return true;
+      return true;
     }
     if (!(obj instanceof com.google.cloud.iot.v1.ListDeviceStatesResponse)) {
       return super.equals(obj);
     }
-    com.google.cloud.iot.v1.ListDeviceStatesResponse other = (com.google.cloud.iot.v1.ListDeviceStatesResponse) obj;
+    com.google.cloud.iot.v1.ListDeviceStatesResponse other =
+        (com.google.cloud.iot.v1.ListDeviceStatesResponse) obj;
 
-    if (!getDeviceStatesList()
-        .equals(other.getDeviceStatesList())) return false;
+    if (!getDeviceStatesList().equals(other.getDeviceStatesList())) return false;
     if (!unknownFields.equals(other.unknownFields)) return false;
     return true;
   }
@@ -232,118 +261,127 @@ public int hashCode() {
     return hash;
   }
 
-  public static com.google.cloud.iot.v1.ListDeviceStatesResponse parseFrom(
-      java.nio.ByteBuffer data)
+  public static com.google.cloud.iot.v1.ListDeviceStatesResponse parseFrom(java.nio.ByteBuffer data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
+
   public static com.google.cloud.iot.v1.ListDeviceStatesResponse parseFrom(
-      java.nio.ByteBuffer data,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
+
   public static com.google.cloud.iot.v1.ListDeviceStatesResponse parseFrom(
       com.google.protobuf.ByteString data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
+
   public static com.google.cloud.iot.v1.ListDeviceStatesResponse parseFrom(
       com.google.protobuf.ByteString data,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
+
   public static com.google.cloud.iot.v1.ListDeviceStatesResponse parseFrom(byte[] data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
+
   public static com.google.cloud.iot.v1.ListDeviceStatesResponse parseFrom(
-      byte[] data,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-  public static com.google.cloud.iot.v1.ListDeviceStatesResponse parseFrom(java.io.InputStream input)
-      throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input);
+
+  public static com.google.cloud.iot.v1.ListDeviceStatesResponse parseFrom(
+      java.io.InputStream input) throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
   }
+
   public static com.google.cloud.iot.v1.ListDeviceStatesResponse parseFrom(
-      java.io.InputStream input,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
+        PARSER, input, extensionRegistry);
   }
-  public static com.google.cloud.iot.v1.ListDeviceStatesResponse parseDelimitedFrom(java.io.InputStream input)
-      throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseDelimitedWithIOException(PARSER, input);
+
+  public static com.google.cloud.iot.v1.ListDeviceStatesResponse parseDelimitedFrom(
+      java.io.InputStream input) throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
   }
+
   public static com.google.cloud.iot.v1.ListDeviceStatesResponse parseDelimitedFrom(
-      java.io.InputStream input,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
+        PARSER, input, extensionRegistry);
   }
+
   public static com.google.cloud.iot.v1.ListDeviceStatesResponse parseFrom(
-      com.google.protobuf.CodedInputStream input)
-      throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input);
+      com.google.protobuf.CodedInputStream input) throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
   }
+
   public static com.google.cloud.iot.v1.ListDeviceStatesResponse parseFrom(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
+        PARSER, input, extensionRegistry);
   }
 
   @java.lang.Override
-  public Builder newBuilderForType() { return newBuilder(); }
+  public Builder newBuilderForType() {
+    return newBuilder();
+  }
+
   public static Builder newBuilder() {
     return DEFAULT_INSTANCE.toBuilder();
   }
+
   public static Builder newBuilder(com.google.cloud.iot.v1.ListDeviceStatesResponse prototype) {
     return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
   }
+
   @java.lang.Override
   public Builder toBuilder() {
-    return this == DEFAULT_INSTANCE
-        ? new Builder() : new Builder().mergeFrom(this);
+    return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
   }
 
   @java.lang.Override
-  protected 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 `ListDeviceStates`.
    * 
* * Protobuf type {@code google.cloud.iot.v1.ListDeviceStatesResponse} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.iot.v1.ListDeviceStatesResponse) com.google.cloud.iot.v1.ListDeviceStatesResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.iot.v1.DeviceManagerProto.internal_static_google_cloud_iot_v1_ListDeviceStatesResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.iot.v1.DeviceManagerProto + .internal_static_google_cloud_iot_v1_ListDeviceStatesResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.iot.v1.DeviceManagerProto.internal_static_google_cloud_iot_v1_ListDeviceStatesResponse_fieldAccessorTable + return com.google.cloud.iot.v1.DeviceManagerProto + .internal_static_google_cloud_iot_v1_ListDeviceStatesResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.iot.v1.ListDeviceStatesResponse.class, com.google.cloud.iot.v1.ListDeviceStatesResponse.Builder.class); + com.google.cloud.iot.v1.ListDeviceStatesResponse.class, + com.google.cloud.iot.v1.ListDeviceStatesResponse.Builder.class); } // Construct using com.google.cloud.iot.v1.ListDeviceStatesResponse.newBuilder() @@ -351,17 +389,17 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { getDeviceStatesFieldBuilder(); } } + @java.lang.Override public Builder clear() { super.clear(); @@ -375,9 +413,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.iot.v1.DeviceManagerProto.internal_static_google_cloud_iot_v1_ListDeviceStatesResponse_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.iot.v1.DeviceManagerProto + .internal_static_google_cloud_iot_v1_ListDeviceStatesResponse_descriptor; } @java.lang.Override @@ -396,7 +434,8 @@ public com.google.cloud.iot.v1.ListDeviceStatesResponse build() { @java.lang.Override public com.google.cloud.iot.v1.ListDeviceStatesResponse buildPartial() { - com.google.cloud.iot.v1.ListDeviceStatesResponse result = new com.google.cloud.iot.v1.ListDeviceStatesResponse(this); + com.google.cloud.iot.v1.ListDeviceStatesResponse result = + new com.google.cloud.iot.v1.ListDeviceStatesResponse(this); int from_bitField0_ = bitField0_; if (deviceStatesBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { @@ -415,38 +454,39 @@ public com.google.cloud.iot.v1.ListDeviceStatesResponse buildPartial() { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.iot.v1.ListDeviceStatesResponse) { - return mergeFrom((com.google.cloud.iot.v1.ListDeviceStatesResponse)other); + return mergeFrom((com.google.cloud.iot.v1.ListDeviceStatesResponse) other); } else { super.mergeFrom(other); return this; @@ -454,7 +494,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.iot.v1.ListDeviceStatesResponse other) { - if (other == com.google.cloud.iot.v1.ListDeviceStatesResponse.getDefaultInstance()) return this; + if (other == com.google.cloud.iot.v1.ListDeviceStatesResponse.getDefaultInstance()) + return this; if (deviceStatesBuilder_ == null) { if (!other.deviceStates_.isEmpty()) { if (deviceStates_.isEmpty()) { @@ -473,9 +514,10 @@ public Builder mergeFrom(com.google.cloud.iot.v1.ListDeviceStatesResponse other) deviceStatesBuilder_ = null; deviceStates_ = other.deviceStates_; bitField0_ = (bitField0_ & ~0x00000001); - deviceStatesBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getDeviceStatesFieldBuilder() : null; + deviceStatesBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getDeviceStatesFieldBuilder() + : null; } else { deviceStatesBuilder_.addAllMessages(other.deviceStates_); } @@ -509,21 +551,28 @@ public Builder mergeFrom( } return this; } + private int bitField0_; private java.util.List deviceStates_ = - java.util.Collections.emptyList(); + java.util.Collections.emptyList(); + private void ensureDeviceStatesIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { deviceStates_ = new java.util.ArrayList(deviceStates_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.iot.v1.DeviceState, com.google.cloud.iot.v1.DeviceState.Builder, com.google.cloud.iot.v1.DeviceStateOrBuilder> deviceStatesBuilder_; + com.google.cloud.iot.v1.DeviceState, + com.google.cloud.iot.v1.DeviceState.Builder, + com.google.cloud.iot.v1.DeviceStateOrBuilder> + deviceStatesBuilder_; /** + * + * *
      * The last few device states. States are listed in descending order of server
      * update time, starting from the most recent one.
@@ -539,6 +588,8 @@ public java.util.List getDeviceStatesList()
       }
     }
     /**
+     *
+     *
      * 
      * The last few device states. States are listed in descending order of server
      * update time, starting from the most recent one.
@@ -554,6 +605,8 @@ public int getDeviceStatesCount() {
       }
     }
     /**
+     *
+     *
      * 
      * The last few device states. States are listed in descending order of server
      * update time, starting from the most recent one.
@@ -569,6 +622,8 @@ public com.google.cloud.iot.v1.DeviceState getDeviceStates(int index) {
       }
     }
     /**
+     *
+     *
      * 
      * The last few device states. States are listed in descending order of server
      * update time, starting from the most recent one.
@@ -576,8 +631,7 @@ public com.google.cloud.iot.v1.DeviceState getDeviceStates(int index) {
      *
      * repeated .google.cloud.iot.v1.DeviceState device_states = 1;
      */
-    public Builder setDeviceStates(
-        int index, com.google.cloud.iot.v1.DeviceState value) {
+    public Builder setDeviceStates(int index, com.google.cloud.iot.v1.DeviceState value) {
       if (deviceStatesBuilder_ == null) {
         if (value == null) {
           throw new NullPointerException();
@@ -591,6 +645,8 @@ public Builder setDeviceStates(
       return this;
     }
     /**
+     *
+     *
      * 
      * The last few device states. States are listed in descending order of server
      * update time, starting from the most recent one.
@@ -610,6 +666,8 @@ public Builder setDeviceStates(
       return this;
     }
     /**
+     *
+     *
      * 
      * The last few device states. States are listed in descending order of server
      * update time, starting from the most recent one.
@@ -631,6 +689,8 @@ public Builder addDeviceStates(com.google.cloud.iot.v1.DeviceState value) {
       return this;
     }
     /**
+     *
+     *
      * 
      * The last few device states. States are listed in descending order of server
      * update time, starting from the most recent one.
@@ -638,8 +698,7 @@ public Builder addDeviceStates(com.google.cloud.iot.v1.DeviceState value) {
      *
      * repeated .google.cloud.iot.v1.DeviceState device_states = 1;
      */
-    public Builder addDeviceStates(
-        int index, com.google.cloud.iot.v1.DeviceState value) {
+    public Builder addDeviceStates(int index, com.google.cloud.iot.v1.DeviceState value) {
       if (deviceStatesBuilder_ == null) {
         if (value == null) {
           throw new NullPointerException();
@@ -653,6 +712,8 @@ public Builder addDeviceStates(
       return this;
     }
     /**
+     *
+     *
      * 
      * The last few device states. States are listed in descending order of server
      * update time, starting from the most recent one.
@@ -660,8 +721,7 @@ public Builder addDeviceStates(
      *
      * repeated .google.cloud.iot.v1.DeviceState device_states = 1;
      */
-    public Builder addDeviceStates(
-        com.google.cloud.iot.v1.DeviceState.Builder builderForValue) {
+    public Builder addDeviceStates(com.google.cloud.iot.v1.DeviceState.Builder builderForValue) {
       if (deviceStatesBuilder_ == null) {
         ensureDeviceStatesIsMutable();
         deviceStates_.add(builderForValue.build());
@@ -672,6 +732,8 @@ public Builder addDeviceStates(
       return this;
     }
     /**
+     *
+     *
      * 
      * The last few device states. States are listed in descending order of server
      * update time, starting from the most recent one.
@@ -691,6 +753,8 @@ public Builder addDeviceStates(
       return this;
     }
     /**
+     *
+     *
      * 
      * The last few device states. States are listed in descending order of server
      * update time, starting from the most recent one.
@@ -702,8 +766,7 @@ public Builder addAllDeviceStates(
         java.lang.Iterable values) {
       if (deviceStatesBuilder_ == null) {
         ensureDeviceStatesIsMutable();
-        com.google.protobuf.AbstractMessageLite.Builder.addAll(
-            values, deviceStates_);
+        com.google.protobuf.AbstractMessageLite.Builder.addAll(values, deviceStates_);
         onChanged();
       } else {
         deviceStatesBuilder_.addAllMessages(values);
@@ -711,6 +774,8 @@ public Builder addAllDeviceStates(
       return this;
     }
     /**
+     *
+     *
      * 
      * The last few device states. States are listed in descending order of server
      * update time, starting from the most recent one.
@@ -729,6 +794,8 @@ public Builder clearDeviceStates() {
       return this;
     }
     /**
+     *
+     *
      * 
      * The last few device states. States are listed in descending order of server
      * update time, starting from the most recent one.
@@ -747,6 +814,8 @@ public Builder removeDeviceStates(int index) {
       return this;
     }
     /**
+     *
+     *
      * 
      * The last few device states. States are listed in descending order of server
      * update time, starting from the most recent one.
@@ -754,11 +823,12 @@ public Builder removeDeviceStates(int index) {
      *
      * repeated .google.cloud.iot.v1.DeviceState device_states = 1;
      */
-    public com.google.cloud.iot.v1.DeviceState.Builder getDeviceStatesBuilder(
-        int index) {
+    public com.google.cloud.iot.v1.DeviceState.Builder getDeviceStatesBuilder(int index) {
       return getDeviceStatesFieldBuilder().getBuilder(index);
     }
     /**
+     *
+     *
      * 
      * The last few device states. States are listed in descending order of server
      * update time, starting from the most recent one.
@@ -766,14 +836,16 @@ public com.google.cloud.iot.v1.DeviceState.Builder getDeviceStatesBuilder(
      *
      * repeated .google.cloud.iot.v1.DeviceState device_states = 1;
      */
-    public com.google.cloud.iot.v1.DeviceStateOrBuilder getDeviceStatesOrBuilder(
-        int index) {
+    public com.google.cloud.iot.v1.DeviceStateOrBuilder getDeviceStatesOrBuilder(int index) {
       if (deviceStatesBuilder_ == null) {
-        return deviceStates_.get(index);  } else {
+        return deviceStates_.get(index);
+      } else {
         return deviceStatesBuilder_.getMessageOrBuilder(index);
       }
     }
     /**
+     *
+     *
      * 
      * The last few device states. States are listed in descending order of server
      * update time, starting from the most recent one.
@@ -781,8 +853,8 @@ public com.google.cloud.iot.v1.DeviceStateOrBuilder getDeviceStatesOrBuilder(
      *
      * repeated .google.cloud.iot.v1.DeviceState device_states = 1;
      */
-    public java.util.List 
-         getDeviceStatesOrBuilderList() {
+    public java.util.List
+        getDeviceStatesOrBuilderList() {
       if (deviceStatesBuilder_ != null) {
         return deviceStatesBuilder_.getMessageOrBuilderList();
       } else {
@@ -790,6 +862,8 @@ public com.google.cloud.iot.v1.DeviceStateOrBuilder getDeviceStatesOrBuilder(
       }
     }
     /**
+     *
+     *
      * 
      * The last few device states. States are listed in descending order of server
      * update time, starting from the most recent one.
@@ -798,10 +872,12 @@ public com.google.cloud.iot.v1.DeviceStateOrBuilder getDeviceStatesOrBuilder(
      * repeated .google.cloud.iot.v1.DeviceState device_states = 1;
      */
     public com.google.cloud.iot.v1.DeviceState.Builder addDeviceStatesBuilder() {
-      return getDeviceStatesFieldBuilder().addBuilder(
-          com.google.cloud.iot.v1.DeviceState.getDefaultInstance());
+      return getDeviceStatesFieldBuilder()
+          .addBuilder(com.google.cloud.iot.v1.DeviceState.getDefaultInstance());
     }
     /**
+     *
+     *
      * 
      * The last few device states. States are listed in descending order of server
      * update time, starting from the most recent one.
@@ -809,12 +885,13 @@ public com.google.cloud.iot.v1.DeviceState.Builder addDeviceStatesBuilder() {
      *
      * repeated .google.cloud.iot.v1.DeviceState device_states = 1;
      */
-    public com.google.cloud.iot.v1.DeviceState.Builder addDeviceStatesBuilder(
-        int index) {
-      return getDeviceStatesFieldBuilder().addBuilder(
-          index, com.google.cloud.iot.v1.DeviceState.getDefaultInstance());
+    public com.google.cloud.iot.v1.DeviceState.Builder addDeviceStatesBuilder(int index) {
+      return getDeviceStatesFieldBuilder()
+          .addBuilder(index, com.google.cloud.iot.v1.DeviceState.getDefaultInstance());
     }
     /**
+     *
+     *
      * 
      * The last few device states. States are listed in descending order of server
      * update time, starting from the most recent one.
@@ -822,27 +899,30 @@ public com.google.cloud.iot.v1.DeviceState.Builder addDeviceStatesBuilder(
      *
      * repeated .google.cloud.iot.v1.DeviceState device_states = 1;
      */
-    public java.util.List 
-         getDeviceStatesBuilderList() {
+    public java.util.List
+        getDeviceStatesBuilderList() {
       return getDeviceStatesFieldBuilder().getBuilderList();
     }
+
     private com.google.protobuf.RepeatedFieldBuilderV3<
-        com.google.cloud.iot.v1.DeviceState, com.google.cloud.iot.v1.DeviceState.Builder, com.google.cloud.iot.v1.DeviceStateOrBuilder> 
+            com.google.cloud.iot.v1.DeviceState,
+            com.google.cloud.iot.v1.DeviceState.Builder,
+            com.google.cloud.iot.v1.DeviceStateOrBuilder>
         getDeviceStatesFieldBuilder() {
       if (deviceStatesBuilder_ == null) {
-        deviceStatesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
-            com.google.cloud.iot.v1.DeviceState, com.google.cloud.iot.v1.DeviceState.Builder, com.google.cloud.iot.v1.DeviceStateOrBuilder>(
-                deviceStates_,
-                ((bitField0_ & 0x00000001) != 0),
-                getParentForChildren(),
-                isClean());
+        deviceStatesBuilder_ =
+            new com.google.protobuf.RepeatedFieldBuilderV3<
+                com.google.cloud.iot.v1.DeviceState,
+                com.google.cloud.iot.v1.DeviceState.Builder,
+                com.google.cloud.iot.v1.DeviceStateOrBuilder>(
+                deviceStates_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean());
         deviceStates_ = null;
       }
       return deviceStatesBuilder_;
     }
+
     @java.lang.Override
-    public final Builder setUnknownFields(
-        final com.google.protobuf.UnknownFieldSet unknownFields) {
+    public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) {
       return super.setUnknownFields(unknownFields);
     }
 
@@ -852,12 +932,12 @@ public final Builder mergeUnknownFields(
       return super.mergeUnknownFields(unknownFields);
     }
 
-
     // @@protoc_insertion_point(builder_scope:google.cloud.iot.v1.ListDeviceStatesResponse)
   }
 
   // @@protoc_insertion_point(class_scope:google.cloud.iot.v1.ListDeviceStatesResponse)
   private static final com.google.cloud.iot.v1.ListDeviceStatesResponse DEFAULT_INSTANCE;
+
   static {
     DEFAULT_INSTANCE = new com.google.cloud.iot.v1.ListDeviceStatesResponse();
   }
@@ -866,16 +946,16 @@ public static com.google.cloud.iot.v1.ListDeviceStatesResponse getDefaultInstanc
     return DEFAULT_INSTANCE;
   }
 
-  private static final com.google.protobuf.Parser
-      PARSER = new com.google.protobuf.AbstractParser() {
-    @java.lang.Override
-    public ListDeviceStatesResponse parsePartialFrom(
-        com.google.protobuf.CodedInputStream input,
-        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
-        throws com.google.protobuf.InvalidProtocolBufferException {
-      return new ListDeviceStatesResponse(input, extensionRegistry);
-    }
-  };
+  private static final com.google.protobuf.Parser PARSER =
+      new com.google.protobuf.AbstractParser() {
+        @java.lang.Override
+        public ListDeviceStatesResponse parsePartialFrom(
+            com.google.protobuf.CodedInputStream input,
+            com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+            throws com.google.protobuf.InvalidProtocolBufferException {
+          return new ListDeviceStatesResponse(input, extensionRegistry);
+        }
+      };
 
   public static com.google.protobuf.Parser parser() {
     return PARSER;
@@ -890,6 +970,4 @@ public com.google.protobuf.Parser getParserForType() {
   public com.google.cloud.iot.v1.ListDeviceStatesResponse getDefaultInstanceForType() {
     return DEFAULT_INSTANCE;
   }
-
 }
-
diff --git a/owl-bot-staging/v1/proto-google-cloud-iot-v1/src/main/java/com/google/cloud/iot/v1/ListDeviceStatesResponseOrBuilder.java b/proto-google-cloud-iot-v1/src/main/java/com/google/cloud/iot/v1/ListDeviceStatesResponseOrBuilder.java
similarity index 69%
rename from owl-bot-staging/v1/proto-google-cloud-iot-v1/src/main/java/com/google/cloud/iot/v1/ListDeviceStatesResponseOrBuilder.java
rename to proto-google-cloud-iot-v1/src/main/java/com/google/cloud/iot/v1/ListDeviceStatesResponseOrBuilder.java
index a409f7de..90f12b2f 100644
--- a/owl-bot-staging/v1/proto-google-cloud-iot-v1/src/main/java/com/google/cloud/iot/v1/ListDeviceStatesResponseOrBuilder.java
+++ b/proto-google-cloud-iot-v1/src/main/java/com/google/cloud/iot/v1/ListDeviceStatesResponseOrBuilder.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/iot/v1/device_manager.proto
 
 package com.google.cloud.iot.v1;
 
-public interface ListDeviceStatesResponseOrBuilder extends
+public interface ListDeviceStatesResponseOrBuilder
+    extends
     // @@protoc_insertion_point(interface_extends:google.cloud.iot.v1.ListDeviceStatesResponse)
     com.google.protobuf.MessageOrBuilder {
 
   /**
+   *
+   *
    * 
    * The last few device states. States are listed in descending order of server
    * update time, starting from the most recent one.
@@ -15,9 +33,10 @@ public interface ListDeviceStatesResponseOrBuilder extends
    *
    * repeated .google.cloud.iot.v1.DeviceState device_states = 1;
    */
-  java.util.List 
-      getDeviceStatesList();
+  java.util.List getDeviceStatesList();
   /**
+   *
+   *
    * 
    * The last few device states. States are listed in descending order of server
    * update time, starting from the most recent one.
@@ -27,6 +46,8 @@ public interface ListDeviceStatesResponseOrBuilder extends
    */
   com.google.cloud.iot.v1.DeviceState getDeviceStates(int index);
   /**
+   *
+   *
    * 
    * The last few device states. States are listed in descending order of server
    * update time, starting from the most recent one.
@@ -36,6 +57,8 @@ public interface ListDeviceStatesResponseOrBuilder extends
    */
   int getDeviceStatesCount();
   /**
+   *
+   *
    * 
    * The last few device states. States are listed in descending order of server
    * update time, starting from the most recent one.
@@ -43,9 +66,11 @@ public interface ListDeviceStatesResponseOrBuilder extends
    *
    * repeated .google.cloud.iot.v1.DeviceState device_states = 1;
    */
-  java.util.List 
+  java.util.List
       getDeviceStatesOrBuilderList();
   /**
+   *
+   *
    * 
    * The last few device states. States are listed in descending order of server
    * update time, starting from the most recent one.
@@ -53,6 +78,5 @@ public interface ListDeviceStatesResponseOrBuilder extends
    *
    * repeated .google.cloud.iot.v1.DeviceState device_states = 1;
    */
-  com.google.cloud.iot.v1.DeviceStateOrBuilder getDeviceStatesOrBuilder(
-      int index);
+  com.google.cloud.iot.v1.DeviceStateOrBuilder getDeviceStatesOrBuilder(int index);
 }
diff --git a/owl-bot-staging/v1/proto-google-cloud-iot-v1/src/main/java/com/google/cloud/iot/v1/ListDevicesRequest.java b/proto-google-cloud-iot-v1/src/main/java/com/google/cloud/iot/v1/ListDevicesRequest.java
similarity index 74%
rename from owl-bot-staging/v1/proto-google-cloud-iot-v1/src/main/java/com/google/cloud/iot/v1/ListDevicesRequest.java
rename to proto-google-cloud-iot-v1/src/main/java/com/google/cloud/iot/v1/ListDevicesRequest.java
index 7b917f69..75a79aeb 100644
--- a/owl-bot-staging/v1/proto-google-cloud-iot-v1/src/main/java/com/google/cloud/iot/v1/ListDevicesRequest.java
+++ b/proto-google-cloud-iot-v1/src/main/java/com/google/cloud/iot/v1/ListDevicesRequest.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/iot/v1/device_manager.proto
 
 package com.google.cloud.iot.v1;
 
 /**
+ *
+ *
  * 
  * Request for `ListDevices`.
  * 
* * Protobuf type {@code google.cloud.iot.v1.ListDevicesRequest} */ -public final class ListDevicesRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class ListDevicesRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.iot.v1.ListDevicesRequest) ListDevicesRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use ListDevicesRequest.newBuilder() to construct. private ListDevicesRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private ListDevicesRequest() { parent_ = ""; deviceNumIds_ = emptyLongList(); @@ -28,16 +46,15 @@ private ListDevicesRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new ListDevicesRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private ListDevicesRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -57,86 +74,96 @@ private ListDevicesRequest( 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: { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - deviceNumIds_ = newLongList(); - mutable_bitField0_ |= 0x00000001; + parent_ = s; + break; } - deviceNumIds_.addLong(input.readUInt64()); - break; - } - case 18: { - int length = input.readRawVarint32(); - int limit = input.pushLimit(length); - if (!((mutable_bitField0_ & 0x00000001) != 0) && input.getBytesUntilLimit() > 0) { - deviceNumIds_ = newLongList(); - mutable_bitField0_ |= 0x00000001; - } - while (input.getBytesUntilLimit() > 0) { + case 16: + { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + deviceNumIds_ = newLongList(); + mutable_bitField0_ |= 0x00000001; + } deviceNumIds_.addLong(input.readUInt64()); + break; } - input.popLimit(limit); - break; - } - case 26: { - java.lang.String s = input.readStringRequireUtf8(); - if (!((mutable_bitField0_ & 0x00000002) != 0)) { - deviceIds_ = new com.google.protobuf.LazyStringArrayList(); - mutable_bitField0_ |= 0x00000002; + case 18: + { + int length = input.readRawVarint32(); + int limit = input.pushLimit(length); + if (!((mutable_bitField0_ & 0x00000001) != 0) && input.getBytesUntilLimit() > 0) { + deviceNumIds_ = newLongList(); + mutable_bitField0_ |= 0x00000001; + } + while (input.getBytesUntilLimit() > 0) { + deviceNumIds_.addLong(input.readUInt64()); + } + input.popLimit(limit); + break; } - deviceIds_.add(s); - break; - } - case 34: { - com.google.protobuf.FieldMask.Builder subBuilder = null; - if (fieldMask_ != null) { - subBuilder = fieldMask_.toBuilder(); + case 26: + { + java.lang.String s = input.readStringRequireUtf8(); + if (!((mutable_bitField0_ & 0x00000002) != 0)) { + deviceIds_ = new com.google.protobuf.LazyStringArrayList(); + mutable_bitField0_ |= 0x00000002; + } + deviceIds_.add(s); + break; } - fieldMask_ = input.readMessage(com.google.protobuf.FieldMask.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(fieldMask_); - fieldMask_ = subBuilder.buildPartial(); + case 34: + { + com.google.protobuf.FieldMask.Builder subBuilder = null; + if (fieldMask_ != null) { + subBuilder = fieldMask_.toBuilder(); + } + fieldMask_ = + input.readMessage(com.google.protobuf.FieldMask.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(fieldMask_); + fieldMask_ = subBuilder.buildPartial(); + } + + break; } - - break; - } - case 50: { - com.google.cloud.iot.v1.GatewayListOptions.Builder subBuilder = null; - if (gatewayListOptions_ != null) { - subBuilder = gatewayListOptions_.toBuilder(); + case 50: + { + com.google.cloud.iot.v1.GatewayListOptions.Builder subBuilder = null; + if (gatewayListOptions_ != null) { + subBuilder = gatewayListOptions_.toBuilder(); + } + gatewayListOptions_ = + input.readMessage( + com.google.cloud.iot.v1.GatewayListOptions.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(gatewayListOptions_); + gatewayListOptions_ = subBuilder.buildPartial(); + } + + break; } - gatewayListOptions_ = input.readMessage(com.google.cloud.iot.v1.GatewayListOptions.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(gatewayListOptions_); - gatewayListOptions_ = subBuilder.buildPartial(); + case 800: + { + pageSize_ = input.readInt32(); + break; } + case 810: + { + java.lang.String s = input.readStringRequireUtf8(); - break; - } - case 800: { - - pageSize_ = input.readInt32(); - break; - } - case 810: { - java.lang.String s = input.readStringRequireUtf8(); - - pageToken_ = s; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + pageToken_ = s; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -144,8 +171,7 @@ private ListDevicesRequest( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } 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)) { deviceNumIds_.makeImmutable(); // C @@ -157,28 +183,36 @@ private ListDevicesRequest( makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.iot.v1.DeviceManagerProto.internal_static_google_cloud_iot_v1_ListDevicesRequest_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.iot.v1.DeviceManagerProto + .internal_static_google_cloud_iot_v1_ListDevicesRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.iot.v1.DeviceManagerProto.internal_static_google_cloud_iot_v1_ListDevicesRequest_fieldAccessorTable + return com.google.cloud.iot.v1.DeviceManagerProto + .internal_static_google_cloud_iot_v1_ListDevicesRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.iot.v1.ListDevicesRequest.class, com.google.cloud.iot.v1.ListDevicesRequest.Builder.class); + com.google.cloud.iot.v1.ListDevicesRequest.class, + com.google.cloud.iot.v1.ListDevicesRequest.Builder.class); } public static final int PARENT_FIELD_NUMBER = 1; private volatile java.lang.Object parent_; /** + * + * *
    * Required. The device registry path. Required. For example,
    * `projects/my-project/locations/us-central1/registries/my-registry`.
    * 
* - * string parent = 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 @@ -187,30 +221,32 @@ public java.lang.String getParent() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; } } /** + * + * *
    * Required. The device registry path. Required. For example,
    * `projects/my-project/locations/us-central1/registries/my-registry`.
    * 
* - * string parent = 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 { @@ -221,80 +257,97 @@ public java.lang.String getParent() { public static final int DEVICE_NUM_IDS_FIELD_NUMBER = 2; private com.google.protobuf.Internal.LongList deviceNumIds_; /** + * + * *
    * A list of device numeric IDs. If empty, this field is ignored. Maximum
    * IDs: 10,000.
    * 
* * repeated uint64 device_num_ids = 2; + * * @return A list containing the deviceNumIds. */ @java.lang.Override - public java.util.List - getDeviceNumIdsList() { + public java.util.List getDeviceNumIdsList() { return deviceNumIds_; } /** + * + * *
    * A list of device numeric IDs. If empty, this field is ignored. Maximum
    * IDs: 10,000.
    * 
* * repeated uint64 device_num_ids = 2; + * * @return The count of deviceNumIds. */ public int getDeviceNumIdsCount() { return deviceNumIds_.size(); } /** + * + * *
    * A list of device numeric IDs. If empty, this field is ignored. Maximum
    * IDs: 10,000.
    * 
* * repeated uint64 device_num_ids = 2; + * * @param index The index of the element to return. * @return The deviceNumIds at the given index. */ public long getDeviceNumIds(int index) { return deviceNumIds_.getLong(index); } + private int deviceNumIdsMemoizedSerializedSize = -1; public static final int DEVICE_IDS_FIELD_NUMBER = 3; private com.google.protobuf.LazyStringList deviceIds_; /** + * + * *
    * A list of device string IDs. For example, `['device0', 'device12']`.
    * If empty, this field is ignored. Maximum IDs: 10,000
    * 
* * repeated string device_ids = 3; + * * @return A list containing the deviceIds. */ - public com.google.protobuf.ProtocolStringList - getDeviceIdsList() { + public com.google.protobuf.ProtocolStringList getDeviceIdsList() { return deviceIds_; } /** + * + * *
    * A list of device string IDs. For example, `['device0', 'device12']`.
    * If empty, this field is ignored. Maximum IDs: 10,000
    * 
* * repeated string device_ids = 3; + * * @return The count of deviceIds. */ public int getDeviceIdsCount() { return deviceIds_.size(); } /** + * + * *
    * A list of device string IDs. For example, `['device0', 'device12']`.
    * If empty, this field is ignored. Maximum IDs: 10,000
    * 
* * repeated string device_ids = 3; + * * @param index The index of the element to return. * @return The deviceIds at the given index. */ @@ -302,23 +355,27 @@ public java.lang.String getDeviceIds(int index) { return deviceIds_.get(index); } /** + * + * *
    * A list of device string IDs. For example, `['device0', 'device12']`.
    * If empty, this field is ignored. Maximum IDs: 10,000
    * 
* * repeated string device_ids = 3; + * * @param index The index of the value to return. * @return The bytes of the deviceIds at the given index. */ - public com.google.protobuf.ByteString - getDeviceIdsBytes(int index) { + public com.google.protobuf.ByteString getDeviceIdsBytes(int index) { return deviceIds_.getByteString(index); } public static final int FIELD_MASK_FIELD_NUMBER = 4; private com.google.protobuf.FieldMask fieldMask_; /** + * + * *
    * The fields of the `Device` resource to be returned in the response. The
    * fields `id` and `num_id` are always returned, along with any
@@ -327,6 +384,7 @@ public java.lang.String getDeviceIds(int index) {
    * 
* * .google.protobuf.FieldMask field_mask = 4; + * * @return Whether the fieldMask field is set. */ @java.lang.Override @@ -334,6 +392,8 @@ public boolean hasFieldMask() { return fieldMask_ != null; } /** + * + * *
    * The fields of the `Device` resource to be returned in the response. The
    * fields `id` and `num_id` are always returned, along with any
@@ -342,6 +402,7 @@ public boolean hasFieldMask() {
    * 
* * .google.protobuf.FieldMask field_mask = 4; + * * @return The fieldMask. */ @java.lang.Override @@ -349,6 +410,8 @@ public com.google.protobuf.FieldMask getFieldMask() { return fieldMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : fieldMask_; } /** + * + * *
    * The fields of the `Device` resource to be returned in the response. The
    * fields `id` and `num_id` are always returned, along with any
@@ -366,11 +429,14 @@ public com.google.protobuf.FieldMaskOrBuilder getFieldMaskOrBuilder() {
   public static final int GATEWAY_LIST_OPTIONS_FIELD_NUMBER = 6;
   private com.google.cloud.iot.v1.GatewayListOptions gatewayListOptions_;
   /**
+   *
+   *
    * 
    * Options related to gateways.
    * 
* * .google.cloud.iot.v1.GatewayListOptions gateway_list_options = 6; + * * @return Whether the gatewayListOptions field is set. */ @java.lang.Override @@ -378,18 +444,25 @@ public boolean hasGatewayListOptions() { return gatewayListOptions_ != null; } /** + * + * *
    * Options related to gateways.
    * 
* * .google.cloud.iot.v1.GatewayListOptions gateway_list_options = 6; + * * @return The gatewayListOptions. */ @java.lang.Override public com.google.cloud.iot.v1.GatewayListOptions getGatewayListOptions() { - return gatewayListOptions_ == null ? com.google.cloud.iot.v1.GatewayListOptions.getDefaultInstance() : gatewayListOptions_; + return gatewayListOptions_ == null + ? com.google.cloud.iot.v1.GatewayListOptions.getDefaultInstance() + : gatewayListOptions_; } /** + * + * *
    * Options related to gateways.
    * 
@@ -404,6 +477,8 @@ public com.google.cloud.iot.v1.GatewayListOptionsOrBuilder getGatewayListOptions public static final int PAGE_SIZE_FIELD_NUMBER = 100; private int pageSize_; /** + * + * *
    * The maximum number of devices to return in the response. If this value
    * is zero, the service will select a default size. A call may return fewer
@@ -412,6 +487,7 @@ public com.google.cloud.iot.v1.GatewayListOptionsOrBuilder getGatewayListOptions
    * 
* * int32 page_size = 100; + * * @return The pageSize. */ @java.lang.Override @@ -422,6 +498,8 @@ public int getPageSize() { public static final int PAGE_TOKEN_FIELD_NUMBER = 101; private volatile java.lang.Object pageToken_; /** + * + * *
    * The value returned by the last `ListDevicesResponse`; indicates
    * that this is a continuation of a prior `ListDevices` call and
@@ -429,6 +507,7 @@ public int getPageSize() {
    * 
* * string page_token = 101; + * * @return The pageToken. */ @java.lang.Override @@ -437,14 +516,15 @@ public java.lang.String getPageToken() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); pageToken_ = s; return s; } } /** + * + * *
    * The value returned by the last `ListDevicesResponse`; indicates
    * that this is a continuation of a prior `ListDevices` call and
@@ -452,16 +532,15 @@ public java.lang.String getPageToken() {
    * 
* * string page_token = 101; + * * @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 { @@ -470,6 +549,7 @@ public java.lang.String getPageToken() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -481,8 +561,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { getSerializedSize(); if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); @@ -524,14 +603,13 @@ public int getSerializedSize() { { int dataSize = 0; for (int i = 0; i < deviceNumIds_.size(); i++) { - dataSize += com.google.protobuf.CodedOutputStream - .computeUInt64SizeNoTag(deviceNumIds_.getLong(i)); + dataSize += + com.google.protobuf.CodedOutputStream.computeUInt64SizeNoTag(deviceNumIds_.getLong(i)); } size += dataSize; if (!getDeviceNumIdsList().isEmpty()) { size += 1; - size += com.google.protobuf.CodedOutputStream - .computeInt32SizeNoTag(dataSize); + size += com.google.protobuf.CodedOutputStream.computeInt32SizeNoTag(dataSize); } deviceNumIdsMemoizedSerializedSize = dataSize; } @@ -544,16 +622,13 @@ public int getSerializedSize() { size += 1 * getDeviceIdsList().size(); } if (fieldMask_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(4, getFieldMask()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getFieldMask()); } if (gatewayListOptions_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(6, getGatewayListOptions()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(6, getGatewayListOptions()); } if (pageSize_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(100, pageSize_); + size += com.google.protobuf.CodedOutputStream.computeInt32Size(100, pageSize_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(101, pageToken_); @@ -566,33 +641,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.iot.v1.ListDevicesRequest)) { return super.equals(obj); } - com.google.cloud.iot.v1.ListDevicesRequest other = (com.google.cloud.iot.v1.ListDevicesRequest) obj; + com.google.cloud.iot.v1.ListDevicesRequest other = + (com.google.cloud.iot.v1.ListDevicesRequest) obj; - if (!getParent() - .equals(other.getParent())) return false; - if (!getDeviceNumIdsList() - .equals(other.getDeviceNumIdsList())) return false; - if (!getDeviceIdsList() - .equals(other.getDeviceIdsList())) return false; + if (!getParent().equals(other.getParent())) return false; + if (!getDeviceNumIdsList().equals(other.getDeviceNumIdsList())) return false; + if (!getDeviceIdsList().equals(other.getDeviceIdsList())) return false; if (hasFieldMask() != other.hasFieldMask()) return false; if (hasFieldMask()) { - if (!getFieldMask() - .equals(other.getFieldMask())) return false; + if (!getFieldMask().equals(other.getFieldMask())) return false; } if (hasGatewayListOptions() != other.hasGatewayListOptions()) return false; if (hasGatewayListOptions()) { - if (!getGatewayListOptions() - .equals(other.getGatewayListOptions())) return false; + if (!getGatewayListOptions().equals(other.getGatewayListOptions())) return false; } - if (getPageSize() - != other.getPageSize()) return false; - if (!getPageToken() - .equals(other.getPageToken())) return false; + if (getPageSize() != other.getPageSize()) return false; + if (!getPageToken().equals(other.getPageToken())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -631,118 +700,127 @@ public int hashCode() { return hash; } - public static com.google.cloud.iot.v1.ListDevicesRequest parseFrom( - java.nio.ByteBuffer data) + public static com.google.cloud.iot.v1.ListDevicesRequest parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.iot.v1.ListDevicesRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.iot.v1.ListDevicesRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.iot.v1.ListDevicesRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.iot.v1.ListDevicesRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.iot.v1.ListDevicesRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.iot.v1.ListDevicesRequest 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.iot.v1.ListDevicesRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.iot.v1.ListDevicesRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.iot.v1.ListDevicesRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.iot.v1.ListDevicesRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.iot.v1.ListDevicesRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.iot.v1.ListDevicesRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.cloud.iot.v1.ListDevicesRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected 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 `ListDevices`.
    * 
* * Protobuf type {@code google.cloud.iot.v1.ListDevicesRequest} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.iot.v1.ListDevicesRequest) com.google.cloud.iot.v1.ListDevicesRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.iot.v1.DeviceManagerProto.internal_static_google_cloud_iot_v1_ListDevicesRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.iot.v1.DeviceManagerProto + .internal_static_google_cloud_iot_v1_ListDevicesRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.iot.v1.DeviceManagerProto.internal_static_google_cloud_iot_v1_ListDevicesRequest_fieldAccessorTable + return com.google.cloud.iot.v1.DeviceManagerProto + .internal_static_google_cloud_iot_v1_ListDevicesRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.iot.v1.ListDevicesRequest.class, com.google.cloud.iot.v1.ListDevicesRequest.Builder.class); + com.google.cloud.iot.v1.ListDevicesRequest.class, + com.google.cloud.iot.v1.ListDevicesRequest.Builder.class); } // Construct using com.google.cloud.iot.v1.ListDevicesRequest.newBuilder() @@ -750,16 +828,15 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -789,9 +866,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.iot.v1.DeviceManagerProto.internal_static_google_cloud_iot_v1_ListDevicesRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.iot.v1.DeviceManagerProto + .internal_static_google_cloud_iot_v1_ListDevicesRequest_descriptor; } @java.lang.Override @@ -810,7 +887,8 @@ public com.google.cloud.iot.v1.ListDevicesRequest build() { @java.lang.Override public com.google.cloud.iot.v1.ListDevicesRequest buildPartial() { - com.google.cloud.iot.v1.ListDevicesRequest result = new com.google.cloud.iot.v1.ListDevicesRequest(this); + com.google.cloud.iot.v1.ListDevicesRequest result = + new com.google.cloud.iot.v1.ListDevicesRequest(this); int from_bitField0_ = bitField0_; result.parent_ = parent_; if (((bitField0_ & 0x00000001) != 0)) { @@ -843,38 +921,39 @@ public com.google.cloud.iot.v1.ListDevicesRequest buildPartial() { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.iot.v1.ListDevicesRequest) { - return mergeFrom((com.google.cloud.iot.v1.ListDevicesRequest)other); + return mergeFrom((com.google.cloud.iot.v1.ListDevicesRequest) other); } else { super.mergeFrom(other); return this; @@ -948,23 +1027,28 @@ public Builder mergeFrom( } return this; } + private int bitField0_; private java.lang.Object parent_ = ""; /** + * + * *
      * Required. The device registry path. Required. For example,
      * `projects/my-project/locations/us-central1/registries/my-registry`.
      * 
* - * string parent = 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; @@ -973,21 +1057,24 @@ public java.lang.String getParent() { } } /** + * + * *
      * Required. The device registry path. Required. For example,
      * `projects/my-project/locations/us-central1/registries/my-registry`.
      * 
* - * string parent = 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 { @@ -995,102 +1082,125 @@ public java.lang.String getParent() { } } /** + * + * *
      * Required. The device registry path. Required. For example,
      * `projects/my-project/locations/us-central1/registries/my-registry`.
      * 
* - * 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 device registry path. Required. For example,
      * `projects/my-project/locations/us-central1/registries/my-registry`.
      * 
* - * string 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 device registry path. Required. For example,
      * `projects/my-project/locations/us-central1/registries/my-registry`.
      * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The bytes for parent to set. * @return This builder for chaining. */ - public Builder setParentBytes( - com.google.protobuf.ByteString value) { + public Builder setParentBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + parent_ = value; onChanged(); return this; } private com.google.protobuf.Internal.LongList deviceNumIds_ = emptyLongList(); + private void ensureDeviceNumIdsIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { deviceNumIds_ = mutableCopy(deviceNumIds_); bitField0_ |= 0x00000001; - } + } } /** + * + * *
      * A list of device numeric IDs. If empty, this field is ignored. Maximum
      * IDs: 10,000.
      * 
* * repeated uint64 device_num_ids = 2; + * * @return A list containing the deviceNumIds. */ - public java.util.List - getDeviceNumIdsList() { - return ((bitField0_ & 0x00000001) != 0) ? - java.util.Collections.unmodifiableList(deviceNumIds_) : deviceNumIds_; + public java.util.List getDeviceNumIdsList() { + return ((bitField0_ & 0x00000001) != 0) + ? java.util.Collections.unmodifiableList(deviceNumIds_) + : deviceNumIds_; } /** + * + * *
      * A list of device numeric IDs. If empty, this field is ignored. Maximum
      * IDs: 10,000.
      * 
* * repeated uint64 device_num_ids = 2; + * * @return The count of deviceNumIds. */ public int getDeviceNumIdsCount() { return deviceNumIds_.size(); } /** + * + * *
      * A list of device numeric IDs. If empty, this field is ignored. Maximum
      * IDs: 10,000.
      * 
* * repeated uint64 device_num_ids = 2; + * * @param index The index of the element to return. * @return The deviceNumIds at the given index. */ @@ -1098,30 +1208,35 @@ public long getDeviceNumIds(int index) { return deviceNumIds_.getLong(index); } /** + * + * *
      * A list of device numeric IDs. If empty, this field is ignored. Maximum
      * IDs: 10,000.
      * 
* * repeated uint64 device_num_ids = 2; + * * @param index The index to set the value at. * @param value The deviceNumIds to set. * @return This builder for chaining. */ - public Builder setDeviceNumIds( - int index, long value) { + public Builder setDeviceNumIds(int index, long value) { ensureDeviceNumIdsIsMutable(); deviceNumIds_.setLong(index, value); onChanged(); return this; } /** + * + * *
      * A list of device numeric IDs. If empty, this field is ignored. Maximum
      * IDs: 10,000.
      * 
* * repeated uint64 device_num_ids = 2; + * * @param value The deviceNumIds to add. * @return This builder for chaining. */ @@ -1132,30 +1247,34 @@ public Builder addDeviceNumIds(long value) { return this; } /** + * + * *
      * A list of device numeric IDs. If empty, this field is ignored. Maximum
      * IDs: 10,000.
      * 
* * repeated uint64 device_num_ids = 2; + * * @param values The deviceNumIds to add. * @return This builder for chaining. */ - public Builder addAllDeviceNumIds( - java.lang.Iterable values) { + public Builder addAllDeviceNumIds(java.lang.Iterable values) { ensureDeviceNumIdsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, deviceNumIds_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, deviceNumIds_); onChanged(); return this; } /** + * + * *
      * A list of device numeric IDs. If empty, this field is ignored. Maximum
      * IDs: 10,000.
      * 
* * repeated uint64 device_num_ids = 2; + * * @return This builder for chaining. */ public Builder clearDeviceNumIds() { @@ -1165,45 +1284,55 @@ public Builder clearDeviceNumIds() { return this; } - private com.google.protobuf.LazyStringList deviceIds_ = com.google.protobuf.LazyStringArrayList.EMPTY; + private com.google.protobuf.LazyStringList deviceIds_ = + com.google.protobuf.LazyStringArrayList.EMPTY; + private void ensureDeviceIdsIsMutable() { if (!((bitField0_ & 0x00000002) != 0)) { deviceIds_ = new com.google.protobuf.LazyStringArrayList(deviceIds_); bitField0_ |= 0x00000002; - } + } } /** + * + * *
      * A list of device string IDs. For example, `['device0', 'device12']`.
      * If empty, this field is ignored. Maximum IDs: 10,000
      * 
* * repeated string device_ids = 3; + * * @return A list containing the deviceIds. */ - public com.google.protobuf.ProtocolStringList - getDeviceIdsList() { + public com.google.protobuf.ProtocolStringList getDeviceIdsList() { return deviceIds_.getUnmodifiableView(); } /** + * + * *
      * A list of device string IDs. For example, `['device0', 'device12']`.
      * If empty, this field is ignored. Maximum IDs: 10,000
      * 
* * repeated string device_ids = 3; + * * @return The count of deviceIds. */ public int getDeviceIdsCount() { return deviceIds_.size(); } /** + * + * *
      * A list of device string IDs. For example, `['device0', 'device12']`.
      * If empty, this field is ignored. Maximum IDs: 10,000
      * 
* * repeated string device_ids = 3; + * * @param index The index of the element to return. * @return The deviceIds at the given index. */ @@ -1211,85 +1340,95 @@ public java.lang.String getDeviceIds(int index) { return deviceIds_.get(index); } /** + * + * *
      * A list of device string IDs. For example, `['device0', 'device12']`.
      * If empty, this field is ignored. Maximum IDs: 10,000
      * 
* * repeated string device_ids = 3; + * * @param index The index of the value to return. * @return The bytes of the deviceIds at the given index. */ - public com.google.protobuf.ByteString - getDeviceIdsBytes(int index) { + public com.google.protobuf.ByteString getDeviceIdsBytes(int index) { return deviceIds_.getByteString(index); } /** + * + * *
      * A list of device string IDs. For example, `['device0', 'device12']`.
      * If empty, this field is ignored. Maximum IDs: 10,000
      * 
* * repeated string device_ids = 3; + * * @param index The index to set the value at. * @param value The deviceIds to set. * @return This builder for chaining. */ - public Builder setDeviceIds( - int index, java.lang.String value) { + public Builder setDeviceIds(int index, java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureDeviceIdsIsMutable(); + throw new NullPointerException(); + } + ensureDeviceIdsIsMutable(); deviceIds_.set(index, value); onChanged(); return this; } /** + * + * *
      * A list of device string IDs. For example, `['device0', 'device12']`.
      * If empty, this field is ignored. Maximum IDs: 10,000
      * 
* * repeated string device_ids = 3; + * * @param value The deviceIds to add. * @return This builder for chaining. */ - public Builder addDeviceIds( - java.lang.String value) { + public Builder addDeviceIds(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureDeviceIdsIsMutable(); + throw new NullPointerException(); + } + ensureDeviceIdsIsMutable(); deviceIds_.add(value); onChanged(); return this; } /** + * + * *
      * A list of device string IDs. For example, `['device0', 'device12']`.
      * If empty, this field is ignored. Maximum IDs: 10,000
      * 
* * repeated string device_ids = 3; + * * @param values The deviceIds to add. * @return This builder for chaining. */ - public Builder addAllDeviceIds( - java.lang.Iterable values) { + public Builder addAllDeviceIds(java.lang.Iterable values) { ensureDeviceIdsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, deviceIds_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, deviceIds_); onChanged(); return this; } /** + * + * *
      * A list of device string IDs. For example, `['device0', 'device12']`.
      * If empty, this field is ignored. Maximum IDs: 10,000
      * 
* * repeated string device_ids = 3; + * * @return This builder for chaining. */ public Builder clearDeviceIds() { @@ -1299,21 +1438,23 @@ public Builder clearDeviceIds() { return this; } /** + * + * *
      * A list of device string IDs. For example, `['device0', 'device12']`.
      * If empty, this field is ignored. Maximum IDs: 10,000
      * 
* * repeated string device_ids = 3; + * * @param value The bytes of the deviceIds to add. * @return This builder for chaining. */ - public Builder addDeviceIdsBytes( - com.google.protobuf.ByteString value) { + public Builder addDeviceIdsBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); ensureDeviceIdsIsMutable(); deviceIds_.add(value); onChanged(); @@ -1322,8 +1463,13 @@ public Builder addDeviceIdsBytes( private com.google.protobuf.FieldMask fieldMask_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.FieldMask, com.google.protobuf.FieldMask.Builder, com.google.protobuf.FieldMaskOrBuilder> fieldMaskBuilder_; + com.google.protobuf.FieldMask, + com.google.protobuf.FieldMask.Builder, + com.google.protobuf.FieldMaskOrBuilder> + fieldMaskBuilder_; /** + * + * *
      * The fields of the `Device` resource to be returned in the response. The
      * fields `id` and `num_id` are always returned, along with any
@@ -1332,12 +1478,15 @@ public Builder addDeviceIdsBytes(
      * 
* * .google.protobuf.FieldMask field_mask = 4; + * * @return Whether the fieldMask field is set. */ public boolean hasFieldMask() { return fieldMaskBuilder_ != null || fieldMask_ != null; } /** + * + * *
      * The fields of the `Device` resource to be returned in the response. The
      * fields `id` and `num_id` are always returned, along with any
@@ -1346,6 +1495,7 @@ public boolean hasFieldMask() {
      * 
* * .google.protobuf.FieldMask field_mask = 4; + * * @return The fieldMask. */ public com.google.protobuf.FieldMask getFieldMask() { @@ -1356,6 +1506,8 @@ public com.google.protobuf.FieldMask getFieldMask() { } } /** + * + * *
      * The fields of the `Device` resource to be returned in the response. The
      * fields `id` and `num_id` are always returned, along with any
@@ -1379,6 +1531,8 @@ public Builder setFieldMask(com.google.protobuf.FieldMask value) {
       return this;
     }
     /**
+     *
+     *
      * 
      * The fields of the `Device` resource to be returned in the response. The
      * fields `id` and `num_id` are always returned, along with any
@@ -1388,8 +1542,7 @@ public Builder setFieldMask(com.google.protobuf.FieldMask value) {
      *
      * .google.protobuf.FieldMask field_mask = 4;
      */
-    public Builder setFieldMask(
-        com.google.protobuf.FieldMask.Builder builderForValue) {
+    public Builder setFieldMask(com.google.protobuf.FieldMask.Builder builderForValue) {
       if (fieldMaskBuilder_ == null) {
         fieldMask_ = builderForValue.build();
         onChanged();
@@ -1400,6 +1553,8 @@ public Builder setFieldMask(
       return this;
     }
     /**
+     *
+     *
      * 
      * The fields of the `Device` resource to be returned in the response. The
      * fields `id` and `num_id` are always returned, along with any
@@ -1413,7 +1568,7 @@ public Builder mergeFieldMask(com.google.protobuf.FieldMask value) {
       if (fieldMaskBuilder_ == null) {
         if (fieldMask_ != null) {
           fieldMask_ =
-            com.google.protobuf.FieldMask.newBuilder(fieldMask_).mergeFrom(value).buildPartial();
+              com.google.protobuf.FieldMask.newBuilder(fieldMask_).mergeFrom(value).buildPartial();
         } else {
           fieldMask_ = value;
         }
@@ -1425,6 +1580,8 @@ public Builder mergeFieldMask(com.google.protobuf.FieldMask value) {
       return this;
     }
     /**
+     *
+     *
      * 
      * The fields of the `Device` resource to be returned in the response. The
      * fields `id` and `num_id` are always returned, along with any
@@ -1446,6 +1603,8 @@ public Builder clearFieldMask() {
       return this;
     }
     /**
+     *
+     *
      * 
      * The fields of the `Device` resource to be returned in the response. The
      * fields `id` and `num_id` are always returned, along with any
@@ -1456,11 +1615,13 @@ public Builder clearFieldMask() {
      * .google.protobuf.FieldMask field_mask = 4;
      */
     public com.google.protobuf.FieldMask.Builder getFieldMaskBuilder() {
-      
+
       onChanged();
       return getFieldMaskFieldBuilder().getBuilder();
     }
     /**
+     *
+     *
      * 
      * The fields of the `Device` resource to be returned in the response. The
      * fields `id` and `num_id` are always returned, along with any
@@ -1474,11 +1635,12 @@ public com.google.protobuf.FieldMaskOrBuilder getFieldMaskOrBuilder() {
       if (fieldMaskBuilder_ != null) {
         return fieldMaskBuilder_.getMessageOrBuilder();
       } else {
-        return fieldMask_ == null ?
-            com.google.protobuf.FieldMask.getDefaultInstance() : fieldMask_;
+        return fieldMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : fieldMask_;
       }
     }
     /**
+     *
+     *
      * 
      * The fields of the `Device` resource to be returned in the response. The
      * fields `id` and `num_id` are always returned, along with any
@@ -1489,14 +1651,17 @@ public com.google.protobuf.FieldMaskOrBuilder getFieldMaskOrBuilder() {
      * .google.protobuf.FieldMask field_mask = 4;
      */
     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>
         getFieldMaskFieldBuilder() {
       if (fieldMaskBuilder_ == null) {
-        fieldMaskBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
-            com.google.protobuf.FieldMask, com.google.protobuf.FieldMask.Builder, com.google.protobuf.FieldMaskOrBuilder>(
-                getFieldMask(),
-                getParentForChildren(),
-                isClean());
+        fieldMaskBuilder_ =
+            new com.google.protobuf.SingleFieldBuilderV3<
+                com.google.protobuf.FieldMask,
+                com.google.protobuf.FieldMask.Builder,
+                com.google.protobuf.FieldMaskOrBuilder>(
+                getFieldMask(), getParentForChildren(), isClean());
         fieldMask_ = null;
       }
       return fieldMaskBuilder_;
@@ -1504,34 +1669,47 @@ public com.google.protobuf.FieldMaskOrBuilder getFieldMaskOrBuilder() {
 
     private com.google.cloud.iot.v1.GatewayListOptions gatewayListOptions_;
     private com.google.protobuf.SingleFieldBuilderV3<
-        com.google.cloud.iot.v1.GatewayListOptions, com.google.cloud.iot.v1.GatewayListOptions.Builder, com.google.cloud.iot.v1.GatewayListOptionsOrBuilder> gatewayListOptionsBuilder_;
+            com.google.cloud.iot.v1.GatewayListOptions,
+            com.google.cloud.iot.v1.GatewayListOptions.Builder,
+            com.google.cloud.iot.v1.GatewayListOptionsOrBuilder>
+        gatewayListOptionsBuilder_;
     /**
+     *
+     *
      * 
      * Options related to gateways.
      * 
* * .google.cloud.iot.v1.GatewayListOptions gateway_list_options = 6; + * * @return Whether the gatewayListOptions field is set. */ public boolean hasGatewayListOptions() { return gatewayListOptionsBuilder_ != null || gatewayListOptions_ != null; } /** + * + * *
      * Options related to gateways.
      * 
* * .google.cloud.iot.v1.GatewayListOptions gateway_list_options = 6; + * * @return The gatewayListOptions. */ public com.google.cloud.iot.v1.GatewayListOptions getGatewayListOptions() { if (gatewayListOptionsBuilder_ == null) { - return gatewayListOptions_ == null ? com.google.cloud.iot.v1.GatewayListOptions.getDefaultInstance() : gatewayListOptions_; + return gatewayListOptions_ == null + ? com.google.cloud.iot.v1.GatewayListOptions.getDefaultInstance() + : gatewayListOptions_; } else { return gatewayListOptionsBuilder_.getMessage(); } } /** + * + * *
      * Options related to gateways.
      * 
@@ -1552,6 +1730,8 @@ public Builder setGatewayListOptions(com.google.cloud.iot.v1.GatewayListOptions return this; } /** + * + * *
      * Options related to gateways.
      * 
@@ -1570,6 +1750,8 @@ public Builder setGatewayListOptions( return this; } /** + * + * *
      * Options related to gateways.
      * 
@@ -1580,7 +1762,9 @@ public Builder mergeGatewayListOptions(com.google.cloud.iot.v1.GatewayListOption if (gatewayListOptionsBuilder_ == null) { if (gatewayListOptions_ != null) { gatewayListOptions_ = - com.google.cloud.iot.v1.GatewayListOptions.newBuilder(gatewayListOptions_).mergeFrom(value).buildPartial(); + com.google.cloud.iot.v1.GatewayListOptions.newBuilder(gatewayListOptions_) + .mergeFrom(value) + .buildPartial(); } else { gatewayListOptions_ = value; } @@ -1592,6 +1776,8 @@ public Builder mergeGatewayListOptions(com.google.cloud.iot.v1.GatewayListOption return this; } /** + * + * *
      * Options related to gateways.
      * 
@@ -1610,6 +1796,8 @@ public Builder clearGatewayListOptions() { return this; } /** + * + * *
      * Options related to gateways.
      * 
@@ -1617,11 +1805,13 @@ public Builder clearGatewayListOptions() { * .google.cloud.iot.v1.GatewayListOptions gateway_list_options = 6; */ public com.google.cloud.iot.v1.GatewayListOptions.Builder getGatewayListOptionsBuilder() { - + onChanged(); return getGatewayListOptionsFieldBuilder().getBuilder(); } /** + * + * *
      * Options related to gateways.
      * 
@@ -1632,11 +1822,14 @@ public com.google.cloud.iot.v1.GatewayListOptionsOrBuilder getGatewayListOptions if (gatewayListOptionsBuilder_ != null) { return gatewayListOptionsBuilder_.getMessageOrBuilder(); } else { - return gatewayListOptions_ == null ? - com.google.cloud.iot.v1.GatewayListOptions.getDefaultInstance() : gatewayListOptions_; + return gatewayListOptions_ == null + ? com.google.cloud.iot.v1.GatewayListOptions.getDefaultInstance() + : gatewayListOptions_; } } /** + * + * *
      * Options related to gateways.
      * 
@@ -1644,21 +1837,26 @@ public com.google.cloud.iot.v1.GatewayListOptionsOrBuilder getGatewayListOptions * .google.cloud.iot.v1.GatewayListOptions gateway_list_options = 6; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.iot.v1.GatewayListOptions, com.google.cloud.iot.v1.GatewayListOptions.Builder, com.google.cloud.iot.v1.GatewayListOptionsOrBuilder> + com.google.cloud.iot.v1.GatewayListOptions, + com.google.cloud.iot.v1.GatewayListOptions.Builder, + com.google.cloud.iot.v1.GatewayListOptionsOrBuilder> getGatewayListOptionsFieldBuilder() { if (gatewayListOptionsBuilder_ == null) { - gatewayListOptionsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.iot.v1.GatewayListOptions, com.google.cloud.iot.v1.GatewayListOptions.Builder, com.google.cloud.iot.v1.GatewayListOptionsOrBuilder>( - getGatewayListOptions(), - getParentForChildren(), - isClean()); + gatewayListOptionsBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.iot.v1.GatewayListOptions, + com.google.cloud.iot.v1.GatewayListOptions.Builder, + com.google.cloud.iot.v1.GatewayListOptionsOrBuilder>( + getGatewayListOptions(), getParentForChildren(), isClean()); gatewayListOptions_ = null; } return gatewayListOptionsBuilder_; } - private int pageSize_ ; + private int pageSize_; /** + * + * *
      * The maximum number of devices to return in the response. If this value
      * is zero, the service will select a default size. A call may return fewer
@@ -1667,6 +1865,7 @@ public com.google.cloud.iot.v1.GatewayListOptionsOrBuilder getGatewayListOptions
      * 
* * int32 page_size = 100; + * * @return The pageSize. */ @java.lang.Override @@ -1674,6 +1873,8 @@ public int getPageSize() { return pageSize_; } /** + * + * *
      * The maximum number of devices to return in the response. If this value
      * is zero, the service will select a default size. A call may return fewer
@@ -1682,16 +1883,19 @@ public int getPageSize() {
      * 
* * int32 page_size = 100; + * * @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 devices to return in the response. If this value
      * is zero, the service will select a default size. A call may return fewer
@@ -1700,10 +1904,11 @@ public Builder setPageSize(int value) {
      * 
* * int32 page_size = 100; + * * @return This builder for chaining. */ public Builder clearPageSize() { - + pageSize_ = 0; onChanged(); return this; @@ -1711,6 +1916,8 @@ public Builder clearPageSize() { private java.lang.Object pageToken_ = ""; /** + * + * *
      * The value returned by the last `ListDevicesResponse`; indicates
      * that this is a continuation of a prior `ListDevices` call and
@@ -1718,13 +1925,13 @@ public Builder clearPageSize() {
      * 
* * string page_token = 101; + * * @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; @@ -1733,6 +1940,8 @@ public java.lang.String getPageToken() { } } /** + * + * *
      * The value returned by the last `ListDevicesResponse`; indicates
      * that this is a continuation of a prior `ListDevices` call and
@@ -1740,15 +1949,14 @@ public java.lang.String getPageToken() {
      * 
* * string page_token = 101; + * * @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 { @@ -1756,6 +1964,8 @@ public java.lang.String getPageToken() { } } /** + * + * *
      * The value returned by the last `ListDevicesResponse`; indicates
      * that this is a continuation of a prior `ListDevices` call and
@@ -1763,20 +1973,22 @@ public java.lang.String getPageToken() {
      * 
* * string page_token = 101; + * * @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 value returned by the last `ListDevicesResponse`; indicates
      * that this is a continuation of a prior `ListDevices` call and
@@ -1784,15 +1996,18 @@ public Builder setPageToken(
      * 
* * string page_token = 101; + * * @return This builder for chaining. */ public Builder clearPageToken() { - + pageToken_ = getDefaultInstance().getPageToken(); onChanged(); return this; } /** + * + * *
      * The value returned by the last `ListDevicesResponse`; indicates
      * that this is a continuation of a prior `ListDevices` call and
@@ -1800,23 +2015,23 @@ public Builder clearPageToken() {
      * 
* * string page_token = 101; + * * @param value The bytes for pageToken to set. * @return This builder for chaining. */ - public Builder setPageTokenBytes( - com.google.protobuf.ByteString value) { + public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + pageToken_ = value; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1826,12 +2041,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.iot.v1.ListDevicesRequest) } // @@protoc_insertion_point(class_scope:google.cloud.iot.v1.ListDevicesRequest) private static final com.google.cloud.iot.v1.ListDevicesRequest DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.iot.v1.ListDevicesRequest(); } @@ -1840,16 +2055,16 @@ public static com.google.cloud.iot.v1.ListDevicesRequest getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListDevicesRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ListDevicesRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListDevicesRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ListDevicesRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1864,6 +2079,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.iot.v1.ListDevicesRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1/proto-google-cloud-iot-v1/src/main/java/com/google/cloud/iot/v1/ListDevicesRequestOrBuilder.java b/proto-google-cloud-iot-v1/src/main/java/com/google/cloud/iot/v1/ListDevicesRequestOrBuilder.java similarity index 80% rename from owl-bot-staging/v1/proto-google-cloud-iot-v1/src/main/java/com/google/cloud/iot/v1/ListDevicesRequestOrBuilder.java rename to proto-google-cloud-iot-v1/src/main/java/com/google/cloud/iot/v1/ListDevicesRequestOrBuilder.java index 07b045ea..501c3586 100644 --- a/owl-bot-staging/v1/proto-google-cloud-iot-v1/src/main/java/com/google/cloud/iot/v1/ListDevicesRequestOrBuilder.java +++ b/proto-google-cloud-iot-v1/src/main/java/com/google/cloud/iot/v1/ListDevicesRequestOrBuilder.java @@ -1,112 +1,158 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/iot/v1/device_manager.proto package com.google.cloud.iot.v1; -public interface ListDevicesRequestOrBuilder extends +public interface ListDevicesRequestOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.iot.v1.ListDevicesRequest) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Required. The device registry path. Required. For example,
    * `projects/my-project/locations/us-central1/registries/my-registry`.
    * 
* - * string parent = 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 device registry path. Required. For example,
    * `projects/my-project/locations/us-central1/registries/my-registry`.
    * 
* - * string parent = 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(); /** + * + * *
    * A list of device numeric IDs. If empty, this field is ignored. Maximum
    * IDs: 10,000.
    * 
* * repeated uint64 device_num_ids = 2; + * * @return A list containing the deviceNumIds. */ java.util.List getDeviceNumIdsList(); /** + * + * *
    * A list of device numeric IDs. If empty, this field is ignored. Maximum
    * IDs: 10,000.
    * 
* * repeated uint64 device_num_ids = 2; + * * @return The count of deviceNumIds. */ int getDeviceNumIdsCount(); /** + * + * *
    * A list of device numeric IDs. If empty, this field is ignored. Maximum
    * IDs: 10,000.
    * 
* * repeated uint64 device_num_ids = 2; + * * @param index The index of the element to return. * @return The deviceNumIds at the given index. */ long getDeviceNumIds(int index); /** + * + * *
    * A list of device string IDs. For example, `['device0', 'device12']`.
    * If empty, this field is ignored. Maximum IDs: 10,000
    * 
* * repeated string device_ids = 3; + * * @return A list containing the deviceIds. */ - java.util.List - getDeviceIdsList(); + java.util.List getDeviceIdsList(); /** + * + * *
    * A list of device string IDs. For example, `['device0', 'device12']`.
    * If empty, this field is ignored. Maximum IDs: 10,000
    * 
* * repeated string device_ids = 3; + * * @return The count of deviceIds. */ int getDeviceIdsCount(); /** + * + * *
    * A list of device string IDs. For example, `['device0', 'device12']`.
    * If empty, this field is ignored. Maximum IDs: 10,000
    * 
* * repeated string device_ids = 3; + * * @param index The index of the element to return. * @return The deviceIds at the given index. */ java.lang.String getDeviceIds(int index); /** + * + * *
    * A list of device string IDs. For example, `['device0', 'device12']`.
    * If empty, this field is ignored. Maximum IDs: 10,000
    * 
* * repeated string device_ids = 3; + * * @param index The index of the value to return. * @return The bytes of the deviceIds at the given index. */ - com.google.protobuf.ByteString - getDeviceIdsBytes(int index); + com.google.protobuf.ByteString getDeviceIdsBytes(int index); /** + * + * *
    * The fields of the `Device` resource to be returned in the response. The
    * fields `id` and `num_id` are always returned, along with any
@@ -115,10 +161,13 @@ public interface ListDevicesRequestOrBuilder extends
    * 
* * .google.protobuf.FieldMask field_mask = 4; + * * @return Whether the fieldMask field is set. */ boolean hasFieldMask(); /** + * + * *
    * The fields of the `Device` resource to be returned in the response. The
    * fields `id` and `num_id` are always returned, along with any
@@ -127,10 +176,13 @@ public interface ListDevicesRequestOrBuilder extends
    * 
* * .google.protobuf.FieldMask field_mask = 4; + * * @return The fieldMask. */ com.google.protobuf.FieldMask getFieldMask(); /** + * + * *
    * The fields of the `Device` resource to be returned in the response. The
    * fields `id` and `num_id` are always returned, along with any
@@ -143,24 +195,32 @@ public interface ListDevicesRequestOrBuilder extends
   com.google.protobuf.FieldMaskOrBuilder getFieldMaskOrBuilder();
 
   /**
+   *
+   *
    * 
    * Options related to gateways.
    * 
* * .google.cloud.iot.v1.GatewayListOptions gateway_list_options = 6; + * * @return Whether the gatewayListOptions field is set. */ boolean hasGatewayListOptions(); /** + * + * *
    * Options related to gateways.
    * 
* * .google.cloud.iot.v1.GatewayListOptions gateway_list_options = 6; + * * @return The gatewayListOptions. */ com.google.cloud.iot.v1.GatewayListOptions getGatewayListOptions(); /** + * + * *
    * Options related to gateways.
    * 
@@ -170,6 +230,8 @@ public interface ListDevicesRequestOrBuilder extends com.google.cloud.iot.v1.GatewayListOptionsOrBuilder getGatewayListOptionsOrBuilder(); /** + * + * *
    * The maximum number of devices to return in the response. If this value
    * is zero, the service will select a default size. A call may return fewer
@@ -178,11 +240,14 @@ public interface ListDevicesRequestOrBuilder extends
    * 
* * int32 page_size = 100; + * * @return The pageSize. */ int getPageSize(); /** + * + * *
    * The value returned by the last `ListDevicesResponse`; indicates
    * that this is a continuation of a prior `ListDevices` call and
@@ -190,10 +255,13 @@ public interface ListDevicesRequestOrBuilder extends
    * 
* * string page_token = 101; + * * @return The pageToken. */ java.lang.String getPageToken(); /** + * + * *
    * The value returned by the last `ListDevicesResponse`; indicates
    * that this is a continuation of a prior `ListDevices` call and
@@ -201,8 +269,8 @@ public interface ListDevicesRequestOrBuilder extends
    * 
* * string page_token = 101; + * * @return The bytes for pageToken. */ - com.google.protobuf.ByteString - getPageTokenBytes(); + com.google.protobuf.ByteString getPageTokenBytes(); } diff --git a/owl-bot-staging/v1/proto-google-cloud-iot-v1/src/main/java/com/google/cloud/iot/v1/ListDevicesResponse.java b/proto-google-cloud-iot-v1/src/main/java/com/google/cloud/iot/v1/ListDevicesResponse.java similarity index 73% rename from owl-bot-staging/v1/proto-google-cloud-iot-v1/src/main/java/com/google/cloud/iot/v1/ListDevicesResponse.java rename to proto-google-cloud-iot-v1/src/main/java/com/google/cloud/iot/v1/ListDevicesResponse.java index 8f7d8013..6a04a182 100644 --- a/owl-bot-staging/v1/proto-google-cloud-iot-v1/src/main/java/com/google/cloud/iot/v1/ListDevicesResponse.java +++ b/proto-google-cloud-iot-v1/src/main/java/com/google/cloud/iot/v1/ListDevicesResponse.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/iot/v1/device_manager.proto package com.google.cloud.iot.v1; /** + * + * *
  * Response for `ListDevices`.
  * 
* * Protobuf type {@code google.cloud.iot.v1.ListDevicesResponse} */ -public final class ListDevicesResponse extends - com.google.protobuf.GeneratedMessageV3 implements +public final class ListDevicesResponse extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.iot.v1.ListDevicesResponse) ListDevicesResponseOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use ListDevicesResponse.newBuilder() to construct. private ListDevicesResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private ListDevicesResponse() { devices_ = java.util.Collections.emptyList(); nextPageToken_ = ""; @@ -26,16 +44,15 @@ private ListDevicesResponse() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new ListDevicesResponse(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private ListDevicesResponse( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -55,28 +72,30 @@ private ListDevicesResponse( case 0: done = true; break; - case 10: { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - devices_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; + case 10: + { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + devices_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; + } + devices_.add( + input.readMessage(com.google.cloud.iot.v1.Device.parser(), extensionRegistry)); + break; } - devices_.add( - input.readMessage(com.google.cloud.iot.v1.Device.parser(), extensionRegistry)); - break; - } - case 18: { - java.lang.String s = input.readStringRequireUtf8(); + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); - nextPageToken_ = s; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + nextPageToken_ = s; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -84,8 +103,7 @@ private ListDevicesResponse( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } 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)) { devices_ = java.util.Collections.unmodifiableList(devices_); @@ -94,22 +112,27 @@ private ListDevicesResponse( makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.iot.v1.DeviceManagerProto.internal_static_google_cloud_iot_v1_ListDevicesResponse_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.iot.v1.DeviceManagerProto + .internal_static_google_cloud_iot_v1_ListDevicesResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.iot.v1.DeviceManagerProto.internal_static_google_cloud_iot_v1_ListDevicesResponse_fieldAccessorTable + return com.google.cloud.iot.v1.DeviceManagerProto + .internal_static_google_cloud_iot_v1_ListDevicesResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.iot.v1.ListDevicesResponse.class, com.google.cloud.iot.v1.ListDevicesResponse.Builder.class); + com.google.cloud.iot.v1.ListDevicesResponse.class, + com.google.cloud.iot.v1.ListDevicesResponse.Builder.class); } public static final int DEVICES_FIELD_NUMBER = 1; private java.util.List devices_; /** + * + * *
    * The devices that match the request.
    * 
@@ -121,6 +144,8 @@ public java.util.List getDevicesList() { return devices_; } /** + * + * *
    * The devices that match the request.
    * 
@@ -128,11 +153,13 @@ public java.util.List getDevicesList() { * repeated .google.cloud.iot.v1.Device devices = 1; */ @java.lang.Override - public java.util.List + public java.util.List getDevicesOrBuilderList() { return devices_; } /** + * + * *
    * The devices that match the request.
    * 
@@ -144,6 +171,8 @@ public int getDevicesCount() { return devices_.size(); } /** + * + * *
    * The devices that match the request.
    * 
@@ -155,6 +184,8 @@ public com.google.cloud.iot.v1.Device getDevices(int index) { return devices_.get(index); } /** + * + * *
    * The devices that match the request.
    * 
@@ -162,20 +193,22 @@ public com.google.cloud.iot.v1.Device getDevices(int index) { * repeated .google.cloud.iot.v1.Device devices = 1; */ @java.lang.Override - public com.google.cloud.iot.v1.DeviceOrBuilder getDevicesOrBuilder( - int index) { + public com.google.cloud.iot.v1.DeviceOrBuilder getDevicesOrBuilder(int index) { return devices_.get(index); } public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; private volatile java.lang.Object nextPageToken_; /** + * + * *
    * If not empty, indicates that there may be more devices that match the
    * request; this value should be passed in a new `ListDevicesRequest`.
    * 
* * string next_page_token = 2; + * * @return The nextPageToken. */ @java.lang.Override @@ -184,30 +217,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; } } /** + * + * *
    * If not empty, indicates that there may be more devices that match the
    * request; this value should be passed in a new `ListDevicesRequest`.
    * 
* * 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 { @@ -216,6 +249,7 @@ public java.lang.String getNextPageToken() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -227,8 +261,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { for (int i = 0; i < devices_.size(); i++) { output.writeMessage(1, devices_.get(i)); } @@ -245,8 +278,7 @@ public int getSerializedSize() { size = 0; for (int i = 0; i < devices_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, devices_.get(i)); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, devices_.get(i)); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextPageToken_); @@ -259,17 +291,16 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.iot.v1.ListDevicesResponse)) { return super.equals(obj); } - com.google.cloud.iot.v1.ListDevicesResponse other = (com.google.cloud.iot.v1.ListDevicesResponse) obj; + com.google.cloud.iot.v1.ListDevicesResponse other = + (com.google.cloud.iot.v1.ListDevicesResponse) obj; - if (!getDevicesList() - .equals(other.getDevicesList())) return false; - if (!getNextPageToken() - .equals(other.getNextPageToken())) return false; + if (!getDevicesList().equals(other.getDevicesList())) return false; + if (!getNextPageToken().equals(other.getNextPageToken())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -292,118 +323,127 @@ public int hashCode() { return hash; } - public static com.google.cloud.iot.v1.ListDevicesResponse parseFrom( - java.nio.ByteBuffer data) + public static com.google.cloud.iot.v1.ListDevicesResponse parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.iot.v1.ListDevicesResponse parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.iot.v1.ListDevicesResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.iot.v1.ListDevicesResponse parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.iot.v1.ListDevicesResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.iot.v1.ListDevicesResponse parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.iot.v1.ListDevicesResponse 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.iot.v1.ListDevicesResponse parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.iot.v1.ListDevicesResponse parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.iot.v1.ListDevicesResponse parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.iot.v1.ListDevicesResponse parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.iot.v1.ListDevicesResponse parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.iot.v1.ListDevicesResponse parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.cloud.iot.v1.ListDevicesResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected 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 `ListDevices`.
    * 
* * Protobuf type {@code google.cloud.iot.v1.ListDevicesResponse} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.iot.v1.ListDevicesResponse) com.google.cloud.iot.v1.ListDevicesResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.iot.v1.DeviceManagerProto.internal_static_google_cloud_iot_v1_ListDevicesResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.iot.v1.DeviceManagerProto + .internal_static_google_cloud_iot_v1_ListDevicesResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.iot.v1.DeviceManagerProto.internal_static_google_cloud_iot_v1_ListDevicesResponse_fieldAccessorTable + return com.google.cloud.iot.v1.DeviceManagerProto + .internal_static_google_cloud_iot_v1_ListDevicesResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.iot.v1.ListDevicesResponse.class, com.google.cloud.iot.v1.ListDevicesResponse.Builder.class); + com.google.cloud.iot.v1.ListDevicesResponse.class, + com.google.cloud.iot.v1.ListDevicesResponse.Builder.class); } // Construct using com.google.cloud.iot.v1.ListDevicesResponse.newBuilder() @@ -411,17 +451,17 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { getDevicesFieldBuilder(); } } + @java.lang.Override public Builder clear() { super.clear(); @@ -437,9 +477,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.iot.v1.DeviceManagerProto.internal_static_google_cloud_iot_v1_ListDevicesResponse_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.iot.v1.DeviceManagerProto + .internal_static_google_cloud_iot_v1_ListDevicesResponse_descriptor; } @java.lang.Override @@ -458,7 +498,8 @@ public com.google.cloud.iot.v1.ListDevicesResponse build() { @java.lang.Override public com.google.cloud.iot.v1.ListDevicesResponse buildPartial() { - com.google.cloud.iot.v1.ListDevicesResponse result = new com.google.cloud.iot.v1.ListDevicesResponse(this); + com.google.cloud.iot.v1.ListDevicesResponse result = + new com.google.cloud.iot.v1.ListDevicesResponse(this); int from_bitField0_ = bitField0_; if (devicesBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { @@ -478,38 +519,39 @@ public com.google.cloud.iot.v1.ListDevicesResponse buildPartial() { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.iot.v1.ListDevicesResponse) { - return mergeFrom((com.google.cloud.iot.v1.ListDevicesResponse)other); + return mergeFrom((com.google.cloud.iot.v1.ListDevicesResponse) other); } else { super.mergeFrom(other); return this; @@ -536,9 +578,10 @@ public Builder mergeFrom(com.google.cloud.iot.v1.ListDevicesResponse other) { devicesBuilder_ = null; devices_ = other.devices_; bitField0_ = (bitField0_ & ~0x00000001); - devicesBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getDevicesFieldBuilder() : null; + devicesBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getDevicesFieldBuilder() + : null; } else { devicesBuilder_.addAllMessages(other.devices_); } @@ -576,21 +619,28 @@ public Builder mergeFrom( } return this; } + private int bitField0_; private java.util.List devices_ = - java.util.Collections.emptyList(); + java.util.Collections.emptyList(); + private void ensureDevicesIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { devices_ = new java.util.ArrayList(devices_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.iot.v1.Device, com.google.cloud.iot.v1.Device.Builder, com.google.cloud.iot.v1.DeviceOrBuilder> devicesBuilder_; + com.google.cloud.iot.v1.Device, + com.google.cloud.iot.v1.Device.Builder, + com.google.cloud.iot.v1.DeviceOrBuilder> + devicesBuilder_; /** + * + * *
      * The devices that match the request.
      * 
@@ -605,6 +655,8 @@ public java.util.List getDevicesList() { } } /** + * + * *
      * The devices that match the request.
      * 
@@ -619,6 +671,8 @@ public int getDevicesCount() { } } /** + * + * *
      * The devices that match the request.
      * 
@@ -633,14 +687,15 @@ public com.google.cloud.iot.v1.Device getDevices(int index) { } } /** + * + * *
      * The devices that match the request.
      * 
* * repeated .google.cloud.iot.v1.Device devices = 1; */ - public Builder setDevices( - int index, com.google.cloud.iot.v1.Device value) { + public Builder setDevices(int index, com.google.cloud.iot.v1.Device value) { if (devicesBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -654,14 +709,15 @@ public Builder setDevices( return this; } /** + * + * *
      * The devices that match the request.
      * 
* * repeated .google.cloud.iot.v1.Device devices = 1; */ - public Builder setDevices( - int index, com.google.cloud.iot.v1.Device.Builder builderForValue) { + public Builder setDevices(int index, com.google.cloud.iot.v1.Device.Builder builderForValue) { if (devicesBuilder_ == null) { ensureDevicesIsMutable(); devices_.set(index, builderForValue.build()); @@ -672,6 +728,8 @@ public Builder setDevices( return this; } /** + * + * *
      * The devices that match the request.
      * 
@@ -692,14 +750,15 @@ public Builder addDevices(com.google.cloud.iot.v1.Device value) { return this; } /** + * + * *
      * The devices that match the request.
      * 
* * repeated .google.cloud.iot.v1.Device devices = 1; */ - public Builder addDevices( - int index, com.google.cloud.iot.v1.Device value) { + public Builder addDevices(int index, com.google.cloud.iot.v1.Device value) { if (devicesBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -713,14 +772,15 @@ public Builder addDevices( return this; } /** + * + * *
      * The devices that match the request.
      * 
* * repeated .google.cloud.iot.v1.Device devices = 1; */ - public Builder addDevices( - com.google.cloud.iot.v1.Device.Builder builderForValue) { + public Builder addDevices(com.google.cloud.iot.v1.Device.Builder builderForValue) { if (devicesBuilder_ == null) { ensureDevicesIsMutable(); devices_.add(builderForValue.build()); @@ -731,14 +791,15 @@ public Builder addDevices( return this; } /** + * + * *
      * The devices that match the request.
      * 
* * repeated .google.cloud.iot.v1.Device devices = 1; */ - public Builder addDevices( - int index, com.google.cloud.iot.v1.Device.Builder builderForValue) { + public Builder addDevices(int index, com.google.cloud.iot.v1.Device.Builder builderForValue) { if (devicesBuilder_ == null) { ensureDevicesIsMutable(); devices_.add(index, builderForValue.build()); @@ -749,6 +810,8 @@ public Builder addDevices( return this; } /** + * + * *
      * The devices that match the request.
      * 
@@ -759,8 +822,7 @@ public Builder addAllDevices( java.lang.Iterable values) { if (devicesBuilder_ == null) { ensureDevicesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, devices_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, devices_); onChanged(); } else { devicesBuilder_.addAllMessages(values); @@ -768,6 +830,8 @@ public Builder addAllDevices( return this; } /** + * + * *
      * The devices that match the request.
      * 
@@ -785,6 +849,8 @@ public Builder clearDevices() { return this; } /** + * + * *
      * The devices that match the request.
      * 
@@ -802,39 +868,44 @@ public Builder removeDevices(int index) { return this; } /** + * + * *
      * The devices that match the request.
      * 
* * repeated .google.cloud.iot.v1.Device devices = 1; */ - public com.google.cloud.iot.v1.Device.Builder getDevicesBuilder( - int index) { + public com.google.cloud.iot.v1.Device.Builder getDevicesBuilder(int index) { return getDevicesFieldBuilder().getBuilder(index); } /** + * + * *
      * The devices that match the request.
      * 
* * repeated .google.cloud.iot.v1.Device devices = 1; */ - public com.google.cloud.iot.v1.DeviceOrBuilder getDevicesOrBuilder( - int index) { + public com.google.cloud.iot.v1.DeviceOrBuilder getDevicesOrBuilder(int index) { if (devicesBuilder_ == null) { - return devices_.get(index); } else { + return devices_.get(index); + } else { return devicesBuilder_.getMessageOrBuilder(index); } } /** + * + * *
      * The devices that match the request.
      * 
* * repeated .google.cloud.iot.v1.Device devices = 1; */ - public java.util.List - getDevicesOrBuilderList() { + public java.util.List + getDevicesOrBuilderList() { if (devicesBuilder_ != null) { return devicesBuilder_.getMessageOrBuilderList(); } else { @@ -842,6 +913,8 @@ public com.google.cloud.iot.v1.DeviceOrBuilder getDevicesOrBuilder( } } /** + * + * *
      * The devices that match the request.
      * 
@@ -849,42 +922,47 @@ public com.google.cloud.iot.v1.DeviceOrBuilder getDevicesOrBuilder( * repeated .google.cloud.iot.v1.Device devices = 1; */ public com.google.cloud.iot.v1.Device.Builder addDevicesBuilder() { - return getDevicesFieldBuilder().addBuilder( - com.google.cloud.iot.v1.Device.getDefaultInstance()); + return getDevicesFieldBuilder() + .addBuilder(com.google.cloud.iot.v1.Device.getDefaultInstance()); } /** + * + * *
      * The devices that match the request.
      * 
* * repeated .google.cloud.iot.v1.Device devices = 1; */ - public com.google.cloud.iot.v1.Device.Builder addDevicesBuilder( - int index) { - return getDevicesFieldBuilder().addBuilder( - index, com.google.cloud.iot.v1.Device.getDefaultInstance()); + public com.google.cloud.iot.v1.Device.Builder addDevicesBuilder(int index) { + return getDevicesFieldBuilder() + .addBuilder(index, com.google.cloud.iot.v1.Device.getDefaultInstance()); } /** + * + * *
      * The devices that match the request.
      * 
* * repeated .google.cloud.iot.v1.Device devices = 1; */ - public java.util.List - getDevicesBuilderList() { + public java.util.List getDevicesBuilderList() { return getDevicesFieldBuilder().getBuilderList(); } + private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.iot.v1.Device, com.google.cloud.iot.v1.Device.Builder, com.google.cloud.iot.v1.DeviceOrBuilder> + com.google.cloud.iot.v1.Device, + com.google.cloud.iot.v1.Device.Builder, + com.google.cloud.iot.v1.DeviceOrBuilder> getDevicesFieldBuilder() { if (devicesBuilder_ == null) { - devicesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.iot.v1.Device, com.google.cloud.iot.v1.Device.Builder, com.google.cloud.iot.v1.DeviceOrBuilder>( - devices_, - ((bitField0_ & 0x00000001) != 0), - getParentForChildren(), - isClean()); + devicesBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.iot.v1.Device, + com.google.cloud.iot.v1.Device.Builder, + com.google.cloud.iot.v1.DeviceOrBuilder>( + devices_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); devices_ = null; } return devicesBuilder_; @@ -892,19 +970,21 @@ public com.google.cloud.iot.v1.Device.Builder addDevicesBuilder( private java.lang.Object nextPageToken_ = ""; /** + * + * *
      * If not empty, indicates that there may be more devices that match the
      * request; this value should be passed in a new `ListDevicesRequest`.
      * 
* * 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; @@ -913,21 +993,22 @@ public java.lang.String getNextPageToken() { } } /** + * + * *
      * If not empty, indicates that there may be more devices that match the
      * request; this value should be passed in a new `ListDevicesRequest`.
      * 
* * 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 { @@ -935,64 +1016,71 @@ public java.lang.String getNextPageToken() { } } /** + * + * *
      * If not empty, indicates that there may be more devices that match the
      * request; this value should be passed in a new `ListDevicesRequest`.
      * 
* * 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; } /** + * + * *
      * If not empty, indicates that there may be more devices that match the
      * request; this value should be passed in a new `ListDevicesRequest`.
      * 
* * string next_page_token = 2; + * * @return This builder for chaining. */ public Builder clearNextPageToken() { - + nextPageToken_ = getDefaultInstance().getNextPageToken(); onChanged(); return this; } /** + * + * *
      * If not empty, indicates that there may be more devices that match the
      * request; this value should be passed in a new `ListDevicesRequest`.
      * 
* * string next_page_token = 2; + * * @param value The bytes for nextPageToken to set. * @return This builder for chaining. */ - public Builder setNextPageTokenBytes( - com.google.protobuf.ByteString value) { + public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + nextPageToken_ = value; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1002,12 +1090,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.iot.v1.ListDevicesResponse) } // @@protoc_insertion_point(class_scope:google.cloud.iot.v1.ListDevicesResponse) private static final com.google.cloud.iot.v1.ListDevicesResponse DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.iot.v1.ListDevicesResponse(); } @@ -1016,16 +1104,16 @@ public static com.google.cloud.iot.v1.ListDevicesResponse getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListDevicesResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ListDevicesResponse(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListDevicesResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ListDevicesResponse(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1040,6 +1128,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.iot.v1.ListDevicesResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1/proto-google-cloud-iot-v1/src/main/java/com/google/cloud/iot/v1/ListDevicesResponseOrBuilder.java b/proto-google-cloud-iot-v1/src/main/java/com/google/cloud/iot/v1/ListDevicesResponseOrBuilder.java similarity index 64% rename from owl-bot-staging/v1/proto-google-cloud-iot-v1/src/main/java/com/google/cloud/iot/v1/ListDevicesResponseOrBuilder.java rename to proto-google-cloud-iot-v1/src/main/java/com/google/cloud/iot/v1/ListDevicesResponseOrBuilder.java index a1c850e9..4aaf0e36 100644 --- a/owl-bot-staging/v1/proto-google-cloud-iot-v1/src/main/java/com/google/cloud/iot/v1/ListDevicesResponseOrBuilder.java +++ b/proto-google-cloud-iot-v1/src/main/java/com/google/cloud/iot/v1/ListDevicesResponseOrBuilder.java @@ -1,22 +1,41 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/iot/v1/device_manager.proto package com.google.cloud.iot.v1; -public interface ListDevicesResponseOrBuilder extends +public interface ListDevicesResponseOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.iot.v1.ListDevicesResponse) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * The devices that match the request.
    * 
* * repeated .google.cloud.iot.v1.Device devices = 1; */ - java.util.List - getDevicesList(); + java.util.List getDevicesList(); /** + * + * *
    * The devices that match the request.
    * 
@@ -25,6 +44,8 @@ public interface ListDevicesResponseOrBuilder extends */ com.google.cloud.iot.v1.Device getDevices(int index); /** + * + * *
    * The devices that match the request.
    * 
@@ -33,43 +54,50 @@ public interface ListDevicesResponseOrBuilder extends */ int getDevicesCount(); /** + * + * *
    * The devices that match the request.
    * 
* * repeated .google.cloud.iot.v1.Device devices = 1; */ - java.util.List - getDevicesOrBuilderList(); + java.util.List getDevicesOrBuilderList(); /** + * + * *
    * The devices that match the request.
    * 
* * repeated .google.cloud.iot.v1.Device devices = 1; */ - com.google.cloud.iot.v1.DeviceOrBuilder getDevicesOrBuilder( - int index); + com.google.cloud.iot.v1.DeviceOrBuilder getDevicesOrBuilder(int index); /** + * + * *
    * If not empty, indicates that there may be more devices that match the
    * request; this value should be passed in a new `ListDevicesRequest`.
    * 
* * string next_page_token = 2; + * * @return The nextPageToken. */ java.lang.String getNextPageToken(); /** + * + * *
    * If not empty, indicates that there may be more devices that match the
    * request; this value should be passed in a new `ListDevicesRequest`.
    * 
* * string next_page_token = 2; + * * @return The bytes for nextPageToken. */ - com.google.protobuf.ByteString - getNextPageTokenBytes(); + com.google.protobuf.ByteString getNextPageTokenBytes(); } diff --git a/owl-bot-staging/v1/proto-google-cloud-iot-v1/src/main/java/com/google/cloud/iot/v1/LocationName.java b/proto-google-cloud-iot-v1/src/main/java/com/google/cloud/iot/v1/LocationName.java similarity index 100% rename from owl-bot-staging/v1/proto-google-cloud-iot-v1/src/main/java/com/google/cloud/iot/v1/LocationName.java rename to proto-google-cloud-iot-v1/src/main/java/com/google/cloud/iot/v1/LocationName.java diff --git a/owl-bot-staging/v1/proto-google-cloud-iot-v1/src/main/java/com/google/cloud/iot/v1/LogLevel.java b/proto-google-cloud-iot-v1/src/main/java/com/google/cloud/iot/v1/LogLevel.java similarity index 70% rename from owl-bot-staging/v1/proto-google-cloud-iot-v1/src/main/java/com/google/cloud/iot/v1/LogLevel.java rename to proto-google-cloud-iot-v1/src/main/java/com/google/cloud/iot/v1/LogLevel.java index 248be34c..4e73594c 100644 --- a/owl-bot-staging/v1/proto-google-cloud-iot-v1/src/main/java/com/google/cloud/iot/v1/LogLevel.java +++ b/proto-google-cloud-iot-v1/src/main/java/com/google/cloud/iot/v1/LogLevel.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/iot/v1/resources.proto package com.google.cloud.iot.v1; /** + * + * *
  * **Beta Feature**
  * The logging verbosity for device activity. Specifies which events should be
@@ -14,9 +31,10 @@
  *
  * Protobuf enum {@code google.cloud.iot.v1.LogLevel}
  */
-public enum LogLevel
-    implements com.google.protobuf.ProtocolMessageEnum {
+public enum LogLevel implements com.google.protobuf.ProtocolMessageEnum {
   /**
+   *
+   *
    * 
    * No logging specified. If not specified, logging will be disabled.
    * 
@@ -25,6 +43,8 @@ public enum LogLevel */ LOG_LEVEL_UNSPECIFIED(0), /** + * + * *
    * Disables logging.
    * 
@@ -33,6 +53,8 @@ public enum LogLevel */ NONE(10), /** + * + * *
    * Error events will be logged.
    * 
@@ -41,6 +63,8 @@ public enum LogLevel */ ERROR(20), /** + * + * *
    * Informational events will be logged, such as connections and
    * disconnections.
@@ -50,6 +74,8 @@ public enum LogLevel
    */
   INFO(30),
   /**
+   *
+   *
    * 
    * All events will be logged.
    * 
@@ -61,6 +87,8 @@ public enum LogLevel ; /** + * + * *
    * No logging specified. If not specified, logging will be disabled.
    * 
@@ -69,6 +97,8 @@ public enum LogLevel */ public static final int LOG_LEVEL_UNSPECIFIED_VALUE = 0; /** + * + * *
    * Disables logging.
    * 
@@ -77,6 +107,8 @@ public enum LogLevel */ public static final int NONE_VALUE = 10; /** + * + * *
    * Error events will be logged.
    * 
@@ -85,6 +117,8 @@ public enum LogLevel */ public static final int ERROR_VALUE = 20; /** + * + * *
    * Informational events will be logged, such as connections and
    * disconnections.
@@ -94,6 +128,8 @@ public enum LogLevel
    */
   public static final int INFO_VALUE = 30;
   /**
+   *
+   *
    * 
    * All events will be logged.
    * 
@@ -102,7 +138,6 @@ public enum LogLevel */ public static final int DEBUG_VALUE = 40; - public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( @@ -127,51 +162,53 @@ public static LogLevel valueOf(int value) { */ public static LogLevel forNumber(int value) { switch (value) { - case 0: return LOG_LEVEL_UNSPECIFIED; - case 10: return NONE; - case 20: return ERROR; - case 30: return INFO; - case 40: return DEBUG; - default: return null; + case 0: + return LOG_LEVEL_UNSPECIFIED; + case 10: + return NONE; + case 20: + return ERROR; + case 30: + return INFO; + case 40: + return DEBUG; + 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< - LogLevel> internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public LogLevel findValueByNumber(int number) { - return LogLevel.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 LogLevel findValueByNumber(int number) { + return LogLevel.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.iot.v1.ResourcesProto.getDescriptor().getEnumTypes().get(2); } private static final LogLevel[] VALUES = values(); - public static LogLevel valueOf( - com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + public static LogLevel 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; @@ -187,4 +224,3 @@ private LogLevel(int value) { // @@protoc_insertion_point(enum_scope:google.cloud.iot.v1.LogLevel) } - diff --git a/owl-bot-staging/v1/proto-google-cloud-iot-v1/src/main/java/com/google/cloud/iot/v1/ModifyCloudToDeviceConfigRequest.java b/proto-google-cloud-iot-v1/src/main/java/com/google/cloud/iot/v1/ModifyCloudToDeviceConfigRequest.java similarity index 69% rename from owl-bot-staging/v1/proto-google-cloud-iot-v1/src/main/java/com/google/cloud/iot/v1/ModifyCloudToDeviceConfigRequest.java rename to proto-google-cloud-iot-v1/src/main/java/com/google/cloud/iot/v1/ModifyCloudToDeviceConfigRequest.java index 1863c95e..1fa6fbcc 100644 --- a/owl-bot-staging/v1/proto-google-cloud-iot-v1/src/main/java/com/google/cloud/iot/v1/ModifyCloudToDeviceConfigRequest.java +++ b/proto-google-cloud-iot-v1/src/main/java/com/google/cloud/iot/v1/ModifyCloudToDeviceConfigRequest.java @@ -1,24 +1,43 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/iot/v1/device_manager.proto package com.google.cloud.iot.v1; /** + * + * *
  * Request for `ModifyCloudToDeviceConfig`.
  * 
* * Protobuf type {@code google.cloud.iot.v1.ModifyCloudToDeviceConfigRequest} */ -public final class ModifyCloudToDeviceConfigRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class ModifyCloudToDeviceConfigRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.iot.v1.ModifyCloudToDeviceConfigRequest) ModifyCloudToDeviceConfigRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use ModifyCloudToDeviceConfigRequest.newBuilder() to construct. - private ModifyCloudToDeviceConfigRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + private ModifyCloudToDeviceConfigRequest( + com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private ModifyCloudToDeviceConfigRequest() { name_ = ""; binaryData_ = com.google.protobuf.ByteString.EMPTY; @@ -26,16 +45,15 @@ private ModifyCloudToDeviceConfigRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new ModifyCloudToDeviceConfigRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private ModifyCloudToDeviceConfigRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -54,29 +72,30 @@ private ModifyCloudToDeviceConfigRequest( case 0: done = true; break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); - - name_ = s; - break; - } - case 16: { - - versionToUpdate_ = input.readInt64(); - break; - } - case 26: { + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); - binaryData_ = input.readBytes(); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + name_ = s; + break; + } + case 16: + { + versionToUpdate_ = input.readInt64(); + break; + } + case 26: + { + binaryData_ = input.readBytes(); + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -84,36 +103,43 @@ private ModifyCloudToDeviceConfigRequest( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.iot.v1.DeviceManagerProto.internal_static_google_cloud_iot_v1_ModifyCloudToDeviceConfigRequest_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.iot.v1.DeviceManagerProto + .internal_static_google_cloud_iot_v1_ModifyCloudToDeviceConfigRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.iot.v1.DeviceManagerProto.internal_static_google_cloud_iot_v1_ModifyCloudToDeviceConfigRequest_fieldAccessorTable + return com.google.cloud.iot.v1.DeviceManagerProto + .internal_static_google_cloud_iot_v1_ModifyCloudToDeviceConfigRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.iot.v1.ModifyCloudToDeviceConfigRequest.class, com.google.cloud.iot.v1.ModifyCloudToDeviceConfigRequest.Builder.class); + com.google.cloud.iot.v1.ModifyCloudToDeviceConfigRequest.class, + com.google.cloud.iot.v1.ModifyCloudToDeviceConfigRequest.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** + * + * *
    * Required. The name of the device. For example,
    * `projects/p0/locations/us-central1/registries/registry0/devices/device0` or
    * `projects/p0/locations/us-central1/registries/registry0/devices/{num_id}`.
    * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The name. */ @java.lang.Override @@ -122,31 +148,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. The name of the device. For example,
    * `projects/p0/locations/us-central1/registries/registry0/devices/device0` or
    * `projects/p0/locations/us-central1/registries/registry0/devices/{num_id}`.
    * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString - getNameBytes() { + public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -157,6 +185,8 @@ public java.lang.String getName() { public static final int VERSION_TO_UPDATE_FIELD_NUMBER = 2; private long versionToUpdate_; /** + * + * *
    * The version number to update. If this value is zero, it will not check the
    * version number of the server and will always update the current version;
@@ -166,6 +196,7 @@ public java.lang.String getName() {
    * 
* * int64 version_to_update = 2; + * * @return The versionToUpdate. */ @java.lang.Override @@ -176,11 +207,14 @@ public long getVersionToUpdate() { public static final int BINARY_DATA_FIELD_NUMBER = 3; private com.google.protobuf.ByteString binaryData_; /** + * + * *
    * Required. The configuration data for the device.
    * 
* * bytes binary_data = 3 [(.google.api.field_behavior) = REQUIRED]; + * * @return The binaryData. */ @java.lang.Override @@ -189,6 +223,7 @@ public com.google.protobuf.ByteString getBinaryData() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -200,8 +235,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.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_); } @@ -224,12 +258,10 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); } if (versionToUpdate_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeInt64Size(2, versionToUpdate_); + size += com.google.protobuf.CodedOutputStream.computeInt64Size(2, versionToUpdate_); } if (!binaryData_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(3, binaryData_); + size += com.google.protobuf.CodedOutputStream.computeBytesSize(3, binaryData_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -239,19 +271,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.iot.v1.ModifyCloudToDeviceConfigRequest)) { return super.equals(obj); } - com.google.cloud.iot.v1.ModifyCloudToDeviceConfigRequest other = (com.google.cloud.iot.v1.ModifyCloudToDeviceConfigRequest) obj; + com.google.cloud.iot.v1.ModifyCloudToDeviceConfigRequest other = + (com.google.cloud.iot.v1.ModifyCloudToDeviceConfigRequest) obj; - if (!getName() - .equals(other.getName())) return false; - if (getVersionToUpdate() - != other.getVersionToUpdate()) return false; - if (!getBinaryData() - .equals(other.getBinaryData())) return false; + if (!getName().equals(other.getName())) return false; + if (getVersionToUpdate() != other.getVersionToUpdate()) return false; + if (!getBinaryData().equals(other.getBinaryData())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -266,8 +296,7 @@ public int hashCode() { hash = (37 * hash) + NAME_FIELD_NUMBER; hash = (53 * hash) + getName().hashCode(); hash = (37 * hash) + VERSION_TO_UPDATE_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getVersionToUpdate()); + hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getVersionToUpdate()); hash = (37 * hash) + BINARY_DATA_FIELD_NUMBER; hash = (53 * hash) + getBinaryData().hashCode(); hash = (29 * hash) + unknownFields.hashCode(); @@ -276,117 +305,127 @@ public int hashCode() { } public static com.google.cloud.iot.v1.ModifyCloudToDeviceConfigRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.iot.v1.ModifyCloudToDeviceConfigRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.iot.v1.ModifyCloudToDeviceConfigRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.iot.v1.ModifyCloudToDeviceConfigRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.iot.v1.ModifyCloudToDeviceConfigRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.iot.v1.ModifyCloudToDeviceConfigRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.iot.v1.ModifyCloudToDeviceConfigRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.iot.v1.ModifyCloudToDeviceConfigRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.iot.v1.ModifyCloudToDeviceConfigRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.iot.v1.ModifyCloudToDeviceConfigRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.iot.v1.ModifyCloudToDeviceConfigRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.iot.v1.ModifyCloudToDeviceConfigRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.iot.v1.ModifyCloudToDeviceConfigRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.iot.v1.ModifyCloudToDeviceConfigRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.iot.v1.ModifyCloudToDeviceConfigRequest prototype) { + + public static Builder newBuilder( + com.google.cloud.iot.v1.ModifyCloudToDeviceConfigRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected 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 `ModifyCloudToDeviceConfig`.
    * 
* * Protobuf type {@code google.cloud.iot.v1.ModifyCloudToDeviceConfigRequest} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.iot.v1.ModifyCloudToDeviceConfigRequest) com.google.cloud.iot.v1.ModifyCloudToDeviceConfigRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.iot.v1.DeviceManagerProto.internal_static_google_cloud_iot_v1_ModifyCloudToDeviceConfigRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.iot.v1.DeviceManagerProto + .internal_static_google_cloud_iot_v1_ModifyCloudToDeviceConfigRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.iot.v1.DeviceManagerProto.internal_static_google_cloud_iot_v1_ModifyCloudToDeviceConfigRequest_fieldAccessorTable + return com.google.cloud.iot.v1.DeviceManagerProto + .internal_static_google_cloud_iot_v1_ModifyCloudToDeviceConfigRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.iot.v1.ModifyCloudToDeviceConfigRequest.class, com.google.cloud.iot.v1.ModifyCloudToDeviceConfigRequest.Builder.class); + com.google.cloud.iot.v1.ModifyCloudToDeviceConfigRequest.class, + com.google.cloud.iot.v1.ModifyCloudToDeviceConfigRequest.Builder.class); } // Construct using com.google.cloud.iot.v1.ModifyCloudToDeviceConfigRequest.newBuilder() @@ -394,16 +433,15 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -417,9 +455,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.iot.v1.DeviceManagerProto.internal_static_google_cloud_iot_v1_ModifyCloudToDeviceConfigRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.iot.v1.DeviceManagerProto + .internal_static_google_cloud_iot_v1_ModifyCloudToDeviceConfigRequest_descriptor; } @java.lang.Override @@ -438,7 +476,8 @@ public com.google.cloud.iot.v1.ModifyCloudToDeviceConfigRequest build() { @java.lang.Override public com.google.cloud.iot.v1.ModifyCloudToDeviceConfigRequest buildPartial() { - com.google.cloud.iot.v1.ModifyCloudToDeviceConfigRequest result = new com.google.cloud.iot.v1.ModifyCloudToDeviceConfigRequest(this); + com.google.cloud.iot.v1.ModifyCloudToDeviceConfigRequest result = + new com.google.cloud.iot.v1.ModifyCloudToDeviceConfigRequest(this); result.name_ = name_; result.versionToUpdate_ = versionToUpdate_; result.binaryData_ = binaryData_; @@ -450,38 +489,39 @@ public com.google.cloud.iot.v1.ModifyCloudToDeviceConfigRequest buildPartial() { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.iot.v1.ModifyCloudToDeviceConfigRequest) { - return mergeFrom((com.google.cloud.iot.v1.ModifyCloudToDeviceConfigRequest)other); + return mergeFrom((com.google.cloud.iot.v1.ModifyCloudToDeviceConfigRequest) other); } else { super.mergeFrom(other); return this; @@ -489,7 +529,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.iot.v1.ModifyCloudToDeviceConfigRequest other) { - if (other == com.google.cloud.iot.v1.ModifyCloudToDeviceConfigRequest.getDefaultInstance()) return this; + if (other == com.google.cloud.iot.v1.ModifyCloudToDeviceConfigRequest.getDefaultInstance()) + return this; if (!other.getName().isEmpty()) { name_ = other.name_; onChanged(); @@ -519,7 +560,8 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.iot.v1.ModifyCloudToDeviceConfigRequest) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.iot.v1.ModifyCloudToDeviceConfigRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -531,20 +573,24 @@ public Builder mergeFrom( private java.lang.Object name_ = ""; /** + * + * *
      * Required. The name of the device. For example,
      * `projects/p0/locations/us-central1/registries/registry0/devices/device0` or
      * `projects/p0/locations/us-central1/registries/registry0/devices/{num_id}`.
      * 
* - * string name = 1 [(.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; @@ -553,22 +599,25 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. The name of the device. For example,
      * `projects/p0/locations/us-central1/registries/registry0/devices/device0` or
      * `projects/p0/locations/us-central1/registries/registry0/devices/{num_id}`.
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for name. */ - public com.google.protobuf.ByteString - getNameBytes() { + public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -576,67 +625,82 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. The name of the device. For example,
      * `projects/p0/locations/us-central1/registries/registry0/devices/device0` or
      * `projects/p0/locations/us-central1/registries/registry0/devices/{num_id}`.
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The name to set. * @return This builder for chaining. */ - public Builder setName( - java.lang.String value) { + public Builder setName(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + name_ = value; onChanged(); return this; } /** + * + * *
      * Required. The name of the device. For example,
      * `projects/p0/locations/us-central1/registries/registry0/devices/device0` or
      * `projects/p0/locations/us-central1/registries/registry0/devices/{num_id}`.
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return This builder for chaining. */ public Builder clearName() { - + name_ = getDefaultInstance().getName(); onChanged(); return this; } /** + * + * *
      * Required. The name of the device. For example,
      * `projects/p0/locations/us-central1/registries/registry0/devices/device0` or
      * `projects/p0/locations/us-central1/registries/registry0/devices/{num_id}`.
      * 
* - * 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 long versionToUpdate_ ; + private long versionToUpdate_; /** + * + * *
      * The version number to update. If this value is zero, it will not check the
      * version number of the server and will always update the current version;
@@ -646,6 +710,7 @@ public Builder setNameBytes(
      * 
* * int64 version_to_update = 2; + * * @return The versionToUpdate. */ @java.lang.Override @@ -653,6 +718,8 @@ public long getVersionToUpdate() { return versionToUpdate_; } /** + * + * *
      * The version number to update. If this value is zero, it will not check the
      * version number of the server and will always update the current version;
@@ -662,16 +729,19 @@ public long getVersionToUpdate() {
      * 
* * int64 version_to_update = 2; + * * @param value The versionToUpdate to set. * @return This builder for chaining. */ public Builder setVersionToUpdate(long value) { - + versionToUpdate_ = value; onChanged(); return this; } /** + * + * *
      * The version number to update. If this value is zero, it will not check the
      * version number of the server and will always update the current version;
@@ -681,10 +751,11 @@ public Builder setVersionToUpdate(long value) {
      * 
* * int64 version_to_update = 2; + * * @return This builder for chaining. */ public Builder clearVersionToUpdate() { - + versionToUpdate_ = 0L; onChanged(); return this; @@ -692,11 +763,14 @@ public Builder clearVersionToUpdate() { private com.google.protobuf.ByteString binaryData_ = com.google.protobuf.ByteString.EMPTY; /** + * + * *
      * Required. The configuration data for the device.
      * 
* * bytes binary_data = 3 [(.google.api.field_behavior) = REQUIRED]; + * * @return The binaryData. */ @java.lang.Override @@ -704,40 +778,46 @@ public com.google.protobuf.ByteString getBinaryData() { return binaryData_; } /** + * + * *
      * Required. The configuration data for the device.
      * 
* * bytes binary_data = 3 [(.google.api.field_behavior) = REQUIRED]; + * * @param value The binaryData to set. * @return This builder for chaining. */ public Builder setBinaryData(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + binaryData_ = value; onChanged(); return this; } /** + * + * *
      * Required. The configuration data for the device.
      * 
* * bytes binary_data = 3 [(.google.api.field_behavior) = REQUIRED]; + * * @return This builder for chaining. */ public Builder clearBinaryData() { - + binaryData_ = getDefaultInstance().getBinaryData(); onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -747,12 +827,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.iot.v1.ModifyCloudToDeviceConfigRequest) } // @@protoc_insertion_point(class_scope:google.cloud.iot.v1.ModifyCloudToDeviceConfigRequest) private static final com.google.cloud.iot.v1.ModifyCloudToDeviceConfigRequest DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.iot.v1.ModifyCloudToDeviceConfigRequest(); } @@ -761,16 +841,16 @@ public static com.google.cloud.iot.v1.ModifyCloudToDeviceConfigRequest getDefaul return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ModifyCloudToDeviceConfigRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ModifyCloudToDeviceConfigRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ModifyCloudToDeviceConfigRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ModifyCloudToDeviceConfigRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -785,6 +865,4 @@ public com.google.protobuf.Parser getParserFor public com.google.cloud.iot.v1.ModifyCloudToDeviceConfigRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1/proto-google-cloud-iot-v1/src/main/java/com/google/cloud/iot/v1/ModifyCloudToDeviceConfigRequestOrBuilder.java b/proto-google-cloud-iot-v1/src/main/java/com/google/cloud/iot/v1/ModifyCloudToDeviceConfigRequestOrBuilder.java similarity index 61% rename from owl-bot-staging/v1/proto-google-cloud-iot-v1/src/main/java/com/google/cloud/iot/v1/ModifyCloudToDeviceConfigRequestOrBuilder.java rename to proto-google-cloud-iot-v1/src/main/java/com/google/cloud/iot/v1/ModifyCloudToDeviceConfigRequestOrBuilder.java index 11eb5c1d..ee851ed3 100644 --- a/owl-bot-staging/v1/proto-google-cloud-iot-v1/src/main/java/com/google/cloud/iot/v1/ModifyCloudToDeviceConfigRequestOrBuilder.java +++ b/proto-google-cloud-iot-v1/src/main/java/com/google/cloud/iot/v1/ModifyCloudToDeviceConfigRequestOrBuilder.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/iot/v1/device_manager.proto package com.google.cloud.iot.v1; -public interface ModifyCloudToDeviceConfigRequestOrBuilder extends +public interface ModifyCloudToDeviceConfigRequestOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.iot.v1.ModifyCloudToDeviceConfigRequest) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Required. The name of the device. For example,
    * `projects/p0/locations/us-central1/registries/registry0/devices/device0` or
    * `projects/p0/locations/us-central1/registries/registry0/devices/{num_id}`.
    * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The name. */ java.lang.String getName(); /** + * + * *
    * Required. The name of the device. For example,
    * `projects/p0/locations/us-central1/registries/registry0/devices/device0` or
    * `projects/p0/locations/us-central1/registries/registry0/devices/{num_id}`.
    * 
* - * string name = 1 [(.google.api.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(); /** + * + * *
    * The version number to update. If this value is zero, it will not check the
    * version number of the server and will always update the current version;
@@ -41,16 +68,20 @@ public interface ModifyCloudToDeviceConfigRequestOrBuilder extends
    * 
* * int64 version_to_update = 2; + * * @return The versionToUpdate. */ long getVersionToUpdate(); /** + * + * *
    * Required. The configuration data for the device.
    * 
* * bytes binary_data = 3 [(.google.api.field_behavior) = REQUIRED]; + * * @return The binaryData. */ com.google.protobuf.ByteString getBinaryData(); diff --git a/owl-bot-staging/v1/proto-google-cloud-iot-v1/src/main/java/com/google/cloud/iot/v1/MqttConfig.java b/proto-google-cloud-iot-v1/src/main/java/com/google/cloud/iot/v1/MqttConfig.java similarity index 70% rename from owl-bot-staging/v1/proto-google-cloud-iot-v1/src/main/java/com/google/cloud/iot/v1/MqttConfig.java rename to proto-google-cloud-iot-v1/src/main/java/com/google/cloud/iot/v1/MqttConfig.java index fca8551c..1d206754 100644 --- a/owl-bot-staging/v1/proto-google-cloud-iot-v1/src/main/java/com/google/cloud/iot/v1/MqttConfig.java +++ b/proto-google-cloud-iot-v1/src/main/java/com/google/cloud/iot/v1/MqttConfig.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/iot/v1/resources.proto package com.google.cloud.iot.v1; /** + * + * *
  * The configuration of MQTT for a device registry.
  * 
* * Protobuf type {@code google.cloud.iot.v1.MqttConfig} */ -public final class MqttConfig extends - com.google.protobuf.GeneratedMessageV3 implements +public final class MqttConfig extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.iot.v1.MqttConfig) MqttConfigOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use MqttConfig.newBuilder() to construct. private MqttConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private MqttConfig() { mqttEnabledState_ = 0; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new MqttConfig(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private MqttConfig( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -53,19 +70,20 @@ private MqttConfig( case 0: done = true; break; - case 8: { - int rawValue = input.readEnum(); + case 8: + { + int rawValue = input.readEnum(); - mqttEnabledState_ = rawValue; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + mqttEnabledState_ = rawValue; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -73,56 +91,68 @@ private MqttConfig( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.iot.v1.ResourcesProto.internal_static_google_cloud_iot_v1_MqttConfig_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.iot.v1.ResourcesProto + .internal_static_google_cloud_iot_v1_MqttConfig_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.iot.v1.ResourcesProto.internal_static_google_cloud_iot_v1_MqttConfig_fieldAccessorTable + return com.google.cloud.iot.v1.ResourcesProto + .internal_static_google_cloud_iot_v1_MqttConfig_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.iot.v1.MqttConfig.class, com.google.cloud.iot.v1.MqttConfig.Builder.class); + com.google.cloud.iot.v1.MqttConfig.class, + com.google.cloud.iot.v1.MqttConfig.Builder.class); } public static final int MQTT_ENABLED_STATE_FIELD_NUMBER = 1; private int mqttEnabledState_; /** + * + * *
    * If enabled, allows connections using the MQTT protocol. Otherwise, MQTT
    * connections to this registry will fail.
    * 
* * .google.cloud.iot.v1.MqttState mqtt_enabled_state = 1; + * * @return The enum numeric value on the wire for mqttEnabledState. */ - @java.lang.Override public int getMqttEnabledStateValue() { + @java.lang.Override + public int getMqttEnabledStateValue() { return mqttEnabledState_; } /** + * + * *
    * If enabled, allows connections using the MQTT protocol. Otherwise, MQTT
    * connections to this registry will fail.
    * 
* * .google.cloud.iot.v1.MqttState mqtt_enabled_state = 1; + * * @return The mqttEnabledState. */ - @java.lang.Override public com.google.cloud.iot.v1.MqttState getMqttEnabledState() { + @java.lang.Override + public com.google.cloud.iot.v1.MqttState getMqttEnabledState() { @SuppressWarnings("deprecation") - com.google.cloud.iot.v1.MqttState result = com.google.cloud.iot.v1.MqttState.valueOf(mqttEnabledState_); + com.google.cloud.iot.v1.MqttState result = + com.google.cloud.iot.v1.MqttState.valueOf(mqttEnabledState_); return result == null ? com.google.cloud.iot.v1.MqttState.UNRECOGNIZED : result; } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -134,8 +164,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (mqttEnabledState_ != com.google.cloud.iot.v1.MqttState.MQTT_STATE_UNSPECIFIED.getNumber()) { output.writeEnum(1, mqttEnabledState_); } @@ -149,8 +178,7 @@ public int getSerializedSize() { size = 0; if (mqttEnabledState_ != com.google.cloud.iot.v1.MqttState.MQTT_STATE_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(1, mqttEnabledState_); + size += com.google.protobuf.CodedOutputStream.computeEnumSize(1, mqttEnabledState_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -160,7 +188,7 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.iot.v1.MqttConfig)) { return super.equals(obj); @@ -186,118 +214,126 @@ public int hashCode() { return hash; } - public static com.google.cloud.iot.v1.MqttConfig parseFrom( - java.nio.ByteBuffer data) + public static com.google.cloud.iot.v1.MqttConfig parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.iot.v1.MqttConfig parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.iot.v1.MqttConfig parseFrom( - com.google.protobuf.ByteString data) + + public static com.google.cloud.iot.v1.MqttConfig parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.iot.v1.MqttConfig parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.iot.v1.MqttConfig parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.iot.v1.MqttConfig parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.iot.v1.MqttConfig 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.iot.v1.MqttConfig parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.iot.v1.MqttConfig 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.iot.v1.MqttConfig parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.iot.v1.MqttConfig parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.iot.v1.MqttConfig parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.cloud.iot.v1.MqttConfig prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * The configuration of MQTT for a device registry.
    * 
* * Protobuf type {@code google.cloud.iot.v1.MqttConfig} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.iot.v1.MqttConfig) com.google.cloud.iot.v1.MqttConfigOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.iot.v1.ResourcesProto.internal_static_google_cloud_iot_v1_MqttConfig_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.iot.v1.ResourcesProto + .internal_static_google_cloud_iot_v1_MqttConfig_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.iot.v1.ResourcesProto.internal_static_google_cloud_iot_v1_MqttConfig_fieldAccessorTable + return com.google.cloud.iot.v1.ResourcesProto + .internal_static_google_cloud_iot_v1_MqttConfig_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.iot.v1.MqttConfig.class, com.google.cloud.iot.v1.MqttConfig.Builder.class); + com.google.cloud.iot.v1.MqttConfig.class, + com.google.cloud.iot.v1.MqttConfig.Builder.class); } // Construct using com.google.cloud.iot.v1.MqttConfig.newBuilder() @@ -305,16 +341,15 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -324,9 +359,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.iot.v1.ResourcesProto.internal_static_google_cloud_iot_v1_MqttConfig_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.iot.v1.ResourcesProto + .internal_static_google_cloud_iot_v1_MqttConfig_descriptor; } @java.lang.Override @@ -355,38 +390,39 @@ public com.google.cloud.iot.v1.MqttConfig buildPartial() { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.iot.v1.MqttConfig) { - return mergeFrom((com.google.cloud.iot.v1.MqttConfig)other); + return mergeFrom((com.google.cloud.iot.v1.MqttConfig) other); } else { super.mergeFrom(other); return this; @@ -429,55 +465,69 @@ public Builder mergeFrom( private int mqttEnabledState_ = 0; /** + * + * *
      * If enabled, allows connections using the MQTT protocol. Otherwise, MQTT
      * connections to this registry will fail.
      * 
* * .google.cloud.iot.v1.MqttState mqtt_enabled_state = 1; + * * @return The enum numeric value on the wire for mqttEnabledState. */ - @java.lang.Override public int getMqttEnabledStateValue() { + @java.lang.Override + public int getMqttEnabledStateValue() { return mqttEnabledState_; } /** + * + * *
      * If enabled, allows connections using the MQTT protocol. Otherwise, MQTT
      * connections to this registry will fail.
      * 
* * .google.cloud.iot.v1.MqttState mqtt_enabled_state = 1; + * * @param value The enum numeric value on the wire for mqttEnabledState to set. * @return This builder for chaining. */ public Builder setMqttEnabledStateValue(int value) { - + mqttEnabledState_ = value; onChanged(); return this; } /** + * + * *
      * If enabled, allows connections using the MQTT protocol. Otherwise, MQTT
      * connections to this registry will fail.
      * 
* * .google.cloud.iot.v1.MqttState mqtt_enabled_state = 1; + * * @return The mqttEnabledState. */ @java.lang.Override public com.google.cloud.iot.v1.MqttState getMqttEnabledState() { @SuppressWarnings("deprecation") - com.google.cloud.iot.v1.MqttState result = com.google.cloud.iot.v1.MqttState.valueOf(mqttEnabledState_); + com.google.cloud.iot.v1.MqttState result = + com.google.cloud.iot.v1.MqttState.valueOf(mqttEnabledState_); return result == null ? com.google.cloud.iot.v1.MqttState.UNRECOGNIZED : result; } /** + * + * *
      * If enabled, allows connections using the MQTT protocol. Otherwise, MQTT
      * connections to this registry will fail.
      * 
* * .google.cloud.iot.v1.MqttState mqtt_enabled_state = 1; + * * @param value The mqttEnabledState to set. * @return This builder for chaining. */ @@ -485,29 +535,32 @@ public Builder setMqttEnabledState(com.google.cloud.iot.v1.MqttState value) { if (value == null) { throw new NullPointerException(); } - + mqttEnabledState_ = value.getNumber(); onChanged(); return this; } /** + * + * *
      * If enabled, allows connections using the MQTT protocol. Otherwise, MQTT
      * connections to this registry will fail.
      * 
* * .google.cloud.iot.v1.MqttState mqtt_enabled_state = 1; + * * @return This builder for chaining. */ public Builder clearMqttEnabledState() { - + mqttEnabledState_ = 0; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -517,12 +570,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.iot.v1.MqttConfig) } // @@protoc_insertion_point(class_scope:google.cloud.iot.v1.MqttConfig) private static final com.google.cloud.iot.v1.MqttConfig DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.iot.v1.MqttConfig(); } @@ -531,16 +584,16 @@ public static com.google.cloud.iot.v1.MqttConfig getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public MqttConfig parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new MqttConfig(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public MqttConfig parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new MqttConfig(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -555,6 +608,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.iot.v1.MqttConfig getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1/proto-google-cloud-iot-v1/src/main/java/com/google/cloud/iot/v1/MqttConfigOrBuilder.java b/proto-google-cloud-iot-v1/src/main/java/com/google/cloud/iot/v1/MqttConfigOrBuilder.java similarity index 58% rename from owl-bot-staging/v1/proto-google-cloud-iot-v1/src/main/java/com/google/cloud/iot/v1/MqttConfigOrBuilder.java rename to proto-google-cloud-iot-v1/src/main/java/com/google/cloud/iot/v1/MqttConfigOrBuilder.java index 2fe5f5e1..897b7f5e 100644 --- a/owl-bot-staging/v1/proto-google-cloud-iot-v1/src/main/java/com/google/cloud/iot/v1/MqttConfigOrBuilder.java +++ b/proto-google-cloud-iot-v1/src/main/java/com/google/cloud/iot/v1/MqttConfigOrBuilder.java @@ -1,29 +1,51 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/iot/v1/resources.proto package com.google.cloud.iot.v1; -public interface MqttConfigOrBuilder extends +public interface MqttConfigOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.iot.v1.MqttConfig) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * If enabled, allows connections using the MQTT protocol. Otherwise, MQTT
    * connections to this registry will fail.
    * 
* * .google.cloud.iot.v1.MqttState mqtt_enabled_state = 1; + * * @return The enum numeric value on the wire for mqttEnabledState. */ int getMqttEnabledStateValue(); /** + * + * *
    * If enabled, allows connections using the MQTT protocol. Otherwise, MQTT
    * connections to this registry will fail.
    * 
* * .google.cloud.iot.v1.MqttState mqtt_enabled_state = 1; + * * @return The mqttEnabledState. */ com.google.cloud.iot.v1.MqttState getMqttEnabledState(); diff --git a/owl-bot-staging/v1/proto-google-cloud-iot-v1/src/main/java/com/google/cloud/iot/v1/MqttState.java b/proto-google-cloud-iot-v1/src/main/java/com/google/cloud/iot/v1/MqttState.java similarity index 67% rename from owl-bot-staging/v1/proto-google-cloud-iot-v1/src/main/java/com/google/cloud/iot/v1/MqttState.java rename to proto-google-cloud-iot-v1/src/main/java/com/google/cloud/iot/v1/MqttState.java index 8e2c46cf..b0de10ee 100644 --- a/owl-bot-staging/v1/proto-google-cloud-iot-v1/src/main/java/com/google/cloud/iot/v1/MqttState.java +++ b/proto-google-cloud-iot-v1/src/main/java/com/google/cloud/iot/v1/MqttState.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/iot/v1/resources.proto package com.google.cloud.iot.v1; /** + * + * *
  * Indicates whether an MQTT connection is enabled or disabled. See the field
  * description for details.
@@ -11,9 +28,10 @@
  *
  * Protobuf enum {@code google.cloud.iot.v1.MqttState}
  */
-public enum MqttState
-    implements com.google.protobuf.ProtocolMessageEnum {
+public enum MqttState implements com.google.protobuf.ProtocolMessageEnum {
   /**
+   *
+   *
    * 
    * No MQTT state specified. If not specified, MQTT will be enabled by default.
    * 
@@ -22,6 +40,8 @@ public enum MqttState */ MQTT_STATE_UNSPECIFIED(0), /** + * + * *
    * Enables a MQTT connection.
    * 
@@ -30,6 +50,8 @@ public enum MqttState */ MQTT_ENABLED(1), /** + * + * *
    * Disables a MQTT connection.
    * 
@@ -41,6 +63,8 @@ public enum MqttState ; /** + * + * *
    * No MQTT state specified. If not specified, MQTT will be enabled by default.
    * 
@@ -49,6 +73,8 @@ public enum MqttState */ public static final int MQTT_STATE_UNSPECIFIED_VALUE = 0; /** + * + * *
    * Enables a MQTT connection.
    * 
@@ -57,6 +83,8 @@ public enum MqttState */ public static final int MQTT_ENABLED_VALUE = 1; /** + * + * *
    * Disables a MQTT connection.
    * 
@@ -65,7 +93,6 @@ public enum MqttState */ public static final int MQTT_DISABLED_VALUE = 2; - public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( @@ -90,49 +117,49 @@ public static MqttState valueOf(int value) { */ public static MqttState forNumber(int value) { switch (value) { - case 0: return MQTT_STATE_UNSPECIFIED; - case 1: return MQTT_ENABLED; - case 2: return MQTT_DISABLED; - default: return null; + case 0: + return MQTT_STATE_UNSPECIFIED; + case 1: + return MQTT_ENABLED; + case 2: + return MQTT_DISABLED; + 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< - MqttState> internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public MqttState findValueByNumber(int number) { - return MqttState.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 MqttState findValueByNumber(int number) { + return MqttState.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.iot.v1.ResourcesProto.getDescriptor().getEnumTypes().get(0); } private static final MqttState[] VALUES = values(); - public static MqttState valueOf( - com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + public static MqttState 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; @@ -148,4 +175,3 @@ private MqttState(int value) { // @@protoc_insertion_point(enum_scope:google.cloud.iot.v1.MqttState) } - diff --git a/owl-bot-staging/v1/proto-google-cloud-iot-v1/src/main/java/com/google/cloud/iot/v1/PublicKeyCertificate.java b/proto-google-cloud-iot-v1/src/main/java/com/google/cloud/iot/v1/PublicKeyCertificate.java similarity index 70% rename from owl-bot-staging/v1/proto-google-cloud-iot-v1/src/main/java/com/google/cloud/iot/v1/PublicKeyCertificate.java rename to proto-google-cloud-iot-v1/src/main/java/com/google/cloud/iot/v1/PublicKeyCertificate.java index 2b72b053..5247291e 100644 --- a/owl-bot-staging/v1/proto-google-cloud-iot-v1/src/main/java/com/google/cloud/iot/v1/PublicKeyCertificate.java +++ b/proto-google-cloud-iot-v1/src/main/java/com/google/cloud/iot/v1/PublicKeyCertificate.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/iot/v1/resources.proto package com.google.cloud.iot.v1; /** + * + * *
  * A public key certificate format and data.
  * 
* * Protobuf type {@code google.cloud.iot.v1.PublicKeyCertificate} */ -public final class PublicKeyCertificate extends - com.google.protobuf.GeneratedMessageV3 implements +public final class PublicKeyCertificate extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.iot.v1.PublicKeyCertificate) PublicKeyCertificateOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use PublicKeyCertificate.newBuilder() to construct. private PublicKeyCertificate(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private PublicKeyCertificate() { format_ = 0; certificate_ = ""; @@ -26,16 +44,15 @@ private PublicKeyCertificate() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new PublicKeyCertificate(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private PublicKeyCertificate( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -54,38 +71,43 @@ private PublicKeyCertificate( case 0: done = true; break; - case 8: { - int rawValue = input.readEnum(); - - format_ = rawValue; - break; - } - case 18: { - java.lang.String s = input.readStringRequireUtf8(); + case 8: + { + int rawValue = input.readEnum(); - certificate_ = s; - break; - } - case 26: { - com.google.cloud.iot.v1.X509CertificateDetails.Builder subBuilder = null; - if (x509Details_ != null) { - subBuilder = x509Details_.toBuilder(); + format_ = rawValue; + break; } - x509Details_ = input.readMessage(com.google.cloud.iot.v1.X509CertificateDetails.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(x509Details_); - x509Details_ = subBuilder.buildPartial(); + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); + + certificate_ = s; + break; } + case 26: + { + com.google.cloud.iot.v1.X509CertificateDetails.Builder subBuilder = null; + if (x509Details_ != null) { + subBuilder = x509Details_.toBuilder(); + } + x509Details_ = + input.readMessage( + com.google.cloud.iot.v1.X509CertificateDetails.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(x509Details_); + x509Details_ = 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,61 +115,77 @@ private PublicKeyCertificate( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.iot.v1.ResourcesProto.internal_static_google_cloud_iot_v1_PublicKeyCertificate_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.iot.v1.ResourcesProto + .internal_static_google_cloud_iot_v1_PublicKeyCertificate_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.iot.v1.ResourcesProto.internal_static_google_cloud_iot_v1_PublicKeyCertificate_fieldAccessorTable + return com.google.cloud.iot.v1.ResourcesProto + .internal_static_google_cloud_iot_v1_PublicKeyCertificate_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.iot.v1.PublicKeyCertificate.class, com.google.cloud.iot.v1.PublicKeyCertificate.Builder.class); + com.google.cloud.iot.v1.PublicKeyCertificate.class, + com.google.cloud.iot.v1.PublicKeyCertificate.Builder.class); } public static final int FORMAT_FIELD_NUMBER = 1; private int format_; /** + * + * *
    * The certificate format.
    * 
* * .google.cloud.iot.v1.PublicKeyCertificateFormat format = 1; + * * @return The enum numeric value on the wire for format. */ - @java.lang.Override public int getFormatValue() { + @java.lang.Override + public int getFormatValue() { return format_; } /** + * + * *
    * The certificate format.
    * 
* * .google.cloud.iot.v1.PublicKeyCertificateFormat format = 1; + * * @return The format. */ - @java.lang.Override public com.google.cloud.iot.v1.PublicKeyCertificateFormat getFormat() { + @java.lang.Override + public com.google.cloud.iot.v1.PublicKeyCertificateFormat getFormat() { @SuppressWarnings("deprecation") - com.google.cloud.iot.v1.PublicKeyCertificateFormat result = com.google.cloud.iot.v1.PublicKeyCertificateFormat.valueOf(format_); - return result == null ? com.google.cloud.iot.v1.PublicKeyCertificateFormat.UNRECOGNIZED : result; + com.google.cloud.iot.v1.PublicKeyCertificateFormat result = + com.google.cloud.iot.v1.PublicKeyCertificateFormat.valueOf(format_); + return result == null + ? com.google.cloud.iot.v1.PublicKeyCertificateFormat.UNRECOGNIZED + : result; } public static final int CERTIFICATE_FIELD_NUMBER = 2; private volatile java.lang.Object certificate_; /** + * + * *
    * The certificate data.
    * 
* * string certificate = 2; + * * @return The certificate. */ @java.lang.Override @@ -156,29 +194,29 @@ public java.lang.String getCertificate() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); certificate_ = s; return s; } } /** + * + * *
    * The certificate data.
    * 
* * string certificate = 2; + * * @return The bytes for certificate. */ @java.lang.Override - public com.google.protobuf.ByteString - getCertificateBytes() { + public com.google.protobuf.ByteString getCertificateBytes() { java.lang.Object ref = certificate_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); certificate_ = b; return b; } else { @@ -189,11 +227,14 @@ public java.lang.String getCertificate() { public static final int X509_DETAILS_FIELD_NUMBER = 3; private com.google.cloud.iot.v1.X509CertificateDetails x509Details_; /** + * + * *
    * [Output only] The certificate details. Used only for X.509 certificates.
    * 
* * .google.cloud.iot.v1.X509CertificateDetails x509_details = 3; + * * @return Whether the x509Details field is set. */ @java.lang.Override @@ -201,18 +242,25 @@ public boolean hasX509Details() { return x509Details_ != null; } /** + * + * *
    * [Output only] The certificate details. Used only for X.509 certificates.
    * 
* * .google.cloud.iot.v1.X509CertificateDetails x509_details = 3; + * * @return The x509Details. */ @java.lang.Override public com.google.cloud.iot.v1.X509CertificateDetails getX509Details() { - return x509Details_ == null ? com.google.cloud.iot.v1.X509CertificateDetails.getDefaultInstance() : x509Details_; + return x509Details_ == null + ? com.google.cloud.iot.v1.X509CertificateDetails.getDefaultInstance() + : x509Details_; } /** + * + * *
    * [Output only] The certificate details. Used only for X.509 certificates.
    * 
@@ -225,6 +273,7 @@ public com.google.cloud.iot.v1.X509CertificateDetailsOrBuilder getX509DetailsOrB } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -236,9 +285,11 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (format_ != com.google.cloud.iot.v1.PublicKeyCertificateFormat.UNSPECIFIED_PUBLIC_KEY_CERTIFICATE_FORMAT.getNumber()) { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (format_ + != com.google.cloud.iot.v1.PublicKeyCertificateFormat + .UNSPECIFIED_PUBLIC_KEY_CERTIFICATE_FORMAT + .getNumber()) { output.writeEnum(1, format_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(certificate_)) { @@ -256,16 +307,17 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (format_ != com.google.cloud.iot.v1.PublicKeyCertificateFormat.UNSPECIFIED_PUBLIC_KEY_CERTIFICATE_FORMAT.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(1, format_); + if (format_ + != com.google.cloud.iot.v1.PublicKeyCertificateFormat + .UNSPECIFIED_PUBLIC_KEY_CERTIFICATE_FORMAT + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(1, format_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(certificate_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, certificate_); } if (x509Details_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(3, getX509Details()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getX509Details()); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -275,20 +327,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.iot.v1.PublicKeyCertificate)) { return super.equals(obj); } - com.google.cloud.iot.v1.PublicKeyCertificate other = (com.google.cloud.iot.v1.PublicKeyCertificate) obj; + com.google.cloud.iot.v1.PublicKeyCertificate other = + (com.google.cloud.iot.v1.PublicKeyCertificate) obj; if (format_ != other.format_) return false; - if (!getCertificate() - .equals(other.getCertificate())) return false; + if (!getCertificate().equals(other.getCertificate())) return false; if (hasX509Details() != other.hasX509Details()) return false; if (hasX509Details()) { - if (!getX509Details() - .equals(other.getX509Details())) return false; + if (!getX509Details().equals(other.getX509Details())) return false; } if (!unknownFields.equals(other.unknownFields)) return false; return true; @@ -314,118 +365,127 @@ public int hashCode() { return hash; } - public static com.google.cloud.iot.v1.PublicKeyCertificate parseFrom( - java.nio.ByteBuffer data) + public static com.google.cloud.iot.v1.PublicKeyCertificate parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.iot.v1.PublicKeyCertificate parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.iot.v1.PublicKeyCertificate parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.iot.v1.PublicKeyCertificate parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.iot.v1.PublicKeyCertificate parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.iot.v1.PublicKeyCertificate parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.iot.v1.PublicKeyCertificate 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.iot.v1.PublicKeyCertificate parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.iot.v1.PublicKeyCertificate parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.iot.v1.PublicKeyCertificate parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.iot.v1.PublicKeyCertificate parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.iot.v1.PublicKeyCertificate parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.iot.v1.PublicKeyCertificate parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.cloud.iot.v1.PublicKeyCertificate prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected 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 public key certificate format and data.
    * 
* * Protobuf type {@code google.cloud.iot.v1.PublicKeyCertificate} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.iot.v1.PublicKeyCertificate) com.google.cloud.iot.v1.PublicKeyCertificateOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.iot.v1.ResourcesProto.internal_static_google_cloud_iot_v1_PublicKeyCertificate_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.iot.v1.ResourcesProto + .internal_static_google_cloud_iot_v1_PublicKeyCertificate_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.iot.v1.ResourcesProto.internal_static_google_cloud_iot_v1_PublicKeyCertificate_fieldAccessorTable + return com.google.cloud.iot.v1.ResourcesProto + .internal_static_google_cloud_iot_v1_PublicKeyCertificate_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.iot.v1.PublicKeyCertificate.class, com.google.cloud.iot.v1.PublicKeyCertificate.Builder.class); + com.google.cloud.iot.v1.PublicKeyCertificate.class, + com.google.cloud.iot.v1.PublicKeyCertificate.Builder.class); } // Construct using com.google.cloud.iot.v1.PublicKeyCertificate.newBuilder() @@ -433,16 +493,15 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -460,9 +519,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.iot.v1.ResourcesProto.internal_static_google_cloud_iot_v1_PublicKeyCertificate_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.iot.v1.ResourcesProto + .internal_static_google_cloud_iot_v1_PublicKeyCertificate_descriptor; } @java.lang.Override @@ -481,7 +540,8 @@ public com.google.cloud.iot.v1.PublicKeyCertificate build() { @java.lang.Override public com.google.cloud.iot.v1.PublicKeyCertificate buildPartial() { - com.google.cloud.iot.v1.PublicKeyCertificate result = new com.google.cloud.iot.v1.PublicKeyCertificate(this); + com.google.cloud.iot.v1.PublicKeyCertificate result = + new com.google.cloud.iot.v1.PublicKeyCertificate(this); result.format_ = format_; result.certificate_ = certificate_; if (x509DetailsBuilder_ == null) { @@ -497,38 +557,39 @@ public com.google.cloud.iot.v1.PublicKeyCertificate buildPartial() { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.iot.v1.PublicKeyCertificate) { - return mergeFrom((com.google.cloud.iot.v1.PublicKeyCertificate)other); + return mergeFrom((com.google.cloud.iot.v1.PublicKeyCertificate) other); } else { super.mergeFrom(other); return this; @@ -578,51 +639,67 @@ public Builder mergeFrom( private int format_ = 0; /** + * + * *
      * The certificate format.
      * 
* * .google.cloud.iot.v1.PublicKeyCertificateFormat format = 1; + * * @return The enum numeric value on the wire for format. */ - @java.lang.Override public int getFormatValue() { + @java.lang.Override + public int getFormatValue() { return format_; } /** + * + * *
      * The certificate format.
      * 
* * .google.cloud.iot.v1.PublicKeyCertificateFormat format = 1; + * * @param value The enum numeric value on the wire for format to set. * @return This builder for chaining. */ public Builder setFormatValue(int value) { - + format_ = value; onChanged(); return this; } /** + * + * *
      * The certificate format.
      * 
* * .google.cloud.iot.v1.PublicKeyCertificateFormat format = 1; + * * @return The format. */ @java.lang.Override public com.google.cloud.iot.v1.PublicKeyCertificateFormat getFormat() { @SuppressWarnings("deprecation") - com.google.cloud.iot.v1.PublicKeyCertificateFormat result = com.google.cloud.iot.v1.PublicKeyCertificateFormat.valueOf(format_); - return result == null ? com.google.cloud.iot.v1.PublicKeyCertificateFormat.UNRECOGNIZED : result; + com.google.cloud.iot.v1.PublicKeyCertificateFormat result = + com.google.cloud.iot.v1.PublicKeyCertificateFormat.valueOf(format_); + return result == null + ? com.google.cloud.iot.v1.PublicKeyCertificateFormat.UNRECOGNIZED + : result; } /** + * + * *
      * The certificate format.
      * 
* * .google.cloud.iot.v1.PublicKeyCertificateFormat format = 1; + * * @param value The format to set. * @return This builder for chaining. */ @@ -630,21 +707,24 @@ public Builder setFormat(com.google.cloud.iot.v1.PublicKeyCertificateFormat valu if (value == null) { throw new NullPointerException(); } - + format_ = value.getNumber(); onChanged(); return this; } /** + * + * *
      * The certificate format.
      * 
* * .google.cloud.iot.v1.PublicKeyCertificateFormat format = 1; + * * @return This builder for chaining. */ public Builder clearFormat() { - + format_ = 0; onChanged(); return this; @@ -652,18 +732,20 @@ public Builder clearFormat() { private java.lang.Object certificate_ = ""; /** + * + * *
      * The certificate data.
      * 
* * string certificate = 2; + * * @return The certificate. */ public java.lang.String getCertificate() { java.lang.Object ref = certificate_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); certificate_ = s; return s; @@ -672,20 +754,21 @@ public java.lang.String getCertificate() { } } /** + * + * *
      * The certificate data.
      * 
* * string certificate = 2; + * * @return The bytes for certificate. */ - public com.google.protobuf.ByteString - getCertificateBytes() { + public com.google.protobuf.ByteString getCertificateBytes() { java.lang.Object ref = certificate_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); certificate_ = b; return b; } else { @@ -693,54 +776,61 @@ public java.lang.String getCertificate() { } } /** + * + * *
      * The certificate data.
      * 
* * string certificate = 2; + * * @param value The certificate to set. * @return This builder for chaining. */ - public Builder setCertificate( - java.lang.String value) { + public Builder setCertificate(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + certificate_ = value; onChanged(); return this; } /** + * + * *
      * The certificate data.
      * 
* * string certificate = 2; + * * @return This builder for chaining. */ public Builder clearCertificate() { - + certificate_ = getDefaultInstance().getCertificate(); onChanged(); return this; } /** + * + * *
      * The certificate data.
      * 
* * string certificate = 2; + * * @param value The bytes for certificate to set. * @return This builder for chaining. */ - public Builder setCertificateBytes( - com.google.protobuf.ByteString value) { + public Builder setCertificateBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + certificate_ = value; onChanged(); return this; @@ -748,34 +838,47 @@ public Builder setCertificateBytes( private com.google.cloud.iot.v1.X509CertificateDetails x509Details_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.iot.v1.X509CertificateDetails, com.google.cloud.iot.v1.X509CertificateDetails.Builder, com.google.cloud.iot.v1.X509CertificateDetailsOrBuilder> x509DetailsBuilder_; + com.google.cloud.iot.v1.X509CertificateDetails, + com.google.cloud.iot.v1.X509CertificateDetails.Builder, + com.google.cloud.iot.v1.X509CertificateDetailsOrBuilder> + x509DetailsBuilder_; /** + * + * *
      * [Output only] The certificate details. Used only for X.509 certificates.
      * 
* * .google.cloud.iot.v1.X509CertificateDetails x509_details = 3; + * * @return Whether the x509Details field is set. */ public boolean hasX509Details() { return x509DetailsBuilder_ != null || x509Details_ != null; } /** + * + * *
      * [Output only] The certificate details. Used only for X.509 certificates.
      * 
* * .google.cloud.iot.v1.X509CertificateDetails x509_details = 3; + * * @return The x509Details. */ public com.google.cloud.iot.v1.X509CertificateDetails getX509Details() { if (x509DetailsBuilder_ == null) { - return x509Details_ == null ? com.google.cloud.iot.v1.X509CertificateDetails.getDefaultInstance() : x509Details_; + return x509Details_ == null + ? com.google.cloud.iot.v1.X509CertificateDetails.getDefaultInstance() + : x509Details_; } else { return x509DetailsBuilder_.getMessage(); } } /** + * + * *
      * [Output only] The certificate details. Used only for X.509 certificates.
      * 
@@ -796,6 +899,8 @@ public Builder setX509Details(com.google.cloud.iot.v1.X509CertificateDetails val return this; } /** + * + * *
      * [Output only] The certificate details. Used only for X.509 certificates.
      * 
@@ -814,6 +919,8 @@ public Builder setX509Details( return this; } /** + * + * *
      * [Output only] The certificate details. Used only for X.509 certificates.
      * 
@@ -824,7 +931,9 @@ public Builder mergeX509Details(com.google.cloud.iot.v1.X509CertificateDetails v if (x509DetailsBuilder_ == null) { if (x509Details_ != null) { x509Details_ = - com.google.cloud.iot.v1.X509CertificateDetails.newBuilder(x509Details_).mergeFrom(value).buildPartial(); + com.google.cloud.iot.v1.X509CertificateDetails.newBuilder(x509Details_) + .mergeFrom(value) + .buildPartial(); } else { x509Details_ = value; } @@ -836,6 +945,8 @@ public Builder mergeX509Details(com.google.cloud.iot.v1.X509CertificateDetails v return this; } /** + * + * *
      * [Output only] The certificate details. Used only for X.509 certificates.
      * 
@@ -854,6 +965,8 @@ public Builder clearX509Details() { return this; } /** + * + * *
      * [Output only] The certificate details. Used only for X.509 certificates.
      * 
@@ -861,11 +974,13 @@ public Builder clearX509Details() { * .google.cloud.iot.v1.X509CertificateDetails x509_details = 3; */ public com.google.cloud.iot.v1.X509CertificateDetails.Builder getX509DetailsBuilder() { - + onChanged(); return getX509DetailsFieldBuilder().getBuilder(); } /** + * + * *
      * [Output only] The certificate details. Used only for X.509 certificates.
      * 
@@ -876,11 +991,14 @@ public com.google.cloud.iot.v1.X509CertificateDetailsOrBuilder getX509DetailsOrB if (x509DetailsBuilder_ != null) { return x509DetailsBuilder_.getMessageOrBuilder(); } else { - return x509Details_ == null ? - com.google.cloud.iot.v1.X509CertificateDetails.getDefaultInstance() : x509Details_; + return x509Details_ == null + ? com.google.cloud.iot.v1.X509CertificateDetails.getDefaultInstance() + : x509Details_; } } /** + * + * *
      * [Output only] The certificate details. Used only for X.509 certificates.
      * 
@@ -888,21 +1006,24 @@ public com.google.cloud.iot.v1.X509CertificateDetailsOrBuilder getX509DetailsOrB * .google.cloud.iot.v1.X509CertificateDetails x509_details = 3; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.iot.v1.X509CertificateDetails, com.google.cloud.iot.v1.X509CertificateDetails.Builder, com.google.cloud.iot.v1.X509CertificateDetailsOrBuilder> + com.google.cloud.iot.v1.X509CertificateDetails, + com.google.cloud.iot.v1.X509CertificateDetails.Builder, + com.google.cloud.iot.v1.X509CertificateDetailsOrBuilder> getX509DetailsFieldBuilder() { if (x509DetailsBuilder_ == null) { - x509DetailsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.iot.v1.X509CertificateDetails, com.google.cloud.iot.v1.X509CertificateDetails.Builder, com.google.cloud.iot.v1.X509CertificateDetailsOrBuilder>( - getX509Details(), - getParentForChildren(), - isClean()); + x509DetailsBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.iot.v1.X509CertificateDetails, + com.google.cloud.iot.v1.X509CertificateDetails.Builder, + com.google.cloud.iot.v1.X509CertificateDetailsOrBuilder>( + getX509Details(), getParentForChildren(), isClean()); x509Details_ = null; } return x509DetailsBuilder_; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -912,12 +1033,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.iot.v1.PublicKeyCertificate) } // @@protoc_insertion_point(class_scope:google.cloud.iot.v1.PublicKeyCertificate) private static final com.google.cloud.iot.v1.PublicKeyCertificate DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.iot.v1.PublicKeyCertificate(); } @@ -926,16 +1047,16 @@ public static com.google.cloud.iot.v1.PublicKeyCertificate getDefaultInstance() return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public PublicKeyCertificate parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new PublicKeyCertificate(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public PublicKeyCertificate parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new PublicKeyCertificate(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -950,6 +1071,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.iot.v1.PublicKeyCertificate getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1/proto-google-cloud-iot-v1/src/main/java/com/google/cloud/iot/v1/PublicKeyCertificateFormat.java b/proto-google-cloud-iot-v1/src/main/java/com/google/cloud/iot/v1/PublicKeyCertificateFormat.java similarity index 70% rename from owl-bot-staging/v1/proto-google-cloud-iot-v1/src/main/java/com/google/cloud/iot/v1/PublicKeyCertificateFormat.java rename to proto-google-cloud-iot-v1/src/main/java/com/google/cloud/iot/v1/PublicKeyCertificateFormat.java index 86cd68f3..2babfa94 100644 --- a/owl-bot-staging/v1/proto-google-cloud-iot-v1/src/main/java/com/google/cloud/iot/v1/PublicKeyCertificateFormat.java +++ b/proto-google-cloud-iot-v1/src/main/java/com/google/cloud/iot/v1/PublicKeyCertificateFormat.java @@ -1,18 +1,36 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/iot/v1/resources.proto package com.google.cloud.iot.v1; /** + * + * *
  * The supported formats for the public key.
  * 
* * Protobuf enum {@code google.cloud.iot.v1.PublicKeyCertificateFormat} */ -public enum PublicKeyCertificateFormat - implements com.google.protobuf.ProtocolMessageEnum { +public enum PublicKeyCertificateFormat implements com.google.protobuf.ProtocolMessageEnum { /** + * + * *
    * The format has not been specified. This is an invalid default value and
    * must not be used.
@@ -22,6 +40,8 @@ public enum PublicKeyCertificateFormat
    */
   UNSPECIFIED_PUBLIC_KEY_CERTIFICATE_FORMAT(0),
   /**
+   *
+   *
    * 
    * An X.509v3 certificate ([RFC5280](https://www.ietf.org/rfc/rfc5280.txt)),
    * encoded in base64, and wrapped by `-----BEGIN CERTIFICATE-----` and
@@ -35,6 +55,8 @@ public enum PublicKeyCertificateFormat
   ;
 
   /**
+   *
+   *
    * 
    * The format has not been specified. This is an invalid default value and
    * must not be used.
@@ -44,6 +66,8 @@ public enum PublicKeyCertificateFormat
    */
   public static final int UNSPECIFIED_PUBLIC_KEY_CERTIFICATE_FORMAT_VALUE = 0;
   /**
+   *
+   *
    * 
    * An X.509v3 certificate ([RFC5280](https://www.ietf.org/rfc/rfc5280.txt)),
    * encoded in base64, and wrapped by `-----BEGIN CERTIFICATE-----` and
@@ -54,7 +78,6 @@ public enum PublicKeyCertificateFormat
    */
   public static final int X509_CERTIFICATE_PEM_VALUE = 1;
 
-
   public final int getNumber() {
     if (this == UNRECOGNIZED) {
       throw new java.lang.IllegalArgumentException(
@@ -79,9 +102,12 @@ public static PublicKeyCertificateFormat valueOf(int value) {
    */
   public static PublicKeyCertificateFormat forNumber(int value) {
     switch (value) {
-      case 0: return UNSPECIFIED_PUBLIC_KEY_CERTIFICATE_FORMAT;
-      case 1: return X509_CERTIFICATE_PEM;
-      default: return null;
+      case 0:
+        return UNSPECIFIED_PUBLIC_KEY_CERTIFICATE_FORMAT;
+      case 1:
+        return X509_CERTIFICATE_PEM;
+      default:
+        return null;
     }
   }
 
@@ -89,28 +115,28 @@ public static PublicKeyCertificateFormat forNumber(int value) {
       internalGetValueMap() {
     return internalValueMap;
   }
-  private static final com.google.protobuf.Internal.EnumLiteMap<
-      PublicKeyCertificateFormat> internalValueMap =
-        new com.google.protobuf.Internal.EnumLiteMap() {
-          public PublicKeyCertificateFormat findValueByNumber(int number) {
-            return PublicKeyCertificateFormat.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 PublicKeyCertificateFormat findValueByNumber(int number) {
+              return PublicKeyCertificateFormat.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.iot.v1.ResourcesProto.getDescriptor().getEnumTypes().get(5);
   }
 
@@ -119,8 +145,7 @@ public PublicKeyCertificateFormat findValueByNumber(int number) {
   public static PublicKeyCertificateFormat 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,4 +161,3 @@ private PublicKeyCertificateFormat(int value) {
 
   // @@protoc_insertion_point(enum_scope:google.cloud.iot.v1.PublicKeyCertificateFormat)
 }
-
diff --git a/owl-bot-staging/v1/proto-google-cloud-iot-v1/src/main/java/com/google/cloud/iot/v1/PublicKeyCertificateOrBuilder.java b/proto-google-cloud-iot-v1/src/main/java/com/google/cloud/iot/v1/PublicKeyCertificateOrBuilder.java
similarity index 70%
rename from owl-bot-staging/v1/proto-google-cloud-iot-v1/src/main/java/com/google/cloud/iot/v1/PublicKeyCertificateOrBuilder.java
rename to proto-google-cloud-iot-v1/src/main/java/com/google/cloud/iot/v1/PublicKeyCertificateOrBuilder.java
index c4471b81..4f0ea283 100644
--- a/owl-bot-staging/v1/proto-google-cloud-iot-v1/src/main/java/com/google/cloud/iot/v1/PublicKeyCertificateOrBuilder.java
+++ b/proto-google-cloud-iot-v1/src/main/java/com/google/cloud/iot/v1/PublicKeyCertificateOrBuilder.java
@@ -1,70 +1,105 @@
+/*
+ * Copyright 2020 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/cloud/iot/v1/resources.proto
 
 package com.google.cloud.iot.v1;
 
-public interface PublicKeyCertificateOrBuilder extends
+public interface PublicKeyCertificateOrBuilder
+    extends
     // @@protoc_insertion_point(interface_extends:google.cloud.iot.v1.PublicKeyCertificate)
     com.google.protobuf.MessageOrBuilder {
 
   /**
+   *
+   *
    * 
    * The certificate format.
    * 
* * .google.cloud.iot.v1.PublicKeyCertificateFormat format = 1; + * * @return The enum numeric value on the wire for format. */ int getFormatValue(); /** + * + * *
    * The certificate format.
    * 
* * .google.cloud.iot.v1.PublicKeyCertificateFormat format = 1; + * * @return The format. */ com.google.cloud.iot.v1.PublicKeyCertificateFormat getFormat(); /** + * + * *
    * The certificate data.
    * 
* * string certificate = 2; + * * @return The certificate. */ java.lang.String getCertificate(); /** + * + * *
    * The certificate data.
    * 
* * string certificate = 2; + * * @return The bytes for certificate. */ - com.google.protobuf.ByteString - getCertificateBytes(); + com.google.protobuf.ByteString getCertificateBytes(); /** + * + * *
    * [Output only] The certificate details. Used only for X.509 certificates.
    * 
* * .google.cloud.iot.v1.X509CertificateDetails x509_details = 3; + * * @return Whether the x509Details field is set. */ boolean hasX509Details(); /** + * + * *
    * [Output only] The certificate details. Used only for X.509 certificates.
    * 
* * .google.cloud.iot.v1.X509CertificateDetails x509_details = 3; + * * @return The x509Details. */ com.google.cloud.iot.v1.X509CertificateDetails getX509Details(); /** + * + * *
    * [Output only] The certificate details. Used only for X.509 certificates.
    * 
diff --git a/owl-bot-staging/v1/proto-google-cloud-iot-v1/src/main/java/com/google/cloud/iot/v1/PublicKeyCredential.java b/proto-google-cloud-iot-v1/src/main/java/com/google/cloud/iot/v1/PublicKeyCredential.java similarity index 69% rename from owl-bot-staging/v1/proto-google-cloud-iot-v1/src/main/java/com/google/cloud/iot/v1/PublicKeyCredential.java rename to proto-google-cloud-iot-v1/src/main/java/com/google/cloud/iot/v1/PublicKeyCredential.java index ed901228..453a641d 100644 --- a/owl-bot-staging/v1/proto-google-cloud-iot-v1/src/main/java/com/google/cloud/iot/v1/PublicKeyCredential.java +++ b/proto-google-cloud-iot-v1/src/main/java/com/google/cloud/iot/v1/PublicKeyCredential.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/iot/v1/resources.proto package com.google.cloud.iot.v1; /** + * + * *
  * A public key format and data.
  * 
* * Protobuf type {@code google.cloud.iot.v1.PublicKeyCredential} */ -public final class PublicKeyCredential extends - com.google.protobuf.GeneratedMessageV3 implements +public final class PublicKeyCredential extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.iot.v1.PublicKeyCredential) PublicKeyCredentialOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use PublicKeyCredential.newBuilder() to construct. private PublicKeyCredential(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private PublicKeyCredential() { format_ = 0; key_ = ""; @@ -26,16 +44,15 @@ private PublicKeyCredential() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new PublicKeyCredential(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private PublicKeyCredential( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -54,25 +71,27 @@ private PublicKeyCredential( case 0: done = true; break; - case 8: { - int rawValue = input.readEnum(); + case 8: + { + int rawValue = input.readEnum(); - format_ = rawValue; - break; - } - case 18: { - java.lang.String s = input.readStringRequireUtf8(); + format_ = rawValue; + break; + } + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); - key_ = s; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + key_ = s; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -80,61 +99,75 @@ private PublicKeyCredential( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.iot.v1.ResourcesProto.internal_static_google_cloud_iot_v1_PublicKeyCredential_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.iot.v1.ResourcesProto + .internal_static_google_cloud_iot_v1_PublicKeyCredential_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.iot.v1.ResourcesProto.internal_static_google_cloud_iot_v1_PublicKeyCredential_fieldAccessorTable + return com.google.cloud.iot.v1.ResourcesProto + .internal_static_google_cloud_iot_v1_PublicKeyCredential_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.iot.v1.PublicKeyCredential.class, com.google.cloud.iot.v1.PublicKeyCredential.Builder.class); + com.google.cloud.iot.v1.PublicKeyCredential.class, + com.google.cloud.iot.v1.PublicKeyCredential.Builder.class); } public static final int FORMAT_FIELD_NUMBER = 1; private int format_; /** + * + * *
    * The format of the key.
    * 
* * .google.cloud.iot.v1.PublicKeyFormat format = 1; + * * @return The enum numeric value on the wire for format. */ - @java.lang.Override public int getFormatValue() { + @java.lang.Override + public int getFormatValue() { return format_; } /** + * + * *
    * The format of the key.
    * 
* * .google.cloud.iot.v1.PublicKeyFormat format = 1; + * * @return The format. */ - @java.lang.Override public com.google.cloud.iot.v1.PublicKeyFormat getFormat() { + @java.lang.Override + public com.google.cloud.iot.v1.PublicKeyFormat getFormat() { @SuppressWarnings("deprecation") - com.google.cloud.iot.v1.PublicKeyFormat result = com.google.cloud.iot.v1.PublicKeyFormat.valueOf(format_); + com.google.cloud.iot.v1.PublicKeyFormat result = + com.google.cloud.iot.v1.PublicKeyFormat.valueOf(format_); return result == null ? com.google.cloud.iot.v1.PublicKeyFormat.UNRECOGNIZED : result; } public static final int KEY_FIELD_NUMBER = 2; private volatile java.lang.Object key_; /** + * + * *
    * The key data.
    * 
* * string key = 2; + * * @return The key. */ @java.lang.Override @@ -143,29 +176,29 @@ public java.lang.String getKey() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); key_ = s; return s; } } /** + * + * *
    * The key data.
    * 
* * string key = 2; + * * @return The bytes for key. */ @java.lang.Override - public com.google.protobuf.ByteString - getKeyBytes() { + public com.google.protobuf.ByteString getKeyBytes() { java.lang.Object ref = key_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); key_ = b; return b; } else { @@ -174,6 +207,7 @@ public java.lang.String getKey() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -185,9 +219,9 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (format_ != com.google.cloud.iot.v1.PublicKeyFormat.UNSPECIFIED_PUBLIC_KEY_FORMAT.getNumber()) { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (format_ + != com.google.cloud.iot.v1.PublicKeyFormat.UNSPECIFIED_PUBLIC_KEY_FORMAT.getNumber()) { output.writeEnum(1, format_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(key_)) { @@ -202,9 +236,9 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (format_ != com.google.cloud.iot.v1.PublicKeyFormat.UNSPECIFIED_PUBLIC_KEY_FORMAT.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(1, format_); + if (format_ + != com.google.cloud.iot.v1.PublicKeyFormat.UNSPECIFIED_PUBLIC_KEY_FORMAT.getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(1, format_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(key_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, key_); @@ -217,16 +251,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.iot.v1.PublicKeyCredential)) { return super.equals(obj); } - com.google.cloud.iot.v1.PublicKeyCredential other = (com.google.cloud.iot.v1.PublicKeyCredential) obj; + com.google.cloud.iot.v1.PublicKeyCredential other = + (com.google.cloud.iot.v1.PublicKeyCredential) obj; if (format_ != other.format_) return false; - if (!getKey() - .equals(other.getKey())) return false; + if (!getKey().equals(other.getKey())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -247,118 +281,127 @@ public int hashCode() { return hash; } - public static com.google.cloud.iot.v1.PublicKeyCredential parseFrom( - java.nio.ByteBuffer data) + public static com.google.cloud.iot.v1.PublicKeyCredential parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.iot.v1.PublicKeyCredential parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.iot.v1.PublicKeyCredential parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.iot.v1.PublicKeyCredential parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.iot.v1.PublicKeyCredential parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.iot.v1.PublicKeyCredential parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.iot.v1.PublicKeyCredential 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.iot.v1.PublicKeyCredential parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.iot.v1.PublicKeyCredential parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.iot.v1.PublicKeyCredential parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.iot.v1.PublicKeyCredential parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.iot.v1.PublicKeyCredential parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.iot.v1.PublicKeyCredential parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.cloud.iot.v1.PublicKeyCredential prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected 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 public key format and data.
    * 
* * Protobuf type {@code google.cloud.iot.v1.PublicKeyCredential} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.iot.v1.PublicKeyCredential) com.google.cloud.iot.v1.PublicKeyCredentialOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.iot.v1.ResourcesProto.internal_static_google_cloud_iot_v1_PublicKeyCredential_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.iot.v1.ResourcesProto + .internal_static_google_cloud_iot_v1_PublicKeyCredential_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.iot.v1.ResourcesProto.internal_static_google_cloud_iot_v1_PublicKeyCredential_fieldAccessorTable + return com.google.cloud.iot.v1.ResourcesProto + .internal_static_google_cloud_iot_v1_PublicKeyCredential_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.iot.v1.PublicKeyCredential.class, com.google.cloud.iot.v1.PublicKeyCredential.Builder.class); + com.google.cloud.iot.v1.PublicKeyCredential.class, + com.google.cloud.iot.v1.PublicKeyCredential.Builder.class); } // Construct using com.google.cloud.iot.v1.PublicKeyCredential.newBuilder() @@ -366,16 +409,15 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -387,9 +429,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.iot.v1.ResourcesProto.internal_static_google_cloud_iot_v1_PublicKeyCredential_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.iot.v1.ResourcesProto + .internal_static_google_cloud_iot_v1_PublicKeyCredential_descriptor; } @java.lang.Override @@ -408,7 +450,8 @@ public com.google.cloud.iot.v1.PublicKeyCredential build() { @java.lang.Override public com.google.cloud.iot.v1.PublicKeyCredential buildPartial() { - com.google.cloud.iot.v1.PublicKeyCredential result = new com.google.cloud.iot.v1.PublicKeyCredential(this); + com.google.cloud.iot.v1.PublicKeyCredential result = + new com.google.cloud.iot.v1.PublicKeyCredential(this); result.format_ = format_; result.key_ = key_; onBuilt(); @@ -419,38 +462,39 @@ public com.google.cloud.iot.v1.PublicKeyCredential buildPartial() { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.iot.v1.PublicKeyCredential) { - return mergeFrom((com.google.cloud.iot.v1.PublicKeyCredential)other); + return mergeFrom((com.google.cloud.iot.v1.PublicKeyCredential) other); } else { super.mergeFrom(other); return this; @@ -497,51 +541,65 @@ public Builder mergeFrom( private int format_ = 0; /** + * + * *
      * The format of the key.
      * 
* * .google.cloud.iot.v1.PublicKeyFormat format = 1; + * * @return The enum numeric value on the wire for format. */ - @java.lang.Override public int getFormatValue() { + @java.lang.Override + public int getFormatValue() { return format_; } /** + * + * *
      * The format of the key.
      * 
* * .google.cloud.iot.v1.PublicKeyFormat format = 1; + * * @param value The enum numeric value on the wire for format to set. * @return This builder for chaining. */ public Builder setFormatValue(int value) { - + format_ = value; onChanged(); return this; } /** + * + * *
      * The format of the key.
      * 
* * .google.cloud.iot.v1.PublicKeyFormat format = 1; + * * @return The format. */ @java.lang.Override public com.google.cloud.iot.v1.PublicKeyFormat getFormat() { @SuppressWarnings("deprecation") - com.google.cloud.iot.v1.PublicKeyFormat result = com.google.cloud.iot.v1.PublicKeyFormat.valueOf(format_); + com.google.cloud.iot.v1.PublicKeyFormat result = + com.google.cloud.iot.v1.PublicKeyFormat.valueOf(format_); return result == null ? com.google.cloud.iot.v1.PublicKeyFormat.UNRECOGNIZED : result; } /** + * + * *
      * The format of the key.
      * 
* * .google.cloud.iot.v1.PublicKeyFormat format = 1; + * * @param value The format to set. * @return This builder for chaining. */ @@ -549,21 +607,24 @@ public Builder setFormat(com.google.cloud.iot.v1.PublicKeyFormat value) { if (value == null) { throw new NullPointerException(); } - + format_ = value.getNumber(); onChanged(); return this; } /** + * + * *
      * The format of the key.
      * 
* * .google.cloud.iot.v1.PublicKeyFormat format = 1; + * * @return This builder for chaining. */ public Builder clearFormat() { - + format_ = 0; onChanged(); return this; @@ -571,18 +632,20 @@ public Builder clearFormat() { private java.lang.Object key_ = ""; /** + * + * *
      * The key data.
      * 
* * string key = 2; + * * @return The key. */ public java.lang.String getKey() { java.lang.Object ref = key_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); key_ = s; return s; @@ -591,20 +654,21 @@ public java.lang.String getKey() { } } /** + * + * *
      * The key data.
      * 
* * string key = 2; + * * @return The bytes for key. */ - public com.google.protobuf.ByteString - getKeyBytes() { + public com.google.protobuf.ByteString getKeyBytes() { java.lang.Object ref = key_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); key_ = b; return b; } else { @@ -612,61 +676,68 @@ public java.lang.String getKey() { } } /** + * + * *
      * The key data.
      * 
* * string key = 2; + * * @param value The key to set. * @return This builder for chaining. */ - public Builder setKey( - java.lang.String value) { + public Builder setKey(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + key_ = value; onChanged(); return this; } /** + * + * *
      * The key data.
      * 
* * string key = 2; + * * @return This builder for chaining. */ public Builder clearKey() { - + key_ = getDefaultInstance().getKey(); onChanged(); return this; } /** + * + * *
      * The key data.
      * 
* * string key = 2; + * * @param value The bytes for key to set. * @return This builder for chaining. */ - public Builder setKeyBytes( - com.google.protobuf.ByteString value) { + public Builder setKeyBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + key_ = value; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -676,12 +747,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.iot.v1.PublicKeyCredential) } // @@protoc_insertion_point(class_scope:google.cloud.iot.v1.PublicKeyCredential) private static final com.google.cloud.iot.v1.PublicKeyCredential DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.iot.v1.PublicKeyCredential(); } @@ -690,16 +761,16 @@ public static com.google.cloud.iot.v1.PublicKeyCredential getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public PublicKeyCredential parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new PublicKeyCredential(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public PublicKeyCredential parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new PublicKeyCredential(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -714,6 +785,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.iot.v1.PublicKeyCredential getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1/proto-google-cloud-iot-v1/src/main/java/com/google/cloud/iot/v1/PublicKeyCredentialOrBuilder.java b/proto-google-cloud-iot-v1/src/main/java/com/google/cloud/iot/v1/PublicKeyCredentialOrBuilder.java similarity index 56% rename from owl-bot-staging/v1/proto-google-cloud-iot-v1/src/main/java/com/google/cloud/iot/v1/PublicKeyCredentialOrBuilder.java rename to proto-google-cloud-iot-v1/src/main/java/com/google/cloud/iot/v1/PublicKeyCredentialOrBuilder.java index 1f5663f9..948cd7c7 100644 --- a/owl-bot-staging/v1/proto-google-cloud-iot-v1/src/main/java/com/google/cloud/iot/v1/PublicKeyCredentialOrBuilder.java +++ b/proto-google-cloud-iot-v1/src/main/java/com/google/cloud/iot/v1/PublicKeyCredentialOrBuilder.java @@ -1,48 +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/iot/v1/resources.proto package com.google.cloud.iot.v1; -public interface PublicKeyCredentialOrBuilder extends +public interface PublicKeyCredentialOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.iot.v1.PublicKeyCredential) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * The format of the key.
    * 
* * .google.cloud.iot.v1.PublicKeyFormat format = 1; + * * @return The enum numeric value on the wire for format. */ int getFormatValue(); /** + * + * *
    * The format of the key.
    * 
* * .google.cloud.iot.v1.PublicKeyFormat format = 1; + * * @return The format. */ com.google.cloud.iot.v1.PublicKeyFormat getFormat(); /** + * + * *
    * The key data.
    * 
* * string key = 2; + * * @return The key. */ java.lang.String getKey(); /** + * + * *
    * The key data.
    * 
* * string key = 2; + * * @return The bytes for key. */ - com.google.protobuf.ByteString - getKeyBytes(); + com.google.protobuf.ByteString getKeyBytes(); } diff --git a/owl-bot-staging/v1/proto-google-cloud-iot-v1/src/main/java/com/google/cloud/iot/v1/PublicKeyFormat.java b/proto-google-cloud-iot-v1/src/main/java/com/google/cloud/iot/v1/PublicKeyFormat.java similarity index 77% rename from owl-bot-staging/v1/proto-google-cloud-iot-v1/src/main/java/com/google/cloud/iot/v1/PublicKeyFormat.java rename to proto-google-cloud-iot-v1/src/main/java/com/google/cloud/iot/v1/PublicKeyFormat.java index 400dc121..0b7315b6 100644 --- a/owl-bot-staging/v1/proto-google-cloud-iot-v1/src/main/java/com/google/cloud/iot/v1/PublicKeyFormat.java +++ b/proto-google-cloud-iot-v1/src/main/java/com/google/cloud/iot/v1/PublicKeyFormat.java @@ -1,18 +1,36 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/iot/v1/resources.proto package com.google.cloud.iot.v1; /** + * + * *
  * The supported formats for the public key.
  * 
* * Protobuf enum {@code google.cloud.iot.v1.PublicKeyFormat} */ -public enum PublicKeyFormat - implements com.google.protobuf.ProtocolMessageEnum { +public enum PublicKeyFormat implements com.google.protobuf.ProtocolMessageEnum { /** + * + * *
    * The format has not been specified. This is an invalid default value and
    * must not be used.
@@ -22,6 +40,8 @@ public enum PublicKeyFormat
    */
   UNSPECIFIED_PUBLIC_KEY_FORMAT(0),
   /**
+   *
+   *
    * 
    * An RSA public key encoded in base64, and wrapped by
    * `-----BEGIN PUBLIC KEY-----` and `-----END PUBLIC KEY-----`. This can be
@@ -33,6 +53,8 @@ public enum PublicKeyFormat
    */
   RSA_PEM(3),
   /**
+   *
+   *
    * 
    * As RSA_PEM, but wrapped in an X.509v3 certificate ([RFC5280](
    * https://www.ietf.org/rfc/rfc5280.txt)), encoded in base64, and wrapped by
@@ -43,6 +65,8 @@ public enum PublicKeyFormat
    */
   RSA_X509_PEM(1),
   /**
+   *
+   *
    * 
    * Public key for the ECDSA algorithm using P-256 and SHA-256, encoded in
    * base64, and wrapped by `-----BEGIN PUBLIC KEY-----` and `-----END
@@ -55,6 +79,8 @@ public enum PublicKeyFormat
    */
   ES256_PEM(2),
   /**
+   *
+   *
    * 
    * As ES256_PEM, but wrapped in an X.509v3 certificate ([RFC5280](
    * https://www.ietf.org/rfc/rfc5280.txt)), encoded in base64, and wrapped by
@@ -68,6 +94,8 @@ public enum PublicKeyFormat
   ;
 
   /**
+   *
+   *
    * 
    * The format has not been specified. This is an invalid default value and
    * must not be used.
@@ -77,6 +105,8 @@ public enum PublicKeyFormat
    */
   public static final int UNSPECIFIED_PUBLIC_KEY_FORMAT_VALUE = 0;
   /**
+   *
+   *
    * 
    * An RSA public key encoded in base64, and wrapped by
    * `-----BEGIN PUBLIC KEY-----` and `-----END PUBLIC KEY-----`. This can be
@@ -88,6 +118,8 @@ public enum PublicKeyFormat
    */
   public static final int RSA_PEM_VALUE = 3;
   /**
+   *
+   *
    * 
    * As RSA_PEM, but wrapped in an X.509v3 certificate ([RFC5280](
    * https://www.ietf.org/rfc/rfc5280.txt)), encoded in base64, and wrapped by
@@ -98,6 +130,8 @@ public enum PublicKeyFormat
    */
   public static final int RSA_X509_PEM_VALUE = 1;
   /**
+   *
+   *
    * 
    * Public key for the ECDSA algorithm using P-256 and SHA-256, encoded in
    * base64, and wrapped by `-----BEGIN PUBLIC KEY-----` and `-----END
@@ -110,6 +144,8 @@ public enum PublicKeyFormat
    */
   public static final int ES256_PEM_VALUE = 2;
   /**
+   *
+   *
    * 
    * As ES256_PEM, but wrapped in an X.509v3 certificate ([RFC5280](
    * https://www.ietf.org/rfc/rfc5280.txt)), encoded in base64, and wrapped by
@@ -120,7 +156,6 @@ public enum PublicKeyFormat
    */
   public static final int ES256_X509_PEM_VALUE = 4;
 
-
   public final int getNumber() {
     if (this == UNRECOGNIZED) {
       throw new java.lang.IllegalArgumentException(
@@ -145,51 +180,53 @@ public static PublicKeyFormat valueOf(int value) {
    */
   public static PublicKeyFormat forNumber(int value) {
     switch (value) {
-      case 0: return UNSPECIFIED_PUBLIC_KEY_FORMAT;
-      case 3: return RSA_PEM;
-      case 1: return RSA_X509_PEM;
-      case 2: return ES256_PEM;
-      case 4: return ES256_X509_PEM;
-      default: return null;
+      case 0:
+        return UNSPECIFIED_PUBLIC_KEY_FORMAT;
+      case 3:
+        return RSA_PEM;
+      case 1:
+        return RSA_X509_PEM;
+      case 2:
+        return ES256_PEM;
+      case 4:
+        return ES256_X509_PEM;
+      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<
-      PublicKeyFormat> internalValueMap =
-        new com.google.protobuf.Internal.EnumLiteMap() {
-          public PublicKeyFormat findValueByNumber(int number) {
-            return PublicKeyFormat.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 PublicKeyFormat findValueByNumber(int number) {
+          return PublicKeyFormat.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.iot.v1.ResourcesProto.getDescriptor().getEnumTypes().get(6);
   }
 
   private static final PublicKeyFormat[] VALUES = values();
 
-  public static PublicKeyFormat valueOf(
-      com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
+  public static PublicKeyFormat 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;
@@ -205,4 +242,3 @@ private PublicKeyFormat(int value) {
 
   // @@protoc_insertion_point(enum_scope:google.cloud.iot.v1.PublicKeyFormat)
 }
-
diff --git a/owl-bot-staging/v1/proto-google-cloud-iot-v1/src/main/java/com/google/cloud/iot/v1/RegistryCredential.java b/proto-google-cloud-iot-v1/src/main/java/com/google/cloud/iot/v1/RegistryCredential.java
similarity index 70%
rename from owl-bot-staging/v1/proto-google-cloud-iot-v1/src/main/java/com/google/cloud/iot/v1/RegistryCredential.java
rename to proto-google-cloud-iot-v1/src/main/java/com/google/cloud/iot/v1/RegistryCredential.java
index 39ffbe60..214329e2 100644
--- a/owl-bot-staging/v1/proto-google-cloud-iot-v1/src/main/java/com/google/cloud/iot/v1/RegistryCredential.java
+++ b/proto-google-cloud-iot-v1/src/main/java/com/google/cloud/iot/v1/RegistryCredential.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/iot/v1/resources.proto
 
 package com.google.cloud.iot.v1;
 
 /**
+ *
+ *
  * 
  * A server-stored registry credential used to validate device credentials.
  * 
* * Protobuf type {@code google.cloud.iot.v1.RegistryCredential} */ -public final class RegistryCredential extends - com.google.protobuf.GeneratedMessageV3 implements +public final class RegistryCredential extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.iot.v1.RegistryCredential) RegistryCredentialOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use RegistryCredential.newBuilder() to construct. private RegistryCredential(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private RegistryCredential() { - } + + private RegistryCredential() {} @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new RegistryCredential(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private RegistryCredential( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -52,27 +68,30 @@ private RegistryCredential( case 0: done = true; break; - case 10: { - com.google.cloud.iot.v1.PublicKeyCertificate.Builder subBuilder = null; - if (credentialCase_ == 1) { - subBuilder = ((com.google.cloud.iot.v1.PublicKeyCertificate) credential_).toBuilder(); - } - credential_ = - input.readMessage(com.google.cloud.iot.v1.PublicKeyCertificate.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom((com.google.cloud.iot.v1.PublicKeyCertificate) credential_); - credential_ = subBuilder.buildPartial(); + case 10: + { + com.google.cloud.iot.v1.PublicKeyCertificate.Builder subBuilder = null; + if (credentialCase_ == 1) { + subBuilder = + ((com.google.cloud.iot.v1.PublicKeyCertificate) credential_).toBuilder(); + } + credential_ = + input.readMessage( + com.google.cloud.iot.v1.PublicKeyCertificate.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom((com.google.cloud.iot.v1.PublicKeyCertificate) credential_); + credential_ = subBuilder.buildPartial(); + } + credentialCase_ = 1; + break; } - credentialCase_ = 1; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -80,34 +99,39 @@ private RegistryCredential( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.iot.v1.ResourcesProto.internal_static_google_cloud_iot_v1_RegistryCredential_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.iot.v1.ResourcesProto + .internal_static_google_cloud_iot_v1_RegistryCredential_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.iot.v1.ResourcesProto.internal_static_google_cloud_iot_v1_RegistryCredential_fieldAccessorTable + return com.google.cloud.iot.v1.ResourcesProto + .internal_static_google_cloud_iot_v1_RegistryCredential_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.iot.v1.RegistryCredential.class, com.google.cloud.iot.v1.RegistryCredential.Builder.class); + com.google.cloud.iot.v1.RegistryCredential.class, + com.google.cloud.iot.v1.RegistryCredential.Builder.class); } private int credentialCase_ = 0; private java.lang.Object credential_; + public enum CredentialCase - implements com.google.protobuf.Internal.EnumLite, + implements + com.google.protobuf.Internal.EnumLite, com.google.protobuf.AbstractMessage.InternalOneOfEnum { PUBLIC_KEY_CERTIFICATE(1), CREDENTIAL_NOT_SET(0); private final int value; + private CredentialCase(int value) { this.value = value; } @@ -123,29 +147,34 @@ public static CredentialCase valueOf(int value) { public static CredentialCase forNumber(int value) { switch (value) { - case 1: return PUBLIC_KEY_CERTIFICATE; - case 0: return CREDENTIAL_NOT_SET; - default: return null; + case 1: + return PUBLIC_KEY_CERTIFICATE; + case 0: + return CREDENTIAL_NOT_SET; + default: + return null; } } + public int getNumber() { return this.value; } }; - public CredentialCase - getCredentialCase() { - return CredentialCase.forNumber( - credentialCase_); + public CredentialCase getCredentialCase() { + return CredentialCase.forNumber(credentialCase_); } public static final int PUBLIC_KEY_CERTIFICATE_FIELD_NUMBER = 1; /** + * + * *
    * A public key certificate used to verify the device credentials.
    * 
* * .google.cloud.iot.v1.PublicKeyCertificate public_key_certificate = 1; + * * @return Whether the publicKeyCertificate field is set. */ @java.lang.Override @@ -153,21 +182,26 @@ public boolean hasPublicKeyCertificate() { return credentialCase_ == 1; } /** + * + * *
    * A public key certificate used to verify the device credentials.
    * 
* * .google.cloud.iot.v1.PublicKeyCertificate public_key_certificate = 1; + * * @return The publicKeyCertificate. */ @java.lang.Override public com.google.cloud.iot.v1.PublicKeyCertificate getPublicKeyCertificate() { if (credentialCase_ == 1) { - return (com.google.cloud.iot.v1.PublicKeyCertificate) credential_; + return (com.google.cloud.iot.v1.PublicKeyCertificate) credential_; } return com.google.cloud.iot.v1.PublicKeyCertificate.getDefaultInstance(); } /** + * + * *
    * A public key certificate used to verify the device credentials.
    * 
@@ -177,12 +211,13 @@ public com.google.cloud.iot.v1.PublicKeyCertificate getPublicKeyCertificate() { @java.lang.Override public com.google.cloud.iot.v1.PublicKeyCertificateOrBuilder getPublicKeyCertificateOrBuilder() { if (credentialCase_ == 1) { - return (com.google.cloud.iot.v1.PublicKeyCertificate) credential_; + return (com.google.cloud.iot.v1.PublicKeyCertificate) credential_; } return com.google.cloud.iot.v1.PublicKeyCertificate.getDefaultInstance(); } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -194,8 +229,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (credentialCase_ == 1) { output.writeMessage(1, (com.google.cloud.iot.v1.PublicKeyCertificate) credential_); } @@ -209,8 +243,9 @@ public int getSerializedSize() { size = 0; if (credentialCase_ == 1) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, (com.google.cloud.iot.v1.PublicKeyCertificate) credential_); + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 1, (com.google.cloud.iot.v1.PublicKeyCertificate) credential_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -220,18 +255,18 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.iot.v1.RegistryCredential)) { return super.equals(obj); } - com.google.cloud.iot.v1.RegistryCredential other = (com.google.cloud.iot.v1.RegistryCredential) obj; + com.google.cloud.iot.v1.RegistryCredential other = + (com.google.cloud.iot.v1.RegistryCredential) obj; if (!getCredentialCase().equals(other.getCredentialCase())) return false; switch (credentialCase_) { case 1: - if (!getPublicKeyCertificate() - .equals(other.getPublicKeyCertificate())) return false; + if (!getPublicKeyCertificate().equals(other.getPublicKeyCertificate())) return false; break; case 0: default: @@ -260,118 +295,127 @@ public int hashCode() { return hash; } - public static com.google.cloud.iot.v1.RegistryCredential parseFrom( - java.nio.ByteBuffer data) + public static com.google.cloud.iot.v1.RegistryCredential parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.iot.v1.RegistryCredential parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.iot.v1.RegistryCredential parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.iot.v1.RegistryCredential parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.iot.v1.RegistryCredential parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.iot.v1.RegistryCredential parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.iot.v1.RegistryCredential 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.iot.v1.RegistryCredential parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.iot.v1.RegistryCredential parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.iot.v1.RegistryCredential parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.iot.v1.RegistryCredential parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.iot.v1.RegistryCredential parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.iot.v1.RegistryCredential parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.cloud.iot.v1.RegistryCredential prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected 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 server-stored registry credential used to validate device credentials.
    * 
* * Protobuf type {@code google.cloud.iot.v1.RegistryCredential} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.iot.v1.RegistryCredential) com.google.cloud.iot.v1.RegistryCredentialOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.iot.v1.ResourcesProto.internal_static_google_cloud_iot_v1_RegistryCredential_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.iot.v1.ResourcesProto + .internal_static_google_cloud_iot_v1_RegistryCredential_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.iot.v1.ResourcesProto.internal_static_google_cloud_iot_v1_RegistryCredential_fieldAccessorTable + return com.google.cloud.iot.v1.ResourcesProto + .internal_static_google_cloud_iot_v1_RegistryCredential_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.iot.v1.RegistryCredential.class, com.google.cloud.iot.v1.RegistryCredential.Builder.class); + com.google.cloud.iot.v1.RegistryCredential.class, + com.google.cloud.iot.v1.RegistryCredential.Builder.class); } // Construct using com.google.cloud.iot.v1.RegistryCredential.newBuilder() @@ -379,16 +423,15 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -398,9 +441,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.iot.v1.ResourcesProto.internal_static_google_cloud_iot_v1_RegistryCredential_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.iot.v1.ResourcesProto + .internal_static_google_cloud_iot_v1_RegistryCredential_descriptor; } @java.lang.Override @@ -419,7 +462,8 @@ public com.google.cloud.iot.v1.RegistryCredential build() { @java.lang.Override public com.google.cloud.iot.v1.RegistryCredential buildPartial() { - com.google.cloud.iot.v1.RegistryCredential result = new com.google.cloud.iot.v1.RegistryCredential(this); + com.google.cloud.iot.v1.RegistryCredential result = + new com.google.cloud.iot.v1.RegistryCredential(this); if (credentialCase_ == 1) { if (publicKeyCertificateBuilder_ == null) { result.credential_ = credential_; @@ -436,38 +480,39 @@ public com.google.cloud.iot.v1.RegistryCredential buildPartial() { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.iot.v1.RegistryCredential) { - return mergeFrom((com.google.cloud.iot.v1.RegistryCredential)other); + return mergeFrom((com.google.cloud.iot.v1.RegistryCredential) other); } else { super.mergeFrom(other); return this; @@ -477,13 +522,15 @@ public Builder mergeFrom(com.google.protobuf.Message other) { public Builder mergeFrom(com.google.cloud.iot.v1.RegistryCredential other) { if (other == com.google.cloud.iot.v1.RegistryCredential.getDefaultInstance()) return this; switch (other.getCredentialCase()) { - case PUBLIC_KEY_CERTIFICATE: { - mergePublicKeyCertificate(other.getPublicKeyCertificate()); - break; - } - case CREDENTIAL_NOT_SET: { - break; - } + case PUBLIC_KEY_CERTIFICATE: + { + mergePublicKeyCertificate(other.getPublicKeyCertificate()); + break; + } + case CREDENTIAL_NOT_SET: + { + break; + } } this.mergeUnknownFields(other.unknownFields); onChanged(); @@ -513,12 +560,12 @@ public Builder mergeFrom( } return this; } + private int credentialCase_ = 0; private java.lang.Object credential_; - public CredentialCase - getCredentialCase() { - return CredentialCase.forNumber( - credentialCase_); + + public CredentialCase getCredentialCase() { + return CredentialCase.forNumber(credentialCase_); } public Builder clearCredential() { @@ -528,15 +575,20 @@ public Builder clearCredential() { return this; } - private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.iot.v1.PublicKeyCertificate, com.google.cloud.iot.v1.PublicKeyCertificate.Builder, com.google.cloud.iot.v1.PublicKeyCertificateOrBuilder> publicKeyCertificateBuilder_; + com.google.cloud.iot.v1.PublicKeyCertificate, + com.google.cloud.iot.v1.PublicKeyCertificate.Builder, + com.google.cloud.iot.v1.PublicKeyCertificateOrBuilder> + publicKeyCertificateBuilder_; /** + * + * *
      * A public key certificate used to verify the device credentials.
      * 
* * .google.cloud.iot.v1.PublicKeyCertificate public_key_certificate = 1; + * * @return Whether the publicKeyCertificate field is set. */ @java.lang.Override @@ -544,11 +596,14 @@ public boolean hasPublicKeyCertificate() { return credentialCase_ == 1; } /** + * + * *
      * A public key certificate used to verify the device credentials.
      * 
* * .google.cloud.iot.v1.PublicKeyCertificate public_key_certificate = 1; + * * @return The publicKeyCertificate. */ @java.lang.Override @@ -566,6 +621,8 @@ public com.google.cloud.iot.v1.PublicKeyCertificate getPublicKeyCertificate() { } } /** + * + * *
      * A public key certificate used to verify the device credentials.
      * 
@@ -586,6 +643,8 @@ public Builder setPublicKeyCertificate(com.google.cloud.iot.v1.PublicKeyCertific return this; } /** + * + * *
      * A public key certificate used to verify the device credentials.
      * 
@@ -604,6 +663,8 @@ public Builder setPublicKeyCertificate( return this; } /** + * + * *
      * A public key certificate used to verify the device credentials.
      * 
@@ -612,10 +673,13 @@ public Builder setPublicKeyCertificate( */ public Builder mergePublicKeyCertificate(com.google.cloud.iot.v1.PublicKeyCertificate value) { if (publicKeyCertificateBuilder_ == null) { - if (credentialCase_ == 1 && - credential_ != com.google.cloud.iot.v1.PublicKeyCertificate.getDefaultInstance()) { - credential_ = com.google.cloud.iot.v1.PublicKeyCertificate.newBuilder((com.google.cloud.iot.v1.PublicKeyCertificate) credential_) - .mergeFrom(value).buildPartial(); + if (credentialCase_ == 1 + && credential_ != com.google.cloud.iot.v1.PublicKeyCertificate.getDefaultInstance()) { + credential_ = + com.google.cloud.iot.v1.PublicKeyCertificate.newBuilder( + (com.google.cloud.iot.v1.PublicKeyCertificate) credential_) + .mergeFrom(value) + .buildPartial(); } else { credential_ = value; } @@ -631,6 +695,8 @@ public Builder mergePublicKeyCertificate(com.google.cloud.iot.v1.PublicKeyCertif return this; } /** + * + * *
      * A public key certificate used to verify the device credentials.
      * 
@@ -654,6 +720,8 @@ public Builder clearPublicKeyCertificate() { return this; } /** + * + * *
      * A public key certificate used to verify the device credentials.
      * 
@@ -664,6 +732,8 @@ public com.google.cloud.iot.v1.PublicKeyCertificate.Builder getPublicKeyCertific return getPublicKeyCertificateFieldBuilder().getBuilder(); } /** + * + * *
      * A public key certificate used to verify the device credentials.
      * 
@@ -671,7 +741,8 @@ public com.google.cloud.iot.v1.PublicKeyCertificate.Builder getPublicKeyCertific * .google.cloud.iot.v1.PublicKeyCertificate public_key_certificate = 1; */ @java.lang.Override - public com.google.cloud.iot.v1.PublicKeyCertificateOrBuilder getPublicKeyCertificateOrBuilder() { + public com.google.cloud.iot.v1.PublicKeyCertificateOrBuilder + getPublicKeyCertificateOrBuilder() { if ((credentialCase_ == 1) && (publicKeyCertificateBuilder_ != null)) { return publicKeyCertificateBuilder_.getMessageOrBuilder(); } else { @@ -682,6 +753,8 @@ public com.google.cloud.iot.v1.PublicKeyCertificateOrBuilder getPublicKeyCertifi } } /** + * + * *
      * A public key certificate used to verify the device credentials.
      * 
@@ -689,26 +762,32 @@ public com.google.cloud.iot.v1.PublicKeyCertificateOrBuilder getPublicKeyCertifi * .google.cloud.iot.v1.PublicKeyCertificate public_key_certificate = 1; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.iot.v1.PublicKeyCertificate, com.google.cloud.iot.v1.PublicKeyCertificate.Builder, com.google.cloud.iot.v1.PublicKeyCertificateOrBuilder> + com.google.cloud.iot.v1.PublicKeyCertificate, + com.google.cloud.iot.v1.PublicKeyCertificate.Builder, + com.google.cloud.iot.v1.PublicKeyCertificateOrBuilder> getPublicKeyCertificateFieldBuilder() { if (publicKeyCertificateBuilder_ == null) { if (!(credentialCase_ == 1)) { credential_ = com.google.cloud.iot.v1.PublicKeyCertificate.getDefaultInstance(); } - publicKeyCertificateBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.iot.v1.PublicKeyCertificate, com.google.cloud.iot.v1.PublicKeyCertificate.Builder, com.google.cloud.iot.v1.PublicKeyCertificateOrBuilder>( + publicKeyCertificateBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.iot.v1.PublicKeyCertificate, + com.google.cloud.iot.v1.PublicKeyCertificate.Builder, + com.google.cloud.iot.v1.PublicKeyCertificateOrBuilder>( (com.google.cloud.iot.v1.PublicKeyCertificate) credential_, getParentForChildren(), isClean()); credential_ = null; } credentialCase_ = 1; - onChanged();; + onChanged(); + ; return publicKeyCertificateBuilder_; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -718,12 +797,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.iot.v1.RegistryCredential) } // @@protoc_insertion_point(class_scope:google.cloud.iot.v1.RegistryCredential) private static final com.google.cloud.iot.v1.RegistryCredential DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.iot.v1.RegistryCredential(); } @@ -732,16 +811,16 @@ public static com.google.cloud.iot.v1.RegistryCredential getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public RegistryCredential parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new RegistryCredential(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public RegistryCredential parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new RegistryCredential(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -756,6 +835,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.iot.v1.RegistryCredential getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1/proto-google-cloud-iot-v1/src/main/java/com/google/cloud/iot/v1/RegistryCredentialOrBuilder.java b/proto-google-cloud-iot-v1/src/main/java/com/google/cloud/iot/v1/RegistryCredentialOrBuilder.java similarity index 64% rename from owl-bot-staging/v1/proto-google-cloud-iot-v1/src/main/java/com/google/cloud/iot/v1/RegistryCredentialOrBuilder.java rename to proto-google-cloud-iot-v1/src/main/java/com/google/cloud/iot/v1/RegistryCredentialOrBuilder.java index b13ceaab..4a8cac1e 100644 --- a/owl-bot-staging/v1/proto-google-cloud-iot-v1/src/main/java/com/google/cloud/iot/v1/RegistryCredentialOrBuilder.java +++ b/proto-google-cloud-iot-v1/src/main/java/com/google/cloud/iot/v1/RegistryCredentialOrBuilder.java @@ -1,31 +1,55 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/iot/v1/resources.proto package com.google.cloud.iot.v1; -public interface RegistryCredentialOrBuilder extends +public interface RegistryCredentialOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.iot.v1.RegistryCredential) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * A public key certificate used to verify the device credentials.
    * 
* * .google.cloud.iot.v1.PublicKeyCertificate public_key_certificate = 1; + * * @return Whether the publicKeyCertificate field is set. */ boolean hasPublicKeyCertificate(); /** + * + * *
    * A public key certificate used to verify the device credentials.
    * 
* * .google.cloud.iot.v1.PublicKeyCertificate public_key_certificate = 1; + * * @return The publicKeyCertificate. */ com.google.cloud.iot.v1.PublicKeyCertificate getPublicKeyCertificate(); /** + * + * *
    * A public key certificate used to verify the device credentials.
    * 
diff --git a/owl-bot-staging/v1/proto-google-cloud-iot-v1/src/main/java/com/google/cloud/iot/v1/RegistryName.java b/proto-google-cloud-iot-v1/src/main/java/com/google/cloud/iot/v1/RegistryName.java similarity index 100% rename from owl-bot-staging/v1/proto-google-cloud-iot-v1/src/main/java/com/google/cloud/iot/v1/RegistryName.java rename to proto-google-cloud-iot-v1/src/main/java/com/google/cloud/iot/v1/RegistryName.java diff --git a/proto-google-cloud-iot-v1/src/main/java/com/google/cloud/iot/v1/ResourcesProto.java b/proto-google-cloud-iot-v1/src/main/java/com/google/cloud/iot/v1/ResourcesProto.java new file mode 100644 index 00000000..b8663144 --- /dev/null +++ b/proto-google-cloud-iot-v1/src/main/java/com/google/cloud/iot/v1/ResourcesProto.java @@ -0,0 +1,364 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/iot/v1/resources.proto + +package com.google.cloud.iot.v1; + +public final class ResourcesProto { + private ResourcesProto() {} + + 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_iot_v1_Device_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_iot_v1_Device_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_iot_v1_Device_MetadataEntry_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_iot_v1_Device_MetadataEntry_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_iot_v1_GatewayConfig_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_iot_v1_GatewayConfig_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_iot_v1_DeviceRegistry_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_iot_v1_DeviceRegistry_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_iot_v1_MqttConfig_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_iot_v1_MqttConfig_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_iot_v1_HttpConfig_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_iot_v1_HttpConfig_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_iot_v1_EventNotificationConfig_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_iot_v1_EventNotificationConfig_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_iot_v1_StateNotificationConfig_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_iot_v1_StateNotificationConfig_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_iot_v1_RegistryCredential_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_iot_v1_RegistryCredential_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_iot_v1_X509CertificateDetails_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_iot_v1_X509CertificateDetails_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_iot_v1_PublicKeyCertificate_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_iot_v1_PublicKeyCertificate_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_iot_v1_DeviceCredential_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_iot_v1_DeviceCredential_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_iot_v1_PublicKeyCredential_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_iot_v1_PublicKeyCredential_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_iot_v1_DeviceConfig_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_iot_v1_DeviceConfig_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_iot_v1_DeviceState_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_iot_v1_DeviceState_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/iot/v1/resources.proto\022\023g" + + "oogle.cloud.iot.v1\032\031google/api/resource." + + "proto\032\037google/protobuf/timestamp.proto\032\027" + + "google/rpc/status.proto\"\260\007\n\006Device\022\n\n\002id" + + "\030\001 \001(\t\022\014\n\004name\030\002 \001(\t\022\016\n\006num_id\030\003 \001(\004\022:\n\013" + + "credentials\030\014 \003(\0132%.google.cloud.iot.v1." + + "DeviceCredential\0227\n\023last_heartbeat_time\030" + + "\007 \001(\0132\032.google.protobuf.Timestamp\0223\n\017las" + + "t_event_time\030\010 \001(\0132\032.google.protobuf.Tim" + + "estamp\0223\n\017last_state_time\030\024 \001(\0132\032.google" + + ".protobuf.Timestamp\0228\n\024last_config_ack_t" + + "ime\030\016 \001(\0132\032.google.protobuf.Timestamp\0229\n" + + "\025last_config_send_time\030\022 \001(\0132\032.google.pr" + + "otobuf.Timestamp\022\017\n\007blocked\030\023 \001(\010\0223\n\017las" + + "t_error_time\030\n \001(\0132\032.google.protobuf.Tim" + + "estamp\022-\n\021last_error_status\030\013 \001(\0132\022.goog" + + "le.rpc.Status\0221\n\006config\030\r \001(\0132!.google.c" + + "loud.iot.v1.DeviceConfig\022/\n\005state\030\020 \001(\0132" + + " .google.cloud.iot.v1.DeviceState\0220\n\tlog" + + "_level\030\025 \001(\0162\035.google.cloud.iot.v1.LogLe" + + "vel\022;\n\010metadata\030\021 \003(\0132).google.cloud.iot" + + ".v1.Device.MetadataEntry\022:\n\016gateway_conf" + + "ig\030\030 \001(\0132\".google.cloud.iot.v1.GatewayCo" + + "nfig\032/\n\rMetadataEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005va" + + "lue\030\002 \001(\t:\0028\001:s\352Ap\n\036cloudiot.googleapis." + + "com/Device\022Nprojects/{project}/locations" + + "/{location}/registries/{registry}/device" + + "s/{device}\"\356\001\n\rGatewayConfig\0226\n\014gateway_" + + "type\030\001 \001(\0162 .google.cloud.iot.v1.Gateway" + + "Type\022C\n\023gateway_auth_method\030\002 \001(\0162&.goog" + + "le.cloud.iot.v1.GatewayAuthMethod\022 \n\030las" + + "t_accessed_gateway_id\030\003 \001(\t\022>\n\032last_acce" + + "ssed_gateway_time\030\004 \001(\0132\032.google.protobu" + + "f.Timestamp\"\217\004\n\016DeviceRegistry\022\n\n\002id\030\001 \001" + + "(\t\022\014\n\004name\030\002 \001(\t\022P\n\032event_notification_c" + + "onfigs\030\n \003(\0132,.google.cloud.iot.v1.Event" + + "NotificationConfig\022O\n\031state_notification" + + "_config\030\007 \001(\0132,.google.cloud.iot.v1.Stat" + + "eNotificationConfig\0224\n\013mqtt_config\030\004 \001(\013" + + "2\037.google.cloud.iot.v1.MqttConfig\0224\n\013htt" + + "p_config\030\t \001(\0132\037.google.cloud.iot.v1.Htt" + + "pConfig\0220\n\tlog_level\030\013 \001(\0162\035.google.clou" + + "d.iot.v1.LogLevel\022<\n\013credentials\030\010 \003(\0132\'" + + ".google.cloud.iot.v1.RegistryCredential:" + + "d\352Aa\n cloudiot.googleapis.com/Registry\022=" + + "projects/{project}/locations/{location}/" + + "registries/{registry}\"H\n\nMqttConfig\022:\n\022m" + + "qtt_enabled_state\030\001 \001(\0162\036.google.cloud.i" + + "ot.v1.MqttState\"H\n\nHttpConfig\022:\n\022http_en" + + "abled_state\030\001 \001(\0162\036.google.cloud.iot.v1." + + "HttpState\"O\n\027EventNotificationConfig\022\031\n\021" + + "subfolder_matches\030\002 \001(\t\022\031\n\021pubsub_topic_" + + "name\030\001 \001(\t\"4\n\027StateNotificationConfig\022\031\n" + + "\021pubsub_topic_name\030\001 \001(\t\"o\n\022RegistryCred" + + "ential\022K\n\026public_key_certificate\030\001 \001(\0132)" + + ".google.cloud.iot.v1.PublicKeyCertificat" + + "eH\000B\014\n\ncredential\"\320\001\n\026X509CertificateDet" + + "ails\022\016\n\006issuer\030\001 \001(\t\022\017\n\007subject\030\002 \001(\t\022.\n" + + "\nstart_time\030\003 \001(\0132\032.google.protobuf.Time" + + "stamp\022/\n\013expiry_time\030\004 \001(\0132\032.google.prot" + + "obuf.Timestamp\022\033\n\023signature_algorithm\030\005 " + + "\001(\t\022\027\n\017public_key_type\030\006 \001(\t\"\257\001\n\024PublicK" + + "eyCertificate\022?\n\006format\030\001 \001(\0162/.google.c" + + "loud.iot.v1.PublicKeyCertificateFormat\022\023" + + "\n\013certificate\030\002 \001(\t\022A\n\014x509_details\030\003 \001(" + + "\0132+.google.cloud.iot.v1.X509CertificateD" + + "etails\"\225\001\n\020DeviceCredential\022>\n\npublic_ke" + + "y\030\002 \001(\0132(.google.cloud.iot.v1.PublicKeyC" + + "redentialH\000\0223\n\017expiration_time\030\006 \001(\0132\032.g" + + "oogle.protobuf.TimestampB\014\n\ncredential\"X" + + "\n\023PublicKeyCredential\0224\n\006format\030\001 \001(\0162$." + + "google.cloud.iot.v1.PublicKeyFormat\022\013\n\003k" + + "ey\030\002 \001(\t\"\240\001\n\014DeviceConfig\022\017\n\007version\030\001 \001" + + "(\003\0225\n\021cloud_update_time\030\002 \001(\0132\032.google.p" + + "rotobuf.Timestamp\0223\n\017device_ack_time\030\003 \001" + + "(\0132\032.google.protobuf.Timestamp\022\023\n\013binary" + + "_data\030\004 \001(\014\"S\n\013DeviceState\022/\n\013update_tim" + + "e\030\001 \001(\0132\032.google.protobuf.Timestamp\022\023\n\013b" + + "inary_data\030\002 \001(\014*L\n\tMqttState\022\032\n\026MQTT_ST" + + "ATE_UNSPECIFIED\020\000\022\020\n\014MQTT_ENABLED\020\001\022\021\n\rM" + + "QTT_DISABLED\020\002*L\n\tHttpState\022\032\n\026HTTP_STAT" + + "E_UNSPECIFIED\020\000\022\020\n\014HTTP_ENABLED\020\001\022\021\n\rHTT" + + "P_DISABLED\020\002*O\n\010LogLevel\022\031\n\025LOG_LEVEL_UN" + + "SPECIFIED\020\000\022\010\n\004NONE\020\n\022\t\n\005ERROR\020\024\022\010\n\004INFO" + + "\020\036\022\t\n\005DEBUG\020(*I\n\013GatewayType\022\034\n\030GATEWAY_" + + "TYPE_UNSPECIFIED\020\000\022\013\n\007GATEWAY\020\001\022\017\n\013NON_G" + + "ATEWAY\020\002*\221\001\n\021GatewayAuthMethod\022#\n\037GATEWA" + + "Y_AUTH_METHOD_UNSPECIFIED\020\000\022\024\n\020ASSOCIATI" + + "ON_ONLY\020\001\022\032\n\026DEVICE_AUTH_TOKEN_ONLY\020\002\022%\n" + + "!ASSOCIATION_AND_DEVICE_AUTH_TOKEN\020\003*e\n\032" + + "PublicKeyCertificateFormat\022-\n)UNSPECIFIE" + + "D_PUBLIC_KEY_CERTIFICATE_FORMAT\020\000\022\030\n\024X50" + + "9_CERTIFICATE_PEM\020\001*v\n\017PublicKeyFormat\022!" + + "\n\035UNSPECIFIED_PUBLIC_KEY_FORMAT\020\000\022\013\n\007RSA" + + "_PEM\020\003\022\020\n\014RSA_X509_PEM\020\001\022\r\n\tES256_PEM\020\002\022" + + "\022\n\016ES256_X509_PEM\020\004Bf\n\027com.google.cloud." + + "iot.v1B\016ResourcesProtoP\001Z6google.golang." + + "org/genproto/googleapis/cloud/iot/v1;iot" + + "\370\001\001b\006proto3" + }; + descriptor = + com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( + descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + com.google.api.ResourceProto.getDescriptor(), + com.google.protobuf.TimestampProto.getDescriptor(), + com.google.rpc.StatusProto.getDescriptor(), + }); + internal_static_google_cloud_iot_v1_Device_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_cloud_iot_v1_Device_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_iot_v1_Device_descriptor, + new java.lang.String[] { + "Id", + "Name", + "NumId", + "Credentials", + "LastHeartbeatTime", + "LastEventTime", + "LastStateTime", + "LastConfigAckTime", + "LastConfigSendTime", + "Blocked", + "LastErrorTime", + "LastErrorStatus", + "Config", + "State", + "LogLevel", + "Metadata", + "GatewayConfig", + }); + internal_static_google_cloud_iot_v1_Device_MetadataEntry_descriptor = + internal_static_google_cloud_iot_v1_Device_descriptor.getNestedTypes().get(0); + internal_static_google_cloud_iot_v1_Device_MetadataEntry_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_iot_v1_Device_MetadataEntry_descriptor, + new java.lang.String[] { + "Key", "Value", + }); + internal_static_google_cloud_iot_v1_GatewayConfig_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_google_cloud_iot_v1_GatewayConfig_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_iot_v1_GatewayConfig_descriptor, + new java.lang.String[] { + "GatewayType", + "GatewayAuthMethod", + "LastAccessedGatewayId", + "LastAccessedGatewayTime", + }); + internal_static_google_cloud_iot_v1_DeviceRegistry_descriptor = + getDescriptor().getMessageTypes().get(2); + internal_static_google_cloud_iot_v1_DeviceRegistry_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_iot_v1_DeviceRegistry_descriptor, + new java.lang.String[] { + "Id", + "Name", + "EventNotificationConfigs", + "StateNotificationConfig", + "MqttConfig", + "HttpConfig", + "LogLevel", + "Credentials", + }); + internal_static_google_cloud_iot_v1_MqttConfig_descriptor = + getDescriptor().getMessageTypes().get(3); + internal_static_google_cloud_iot_v1_MqttConfig_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_iot_v1_MqttConfig_descriptor, + new java.lang.String[] { + "MqttEnabledState", + }); + internal_static_google_cloud_iot_v1_HttpConfig_descriptor = + getDescriptor().getMessageTypes().get(4); + internal_static_google_cloud_iot_v1_HttpConfig_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_iot_v1_HttpConfig_descriptor, + new java.lang.String[] { + "HttpEnabledState", + }); + internal_static_google_cloud_iot_v1_EventNotificationConfig_descriptor = + getDescriptor().getMessageTypes().get(5); + internal_static_google_cloud_iot_v1_EventNotificationConfig_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_iot_v1_EventNotificationConfig_descriptor, + new java.lang.String[] { + "SubfolderMatches", "PubsubTopicName", + }); + internal_static_google_cloud_iot_v1_StateNotificationConfig_descriptor = + getDescriptor().getMessageTypes().get(6); + internal_static_google_cloud_iot_v1_StateNotificationConfig_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_iot_v1_StateNotificationConfig_descriptor, + new java.lang.String[] { + "PubsubTopicName", + }); + internal_static_google_cloud_iot_v1_RegistryCredential_descriptor = + getDescriptor().getMessageTypes().get(7); + internal_static_google_cloud_iot_v1_RegistryCredential_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_iot_v1_RegistryCredential_descriptor, + new java.lang.String[] { + "PublicKeyCertificate", "Credential", + }); + internal_static_google_cloud_iot_v1_X509CertificateDetails_descriptor = + getDescriptor().getMessageTypes().get(8); + internal_static_google_cloud_iot_v1_X509CertificateDetails_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_iot_v1_X509CertificateDetails_descriptor, + new java.lang.String[] { + "Issuer", "Subject", "StartTime", "ExpiryTime", "SignatureAlgorithm", "PublicKeyType", + }); + internal_static_google_cloud_iot_v1_PublicKeyCertificate_descriptor = + getDescriptor().getMessageTypes().get(9); + internal_static_google_cloud_iot_v1_PublicKeyCertificate_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_iot_v1_PublicKeyCertificate_descriptor, + new java.lang.String[] { + "Format", "Certificate", "X509Details", + }); + internal_static_google_cloud_iot_v1_DeviceCredential_descriptor = + getDescriptor().getMessageTypes().get(10); + internal_static_google_cloud_iot_v1_DeviceCredential_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_iot_v1_DeviceCredential_descriptor, + new java.lang.String[] { + "PublicKey", "ExpirationTime", "Credential", + }); + internal_static_google_cloud_iot_v1_PublicKeyCredential_descriptor = + getDescriptor().getMessageTypes().get(11); + internal_static_google_cloud_iot_v1_PublicKeyCredential_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_iot_v1_PublicKeyCredential_descriptor, + new java.lang.String[] { + "Format", "Key", + }); + internal_static_google_cloud_iot_v1_DeviceConfig_descriptor = + getDescriptor().getMessageTypes().get(12); + internal_static_google_cloud_iot_v1_DeviceConfig_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_iot_v1_DeviceConfig_descriptor, + new java.lang.String[] { + "Version", "CloudUpdateTime", "DeviceAckTime", "BinaryData", + }); + internal_static_google_cloud_iot_v1_DeviceState_descriptor = + getDescriptor().getMessageTypes().get(13); + internal_static_google_cloud_iot_v1_DeviceState_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_iot_v1_DeviceState_descriptor, + new java.lang.String[] { + "UpdateTime", "BinaryData", + }); + com.google.protobuf.ExtensionRegistry registry = + com.google.protobuf.ExtensionRegistry.newInstance(); + registry.add(com.google.api.ResourceProto.resource); + com.google.protobuf.Descriptors.FileDescriptor.internalUpdateFileDescriptor( + descriptor, registry); + com.google.api.ResourceProto.getDescriptor(); + com.google.protobuf.TimestampProto.getDescriptor(); + com.google.rpc.StatusProto.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/owl-bot-staging/v1/proto-google-cloud-iot-v1/src/main/java/com/google/cloud/iot/v1/SendCommandToDeviceRequest.java b/proto-google-cloud-iot-v1/src/main/java/com/google/cloud/iot/v1/SendCommandToDeviceRequest.java similarity index 71% rename from owl-bot-staging/v1/proto-google-cloud-iot-v1/src/main/java/com/google/cloud/iot/v1/SendCommandToDeviceRequest.java rename to proto-google-cloud-iot-v1/src/main/java/com/google/cloud/iot/v1/SendCommandToDeviceRequest.java index c95cf12c..e17619f5 100644 --- a/owl-bot-staging/v1/proto-google-cloud-iot-v1/src/main/java/com/google/cloud/iot/v1/SendCommandToDeviceRequest.java +++ b/proto-google-cloud-iot-v1/src/main/java/com/google/cloud/iot/v1/SendCommandToDeviceRequest.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/iot/v1/device_manager.proto package com.google.cloud.iot.v1; /** + * + * *
  * Request for `SendCommandToDevice`.
  * 
* * Protobuf type {@code google.cloud.iot.v1.SendCommandToDeviceRequest} */ -public final class SendCommandToDeviceRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class SendCommandToDeviceRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.iot.v1.SendCommandToDeviceRequest) SendCommandToDeviceRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use SendCommandToDeviceRequest.newBuilder() to construct. private SendCommandToDeviceRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private SendCommandToDeviceRequest() { name_ = ""; binaryData_ = com.google.protobuf.ByteString.EMPTY; @@ -27,16 +45,15 @@ private SendCommandToDeviceRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new SendCommandToDeviceRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private SendCommandToDeviceRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -55,30 +72,32 @@ private SendCommandToDeviceRequest( case 0: done = true; break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); - - name_ = s; - break; - } - case 18: { + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); - binaryData_ = input.readBytes(); - break; - } - case 26: { - java.lang.String s = input.readStringRequireUtf8(); + name_ = s; + break; + } + case 18: + { + binaryData_ = input.readBytes(); + break; + } + case 26: + { + java.lang.String s = input.readStringRequireUtf8(); - subfolder_ = s; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + subfolder_ = s; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -86,36 +105,43 @@ private SendCommandToDeviceRequest( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.iot.v1.DeviceManagerProto.internal_static_google_cloud_iot_v1_SendCommandToDeviceRequest_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.iot.v1.DeviceManagerProto + .internal_static_google_cloud_iot_v1_SendCommandToDeviceRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.iot.v1.DeviceManagerProto.internal_static_google_cloud_iot_v1_SendCommandToDeviceRequest_fieldAccessorTable + return com.google.cloud.iot.v1.DeviceManagerProto + .internal_static_google_cloud_iot_v1_SendCommandToDeviceRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.iot.v1.SendCommandToDeviceRequest.class, com.google.cloud.iot.v1.SendCommandToDeviceRequest.Builder.class); + com.google.cloud.iot.v1.SendCommandToDeviceRequest.class, + com.google.cloud.iot.v1.SendCommandToDeviceRequest.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** + * + * *
    * Required. The name of the device. For example,
    * `projects/p0/locations/us-central1/registries/registry0/devices/device0` or
    * `projects/p0/locations/us-central1/registries/registry0/devices/{num_id}`.
    * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The name. */ @java.lang.Override @@ -124,31 +150,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. The name of the device. For example,
    * `projects/p0/locations/us-central1/registries/registry0/devices/device0` or
    * `projects/p0/locations/us-central1/registries/registry0/devices/{num_id}`.
    * 
* - * string name = 1 [(.google.api.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 { @@ -159,11 +187,14 @@ public java.lang.String getName() { public static final int BINARY_DATA_FIELD_NUMBER = 2; private com.google.protobuf.ByteString binaryData_; /** + * + * *
    * Required. The command data to send to the device.
    * 
* * bytes binary_data = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The binaryData. */ @java.lang.Override @@ -174,6 +205,8 @@ public com.google.protobuf.ByteString getBinaryData() { public static final int SUBFOLDER_FIELD_NUMBER = 3; private volatile java.lang.Object subfolder_; /** + * + * *
    * Optional subfolder for the command. If empty, the command will be delivered
    * to the /devices/{device-id}/commands topic, otherwise it will be delivered
@@ -183,6 +216,7 @@ public com.google.protobuf.ByteString getBinaryData() {
    * 
* * string subfolder = 3; + * * @return The subfolder. */ @java.lang.Override @@ -191,14 +225,15 @@ public java.lang.String getSubfolder() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); subfolder_ = s; return s; } } /** + * + * *
    * Optional subfolder for the command. If empty, the command will be delivered
    * to the /devices/{device-id}/commands topic, otherwise it will be delivered
@@ -208,16 +243,15 @@ public java.lang.String getSubfolder() {
    * 
* * string subfolder = 3; + * * @return The bytes for subfolder. */ @java.lang.Override - public com.google.protobuf.ByteString - getSubfolderBytes() { + public com.google.protobuf.ByteString getSubfolderBytes() { java.lang.Object ref = subfolder_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); subfolder_ = b; return b; } else { @@ -226,6 +260,7 @@ public java.lang.String getSubfolder() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -237,8 +272,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.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_); } @@ -261,8 +295,7 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); } if (!binaryData_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(2, binaryData_); + size += com.google.protobuf.CodedOutputStream.computeBytesSize(2, binaryData_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(subfolder_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, subfolder_); @@ -275,19 +308,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.iot.v1.SendCommandToDeviceRequest)) { return super.equals(obj); } - com.google.cloud.iot.v1.SendCommandToDeviceRequest other = (com.google.cloud.iot.v1.SendCommandToDeviceRequest) obj; + com.google.cloud.iot.v1.SendCommandToDeviceRequest other = + (com.google.cloud.iot.v1.SendCommandToDeviceRequest) obj; - if (!getName() - .equals(other.getName())) return false; - if (!getBinaryData() - .equals(other.getBinaryData())) return false; - if (!getSubfolder() - .equals(other.getSubfolder())) return false; + if (!getName().equals(other.getName())) return false; + if (!getBinaryData().equals(other.getBinaryData())) return false; + if (!getSubfolder().equals(other.getSubfolder())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -311,117 +342,126 @@ public int hashCode() { } public static com.google.cloud.iot.v1.SendCommandToDeviceRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.iot.v1.SendCommandToDeviceRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.iot.v1.SendCommandToDeviceRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.iot.v1.SendCommandToDeviceRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.iot.v1.SendCommandToDeviceRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.iot.v1.SendCommandToDeviceRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.iot.v1.SendCommandToDeviceRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.iot.v1.SendCommandToDeviceRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.iot.v1.SendCommandToDeviceRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.iot.v1.SendCommandToDeviceRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.iot.v1.SendCommandToDeviceRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.iot.v1.SendCommandToDeviceRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.iot.v1.SendCommandToDeviceRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.iot.v1.SendCommandToDeviceRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.cloud.iot.v1.SendCommandToDeviceRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected 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 `SendCommandToDevice`.
    * 
* * Protobuf type {@code google.cloud.iot.v1.SendCommandToDeviceRequest} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.iot.v1.SendCommandToDeviceRequest) com.google.cloud.iot.v1.SendCommandToDeviceRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.iot.v1.DeviceManagerProto.internal_static_google_cloud_iot_v1_SendCommandToDeviceRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.iot.v1.DeviceManagerProto + .internal_static_google_cloud_iot_v1_SendCommandToDeviceRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.iot.v1.DeviceManagerProto.internal_static_google_cloud_iot_v1_SendCommandToDeviceRequest_fieldAccessorTable + return com.google.cloud.iot.v1.DeviceManagerProto + .internal_static_google_cloud_iot_v1_SendCommandToDeviceRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.iot.v1.SendCommandToDeviceRequest.class, com.google.cloud.iot.v1.SendCommandToDeviceRequest.Builder.class); + com.google.cloud.iot.v1.SendCommandToDeviceRequest.class, + com.google.cloud.iot.v1.SendCommandToDeviceRequest.Builder.class); } // Construct using com.google.cloud.iot.v1.SendCommandToDeviceRequest.newBuilder() @@ -429,16 +469,15 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); 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 +491,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.iot.v1.DeviceManagerProto.internal_static_google_cloud_iot_v1_SendCommandToDeviceRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.iot.v1.DeviceManagerProto + .internal_static_google_cloud_iot_v1_SendCommandToDeviceRequest_descriptor; } @java.lang.Override @@ -473,7 +512,8 @@ public com.google.cloud.iot.v1.SendCommandToDeviceRequest build() { @java.lang.Override public com.google.cloud.iot.v1.SendCommandToDeviceRequest buildPartial() { - com.google.cloud.iot.v1.SendCommandToDeviceRequest result = new com.google.cloud.iot.v1.SendCommandToDeviceRequest(this); + com.google.cloud.iot.v1.SendCommandToDeviceRequest result = + new com.google.cloud.iot.v1.SendCommandToDeviceRequest(this); result.name_ = name_; result.binaryData_ = binaryData_; result.subfolder_ = subfolder_; @@ -485,38 +525,39 @@ public com.google.cloud.iot.v1.SendCommandToDeviceRequest buildPartial() { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.iot.v1.SendCommandToDeviceRequest) { - return mergeFrom((com.google.cloud.iot.v1.SendCommandToDeviceRequest)other); + return mergeFrom((com.google.cloud.iot.v1.SendCommandToDeviceRequest) other); } else { super.mergeFrom(other); return this; @@ -524,7 +565,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.iot.v1.SendCommandToDeviceRequest other) { - if (other == com.google.cloud.iot.v1.SendCommandToDeviceRequest.getDefaultInstance()) return this; + if (other == com.google.cloud.iot.v1.SendCommandToDeviceRequest.getDefaultInstance()) + return this; if (!other.getName().isEmpty()) { name_ = other.name_; onChanged(); @@ -555,7 +597,8 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.iot.v1.SendCommandToDeviceRequest) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.iot.v1.SendCommandToDeviceRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -567,20 +610,24 @@ public Builder mergeFrom( private java.lang.Object name_ = ""; /** + * + * *
      * Required. The name of the device. For example,
      * `projects/p0/locations/us-central1/registries/registry0/devices/device0` or
      * `projects/p0/locations/us-central1/registries/registry0/devices/{num_id}`.
      * 
* - * string name = 1 [(.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; @@ -589,22 +636,25 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. The name of the device. For example,
      * `projects/p0/locations/us-central1/registries/registry0/devices/device0` or
      * `projects/p0/locations/us-central1/registries/registry0/devices/{num_id}`.
      * 
* - * string name = 1 [(.google.api.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 { @@ -612,60 +662,73 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. The name of the device. For example,
      * `projects/p0/locations/us-central1/registries/registry0/devices/device0` or
      * `projects/p0/locations/us-central1/registries/registry0/devices/{num_id}`.
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The name to set. * @return This builder for chaining. */ - public Builder setName( - java.lang.String value) { + public Builder setName(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + name_ = value; onChanged(); return this; } /** + * + * *
      * Required. The name of the device. For example,
      * `projects/p0/locations/us-central1/registries/registry0/devices/device0` or
      * `projects/p0/locations/us-central1/registries/registry0/devices/{num_id}`.
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return This builder for chaining. */ public Builder clearName() { - + name_ = getDefaultInstance().getName(); onChanged(); return this; } /** + * + * *
      * Required. The name of the device. For example,
      * `projects/p0/locations/us-central1/registries/registry0/devices/device0` or
      * `projects/p0/locations/us-central1/registries/registry0/devices/{num_id}`.
      * 
* - * 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; @@ -673,11 +736,14 @@ public Builder setNameBytes( private com.google.protobuf.ByteString binaryData_ = com.google.protobuf.ByteString.EMPTY; /** + * + * *
      * Required. The command data to send to the device.
      * 
* * bytes binary_data = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The binaryData. */ @java.lang.Override @@ -685,33 +751,39 @@ public com.google.protobuf.ByteString getBinaryData() { return binaryData_; } /** + * + * *
      * Required. The command data to send to the device.
      * 
* * bytes binary_data = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @param value The binaryData to set. * @return This builder for chaining. */ public Builder setBinaryData(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + binaryData_ = value; onChanged(); return this; } /** + * + * *
      * Required. The command data to send to the device.
      * 
* * bytes binary_data = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return This builder for chaining. */ public Builder clearBinaryData() { - + binaryData_ = getDefaultInstance().getBinaryData(); onChanged(); return this; @@ -719,6 +791,8 @@ public Builder clearBinaryData() { private java.lang.Object subfolder_ = ""; /** + * + * *
      * Optional subfolder for the command. If empty, the command will be delivered
      * to the /devices/{device-id}/commands topic, otherwise it will be delivered
@@ -728,13 +802,13 @@ public Builder clearBinaryData() {
      * 
* * string subfolder = 3; + * * @return The subfolder. */ public java.lang.String getSubfolder() { java.lang.Object ref = subfolder_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); subfolder_ = s; return s; @@ -743,6 +817,8 @@ public java.lang.String getSubfolder() { } } /** + * + * *
      * Optional subfolder for the command. If empty, the command will be delivered
      * to the /devices/{device-id}/commands topic, otherwise it will be delivered
@@ -752,15 +828,14 @@ public java.lang.String getSubfolder() {
      * 
* * string subfolder = 3; + * * @return The bytes for subfolder. */ - public com.google.protobuf.ByteString - getSubfolderBytes() { + public com.google.protobuf.ByteString getSubfolderBytes() { java.lang.Object ref = subfolder_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); subfolder_ = b; return b; } else { @@ -768,6 +843,8 @@ public java.lang.String getSubfolder() { } } /** + * + * *
      * Optional subfolder for the command. If empty, the command will be delivered
      * to the /devices/{device-id}/commands topic, otherwise it will be delivered
@@ -777,20 +854,22 @@ public java.lang.String getSubfolder() {
      * 
* * string subfolder = 3; + * * @param value The subfolder to set. * @return This builder for chaining. */ - public Builder setSubfolder( - java.lang.String value) { + public Builder setSubfolder(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + subfolder_ = value; onChanged(); return this; } /** + * + * *
      * Optional subfolder for the command. If empty, the command will be delivered
      * to the /devices/{device-id}/commands topic, otherwise it will be delivered
@@ -800,15 +879,18 @@ public Builder setSubfolder(
      * 
* * string subfolder = 3; + * * @return This builder for chaining. */ public Builder clearSubfolder() { - + subfolder_ = getDefaultInstance().getSubfolder(); onChanged(); return this; } /** + * + * *
      * Optional subfolder for the command. If empty, the command will be delivered
      * to the /devices/{device-id}/commands topic, otherwise it will be delivered
@@ -818,23 +900,23 @@ public Builder clearSubfolder() {
      * 
* * string subfolder = 3; + * * @param value The bytes for subfolder to set. * @return This builder for chaining. */ - public Builder setSubfolderBytes( - com.google.protobuf.ByteString value) { + public Builder setSubfolderBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + subfolder_ = value; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -844,12 +926,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.iot.v1.SendCommandToDeviceRequest) } // @@protoc_insertion_point(class_scope:google.cloud.iot.v1.SendCommandToDeviceRequest) private static final com.google.cloud.iot.v1.SendCommandToDeviceRequest DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.iot.v1.SendCommandToDeviceRequest(); } @@ -858,16 +940,16 @@ public static com.google.cloud.iot.v1.SendCommandToDeviceRequest getDefaultInsta return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public SendCommandToDeviceRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new SendCommandToDeviceRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public SendCommandToDeviceRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new SendCommandToDeviceRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -882,6 +964,4 @@ public com.google.protobuf.Parser getParserForType() public com.google.cloud.iot.v1.SendCommandToDeviceRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1/proto-google-cloud-iot-v1/src/main/java/com/google/cloud/iot/v1/SendCommandToDeviceRequestOrBuilder.java b/proto-google-cloud-iot-v1/src/main/java/com/google/cloud/iot/v1/SendCommandToDeviceRequestOrBuilder.java similarity index 66% rename from owl-bot-staging/v1/proto-google-cloud-iot-v1/src/main/java/com/google/cloud/iot/v1/SendCommandToDeviceRequestOrBuilder.java rename to proto-google-cloud-iot-v1/src/main/java/com/google/cloud/iot/v1/SendCommandToDeviceRequestOrBuilder.java index d9efcc4d..a801f4f1 100644 --- a/owl-bot-staging/v1/proto-google-cloud-iot-v1/src/main/java/com/google/cloud/iot/v1/SendCommandToDeviceRequestOrBuilder.java +++ b/proto-google-cloud-iot-v1/src/main/java/com/google/cloud/iot/v1/SendCommandToDeviceRequestOrBuilder.java @@ -1,47 +1,77 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/iot/v1/device_manager.proto package com.google.cloud.iot.v1; -public interface SendCommandToDeviceRequestOrBuilder extends +public interface SendCommandToDeviceRequestOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.iot.v1.SendCommandToDeviceRequest) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Required. The name of the device. For example,
    * `projects/p0/locations/us-central1/registries/registry0/devices/device0` or
    * `projects/p0/locations/us-central1/registries/registry0/devices/{num_id}`.
    * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The name. */ java.lang.String getName(); /** + * + * *
    * Required. The name of the device. For example,
    * `projects/p0/locations/us-central1/registries/registry0/devices/device0` or
    * `projects/p0/locations/us-central1/registries/registry0/devices/{num_id}`.
    * 
* - * string name = 1 [(.google.api.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. The command data to send to the device.
    * 
* * bytes binary_data = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The binaryData. */ com.google.protobuf.ByteString getBinaryData(); /** + * + * *
    * Optional subfolder for the command. If empty, the command will be delivered
    * to the /devices/{device-id}/commands topic, otherwise it will be delivered
@@ -51,10 +81,13 @@ public interface SendCommandToDeviceRequestOrBuilder extends
    * 
* * string subfolder = 3; + * * @return The subfolder. */ java.lang.String getSubfolder(); /** + * + * *
    * Optional subfolder for the command. If empty, the command will be delivered
    * to the /devices/{device-id}/commands topic, otherwise it will be delivered
@@ -64,8 +97,8 @@ public interface SendCommandToDeviceRequestOrBuilder extends
    * 
* * string subfolder = 3; + * * @return The bytes for subfolder. */ - com.google.protobuf.ByteString - getSubfolderBytes(); + com.google.protobuf.ByteString getSubfolderBytes(); } diff --git a/owl-bot-staging/v1/proto-google-cloud-iot-v1/src/main/java/com/google/cloud/iot/v1/SendCommandToDeviceResponse.java b/proto-google-cloud-iot-v1/src/main/java/com/google/cloud/iot/v1/SendCommandToDeviceResponse.java similarity index 65% rename from owl-bot-staging/v1/proto-google-cloud-iot-v1/src/main/java/com/google/cloud/iot/v1/SendCommandToDeviceResponse.java rename to proto-google-cloud-iot-v1/src/main/java/com/google/cloud/iot/v1/SendCommandToDeviceResponse.java index 1c551a7e..093d5701 100644 --- a/owl-bot-staging/v1/proto-google-cloud-iot-v1/src/main/java/com/google/cloud/iot/v1/SendCommandToDeviceResponse.java +++ b/proto-google-cloud-iot-v1/src/main/java/com/google/cloud/iot/v1/SendCommandToDeviceResponse.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/iot/v1/device_manager.proto package com.google.cloud.iot.v1; /** + * + * *
  * Response for `SendCommandToDevice`.
  * 
* * Protobuf type {@code google.cloud.iot.v1.SendCommandToDeviceResponse} */ -public final class SendCommandToDeviceResponse extends - com.google.protobuf.GeneratedMessageV3 implements +public final class SendCommandToDeviceResponse extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.iot.v1.SendCommandToDeviceResponse) SendCommandToDeviceResponseOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use SendCommandToDeviceResponse.newBuilder() to construct. private SendCommandToDeviceResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private SendCommandToDeviceResponse() { - } + + private SendCommandToDeviceResponse() {} @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new SendCommandToDeviceResponse(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private SendCommandToDeviceResponse( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -52,13 +68,13 @@ private SendCommandToDeviceResponse( case 0: done = true; break; - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -66,27 +82,30 @@ private SendCommandToDeviceResponse( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.iot.v1.DeviceManagerProto.internal_static_google_cloud_iot_v1_SendCommandToDeviceResponse_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.iot.v1.DeviceManagerProto + .internal_static_google_cloud_iot_v1_SendCommandToDeviceResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.iot.v1.DeviceManagerProto.internal_static_google_cloud_iot_v1_SendCommandToDeviceResponse_fieldAccessorTable + return com.google.cloud.iot.v1.DeviceManagerProto + .internal_static_google_cloud_iot_v1_SendCommandToDeviceResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.iot.v1.SendCommandToDeviceResponse.class, com.google.cloud.iot.v1.SendCommandToDeviceResponse.Builder.class); + com.google.cloud.iot.v1.SendCommandToDeviceResponse.class, + com.google.cloud.iot.v1.SendCommandToDeviceResponse.Builder.class); } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -98,8 +117,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { unknownFields.writeTo(output); } @@ -117,12 +135,13 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.iot.v1.SendCommandToDeviceResponse)) { return super.equals(obj); } - com.google.cloud.iot.v1.SendCommandToDeviceResponse other = (com.google.cloud.iot.v1.SendCommandToDeviceResponse) obj; + com.google.cloud.iot.v1.SendCommandToDeviceResponse other = + (com.google.cloud.iot.v1.SendCommandToDeviceResponse) obj; if (!unknownFields.equals(other.unknownFields)) return false; return true; @@ -141,117 +160,126 @@ public int hashCode() { } public static com.google.cloud.iot.v1.SendCommandToDeviceResponse parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.iot.v1.SendCommandToDeviceResponse parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.iot.v1.SendCommandToDeviceResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.iot.v1.SendCommandToDeviceResponse parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.iot.v1.SendCommandToDeviceResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.iot.v1.SendCommandToDeviceResponse parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.iot.v1.SendCommandToDeviceResponse parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.iot.v1.SendCommandToDeviceResponse parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.iot.v1.SendCommandToDeviceResponse parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.iot.v1.SendCommandToDeviceResponse parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.iot.v1.SendCommandToDeviceResponse parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.iot.v1.SendCommandToDeviceResponse parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.iot.v1.SendCommandToDeviceResponse parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.iot.v1.SendCommandToDeviceResponse parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.cloud.iot.v1.SendCommandToDeviceResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected 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 `SendCommandToDevice`.
    * 
* * Protobuf type {@code google.cloud.iot.v1.SendCommandToDeviceResponse} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.iot.v1.SendCommandToDeviceResponse) com.google.cloud.iot.v1.SendCommandToDeviceResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.iot.v1.DeviceManagerProto.internal_static_google_cloud_iot_v1_SendCommandToDeviceResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.iot.v1.DeviceManagerProto + .internal_static_google_cloud_iot_v1_SendCommandToDeviceResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.iot.v1.DeviceManagerProto.internal_static_google_cloud_iot_v1_SendCommandToDeviceResponse_fieldAccessorTable + return com.google.cloud.iot.v1.DeviceManagerProto + .internal_static_google_cloud_iot_v1_SendCommandToDeviceResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.iot.v1.SendCommandToDeviceResponse.class, com.google.cloud.iot.v1.SendCommandToDeviceResponse.Builder.class); + com.google.cloud.iot.v1.SendCommandToDeviceResponse.class, + com.google.cloud.iot.v1.SendCommandToDeviceResponse.Builder.class); } // Construct using com.google.cloud.iot.v1.SendCommandToDeviceResponse.newBuilder() @@ -259,16 +287,15 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -276,9 +303,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.iot.v1.DeviceManagerProto.internal_static_google_cloud_iot_v1_SendCommandToDeviceResponse_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.iot.v1.DeviceManagerProto + .internal_static_google_cloud_iot_v1_SendCommandToDeviceResponse_descriptor; } @java.lang.Override @@ -297,7 +324,8 @@ public com.google.cloud.iot.v1.SendCommandToDeviceResponse build() { @java.lang.Override public com.google.cloud.iot.v1.SendCommandToDeviceResponse buildPartial() { - com.google.cloud.iot.v1.SendCommandToDeviceResponse result = new com.google.cloud.iot.v1.SendCommandToDeviceResponse(this); + com.google.cloud.iot.v1.SendCommandToDeviceResponse result = + new com.google.cloud.iot.v1.SendCommandToDeviceResponse(this); onBuilt(); return result; } @@ -306,38 +334,39 @@ public com.google.cloud.iot.v1.SendCommandToDeviceResponse buildPartial() { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.iot.v1.SendCommandToDeviceResponse) { - return mergeFrom((com.google.cloud.iot.v1.SendCommandToDeviceResponse)other); + return mergeFrom((com.google.cloud.iot.v1.SendCommandToDeviceResponse) other); } else { super.mergeFrom(other); return this; @@ -345,7 +374,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.iot.v1.SendCommandToDeviceResponse other) { - if (other == com.google.cloud.iot.v1.SendCommandToDeviceResponse.getDefaultInstance()) return this; + if (other == com.google.cloud.iot.v1.SendCommandToDeviceResponse.getDefaultInstance()) + return this; this.mergeUnknownFields(other.unknownFields); onChanged(); return this; @@ -365,7 +395,8 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.iot.v1.SendCommandToDeviceResponse) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.iot.v1.SendCommandToDeviceResponse) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -374,9 +405,9 @@ public Builder mergeFrom( } return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -386,12 +417,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.iot.v1.SendCommandToDeviceResponse) } // @@protoc_insertion_point(class_scope:google.cloud.iot.v1.SendCommandToDeviceResponse) private static final com.google.cloud.iot.v1.SendCommandToDeviceResponse DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.iot.v1.SendCommandToDeviceResponse(); } @@ -400,16 +431,16 @@ public static com.google.cloud.iot.v1.SendCommandToDeviceResponse getDefaultInst return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public SendCommandToDeviceResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new SendCommandToDeviceResponse(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public SendCommandToDeviceResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new SendCommandToDeviceResponse(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -424,6 +455,4 @@ public com.google.protobuf.Parser getParserForType( public com.google.cloud.iot.v1.SendCommandToDeviceResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/proto-google-cloud-iot-v1/src/main/java/com/google/cloud/iot/v1/SendCommandToDeviceResponseOrBuilder.java b/proto-google-cloud-iot-v1/src/main/java/com/google/cloud/iot/v1/SendCommandToDeviceResponseOrBuilder.java new file mode 100644 index 00000000..2358336d --- /dev/null +++ b/proto-google-cloud-iot-v1/src/main/java/com/google/cloud/iot/v1/SendCommandToDeviceResponseOrBuilder.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/iot/v1/device_manager.proto + +package com.google.cloud.iot.v1; + +public interface SendCommandToDeviceResponseOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.iot.v1.SendCommandToDeviceResponse) + com.google.protobuf.MessageOrBuilder {} diff --git a/owl-bot-staging/v1/proto-google-cloud-iot-v1/src/main/java/com/google/cloud/iot/v1/StateNotificationConfig.java b/proto-google-cloud-iot-v1/src/main/java/com/google/cloud/iot/v1/StateNotificationConfig.java similarity index 69% rename from owl-bot-staging/v1/proto-google-cloud-iot-v1/src/main/java/com/google/cloud/iot/v1/StateNotificationConfig.java rename to proto-google-cloud-iot-v1/src/main/java/com/google/cloud/iot/v1/StateNotificationConfig.java index 1a8d2692..e6defab5 100644 --- a/owl-bot-staging/v1/proto-google-cloud-iot-v1/src/main/java/com/google/cloud/iot/v1/StateNotificationConfig.java +++ b/proto-google-cloud-iot-v1/src/main/java/com/google/cloud/iot/v1/StateNotificationConfig.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/iot/v1/resources.proto package com.google.cloud.iot.v1; /** + * + * *
  * The configuration for notification of new states received from the device.
  * 
* * Protobuf type {@code google.cloud.iot.v1.StateNotificationConfig} */ -public final class StateNotificationConfig extends - com.google.protobuf.GeneratedMessageV3 implements +public final class StateNotificationConfig extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.iot.v1.StateNotificationConfig) StateNotificationConfigOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use StateNotificationConfig.newBuilder() to construct. private StateNotificationConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private StateNotificationConfig() { pubsubTopicName_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new StateNotificationConfig(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private StateNotificationConfig( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -53,19 +70,20 @@ private StateNotificationConfig( case 0: done = true; break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); - pubsubTopicName_ = s; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + pubsubTopicName_ = s; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -73,35 +91,40 @@ private StateNotificationConfig( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.iot.v1.ResourcesProto.internal_static_google_cloud_iot_v1_StateNotificationConfig_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.iot.v1.ResourcesProto + .internal_static_google_cloud_iot_v1_StateNotificationConfig_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.iot.v1.ResourcesProto.internal_static_google_cloud_iot_v1_StateNotificationConfig_fieldAccessorTable + return com.google.cloud.iot.v1.ResourcesProto + .internal_static_google_cloud_iot_v1_StateNotificationConfig_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.iot.v1.StateNotificationConfig.class, com.google.cloud.iot.v1.StateNotificationConfig.Builder.class); + com.google.cloud.iot.v1.StateNotificationConfig.class, + com.google.cloud.iot.v1.StateNotificationConfig.Builder.class); } public static final int PUBSUB_TOPIC_NAME_FIELD_NUMBER = 1; private volatile java.lang.Object pubsubTopicName_; /** + * + * *
    * A Cloud Pub/Sub topic name. For example,
    * `projects/myProject/topics/deviceEvents`.
    * 
* * string pubsub_topic_name = 1; + * * @return The pubsubTopicName. */ @java.lang.Override @@ -110,30 +133,30 @@ public java.lang.String getPubsubTopicName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); pubsubTopicName_ = s; return s; } } /** + * + * *
    * A Cloud Pub/Sub topic name. For example,
    * `projects/myProject/topics/deviceEvents`.
    * 
* * string pubsub_topic_name = 1; + * * @return The bytes for pubsubTopicName. */ @java.lang.Override - public com.google.protobuf.ByteString - getPubsubTopicNameBytes() { + public com.google.protobuf.ByteString getPubsubTopicNameBytes() { java.lang.Object ref = pubsubTopicName_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); pubsubTopicName_ = b; return b; } else { @@ -142,6 +165,7 @@ public java.lang.String getPubsubTopicName() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -153,8 +177,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pubsubTopicName_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, pubsubTopicName_); } @@ -178,15 +201,15 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.iot.v1.StateNotificationConfig)) { return super.equals(obj); } - com.google.cloud.iot.v1.StateNotificationConfig other = (com.google.cloud.iot.v1.StateNotificationConfig) obj; + com.google.cloud.iot.v1.StateNotificationConfig other = + (com.google.cloud.iot.v1.StateNotificationConfig) obj; - if (!getPubsubTopicName() - .equals(other.getPubsubTopicName())) return false; + if (!getPubsubTopicName().equals(other.getPubsubTopicName())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -205,118 +228,127 @@ public int hashCode() { return hash; } - public static com.google.cloud.iot.v1.StateNotificationConfig parseFrom( - java.nio.ByteBuffer data) + public static com.google.cloud.iot.v1.StateNotificationConfig parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.iot.v1.StateNotificationConfig parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.iot.v1.StateNotificationConfig parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.iot.v1.StateNotificationConfig parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.iot.v1.StateNotificationConfig parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.iot.v1.StateNotificationConfig parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.iot.v1.StateNotificationConfig 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.iot.v1.StateNotificationConfig parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.iot.v1.StateNotificationConfig parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.iot.v1.StateNotificationConfig parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.iot.v1.StateNotificationConfig parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.iot.v1.StateNotificationConfig parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.iot.v1.StateNotificationConfig parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.cloud.iot.v1.StateNotificationConfig prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * The configuration for notification of new states received from the device.
    * 
* * Protobuf type {@code google.cloud.iot.v1.StateNotificationConfig} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.iot.v1.StateNotificationConfig) com.google.cloud.iot.v1.StateNotificationConfigOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.iot.v1.ResourcesProto.internal_static_google_cloud_iot_v1_StateNotificationConfig_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.iot.v1.ResourcesProto + .internal_static_google_cloud_iot_v1_StateNotificationConfig_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.iot.v1.ResourcesProto.internal_static_google_cloud_iot_v1_StateNotificationConfig_fieldAccessorTable + return com.google.cloud.iot.v1.ResourcesProto + .internal_static_google_cloud_iot_v1_StateNotificationConfig_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.iot.v1.StateNotificationConfig.class, com.google.cloud.iot.v1.StateNotificationConfig.Builder.class); + com.google.cloud.iot.v1.StateNotificationConfig.class, + com.google.cloud.iot.v1.StateNotificationConfig.Builder.class); } // Construct using com.google.cloud.iot.v1.StateNotificationConfig.newBuilder() @@ -324,16 +356,15 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -343,9 +374,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.iot.v1.ResourcesProto.internal_static_google_cloud_iot_v1_StateNotificationConfig_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.iot.v1.ResourcesProto + .internal_static_google_cloud_iot_v1_StateNotificationConfig_descriptor; } @java.lang.Override @@ -364,7 +395,8 @@ public com.google.cloud.iot.v1.StateNotificationConfig build() { @java.lang.Override public com.google.cloud.iot.v1.StateNotificationConfig buildPartial() { - com.google.cloud.iot.v1.StateNotificationConfig result = new com.google.cloud.iot.v1.StateNotificationConfig(this); + com.google.cloud.iot.v1.StateNotificationConfig result = + new com.google.cloud.iot.v1.StateNotificationConfig(this); result.pubsubTopicName_ = pubsubTopicName_; onBuilt(); return result; @@ -374,38 +406,39 @@ public com.google.cloud.iot.v1.StateNotificationConfig buildPartial() { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.iot.v1.StateNotificationConfig) { - return mergeFrom((com.google.cloud.iot.v1.StateNotificationConfig)other); + return mergeFrom((com.google.cloud.iot.v1.StateNotificationConfig) other); } else { super.mergeFrom(other); return this; @@ -413,7 +446,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.iot.v1.StateNotificationConfig other) { - if (other == com.google.cloud.iot.v1.StateNotificationConfig.getDefaultInstance()) return this; + if (other == com.google.cloud.iot.v1.StateNotificationConfig.getDefaultInstance()) + return this; if (!other.getPubsubTopicName().isEmpty()) { pubsubTopicName_ = other.pubsubTopicName_; onChanged(); @@ -449,19 +483,21 @@ public Builder mergeFrom( private java.lang.Object pubsubTopicName_ = ""; /** + * + * *
      * A Cloud Pub/Sub topic name. For example,
      * `projects/myProject/topics/deviceEvents`.
      * 
* * string pubsub_topic_name = 1; + * * @return The pubsubTopicName. */ public java.lang.String getPubsubTopicName() { java.lang.Object ref = pubsubTopicName_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); pubsubTopicName_ = s; return s; @@ -470,21 +506,22 @@ public java.lang.String getPubsubTopicName() { } } /** + * + * *
      * A Cloud Pub/Sub topic name. For example,
      * `projects/myProject/topics/deviceEvents`.
      * 
* * string pubsub_topic_name = 1; + * * @return The bytes for pubsubTopicName. */ - public com.google.protobuf.ByteString - getPubsubTopicNameBytes() { + public com.google.protobuf.ByteString getPubsubTopicNameBytes() { java.lang.Object ref = pubsubTopicName_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); pubsubTopicName_ = b; return b; } else { @@ -492,64 +529,71 @@ public java.lang.String getPubsubTopicName() { } } /** + * + * *
      * A Cloud Pub/Sub topic name. For example,
      * `projects/myProject/topics/deviceEvents`.
      * 
* * string pubsub_topic_name = 1; + * * @param value The pubsubTopicName to set. * @return This builder for chaining. */ - public Builder setPubsubTopicName( - java.lang.String value) { + public Builder setPubsubTopicName(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + pubsubTopicName_ = value; onChanged(); return this; } /** + * + * *
      * A Cloud Pub/Sub topic name. For example,
      * `projects/myProject/topics/deviceEvents`.
      * 
* * string pubsub_topic_name = 1; + * * @return This builder for chaining. */ public Builder clearPubsubTopicName() { - + pubsubTopicName_ = getDefaultInstance().getPubsubTopicName(); onChanged(); return this; } /** + * + * *
      * A Cloud Pub/Sub topic name. For example,
      * `projects/myProject/topics/deviceEvents`.
      * 
* * string pubsub_topic_name = 1; + * * @param value The bytes for pubsubTopicName to set. * @return This builder for chaining. */ - public Builder setPubsubTopicNameBytes( - com.google.protobuf.ByteString value) { + public Builder setPubsubTopicNameBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + pubsubTopicName_ = value; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -559,12 +603,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.iot.v1.StateNotificationConfig) } // @@protoc_insertion_point(class_scope:google.cloud.iot.v1.StateNotificationConfig) private static final com.google.cloud.iot.v1.StateNotificationConfig DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.iot.v1.StateNotificationConfig(); } @@ -573,16 +617,16 @@ public static com.google.cloud.iot.v1.StateNotificationConfig getDefaultInstance return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public StateNotificationConfig parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new StateNotificationConfig(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public StateNotificationConfig parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new StateNotificationConfig(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -597,6 +641,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.iot.v1.StateNotificationConfig getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1/proto-google-cloud-iot-v1/src/main/java/com/google/cloud/iot/v1/StateNotificationConfigOrBuilder.java b/proto-google-cloud-iot-v1/src/main/java/com/google/cloud/iot/v1/StateNotificationConfigOrBuilder.java similarity index 50% rename from owl-bot-staging/v1/proto-google-cloud-iot-v1/src/main/java/com/google/cloud/iot/v1/StateNotificationConfigOrBuilder.java rename to proto-google-cloud-iot-v1/src/main/java/com/google/cloud/iot/v1/StateNotificationConfigOrBuilder.java index 3f88b578..af4e3e56 100644 --- a/owl-bot-staging/v1/proto-google-cloud-iot-v1/src/main/java/com/google/cloud/iot/v1/StateNotificationConfigOrBuilder.java +++ b/proto-google-cloud-iot-v1/src/main/java/com/google/cloud/iot/v1/StateNotificationConfigOrBuilder.java @@ -1,31 +1,52 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/iot/v1/resources.proto package com.google.cloud.iot.v1; -public interface StateNotificationConfigOrBuilder extends +public interface StateNotificationConfigOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.iot.v1.StateNotificationConfig) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * A Cloud Pub/Sub topic name. For example,
    * `projects/myProject/topics/deviceEvents`.
    * 
* * string pubsub_topic_name = 1; + * * @return The pubsubTopicName. */ java.lang.String getPubsubTopicName(); /** + * + * *
    * A Cloud Pub/Sub topic name. For example,
    * `projects/myProject/topics/deviceEvents`.
    * 
* * string pubsub_topic_name = 1; + * * @return The bytes for pubsubTopicName. */ - com.google.protobuf.ByteString - getPubsubTopicNameBytes(); + com.google.protobuf.ByteString getPubsubTopicNameBytes(); } diff --git a/owl-bot-staging/v1/proto-google-cloud-iot-v1/src/main/java/com/google/cloud/iot/v1/UnbindDeviceFromGatewayRequest.java b/proto-google-cloud-iot-v1/src/main/java/com/google/cloud/iot/v1/UnbindDeviceFromGatewayRequest.java similarity index 69% rename from owl-bot-staging/v1/proto-google-cloud-iot-v1/src/main/java/com/google/cloud/iot/v1/UnbindDeviceFromGatewayRequest.java rename to proto-google-cloud-iot-v1/src/main/java/com/google/cloud/iot/v1/UnbindDeviceFromGatewayRequest.java index d82b3857..a7ab50fd 100644 --- a/owl-bot-staging/v1/proto-google-cloud-iot-v1/src/main/java/com/google/cloud/iot/v1/UnbindDeviceFromGatewayRequest.java +++ b/proto-google-cloud-iot-v1/src/main/java/com/google/cloud/iot/v1/UnbindDeviceFromGatewayRequest.java @@ -1,24 +1,43 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/iot/v1/device_manager.proto package com.google.cloud.iot.v1; /** + * + * *
  * Request for `UnbindDeviceFromGateway`.
  * 
* * Protobuf type {@code google.cloud.iot.v1.UnbindDeviceFromGatewayRequest} */ -public final class UnbindDeviceFromGatewayRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class UnbindDeviceFromGatewayRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.iot.v1.UnbindDeviceFromGatewayRequest) UnbindDeviceFromGatewayRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use UnbindDeviceFromGatewayRequest.newBuilder() to construct. - private UnbindDeviceFromGatewayRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + private UnbindDeviceFromGatewayRequest( + com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private UnbindDeviceFromGatewayRequest() { parent_ = ""; gatewayId_ = ""; @@ -27,16 +46,15 @@ private UnbindDeviceFromGatewayRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new UnbindDeviceFromGatewayRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private UnbindDeviceFromGatewayRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -55,31 +73,34 @@ private UnbindDeviceFromGatewayRequest( 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(); - gatewayId_ = s; - break; - } - case 26: { - java.lang.String s = input.readStringRequireUtf8(); + gatewayId_ = s; + break; + } + case 26: + { + java.lang.String s = input.readStringRequireUtf8(); - deviceId_ = s; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + deviceId_ = s; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -87,35 +108,42 @@ private UnbindDeviceFromGatewayRequest( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.iot.v1.DeviceManagerProto.internal_static_google_cloud_iot_v1_UnbindDeviceFromGatewayRequest_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.iot.v1.DeviceManagerProto + .internal_static_google_cloud_iot_v1_UnbindDeviceFromGatewayRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.iot.v1.DeviceManagerProto.internal_static_google_cloud_iot_v1_UnbindDeviceFromGatewayRequest_fieldAccessorTable + return com.google.cloud.iot.v1.DeviceManagerProto + .internal_static_google_cloud_iot_v1_UnbindDeviceFromGatewayRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.iot.v1.UnbindDeviceFromGatewayRequest.class, com.google.cloud.iot.v1.UnbindDeviceFromGatewayRequest.Builder.class); + com.google.cloud.iot.v1.UnbindDeviceFromGatewayRequest.class, + com.google.cloud.iot.v1.UnbindDeviceFromGatewayRequest.Builder.class); } public static final int PARENT_FIELD_NUMBER = 1; private volatile java.lang.Object parent_; /** + * + * *
    * Required. The name of the registry. For example,
    * `projects/example-project/locations/us-central1/registries/my-registry`.
    * 
* - * string parent = 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 @@ -124,30 +152,32 @@ public java.lang.String getParent() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; } } /** + * + * *
    * Required. The name of the registry. For example,
    * `projects/example-project/locations/us-central1/registries/my-registry`.
    * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for parent. */ @java.lang.Override - public com.google.protobuf.ByteString - getParentBytes() { + public com.google.protobuf.ByteString getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); parent_ = b; return b; } else { @@ -158,12 +188,15 @@ public java.lang.String getParent() { public static final int GATEWAY_ID_FIELD_NUMBER = 2; private volatile java.lang.Object gatewayId_; /** + * + * *
    * Required. The value of `gateway_id` can be either the device numeric ID or the
    * user-defined device identifier.
    * 
* * string gateway_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The gatewayId. */ @java.lang.Override @@ -172,30 +205,30 @@ public java.lang.String getGatewayId() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); gatewayId_ = s; return s; } } /** + * + * *
    * Required. The value of `gateway_id` can be either the device numeric ID or the
    * user-defined device identifier.
    * 
* * string gateway_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for gatewayId. */ @java.lang.Override - public com.google.protobuf.ByteString - getGatewayIdBytes() { + public com.google.protobuf.ByteString getGatewayIdBytes() { java.lang.Object ref = gatewayId_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); gatewayId_ = b; return b; } else { @@ -206,6 +239,8 @@ public java.lang.String getGatewayId() { public static final int DEVICE_ID_FIELD_NUMBER = 3; private volatile java.lang.Object deviceId_; /** + * + * *
    * Required. The device to disassociate from the specified gateway. The value of
    * `device_id` can be either the device numeric ID or the user-defined device
@@ -213,6 +248,7 @@ public java.lang.String getGatewayId() {
    * 
* * string device_id = 3 [(.google.api.field_behavior) = REQUIRED]; + * * @return The deviceId. */ @java.lang.Override @@ -221,14 +257,15 @@ public java.lang.String getDeviceId() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); deviceId_ = s; return s; } } /** + * + * *
    * Required. The device to disassociate from the specified gateway. The value of
    * `device_id` can be either the device numeric ID or the user-defined device
@@ -236,16 +273,15 @@ public java.lang.String getDeviceId() {
    * 
* * string device_id = 3 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for deviceId. */ @java.lang.Override - public com.google.protobuf.ByteString - getDeviceIdBytes() { + public com.google.protobuf.ByteString getDeviceIdBytes() { java.lang.Object ref = deviceId_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); deviceId_ = b; return b; } else { @@ -254,6 +290,7 @@ public java.lang.String getDeviceId() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -265,8 +302,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.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_); } @@ -302,19 +338,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.iot.v1.UnbindDeviceFromGatewayRequest)) { return super.equals(obj); } - com.google.cloud.iot.v1.UnbindDeviceFromGatewayRequest other = (com.google.cloud.iot.v1.UnbindDeviceFromGatewayRequest) obj; + com.google.cloud.iot.v1.UnbindDeviceFromGatewayRequest other = + (com.google.cloud.iot.v1.UnbindDeviceFromGatewayRequest) obj; - if (!getParent() - .equals(other.getParent())) return false; - if (!getGatewayId() - .equals(other.getGatewayId())) return false; - if (!getDeviceId() - .equals(other.getDeviceId())) return false; + if (!getParent().equals(other.getParent())) return false; + if (!getGatewayId().equals(other.getGatewayId())) return false; + if (!getDeviceId().equals(other.getDeviceId())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -338,117 +372,127 @@ public int hashCode() { } public static com.google.cloud.iot.v1.UnbindDeviceFromGatewayRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.iot.v1.UnbindDeviceFromGatewayRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.iot.v1.UnbindDeviceFromGatewayRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.iot.v1.UnbindDeviceFromGatewayRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.iot.v1.UnbindDeviceFromGatewayRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.iot.v1.UnbindDeviceFromGatewayRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.iot.v1.UnbindDeviceFromGatewayRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.iot.v1.UnbindDeviceFromGatewayRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.iot.v1.UnbindDeviceFromGatewayRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.iot.v1.UnbindDeviceFromGatewayRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.iot.v1.UnbindDeviceFromGatewayRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.iot.v1.UnbindDeviceFromGatewayRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.iot.v1.UnbindDeviceFromGatewayRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.iot.v1.UnbindDeviceFromGatewayRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.iot.v1.UnbindDeviceFromGatewayRequest prototype) { + + public static Builder newBuilder( + com.google.cloud.iot.v1.UnbindDeviceFromGatewayRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected 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 `UnbindDeviceFromGateway`.
    * 
* * Protobuf type {@code google.cloud.iot.v1.UnbindDeviceFromGatewayRequest} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.iot.v1.UnbindDeviceFromGatewayRequest) com.google.cloud.iot.v1.UnbindDeviceFromGatewayRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.iot.v1.DeviceManagerProto.internal_static_google_cloud_iot_v1_UnbindDeviceFromGatewayRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.iot.v1.DeviceManagerProto + .internal_static_google_cloud_iot_v1_UnbindDeviceFromGatewayRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.iot.v1.DeviceManagerProto.internal_static_google_cloud_iot_v1_UnbindDeviceFromGatewayRequest_fieldAccessorTable + return com.google.cloud.iot.v1.DeviceManagerProto + .internal_static_google_cloud_iot_v1_UnbindDeviceFromGatewayRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.iot.v1.UnbindDeviceFromGatewayRequest.class, com.google.cloud.iot.v1.UnbindDeviceFromGatewayRequest.Builder.class); + com.google.cloud.iot.v1.UnbindDeviceFromGatewayRequest.class, + com.google.cloud.iot.v1.UnbindDeviceFromGatewayRequest.Builder.class); } // Construct using com.google.cloud.iot.v1.UnbindDeviceFromGatewayRequest.newBuilder() @@ -456,16 +500,15 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -479,9 +522,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.iot.v1.DeviceManagerProto.internal_static_google_cloud_iot_v1_UnbindDeviceFromGatewayRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.iot.v1.DeviceManagerProto + .internal_static_google_cloud_iot_v1_UnbindDeviceFromGatewayRequest_descriptor; } @java.lang.Override @@ -500,7 +543,8 @@ public com.google.cloud.iot.v1.UnbindDeviceFromGatewayRequest build() { @java.lang.Override public com.google.cloud.iot.v1.UnbindDeviceFromGatewayRequest buildPartial() { - com.google.cloud.iot.v1.UnbindDeviceFromGatewayRequest result = new com.google.cloud.iot.v1.UnbindDeviceFromGatewayRequest(this); + com.google.cloud.iot.v1.UnbindDeviceFromGatewayRequest result = + new com.google.cloud.iot.v1.UnbindDeviceFromGatewayRequest(this); result.parent_ = parent_; result.gatewayId_ = gatewayId_; result.deviceId_ = deviceId_; @@ -512,38 +556,39 @@ public com.google.cloud.iot.v1.UnbindDeviceFromGatewayRequest buildPartial() { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.iot.v1.UnbindDeviceFromGatewayRequest) { - return mergeFrom((com.google.cloud.iot.v1.UnbindDeviceFromGatewayRequest)other); + return mergeFrom((com.google.cloud.iot.v1.UnbindDeviceFromGatewayRequest) other); } else { super.mergeFrom(other); return this; @@ -551,7 +596,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.iot.v1.UnbindDeviceFromGatewayRequest other) { - if (other == com.google.cloud.iot.v1.UnbindDeviceFromGatewayRequest.getDefaultInstance()) return this; + if (other == com.google.cloud.iot.v1.UnbindDeviceFromGatewayRequest.getDefaultInstance()) + return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; onChanged(); @@ -583,7 +629,8 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.iot.v1.UnbindDeviceFromGatewayRequest) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.iot.v1.UnbindDeviceFromGatewayRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -595,19 +642,23 @@ public Builder mergeFrom( private java.lang.Object parent_ = ""; /** + * + * *
      * Required. The name of the registry. For example,
      * `projects/example-project/locations/us-central1/registries/my-registry`.
      * 
* - * string parent = 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; @@ -616,21 +667,24 @@ public java.lang.String getParent() { } } /** + * + * *
      * Required. The name of the registry. For example,
      * `projects/example-project/locations/us-central1/registries/my-registry`.
      * 
* - * string parent = 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 { @@ -638,57 +692,70 @@ public java.lang.String getParent() { } } /** + * + * *
      * Required. The name of the registry. For example,
      * `projects/example-project/locations/us-central1/registries/my-registry`.
      * 
* - * 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 name of the registry. For example,
      * `projects/example-project/locations/us-central1/registries/my-registry`.
      * 
* - * string 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 name of the registry. For example,
      * `projects/example-project/locations/us-central1/registries/my-registry`.
      * 
* - * 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; @@ -696,19 +763,21 @@ public Builder setParentBytes( private java.lang.Object gatewayId_ = ""; /** + * + * *
      * Required. The value of `gateway_id` can be either the device numeric ID or the
      * user-defined device identifier.
      * 
* * string gateway_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The gatewayId. */ public java.lang.String getGatewayId() { java.lang.Object ref = gatewayId_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); gatewayId_ = s; return s; @@ -717,21 +786,22 @@ public java.lang.String getGatewayId() { } } /** + * + * *
      * Required. The value of `gateway_id` can be either the device numeric ID or the
      * user-defined device identifier.
      * 
* * string gateway_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for gatewayId. */ - public com.google.protobuf.ByteString - getGatewayIdBytes() { + public com.google.protobuf.ByteString getGatewayIdBytes() { java.lang.Object ref = gatewayId_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); gatewayId_ = b; return b; } else { @@ -739,57 +809,64 @@ public java.lang.String getGatewayId() { } } /** + * + * *
      * Required. The value of `gateway_id` can be either the device numeric ID or the
      * user-defined device identifier.
      * 
* * string gateway_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @param value The gatewayId to set. * @return This builder for chaining. */ - public Builder setGatewayId( - java.lang.String value) { + public Builder setGatewayId(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + gatewayId_ = value; onChanged(); return this; } /** + * + * *
      * Required. The value of `gateway_id` can be either the device numeric ID or the
      * user-defined device identifier.
      * 
* * string gateway_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return This builder for chaining. */ public Builder clearGatewayId() { - + gatewayId_ = getDefaultInstance().getGatewayId(); onChanged(); return this; } /** + * + * *
      * Required. The value of `gateway_id` can be either the device numeric ID or the
      * user-defined device identifier.
      * 
* * string gateway_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @param value The bytes for gatewayId to set. * @return This builder for chaining. */ - public Builder setGatewayIdBytes( - com.google.protobuf.ByteString value) { + public Builder setGatewayIdBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + gatewayId_ = value; onChanged(); return this; @@ -797,6 +874,8 @@ public Builder setGatewayIdBytes( private java.lang.Object deviceId_ = ""; /** + * + * *
      * Required. The device to disassociate from the specified gateway. The value of
      * `device_id` can be either the device numeric ID or the user-defined device
@@ -804,13 +883,13 @@ public Builder setGatewayIdBytes(
      * 
* * string device_id = 3 [(.google.api.field_behavior) = REQUIRED]; + * * @return The deviceId. */ public java.lang.String getDeviceId() { java.lang.Object ref = deviceId_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); deviceId_ = s; return s; @@ -819,6 +898,8 @@ public java.lang.String getDeviceId() { } } /** + * + * *
      * Required. The device to disassociate from the specified gateway. The value of
      * `device_id` can be either the device numeric ID or the user-defined device
@@ -826,15 +907,14 @@ public java.lang.String getDeviceId() {
      * 
* * string device_id = 3 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for deviceId. */ - public com.google.protobuf.ByteString - getDeviceIdBytes() { + public com.google.protobuf.ByteString getDeviceIdBytes() { java.lang.Object ref = deviceId_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); deviceId_ = b; return b; } else { @@ -842,6 +922,8 @@ public java.lang.String getDeviceId() { } } /** + * + * *
      * Required. The device to disassociate from the specified gateway. The value of
      * `device_id` can be either the device numeric ID or the user-defined device
@@ -849,20 +931,22 @@ public java.lang.String getDeviceId() {
      * 
* * string device_id = 3 [(.google.api.field_behavior) = REQUIRED]; + * * @param value The deviceId to set. * @return This builder for chaining. */ - public Builder setDeviceId( - java.lang.String value) { + public Builder setDeviceId(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + deviceId_ = value; onChanged(); return this; } /** + * + * *
      * Required. The device to disassociate from the specified gateway. The value of
      * `device_id` can be either the device numeric ID or the user-defined device
@@ -870,15 +954,18 @@ public Builder setDeviceId(
      * 
* * string device_id = 3 [(.google.api.field_behavior) = REQUIRED]; + * * @return This builder for chaining. */ public Builder clearDeviceId() { - + deviceId_ = getDefaultInstance().getDeviceId(); onChanged(); return this; } /** + * + * *
      * Required. The device to disassociate from the specified gateway. The value of
      * `device_id` can be either the device numeric ID or the user-defined device
@@ -886,23 +973,23 @@ public Builder clearDeviceId() {
      * 
* * string device_id = 3 [(.google.api.field_behavior) = REQUIRED]; + * * @param value The bytes for deviceId to set. * @return This builder for chaining. */ - public Builder setDeviceIdBytes( - com.google.protobuf.ByteString value) { + public Builder setDeviceIdBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + deviceId_ = value; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -912,12 +999,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.iot.v1.UnbindDeviceFromGatewayRequest) } // @@protoc_insertion_point(class_scope:google.cloud.iot.v1.UnbindDeviceFromGatewayRequest) private static final com.google.cloud.iot.v1.UnbindDeviceFromGatewayRequest DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.iot.v1.UnbindDeviceFromGatewayRequest(); } @@ -926,16 +1013,16 @@ public static com.google.cloud.iot.v1.UnbindDeviceFromGatewayRequest getDefaultI return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public UnbindDeviceFromGatewayRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new UnbindDeviceFromGatewayRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public UnbindDeviceFromGatewayRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new UnbindDeviceFromGatewayRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -950,6 +1037,4 @@ public com.google.protobuf.Parser getParserForTy public com.google.cloud.iot.v1.UnbindDeviceFromGatewayRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1/proto-google-cloud-iot-v1/src/main/java/com/google/cloud/iot/v1/UnbindDeviceFromGatewayRequestOrBuilder.java b/proto-google-cloud-iot-v1/src/main/java/com/google/cloud/iot/v1/UnbindDeviceFromGatewayRequestOrBuilder.java similarity index 63% rename from owl-bot-staging/v1/proto-google-cloud-iot-v1/src/main/java/com/google/cloud/iot/v1/UnbindDeviceFromGatewayRequestOrBuilder.java rename to proto-google-cloud-iot-v1/src/main/java/com/google/cloud/iot/v1/UnbindDeviceFromGatewayRequestOrBuilder.java index e955c97b..db01b831 100644 --- a/owl-bot-staging/v1/proto-google-cloud-iot-v1/src/main/java/com/google/cloud/iot/v1/UnbindDeviceFromGatewayRequestOrBuilder.java +++ b/proto-google-cloud-iot-v1/src/main/java/com/google/cloud/iot/v1/UnbindDeviceFromGatewayRequestOrBuilder.java @@ -1,57 +1,89 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/iot/v1/device_manager.proto package com.google.cloud.iot.v1; -public interface UnbindDeviceFromGatewayRequestOrBuilder extends +public interface UnbindDeviceFromGatewayRequestOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.iot.v1.UnbindDeviceFromGatewayRequest) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Required. The name of the registry. For example,
    * `projects/example-project/locations/us-central1/registries/my-registry`.
    * 
* - * string parent = 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 name of the registry. For example,
    * `projects/example-project/locations/us-central1/registries/my-registry`.
    * 
* - * string parent = 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 value of `gateway_id` can be either the device numeric ID or the
    * user-defined device identifier.
    * 
* * string gateway_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The gatewayId. */ java.lang.String getGatewayId(); /** + * + * *
    * Required. The value of `gateway_id` can be either the device numeric ID or the
    * user-defined device identifier.
    * 
* * string gateway_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for gatewayId. */ - com.google.protobuf.ByteString - getGatewayIdBytes(); + com.google.protobuf.ByteString getGatewayIdBytes(); /** + * + * *
    * Required. The device to disassociate from the specified gateway. The value of
    * `device_id` can be either the device numeric ID or the user-defined device
@@ -59,10 +91,13 @@ public interface UnbindDeviceFromGatewayRequestOrBuilder extends
    * 
* * string device_id = 3 [(.google.api.field_behavior) = REQUIRED]; + * * @return The deviceId. */ java.lang.String getDeviceId(); /** + * + * *
    * Required. The device to disassociate from the specified gateway. The value of
    * `device_id` can be either the device numeric ID or the user-defined device
@@ -70,8 +105,8 @@ public interface UnbindDeviceFromGatewayRequestOrBuilder extends
    * 
* * string device_id = 3 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for deviceId. */ - com.google.protobuf.ByteString - getDeviceIdBytes(); + com.google.protobuf.ByteString getDeviceIdBytes(); } diff --git a/owl-bot-staging/v1/proto-google-cloud-iot-v1/src/main/java/com/google/cloud/iot/v1/UnbindDeviceFromGatewayResponse.java b/proto-google-cloud-iot-v1/src/main/java/com/google/cloud/iot/v1/UnbindDeviceFromGatewayResponse.java similarity index 65% rename from owl-bot-staging/v1/proto-google-cloud-iot-v1/src/main/java/com/google/cloud/iot/v1/UnbindDeviceFromGatewayResponse.java rename to proto-google-cloud-iot-v1/src/main/java/com/google/cloud/iot/v1/UnbindDeviceFromGatewayResponse.java index 4b3581a4..f8535dc7 100644 --- a/owl-bot-staging/v1/proto-google-cloud-iot-v1/src/main/java/com/google/cloud/iot/v1/UnbindDeviceFromGatewayResponse.java +++ b/proto-google-cloud-iot-v1/src/main/java/com/google/cloud/iot/v1/UnbindDeviceFromGatewayResponse.java @@ -1,39 +1,56 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/iot/v1/device_manager.proto package com.google.cloud.iot.v1; /** + * + * *
  * Response for `UnbindDeviceFromGateway`.
  * 
* * Protobuf type {@code google.cloud.iot.v1.UnbindDeviceFromGatewayResponse} */ -public final class UnbindDeviceFromGatewayResponse extends - com.google.protobuf.GeneratedMessageV3 implements +public final class UnbindDeviceFromGatewayResponse extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.iot.v1.UnbindDeviceFromGatewayResponse) UnbindDeviceFromGatewayResponseOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use UnbindDeviceFromGatewayResponse.newBuilder() to construct. - private UnbindDeviceFromGatewayResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { + private UnbindDeviceFromGatewayResponse( + com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private UnbindDeviceFromGatewayResponse() { - } + + private UnbindDeviceFromGatewayResponse() {} @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new UnbindDeviceFromGatewayResponse(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private UnbindDeviceFromGatewayResponse( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -52,13 +69,13 @@ private UnbindDeviceFromGatewayResponse( case 0: done = true; break; - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -66,27 +83,30 @@ private UnbindDeviceFromGatewayResponse( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.iot.v1.DeviceManagerProto.internal_static_google_cloud_iot_v1_UnbindDeviceFromGatewayResponse_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.iot.v1.DeviceManagerProto + .internal_static_google_cloud_iot_v1_UnbindDeviceFromGatewayResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.iot.v1.DeviceManagerProto.internal_static_google_cloud_iot_v1_UnbindDeviceFromGatewayResponse_fieldAccessorTable + return com.google.cloud.iot.v1.DeviceManagerProto + .internal_static_google_cloud_iot_v1_UnbindDeviceFromGatewayResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.iot.v1.UnbindDeviceFromGatewayResponse.class, com.google.cloud.iot.v1.UnbindDeviceFromGatewayResponse.Builder.class); + com.google.cloud.iot.v1.UnbindDeviceFromGatewayResponse.class, + com.google.cloud.iot.v1.UnbindDeviceFromGatewayResponse.Builder.class); } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -98,8 +118,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { unknownFields.writeTo(output); } @@ -117,12 +136,13 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.iot.v1.UnbindDeviceFromGatewayResponse)) { return super.equals(obj); } - com.google.cloud.iot.v1.UnbindDeviceFromGatewayResponse other = (com.google.cloud.iot.v1.UnbindDeviceFromGatewayResponse) obj; + com.google.cloud.iot.v1.UnbindDeviceFromGatewayResponse other = + (com.google.cloud.iot.v1.UnbindDeviceFromGatewayResponse) obj; if (!unknownFields.equals(other.unknownFields)) return false; return true; @@ -141,117 +161,127 @@ public int hashCode() { } public static com.google.cloud.iot.v1.UnbindDeviceFromGatewayResponse parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.iot.v1.UnbindDeviceFromGatewayResponse parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.iot.v1.UnbindDeviceFromGatewayResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.iot.v1.UnbindDeviceFromGatewayResponse parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.iot.v1.UnbindDeviceFromGatewayResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.iot.v1.UnbindDeviceFromGatewayResponse parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.iot.v1.UnbindDeviceFromGatewayResponse parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.iot.v1.UnbindDeviceFromGatewayResponse parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.iot.v1.UnbindDeviceFromGatewayResponse parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.iot.v1.UnbindDeviceFromGatewayResponse parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.iot.v1.UnbindDeviceFromGatewayResponse parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.iot.v1.UnbindDeviceFromGatewayResponse parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.iot.v1.UnbindDeviceFromGatewayResponse parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.iot.v1.UnbindDeviceFromGatewayResponse parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.iot.v1.UnbindDeviceFromGatewayResponse prototype) { + + public static Builder newBuilder( + com.google.cloud.iot.v1.UnbindDeviceFromGatewayResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected 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 `UnbindDeviceFromGateway`.
    * 
* * Protobuf type {@code google.cloud.iot.v1.UnbindDeviceFromGatewayResponse} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.iot.v1.UnbindDeviceFromGatewayResponse) com.google.cloud.iot.v1.UnbindDeviceFromGatewayResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.iot.v1.DeviceManagerProto.internal_static_google_cloud_iot_v1_UnbindDeviceFromGatewayResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.iot.v1.DeviceManagerProto + .internal_static_google_cloud_iot_v1_UnbindDeviceFromGatewayResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.iot.v1.DeviceManagerProto.internal_static_google_cloud_iot_v1_UnbindDeviceFromGatewayResponse_fieldAccessorTable + return com.google.cloud.iot.v1.DeviceManagerProto + .internal_static_google_cloud_iot_v1_UnbindDeviceFromGatewayResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.iot.v1.UnbindDeviceFromGatewayResponse.class, com.google.cloud.iot.v1.UnbindDeviceFromGatewayResponse.Builder.class); + com.google.cloud.iot.v1.UnbindDeviceFromGatewayResponse.class, + com.google.cloud.iot.v1.UnbindDeviceFromGatewayResponse.Builder.class); } // Construct using com.google.cloud.iot.v1.UnbindDeviceFromGatewayResponse.newBuilder() @@ -259,16 +289,15 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -276,9 +305,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.iot.v1.DeviceManagerProto.internal_static_google_cloud_iot_v1_UnbindDeviceFromGatewayResponse_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.iot.v1.DeviceManagerProto + .internal_static_google_cloud_iot_v1_UnbindDeviceFromGatewayResponse_descriptor; } @java.lang.Override @@ -297,7 +326,8 @@ public com.google.cloud.iot.v1.UnbindDeviceFromGatewayResponse build() { @java.lang.Override public com.google.cloud.iot.v1.UnbindDeviceFromGatewayResponse buildPartial() { - com.google.cloud.iot.v1.UnbindDeviceFromGatewayResponse result = new com.google.cloud.iot.v1.UnbindDeviceFromGatewayResponse(this); + com.google.cloud.iot.v1.UnbindDeviceFromGatewayResponse result = + new com.google.cloud.iot.v1.UnbindDeviceFromGatewayResponse(this); onBuilt(); return result; } @@ -306,38 +336,39 @@ public com.google.cloud.iot.v1.UnbindDeviceFromGatewayResponse buildPartial() { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.iot.v1.UnbindDeviceFromGatewayResponse) { - return mergeFrom((com.google.cloud.iot.v1.UnbindDeviceFromGatewayResponse)other); + return mergeFrom((com.google.cloud.iot.v1.UnbindDeviceFromGatewayResponse) other); } else { super.mergeFrom(other); return this; @@ -345,7 +376,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.iot.v1.UnbindDeviceFromGatewayResponse other) { - if (other == com.google.cloud.iot.v1.UnbindDeviceFromGatewayResponse.getDefaultInstance()) return this; + if (other == com.google.cloud.iot.v1.UnbindDeviceFromGatewayResponse.getDefaultInstance()) + return this; this.mergeUnknownFields(other.unknownFields); onChanged(); return this; @@ -365,7 +397,8 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.iot.v1.UnbindDeviceFromGatewayResponse) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.iot.v1.UnbindDeviceFromGatewayResponse) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -374,9 +407,9 @@ public Builder mergeFrom( } return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -386,12 +419,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.iot.v1.UnbindDeviceFromGatewayResponse) } // @@protoc_insertion_point(class_scope:google.cloud.iot.v1.UnbindDeviceFromGatewayResponse) private static final com.google.cloud.iot.v1.UnbindDeviceFromGatewayResponse DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.iot.v1.UnbindDeviceFromGatewayResponse(); } @@ -400,16 +433,16 @@ public static com.google.cloud.iot.v1.UnbindDeviceFromGatewayResponse getDefault return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public UnbindDeviceFromGatewayResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new UnbindDeviceFromGatewayResponse(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public UnbindDeviceFromGatewayResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new UnbindDeviceFromGatewayResponse(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -424,6 +457,4 @@ public com.google.protobuf.Parser getParserForT public com.google.cloud.iot.v1.UnbindDeviceFromGatewayResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/proto-google-cloud-iot-v1/src/main/java/com/google/cloud/iot/v1/UnbindDeviceFromGatewayResponseOrBuilder.java b/proto-google-cloud-iot-v1/src/main/java/com/google/cloud/iot/v1/UnbindDeviceFromGatewayResponseOrBuilder.java new file mode 100644 index 00000000..52c1371e --- /dev/null +++ b/proto-google-cloud-iot-v1/src/main/java/com/google/cloud/iot/v1/UnbindDeviceFromGatewayResponseOrBuilder.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/iot/v1/device_manager.proto + +package com.google.cloud.iot.v1; + +public interface UnbindDeviceFromGatewayResponseOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.iot.v1.UnbindDeviceFromGatewayResponse) + com.google.protobuf.MessageOrBuilder {} diff --git a/owl-bot-staging/v1/proto-google-cloud-iot-v1/src/main/java/com/google/cloud/iot/v1/UpdateDeviceRegistryRequest.java b/proto-google-cloud-iot-v1/src/main/java/com/google/cloud/iot/v1/UpdateDeviceRegistryRequest.java similarity index 69% rename from owl-bot-staging/v1/proto-google-cloud-iot-v1/src/main/java/com/google/cloud/iot/v1/UpdateDeviceRegistryRequest.java rename to proto-google-cloud-iot-v1/src/main/java/com/google/cloud/iot/v1/UpdateDeviceRegistryRequest.java index 134f4bb2..2621725f 100644 --- a/owl-bot-staging/v1/proto-google-cloud-iot-v1/src/main/java/com/google/cloud/iot/v1/UpdateDeviceRegistryRequest.java +++ b/proto-google-cloud-iot-v1/src/main/java/com/google/cloud/iot/v1/UpdateDeviceRegistryRequest.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/iot/v1/device_manager.proto package com.google.cloud.iot.v1; /** + * + * *
  * Request for `UpdateDeviceRegistry`.
  * 
* * Protobuf type {@code google.cloud.iot.v1.UpdateDeviceRegistryRequest} */ -public final class UpdateDeviceRegistryRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class UpdateDeviceRegistryRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.iot.v1.UpdateDeviceRegistryRequest) UpdateDeviceRegistryRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use UpdateDeviceRegistryRequest.newBuilder() to construct. private UpdateDeviceRegistryRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private UpdateDeviceRegistryRequest() { - } + + private UpdateDeviceRegistryRequest() {} @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new UpdateDeviceRegistryRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private UpdateDeviceRegistryRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -52,39 +68,44 @@ private UpdateDeviceRegistryRequest( case 0: done = true; break; - case 10: { - com.google.cloud.iot.v1.DeviceRegistry.Builder subBuilder = null; - if (deviceRegistry_ != null) { - subBuilder = deviceRegistry_.toBuilder(); - } - deviceRegistry_ = input.readMessage(com.google.cloud.iot.v1.DeviceRegistry.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(deviceRegistry_); - deviceRegistry_ = subBuilder.buildPartial(); - } + case 10: + { + com.google.cloud.iot.v1.DeviceRegistry.Builder subBuilder = null; + if (deviceRegistry_ != null) { + subBuilder = deviceRegistry_.toBuilder(); + } + deviceRegistry_ = + input.readMessage( + com.google.cloud.iot.v1.DeviceRegistry.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(deviceRegistry_); + deviceRegistry_ = subBuilder.buildPartial(); + } - 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 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; - } - 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,36 +113,43 @@ private UpdateDeviceRegistryRequest( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.iot.v1.DeviceManagerProto.internal_static_google_cloud_iot_v1_UpdateDeviceRegistryRequest_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.iot.v1.DeviceManagerProto + .internal_static_google_cloud_iot_v1_UpdateDeviceRegistryRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.iot.v1.DeviceManagerProto.internal_static_google_cloud_iot_v1_UpdateDeviceRegistryRequest_fieldAccessorTable + return com.google.cloud.iot.v1.DeviceManagerProto + .internal_static_google_cloud_iot_v1_UpdateDeviceRegistryRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.iot.v1.UpdateDeviceRegistryRequest.class, com.google.cloud.iot.v1.UpdateDeviceRegistryRequest.Builder.class); + com.google.cloud.iot.v1.UpdateDeviceRegistryRequest.class, + com.google.cloud.iot.v1.UpdateDeviceRegistryRequest.Builder.class); } public static final int DEVICE_REGISTRY_FIELD_NUMBER = 1; private com.google.cloud.iot.v1.DeviceRegistry deviceRegistry_; /** + * + * *
    * Required. The new values for the device registry. The `id` field must be empty, and
    * the `name` field must indicate the path of the resource. For example,
    * `projects/example-project/locations/us-central1/registries/my-registry`.
    * 
* - * .google.cloud.iot.v1.DeviceRegistry device_registry = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.iot.v1.DeviceRegistry device_registry = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the deviceRegistry field is set. */ @java.lang.Override @@ -129,27 +157,38 @@ public boolean hasDeviceRegistry() { return deviceRegistry_ != null; } /** + * + * *
    * Required. The new values for the device registry. The `id` field must be empty, and
    * the `name` field must indicate the path of the resource. For example,
    * `projects/example-project/locations/us-central1/registries/my-registry`.
    * 
* - * .google.cloud.iot.v1.DeviceRegistry device_registry = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.iot.v1.DeviceRegistry device_registry = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The deviceRegistry. */ @java.lang.Override public com.google.cloud.iot.v1.DeviceRegistry getDeviceRegistry() { - return deviceRegistry_ == null ? com.google.cloud.iot.v1.DeviceRegistry.getDefaultInstance() : deviceRegistry_; + return deviceRegistry_ == null + ? com.google.cloud.iot.v1.DeviceRegistry.getDefaultInstance() + : deviceRegistry_; } /** + * + * *
    * Required. The new values for the device registry. The `id` field must be empty, and
    * the `name` field must indicate the path of the resource. For example,
    * `projects/example-project/locations/us-central1/registries/my-registry`.
    * 
* - * .google.cloud.iot.v1.DeviceRegistry device_registry = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.iot.v1.DeviceRegistry device_registry = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ @java.lang.Override public com.google.cloud.iot.v1.DeviceRegistryOrBuilder getDeviceRegistryOrBuilder() { @@ -159,6 +198,8 @@ public com.google.cloud.iot.v1.DeviceRegistryOrBuilder getDeviceRegistryOrBuilde public static final int UPDATE_MASK_FIELD_NUMBER = 2; private com.google.protobuf.FieldMask updateMask_; /** + * + * *
    * Required. Only updates the `device_registry` fields indicated by this mask.
    * The field mask must not be empty, and it must not contain fields that
@@ -167,7 +208,9 @@ public com.google.cloud.iot.v1.DeviceRegistryOrBuilder getDeviceRegistryOrBuilde
    * `mqtt_config`, and `state_notification_config`.
    * 
* - * .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 @@ -175,6 +218,8 @@ public boolean hasUpdateMask() { return updateMask_ != null; } /** + * + * *
    * Required. Only updates the `device_registry` fields indicated by this mask.
    * The field mask must not be empty, and it must not contain fields that
@@ -183,7 +228,9 @@ public boolean hasUpdateMask() {
    * `mqtt_config`, and `state_notification_config`.
    * 
* - * .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 @@ -191,6 +238,8 @@ public com.google.protobuf.FieldMask getUpdateMask() { return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; } /** + * + * *
    * Required. Only updates the `device_registry` fields indicated by this mask.
    * The field mask must not be empty, and it must not contain fields that
@@ -199,7 +248,8 @@ public com.google.protobuf.FieldMask getUpdateMask() {
    * `mqtt_config`, and `state_notification_config`.
    * 
* - * .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() { @@ -207,6 +257,7 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -218,8 +269,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (deviceRegistry_ != null) { output.writeMessage(1, getDeviceRegistry()); } @@ -236,12 +286,10 @@ public int getSerializedSize() { size = 0; if (deviceRegistry_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getDeviceRegistry()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getDeviceRegistry()); } if (updateMask_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getUpdateMask()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getUpdateMask()); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -251,22 +299,21 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.iot.v1.UpdateDeviceRegistryRequest)) { return super.equals(obj); } - com.google.cloud.iot.v1.UpdateDeviceRegistryRequest other = (com.google.cloud.iot.v1.UpdateDeviceRegistryRequest) obj; + com.google.cloud.iot.v1.UpdateDeviceRegistryRequest other = + (com.google.cloud.iot.v1.UpdateDeviceRegistryRequest) obj; if (hasDeviceRegistry() != other.hasDeviceRegistry()) return false; if (hasDeviceRegistry()) { - if (!getDeviceRegistry() - .equals(other.getDeviceRegistry())) return false; + if (!getDeviceRegistry().equals(other.getDeviceRegistry())) 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 (!unknownFields.equals(other.unknownFields)) return false; return true; @@ -293,117 +340,126 @@ public int hashCode() { } public static com.google.cloud.iot.v1.UpdateDeviceRegistryRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.iot.v1.UpdateDeviceRegistryRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.iot.v1.UpdateDeviceRegistryRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.iot.v1.UpdateDeviceRegistryRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.iot.v1.UpdateDeviceRegistryRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.iot.v1.UpdateDeviceRegistryRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.iot.v1.UpdateDeviceRegistryRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.iot.v1.UpdateDeviceRegistryRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.iot.v1.UpdateDeviceRegistryRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.iot.v1.UpdateDeviceRegistryRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.iot.v1.UpdateDeviceRegistryRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.iot.v1.UpdateDeviceRegistryRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.iot.v1.UpdateDeviceRegistryRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.iot.v1.UpdateDeviceRegistryRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.cloud.iot.v1.UpdateDeviceRegistryRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected 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 `UpdateDeviceRegistry`.
    * 
* * Protobuf type {@code google.cloud.iot.v1.UpdateDeviceRegistryRequest} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.iot.v1.UpdateDeviceRegistryRequest) com.google.cloud.iot.v1.UpdateDeviceRegistryRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.iot.v1.DeviceManagerProto.internal_static_google_cloud_iot_v1_UpdateDeviceRegistryRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.iot.v1.DeviceManagerProto + .internal_static_google_cloud_iot_v1_UpdateDeviceRegistryRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.iot.v1.DeviceManagerProto.internal_static_google_cloud_iot_v1_UpdateDeviceRegistryRequest_fieldAccessorTable + return com.google.cloud.iot.v1.DeviceManagerProto + .internal_static_google_cloud_iot_v1_UpdateDeviceRegistryRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.iot.v1.UpdateDeviceRegistryRequest.class, com.google.cloud.iot.v1.UpdateDeviceRegistryRequest.Builder.class); + com.google.cloud.iot.v1.UpdateDeviceRegistryRequest.class, + com.google.cloud.iot.v1.UpdateDeviceRegistryRequest.Builder.class); } // Construct using com.google.cloud.iot.v1.UpdateDeviceRegistryRequest.newBuilder() @@ -411,16 +467,15 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -440,9 +495,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.iot.v1.DeviceManagerProto.internal_static_google_cloud_iot_v1_UpdateDeviceRegistryRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.iot.v1.DeviceManagerProto + .internal_static_google_cloud_iot_v1_UpdateDeviceRegistryRequest_descriptor; } @java.lang.Override @@ -461,7 +516,8 @@ public com.google.cloud.iot.v1.UpdateDeviceRegistryRequest build() { @java.lang.Override public com.google.cloud.iot.v1.UpdateDeviceRegistryRequest buildPartial() { - com.google.cloud.iot.v1.UpdateDeviceRegistryRequest result = new com.google.cloud.iot.v1.UpdateDeviceRegistryRequest(this); + com.google.cloud.iot.v1.UpdateDeviceRegistryRequest result = + new com.google.cloud.iot.v1.UpdateDeviceRegistryRequest(this); if (deviceRegistryBuilder_ == null) { result.deviceRegistry_ = deviceRegistry_; } else { @@ -480,38 +536,39 @@ public com.google.cloud.iot.v1.UpdateDeviceRegistryRequest buildPartial() { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.iot.v1.UpdateDeviceRegistryRequest) { - return mergeFrom((com.google.cloud.iot.v1.UpdateDeviceRegistryRequest)other); + return mergeFrom((com.google.cloud.iot.v1.UpdateDeviceRegistryRequest) other); } else { super.mergeFrom(other); return this; @@ -519,7 +576,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.iot.v1.UpdateDeviceRegistryRequest other) { - if (other == com.google.cloud.iot.v1.UpdateDeviceRegistryRequest.getDefaultInstance()) return this; + if (other == com.google.cloud.iot.v1.UpdateDeviceRegistryRequest.getDefaultInstance()) + return this; if (other.hasDeviceRegistry()) { mergeDeviceRegistry(other.getDeviceRegistry()); } @@ -545,7 +603,8 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.iot.v1.UpdateDeviceRegistryRequest) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.iot.v1.UpdateDeviceRegistryRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -557,45 +616,64 @@ public Builder mergeFrom( private com.google.cloud.iot.v1.DeviceRegistry deviceRegistry_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.iot.v1.DeviceRegistry, com.google.cloud.iot.v1.DeviceRegistry.Builder, com.google.cloud.iot.v1.DeviceRegistryOrBuilder> deviceRegistryBuilder_; + com.google.cloud.iot.v1.DeviceRegistry, + com.google.cloud.iot.v1.DeviceRegistry.Builder, + com.google.cloud.iot.v1.DeviceRegistryOrBuilder> + deviceRegistryBuilder_; /** + * + * *
      * Required. The new values for the device registry. The `id` field must be empty, and
      * the `name` field must indicate the path of the resource. For example,
      * `projects/example-project/locations/us-central1/registries/my-registry`.
      * 
* - * .google.cloud.iot.v1.DeviceRegistry device_registry = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.iot.v1.DeviceRegistry device_registry = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the deviceRegistry field is set. */ public boolean hasDeviceRegistry() { return deviceRegistryBuilder_ != null || deviceRegistry_ != null; } /** + * + * *
      * Required. The new values for the device registry. The `id` field must be empty, and
      * the `name` field must indicate the path of the resource. For example,
      * `projects/example-project/locations/us-central1/registries/my-registry`.
      * 
* - * .google.cloud.iot.v1.DeviceRegistry device_registry = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.iot.v1.DeviceRegistry device_registry = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The deviceRegistry. */ public com.google.cloud.iot.v1.DeviceRegistry getDeviceRegistry() { if (deviceRegistryBuilder_ == null) { - return deviceRegistry_ == null ? com.google.cloud.iot.v1.DeviceRegistry.getDefaultInstance() : deviceRegistry_; + return deviceRegistry_ == null + ? com.google.cloud.iot.v1.DeviceRegistry.getDefaultInstance() + : deviceRegistry_; } else { return deviceRegistryBuilder_.getMessage(); } } /** + * + * *
      * Required. The new values for the device registry. The `id` field must be empty, and
      * the `name` field must indicate the path of the resource. For example,
      * `projects/example-project/locations/us-central1/registries/my-registry`.
      * 
* - * .google.cloud.iot.v1.DeviceRegistry device_registry = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.iot.v1.DeviceRegistry device_registry = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder setDeviceRegistry(com.google.cloud.iot.v1.DeviceRegistry value) { if (deviceRegistryBuilder_ == null) { @@ -611,13 +689,17 @@ public Builder setDeviceRegistry(com.google.cloud.iot.v1.DeviceRegistry value) { return this; } /** + * + * *
      * Required. The new values for the device registry. The `id` field must be empty, and
      * the `name` field must indicate the path of the resource. For example,
      * `projects/example-project/locations/us-central1/registries/my-registry`.
      * 
* - * .google.cloud.iot.v1.DeviceRegistry device_registry = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.iot.v1.DeviceRegistry device_registry = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder setDeviceRegistry( com.google.cloud.iot.v1.DeviceRegistry.Builder builderForValue) { @@ -631,19 +713,25 @@ public Builder setDeviceRegistry( return this; } /** + * + * *
      * Required. The new values for the device registry. The `id` field must be empty, and
      * the `name` field must indicate the path of the resource. For example,
      * `projects/example-project/locations/us-central1/registries/my-registry`.
      * 
* - * .google.cloud.iot.v1.DeviceRegistry device_registry = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.iot.v1.DeviceRegistry device_registry = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder mergeDeviceRegistry(com.google.cloud.iot.v1.DeviceRegistry value) { if (deviceRegistryBuilder_ == null) { if (deviceRegistry_ != null) { deviceRegistry_ = - com.google.cloud.iot.v1.DeviceRegistry.newBuilder(deviceRegistry_).mergeFrom(value).buildPartial(); + com.google.cloud.iot.v1.DeviceRegistry.newBuilder(deviceRegistry_) + .mergeFrom(value) + .buildPartial(); } else { deviceRegistry_ = value; } @@ -655,13 +743,17 @@ public Builder mergeDeviceRegistry(com.google.cloud.iot.v1.DeviceRegistry value) return this; } /** + * + * *
      * Required. The new values for the device registry. The `id` field must be empty, and
      * the `name` field must indicate the path of the resource. For example,
      * `projects/example-project/locations/us-central1/registries/my-registry`.
      * 
* - * .google.cloud.iot.v1.DeviceRegistry device_registry = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.iot.v1.DeviceRegistry device_registry = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder clearDeviceRegistry() { if (deviceRegistryBuilder_ == null) { @@ -675,54 +767,70 @@ public Builder clearDeviceRegistry() { return this; } /** + * + * *
      * Required. The new values for the device registry. The `id` field must be empty, and
      * the `name` field must indicate the path of the resource. For example,
      * `projects/example-project/locations/us-central1/registries/my-registry`.
      * 
* - * .google.cloud.iot.v1.DeviceRegistry device_registry = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.iot.v1.DeviceRegistry device_registry = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.cloud.iot.v1.DeviceRegistry.Builder getDeviceRegistryBuilder() { - + onChanged(); return getDeviceRegistryFieldBuilder().getBuilder(); } /** + * + * *
      * Required. The new values for the device registry. The `id` field must be empty, and
      * the `name` field must indicate the path of the resource. For example,
      * `projects/example-project/locations/us-central1/registries/my-registry`.
      * 
* - * .google.cloud.iot.v1.DeviceRegistry device_registry = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.iot.v1.DeviceRegistry device_registry = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.cloud.iot.v1.DeviceRegistryOrBuilder getDeviceRegistryOrBuilder() { if (deviceRegistryBuilder_ != null) { return deviceRegistryBuilder_.getMessageOrBuilder(); } else { - return deviceRegistry_ == null ? - com.google.cloud.iot.v1.DeviceRegistry.getDefaultInstance() : deviceRegistry_; + return deviceRegistry_ == null + ? com.google.cloud.iot.v1.DeviceRegistry.getDefaultInstance() + : deviceRegistry_; } } /** + * + * *
      * Required. The new values for the device registry. The `id` field must be empty, and
      * the `name` field must indicate the path of the resource. For example,
      * `projects/example-project/locations/us-central1/registries/my-registry`.
      * 
* - * .google.cloud.iot.v1.DeviceRegistry device_registry = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.iot.v1.DeviceRegistry device_registry = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.iot.v1.DeviceRegistry, com.google.cloud.iot.v1.DeviceRegistry.Builder, com.google.cloud.iot.v1.DeviceRegistryOrBuilder> + com.google.cloud.iot.v1.DeviceRegistry, + com.google.cloud.iot.v1.DeviceRegistry.Builder, + com.google.cloud.iot.v1.DeviceRegistryOrBuilder> getDeviceRegistryFieldBuilder() { if (deviceRegistryBuilder_ == null) { - deviceRegistryBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.iot.v1.DeviceRegistry, com.google.cloud.iot.v1.DeviceRegistry.Builder, com.google.cloud.iot.v1.DeviceRegistryOrBuilder>( - getDeviceRegistry(), - getParentForChildren(), - isClean()); + deviceRegistryBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.iot.v1.DeviceRegistry, + com.google.cloud.iot.v1.DeviceRegistry.Builder, + com.google.cloud.iot.v1.DeviceRegistryOrBuilder>( + getDeviceRegistry(), getParentForChildren(), isClean()); deviceRegistry_ = null; } return deviceRegistryBuilder_; @@ -730,8 +838,13 @@ public com.google.cloud.iot.v1.DeviceRegistryOrBuilder getDeviceRegistryOrBuilde 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. Only updates the `device_registry` fields indicated by this mask.
      * The field mask must not be empty, and it must not contain fields that
@@ -740,13 +853,17 @@ public com.google.cloud.iot.v1.DeviceRegistryOrBuilder getDeviceRegistryOrBuilde
      * `mqtt_config`, and `state_notification_config`.
      * 
* - * .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. Only updates the `device_registry` fields indicated by this mask.
      * The field mask must not be empty, and it must not contain fields that
@@ -755,17 +872,23 @@ public boolean hasUpdateMask() {
      * `mqtt_config`, and `state_notification_config`.
      * 
* - * .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. Only updates the `device_registry` fields indicated by this mask.
      * The field mask must not be empty, and it must not contain fields that
@@ -774,7 +897,8 @@ public com.google.protobuf.FieldMask getUpdateMask() {
      * `mqtt_config`, and `state_notification_config`.
      * 
* - * .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) { @@ -790,6 +914,8 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask value) { return this; } /** + * + * *
      * Required. Only updates the `device_registry` fields indicated by this mask.
      * The field mask must not be empty, and it must not contain fields that
@@ -798,10 +924,10 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask value) {
      * `mqtt_config`, and `state_notification_config`.
      * 
* - * .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(); @@ -812,6 +938,8 @@ public Builder setUpdateMask( return this; } /** + * + * *
      * Required. Only updates the `device_registry` fields indicated by this mask.
      * The field mask must not be empty, and it must not contain fields that
@@ -820,13 +948,14 @@ public Builder setUpdateMask(
      * `mqtt_config`, and `state_notification_config`.
      * 
* - * .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; } @@ -838,6 +967,8 @@ public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) { return this; } /** + * + * *
      * Required. Only updates the `device_registry` fields indicated by this mask.
      * The field mask must not be empty, and it must not contain fields that
@@ -846,7 +977,8 @@ public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) {
      * `mqtt_config`, and `state_notification_config`.
      * 
* - * .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) { @@ -860,6 +992,8 @@ public Builder clearUpdateMask() { return this; } /** + * + * *
      * Required. Only updates the `device_registry` fields indicated by this mask.
      * The field mask must not be empty, and it must not contain fields that
@@ -868,14 +1002,17 @@ public Builder clearUpdateMask() {
      * `mqtt_config`, and `state_notification_config`.
      * 
* - * .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. Only updates the `device_registry` fields indicated by this mask.
      * The field mask must not be empty, and it must not contain fields that
@@ -884,17 +1021,21 @@ public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() {
      * `mqtt_config`, and `state_notification_config`.
      * 
* - * .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. Only updates the `device_registry` fields indicated by this mask.
      * The field mask must not be empty, and it must not contain fields that
@@ -903,24 +1044,28 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() {
      * `mqtt_config`, and `state_notification_config`.
      * 
* - * .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_; } + @java.lang.Override - 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 +1075,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.iot.v1.UpdateDeviceRegistryRequest) } // @@protoc_insertion_point(class_scope:google.cloud.iot.v1.UpdateDeviceRegistryRequest) private static final com.google.cloud.iot.v1.UpdateDeviceRegistryRequest DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.iot.v1.UpdateDeviceRegistryRequest(); } @@ -944,16 +1089,16 @@ public static com.google.cloud.iot.v1.UpdateDeviceRegistryRequest getDefaultInst return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public UpdateDeviceRegistryRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new UpdateDeviceRegistryRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public UpdateDeviceRegistryRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new UpdateDeviceRegistryRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -968,6 +1113,4 @@ public com.google.protobuf.Parser getParserForType( public com.google.cloud.iot.v1.UpdateDeviceRegistryRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1/proto-google-cloud-iot-v1/src/main/java/com/google/cloud/iot/v1/UpdateDeviceRegistryRequestOrBuilder.java b/proto-google-cloud-iot-v1/src/main/java/com/google/cloud/iot/v1/UpdateDeviceRegistryRequestOrBuilder.java similarity index 69% rename from owl-bot-staging/v1/proto-google-cloud-iot-v1/src/main/java/com/google/cloud/iot/v1/UpdateDeviceRegistryRequestOrBuilder.java rename to proto-google-cloud-iot-v1/src/main/java/com/google/cloud/iot/v1/UpdateDeviceRegistryRequestOrBuilder.java index e2eefd4d..7fcb8a25 100644 --- a/owl-bot-staging/v1/proto-google-cloud-iot-v1/src/main/java/com/google/cloud/iot/v1/UpdateDeviceRegistryRequestOrBuilder.java +++ b/proto-google-cloud-iot-v1/src/main/java/com/google/cloud/iot/v1/UpdateDeviceRegistryRequestOrBuilder.java @@ -1,46 +1,78 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/iot/v1/device_manager.proto package com.google.cloud.iot.v1; -public interface UpdateDeviceRegistryRequestOrBuilder extends +public interface UpdateDeviceRegistryRequestOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.iot.v1.UpdateDeviceRegistryRequest) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Required. The new values for the device registry. The `id` field must be empty, and
    * the `name` field must indicate the path of the resource. For example,
    * `projects/example-project/locations/us-central1/registries/my-registry`.
    * 
* - * .google.cloud.iot.v1.DeviceRegistry device_registry = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.iot.v1.DeviceRegistry device_registry = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the deviceRegistry field is set. */ boolean hasDeviceRegistry(); /** + * + * *
    * Required. The new values for the device registry. The `id` field must be empty, and
    * the `name` field must indicate the path of the resource. For example,
    * `projects/example-project/locations/us-central1/registries/my-registry`.
    * 
* - * .google.cloud.iot.v1.DeviceRegistry device_registry = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.iot.v1.DeviceRegistry device_registry = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The deviceRegistry. */ com.google.cloud.iot.v1.DeviceRegistry getDeviceRegistry(); /** + * + * *
    * Required. The new values for the device registry. The `id` field must be empty, and
    * the `name` field must indicate the path of the resource. For example,
    * `projects/example-project/locations/us-central1/registries/my-registry`.
    * 
* - * .google.cloud.iot.v1.DeviceRegistry device_registry = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.iot.v1.DeviceRegistry device_registry = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ com.google.cloud.iot.v1.DeviceRegistryOrBuilder getDeviceRegistryOrBuilder(); /** + * + * *
    * Required. Only updates the `device_registry` fields indicated by this mask.
    * The field mask must not be empty, and it must not contain fields that
@@ -49,11 +81,15 @@ public interface UpdateDeviceRegistryRequestOrBuilder extends
    * `mqtt_config`, and `state_notification_config`.
    * 
* - * .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. Only updates the `device_registry` fields indicated by this mask.
    * The field mask must not be empty, and it must not contain fields that
@@ -62,11 +98,15 @@ public interface UpdateDeviceRegistryRequestOrBuilder extends
    * `mqtt_config`, and `state_notification_config`.
    * 
* - * .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. Only updates the `device_registry` fields indicated by this mask.
    * The field mask must not be empty, and it must not contain fields that
@@ -75,7 +115,8 @@ public interface UpdateDeviceRegistryRequestOrBuilder extends
    * `mqtt_config`, and `state_notification_config`.
    * 
* - * .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(); } diff --git a/owl-bot-staging/v1/proto-google-cloud-iot-v1/src/main/java/com/google/cloud/iot/v1/UpdateDeviceRequest.java b/proto-google-cloud-iot-v1/src/main/java/com/google/cloud/iot/v1/UpdateDeviceRequest.java similarity index 73% rename from owl-bot-staging/v1/proto-google-cloud-iot-v1/src/main/java/com/google/cloud/iot/v1/UpdateDeviceRequest.java rename to proto-google-cloud-iot-v1/src/main/java/com/google/cloud/iot/v1/UpdateDeviceRequest.java index 3f3be7ec..de616956 100644 --- a/owl-bot-staging/v1/proto-google-cloud-iot-v1/src/main/java/com/google/cloud/iot/v1/UpdateDeviceRequest.java +++ b/proto-google-cloud-iot-v1/src/main/java/com/google/cloud/iot/v1/UpdateDeviceRequest.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/iot/v1/device_manager.proto package com.google.cloud.iot.v1; /** + * + * *
  * Request for `UpdateDevice`.
  * 
* * Protobuf type {@code google.cloud.iot.v1.UpdateDeviceRequest} */ -public final class UpdateDeviceRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class UpdateDeviceRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.iot.v1.UpdateDeviceRequest) UpdateDeviceRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use UpdateDeviceRequest.newBuilder() to construct. private UpdateDeviceRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private UpdateDeviceRequest() { - } + + private UpdateDeviceRequest() {} @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new UpdateDeviceRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private UpdateDeviceRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -52,39 +68,43 @@ private UpdateDeviceRequest( case 0: done = true; break; - case 18: { - com.google.cloud.iot.v1.Device.Builder subBuilder = null; - if (device_ != null) { - subBuilder = device_.toBuilder(); - } - device_ = input.readMessage(com.google.cloud.iot.v1.Device.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(device_); - device_ = subBuilder.buildPartial(); - } + case 18: + { + com.google.cloud.iot.v1.Device.Builder subBuilder = null; + if (device_ != null) { + subBuilder = device_.toBuilder(); + } + device_ = + input.readMessage(com.google.cloud.iot.v1.Device.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(device_); + device_ = subBuilder.buildPartial(); + } - break; - } - case 26: { - 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.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; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -92,29 +112,33 @@ private UpdateDeviceRequest( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.iot.v1.DeviceManagerProto.internal_static_google_cloud_iot_v1_UpdateDeviceRequest_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.iot.v1.DeviceManagerProto + .internal_static_google_cloud_iot_v1_UpdateDeviceRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.iot.v1.DeviceManagerProto.internal_static_google_cloud_iot_v1_UpdateDeviceRequest_fieldAccessorTable + return com.google.cloud.iot.v1.DeviceManagerProto + .internal_static_google_cloud_iot_v1_UpdateDeviceRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.iot.v1.UpdateDeviceRequest.class, com.google.cloud.iot.v1.UpdateDeviceRequest.Builder.class); + com.google.cloud.iot.v1.UpdateDeviceRequest.class, + com.google.cloud.iot.v1.UpdateDeviceRequest.Builder.class); } public static final int DEVICE_FIELD_NUMBER = 2; private com.google.cloud.iot.v1.Device device_; /** + * + * *
    * Required. The new values for the device. The `id` and `num_id` fields must
    * be empty, and the field `name` must specify the name path. For example,
@@ -123,6 +147,7 @@ private UpdateDeviceRequest(
    * 
* * .google.cloud.iot.v1.Device device = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return Whether the device field is set. */ @java.lang.Override @@ -130,6 +155,8 @@ public boolean hasDevice() { return device_ != null; } /** + * + * *
    * Required. The new values for the device. The `id` and `num_id` fields must
    * be empty, and the field `name` must specify the name path. For example,
@@ -138,6 +165,7 @@ public boolean hasDevice() {
    * 
* * .google.cloud.iot.v1.Device device = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The device. */ @java.lang.Override @@ -145,6 +173,8 @@ public com.google.cloud.iot.v1.Device getDevice() { return device_ == null ? com.google.cloud.iot.v1.Device.getDefaultInstance() : device_; } /** + * + * *
    * Required. The new values for the device. The `id` and `num_id` fields must
    * be empty, and the field `name` must specify the name path. For example,
@@ -162,6 +192,8 @@ public com.google.cloud.iot.v1.DeviceOrBuilder getDeviceOrBuilder() {
   public static final int UPDATE_MASK_FIELD_NUMBER = 3;
   private com.google.protobuf.FieldMask updateMask_;
   /**
+   *
+   *
    * 
    * Required. Only updates the `device` fields indicated by this mask.
    * The field mask must not be empty, and it must not contain fields that
@@ -169,7 +201,9 @@ public com.google.cloud.iot.v1.DeviceOrBuilder getDeviceOrBuilder() {
    * Mutable top-level fields: `credentials`, `blocked`, and `metadata`
    * 
* - * .google.protobuf.FieldMask update_mask = 3 [(.google.api.field_behavior) = REQUIRED]; + * .google.protobuf.FieldMask update_mask = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the updateMask field is set. */ @java.lang.Override @@ -177,6 +211,8 @@ public boolean hasUpdateMask() { return updateMask_ != null; } /** + * + * *
    * Required. Only updates the `device` fields indicated by this mask.
    * The field mask must not be empty, and it must not contain fields that
@@ -184,7 +220,9 @@ public boolean hasUpdateMask() {
    * Mutable top-level fields: `credentials`, `blocked`, and `metadata`
    * 
* - * .google.protobuf.FieldMask update_mask = 3 [(.google.api.field_behavior) = REQUIRED]; + * .google.protobuf.FieldMask update_mask = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The updateMask. */ @java.lang.Override @@ -192,6 +230,8 @@ public com.google.protobuf.FieldMask getUpdateMask() { return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; } /** + * + * *
    * Required. Only updates the `device` fields indicated by this mask.
    * The field mask must not be empty, and it must not contain fields that
@@ -199,7 +239,8 @@ public com.google.protobuf.FieldMask getUpdateMask() {
    * Mutable top-level fields: `credentials`, `blocked`, and `metadata`
    * 
* - * .google.protobuf.FieldMask update_mask = 3 [(.google.api.field_behavior) = REQUIRED]; + * .google.protobuf.FieldMask update_mask = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ @java.lang.Override public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { @@ -207,6 +248,7 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -218,8 +260,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (device_ != null) { output.writeMessage(2, getDevice()); } @@ -236,12 +277,10 @@ public int getSerializedSize() { size = 0; if (device_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getDevice()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getDevice()); } if (updateMask_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(3, getUpdateMask()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getUpdateMask()); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -251,22 +290,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.iot.v1.UpdateDeviceRequest)) { return super.equals(obj); } - com.google.cloud.iot.v1.UpdateDeviceRequest other = (com.google.cloud.iot.v1.UpdateDeviceRequest) obj; + com.google.cloud.iot.v1.UpdateDeviceRequest other = + (com.google.cloud.iot.v1.UpdateDeviceRequest) obj; if (hasDevice() != other.hasDevice()) return false; if (hasDevice()) { - if (!getDevice() - .equals(other.getDevice())) return false; + if (!getDevice().equals(other.getDevice())) 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 (!unknownFields.equals(other.unknownFields)) return false; return true; @@ -292,118 +330,127 @@ public int hashCode() { return hash; } - public static com.google.cloud.iot.v1.UpdateDeviceRequest parseFrom( - java.nio.ByteBuffer data) + public static com.google.cloud.iot.v1.UpdateDeviceRequest parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.iot.v1.UpdateDeviceRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.iot.v1.UpdateDeviceRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.iot.v1.UpdateDeviceRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.iot.v1.UpdateDeviceRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.iot.v1.UpdateDeviceRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.iot.v1.UpdateDeviceRequest 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.iot.v1.UpdateDeviceRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.iot.v1.UpdateDeviceRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.iot.v1.UpdateDeviceRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.iot.v1.UpdateDeviceRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.iot.v1.UpdateDeviceRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.iot.v1.UpdateDeviceRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.cloud.iot.v1.UpdateDeviceRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected 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 `UpdateDevice`.
    * 
* * Protobuf type {@code google.cloud.iot.v1.UpdateDeviceRequest} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.iot.v1.UpdateDeviceRequest) com.google.cloud.iot.v1.UpdateDeviceRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.iot.v1.DeviceManagerProto.internal_static_google_cloud_iot_v1_UpdateDeviceRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.iot.v1.DeviceManagerProto + .internal_static_google_cloud_iot_v1_UpdateDeviceRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.iot.v1.DeviceManagerProto.internal_static_google_cloud_iot_v1_UpdateDeviceRequest_fieldAccessorTable + return com.google.cloud.iot.v1.DeviceManagerProto + .internal_static_google_cloud_iot_v1_UpdateDeviceRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.iot.v1.UpdateDeviceRequest.class, com.google.cloud.iot.v1.UpdateDeviceRequest.Builder.class); + com.google.cloud.iot.v1.UpdateDeviceRequest.class, + com.google.cloud.iot.v1.UpdateDeviceRequest.Builder.class); } // Construct using com.google.cloud.iot.v1.UpdateDeviceRequest.newBuilder() @@ -411,16 +458,15 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -440,9 +486,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.iot.v1.DeviceManagerProto.internal_static_google_cloud_iot_v1_UpdateDeviceRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.iot.v1.DeviceManagerProto + .internal_static_google_cloud_iot_v1_UpdateDeviceRequest_descriptor; } @java.lang.Override @@ -461,7 +507,8 @@ public com.google.cloud.iot.v1.UpdateDeviceRequest build() { @java.lang.Override public com.google.cloud.iot.v1.UpdateDeviceRequest buildPartial() { - com.google.cloud.iot.v1.UpdateDeviceRequest result = new com.google.cloud.iot.v1.UpdateDeviceRequest(this); + com.google.cloud.iot.v1.UpdateDeviceRequest result = + new com.google.cloud.iot.v1.UpdateDeviceRequest(this); if (deviceBuilder_ == null) { result.device_ = device_; } else { @@ -480,38 +527,39 @@ public com.google.cloud.iot.v1.UpdateDeviceRequest buildPartial() { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.iot.v1.UpdateDeviceRequest) { - return mergeFrom((com.google.cloud.iot.v1.UpdateDeviceRequest)other); + return mergeFrom((com.google.cloud.iot.v1.UpdateDeviceRequest) other); } else { super.mergeFrom(other); return this; @@ -557,8 +605,13 @@ public Builder mergeFrom( private com.google.cloud.iot.v1.Device device_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.iot.v1.Device, com.google.cloud.iot.v1.Device.Builder, com.google.cloud.iot.v1.DeviceOrBuilder> deviceBuilder_; + com.google.cloud.iot.v1.Device, + com.google.cloud.iot.v1.Device.Builder, + com.google.cloud.iot.v1.DeviceOrBuilder> + deviceBuilder_; /** + * + * *
      * Required. The new values for the device. The `id` and `num_id` fields must
      * be empty, and the field `name` must specify the name path. For example,
@@ -566,13 +619,17 @@ public Builder mergeFrom(
      * `projects/p0/locations/us-central1/registries/registry0/devices/{num_id}`.
      * 
* - * .google.cloud.iot.v1.Device device = 2 [(.google.api.field_behavior) = REQUIRED]; + * .google.cloud.iot.v1.Device device = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the device field is set. */ public boolean hasDevice() { return deviceBuilder_ != null || device_ != null; } /** + * + * *
      * Required. The new values for the device. The `id` and `num_id` fields must
      * be empty, and the field `name` must specify the name path. For example,
@@ -580,7 +637,9 @@ public boolean hasDevice() {
      * `projects/p0/locations/us-central1/registries/registry0/devices/{num_id}`.
      * 
* - * .google.cloud.iot.v1.Device device = 2 [(.google.api.field_behavior) = REQUIRED]; + * .google.cloud.iot.v1.Device device = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The device. */ public com.google.cloud.iot.v1.Device getDevice() { @@ -591,6 +650,8 @@ public com.google.cloud.iot.v1.Device getDevice() { } } /** + * + * *
      * Required. The new values for the device. The `id` and `num_id` fields must
      * be empty, and the field `name` must specify the name path. For example,
@@ -598,7 +659,8 @@ public com.google.cloud.iot.v1.Device getDevice() {
      * `projects/p0/locations/us-central1/registries/registry0/devices/{num_id}`.
      * 
* - * .google.cloud.iot.v1.Device device = 2 [(.google.api.field_behavior) = REQUIRED]; + * .google.cloud.iot.v1.Device device = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder setDevice(com.google.cloud.iot.v1.Device value) { if (deviceBuilder_ == null) { @@ -614,6 +676,8 @@ public Builder setDevice(com.google.cloud.iot.v1.Device value) { return this; } /** + * + * *
      * Required. The new values for the device. The `id` and `num_id` fields must
      * be empty, and the field `name` must specify the name path. For example,
@@ -621,10 +685,10 @@ public Builder setDevice(com.google.cloud.iot.v1.Device value) {
      * `projects/p0/locations/us-central1/registries/registry0/devices/{num_id}`.
      * 
* - * .google.cloud.iot.v1.Device device = 2 [(.google.api.field_behavior) = REQUIRED]; + * .google.cloud.iot.v1.Device device = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ - public Builder setDevice( - com.google.cloud.iot.v1.Device.Builder builderForValue) { + public Builder setDevice(com.google.cloud.iot.v1.Device.Builder builderForValue) { if (deviceBuilder_ == null) { device_ = builderForValue.build(); onChanged(); @@ -635,6 +699,8 @@ public Builder setDevice( return this; } /** + * + * *
      * Required. The new values for the device. The `id` and `num_id` fields must
      * be empty, and the field `name` must specify the name path. For example,
@@ -642,13 +708,14 @@ public Builder setDevice(
      * `projects/p0/locations/us-central1/registries/registry0/devices/{num_id}`.
      * 
* - * .google.cloud.iot.v1.Device device = 2 [(.google.api.field_behavior) = REQUIRED]; + * .google.cloud.iot.v1.Device device = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder mergeDevice(com.google.cloud.iot.v1.Device value) { if (deviceBuilder_ == null) { if (device_ != null) { device_ = - com.google.cloud.iot.v1.Device.newBuilder(device_).mergeFrom(value).buildPartial(); + com.google.cloud.iot.v1.Device.newBuilder(device_).mergeFrom(value).buildPartial(); } else { device_ = value; } @@ -660,6 +727,8 @@ public Builder mergeDevice(com.google.cloud.iot.v1.Device value) { return this; } /** + * + * *
      * Required. The new values for the device. The `id` and `num_id` fields must
      * be empty, and the field `name` must specify the name path. For example,
@@ -667,7 +736,8 @@ public Builder mergeDevice(com.google.cloud.iot.v1.Device value) {
      * `projects/p0/locations/us-central1/registries/registry0/devices/{num_id}`.
      * 
* - * .google.cloud.iot.v1.Device device = 2 [(.google.api.field_behavior) = REQUIRED]; + * .google.cloud.iot.v1.Device device = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder clearDevice() { if (deviceBuilder_ == null) { @@ -681,6 +751,8 @@ public Builder clearDevice() { return this; } /** + * + * *
      * Required. The new values for the device. The `id` and `num_id` fields must
      * be empty, and the field `name` must specify the name path. For example,
@@ -688,14 +760,17 @@ public Builder clearDevice() {
      * `projects/p0/locations/us-central1/registries/registry0/devices/{num_id}`.
      * 
* - * .google.cloud.iot.v1.Device device = 2 [(.google.api.field_behavior) = REQUIRED]; + * .google.cloud.iot.v1.Device device = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.cloud.iot.v1.Device.Builder getDeviceBuilder() { - + onChanged(); return getDeviceFieldBuilder().getBuilder(); } /** + * + * *
      * Required. The new values for the device. The `id` and `num_id` fields must
      * be empty, and the field `name` must specify the name path. For example,
@@ -703,17 +778,19 @@ public com.google.cloud.iot.v1.Device.Builder getDeviceBuilder() {
      * `projects/p0/locations/us-central1/registries/registry0/devices/{num_id}`.
      * 
* - * .google.cloud.iot.v1.Device device = 2 [(.google.api.field_behavior) = REQUIRED]; + * .google.cloud.iot.v1.Device device = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.cloud.iot.v1.DeviceOrBuilder getDeviceOrBuilder() { if (deviceBuilder_ != null) { return deviceBuilder_.getMessageOrBuilder(); } else { - return device_ == null ? - com.google.cloud.iot.v1.Device.getDefaultInstance() : device_; + return device_ == null ? com.google.cloud.iot.v1.Device.getDefaultInstance() : device_; } } /** + * + * *
      * Required. The new values for the device. The `id` and `num_id` fields must
      * be empty, and the field `name` must specify the name path. For example,
@@ -721,17 +798,21 @@ public com.google.cloud.iot.v1.DeviceOrBuilder getDeviceOrBuilder() {
      * `projects/p0/locations/us-central1/registries/registry0/devices/{num_id}`.
      * 
* - * .google.cloud.iot.v1.Device device = 2 [(.google.api.field_behavior) = REQUIRED]; + * .google.cloud.iot.v1.Device device = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.iot.v1.Device, com.google.cloud.iot.v1.Device.Builder, com.google.cloud.iot.v1.DeviceOrBuilder> + com.google.cloud.iot.v1.Device, + com.google.cloud.iot.v1.Device.Builder, + com.google.cloud.iot.v1.DeviceOrBuilder> getDeviceFieldBuilder() { if (deviceBuilder_ == null) { - deviceBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.iot.v1.Device, com.google.cloud.iot.v1.Device.Builder, com.google.cloud.iot.v1.DeviceOrBuilder>( - getDevice(), - getParentForChildren(), - isClean()); + deviceBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.iot.v1.Device, + com.google.cloud.iot.v1.Device.Builder, + com.google.cloud.iot.v1.DeviceOrBuilder>( + getDevice(), getParentForChildren(), isClean()); device_ = null; } return deviceBuilder_; @@ -739,8 +820,13 @@ public com.google.cloud.iot.v1.DeviceOrBuilder getDeviceOrBuilder() { 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. Only updates the `device` fields indicated by this mask.
      * The field mask must not be empty, and it must not contain fields that
@@ -748,13 +834,17 @@ public com.google.cloud.iot.v1.DeviceOrBuilder getDeviceOrBuilder() {
      * Mutable top-level fields: `credentials`, `blocked`, and `metadata`
      * 
* - * .google.protobuf.FieldMask update_mask = 3 [(.google.api.field_behavior) = REQUIRED]; + * .google.protobuf.FieldMask update_mask = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the updateMask field is set. */ public boolean hasUpdateMask() { return updateMaskBuilder_ != null || updateMask_ != null; } /** + * + * *
      * Required. Only updates the `device` fields indicated by this mask.
      * The field mask must not be empty, and it must not contain fields that
@@ -762,17 +852,23 @@ public boolean hasUpdateMask() {
      * Mutable top-level fields: `credentials`, `blocked`, and `metadata`
      * 
* - * .google.protobuf.FieldMask update_mask = 3 [(.google.api.field_behavior) = REQUIRED]; + * .google.protobuf.FieldMask update_mask = 3 [(.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. Only updates the `device` fields indicated by this mask.
      * The field mask must not be empty, and it must not contain fields that
@@ -780,7 +876,8 @@ public com.google.protobuf.FieldMask getUpdateMask() {
      * Mutable top-level fields: `credentials`, `blocked`, and `metadata`
      * 
* - * .google.protobuf.FieldMask update_mask = 3 [(.google.api.field_behavior) = REQUIRED]; + * .google.protobuf.FieldMask update_mask = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder setUpdateMask(com.google.protobuf.FieldMask value) { if (updateMaskBuilder_ == null) { @@ -796,6 +893,8 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask value) { return this; } /** + * + * *
      * Required. Only updates the `device` fields indicated by this mask.
      * The field mask must not be empty, and it must not contain fields that
@@ -803,10 +902,10 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask value) {
      * Mutable top-level fields: `credentials`, `blocked`, and `metadata`
      * 
* - * .google.protobuf.FieldMask update_mask = 3 [(.google.api.field_behavior) = REQUIRED]; + * .google.protobuf.FieldMask update_mask = 3 [(.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(); @@ -817,6 +916,8 @@ public Builder setUpdateMask( return this; } /** + * + * *
      * Required. Only updates the `device` fields indicated by this mask.
      * The field mask must not be empty, and it must not contain fields that
@@ -824,13 +925,14 @@ public Builder setUpdateMask(
      * Mutable top-level fields: `credentials`, `blocked`, and `metadata`
      * 
* - * .google.protobuf.FieldMask update_mask = 3 [(.google.api.field_behavior) = REQUIRED]; + * .google.protobuf.FieldMask update_mask = 3 [(.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; } @@ -842,6 +944,8 @@ public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) { return this; } /** + * + * *
      * Required. Only updates the `device` fields indicated by this mask.
      * The field mask must not be empty, and it must not contain fields that
@@ -849,7 +953,8 @@ public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) {
      * Mutable top-level fields: `credentials`, `blocked`, and `metadata`
      * 
* - * .google.protobuf.FieldMask update_mask = 3 [(.google.api.field_behavior) = REQUIRED]; + * .google.protobuf.FieldMask update_mask = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder clearUpdateMask() { if (updateMaskBuilder_ == null) { @@ -863,6 +968,8 @@ public Builder clearUpdateMask() { return this; } /** + * + * *
      * Required. Only updates the `device` fields indicated by this mask.
      * The field mask must not be empty, and it must not contain fields that
@@ -870,14 +977,17 @@ public Builder clearUpdateMask() {
      * Mutable top-level fields: `credentials`, `blocked`, and `metadata`
      * 
* - * .google.protobuf.FieldMask update_mask = 3 [(.google.api.field_behavior) = REQUIRED]; + * .google.protobuf.FieldMask update_mask = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() { - + onChanged(); return getUpdateMaskFieldBuilder().getBuilder(); } /** + * + * *
      * Required. Only updates the `device` fields indicated by this mask.
      * The field mask must not be empty, and it must not contain fields that
@@ -885,17 +995,21 @@ public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() {
      * Mutable top-level fields: `credentials`, `blocked`, and `metadata`
      * 
* - * .google.protobuf.FieldMask update_mask = 3 [(.google.api.field_behavior) = REQUIRED]; + * .google.protobuf.FieldMask update_mask = 3 [(.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. Only updates the `device` fields indicated by this mask.
      * The field mask must not be empty, and it must not contain fields that
@@ -903,24 +1017,28 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() {
      * Mutable top-level fields: `credentials`, `blocked`, and `metadata`
      * 
* - * .google.protobuf.FieldMask update_mask = 3 [(.google.api.field_behavior) = REQUIRED]; + * .google.protobuf.FieldMask update_mask = 3 [(.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_; } + @java.lang.Override - 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 +1048,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.iot.v1.UpdateDeviceRequest) } // @@protoc_insertion_point(class_scope:google.cloud.iot.v1.UpdateDeviceRequest) private static final com.google.cloud.iot.v1.UpdateDeviceRequest DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.iot.v1.UpdateDeviceRequest(); } @@ -944,16 +1062,16 @@ public static com.google.cloud.iot.v1.UpdateDeviceRequest getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public UpdateDeviceRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new UpdateDeviceRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public UpdateDeviceRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new UpdateDeviceRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -968,6 +1086,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.iot.v1.UpdateDeviceRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1/proto-google-cloud-iot-v1/src/main/java/com/google/cloud/iot/v1/UpdateDeviceRequestOrBuilder.java b/proto-google-cloud-iot-v1/src/main/java/com/google/cloud/iot/v1/UpdateDeviceRequestOrBuilder.java similarity index 78% rename from owl-bot-staging/v1/proto-google-cloud-iot-v1/src/main/java/com/google/cloud/iot/v1/UpdateDeviceRequestOrBuilder.java rename to proto-google-cloud-iot-v1/src/main/java/com/google/cloud/iot/v1/UpdateDeviceRequestOrBuilder.java index 075f1691..8d26fb3f 100644 --- a/owl-bot-staging/v1/proto-google-cloud-iot-v1/src/main/java/com/google/cloud/iot/v1/UpdateDeviceRequestOrBuilder.java +++ b/proto-google-cloud-iot-v1/src/main/java/com/google/cloud/iot/v1/UpdateDeviceRequestOrBuilder.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/iot/v1/device_manager.proto package com.google.cloud.iot.v1; -public interface UpdateDeviceRequestOrBuilder extends +public interface UpdateDeviceRequestOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.iot.v1.UpdateDeviceRequest) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Required. The new values for the device. The `id` and `num_id` fields must
    * be empty, and the field `name` must specify the name path. For example,
@@ -16,10 +34,13 @@ public interface UpdateDeviceRequestOrBuilder extends
    * 
* * .google.cloud.iot.v1.Device device = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return Whether the device field is set. */ boolean hasDevice(); /** + * + * *
    * Required. The new values for the device. The `id` and `num_id` fields must
    * be empty, and the field `name` must specify the name path. For example,
@@ -28,10 +49,13 @@ public interface UpdateDeviceRequestOrBuilder extends
    * 
* * .google.cloud.iot.v1.Device device = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The device. */ com.google.cloud.iot.v1.Device getDevice(); /** + * + * *
    * Required. The new values for the device. The `id` and `num_id` fields must
    * be empty, and the field `name` must specify the name path. For example,
@@ -44,6 +68,8 @@ public interface UpdateDeviceRequestOrBuilder extends
   com.google.cloud.iot.v1.DeviceOrBuilder getDeviceOrBuilder();
 
   /**
+   *
+   *
    * 
    * Required. Only updates the `device` fields indicated by this mask.
    * The field mask must not be empty, and it must not contain fields that
@@ -51,11 +77,15 @@ public interface UpdateDeviceRequestOrBuilder extends
    * Mutable top-level fields: `credentials`, `blocked`, and `metadata`
    * 
* - * .google.protobuf.FieldMask update_mask = 3 [(.google.api.field_behavior) = REQUIRED]; + * .google.protobuf.FieldMask update_mask = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the updateMask field is set. */ boolean hasUpdateMask(); /** + * + * *
    * Required. Only updates the `device` fields indicated by this mask.
    * The field mask must not be empty, and it must not contain fields that
@@ -63,11 +93,15 @@ public interface UpdateDeviceRequestOrBuilder extends
    * Mutable top-level fields: `credentials`, `blocked`, and `metadata`
    * 
* - * .google.protobuf.FieldMask update_mask = 3 [(.google.api.field_behavior) = REQUIRED]; + * .google.protobuf.FieldMask update_mask = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The updateMask. */ com.google.protobuf.FieldMask getUpdateMask(); /** + * + * *
    * Required. Only updates the `device` fields indicated by this mask.
    * The field mask must not be empty, and it must not contain fields that
@@ -75,7 +109,8 @@ public interface UpdateDeviceRequestOrBuilder extends
    * Mutable top-level fields: `credentials`, `blocked`, and `metadata`
    * 
* - * .google.protobuf.FieldMask update_mask = 3 [(.google.api.field_behavior) = REQUIRED]; + * .google.protobuf.FieldMask update_mask = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder(); } diff --git a/owl-bot-staging/v1/proto-google-cloud-iot-v1/src/main/java/com/google/cloud/iot/v1/X509CertificateDetails.java b/proto-google-cloud-iot-v1/src/main/java/com/google/cloud/iot/v1/X509CertificateDetails.java similarity index 72% rename from owl-bot-staging/v1/proto-google-cloud-iot-v1/src/main/java/com/google/cloud/iot/v1/X509CertificateDetails.java rename to proto-google-cloud-iot-v1/src/main/java/com/google/cloud/iot/v1/X509CertificateDetails.java index 7ca7dd04..9492db6d 100644 --- a/owl-bot-staging/v1/proto-google-cloud-iot-v1/src/main/java/com/google/cloud/iot/v1/X509CertificateDetails.java +++ b/proto-google-cloud-iot-v1/src/main/java/com/google/cloud/iot/v1/X509CertificateDetails.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/iot/v1/resources.proto package com.google.cloud.iot.v1; /** + * + * *
  * Details of an X.509 certificate. For informational purposes only.
  * 
* * Protobuf type {@code google.cloud.iot.v1.X509CertificateDetails} */ -public final class X509CertificateDetails extends - com.google.protobuf.GeneratedMessageV3 implements +public final class X509CertificateDetails extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.iot.v1.X509CertificateDetails) X509CertificateDetailsOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use X509CertificateDetails.newBuilder() to construct. private X509CertificateDetails(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private X509CertificateDetails() { issuer_ = ""; subject_ = ""; @@ -28,16 +46,15 @@ private X509CertificateDetails() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new X509CertificateDetails(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private X509CertificateDetails( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -56,63 +73,71 @@ private X509CertificateDetails( case 0: done = true; break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); - issuer_ = s; - break; - } - case 18: { - java.lang.String s = input.readStringRequireUtf8(); - - subject_ = s; - break; - } - case 26: { - com.google.protobuf.Timestamp.Builder subBuilder = null; - if (startTime_ != null) { - subBuilder = startTime_.toBuilder(); - } - startTime_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(startTime_); - startTime_ = subBuilder.buildPartial(); + issuer_ = s; + break; } + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); - break; - } - case 34: { - com.google.protobuf.Timestamp.Builder subBuilder = null; - if (expiryTime_ != null) { - subBuilder = expiryTime_.toBuilder(); + subject_ = s; + break; } - expiryTime_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(expiryTime_); - expiryTime_ = subBuilder.buildPartial(); + case 26: + { + com.google.protobuf.Timestamp.Builder subBuilder = null; + if (startTime_ != null) { + subBuilder = startTime_.toBuilder(); + } + startTime_ = + input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(startTime_); + startTime_ = subBuilder.buildPartial(); + } + + break; } + case 34: + { + com.google.protobuf.Timestamp.Builder subBuilder = null; + if (expiryTime_ != null) { + subBuilder = expiryTime_.toBuilder(); + } + expiryTime_ = + input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(expiryTime_); + expiryTime_ = subBuilder.buildPartial(); + } + + break; + } + case 42: + { + java.lang.String s = input.readStringRequireUtf8(); - break; - } - case 42: { - java.lang.String s = input.readStringRequireUtf8(); - - signatureAlgorithm_ = s; - break; - } - case 50: { - java.lang.String s = input.readStringRequireUtf8(); + signatureAlgorithm_ = s; + break; + } + case 50: + { + java.lang.String s = input.readStringRequireUtf8(); - publicKeyType_ = s; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + publicKeyType_ = s; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -120,34 +145,39 @@ private X509CertificateDetails( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.iot.v1.ResourcesProto.internal_static_google_cloud_iot_v1_X509CertificateDetails_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.iot.v1.ResourcesProto + .internal_static_google_cloud_iot_v1_X509CertificateDetails_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.iot.v1.ResourcesProto.internal_static_google_cloud_iot_v1_X509CertificateDetails_fieldAccessorTable + return com.google.cloud.iot.v1.ResourcesProto + .internal_static_google_cloud_iot_v1_X509CertificateDetails_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.iot.v1.X509CertificateDetails.class, com.google.cloud.iot.v1.X509CertificateDetails.Builder.class); + com.google.cloud.iot.v1.X509CertificateDetails.class, + com.google.cloud.iot.v1.X509CertificateDetails.Builder.class); } public static final int ISSUER_FIELD_NUMBER = 1; private volatile java.lang.Object issuer_; /** + * + * *
    * The entity that signed the certificate.
    * 
* * string issuer = 1; + * * @return The issuer. */ @java.lang.Override @@ -156,29 +186,29 @@ public java.lang.String getIssuer() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); issuer_ = s; return s; } } /** + * + * *
    * The entity that signed the certificate.
    * 
* * string issuer = 1; + * * @return The bytes for issuer. */ @java.lang.Override - public com.google.protobuf.ByteString - getIssuerBytes() { + public com.google.protobuf.ByteString getIssuerBytes() { java.lang.Object ref = issuer_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); issuer_ = b; return b; } else { @@ -189,11 +219,14 @@ public java.lang.String getIssuer() { public static final int SUBJECT_FIELD_NUMBER = 2; private volatile java.lang.Object subject_; /** + * + * *
    * The entity the certificate and public key belong to.
    * 
* * string subject = 2; + * * @return The subject. */ @java.lang.Override @@ -202,29 +235,29 @@ public java.lang.String getSubject() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); subject_ = s; return s; } } /** + * + * *
    * The entity the certificate and public key belong to.
    * 
* * string subject = 2; + * * @return The bytes for subject. */ @java.lang.Override - public com.google.protobuf.ByteString - getSubjectBytes() { + public com.google.protobuf.ByteString getSubjectBytes() { java.lang.Object ref = subject_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); subject_ = b; return b; } else { @@ -235,11 +268,14 @@ public java.lang.String getSubject() { public static final int START_TIME_FIELD_NUMBER = 3; private com.google.protobuf.Timestamp startTime_; /** + * + * *
    * The time the certificate becomes valid.
    * 
* * .google.protobuf.Timestamp start_time = 3; + * * @return Whether the startTime field is set. */ @java.lang.Override @@ -247,11 +283,14 @@ public boolean hasStartTime() { return startTime_ != null; } /** + * + * *
    * The time the certificate becomes valid.
    * 
* * .google.protobuf.Timestamp start_time = 3; + * * @return The startTime. */ @java.lang.Override @@ -259,6 +298,8 @@ public com.google.protobuf.Timestamp getStartTime() { return startTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : startTime_; } /** + * + * *
    * The time the certificate becomes valid.
    * 
@@ -273,11 +314,14 @@ public com.google.protobuf.TimestampOrBuilder getStartTimeOrBuilder() { public static final int EXPIRY_TIME_FIELD_NUMBER = 4; private com.google.protobuf.Timestamp expiryTime_; /** + * + * *
    * The time the certificate becomes invalid.
    * 
* * .google.protobuf.Timestamp expiry_time = 4; + * * @return Whether the expiryTime field is set. */ @java.lang.Override @@ -285,11 +329,14 @@ public boolean hasExpiryTime() { return expiryTime_ != null; } /** + * + * *
    * The time the certificate becomes invalid.
    * 
* * .google.protobuf.Timestamp expiry_time = 4; + * * @return The expiryTime. */ @java.lang.Override @@ -297,6 +344,8 @@ public com.google.protobuf.Timestamp getExpiryTime() { return expiryTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : expiryTime_; } /** + * + * *
    * The time the certificate becomes invalid.
    * 
@@ -311,11 +360,14 @@ public com.google.protobuf.TimestampOrBuilder getExpiryTimeOrBuilder() { public static final int SIGNATURE_ALGORITHM_FIELD_NUMBER = 5; private volatile java.lang.Object signatureAlgorithm_; /** + * + * *
    * The algorithm used to sign the certificate.
    * 
* * string signature_algorithm = 5; + * * @return The signatureAlgorithm. */ @java.lang.Override @@ -324,29 +376,29 @@ public java.lang.String getSignatureAlgorithm() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); signatureAlgorithm_ = s; return s; } } /** + * + * *
    * The algorithm used to sign the certificate.
    * 
* * string signature_algorithm = 5; + * * @return The bytes for signatureAlgorithm. */ @java.lang.Override - public com.google.protobuf.ByteString - getSignatureAlgorithmBytes() { + public com.google.protobuf.ByteString getSignatureAlgorithmBytes() { java.lang.Object ref = signatureAlgorithm_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); signatureAlgorithm_ = b; return b; } else { @@ -357,11 +409,14 @@ public java.lang.String getSignatureAlgorithm() { public static final int PUBLIC_KEY_TYPE_FIELD_NUMBER = 6; private volatile java.lang.Object publicKeyType_; /** + * + * *
    * The type of public key in the certificate.
    * 
* * string public_key_type = 6; + * * @return The publicKeyType. */ @java.lang.Override @@ -370,29 +425,29 @@ public java.lang.String getPublicKeyType() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); publicKeyType_ = s; return s; } } /** + * + * *
    * The type of public key in the certificate.
    * 
* * string public_key_type = 6; + * * @return The bytes for publicKeyType. */ @java.lang.Override - public com.google.protobuf.ByteString - getPublicKeyTypeBytes() { + public com.google.protobuf.ByteString getPublicKeyTypeBytes() { java.lang.Object ref = publicKeyType_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); publicKeyType_ = b; return b; } else { @@ -401,6 +456,7 @@ public java.lang.String getPublicKeyType() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -412,8 +468,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(issuer_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, issuer_); } @@ -448,12 +503,10 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, subject_); } if (startTime_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(3, getStartTime()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getStartTime()); } if (expiryTime_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(4, getExpiryTime()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getExpiryTime()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(signatureAlgorithm_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, signatureAlgorithm_); @@ -469,31 +522,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.iot.v1.X509CertificateDetails)) { return super.equals(obj); } - com.google.cloud.iot.v1.X509CertificateDetails other = (com.google.cloud.iot.v1.X509CertificateDetails) obj; + com.google.cloud.iot.v1.X509CertificateDetails other = + (com.google.cloud.iot.v1.X509CertificateDetails) obj; - if (!getIssuer() - .equals(other.getIssuer())) return false; - if (!getSubject() - .equals(other.getSubject())) return false; + if (!getIssuer().equals(other.getIssuer())) return false; + if (!getSubject().equals(other.getSubject())) return false; if (hasStartTime() != other.hasStartTime()) return false; if (hasStartTime()) { - if (!getStartTime() - .equals(other.getStartTime())) return false; + if (!getStartTime().equals(other.getStartTime())) return false; } if (hasExpiryTime() != other.hasExpiryTime()) return false; if (hasExpiryTime()) { - if (!getExpiryTime() - .equals(other.getExpiryTime())) return false; + if (!getExpiryTime().equals(other.getExpiryTime())) return false; } - if (!getSignatureAlgorithm() - .equals(other.getSignatureAlgorithm())) return false; - if (!getPublicKeyType() - .equals(other.getPublicKeyType())) return false; + if (!getSignatureAlgorithm().equals(other.getSignatureAlgorithm())) return false; + if (!getPublicKeyType().equals(other.getPublicKeyType())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -526,118 +574,127 @@ public int hashCode() { return hash; } - public static com.google.cloud.iot.v1.X509CertificateDetails parseFrom( - java.nio.ByteBuffer data) + public static com.google.cloud.iot.v1.X509CertificateDetails parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.iot.v1.X509CertificateDetails parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.iot.v1.X509CertificateDetails parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.iot.v1.X509CertificateDetails parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.iot.v1.X509CertificateDetails parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.iot.v1.X509CertificateDetails parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.iot.v1.X509CertificateDetails 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.iot.v1.X509CertificateDetails parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.iot.v1.X509CertificateDetails parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.iot.v1.X509CertificateDetails parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.iot.v1.X509CertificateDetails parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.iot.v1.X509CertificateDetails parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.iot.v1.X509CertificateDetails parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.cloud.iot.v1.X509CertificateDetails prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Details of an X.509 certificate. For informational purposes only.
    * 
* * Protobuf type {@code google.cloud.iot.v1.X509CertificateDetails} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.iot.v1.X509CertificateDetails) com.google.cloud.iot.v1.X509CertificateDetailsOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.iot.v1.ResourcesProto.internal_static_google_cloud_iot_v1_X509CertificateDetails_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.iot.v1.ResourcesProto + .internal_static_google_cloud_iot_v1_X509CertificateDetails_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.iot.v1.ResourcesProto.internal_static_google_cloud_iot_v1_X509CertificateDetails_fieldAccessorTable + return com.google.cloud.iot.v1.ResourcesProto + .internal_static_google_cloud_iot_v1_X509CertificateDetails_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.iot.v1.X509CertificateDetails.class, com.google.cloud.iot.v1.X509CertificateDetails.Builder.class); + com.google.cloud.iot.v1.X509CertificateDetails.class, + com.google.cloud.iot.v1.X509CertificateDetails.Builder.class); } // Construct using com.google.cloud.iot.v1.X509CertificateDetails.newBuilder() @@ -645,16 +702,15 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -682,9 +738,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.iot.v1.ResourcesProto.internal_static_google_cloud_iot_v1_X509CertificateDetails_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.iot.v1.ResourcesProto + .internal_static_google_cloud_iot_v1_X509CertificateDetails_descriptor; } @java.lang.Override @@ -703,7 +759,8 @@ public com.google.cloud.iot.v1.X509CertificateDetails build() { @java.lang.Override public com.google.cloud.iot.v1.X509CertificateDetails buildPartial() { - com.google.cloud.iot.v1.X509CertificateDetails result = new com.google.cloud.iot.v1.X509CertificateDetails(this); + com.google.cloud.iot.v1.X509CertificateDetails result = + new com.google.cloud.iot.v1.X509CertificateDetails(this); result.issuer_ = issuer_; result.subject_ = subject_; if (startTimeBuilder_ == null) { @@ -726,38 +783,39 @@ public com.google.cloud.iot.v1.X509CertificateDetails buildPartial() { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.iot.v1.X509CertificateDetails) { - return mergeFrom((com.google.cloud.iot.v1.X509CertificateDetails)other); + return mergeFrom((com.google.cloud.iot.v1.X509CertificateDetails) other); } else { super.mergeFrom(other); return this; @@ -819,18 +877,20 @@ public Builder mergeFrom( private java.lang.Object issuer_ = ""; /** + * + * *
      * The entity that signed the certificate.
      * 
* * string issuer = 1; + * * @return The issuer. */ public java.lang.String getIssuer() { java.lang.Object ref = issuer_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); issuer_ = s; return s; @@ -839,20 +899,21 @@ public java.lang.String getIssuer() { } } /** + * + * *
      * The entity that signed the certificate.
      * 
* * string issuer = 1; + * * @return The bytes for issuer. */ - public com.google.protobuf.ByteString - getIssuerBytes() { + public com.google.protobuf.ByteString getIssuerBytes() { java.lang.Object ref = issuer_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); issuer_ = b; return b; } else { @@ -860,54 +921,61 @@ public java.lang.String getIssuer() { } } /** + * + * *
      * The entity that signed the certificate.
      * 
* * string issuer = 1; + * * @param value The issuer to set. * @return This builder for chaining. */ - public Builder setIssuer( - java.lang.String value) { + public Builder setIssuer(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + issuer_ = value; onChanged(); return this; } /** + * + * *
      * The entity that signed the certificate.
      * 
* * string issuer = 1; + * * @return This builder for chaining. */ public Builder clearIssuer() { - + issuer_ = getDefaultInstance().getIssuer(); onChanged(); return this; } /** + * + * *
      * The entity that signed the certificate.
      * 
* * string issuer = 1; + * * @param value The bytes for issuer to set. * @return This builder for chaining. */ - public Builder setIssuerBytes( - com.google.protobuf.ByteString value) { + public Builder setIssuerBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + issuer_ = value; onChanged(); return this; @@ -915,18 +983,20 @@ public Builder setIssuerBytes( private java.lang.Object subject_ = ""; /** + * + * *
      * The entity the certificate and public key belong to.
      * 
* * string subject = 2; + * * @return The subject. */ public java.lang.String getSubject() { java.lang.Object ref = subject_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); subject_ = s; return s; @@ -935,20 +1005,21 @@ public java.lang.String getSubject() { } } /** + * + * *
      * The entity the certificate and public key belong to.
      * 
* * string subject = 2; + * * @return The bytes for subject. */ - public com.google.protobuf.ByteString - getSubjectBytes() { + public com.google.protobuf.ByteString getSubjectBytes() { java.lang.Object ref = subject_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); subject_ = b; return b; } else { @@ -956,54 +1027,61 @@ public java.lang.String getSubject() { } } /** + * + * *
      * The entity the certificate and public key belong to.
      * 
* * string subject = 2; + * * @param value The subject to set. * @return This builder for chaining. */ - public Builder setSubject( - java.lang.String value) { + public Builder setSubject(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + subject_ = value; onChanged(); return this; } /** + * + * *
      * The entity the certificate and public key belong to.
      * 
* * string subject = 2; + * * @return This builder for chaining. */ public Builder clearSubject() { - + subject_ = getDefaultInstance().getSubject(); onChanged(); return this; } /** + * + * *
      * The entity the certificate and public key belong to.
      * 
* * string subject = 2; + * * @param value The bytes for subject to set. * @return This builder for chaining. */ - public Builder setSubjectBytes( - com.google.protobuf.ByteString value) { + public Builder setSubjectBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + subject_ = value; onChanged(); return this; @@ -1011,24 +1089,33 @@ public Builder setSubjectBytes( private com.google.protobuf.Timestamp startTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> startTimeBuilder_; + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + startTimeBuilder_; /** + * + * *
      * The time the certificate becomes valid.
      * 
* * .google.protobuf.Timestamp start_time = 3; + * * @return Whether the startTime field is set. */ public boolean hasStartTime() { return startTimeBuilder_ != null || startTime_ != null; } /** + * + * *
      * The time the certificate becomes valid.
      * 
* * .google.protobuf.Timestamp start_time = 3; + * * @return The startTime. */ public com.google.protobuf.Timestamp getStartTime() { @@ -1039,6 +1126,8 @@ public com.google.protobuf.Timestamp getStartTime() { } } /** + * + * *
      * The time the certificate becomes valid.
      * 
@@ -1059,14 +1148,15 @@ public Builder setStartTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * The time the certificate becomes valid.
      * 
* * .google.protobuf.Timestamp start_time = 3; */ - public Builder setStartTime( - com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setStartTime(com.google.protobuf.Timestamp.Builder builderForValue) { if (startTimeBuilder_ == null) { startTime_ = builderForValue.build(); onChanged(); @@ -1077,6 +1167,8 @@ public Builder setStartTime( return this; } /** + * + * *
      * The time the certificate becomes valid.
      * 
@@ -1087,7 +1179,7 @@ public Builder mergeStartTime(com.google.protobuf.Timestamp value) { if (startTimeBuilder_ == null) { if (startTime_ != null) { startTime_ = - com.google.protobuf.Timestamp.newBuilder(startTime_).mergeFrom(value).buildPartial(); + com.google.protobuf.Timestamp.newBuilder(startTime_).mergeFrom(value).buildPartial(); } else { startTime_ = value; } @@ -1099,6 +1191,8 @@ public Builder mergeStartTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * The time the certificate becomes valid.
      * 
@@ -1117,6 +1211,8 @@ public Builder clearStartTime() { return this; } /** + * + * *
      * The time the certificate becomes valid.
      * 
@@ -1124,11 +1220,13 @@ public Builder clearStartTime() { * .google.protobuf.Timestamp start_time = 3; */ public com.google.protobuf.Timestamp.Builder getStartTimeBuilder() { - + onChanged(); return getStartTimeFieldBuilder().getBuilder(); } /** + * + * *
      * The time the certificate becomes valid.
      * 
@@ -1139,11 +1237,12 @@ public com.google.protobuf.TimestampOrBuilder getStartTimeOrBuilder() { if (startTimeBuilder_ != null) { return startTimeBuilder_.getMessageOrBuilder(); } else { - return startTime_ == null ? - com.google.protobuf.Timestamp.getDefaultInstance() : startTime_; + return startTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : startTime_; } } /** + * + * *
      * The time the certificate becomes valid.
      * 
@@ -1151,14 +1250,17 @@ public com.google.protobuf.TimestampOrBuilder getStartTimeOrBuilder() { * .google.protobuf.Timestamp start_time = 3; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> getStartTimeFieldBuilder() { if (startTimeBuilder_ == null) { - startTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( - getStartTime(), - getParentForChildren(), - isClean()); + startTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getStartTime(), getParentForChildren(), isClean()); startTime_ = null; } return startTimeBuilder_; @@ -1166,34 +1268,47 @@ public com.google.protobuf.TimestampOrBuilder getStartTimeOrBuilder() { private com.google.protobuf.Timestamp expiryTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> expiryTimeBuilder_; + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + expiryTimeBuilder_; /** + * + * *
      * The time the certificate becomes invalid.
      * 
* * .google.protobuf.Timestamp expiry_time = 4; + * * @return Whether the expiryTime field is set. */ public boolean hasExpiryTime() { return expiryTimeBuilder_ != null || expiryTime_ != null; } /** + * + * *
      * The time the certificate becomes invalid.
      * 
* * .google.protobuf.Timestamp expiry_time = 4; + * * @return The expiryTime. */ public com.google.protobuf.Timestamp getExpiryTime() { if (expiryTimeBuilder_ == null) { - return expiryTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : expiryTime_; + return expiryTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : expiryTime_; } else { return expiryTimeBuilder_.getMessage(); } } /** + * + * *
      * The time the certificate becomes invalid.
      * 
@@ -1214,14 +1329,15 @@ public Builder setExpiryTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * The time the certificate becomes invalid.
      * 
* * .google.protobuf.Timestamp expiry_time = 4; */ - public Builder setExpiryTime( - com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setExpiryTime(com.google.protobuf.Timestamp.Builder builderForValue) { if (expiryTimeBuilder_ == null) { expiryTime_ = builderForValue.build(); onChanged(); @@ -1232,6 +1348,8 @@ public Builder setExpiryTime( return this; } /** + * + * *
      * The time the certificate becomes invalid.
      * 
@@ -1242,7 +1360,7 @@ public Builder mergeExpiryTime(com.google.protobuf.Timestamp value) { if (expiryTimeBuilder_ == null) { if (expiryTime_ != null) { expiryTime_ = - com.google.protobuf.Timestamp.newBuilder(expiryTime_).mergeFrom(value).buildPartial(); + com.google.protobuf.Timestamp.newBuilder(expiryTime_).mergeFrom(value).buildPartial(); } else { expiryTime_ = value; } @@ -1254,6 +1372,8 @@ public Builder mergeExpiryTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * The time the certificate becomes invalid.
      * 
@@ -1272,6 +1392,8 @@ public Builder clearExpiryTime() { return this; } /** + * + * *
      * The time the certificate becomes invalid.
      * 
@@ -1279,11 +1401,13 @@ public Builder clearExpiryTime() { * .google.protobuf.Timestamp expiry_time = 4; */ public com.google.protobuf.Timestamp.Builder getExpiryTimeBuilder() { - + onChanged(); return getExpiryTimeFieldBuilder().getBuilder(); } /** + * + * *
      * The time the certificate becomes invalid.
      * 
@@ -1294,11 +1418,14 @@ public com.google.protobuf.TimestampOrBuilder getExpiryTimeOrBuilder() { if (expiryTimeBuilder_ != null) { return expiryTimeBuilder_.getMessageOrBuilder(); } else { - return expiryTime_ == null ? - com.google.protobuf.Timestamp.getDefaultInstance() : expiryTime_; + return expiryTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : expiryTime_; } } /** + * + * *
      * The time the certificate becomes invalid.
      * 
@@ -1306,14 +1433,17 @@ public com.google.protobuf.TimestampOrBuilder getExpiryTimeOrBuilder() { * .google.protobuf.Timestamp expiry_time = 4; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> getExpiryTimeFieldBuilder() { if (expiryTimeBuilder_ == null) { - expiryTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( - getExpiryTime(), - getParentForChildren(), - isClean()); + expiryTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getExpiryTime(), getParentForChildren(), isClean()); expiryTime_ = null; } return expiryTimeBuilder_; @@ -1321,18 +1451,20 @@ public com.google.protobuf.TimestampOrBuilder getExpiryTimeOrBuilder() { private java.lang.Object signatureAlgorithm_ = ""; /** + * + * *
      * The algorithm used to sign the certificate.
      * 
* * string signature_algorithm = 5; + * * @return The signatureAlgorithm. */ public java.lang.String getSignatureAlgorithm() { java.lang.Object ref = signatureAlgorithm_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); signatureAlgorithm_ = s; return s; @@ -1341,20 +1473,21 @@ public java.lang.String getSignatureAlgorithm() { } } /** + * + * *
      * The algorithm used to sign the certificate.
      * 
* * string signature_algorithm = 5; + * * @return The bytes for signatureAlgorithm. */ - public com.google.protobuf.ByteString - getSignatureAlgorithmBytes() { + public com.google.protobuf.ByteString getSignatureAlgorithmBytes() { java.lang.Object ref = signatureAlgorithm_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); signatureAlgorithm_ = b; return b; } else { @@ -1362,54 +1495,61 @@ public java.lang.String getSignatureAlgorithm() { } } /** + * + * *
      * The algorithm used to sign the certificate.
      * 
* * string signature_algorithm = 5; + * * @param value The signatureAlgorithm to set. * @return This builder for chaining. */ - public Builder setSignatureAlgorithm( - java.lang.String value) { + public Builder setSignatureAlgorithm(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + signatureAlgorithm_ = value; onChanged(); return this; } /** + * + * *
      * The algorithm used to sign the certificate.
      * 
* * string signature_algorithm = 5; + * * @return This builder for chaining. */ public Builder clearSignatureAlgorithm() { - + signatureAlgorithm_ = getDefaultInstance().getSignatureAlgorithm(); onChanged(); return this; } /** + * + * *
      * The algorithm used to sign the certificate.
      * 
* * string signature_algorithm = 5; + * * @param value The bytes for signatureAlgorithm to set. * @return This builder for chaining. */ - public Builder setSignatureAlgorithmBytes( - com.google.protobuf.ByteString value) { + public Builder setSignatureAlgorithmBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + signatureAlgorithm_ = value; onChanged(); return this; @@ -1417,18 +1557,20 @@ public Builder setSignatureAlgorithmBytes( private java.lang.Object publicKeyType_ = ""; /** + * + * *
      * The type of public key in the certificate.
      * 
* * string public_key_type = 6; + * * @return The publicKeyType. */ public java.lang.String getPublicKeyType() { java.lang.Object ref = publicKeyType_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); publicKeyType_ = s; return s; @@ -1437,20 +1579,21 @@ public java.lang.String getPublicKeyType() { } } /** + * + * *
      * The type of public key in the certificate.
      * 
* * string public_key_type = 6; + * * @return The bytes for publicKeyType. */ - public com.google.protobuf.ByteString - getPublicKeyTypeBytes() { + public com.google.protobuf.ByteString getPublicKeyTypeBytes() { java.lang.Object ref = publicKeyType_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); publicKeyType_ = b; return b; } else { @@ -1458,61 +1601,68 @@ public java.lang.String getPublicKeyType() { } } /** + * + * *
      * The type of public key in the certificate.
      * 
* * string public_key_type = 6; + * * @param value The publicKeyType to set. * @return This builder for chaining. */ - public Builder setPublicKeyType( - java.lang.String value) { + public Builder setPublicKeyType(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + publicKeyType_ = value; onChanged(); return this; } /** + * + * *
      * The type of public key in the certificate.
      * 
* * string public_key_type = 6; + * * @return This builder for chaining. */ public Builder clearPublicKeyType() { - + publicKeyType_ = getDefaultInstance().getPublicKeyType(); onChanged(); return this; } /** + * + * *
      * The type of public key in the certificate.
      * 
* * string public_key_type = 6; + * * @param value The bytes for publicKeyType to set. * @return This builder for chaining. */ - public Builder setPublicKeyTypeBytes( - com.google.protobuf.ByteString value) { + public Builder setPublicKeyTypeBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + publicKeyType_ = value; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1522,12 +1672,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.iot.v1.X509CertificateDetails) } // @@protoc_insertion_point(class_scope:google.cloud.iot.v1.X509CertificateDetails) private static final com.google.cloud.iot.v1.X509CertificateDetails DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.iot.v1.X509CertificateDetails(); } @@ -1536,16 +1686,16 @@ public static com.google.cloud.iot.v1.X509CertificateDetails getDefaultInstance( return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public X509CertificateDetails parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new X509CertificateDetails(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public X509CertificateDetails parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new X509CertificateDetails(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1560,6 +1710,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.iot.v1.X509CertificateDetails getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1/proto-google-cloud-iot-v1/src/main/java/com/google/cloud/iot/v1/X509CertificateDetailsOrBuilder.java b/proto-google-cloud-iot-v1/src/main/java/com/google/cloud/iot/v1/X509CertificateDetailsOrBuilder.java similarity index 74% rename from owl-bot-staging/v1/proto-google-cloud-iot-v1/src/main/java/com/google/cloud/iot/v1/X509CertificateDetailsOrBuilder.java rename to proto-google-cloud-iot-v1/src/main/java/com/google/cloud/iot/v1/X509CertificateDetailsOrBuilder.java index c4367f38..743fff38 100644 --- a/owl-bot-staging/v1/proto-google-cloud-iot-v1/src/main/java/com/google/cloud/iot/v1/X509CertificateDetailsOrBuilder.java +++ b/proto-google-cloud-iot-v1/src/main/java/com/google/cloud/iot/v1/X509CertificateDetailsOrBuilder.java @@ -1,71 +1,105 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/iot/v1/resources.proto package com.google.cloud.iot.v1; -public interface X509CertificateDetailsOrBuilder extends +public interface X509CertificateDetailsOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.iot.v1.X509CertificateDetails) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * The entity that signed the certificate.
    * 
* * string issuer = 1; + * * @return The issuer. */ java.lang.String getIssuer(); /** + * + * *
    * The entity that signed the certificate.
    * 
* * string issuer = 1; + * * @return The bytes for issuer. */ - com.google.protobuf.ByteString - getIssuerBytes(); + com.google.protobuf.ByteString getIssuerBytes(); /** + * + * *
    * The entity the certificate and public key belong to.
    * 
* * string subject = 2; + * * @return The subject. */ java.lang.String getSubject(); /** + * + * *
    * The entity the certificate and public key belong to.
    * 
* * string subject = 2; + * * @return The bytes for subject. */ - com.google.protobuf.ByteString - getSubjectBytes(); + com.google.protobuf.ByteString getSubjectBytes(); /** + * + * *
    * The time the certificate becomes valid.
    * 
* * .google.protobuf.Timestamp start_time = 3; + * * @return Whether the startTime field is set. */ boolean hasStartTime(); /** + * + * *
    * The time the certificate becomes valid.
    * 
* * .google.protobuf.Timestamp start_time = 3; + * * @return The startTime. */ com.google.protobuf.Timestamp getStartTime(); /** + * + * *
    * The time the certificate becomes valid.
    * 
@@ -75,24 +109,32 @@ public interface X509CertificateDetailsOrBuilder extends com.google.protobuf.TimestampOrBuilder getStartTimeOrBuilder(); /** + * + * *
    * The time the certificate becomes invalid.
    * 
* * .google.protobuf.Timestamp expiry_time = 4; + * * @return Whether the expiryTime field is set. */ boolean hasExpiryTime(); /** + * + * *
    * The time the certificate becomes invalid.
    * 
* * .google.protobuf.Timestamp expiry_time = 4; + * * @return The expiryTime. */ com.google.protobuf.Timestamp getExpiryTime(); /** + * + * *
    * The time the certificate becomes invalid.
    * 
@@ -102,42 +144,52 @@ public interface X509CertificateDetailsOrBuilder extends com.google.protobuf.TimestampOrBuilder getExpiryTimeOrBuilder(); /** + * + * *
    * The algorithm used to sign the certificate.
    * 
* * string signature_algorithm = 5; + * * @return The signatureAlgorithm. */ java.lang.String getSignatureAlgorithm(); /** + * + * *
    * The algorithm used to sign the certificate.
    * 
* * string signature_algorithm = 5; + * * @return The bytes for signatureAlgorithm. */ - com.google.protobuf.ByteString - getSignatureAlgorithmBytes(); + com.google.protobuf.ByteString getSignatureAlgorithmBytes(); /** + * + * *
    * The type of public key in the certificate.
    * 
* * string public_key_type = 6; + * * @return The publicKeyType. */ java.lang.String getPublicKeyType(); /** + * + * *
    * The type of public key in the certificate.
    * 
* * string public_key_type = 6; + * * @return The bytes for publicKeyType. */ - com.google.protobuf.ByteString - getPublicKeyTypeBytes(); + com.google.protobuf.ByteString getPublicKeyTypeBytes(); } diff --git a/owl-bot-staging/v1/proto-google-cloud-iot-v1/src/main/proto/google/cloud/iot/v1/device_manager.proto b/proto-google-cloud-iot-v1/src/main/proto/google/cloud/iot/v1/device_manager.proto similarity index 100% rename from owl-bot-staging/v1/proto-google-cloud-iot-v1/src/main/proto/google/cloud/iot/v1/device_manager.proto rename to proto-google-cloud-iot-v1/src/main/proto/google/cloud/iot/v1/device_manager.proto diff --git a/owl-bot-staging/v1/proto-google-cloud-iot-v1/src/main/proto/google/cloud/iot/v1/resources.proto b/proto-google-cloud-iot-v1/src/main/proto/google/cloud/iot/v1/resources.proto similarity index 100% rename from owl-bot-staging/v1/proto-google-cloud-iot-v1/src/main/proto/google/cloud/iot/v1/resources.proto rename to proto-google-cloud-iot-v1/src/main/proto/google/cloud/iot/v1/resources.proto diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/iot/v1/devicemanagerclient/binddevicetogateway/AsyncBindDeviceToGateway.java b/samples/snippets/generated/com/google/cloud/iot/v1/devicemanagerclient/binddevicetogateway/AsyncBindDeviceToGateway.java similarity index 100% rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/iot/v1/devicemanagerclient/binddevicetogateway/AsyncBindDeviceToGateway.java rename to samples/snippets/generated/com/google/cloud/iot/v1/devicemanagerclient/binddevicetogateway/AsyncBindDeviceToGateway.java diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/iot/v1/devicemanagerclient/binddevicetogateway/SyncBindDeviceToGateway.java b/samples/snippets/generated/com/google/cloud/iot/v1/devicemanagerclient/binddevicetogateway/SyncBindDeviceToGateway.java similarity index 100% rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/iot/v1/devicemanagerclient/binddevicetogateway/SyncBindDeviceToGateway.java rename to samples/snippets/generated/com/google/cloud/iot/v1/devicemanagerclient/binddevicetogateway/SyncBindDeviceToGateway.java diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/iot/v1/devicemanagerclient/binddevicetogateway/SyncBindDeviceToGatewayRegistrynameStringString.java b/samples/snippets/generated/com/google/cloud/iot/v1/devicemanagerclient/binddevicetogateway/SyncBindDeviceToGatewayRegistrynameStringString.java similarity index 100% rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/iot/v1/devicemanagerclient/binddevicetogateway/SyncBindDeviceToGatewayRegistrynameStringString.java rename to samples/snippets/generated/com/google/cloud/iot/v1/devicemanagerclient/binddevicetogateway/SyncBindDeviceToGatewayRegistrynameStringString.java diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/iot/v1/devicemanagerclient/binddevicetogateway/SyncBindDeviceToGatewayStringStringString.java b/samples/snippets/generated/com/google/cloud/iot/v1/devicemanagerclient/binddevicetogateway/SyncBindDeviceToGatewayStringStringString.java similarity index 100% rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/iot/v1/devicemanagerclient/binddevicetogateway/SyncBindDeviceToGatewayStringStringString.java rename to samples/snippets/generated/com/google/cloud/iot/v1/devicemanagerclient/binddevicetogateway/SyncBindDeviceToGatewayStringStringString.java diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/iot/v1/devicemanagerclient/create/SyncCreateSetCredentialsProvider.java b/samples/snippets/generated/com/google/cloud/iot/v1/devicemanagerclient/create/SyncCreateSetCredentialsProvider.java similarity index 100% rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/iot/v1/devicemanagerclient/create/SyncCreateSetCredentialsProvider.java rename to samples/snippets/generated/com/google/cloud/iot/v1/devicemanagerclient/create/SyncCreateSetCredentialsProvider.java diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/iot/v1/devicemanagerclient/create/SyncCreateSetCredentialsProvider1.java b/samples/snippets/generated/com/google/cloud/iot/v1/devicemanagerclient/create/SyncCreateSetCredentialsProvider1.java similarity index 100% rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/iot/v1/devicemanagerclient/create/SyncCreateSetCredentialsProvider1.java rename to samples/snippets/generated/com/google/cloud/iot/v1/devicemanagerclient/create/SyncCreateSetCredentialsProvider1.java diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/iot/v1/devicemanagerclient/create/SyncCreateSetEndpoint.java b/samples/snippets/generated/com/google/cloud/iot/v1/devicemanagerclient/create/SyncCreateSetEndpoint.java similarity index 100% rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/iot/v1/devicemanagerclient/create/SyncCreateSetEndpoint.java rename to samples/snippets/generated/com/google/cloud/iot/v1/devicemanagerclient/create/SyncCreateSetEndpoint.java diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/iot/v1/devicemanagerclient/createdevice/AsyncCreateDevice.java b/samples/snippets/generated/com/google/cloud/iot/v1/devicemanagerclient/createdevice/AsyncCreateDevice.java similarity index 100% rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/iot/v1/devicemanagerclient/createdevice/AsyncCreateDevice.java rename to samples/snippets/generated/com/google/cloud/iot/v1/devicemanagerclient/createdevice/AsyncCreateDevice.java diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/iot/v1/devicemanagerclient/createdevice/SyncCreateDevice.java b/samples/snippets/generated/com/google/cloud/iot/v1/devicemanagerclient/createdevice/SyncCreateDevice.java similarity index 100% rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/iot/v1/devicemanagerclient/createdevice/SyncCreateDevice.java rename to samples/snippets/generated/com/google/cloud/iot/v1/devicemanagerclient/createdevice/SyncCreateDevice.java diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/iot/v1/devicemanagerclient/createdevice/SyncCreateDeviceRegistrynameDevice.java b/samples/snippets/generated/com/google/cloud/iot/v1/devicemanagerclient/createdevice/SyncCreateDeviceRegistrynameDevice.java similarity index 100% rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/iot/v1/devicemanagerclient/createdevice/SyncCreateDeviceRegistrynameDevice.java rename to samples/snippets/generated/com/google/cloud/iot/v1/devicemanagerclient/createdevice/SyncCreateDeviceRegistrynameDevice.java diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/iot/v1/devicemanagerclient/createdevice/SyncCreateDeviceStringDevice.java b/samples/snippets/generated/com/google/cloud/iot/v1/devicemanagerclient/createdevice/SyncCreateDeviceStringDevice.java similarity index 100% rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/iot/v1/devicemanagerclient/createdevice/SyncCreateDeviceStringDevice.java rename to samples/snippets/generated/com/google/cloud/iot/v1/devicemanagerclient/createdevice/SyncCreateDeviceStringDevice.java diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/iot/v1/devicemanagerclient/createdeviceregistry/AsyncCreateDeviceRegistry.java b/samples/snippets/generated/com/google/cloud/iot/v1/devicemanagerclient/createdeviceregistry/AsyncCreateDeviceRegistry.java similarity index 100% rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/iot/v1/devicemanagerclient/createdeviceregistry/AsyncCreateDeviceRegistry.java rename to samples/snippets/generated/com/google/cloud/iot/v1/devicemanagerclient/createdeviceregistry/AsyncCreateDeviceRegistry.java diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/iot/v1/devicemanagerclient/createdeviceregistry/SyncCreateDeviceRegistry.java b/samples/snippets/generated/com/google/cloud/iot/v1/devicemanagerclient/createdeviceregistry/SyncCreateDeviceRegistry.java similarity index 100% rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/iot/v1/devicemanagerclient/createdeviceregistry/SyncCreateDeviceRegistry.java rename to samples/snippets/generated/com/google/cloud/iot/v1/devicemanagerclient/createdeviceregistry/SyncCreateDeviceRegistry.java diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/iot/v1/devicemanagerclient/createdeviceregistry/SyncCreateDeviceRegistryLocationnameDeviceregistry.java b/samples/snippets/generated/com/google/cloud/iot/v1/devicemanagerclient/createdeviceregistry/SyncCreateDeviceRegistryLocationnameDeviceregistry.java similarity index 100% rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/iot/v1/devicemanagerclient/createdeviceregistry/SyncCreateDeviceRegistryLocationnameDeviceregistry.java rename to samples/snippets/generated/com/google/cloud/iot/v1/devicemanagerclient/createdeviceregistry/SyncCreateDeviceRegistryLocationnameDeviceregistry.java diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/iot/v1/devicemanagerclient/createdeviceregistry/SyncCreateDeviceRegistryStringDeviceregistry.java b/samples/snippets/generated/com/google/cloud/iot/v1/devicemanagerclient/createdeviceregistry/SyncCreateDeviceRegistryStringDeviceregistry.java similarity index 100% rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/iot/v1/devicemanagerclient/createdeviceregistry/SyncCreateDeviceRegistryStringDeviceregistry.java rename to samples/snippets/generated/com/google/cloud/iot/v1/devicemanagerclient/createdeviceregistry/SyncCreateDeviceRegistryStringDeviceregistry.java diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/iot/v1/devicemanagerclient/deletedevice/AsyncDeleteDevice.java b/samples/snippets/generated/com/google/cloud/iot/v1/devicemanagerclient/deletedevice/AsyncDeleteDevice.java similarity index 100% rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/iot/v1/devicemanagerclient/deletedevice/AsyncDeleteDevice.java rename to samples/snippets/generated/com/google/cloud/iot/v1/devicemanagerclient/deletedevice/AsyncDeleteDevice.java diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/iot/v1/devicemanagerclient/deletedevice/SyncDeleteDevice.java b/samples/snippets/generated/com/google/cloud/iot/v1/devicemanagerclient/deletedevice/SyncDeleteDevice.java similarity index 97% rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/iot/v1/devicemanagerclient/deletedevice/SyncDeleteDevice.java rename to samples/snippets/generated/com/google/cloud/iot/v1/devicemanagerclient/deletedevice/SyncDeleteDevice.java index 197e737a..365a3577 100644 --- a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/iot/v1/devicemanagerclient/deletedevice/SyncDeleteDevice.java +++ b/samples/snippets/generated/com/google/cloud/iot/v1/devicemanagerclient/deletedevice/SyncDeleteDevice.java @@ -20,7 +20,6 @@ import com.google.cloud.iot.v1.DeleteDeviceRequest; import com.google.cloud.iot.v1.DeviceManagerClient; import com.google.cloud.iot.v1.DeviceName; -import com.google.protobuf.Empty; public class SyncDeleteDevice { diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/iot/v1/devicemanagerclient/deletedevice/SyncDeleteDeviceDevicename.java b/samples/snippets/generated/com/google/cloud/iot/v1/devicemanagerclient/deletedevice/SyncDeleteDeviceDevicename.java similarity index 97% rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/iot/v1/devicemanagerclient/deletedevice/SyncDeleteDeviceDevicename.java rename to samples/snippets/generated/com/google/cloud/iot/v1/devicemanagerclient/deletedevice/SyncDeleteDeviceDevicename.java index eecd3801..d7ba8d5e 100644 --- a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/iot/v1/devicemanagerclient/deletedevice/SyncDeleteDeviceDevicename.java +++ b/samples/snippets/generated/com/google/cloud/iot/v1/devicemanagerclient/deletedevice/SyncDeleteDeviceDevicename.java @@ -19,7 +19,6 @@ // [START iot_v1_generated_devicemanagerclient_deletedevice_devicename_sync] import com.google.cloud.iot.v1.DeviceManagerClient; import com.google.cloud.iot.v1.DeviceName; -import com.google.protobuf.Empty; public class SyncDeleteDeviceDevicename { diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/iot/v1/devicemanagerclient/deletedevice/SyncDeleteDeviceString.java b/samples/snippets/generated/com/google/cloud/iot/v1/devicemanagerclient/deletedevice/SyncDeleteDeviceString.java similarity index 97% rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/iot/v1/devicemanagerclient/deletedevice/SyncDeleteDeviceString.java rename to samples/snippets/generated/com/google/cloud/iot/v1/devicemanagerclient/deletedevice/SyncDeleteDeviceString.java index ac3f82c2..72ffc713 100644 --- a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/iot/v1/devicemanagerclient/deletedevice/SyncDeleteDeviceString.java +++ b/samples/snippets/generated/com/google/cloud/iot/v1/devicemanagerclient/deletedevice/SyncDeleteDeviceString.java @@ -19,7 +19,6 @@ // [START iot_v1_generated_devicemanagerclient_deletedevice_string_sync] import com.google.cloud.iot.v1.DeviceManagerClient; import com.google.cloud.iot.v1.DeviceName; -import com.google.protobuf.Empty; public class SyncDeleteDeviceString { diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/iot/v1/devicemanagerclient/deletedeviceregistry/AsyncDeleteDeviceRegistry.java b/samples/snippets/generated/com/google/cloud/iot/v1/devicemanagerclient/deletedeviceregistry/AsyncDeleteDeviceRegistry.java similarity index 100% rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/iot/v1/devicemanagerclient/deletedeviceregistry/AsyncDeleteDeviceRegistry.java rename to samples/snippets/generated/com/google/cloud/iot/v1/devicemanagerclient/deletedeviceregistry/AsyncDeleteDeviceRegistry.java diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/iot/v1/devicemanagerclient/deletedeviceregistry/SyncDeleteDeviceRegistry.java b/samples/snippets/generated/com/google/cloud/iot/v1/devicemanagerclient/deletedeviceregistry/SyncDeleteDeviceRegistry.java similarity index 97% rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/iot/v1/devicemanagerclient/deletedeviceregistry/SyncDeleteDeviceRegistry.java rename to samples/snippets/generated/com/google/cloud/iot/v1/devicemanagerclient/deletedeviceregistry/SyncDeleteDeviceRegistry.java index 5f1de94a..ea71070f 100644 --- a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/iot/v1/devicemanagerclient/deletedeviceregistry/SyncDeleteDeviceRegistry.java +++ b/samples/snippets/generated/com/google/cloud/iot/v1/devicemanagerclient/deletedeviceregistry/SyncDeleteDeviceRegistry.java @@ -20,7 +20,6 @@ import com.google.cloud.iot.v1.DeleteDeviceRegistryRequest; import com.google.cloud.iot.v1.DeviceManagerClient; import com.google.cloud.iot.v1.RegistryName; -import com.google.protobuf.Empty; public class SyncDeleteDeviceRegistry { diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/iot/v1/devicemanagerclient/deletedeviceregistry/SyncDeleteDeviceRegistryRegistryname.java b/samples/snippets/generated/com/google/cloud/iot/v1/devicemanagerclient/deletedeviceregistry/SyncDeleteDeviceRegistryRegistryname.java similarity index 97% rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/iot/v1/devicemanagerclient/deletedeviceregistry/SyncDeleteDeviceRegistryRegistryname.java rename to samples/snippets/generated/com/google/cloud/iot/v1/devicemanagerclient/deletedeviceregistry/SyncDeleteDeviceRegistryRegistryname.java index de0a5a14..fc75e1da 100644 --- a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/iot/v1/devicemanagerclient/deletedeviceregistry/SyncDeleteDeviceRegistryRegistryname.java +++ b/samples/snippets/generated/com/google/cloud/iot/v1/devicemanagerclient/deletedeviceregistry/SyncDeleteDeviceRegistryRegistryname.java @@ -19,7 +19,6 @@ // [START iot_v1_generated_devicemanagerclient_deletedeviceregistry_registryname_sync] import com.google.cloud.iot.v1.DeviceManagerClient; import com.google.cloud.iot.v1.RegistryName; -import com.google.protobuf.Empty; public class SyncDeleteDeviceRegistryRegistryname { diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/iot/v1/devicemanagerclient/deletedeviceregistry/SyncDeleteDeviceRegistryString.java b/samples/snippets/generated/com/google/cloud/iot/v1/devicemanagerclient/deletedeviceregistry/SyncDeleteDeviceRegistryString.java similarity index 97% rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/iot/v1/devicemanagerclient/deletedeviceregistry/SyncDeleteDeviceRegistryString.java rename to samples/snippets/generated/com/google/cloud/iot/v1/devicemanagerclient/deletedeviceregistry/SyncDeleteDeviceRegistryString.java index fa48c8a0..a11b4c2a 100644 --- a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/iot/v1/devicemanagerclient/deletedeviceregistry/SyncDeleteDeviceRegistryString.java +++ b/samples/snippets/generated/com/google/cloud/iot/v1/devicemanagerclient/deletedeviceregistry/SyncDeleteDeviceRegistryString.java @@ -19,7 +19,6 @@ // [START iot_v1_generated_devicemanagerclient_deletedeviceregistry_string_sync] import com.google.cloud.iot.v1.DeviceManagerClient; import com.google.cloud.iot.v1.RegistryName; -import com.google.protobuf.Empty; public class SyncDeleteDeviceRegistryString { diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/iot/v1/devicemanagerclient/getdevice/AsyncGetDevice.java b/samples/snippets/generated/com/google/cloud/iot/v1/devicemanagerclient/getdevice/AsyncGetDevice.java similarity index 100% rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/iot/v1/devicemanagerclient/getdevice/AsyncGetDevice.java rename to samples/snippets/generated/com/google/cloud/iot/v1/devicemanagerclient/getdevice/AsyncGetDevice.java diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/iot/v1/devicemanagerclient/getdevice/SyncGetDevice.java b/samples/snippets/generated/com/google/cloud/iot/v1/devicemanagerclient/getdevice/SyncGetDevice.java similarity index 100% rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/iot/v1/devicemanagerclient/getdevice/SyncGetDevice.java rename to samples/snippets/generated/com/google/cloud/iot/v1/devicemanagerclient/getdevice/SyncGetDevice.java diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/iot/v1/devicemanagerclient/getdevice/SyncGetDeviceDevicename.java b/samples/snippets/generated/com/google/cloud/iot/v1/devicemanagerclient/getdevice/SyncGetDeviceDevicename.java similarity index 100% rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/iot/v1/devicemanagerclient/getdevice/SyncGetDeviceDevicename.java rename to samples/snippets/generated/com/google/cloud/iot/v1/devicemanagerclient/getdevice/SyncGetDeviceDevicename.java diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/iot/v1/devicemanagerclient/getdevice/SyncGetDeviceString.java b/samples/snippets/generated/com/google/cloud/iot/v1/devicemanagerclient/getdevice/SyncGetDeviceString.java similarity index 100% rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/iot/v1/devicemanagerclient/getdevice/SyncGetDeviceString.java rename to samples/snippets/generated/com/google/cloud/iot/v1/devicemanagerclient/getdevice/SyncGetDeviceString.java diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/iot/v1/devicemanagerclient/getdeviceregistry/AsyncGetDeviceRegistry.java b/samples/snippets/generated/com/google/cloud/iot/v1/devicemanagerclient/getdeviceregistry/AsyncGetDeviceRegistry.java similarity index 100% rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/iot/v1/devicemanagerclient/getdeviceregistry/AsyncGetDeviceRegistry.java rename to samples/snippets/generated/com/google/cloud/iot/v1/devicemanagerclient/getdeviceregistry/AsyncGetDeviceRegistry.java diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/iot/v1/devicemanagerclient/getdeviceregistry/SyncGetDeviceRegistry.java b/samples/snippets/generated/com/google/cloud/iot/v1/devicemanagerclient/getdeviceregistry/SyncGetDeviceRegistry.java similarity index 100% rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/iot/v1/devicemanagerclient/getdeviceregistry/SyncGetDeviceRegistry.java rename to samples/snippets/generated/com/google/cloud/iot/v1/devicemanagerclient/getdeviceregistry/SyncGetDeviceRegistry.java diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/iot/v1/devicemanagerclient/getdeviceregistry/SyncGetDeviceRegistryRegistryname.java b/samples/snippets/generated/com/google/cloud/iot/v1/devicemanagerclient/getdeviceregistry/SyncGetDeviceRegistryRegistryname.java similarity index 100% rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/iot/v1/devicemanagerclient/getdeviceregistry/SyncGetDeviceRegistryRegistryname.java rename to samples/snippets/generated/com/google/cloud/iot/v1/devicemanagerclient/getdeviceregistry/SyncGetDeviceRegistryRegistryname.java diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/iot/v1/devicemanagerclient/getdeviceregistry/SyncGetDeviceRegistryString.java b/samples/snippets/generated/com/google/cloud/iot/v1/devicemanagerclient/getdeviceregistry/SyncGetDeviceRegistryString.java similarity index 100% rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/iot/v1/devicemanagerclient/getdeviceregistry/SyncGetDeviceRegistryString.java rename to samples/snippets/generated/com/google/cloud/iot/v1/devicemanagerclient/getdeviceregistry/SyncGetDeviceRegistryString.java diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/iot/v1/devicemanagerclient/getiampolicy/AsyncGetIamPolicy.java b/samples/snippets/generated/com/google/cloud/iot/v1/devicemanagerclient/getiampolicy/AsyncGetIamPolicy.java similarity index 100% rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/iot/v1/devicemanagerclient/getiampolicy/AsyncGetIamPolicy.java rename to samples/snippets/generated/com/google/cloud/iot/v1/devicemanagerclient/getiampolicy/AsyncGetIamPolicy.java diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/iot/v1/devicemanagerclient/getiampolicy/SyncGetIamPolicy.java b/samples/snippets/generated/com/google/cloud/iot/v1/devicemanagerclient/getiampolicy/SyncGetIamPolicy.java similarity index 100% rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/iot/v1/devicemanagerclient/getiampolicy/SyncGetIamPolicy.java rename to samples/snippets/generated/com/google/cloud/iot/v1/devicemanagerclient/getiampolicy/SyncGetIamPolicy.java diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/iot/v1/devicemanagerclient/getiampolicy/SyncGetIamPolicyResourcename.java b/samples/snippets/generated/com/google/cloud/iot/v1/devicemanagerclient/getiampolicy/SyncGetIamPolicyResourcename.java similarity index 100% rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/iot/v1/devicemanagerclient/getiampolicy/SyncGetIamPolicyResourcename.java rename to samples/snippets/generated/com/google/cloud/iot/v1/devicemanagerclient/getiampolicy/SyncGetIamPolicyResourcename.java diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/iot/v1/devicemanagerclient/getiampolicy/SyncGetIamPolicyString.java b/samples/snippets/generated/com/google/cloud/iot/v1/devicemanagerclient/getiampolicy/SyncGetIamPolicyString.java similarity index 100% rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/iot/v1/devicemanagerclient/getiampolicy/SyncGetIamPolicyString.java rename to samples/snippets/generated/com/google/cloud/iot/v1/devicemanagerclient/getiampolicy/SyncGetIamPolicyString.java diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/iot/v1/devicemanagerclient/listdeviceconfigversions/AsyncListDeviceConfigVersions.java b/samples/snippets/generated/com/google/cloud/iot/v1/devicemanagerclient/listdeviceconfigversions/AsyncListDeviceConfigVersions.java similarity index 100% rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/iot/v1/devicemanagerclient/listdeviceconfigversions/AsyncListDeviceConfigVersions.java rename to samples/snippets/generated/com/google/cloud/iot/v1/devicemanagerclient/listdeviceconfigversions/AsyncListDeviceConfigVersions.java diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/iot/v1/devicemanagerclient/listdeviceconfigversions/SyncListDeviceConfigVersions.java b/samples/snippets/generated/com/google/cloud/iot/v1/devicemanagerclient/listdeviceconfigversions/SyncListDeviceConfigVersions.java similarity index 100% rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/iot/v1/devicemanagerclient/listdeviceconfigversions/SyncListDeviceConfigVersions.java rename to samples/snippets/generated/com/google/cloud/iot/v1/devicemanagerclient/listdeviceconfigversions/SyncListDeviceConfigVersions.java diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/iot/v1/devicemanagerclient/listdeviceconfigversions/SyncListDeviceConfigVersionsDevicename.java b/samples/snippets/generated/com/google/cloud/iot/v1/devicemanagerclient/listdeviceconfigversions/SyncListDeviceConfigVersionsDevicename.java similarity index 100% rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/iot/v1/devicemanagerclient/listdeviceconfigversions/SyncListDeviceConfigVersionsDevicename.java rename to samples/snippets/generated/com/google/cloud/iot/v1/devicemanagerclient/listdeviceconfigversions/SyncListDeviceConfigVersionsDevicename.java diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/iot/v1/devicemanagerclient/listdeviceconfigversions/SyncListDeviceConfigVersionsString.java b/samples/snippets/generated/com/google/cloud/iot/v1/devicemanagerclient/listdeviceconfigversions/SyncListDeviceConfigVersionsString.java similarity index 100% rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/iot/v1/devicemanagerclient/listdeviceconfigversions/SyncListDeviceConfigVersionsString.java rename to samples/snippets/generated/com/google/cloud/iot/v1/devicemanagerclient/listdeviceconfigversions/SyncListDeviceConfigVersionsString.java diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/iot/v1/devicemanagerclient/listdeviceregistries/AsyncListDeviceRegistries.java b/samples/snippets/generated/com/google/cloud/iot/v1/devicemanagerclient/listdeviceregistries/AsyncListDeviceRegistries.java similarity index 100% rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/iot/v1/devicemanagerclient/listdeviceregistries/AsyncListDeviceRegistries.java rename to samples/snippets/generated/com/google/cloud/iot/v1/devicemanagerclient/listdeviceregistries/AsyncListDeviceRegistries.java diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/iot/v1/devicemanagerclient/listdeviceregistries/AsyncListDeviceRegistriesPaged.java b/samples/snippets/generated/com/google/cloud/iot/v1/devicemanagerclient/listdeviceregistries/AsyncListDeviceRegistriesPaged.java similarity index 100% rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/iot/v1/devicemanagerclient/listdeviceregistries/AsyncListDeviceRegistriesPaged.java rename to samples/snippets/generated/com/google/cloud/iot/v1/devicemanagerclient/listdeviceregistries/AsyncListDeviceRegistriesPaged.java diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/iot/v1/devicemanagerclient/listdeviceregistries/SyncListDeviceRegistries.java b/samples/snippets/generated/com/google/cloud/iot/v1/devicemanagerclient/listdeviceregistries/SyncListDeviceRegistries.java similarity index 100% rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/iot/v1/devicemanagerclient/listdeviceregistries/SyncListDeviceRegistries.java rename to samples/snippets/generated/com/google/cloud/iot/v1/devicemanagerclient/listdeviceregistries/SyncListDeviceRegistries.java diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/iot/v1/devicemanagerclient/listdeviceregistries/SyncListDeviceRegistriesLocationname.java b/samples/snippets/generated/com/google/cloud/iot/v1/devicemanagerclient/listdeviceregistries/SyncListDeviceRegistriesLocationname.java similarity index 100% rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/iot/v1/devicemanagerclient/listdeviceregistries/SyncListDeviceRegistriesLocationname.java rename to samples/snippets/generated/com/google/cloud/iot/v1/devicemanagerclient/listdeviceregistries/SyncListDeviceRegistriesLocationname.java diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/iot/v1/devicemanagerclient/listdeviceregistries/SyncListDeviceRegistriesString.java b/samples/snippets/generated/com/google/cloud/iot/v1/devicemanagerclient/listdeviceregistries/SyncListDeviceRegistriesString.java similarity index 100% rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/iot/v1/devicemanagerclient/listdeviceregistries/SyncListDeviceRegistriesString.java rename to samples/snippets/generated/com/google/cloud/iot/v1/devicemanagerclient/listdeviceregistries/SyncListDeviceRegistriesString.java diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/iot/v1/devicemanagerclient/listdevices/AsyncListDevices.java b/samples/snippets/generated/com/google/cloud/iot/v1/devicemanagerclient/listdevices/AsyncListDevices.java similarity index 100% rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/iot/v1/devicemanagerclient/listdevices/AsyncListDevices.java rename to samples/snippets/generated/com/google/cloud/iot/v1/devicemanagerclient/listdevices/AsyncListDevices.java diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/iot/v1/devicemanagerclient/listdevices/AsyncListDevicesPaged.java b/samples/snippets/generated/com/google/cloud/iot/v1/devicemanagerclient/listdevices/AsyncListDevicesPaged.java similarity index 100% rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/iot/v1/devicemanagerclient/listdevices/AsyncListDevicesPaged.java rename to samples/snippets/generated/com/google/cloud/iot/v1/devicemanagerclient/listdevices/AsyncListDevicesPaged.java diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/iot/v1/devicemanagerclient/listdevices/SyncListDevices.java b/samples/snippets/generated/com/google/cloud/iot/v1/devicemanagerclient/listdevices/SyncListDevices.java similarity index 100% rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/iot/v1/devicemanagerclient/listdevices/SyncListDevices.java rename to samples/snippets/generated/com/google/cloud/iot/v1/devicemanagerclient/listdevices/SyncListDevices.java diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/iot/v1/devicemanagerclient/listdevices/SyncListDevicesRegistryname.java b/samples/snippets/generated/com/google/cloud/iot/v1/devicemanagerclient/listdevices/SyncListDevicesRegistryname.java similarity index 100% rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/iot/v1/devicemanagerclient/listdevices/SyncListDevicesRegistryname.java rename to samples/snippets/generated/com/google/cloud/iot/v1/devicemanagerclient/listdevices/SyncListDevicesRegistryname.java diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/iot/v1/devicemanagerclient/listdevices/SyncListDevicesString.java b/samples/snippets/generated/com/google/cloud/iot/v1/devicemanagerclient/listdevices/SyncListDevicesString.java similarity index 100% rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/iot/v1/devicemanagerclient/listdevices/SyncListDevicesString.java rename to samples/snippets/generated/com/google/cloud/iot/v1/devicemanagerclient/listdevices/SyncListDevicesString.java diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/iot/v1/devicemanagerclient/listdevicestates/AsyncListDeviceStates.java b/samples/snippets/generated/com/google/cloud/iot/v1/devicemanagerclient/listdevicestates/AsyncListDeviceStates.java similarity index 100% rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/iot/v1/devicemanagerclient/listdevicestates/AsyncListDeviceStates.java rename to samples/snippets/generated/com/google/cloud/iot/v1/devicemanagerclient/listdevicestates/AsyncListDeviceStates.java diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/iot/v1/devicemanagerclient/listdevicestates/SyncListDeviceStates.java b/samples/snippets/generated/com/google/cloud/iot/v1/devicemanagerclient/listdevicestates/SyncListDeviceStates.java similarity index 100% rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/iot/v1/devicemanagerclient/listdevicestates/SyncListDeviceStates.java rename to samples/snippets/generated/com/google/cloud/iot/v1/devicemanagerclient/listdevicestates/SyncListDeviceStates.java diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/iot/v1/devicemanagerclient/listdevicestates/SyncListDeviceStatesDevicename.java b/samples/snippets/generated/com/google/cloud/iot/v1/devicemanagerclient/listdevicestates/SyncListDeviceStatesDevicename.java similarity index 100% rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/iot/v1/devicemanagerclient/listdevicestates/SyncListDeviceStatesDevicename.java rename to samples/snippets/generated/com/google/cloud/iot/v1/devicemanagerclient/listdevicestates/SyncListDeviceStatesDevicename.java diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/iot/v1/devicemanagerclient/listdevicestates/SyncListDeviceStatesString.java b/samples/snippets/generated/com/google/cloud/iot/v1/devicemanagerclient/listdevicestates/SyncListDeviceStatesString.java similarity index 100% rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/iot/v1/devicemanagerclient/listdevicestates/SyncListDeviceStatesString.java rename to samples/snippets/generated/com/google/cloud/iot/v1/devicemanagerclient/listdevicestates/SyncListDeviceStatesString.java diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/iot/v1/devicemanagerclient/modifycloudtodeviceconfig/AsyncModifyCloudToDeviceConfig.java b/samples/snippets/generated/com/google/cloud/iot/v1/devicemanagerclient/modifycloudtodeviceconfig/AsyncModifyCloudToDeviceConfig.java similarity index 100% rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/iot/v1/devicemanagerclient/modifycloudtodeviceconfig/AsyncModifyCloudToDeviceConfig.java rename to samples/snippets/generated/com/google/cloud/iot/v1/devicemanagerclient/modifycloudtodeviceconfig/AsyncModifyCloudToDeviceConfig.java diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/iot/v1/devicemanagerclient/modifycloudtodeviceconfig/SyncModifyCloudToDeviceConfig.java b/samples/snippets/generated/com/google/cloud/iot/v1/devicemanagerclient/modifycloudtodeviceconfig/SyncModifyCloudToDeviceConfig.java similarity index 100% rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/iot/v1/devicemanagerclient/modifycloudtodeviceconfig/SyncModifyCloudToDeviceConfig.java rename to samples/snippets/generated/com/google/cloud/iot/v1/devicemanagerclient/modifycloudtodeviceconfig/SyncModifyCloudToDeviceConfig.java diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/iot/v1/devicemanagerclient/modifycloudtodeviceconfig/SyncModifyCloudToDeviceConfigDevicenameBytestring.java b/samples/snippets/generated/com/google/cloud/iot/v1/devicemanagerclient/modifycloudtodeviceconfig/SyncModifyCloudToDeviceConfigDevicenameBytestring.java similarity index 100% rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/iot/v1/devicemanagerclient/modifycloudtodeviceconfig/SyncModifyCloudToDeviceConfigDevicenameBytestring.java rename to samples/snippets/generated/com/google/cloud/iot/v1/devicemanagerclient/modifycloudtodeviceconfig/SyncModifyCloudToDeviceConfigDevicenameBytestring.java diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/iot/v1/devicemanagerclient/modifycloudtodeviceconfig/SyncModifyCloudToDeviceConfigStringBytestring.java b/samples/snippets/generated/com/google/cloud/iot/v1/devicemanagerclient/modifycloudtodeviceconfig/SyncModifyCloudToDeviceConfigStringBytestring.java similarity index 100% rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/iot/v1/devicemanagerclient/modifycloudtodeviceconfig/SyncModifyCloudToDeviceConfigStringBytestring.java rename to samples/snippets/generated/com/google/cloud/iot/v1/devicemanagerclient/modifycloudtodeviceconfig/SyncModifyCloudToDeviceConfigStringBytestring.java diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/iot/v1/devicemanagerclient/sendcommandtodevice/AsyncSendCommandToDevice.java b/samples/snippets/generated/com/google/cloud/iot/v1/devicemanagerclient/sendcommandtodevice/AsyncSendCommandToDevice.java similarity index 100% rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/iot/v1/devicemanagerclient/sendcommandtodevice/AsyncSendCommandToDevice.java rename to samples/snippets/generated/com/google/cloud/iot/v1/devicemanagerclient/sendcommandtodevice/AsyncSendCommandToDevice.java diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/iot/v1/devicemanagerclient/sendcommandtodevice/SyncSendCommandToDevice.java b/samples/snippets/generated/com/google/cloud/iot/v1/devicemanagerclient/sendcommandtodevice/SyncSendCommandToDevice.java similarity index 100% rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/iot/v1/devicemanagerclient/sendcommandtodevice/SyncSendCommandToDevice.java rename to samples/snippets/generated/com/google/cloud/iot/v1/devicemanagerclient/sendcommandtodevice/SyncSendCommandToDevice.java diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/iot/v1/devicemanagerclient/sendcommandtodevice/SyncSendCommandToDeviceDevicenameBytestring.java b/samples/snippets/generated/com/google/cloud/iot/v1/devicemanagerclient/sendcommandtodevice/SyncSendCommandToDeviceDevicenameBytestring.java similarity index 100% rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/iot/v1/devicemanagerclient/sendcommandtodevice/SyncSendCommandToDeviceDevicenameBytestring.java rename to samples/snippets/generated/com/google/cloud/iot/v1/devicemanagerclient/sendcommandtodevice/SyncSendCommandToDeviceDevicenameBytestring.java diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/iot/v1/devicemanagerclient/sendcommandtodevice/SyncSendCommandToDeviceDevicenameBytestringString.java b/samples/snippets/generated/com/google/cloud/iot/v1/devicemanagerclient/sendcommandtodevice/SyncSendCommandToDeviceDevicenameBytestringString.java similarity index 100% rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/iot/v1/devicemanagerclient/sendcommandtodevice/SyncSendCommandToDeviceDevicenameBytestringString.java rename to samples/snippets/generated/com/google/cloud/iot/v1/devicemanagerclient/sendcommandtodevice/SyncSendCommandToDeviceDevicenameBytestringString.java diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/iot/v1/devicemanagerclient/sendcommandtodevice/SyncSendCommandToDeviceStringBytestring.java b/samples/snippets/generated/com/google/cloud/iot/v1/devicemanagerclient/sendcommandtodevice/SyncSendCommandToDeviceStringBytestring.java similarity index 100% rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/iot/v1/devicemanagerclient/sendcommandtodevice/SyncSendCommandToDeviceStringBytestring.java rename to samples/snippets/generated/com/google/cloud/iot/v1/devicemanagerclient/sendcommandtodevice/SyncSendCommandToDeviceStringBytestring.java diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/iot/v1/devicemanagerclient/sendcommandtodevice/SyncSendCommandToDeviceStringBytestringString.java b/samples/snippets/generated/com/google/cloud/iot/v1/devicemanagerclient/sendcommandtodevice/SyncSendCommandToDeviceStringBytestringString.java similarity index 100% rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/iot/v1/devicemanagerclient/sendcommandtodevice/SyncSendCommandToDeviceStringBytestringString.java rename to samples/snippets/generated/com/google/cloud/iot/v1/devicemanagerclient/sendcommandtodevice/SyncSendCommandToDeviceStringBytestringString.java diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/iot/v1/devicemanagerclient/setiampolicy/AsyncSetIamPolicy.java b/samples/snippets/generated/com/google/cloud/iot/v1/devicemanagerclient/setiampolicy/AsyncSetIamPolicy.java similarity index 100% rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/iot/v1/devicemanagerclient/setiampolicy/AsyncSetIamPolicy.java rename to samples/snippets/generated/com/google/cloud/iot/v1/devicemanagerclient/setiampolicy/AsyncSetIamPolicy.java diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/iot/v1/devicemanagerclient/setiampolicy/SyncSetIamPolicy.java b/samples/snippets/generated/com/google/cloud/iot/v1/devicemanagerclient/setiampolicy/SyncSetIamPolicy.java similarity index 100% rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/iot/v1/devicemanagerclient/setiampolicy/SyncSetIamPolicy.java rename to samples/snippets/generated/com/google/cloud/iot/v1/devicemanagerclient/setiampolicy/SyncSetIamPolicy.java diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/iot/v1/devicemanagerclient/setiampolicy/SyncSetIamPolicyResourcenamePolicy.java b/samples/snippets/generated/com/google/cloud/iot/v1/devicemanagerclient/setiampolicy/SyncSetIamPolicyResourcenamePolicy.java similarity index 100% rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/iot/v1/devicemanagerclient/setiampolicy/SyncSetIamPolicyResourcenamePolicy.java rename to samples/snippets/generated/com/google/cloud/iot/v1/devicemanagerclient/setiampolicy/SyncSetIamPolicyResourcenamePolicy.java diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/iot/v1/devicemanagerclient/setiampolicy/SyncSetIamPolicyStringPolicy.java b/samples/snippets/generated/com/google/cloud/iot/v1/devicemanagerclient/setiampolicy/SyncSetIamPolicyStringPolicy.java similarity index 100% rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/iot/v1/devicemanagerclient/setiampolicy/SyncSetIamPolicyStringPolicy.java rename to samples/snippets/generated/com/google/cloud/iot/v1/devicemanagerclient/setiampolicy/SyncSetIamPolicyStringPolicy.java diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/iot/v1/devicemanagerclient/testiampermissions/AsyncTestIamPermissions.java b/samples/snippets/generated/com/google/cloud/iot/v1/devicemanagerclient/testiampermissions/AsyncTestIamPermissions.java similarity index 100% rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/iot/v1/devicemanagerclient/testiampermissions/AsyncTestIamPermissions.java rename to samples/snippets/generated/com/google/cloud/iot/v1/devicemanagerclient/testiampermissions/AsyncTestIamPermissions.java diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/iot/v1/devicemanagerclient/testiampermissions/SyncTestIamPermissions.java b/samples/snippets/generated/com/google/cloud/iot/v1/devicemanagerclient/testiampermissions/SyncTestIamPermissions.java similarity index 100% rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/iot/v1/devicemanagerclient/testiampermissions/SyncTestIamPermissions.java rename to samples/snippets/generated/com/google/cloud/iot/v1/devicemanagerclient/testiampermissions/SyncTestIamPermissions.java diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/iot/v1/devicemanagerclient/testiampermissions/SyncTestIamPermissionsResourcenameListstring.java b/samples/snippets/generated/com/google/cloud/iot/v1/devicemanagerclient/testiampermissions/SyncTestIamPermissionsResourcenameListstring.java similarity index 100% rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/iot/v1/devicemanagerclient/testiampermissions/SyncTestIamPermissionsResourcenameListstring.java rename to samples/snippets/generated/com/google/cloud/iot/v1/devicemanagerclient/testiampermissions/SyncTestIamPermissionsResourcenameListstring.java diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/iot/v1/devicemanagerclient/testiampermissions/SyncTestIamPermissionsStringListstring.java b/samples/snippets/generated/com/google/cloud/iot/v1/devicemanagerclient/testiampermissions/SyncTestIamPermissionsStringListstring.java similarity index 100% rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/iot/v1/devicemanagerclient/testiampermissions/SyncTestIamPermissionsStringListstring.java rename to samples/snippets/generated/com/google/cloud/iot/v1/devicemanagerclient/testiampermissions/SyncTestIamPermissionsStringListstring.java diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/iot/v1/devicemanagerclient/unbinddevicefromgateway/AsyncUnbindDeviceFromGateway.java b/samples/snippets/generated/com/google/cloud/iot/v1/devicemanagerclient/unbinddevicefromgateway/AsyncUnbindDeviceFromGateway.java similarity index 100% rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/iot/v1/devicemanagerclient/unbinddevicefromgateway/AsyncUnbindDeviceFromGateway.java rename to samples/snippets/generated/com/google/cloud/iot/v1/devicemanagerclient/unbinddevicefromgateway/AsyncUnbindDeviceFromGateway.java diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/iot/v1/devicemanagerclient/unbinddevicefromgateway/SyncUnbindDeviceFromGateway.java b/samples/snippets/generated/com/google/cloud/iot/v1/devicemanagerclient/unbinddevicefromgateway/SyncUnbindDeviceFromGateway.java similarity index 100% rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/iot/v1/devicemanagerclient/unbinddevicefromgateway/SyncUnbindDeviceFromGateway.java rename to samples/snippets/generated/com/google/cloud/iot/v1/devicemanagerclient/unbinddevicefromgateway/SyncUnbindDeviceFromGateway.java diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/iot/v1/devicemanagerclient/unbinddevicefromgateway/SyncUnbindDeviceFromGatewayRegistrynameStringString.java b/samples/snippets/generated/com/google/cloud/iot/v1/devicemanagerclient/unbinddevicefromgateway/SyncUnbindDeviceFromGatewayRegistrynameStringString.java similarity index 94% rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/iot/v1/devicemanagerclient/unbinddevicefromgateway/SyncUnbindDeviceFromGatewayRegistrynameStringString.java rename to samples/snippets/generated/com/google/cloud/iot/v1/devicemanagerclient/unbinddevicefromgateway/SyncUnbindDeviceFromGatewayRegistrynameStringString.java index bae1f73b..d604ee5d 100644 --- a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/iot/v1/devicemanagerclient/unbinddevicefromgateway/SyncUnbindDeviceFromGatewayRegistrynameStringString.java +++ b/samples/snippets/generated/com/google/cloud/iot/v1/devicemanagerclient/unbinddevicefromgateway/SyncUnbindDeviceFromGatewayRegistrynameStringString.java @@ -16,7 +16,8 @@ package com.google.cloud.iot.v1.samples; -// [START iot_v1_generated_devicemanagerclient_unbinddevicefromgateway_registrynamestringstring_sync] +// [START +// iot_v1_generated_devicemanagerclient_unbinddevicefromgateway_registrynamestringstring_sync] import com.google.cloud.iot.v1.DeviceManagerClient; import com.google.cloud.iot.v1.RegistryName; import com.google.cloud.iot.v1.UnbindDeviceFromGatewayResponse; diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/iot/v1/devicemanagerclient/unbinddevicefromgateway/SyncUnbindDeviceFromGatewayStringStringString.java b/samples/snippets/generated/com/google/cloud/iot/v1/devicemanagerclient/unbinddevicefromgateway/SyncUnbindDeviceFromGatewayStringStringString.java similarity index 100% rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/iot/v1/devicemanagerclient/unbinddevicefromgateway/SyncUnbindDeviceFromGatewayStringStringString.java rename to samples/snippets/generated/com/google/cloud/iot/v1/devicemanagerclient/unbinddevicefromgateway/SyncUnbindDeviceFromGatewayStringStringString.java diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/iot/v1/devicemanagerclient/updatedevice/AsyncUpdateDevice.java b/samples/snippets/generated/com/google/cloud/iot/v1/devicemanagerclient/updatedevice/AsyncUpdateDevice.java similarity index 100% rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/iot/v1/devicemanagerclient/updatedevice/AsyncUpdateDevice.java rename to samples/snippets/generated/com/google/cloud/iot/v1/devicemanagerclient/updatedevice/AsyncUpdateDevice.java diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/iot/v1/devicemanagerclient/updatedevice/SyncUpdateDevice.java b/samples/snippets/generated/com/google/cloud/iot/v1/devicemanagerclient/updatedevice/SyncUpdateDevice.java similarity index 100% rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/iot/v1/devicemanagerclient/updatedevice/SyncUpdateDevice.java rename to samples/snippets/generated/com/google/cloud/iot/v1/devicemanagerclient/updatedevice/SyncUpdateDevice.java diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/iot/v1/devicemanagerclient/updatedevice/SyncUpdateDeviceDeviceFieldmask.java b/samples/snippets/generated/com/google/cloud/iot/v1/devicemanagerclient/updatedevice/SyncUpdateDeviceDeviceFieldmask.java similarity index 100% rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/iot/v1/devicemanagerclient/updatedevice/SyncUpdateDeviceDeviceFieldmask.java rename to samples/snippets/generated/com/google/cloud/iot/v1/devicemanagerclient/updatedevice/SyncUpdateDeviceDeviceFieldmask.java diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/iot/v1/devicemanagerclient/updatedeviceregistry/AsyncUpdateDeviceRegistry.java b/samples/snippets/generated/com/google/cloud/iot/v1/devicemanagerclient/updatedeviceregistry/AsyncUpdateDeviceRegistry.java similarity index 100% rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/iot/v1/devicemanagerclient/updatedeviceregistry/AsyncUpdateDeviceRegistry.java rename to samples/snippets/generated/com/google/cloud/iot/v1/devicemanagerclient/updatedeviceregistry/AsyncUpdateDeviceRegistry.java diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/iot/v1/devicemanagerclient/updatedeviceregistry/SyncUpdateDeviceRegistry.java b/samples/snippets/generated/com/google/cloud/iot/v1/devicemanagerclient/updatedeviceregistry/SyncUpdateDeviceRegistry.java similarity index 100% rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/iot/v1/devicemanagerclient/updatedeviceregistry/SyncUpdateDeviceRegistry.java rename to samples/snippets/generated/com/google/cloud/iot/v1/devicemanagerclient/updatedeviceregistry/SyncUpdateDeviceRegistry.java diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/iot/v1/devicemanagerclient/updatedeviceregistry/SyncUpdateDeviceRegistryDeviceregistryFieldmask.java b/samples/snippets/generated/com/google/cloud/iot/v1/devicemanagerclient/updatedeviceregistry/SyncUpdateDeviceRegistryDeviceregistryFieldmask.java similarity index 100% rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/iot/v1/devicemanagerclient/updatedeviceregistry/SyncUpdateDeviceRegistryDeviceregistryFieldmask.java rename to samples/snippets/generated/com/google/cloud/iot/v1/devicemanagerclient/updatedeviceregistry/SyncUpdateDeviceRegistryDeviceregistryFieldmask.java diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/iot/v1/devicemanagersettings/createdeviceregistry/SyncCreateDeviceRegistry.java b/samples/snippets/generated/com/google/cloud/iot/v1/devicemanagersettings/createdeviceregistry/SyncCreateDeviceRegistry.java similarity index 100% rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/iot/v1/devicemanagersettings/createdeviceregistry/SyncCreateDeviceRegistry.java rename to samples/snippets/generated/com/google/cloud/iot/v1/devicemanagersettings/createdeviceregistry/SyncCreateDeviceRegistry.java diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/iot/v1/stub/devicemanagerstubsettings/createdeviceregistry/SyncCreateDeviceRegistry.java b/samples/snippets/generated/com/google/cloud/iot/v1/stub/devicemanagerstubsettings/createdeviceregistry/SyncCreateDeviceRegistry.java similarity index 100% rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/iot/v1/stub/devicemanagerstubsettings/createdeviceregistry/SyncCreateDeviceRegistry.java rename to samples/snippets/generated/com/google/cloud/iot/v1/stub/devicemanagerstubsettings/createdeviceregistry/SyncCreateDeviceRegistry.java From c41dd34eca6834a076dd7126e1d2d6fa4e4195d4 Mon Sep 17 00:00:00 2001 From: Tomo Suzuki Date: Thu, 23 Jun 2022 21:00:34 +0000 Subject: [PATCH 3/4] deps: adding gax-httpjson --- google-cloud-iot/pom.xml | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/google-cloud-iot/pom.xml b/google-cloud-iot/pom.xml index 707c6962..2ec3e862 100644 --- a/google-cloud-iot/pom.xml +++ b/google-cloud-iot/pom.xml @@ -62,6 +62,10 @@ com.google.api gax-grpc + + com.google.api + gax-httpjson + org.threeten threetenbp @@ -85,12 +89,24 @@ test + + com.google.api + gax + testlib + test + com.google.api gax-grpc testlib test + + com.google.api + gax-httpjson + testlib + test + From b2912e4638d16644f3d407be8957f5064edb8d6b Mon Sep 17 00:00:00 2001 From: Owl Bot Date: Thu, 23 Jun 2022 21:02:41 +0000 Subject: [PATCH 4/4] =?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 --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index cb686b8d..dfba32e2 100644 --- a/README.md +++ b/README.md @@ -56,13 +56,13 @@ implementation 'com.google.cloud:google-cloud-iot' If you are using Gradle without BOM, add this to your dependencies ```Groovy -implementation 'com.google.cloud:google-cloud-iot:2.2.0' +implementation 'com.google.cloud:google-cloud-iot:2.2.1' ``` If you are using SBT, add this to your dependencies ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-iot" % "2.2.0" +libraryDependencies += "com.google.cloud" % "google-cloud-iot" % "2.2.1" ``` ## Authentication